gcc.info 2.8 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782
  1. This is gcc.info, produced by makeinfo version 6.6 from gcc.texi.
  2. Copyright (C) 1988-2019 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. END-INFO-DIR-ENTRY
  24. This file documents the use of the GNU compilers.
  25. Copyright (C) 1988-2019 Free Software Foundation, Inc.
  26. Permission is granted to copy, distribute and/or modify this document
  27. under the terms of the GNU Free Documentation License, Version 1.3 or
  28. any later version published by the Free Software Foundation; with the
  29. Invariant Sections being "Funding Free Software", the Front-Cover Texts
  30. being (a) (see below), and with the Back-Cover Texts being (b) (see
  31. below). A copy of the license is included in the section entitled "GNU
  32. Free Documentation License".
  33. (a) The FSF's Front-Cover Text is:
  34. A GNU Manual
  35. (b) The FSF's Back-Cover Text is:
  36. You have freedom to copy and modify this GNU Manual, like GNU software.
  37. Copies published by the Free Software Foundation raise funds for GNU
  38. development.
  39. 
  40. File: gcc.info, Node: Top, Next: G++ and GCC
  41. Introduction
  42. ************
  43. This manual documents how to use the GNU compilers, as well as their
  44. features and incompatibilities, and how to report bugs. It corresponds
  45. to the compilers (xPack GNU Arm Embedded GCC\x2C 64-bit) version 9.2.1.
  46. The internals of the GNU compilers, including how to port them to new
  47. targets and some information about how to write front ends for new
  48. languages, are documented in a separate manual. *Note Introduction:
  49. (gccint)Top.
  50. * Menu:
  51. * G++ and GCC:: You can compile C or C++ programs.
  52. * Standards:: Language standards supported by GCC.
  53. * Invoking GCC:: Command options supported by 'gcc'.
  54. * C Implementation:: How GCC implements the ISO C specification.
  55. * C++ Implementation:: How GCC implements the ISO C++ specification.
  56. * C Extensions:: GNU extensions to the C language family.
  57. * C++ Extensions:: GNU extensions to the C++ language.
  58. * Objective-C:: GNU Objective-C runtime features.
  59. * Compatibility:: Binary Compatibility
  60. * Gcov:: 'gcov'--a test coverage program.
  61. * Gcov-tool:: 'gcov-tool'--an offline gcda profile processing program.
  62. * Gcov-dump:: 'gcov-dump'--an offline gcda and gcno profile dump tool.
  63. * Trouble:: If you have trouble using GCC.
  64. * Bugs:: How, why and where to report bugs.
  65. * Service:: How To Get Help with GCC
  66. * Contributing:: How to contribute to testing and developing GCC.
  67. * Funding:: How to help assure funding for free software.
  68. * GNU Project:: The GNU Project and GNU/Linux.
  69. * Copying:: GNU General Public License says
  70. how you can copy and share GCC.
  71. * GNU Free Documentation License:: How you can copy and share this manual.
  72. * Contributors:: People who have contributed to GCC.
  73. * Option Index:: Index to command line options.
  74. * Keyword Index:: Index of concepts and symbol names.
  75. 
  76. File: gcc.info, Node: G++ and GCC, Next: Standards, Up: Top
  77. 1 Programming Languages Supported by GCC
  78. ****************************************
  79. GCC stands for "GNU Compiler Collection". GCC is an integrated
  80. distribution of compilers for several major programming languages.
  81. These languages currently include C, C++, Objective-C, Objective-C++,
  82. Fortran, Ada, D, Go, and BRIG (HSAIL).
  83. The abbreviation "GCC" has multiple meanings in common use. The
  84. current official meaning is "GNU Compiler Collection", which refers
  85. generically to the complete suite of tools. The name historically stood
  86. for "GNU C Compiler", and this usage is still common when the emphasis
  87. is on compiling C programs. Finally, the name is also used when
  88. speaking of the "language-independent" component of GCC: code shared
  89. among the compilers for all supported languages.
  90. The language-independent component of GCC includes the majority of the
  91. optimizers, as well as the "back ends" that generate machine code for
  92. various processors.
  93. The part of a compiler that is specific to a particular language is
  94. called the "front end". In addition to the front ends that are
  95. integrated components of GCC, there are several other front ends that
  96. are maintained separately. These support languages such as Mercury, and
  97. COBOL. To use these, they must be built together with GCC proper.
  98. Most of the compilers for languages other than C have their own names.
  99. The C++ compiler is G++, the Ada compiler is GNAT, and so on. When we
  100. talk about compiling one of those languages, we might refer to that
  101. compiler by its own name, or as GCC. Either is correct.
  102. Historically, compilers for many languages, including C++ and Fortran,
  103. have been implemented as "preprocessors" which emit another high level
  104. language such as C. None of the compilers included in GCC are
  105. implemented this way; they all generate machine code directly. This
  106. sort of preprocessor should not be confused with the "C preprocessor",
  107. which is an integral feature of the C, C++, Objective-C and
  108. Objective-C++ languages.
  109. 
  110. File: gcc.info, Node: Standards, Next: Invoking GCC, Prev: G++ and GCC, Up: Top
  111. 2 Language Standards Supported by GCC
  112. *************************************
  113. For each language compiled by GCC for which there is a standard, GCC
  114. attempts to follow one or more versions of that standard, possibly with
  115. some exceptions, and possibly with some extensions.
  116. 2.1 C Language
  117. ==============
  118. The original ANSI C standard (X3.159-1989) was ratified in 1989 and
  119. published in 1990. This standard was ratified as an ISO standard
  120. (ISO/IEC 9899:1990) later in 1990. There were no technical differences
  121. between these publications, although the sections of the ANSI standard
  122. were renumbered and became clauses in the ISO standard. The ANSI
  123. standard, but not the ISO standard, also came with a Rationale document.
  124. This standard, in both its forms, is commonly known as "C89", or
  125. occasionally as "C90", from the dates of ratification. To select this
  126. standard in GCC, use one of the options '-ansi', '-std=c90' or
  127. '-std=iso9899:1990'; to obtain all the diagnostics required by the
  128. standard, you should also specify '-pedantic' (or '-pedantic-errors' if
  129. you want them to be errors rather than warnings). *Note Options
  130. Controlling C Dialect: C Dialect Options.
  131. Errors in the 1990 ISO C standard were corrected in two Technical
  132. Corrigenda published in 1994 and 1996. GCC does not support the
  133. uncorrected version.
  134. An amendment to the 1990 standard was published in 1995. This
  135. amendment added digraphs and '__STDC_VERSION__' to the language, but
  136. otherwise concerned the library. This amendment is commonly known as
  137. "AMD1"; the amended standard is sometimes known as "C94" or "C95". To
  138. select this standard in GCC, use the option '-std=iso9899:199409' (with,
  139. as for other standard versions, '-pedantic' to receive all required
  140. diagnostics).
  141. A new edition of the ISO C standard was published in 1999 as ISO/IEC
  142. 9899:1999, and is commonly known as "C99". (While in development,
  143. drafts of this standard version were referred to as "C9X".) GCC has
  144. substantially complete support for this standard version; see
  145. <http://gcc.gnu.org/c99status.html> for details. To select this
  146. standard, use '-std=c99' or '-std=iso9899:1999'.
  147. Errors in the 1999 ISO C standard were corrected in three Technical
  148. Corrigenda published in 2001, 2004 and 2007. GCC does not support the
  149. uncorrected version.
  150. A fourth version of the C standard, known as "C11", was published in
  151. 2011 as ISO/IEC 9899:2011. (While in development, drafts of this
  152. standard version were referred to as "C1X".) GCC has substantially
  153. complete support for this standard, enabled with '-std=c11' or
  154. '-std=iso9899:2011'. A version with corrections integrated was prepared
  155. in 2017 and published in 2018 as ISO/IEC 9899:2018; it is known as "C17"
  156. and is supported with '-std=c17' or '-std=iso9899:2017'; the corrections
  157. are also applied with '-std=c11', and the only difference between the
  158. options is the value of '__STDC_VERSION__'.
  159. A further version of the C standard, known as "C2X", is under
  160. development; experimental and incomplete support for this is enabled
  161. with '-std=c2x'.
  162. By default, GCC provides some extensions to the C language that, on
  163. rare occasions conflict with the C standard. *Note Extensions to the C
  164. Language Family: C Extensions. Some features that are part of the C99
  165. standard are accepted as extensions in C90 mode, and some features that
  166. are part of the C11 standard are accepted as extensions in C90 and C99
  167. modes. Use of the '-std' options listed above disables these extensions
  168. where they conflict with the C standard version selected. You may also
  169. select an extended version of the C language explicitly with
  170. '-std=gnu90' (for C90 with GNU extensions), '-std=gnu99' (for C99 with
  171. GNU extensions) or '-std=gnu11' (for C11 with GNU extensions).
  172. The default, if no C language dialect options are given, is
  173. '-std=gnu11'.
  174. The ISO C standard defines (in clause 4) two classes of conforming
  175. implementation. A "conforming hosted implementation" supports the whole
  176. standard including all the library facilities; a "conforming
  177. freestanding implementation" is only required to provide certain library
  178. facilities: those in '<float.h>', '<limits.h>', '<stdarg.h>', and
  179. '<stddef.h>'; since AMD1, also those in '<iso646.h>'; since C99, also
  180. those in '<stdbool.h>' and '<stdint.h>'; and since C11, also those in
  181. '<stdalign.h>' and '<stdnoreturn.h>'. In addition, complex types, added
  182. in C99, are not required for freestanding implementations.
  183. The standard also defines two environments for programs, a
  184. "freestanding environment", required of all implementations and which
  185. may not have library facilities beyond those required of freestanding
  186. implementations, where the handling of program startup and termination
  187. are implementation-defined; and a "hosted environment", which is not
  188. required, in which all the library facilities are provided and startup
  189. is through a function 'int main (void)' or 'int main (int, char *[])'.
  190. An OS kernel is an example of a program running in a freestanding
  191. environment; a program using the facilities of an operating system is an
  192. example of a program running in a hosted environment.
  193. GCC aims towards being usable as a conforming freestanding
  194. implementation, or as the compiler for a conforming hosted
  195. implementation. By default, it acts as the compiler for a hosted
  196. implementation, defining '__STDC_HOSTED__' as '1' and presuming that
  197. when the names of ISO C functions are used, they have the semantics
  198. defined in the standard. To make it act as a conforming freestanding
  199. implementation for a freestanding environment, use the option
  200. '-ffreestanding'; it then defines '__STDC_HOSTED__' to '0' and does not
  201. make assumptions about the meanings of function names from the standard
  202. library, with exceptions noted below. To build an OS kernel, you may
  203. well still need to make your own arrangements for linking and startup.
  204. *Note Options Controlling C Dialect: C Dialect Options.
  205. GCC does not provide the library facilities required only of hosted
  206. implementations, nor yet all the facilities required by C99 of
  207. freestanding implementations on all platforms. To use the facilities of
  208. a hosted environment, you need to find them elsewhere (for example, in
  209. the GNU C library). *Note Standard Libraries: Standard Libraries.
  210. Most of the compiler support routines used by GCC are present in
  211. 'libgcc', but there are a few exceptions. GCC requires the freestanding
  212. environment provide 'memcpy', 'memmove', 'memset' and 'memcmp'.
  213. Finally, if '__builtin_trap' is used, and the target does not implement
  214. the 'trap' pattern, then GCC emits a call to 'abort'.
  215. For references to Technical Corrigenda, Rationale documents and
  216. information concerning the history of C that is available online, see
  217. <http://gcc.gnu.org/readings.html>
  218. 2.2 C++ Language
  219. ================
  220. GCC supports the original ISO C++ standard published in 1998, and the
  221. 2011 and 2014 revisions.
  222. The original ISO C++ standard was published as the ISO standard
  223. (ISO/IEC 14882:1998) and amended by a Technical Corrigenda published in
  224. 2003 (ISO/IEC 14882:2003). These standards are referred to as C++98 and
  225. C++03, respectively. GCC implements the majority of C++98 ('export' is
  226. a notable exception) and most of the changes in C++03. To select this
  227. standard in GCC, use one of the options '-ansi', '-std=c++98', or
  228. '-std=c++03'; to obtain all the diagnostics required by the standard,
  229. you should also specify '-pedantic' (or '-pedantic-errors' if you want
  230. them to be errors rather than warnings).
  231. A revised ISO C++ standard was published in 2011 as ISO/IEC 14882:2011,
  232. and is referred to as C++11; before its publication it was commonly
  233. referred to as C++0x. C++11 contains several changes to the C++
  234. language, all of which have been implemented in GCC. For details see
  235. <https://gcc.gnu.org/projects/cxx-status.html#cxx11>. To select this
  236. standard in GCC, use the option '-std=c++11'.
  237. Another revised ISO C++ standard was published in 2014 as ISO/IEC
  238. 14882:2014, and is referred to as C++14; before its publication it was
  239. sometimes referred to as C++1y. C++14 contains several further changes
  240. to the C++ language, all of which have been implemented in GCC. For
  241. details see <https://gcc.gnu.org/projects/cxx-status.html#cxx14>. To
  242. select this standard in GCC, use the option '-std=c++14'.
  243. The C++ language was further revised in 2017 and ISO/IEC 14882:2017 was
  244. published. This is referred to as C++17, and before publication was
  245. often referred to as C++1z. GCC supports all the changes in the new
  246. specification. For further details see
  247. <https://gcc.gnu.org/projects/cxx-status.html#cxx1z>. Use the option
  248. '-std=c++17' to select this variant of C++.
  249. More information about the C++ standards is available on the ISO C++
  250. committee's web site at <http://www.open-std.org/jtc1/sc22/wg21/>.
  251. To obtain all the diagnostics required by any of the standard versions
  252. described above you should specify '-pedantic' or '-pedantic-errors',
  253. otherwise GCC will allow some non-ISO C++ features as extensions. *Note
  254. Warning Options::.
  255. By default, GCC also provides some additional extensions to the C++
  256. language that on rare occasions conflict with the C++ standard. *Note
  257. Options Controlling C++ Dialect: C++ Dialect Options. Use of the '-std'
  258. options listed above disables these extensions where they they conflict
  259. with the C++ standard version selected. You may also select an extended
  260. version of the C++ language explicitly with '-std=gnu++98' (for C++98
  261. with GNU extensions), or '-std=gnu++11' (for C++11 with GNU extensions),
  262. or '-std=gnu++14' (for C++14 with GNU extensions), or '-std=gnu++17'
  263. (for C++17 with GNU extensions).
  264. The default, if no C++ language dialect options are given, is
  265. '-std=gnu++14'.
  266. 2.3 Objective-C and Objective-C++ Languages
  267. ===========================================
  268. GCC supports "traditional" Objective-C (also known as "Objective-C 1.0")
  269. and contains support for the Objective-C exception and synchronization
  270. syntax. It has also support for a number of "Objective-C 2.0" language
  271. extensions, including properties, fast enumeration (only for
  272. Objective-C), method attributes and the @optional and @required keywords
  273. in protocols. GCC supports Objective-C++ and features available in
  274. Objective-C are also available in Objective-C++.
  275. GCC by default uses the GNU Objective-C runtime library, which is part
  276. of GCC and is not the same as the Apple/NeXT Objective-C runtime library
  277. used on Apple systems. There are a number of differences documented in
  278. this manual. The options '-fgnu-runtime' and '-fnext-runtime' allow you
  279. to switch between producing output that works with the GNU Objective-C
  280. runtime library and output that works with the Apple/NeXT Objective-C
  281. runtime library.
  282. There is no formal written standard for Objective-C or Objective-C++.
  283. The authoritative manual on traditional Objective-C (1.0) is
  284. "Object-Oriented Programming and the Objective-C Language":
  285. <http://www.gnustep.org/resources/documentation/ObjectivCBook.pdf> is
  286. the original NeXTstep document.
  287. The Objective-C exception and synchronization syntax (that is, the
  288. keywords '@try', '@throw', '@catch', '@finally' and '@synchronized') is
  289. supported by GCC and is enabled with the option '-fobjc-exceptions'.
  290. The syntax is briefly documented in this manual and in the Objective-C
  291. 2.0 manuals from Apple.
  292. The Objective-C 2.0 language extensions and features are automatically
  293. enabled; they include properties (via the '@property', '@synthesize' and
  294. '@dynamic keywords'), fast enumeration (not available in Objective-C++),
  295. attributes for methods (such as 'deprecated', 'noreturn', 'sentinel',
  296. 'format'), the 'unused' attribute for method arguments, the '@package'
  297. keyword for instance variables and the '@optional' and '@required'
  298. keywords in protocols. You can disable all these Objective-C 2.0
  299. language extensions with the option '-fobjc-std=objc1', which causes the
  300. compiler to recognize the same Objective-C language syntax recognized by
  301. GCC 4.0, and to produce an error if one of the new features is used.
  302. GCC has currently no support for non-fragile instance variables.
  303. The authoritative manual on Objective-C 2.0 is available from Apple:
  304. *
  305. <https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html>
  306. For more information concerning the history of Objective-C that is
  307. available online, see <http://gcc.gnu.org/readings.html>
  308. 2.4 Go Language
  309. ===============
  310. As of the GCC 4.7.1 release, GCC supports the Go 1 language standard,
  311. described at <https://golang.org/doc/go1>.
  312. 2.5 HSA Intermediate Language (HSAIL)
  313. =====================================
  314. GCC can compile the binary representation (BRIG) of the HSAIL text
  315. format as described in HSA Programmer's Reference Manual version 1.0.1.
  316. This capability is typically utilized to implement the HSA runtime API's
  317. HSAIL finalization extension for a gcc supported processor. HSA
  318. standards are freely available at
  319. <http://www.hsafoundation.com/standards/>.
  320. 2.6 D language
  321. ==============
  322. GCC supports the D 2.0 programming language. The D language itself is
  323. currently defined by its reference implementation and supporting
  324. language specification, described at <https://dlang.org/spec/spec.html>.
  325. 2.7 References for Other Languages
  326. ==================================
  327. *Note GNAT Reference Manual: (gnat_rm)Top, for information on standard
  328. conformance and compatibility of the Ada compiler.
  329. *Note Standards: (gfortran)Standards, for details of standards
  330. supported by GNU Fortran.
  331. 
  332. File: gcc.info, Node: Invoking GCC, Next: C Implementation, Prev: Standards, Up: Top
  333. 3 GCC Command Options
  334. *********************
  335. When you invoke GCC, it normally does preprocessing, compilation,
  336. assembly and linking. The "overall options" allow you to stop this
  337. process at an intermediate stage. For example, the '-c' option says not
  338. to run the linker. Then the output consists of object files output by
  339. the assembler. *Note Options Controlling the Kind of Output: Overall
  340. Options.
  341. Other options are passed on to one or more stages of processing. Some
  342. options control the preprocessor and others the compiler itself. Yet
  343. other options control the assembler and linker; most of these are not
  344. documented here, since you rarely need to use any of them.
  345. Most of the command-line options that you can use with GCC are useful
  346. for C programs; when an option is only useful with another language
  347. (usually C++), the explanation says so explicitly. If the description
  348. for a particular option does not mention a source language, you can use
  349. that option with all supported languages.
  350. The usual way to run GCC is to run the executable called 'gcc', or
  351. 'MACHINE-gcc' when cross-compiling, or 'MACHINE-gcc-VERSION' to run a
  352. specific version of GCC. When you compile C++ programs, you should
  353. invoke GCC as 'g++' instead. *Note Compiling C++ Programs: Invoking
  354. G++, for information about the differences in behavior between 'gcc' and
  355. 'g++' when compiling C++ programs.
  356. The 'gcc' program accepts options and file names as operands. Many
  357. options have multi-letter names; therefore multiple single-letter
  358. options may _not_ be grouped: '-dv' is very different from '-d -v'.
  359. You can mix options and other arguments. For the most part, the order
  360. you use doesn't matter. Order does matter when you use several options
  361. of the same kind; for example, if you specify '-L' more than once, the
  362. directories are searched in the order specified. Also, the placement of
  363. the '-l' option is significant.
  364. Many options have long names starting with '-f' or with '-W'--for
  365. example, '-fmove-loop-invariants', '-Wformat' and so on. Most of these
  366. have both positive and negative forms; the negative form of '-ffoo' is
  367. '-fno-foo'. This manual documents only one of these two forms,
  368. whichever one is not the default.
  369. Some options take one or more arguments typically separated either by a
  370. space or by the equals sign ('=') from the option name. Unless
  371. documented otherwise, an argument can be either numeric or a string.
  372. Numeric arguments must typically be small unsigned decimal or
  373. hexadecimal integers. Hexadecimal arguments must begin with the '0x'
  374. prefix. Arguments to options that specify a size threshold of some sort
  375. may be arbitrarily large decimal or hexadecimal integers followed by a
  376. byte size suffix designating a multiple of bytes such as 'kB' and 'KiB'
  377. for kilobyte and kibibyte, respectively, 'MB' and 'MiB' for megabyte and
  378. mebibyte, 'GB' and 'GiB' for gigabyte and gigibyte, and so on. Such
  379. arguments are designated by BYTE-SIZE in the following text. Refer to
  380. the NIST, IEC, and other relevant national and international standards
  381. for the full listing and explanation of the binary and decimal byte size
  382. prefixes.
  383. *Note Option Index::, for an index to GCC's options.
  384. * Menu:
  385. * Option Summary:: Brief list of all options, without explanations.
  386. * Overall Options:: Controlling the kind of output:
  387. an executable, object files, assembler files,
  388. or preprocessed source.
  389. * Invoking G++:: Compiling C++ programs.
  390. * C Dialect Options:: Controlling the variant of C language compiled.
  391. * C++ Dialect Options:: Variations on C++.
  392. * Objective-C and Objective-C++ Dialect Options:: Variations on Objective-C
  393. and Objective-C++.
  394. * Diagnostic Message Formatting Options:: Controlling how diagnostics should
  395. be formatted.
  396. * Warning Options:: How picky should the compiler be?
  397. * Debugging Options:: Producing debuggable code.
  398. * Optimize Options:: How much optimization?
  399. * Instrumentation Options:: Enabling profiling and extra run-time error checking.
  400. * Preprocessor Options:: Controlling header files and macro definitions.
  401. Also, getting dependency information for Make.
  402. * Assembler Options:: Passing options to the assembler.
  403. * Link Options:: Specifying libraries and so on.
  404. * Directory Options:: Where to find header files and libraries.
  405. Where to find the compiler executable files.
  406. * Code Gen Options:: Specifying conventions for function calls, data layout
  407. and register usage.
  408. * Developer Options:: Printing GCC configuration info, statistics, and
  409. debugging dumps.
  410. * Submodel Options:: Target-specific options, such as compiling for a
  411. specific processor variant.
  412. * Spec Files:: How to pass switches to sub-processes.
  413. * Environment Variables:: Env vars that affect GCC.
  414. * Precompiled Headers:: Compiling a header once, and using it many times.
  415. 
  416. File: gcc.info, Node: Option Summary, Next: Overall Options, Up: Invoking GCC
  417. 3.1 Option Summary
  418. ==================
  419. Here is a summary of all the options, grouped by type. Explanations are
  420. in the following sections.
  421. _Overall Options_
  422. *Note Options Controlling the Kind of Output: Overall Options.
  423. -c -S -E -o FILE -x LANGUAGE
  424. -v -### --help[=CLASS[,...]] --target-help --version
  425. -pass-exit-codes -pipe -specs=FILE -wrapper
  426. @FILE -ffile-prefix-map=OLD=NEW
  427. -fplugin=FILE -fplugin-arg-NAME=ARG
  428. -fdump-ada-spec[-slim] -fada-spec-parent=UNIT -fdump-go-spec=FILE
  429. _C Language Options_
  430. *Note Options Controlling C Dialect: C Dialect Options.
  431. -ansi -std=STANDARD -fgnu89-inline
  432. -fpermitted-flt-eval-methods=STANDARD
  433. -aux-info FILENAME -fallow-parameterless-variadic-functions
  434. -fno-asm -fno-builtin -fno-builtin-FUNCTION -fgimple
  435. -fhosted -ffreestanding
  436. -fopenacc -fopenacc-dim=GEOM
  437. -fopenmp -fopenmp-simd
  438. -fms-extensions -fplan9-extensions -fsso-struct=ENDIANNESS
  439. -fallow-single-precision -fcond-mismatch -flax-vector-conversions
  440. -fsigned-bitfields -fsigned-char
  441. -funsigned-bitfields -funsigned-char
  442. _C++ Language Options_
  443. *Note Options Controlling C++ Dialect: C++ Dialect Options.
  444. -fabi-version=N -fno-access-control
  445. -faligned-new=N -fargs-in-order=N -fchar8_t -fcheck-new
  446. -fconstexpr-depth=N -fconstexpr-loop-limit=N
  447. -fconstexpr-ops-limit=N -fno-elide-constructors
  448. -fno-enforce-eh-specs
  449. -fno-gnu-keywords
  450. -fno-implicit-templates
  451. -fno-implicit-inline-templates
  452. -fno-implement-inlines -fms-extensions
  453. -fnew-inheriting-ctors
  454. -fnew-ttp-matching
  455. -fno-nonansi-builtins -fnothrow-opt -fno-operator-names
  456. -fno-optional-diags -fpermissive
  457. -fno-pretty-templates
  458. -frepo -fno-rtti -fsized-deallocation
  459. -ftemplate-backtrace-limit=N
  460. -ftemplate-depth=N
  461. -fno-threadsafe-statics -fuse-cxa-atexit
  462. -fno-weak -nostdinc++
  463. -fvisibility-inlines-hidden
  464. -fvisibility-ms-compat
  465. -fext-numeric-literals
  466. -Wabi=N -Wabi-tag -Wconversion-null -Wctor-dtor-privacy
  467. -Wdelete-non-virtual-dtor -Wdeprecated-copy -Wdeprecated-copy-dtor
  468. -Wliteral-suffix
  469. -Wmultiple-inheritance -Wno-init-list-lifetime
  470. -Wnamespaces -Wnarrowing
  471. -Wpessimizing-move -Wredundant-move
  472. -Wnoexcept -Wnoexcept-type -Wclass-memaccess
  473. -Wnon-virtual-dtor -Wreorder -Wregister
  474. -Weffc++ -Wstrict-null-sentinel -Wtemplates
  475. -Wno-non-template-friend -Wold-style-cast
  476. -Woverloaded-virtual -Wno-pmf-conversions
  477. -Wno-class-conversion -Wno-terminate
  478. -Wsign-promo -Wvirtual-inheritance
  479. _Objective-C and Objective-C++ Language Options_
  480. *Note Options Controlling Objective-C and Objective-C++ Dialects:
  481. Objective-C and Objective-C++ Dialect Options.
  482. -fconstant-string-class=CLASS-NAME
  483. -fgnu-runtime -fnext-runtime
  484. -fno-nil-receivers
  485. -fobjc-abi-version=N
  486. -fobjc-call-cxx-cdtors
  487. -fobjc-direct-dispatch
  488. -fobjc-exceptions
  489. -fobjc-gc
  490. -fobjc-nilcheck
  491. -fobjc-std=objc1
  492. -fno-local-ivars
  493. -fivar-visibility=[public|protected|private|package]
  494. -freplace-objc-classes
  495. -fzero-link
  496. -gen-decls
  497. -Wassign-intercept
  498. -Wno-protocol -Wselector
  499. -Wstrict-selector-match
  500. -Wundeclared-selector
  501. _Diagnostic Message Formatting Options_
  502. *Note Options to Control Diagnostic Messages Formatting: Diagnostic
  503. Message Formatting Options.
  504. -fmessage-length=N
  505. -fdiagnostics-show-location=[once|every-line]
  506. -fdiagnostics-color=[auto|never|always]
  507. -fdiagnostics-format=[text|json]
  508. -fno-diagnostics-show-option -fno-diagnostics-show-caret
  509. -fno-diagnostics-show-labels -fno-diagnostics-show-line-numbers
  510. -fdiagnostics-minimum-margin-width=WIDTH
  511. -fdiagnostics-parseable-fixits -fdiagnostics-generate-patch
  512. -fdiagnostics-show-template-tree -fno-elide-type
  513. -fno-show-column
  514. _Warning Options_
  515. *Note Options to Request or Suppress Warnings: Warning Options.
  516. -fsyntax-only -fmax-errors=N -Wpedantic
  517. -pedantic-errors
  518. -w -Wextra -Wall -Waddress -Waddress-of-packed-member
  519. -Waggregate-return -Waligned-new
  520. -Walloc-zero -Walloc-size-larger-than=BYTE-SIZE
  521. -Walloca -Walloca-larger-than=BYTE-SIZE
  522. -Wno-aggressive-loop-optimizations -Warray-bounds -Warray-bounds=N
  523. -Wno-attributes -Wattribute-alias=N
  524. -Wbool-compare -Wbool-operation
  525. -Wno-builtin-declaration-mismatch
  526. -Wno-builtin-macro-redefined -Wc90-c99-compat -Wc99-c11-compat
  527. -Wc++-compat -Wc++11-compat -Wc++14-compat -Wc++17-compat
  528. -Wcast-align -Wcast-align=strict -Wcast-function-type -Wcast-qual
  529. -Wchar-subscripts -Wcatch-value -Wcatch-value=N
  530. -Wclobbered -Wcomment -Wconditionally-supported
  531. -Wconversion -Wcoverage-mismatch -Wno-cpp -Wdangling-else -Wdate-time
  532. -Wdelete-incomplete
  533. -Wno-attribute-warning
  534. -Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init
  535. -Wdisabled-optimization
  536. -Wno-discarded-qualifiers -Wno-discarded-array-qualifiers
  537. -Wno-div-by-zero -Wdouble-promotion
  538. -Wduplicated-branches -Wduplicated-cond
  539. -Wempty-body -Wenum-compare -Wno-endif-labels -Wexpansion-to-defined
  540. -Werror -Werror=* -Wextra-semi -Wfatal-errors
  541. -Wfloat-equal -Wformat -Wformat=2
  542. -Wno-format-contains-nul -Wno-format-extra-args
  543. -Wformat-nonliteral -Wformat-overflow=N
  544. -Wformat-security -Wformat-signedness -Wformat-truncation=N
  545. -Wformat-y2k -Wframe-address
  546. -Wframe-larger-than=BYTE-SIZE -Wno-free-nonheap-object
  547. -Wjump-misses-init
  548. -Whsa -Wif-not-aligned
  549. -Wignored-qualifiers -Wignored-attributes -Wincompatible-pointer-types
  550. -Wimplicit -Wimplicit-fallthrough -Wimplicit-fallthrough=N
  551. -Wimplicit-function-declaration -Wimplicit-int
  552. -Winit-self -Winline -Wno-int-conversion -Wint-in-bool-context
  553. -Wno-int-to-pointer-cast -Winvalid-memory-model -Wno-invalid-offsetof
  554. -Winvalid-pch -Wlarger-than=BYTE-SIZE
  555. -Wlogical-op -Wlogical-not-parentheses -Wlong-long
  556. -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args
  557. -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces
  558. -Wmissing-field-initializers -Wmissing-format-attribute
  559. -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-profile
  560. -Wno-multichar -Wmultistatement-macros -Wnonnull -Wnonnull-compare
  561. -Wnormalized=[none|id|nfc|nfkc]
  562. -Wnull-dereference -Wodr -Wno-overflow -Wopenmp-simd
  563. -Woverride-init-side-effects -Woverlength-strings
  564. -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wpadded
  565. -Wparentheses -Wno-pedantic-ms-format
  566. -Wplacement-new -Wplacement-new=N
  567. -Wpointer-arith -Wpointer-compare -Wno-pointer-to-int-cast
  568. -Wno-pragmas -Wno-prio-ctor-dtor -Wredundant-decls
  569. -Wrestrict -Wno-return-local-addr
  570. -Wreturn-type -Wsequence-point -Wshadow -Wno-shadow-ivar
  571. -Wshadow=global, -Wshadow=local, -Wshadow=compatible-local
  572. -Wshift-overflow -Wshift-overflow=N
  573. -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value
  574. -Wsign-compare -Wsign-conversion -Wfloat-conversion
  575. -Wno-scalar-storage-order -Wsizeof-pointer-div
  576. -Wsizeof-pointer-memaccess -Wsizeof-array-argument
  577. -Wstack-protector -Wstack-usage=BYTE-SIZE -Wstrict-aliasing
  578. -Wstrict-aliasing=n -Wstrict-overflow -Wstrict-overflow=N
  579. -Wstringop-overflow=N -Wstringop-truncation -Wsubobject-linkage
  580. -Wsuggest-attribute=[pure|const|noreturn|format|malloc]
  581. -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override
  582. -Wswitch -Wswitch-bool -Wswitch-default -Wswitch-enum
  583. -Wswitch-unreachable -Wsync-nand
  584. -Wsystem-headers -Wtautological-compare -Wtrampolines -Wtrigraphs
  585. -Wtype-limits -Wundef
  586. -Wuninitialized -Wunknown-pragmas
  587. -Wunsuffixed-float-constants -Wunused -Wunused-function
  588. -Wunused-label -Wunused-local-typedefs -Wunused-macros
  589. -Wunused-parameter -Wno-unused-result
  590. -Wunused-value -Wunused-variable
  591. -Wunused-const-variable -Wunused-const-variable=N
  592. -Wunused-but-set-parameter -Wunused-but-set-variable
  593. -Wuseless-cast -Wvariadic-macros -Wvector-operation-performance
  594. -Wvla -Wvla-larger-than=BYTE-SIZE -Wvolatile-register-var
  595. -Wwrite-strings
  596. -Wzero-as-null-pointer-constant
  597. _C and Objective-C-only Warning Options_
  598. -Wbad-function-cast -Wmissing-declarations
  599. -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
  600. -Wold-style-declaration -Wold-style-definition
  601. -Wstrict-prototypes -Wtraditional -Wtraditional-conversion
  602. -Wdeclaration-after-statement -Wpointer-sign
  603. _Debugging Options_
  604. *Note Options for Debugging Your Program: Debugging Options.
  605. -g -gLEVEL -gdwarf -gdwarf-VERSION
  606. -ggdb -grecord-gcc-switches -gno-record-gcc-switches
  607. -gstabs -gstabs+ -gstrict-dwarf -gno-strict-dwarf
  608. -gas-loc-support -gno-as-loc-support
  609. -gas-locview-support -gno-as-locview-support
  610. -gcolumn-info -gno-column-info
  611. -gstatement-frontiers -gno-statement-frontiers
  612. -gvariable-location-views -gno-variable-location-views
  613. -ginternal-reset-location-views -gno-internal-reset-location-views
  614. -ginline-points -gno-inline-points
  615. -gvms -gxcoff -gxcoff+ -gz[=TYPE]
  616. -gsplit-dwarf -gdescribe-dies -gno-describe-dies
  617. -fdebug-prefix-map=OLD=NEW -fdebug-types-section
  618. -fno-eliminate-unused-debug-types
  619. -femit-struct-debug-baseonly -femit-struct-debug-reduced
  620. -femit-struct-debug-detailed[=SPEC-LIST]
  621. -feliminate-unused-debug-symbols -femit-class-debug-always
  622. -fno-merge-debug-strings -fno-dwarf2-cfi-asm
  623. -fvar-tracking -fvar-tracking-assignments
  624. _Optimization Options_
  625. *Note Options that Control Optimization: Optimize Options.
  626. -faggressive-loop-optimizations
  627. -falign-functions[=N[:M:[N2[:M2]]]]
  628. -falign-jumps[=N[:M:[N2[:M2]]]]
  629. -falign-labels[=N[:M:[N2[:M2]]]]
  630. -falign-loops[=N[:M:[N2[:M2]]]]
  631. -fassociative-math -fauto-profile -fauto-profile[=PATH]
  632. -fauto-inc-dec -fbranch-probabilities
  633. -fbranch-target-load-optimize -fbranch-target-load-optimize2
  634. -fbtr-bb-exclusive -fcaller-saves
  635. -fcombine-stack-adjustments -fconserve-stack
  636. -fcompare-elim -fcprop-registers -fcrossjumping
  637. -fcse-follow-jumps -fcse-skip-blocks -fcx-fortran-rules
  638. -fcx-limited-range
  639. -fdata-sections -fdce -fdelayed-branch
  640. -fdelete-null-pointer-checks -fdevirtualize -fdevirtualize-speculatively
  641. -fdevirtualize-at-ltrans -fdse
  642. -fearly-inlining -fipa-sra -fexpensive-optimizations -ffat-lto-objects
  643. -ffast-math -ffinite-math-only -ffloat-store -fexcess-precision=STYLE
  644. -fforward-propagate -ffp-contract=STYLE -ffunction-sections
  645. -fgcse -fgcse-after-reload -fgcse-las -fgcse-lm -fgraphite-identity
  646. -fgcse-sm -fhoist-adjacent-loads -fif-conversion
  647. -fif-conversion2 -findirect-inlining
  648. -finline-functions -finline-functions-called-once -finline-limit=N
  649. -finline-small-functions -fipa-cp -fipa-cp-clone
  650. -fipa-bit-cp -fipa-vrp -fipa-pta -fipa-profile -fipa-pure-const
  651. -fipa-reference -fipa-reference-addressable
  652. -fipa-stack-alignment -fipa-icf -fira-algorithm=ALGORITHM
  653. -flive-patching=LEVEL
  654. -fira-region=REGION -fira-hoist-pressure
  655. -fira-loop-pressure -fno-ira-share-save-slots
  656. -fno-ira-share-spill-slots
  657. -fisolate-erroneous-paths-dereference -fisolate-erroneous-paths-attribute
  658. -fivopts -fkeep-inline-functions -fkeep-static-functions
  659. -fkeep-static-consts -flimit-function-alignment -flive-range-shrinkage
  660. -floop-block -floop-interchange -floop-strip-mine
  661. -floop-unroll-and-jam -floop-nest-optimize
  662. -floop-parallelize-all -flra-remat -flto -flto-compression-level
  663. -flto-partition=ALG -fmerge-all-constants
  664. -fmerge-constants -fmodulo-sched -fmodulo-sched-allow-regmoves
  665. -fmove-loop-invariants -fno-branch-count-reg
  666. -fno-defer-pop -fno-fp-int-builtin-inexact -fno-function-cse
  667. -fno-guess-branch-probability -fno-inline -fno-math-errno -fno-peephole
  668. -fno-peephole2 -fno-printf-return-value -fno-sched-interblock
  669. -fno-sched-spec -fno-signed-zeros
  670. -fno-toplevel-reorder -fno-trapping-math -fno-zero-initialized-in-bss
  671. -fomit-frame-pointer -foptimize-sibling-calls
  672. -fpartial-inlining -fpeel-loops -fpredictive-commoning
  673. -fprefetch-loop-arrays
  674. -fprofile-correction
  675. -fprofile-use -fprofile-use=PATH -fprofile-values
  676. -fprofile-reorder-functions
  677. -freciprocal-math -free -frename-registers -freorder-blocks
  678. -freorder-blocks-algorithm=ALGORITHM
  679. -freorder-blocks-and-partition -freorder-functions
  680. -frerun-cse-after-loop -freschedule-modulo-scheduled-loops
  681. -frounding-math -fsave-optimization-record
  682. -fsched2-use-superblocks -fsched-pressure
  683. -fsched-spec-load -fsched-spec-load-dangerous
  684. -fsched-stalled-insns-dep[=N] -fsched-stalled-insns[=N]
  685. -fsched-group-heuristic -fsched-critical-path-heuristic
  686. -fsched-spec-insn-heuristic -fsched-rank-heuristic
  687. -fsched-last-insn-heuristic -fsched-dep-count-heuristic
  688. -fschedule-fusion
  689. -fschedule-insns -fschedule-insns2 -fsection-anchors
  690. -fselective-scheduling -fselective-scheduling2
  691. -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
  692. -fsemantic-interposition -fshrink-wrap -fshrink-wrap-separate
  693. -fsignaling-nans
  694. -fsingle-precision-constant -fsplit-ivs-in-unroller -fsplit-loops
  695. -fsplit-paths
  696. -fsplit-wide-types -fssa-backprop -fssa-phiopt
  697. -fstdarg-opt -fstore-merging -fstrict-aliasing
  698. -fthread-jumps -ftracer -ftree-bit-ccp
  699. -ftree-builtin-call-dce -ftree-ccp -ftree-ch
  700. -ftree-coalesce-vars -ftree-copy-prop -ftree-dce -ftree-dominator-opts
  701. -ftree-dse -ftree-forwprop -ftree-fre -fcode-hoisting
  702. -ftree-loop-if-convert -ftree-loop-im
  703. -ftree-phiprop -ftree-loop-distribution -ftree-loop-distribute-patterns
  704. -ftree-loop-ivcanon -ftree-loop-linear -ftree-loop-optimize
  705. -ftree-loop-vectorize
  706. -ftree-parallelize-loops=N -ftree-pre -ftree-partial-pre -ftree-pta
  707. -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-slsr -ftree-sra
  708. -ftree-switch-conversion -ftree-tail-merge
  709. -ftree-ter -ftree-vectorize -ftree-vrp -funconstrained-commons
  710. -funit-at-a-time -funroll-all-loops -funroll-loops
  711. -funsafe-math-optimizations -funswitch-loops
  712. -fipa-ra -fvariable-expansion-in-unroller -fvect-cost-model -fvpt
  713. -fweb -fwhole-program -fwpa -fuse-linker-plugin
  714. --param NAME=VALUE
  715. -O -O0 -O1 -O2 -O3 -Os -Ofast -Og
  716. _Program Instrumentation Options_
  717. *Note Program Instrumentation Options: Instrumentation Options.
  718. -p -pg -fprofile-arcs --coverage -ftest-coverage
  719. -fprofile-abs-path
  720. -fprofile-dir=PATH -fprofile-generate -fprofile-generate=PATH
  721. -fprofile-update=METHOD -fprofile-filter-files=REGEX
  722. -fprofile-exclude-files=REGEX
  723. -fsanitize=STYLE -fsanitize-recover -fsanitize-recover=STYLE
  724. -fasan-shadow-offset=NUMBER -fsanitize-sections=S1,S2,...
  725. -fsanitize-undefined-trap-on-error -fbounds-check
  726. -fcf-protection=[full|branch|return|none]
  727. -fstack-protector -fstack-protector-all -fstack-protector-strong
  728. -fstack-protector-explicit -fstack-check
  729. -fstack-limit-register=REG -fstack-limit-symbol=SYM
  730. -fno-stack-limit -fsplit-stack
  731. -fvtable-verify=[std|preinit|none]
  732. -fvtv-counts -fvtv-debug
  733. -finstrument-functions
  734. -finstrument-functions-exclude-function-list=SYM,SYM,...
  735. -finstrument-functions-exclude-file-list=FILE,FILE,...
  736. _Preprocessor Options_
  737. *Note Options Controlling the Preprocessor: Preprocessor Options.
  738. -AQUESTION=ANSWER
  739. -A-QUESTION[=ANSWER]
  740. -C -CC -DMACRO[=DEFN]
  741. -dD -dI -dM -dN -dU
  742. -fdebug-cpp -fdirectives-only -fdollars-in-identifiers
  743. -fexec-charset=CHARSET -fextended-identifiers
  744. -finput-charset=CHARSET -fmacro-prefix-map=OLD=NEW
  745. -fno-canonical-system-headers -fpch-deps -fpch-preprocess
  746. -fpreprocessed -ftabstop=WIDTH -ftrack-macro-expansion
  747. -fwide-exec-charset=CHARSET -fworking-directory
  748. -H -imacros FILE -include FILE
  749. -M -MD -MF -MG -MM -MMD -MP -MQ -MT
  750. -no-integrated-cpp -P -pthread -remap
  751. -traditional -traditional-cpp -trigraphs
  752. -UMACRO -undef
  753. -Wp,OPTION -Xpreprocessor OPTION
  754. _Assembler Options_
  755. *Note Passing Options to the Assembler: Assembler Options.
  756. -Wa,OPTION -Xassembler OPTION
  757. _Linker Options_
  758. *Note Options for Linking: Link Options.
  759. OBJECT-FILE-NAME -fuse-ld=LINKER -lLIBRARY
  760. -nostartfiles -nodefaultlibs -nolibc -nostdlib
  761. -e ENTRY --entry=ENTRY
  762. -pie -pthread -r -rdynamic
  763. -s -static -static-pie -static-libgcc -static-libstdc++
  764. -static-libasan -static-libtsan -static-liblsan -static-libubsan
  765. -shared -shared-libgcc -symbolic
  766. -T SCRIPT -Wl,OPTION -Xlinker OPTION
  767. -u SYMBOL -z KEYWORD
  768. _Directory Options_
  769. *Note Options for Directory Search: Directory Options.
  770. -BPREFIX -IDIR -I-
  771. -idirafter DIR
  772. -imacros FILE -imultilib DIR
  773. -iplugindir=DIR -iprefix FILE
  774. -iquote DIR -isysroot DIR -isystem DIR
  775. -iwithprefix DIR -iwithprefixbefore DIR
  776. -LDIR -no-canonical-prefixes --no-sysroot-suffix
  777. -nostdinc -nostdinc++ --sysroot=DIR
  778. _Code Generation Options_
  779. *Note Options for Code Generation Conventions: Code Gen Options.
  780. -fcall-saved-REG -fcall-used-REG
  781. -ffixed-REG -fexceptions
  782. -fnon-call-exceptions -fdelete-dead-exceptions -funwind-tables
  783. -fasynchronous-unwind-tables
  784. -fno-gnu-unique
  785. -finhibit-size-directive -fno-common -fno-ident
  786. -fpcc-struct-return -fpic -fPIC -fpie -fPIE -fno-plt
  787. -fno-jump-tables
  788. -frecord-gcc-switches
  789. -freg-struct-return -fshort-enums -fshort-wchar
  790. -fverbose-asm -fpack-struct[=N]
  791. -fleading-underscore -ftls-model=MODEL
  792. -fstack-reuse=REUSE_LEVEL
  793. -ftrampolines -ftrapv -fwrapv
  794. -fvisibility=[default|internal|hidden|protected]
  795. -fstrict-volatile-bitfields -fsync-libcalls
  796. _Developer Options_
  797. *Note GCC Developer Options: Developer Options.
  798. -dLETTERS -dumpspecs -dumpmachine -dumpversion
  799. -dumpfullversion -fchecking -fchecking=N -fdbg-cnt-list
  800. -fdbg-cnt=COUNTER-VALUE-LIST
  801. -fdisable-ipa-PASS_NAME
  802. -fdisable-rtl-PASS_NAME
  803. -fdisable-rtl-PASS-NAME=RANGE-LIST
  804. -fdisable-tree-PASS_NAME
  805. -fdisable-tree-PASS-NAME=RANGE-LIST
  806. -fdump-debug -fdump-earlydebug
  807. -fdump-noaddr -fdump-unnumbered -fdump-unnumbered-links
  808. -fdump-final-insns[=FILE]
  809. -fdump-ipa-all -fdump-ipa-cgraph -fdump-ipa-inline
  810. -fdump-lang-all
  811. -fdump-lang-SWITCH
  812. -fdump-lang-SWITCH-OPTIONS
  813. -fdump-lang-SWITCH-OPTIONS=FILENAME
  814. -fdump-passes
  815. -fdump-rtl-PASS -fdump-rtl-PASS=FILENAME
  816. -fdump-statistics
  817. -fdump-tree-all
  818. -fdump-tree-SWITCH
  819. -fdump-tree-SWITCH-OPTIONS
  820. -fdump-tree-SWITCH-OPTIONS=FILENAME
  821. -fcompare-debug[=OPTS] -fcompare-debug-second
  822. -fenable-KIND-PASS
  823. -fenable-KIND-PASS=RANGE-LIST
  824. -fira-verbose=N
  825. -flto-report -flto-report-wpa -fmem-report-wpa
  826. -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report
  827. -fopt-info -fopt-info-OPTIONS[=FILE]
  828. -fprofile-report
  829. -frandom-seed=STRING -fsched-verbose=N
  830. -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose
  831. -fstats -fstack-usage -ftime-report -ftime-report-details
  832. -fvar-tracking-assignments-toggle -gtoggle
  833. -print-file-name=LIBRARY -print-libgcc-file-name
  834. -print-multi-directory -print-multi-lib -print-multi-os-directory
  835. -print-prog-name=PROGRAM -print-search-dirs -Q
  836. -print-sysroot -print-sysroot-headers-suffix
  837. -save-temps -save-temps=cwd -save-temps=obj -time[=FILE]
  838. _Machine-Dependent Options_
  839. *Note Machine-Dependent Options: Submodel Options.
  840. _AArch64 Options_
  841. -mabi=NAME -mbig-endian -mlittle-endian
  842. -mgeneral-regs-only
  843. -mcmodel=tiny -mcmodel=small -mcmodel=large
  844. -mstrict-align -mno-strict-align
  845. -momit-leaf-frame-pointer
  846. -mtls-dialect=desc -mtls-dialect=traditional
  847. -mtls-size=SIZE
  848. -mfix-cortex-a53-835769 -mfix-cortex-a53-843419
  849. -mlow-precision-recip-sqrt -mlow-precision-sqrt -mlow-precision-div
  850. -mpc-relative-literal-loads
  851. -msign-return-address=SCOPE
  852. -mbranch-protection=NONE|STANDARD|PAC-RET[+LEAF]|BTI
  853. -march=NAME -mcpu=NAME -mtune=NAME
  854. -moverride=STRING -mverbose-cost-dump
  855. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=SYSREG
  856. -mstack-protector-guard-offset=OFFSET -mtrack-speculation
  857. _Adapteva Epiphany Options_
  858. -mhalf-reg-file -mprefer-short-insn-regs
  859. -mbranch-cost=NUM -mcmove -mnops=NUM -msoft-cmpsf
  860. -msplit-lohi -mpost-inc -mpost-modify -mstack-offset=NUM
  861. -mround-nearest -mlong-calls -mshort-calls -msmall16
  862. -mfp-mode=MODE -mvect-double -max-vect-align=NUM
  863. -msplit-vecmove-early -m1reg-REG
  864. _AMD GCN Options_
  865. -march=GPU -mtune=GPU -mstack-size=BYTES
  866. _ARC Options_
  867. -mbarrel-shifter -mjli-always
  868. -mcpu=CPU -mA6 -mARC600 -mA7 -mARC700
  869. -mdpfp -mdpfp-compact -mdpfp-fast -mno-dpfp-lrsr
  870. -mea -mno-mpy -mmul32x16 -mmul64 -matomic
  871. -mnorm -mspfp -mspfp-compact -mspfp-fast -msimd -msoft-float -mswap
  872. -mcrc -mdsp-packa -mdvbf -mlock -mmac-d16 -mmac-24 -mrtsc -mswape
  873. -mtelephony -mxy -misize -mannotate-align -marclinux -marclinux_prof
  874. -mlong-calls -mmedium-calls -msdata -mirq-ctrl-saved
  875. -mrgf-banked-regs -mlpc-width=WIDTH -G NUM
  876. -mvolatile-cache -mtp-regno=REGNO
  877. -malign-call -mauto-modify-reg -mbbit-peephole -mno-brcc
  878. -mcase-vector-pcrel -mcompact-casesi -mno-cond-exec -mearly-cbranchsi
  879. -mexpand-adddi -mindexed-loads -mlra -mlra-priority-none
  880. -mlra-priority-compact mlra-priority-noncompact -mmillicode
  881. -mmixed-code -mq-class -mRcq -mRcw -msize-level=LEVEL
  882. -mtune=CPU -mmultcost=NUM -mcode-density-frame
  883. -munalign-prob-threshold=PROBABILITY -mmpy-option=MULTO
  884. -mdiv-rem -mcode-density -mll64 -mfpu=FPU -mrf16 -mbranch-index
  885. _ARM Options_
  886. -mapcs-frame -mno-apcs-frame
  887. -mabi=NAME
  888. -mapcs-stack-check -mno-apcs-stack-check
  889. -mapcs-reentrant -mno-apcs-reentrant
  890. -mgeneral-regs-only
  891. -msched-prolog -mno-sched-prolog
  892. -mlittle-endian -mbig-endian
  893. -mbe8 -mbe32
  894. -mfloat-abi=NAME
  895. -mfp16-format=NAME
  896. -mthumb-interwork -mno-thumb-interwork
  897. -mcpu=NAME -march=NAME -mfpu=NAME
  898. -mtune=NAME -mprint-tune-info
  899. -mstructure-size-boundary=N
  900. -mabort-on-noreturn
  901. -mlong-calls -mno-long-calls
  902. -msingle-pic-base -mno-single-pic-base
  903. -mpic-register=REG
  904. -mnop-fun-dllimport
  905. -mpoke-function-name
  906. -mthumb -marm -mflip-thumb
  907. -mtpcs-frame -mtpcs-leaf-frame
  908. -mcaller-super-interworking -mcallee-super-interworking
  909. -mtp=NAME -mtls-dialect=DIALECT
  910. -mword-relocations
  911. -mfix-cortex-m3-ldrd
  912. -munaligned-access
  913. -mneon-for-64bits
  914. -mslow-flash-data
  915. -masm-syntax-unified
  916. -mrestrict-it
  917. -mverbose-cost-dump
  918. -mpure-code
  919. -mcmse
  920. _AVR Options_
  921. -mmcu=MCU -mabsdata -maccumulate-args
  922. -mbranch-cost=COST
  923. -mcall-prologues -mgas-isr-prologues -mint8
  924. -mn_flash=SIZE -mno-interrupts
  925. -mmain-is-OS_task -mrelax -mrmw -mstrict-X -mtiny-stack
  926. -mfract-convert-truncate
  927. -mshort-calls -nodevicelib
  928. -Waddr-space-convert -Wmisspelled-isr
  929. _Blackfin Options_
  930. -mcpu=CPU[-SIREVISION]
  931. -msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer
  932. -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly
  933. -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library
  934. -mno-id-shared-library -mshared-library-id=N
  935. -mleaf-id-shared-library -mno-leaf-id-shared-library
  936. -msep-data -mno-sep-data -mlong-calls -mno-long-calls
  937. -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram
  938. -micplb
  939. _C6X Options_
  940. -mbig-endian -mlittle-endian -march=CPU
  941. -msim -msdata=SDATA-TYPE
  942. _CRIS Options_
  943. -mcpu=CPU -march=CPU -mtune=CPU
  944. -mmax-stack-frame=N -melinux-stacksize=N
  945. -metrax4 -metrax100 -mpdebug -mcc-init -mno-side-effects
  946. -mstack-align -mdata-align -mconst-align
  947. -m32-bit -m16-bit -m8-bit -mno-prologue-epilogue -mno-gotplt
  948. -melf -maout -melinux -mlinux -sim -sim2
  949. -mmul-bug-workaround -mno-mul-bug-workaround
  950. _CR16 Options_
  951. -mmac
  952. -mcr16cplus -mcr16c
  953. -msim -mint32 -mbit-ops
  954. -mdata-model=MODEL
  955. _C-SKY Options_
  956. -march=ARCH -mcpu=CPU
  957. -mbig-endian -EB -mlittle-endian -EL
  958. -mhard-float -msoft-float -mfpu=FPU -mdouble-float -mfdivdu
  959. -melrw -mistack -mmp -mcp -mcache -msecurity -mtrust
  960. -mdsp -medsp -mvdsp
  961. -mdiv -msmart -mhigh-registers -manchor
  962. -mpushpop -mmultiple-stld -mconstpool -mstack-size -mccrt
  963. -mbranch-cost=N -mcse-cc -msched-prolog
  964. _Darwin Options_
  965. -all_load -allowable_client -arch -arch_errors_fatal
  966. -arch_only -bind_at_load -bundle -bundle_loader
  967. -client_name -compatibility_version -current_version
  968. -dead_strip
  969. -dependency-file -dylib_file -dylinker_install_name
  970. -dynamic -dynamiclib -exported_symbols_list
  971. -filelist -flat_namespace -force_cpusubtype_ALL
  972. -force_flat_namespace -headerpad_max_install_names
  973. -iframework
  974. -image_base -init -install_name -keep_private_externs
  975. -multi_module -multiply_defined -multiply_defined_unused
  976. -noall_load -no_dead_strip_inits_and_terms
  977. -nofixprebinding -nomultidefs -noprebind -noseglinkedit
  978. -pagezero_size -prebind -prebind_all_twolevel_modules
  979. -private_bundle -read_only_relocs -sectalign
  980. -sectobjectsymbols -whyload -seg1addr
  981. -sectcreate -sectobjectsymbols -sectorder
  982. -segaddr -segs_read_only_addr -segs_read_write_addr
  983. -seg_addr_table -seg_addr_table_filename -seglinkedit
  984. -segprot -segs_read_only_addr -segs_read_write_addr
  985. -single_module -static -sub_library -sub_umbrella
  986. -twolevel_namespace -umbrella -undefined
  987. -unexported_symbols_list -weak_reference_mismatches
  988. -whatsloaded -F -gused -gfull -mmacosx-version-min=VERSION
  989. -mkernel -mone-byte-bool
  990. _DEC Alpha Options_
  991. -mno-fp-regs -msoft-float
  992. -mieee -mieee-with-inexact -mieee-conformant
  993. -mfp-trap-mode=MODE -mfp-rounding-mode=MODE
  994. -mtrap-precision=MODE -mbuild-constants
  995. -mcpu=CPU-TYPE -mtune=CPU-TYPE
  996. -mbwx -mmax -mfix -mcix
  997. -mfloat-vax -mfloat-ieee
  998. -mexplicit-relocs -msmall-data -mlarge-data
  999. -msmall-text -mlarge-text
  1000. -mmemory-latency=TIME
  1001. _FR30 Options_
  1002. -msmall-model -mno-lsim
  1003. _FT32 Options_
  1004. -msim -mlra -mnodiv -mft32b -mcompress -mnopm
  1005. _FRV Options_
  1006. -mgpr-32 -mgpr-64 -mfpr-32 -mfpr-64
  1007. -mhard-float -msoft-float
  1008. -malloc-cc -mfixed-cc -mdword -mno-dword
  1009. -mdouble -mno-double
  1010. -mmedia -mno-media -mmuladd -mno-muladd
  1011. -mfdpic -minline-plt -mgprel-ro -multilib-library-pic
  1012. -mlinked-fp -mlong-calls -malign-labels
  1013. -mlibrary-pic -macc-4 -macc-8
  1014. -mpack -mno-pack -mno-eflags -mcond-move -mno-cond-move
  1015. -moptimize-membar -mno-optimize-membar
  1016. -mscc -mno-scc -mcond-exec -mno-cond-exec
  1017. -mvliw-branch -mno-vliw-branch
  1018. -mmulti-cond-exec -mno-multi-cond-exec -mnested-cond-exec
  1019. -mno-nested-cond-exec -mtomcat-stats
  1020. -mTLS -mtls
  1021. -mcpu=CPU
  1022. _GNU/Linux Options_
  1023. -mglibc -muclibc -mmusl -mbionic -mandroid
  1024. -tno-android-cc -tno-android-ld
  1025. _H8/300 Options_
  1026. -mrelax -mh -ms -mn -mexr -mno-exr -mint32 -malign-300
  1027. _HPPA Options_
  1028. -march=ARCHITECTURE-TYPE
  1029. -mcaller-copies -mdisable-fpregs -mdisable-indexing
  1030. -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld
  1031. -mfixed-range=REGISTER-RANGE
  1032. -mjump-in-delay -mlinker-opt -mlong-calls
  1033. -mlong-load-store -mno-disable-fpregs
  1034. -mno-disable-indexing -mno-fast-indirect-calls -mno-gas
  1035. -mno-jump-in-delay -mno-long-load-store
  1036. -mno-portable-runtime -mno-soft-float
  1037. -mno-space-regs -msoft-float -mpa-risc-1-0
  1038. -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime
  1039. -mschedule=CPU-TYPE -mspace-regs -msio -mwsio
  1040. -munix=UNIX-STD -nolibdld -static -threads
  1041. _IA-64 Options_
  1042. -mbig-endian -mlittle-endian -mgnu-as -mgnu-ld -mno-pic
  1043. -mvolatile-asm-stop -mregister-names -msdata -mno-sdata
  1044. -mconstant-gp -mauto-pic -mfused-madd
  1045. -minline-float-divide-min-latency
  1046. -minline-float-divide-max-throughput
  1047. -mno-inline-float-divide
  1048. -minline-int-divide-min-latency
  1049. -minline-int-divide-max-throughput
  1050. -mno-inline-int-divide
  1051. -minline-sqrt-min-latency -minline-sqrt-max-throughput
  1052. -mno-inline-sqrt
  1053. -mdwarf2-asm -mearly-stop-bits
  1054. -mfixed-range=REGISTER-RANGE -mtls-size=TLS-SIZE
  1055. -mtune=CPU-TYPE -milp32 -mlp64
  1056. -msched-br-data-spec -msched-ar-data-spec -msched-control-spec
  1057. -msched-br-in-data-spec -msched-ar-in-data-spec -msched-in-control-spec
  1058. -msched-spec-ldc -msched-spec-control-ldc
  1059. -msched-prefer-non-data-spec-insns -msched-prefer-non-control-spec-insns
  1060. -msched-stop-bits-after-every-cycle -msched-count-spec-in-critical-path
  1061. -msel-sched-dont-check-control-spec -msched-fp-mem-deps-zero-cost
  1062. -msched-max-memory-insns-hard-limit -msched-max-memory-insns=MAX-INSNS
  1063. _LM32 Options_
  1064. -mbarrel-shift-enabled -mdivide-enabled -mmultiply-enabled
  1065. -msign-extend-enabled -muser-enabled
  1066. _M32R/D Options_
  1067. -m32r2 -m32rx -m32r
  1068. -mdebug
  1069. -malign-loops -mno-align-loops
  1070. -missue-rate=NUMBER
  1071. -mbranch-cost=NUMBER
  1072. -mmodel=CODE-SIZE-MODEL-TYPE
  1073. -msdata=SDATA-TYPE
  1074. -mno-flush-func -mflush-func=NAME
  1075. -mno-flush-trap -mflush-trap=NUMBER
  1076. -G NUM
  1077. _M32C Options_
  1078. -mcpu=CPU -msim -memregs=NUMBER
  1079. _M680x0 Options_
  1080. -march=ARCH -mcpu=CPU -mtune=TUNE
  1081. -m68000 -m68020 -m68020-40 -m68020-60 -m68030 -m68040
  1082. -m68060 -mcpu32 -m5200 -m5206e -m528x -m5307 -m5407
  1083. -mcfv4e -mbitfield -mno-bitfield -mc68000 -mc68020
  1084. -mnobitfield -mrtd -mno-rtd -mdiv -mno-div -mshort
  1085. -mno-short -mhard-float -m68881 -msoft-float -mpcrel
  1086. -malign-int -mstrict-align -msep-data -mno-sep-data
  1087. -mshared-library-id=n -mid-shared-library -mno-id-shared-library
  1088. -mxgot -mno-xgot -mlong-jump-table-offsets
  1089. _MCore Options_
  1090. -mhardlit -mno-hardlit -mdiv -mno-div -mrelax-immediates
  1091. -mno-relax-immediates -mwide-bitfields -mno-wide-bitfields
  1092. -m4byte-functions -mno-4byte-functions -mcallgraph-data
  1093. -mno-callgraph-data -mslow-bytes -mno-slow-bytes -mno-lsim
  1094. -mlittle-endian -mbig-endian -m210 -m340 -mstack-increment
  1095. _MeP Options_
  1096. -mabsdiff -mall-opts -maverage -mbased=N -mbitops
  1097. -mc=N -mclip -mconfig=NAME -mcop -mcop32 -mcop64 -mivc2
  1098. -mdc -mdiv -meb -mel -mio-volatile -ml -mleadz -mm -mminmax
  1099. -mmult -mno-opts -mrepeat -ms -msatur -msdram -msim -msimnovec -mtf
  1100. -mtiny=N
  1101. _MicroBlaze Options_
  1102. -msoft-float -mhard-float -msmall-divides -mcpu=CPU
  1103. -mmemcpy -mxl-soft-mul -mxl-soft-div -mxl-barrel-shift
  1104. -mxl-pattern-compare -mxl-stack-check -mxl-gp-opt -mno-clearbss
  1105. -mxl-multiply-high -mxl-float-convert -mxl-float-sqrt
  1106. -mbig-endian -mlittle-endian -mxl-reorder -mxl-mode-APP-MODEL
  1107. -mpic-data-is-text-relative
  1108. _MIPS Options_
  1109. -EL -EB -march=ARCH -mtune=ARCH
  1110. -mips1 -mips2 -mips3 -mips4 -mips32 -mips32r2 -mips32r3 -mips32r5
  1111. -mips32r6 -mips64 -mips64r2 -mips64r3 -mips64r5 -mips64r6
  1112. -mips16 -mno-mips16 -mflip-mips16
  1113. -minterlink-compressed -mno-interlink-compressed
  1114. -minterlink-mips16 -mno-interlink-mips16
  1115. -mabi=ABI -mabicalls -mno-abicalls
  1116. -mshared -mno-shared -mplt -mno-plt -mxgot -mno-xgot
  1117. -mgp32 -mgp64 -mfp32 -mfpxx -mfp64 -mhard-float -msoft-float
  1118. -mno-float -msingle-float -mdouble-float
  1119. -modd-spreg -mno-odd-spreg
  1120. -mabs=MODE -mnan=ENCODING
  1121. -mdsp -mno-dsp -mdspr2 -mno-dspr2
  1122. -mmcu -mmno-mcu
  1123. -meva -mno-eva
  1124. -mvirt -mno-virt
  1125. -mxpa -mno-xpa
  1126. -mcrc -mno-crc
  1127. -mginv -mno-ginv
  1128. -mmicromips -mno-micromips
  1129. -mmsa -mno-msa
  1130. -mloongson-mmi -mno-loongson-mmi
  1131. -mloongson-ext -mno-loongson-ext
  1132. -mloongson-ext2 -mno-loongson-ext2
  1133. -mfpu=FPU-TYPE
  1134. -msmartmips -mno-smartmips
  1135. -mpaired-single -mno-paired-single -mdmx -mno-mdmx
  1136. -mips3d -mno-mips3d -mmt -mno-mt -mllsc -mno-llsc
  1137. -mlong64 -mlong32 -msym32 -mno-sym32
  1138. -GNUM -mlocal-sdata -mno-local-sdata
  1139. -mextern-sdata -mno-extern-sdata -mgpopt -mno-gopt
  1140. -membedded-data -mno-embedded-data
  1141. -muninit-const-in-rodata -mno-uninit-const-in-rodata
  1142. -mcode-readable=SETTING
  1143. -msplit-addresses -mno-split-addresses
  1144. -mexplicit-relocs -mno-explicit-relocs
  1145. -mcheck-zero-division -mno-check-zero-division
  1146. -mdivide-traps -mdivide-breaks
  1147. -mload-store-pairs -mno-load-store-pairs
  1148. -mmemcpy -mno-memcpy -mlong-calls -mno-long-calls
  1149. -mmad -mno-mad -mimadd -mno-imadd -mfused-madd -mno-fused-madd -nocpp
  1150. -mfix-24k -mno-fix-24k
  1151. -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
  1152. -mfix-r5900 -mno-fix-r5900
  1153. -mfix-r10000 -mno-fix-r10000 -mfix-rm7000 -mno-fix-rm7000
  1154. -mfix-vr4120 -mno-fix-vr4120
  1155. -mfix-vr4130 -mno-fix-vr4130 -mfix-sb1 -mno-fix-sb1
  1156. -mflush-func=FUNC -mno-flush-func
  1157. -mbranch-cost=NUM -mbranch-likely -mno-branch-likely
  1158. -mcompact-branches=POLICY
  1159. -mfp-exceptions -mno-fp-exceptions
  1160. -mvr4130-align -mno-vr4130-align -msynci -mno-synci
  1161. -mlxc1-sxc1 -mno-lxc1-sxc1 -mmadd4 -mno-madd4
  1162. -mrelax-pic-calls -mno-relax-pic-calls -mmcount-ra-address
  1163. -mframe-header-opt -mno-frame-header-opt
  1164. _MMIX Options_
  1165. -mlibfuncs -mno-libfuncs -mepsilon -mno-epsilon -mabi=gnu
  1166. -mabi=mmixware -mzero-extend -mknuthdiv -mtoplevel-symbols
  1167. -melf -mbranch-predict -mno-branch-predict -mbase-addresses
  1168. -mno-base-addresses -msingle-exit -mno-single-exit
  1169. _MN10300 Options_
  1170. -mmult-bug -mno-mult-bug
  1171. -mno-am33 -mam33 -mam33-2 -mam34
  1172. -mtune=CPU-TYPE
  1173. -mreturn-pointer-on-d0
  1174. -mno-crt0 -mrelax -mliw -msetlb
  1175. _Moxie Options_
  1176. -meb -mel -mmul.x -mno-crt0
  1177. _MSP430 Options_
  1178. -msim -masm-hex -mmcu= -mcpu= -mlarge -msmall -mrelax
  1179. -mwarn-mcu
  1180. -mcode-region= -mdata-region=
  1181. -msilicon-errata= -msilicon-errata-warn=
  1182. -mhwmult= -minrt
  1183. _NDS32 Options_
  1184. -mbig-endian -mlittle-endian
  1185. -mreduced-regs -mfull-regs
  1186. -mcmov -mno-cmov
  1187. -mext-perf -mno-ext-perf
  1188. -mext-perf2 -mno-ext-perf2
  1189. -mext-string -mno-ext-string
  1190. -mv3push -mno-v3push
  1191. -m16bit -mno-16bit
  1192. -misr-vector-size=NUM
  1193. -mcache-block-size=NUM
  1194. -march=ARCH
  1195. -mcmodel=CODE-MODEL
  1196. -mctor-dtor -mrelax
  1197. _Nios II Options_
  1198. -G NUM -mgpopt=OPTION -mgpopt -mno-gpopt
  1199. -mgprel-sec=REGEXP -mr0rel-sec=REGEXP
  1200. -mel -meb
  1201. -mno-bypass-cache -mbypass-cache
  1202. -mno-cache-volatile -mcache-volatile
  1203. -mno-fast-sw-div -mfast-sw-div
  1204. -mhw-mul -mno-hw-mul -mhw-mulx -mno-hw-mulx -mno-hw-div -mhw-div
  1205. -mcustom-INSN=N -mno-custom-INSN
  1206. -mcustom-fpu-cfg=NAME
  1207. -mhal -msmallc -msys-crt0=NAME -msys-lib=NAME
  1208. -march=ARCH -mbmx -mno-bmx -mcdx -mno-cdx
  1209. _Nvidia PTX Options_
  1210. -m32 -m64 -mmainkernel -moptimize
  1211. _OpenRISC Options_
  1212. -mboard=NAME -mnewlib -mhard-mul -mhard-div
  1213. -msoft-mul -msoft-div
  1214. -mcmov -mror -msext -msfimm -mshftimm
  1215. _PDP-11 Options_
  1216. -mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10
  1217. -mint32 -mno-int16 -mint16 -mno-int32
  1218. -msplit -munix-asm -mdec-asm -mgnu-asm -mlra
  1219. _picoChip Options_
  1220. -mae=AE_TYPE -mvliw-lookahead=N
  1221. -msymbol-as-address -mno-inefficient-warnings
  1222. _PowerPC Options_ See RS/6000 and PowerPC Options.
  1223. _RISC-V Options_
  1224. -mbranch-cost=N-INSTRUCTION
  1225. -mplt -mno-plt
  1226. -mabi=ABI-STRING
  1227. -mfdiv -mno-fdiv
  1228. -mdiv -mno-div
  1229. -march=ISA-STRING
  1230. -mtune=PROCESSOR-STRING
  1231. -mpreferred-stack-boundary=NUM
  1232. -msmall-data-limit=N-BYTES
  1233. -msave-restore -mno-save-restore
  1234. -mstrict-align -mno-strict-align
  1235. -mcmodel=medlow -mcmodel=medany
  1236. -mexplicit-relocs -mno-explicit-relocs
  1237. -mrelax -mno-relax
  1238. -mriscv-attribute -mmo-riscv-attribute
  1239. _RL78 Options_
  1240. -msim -mmul=none -mmul=g13 -mmul=g14 -mallregs
  1241. -mcpu=g10 -mcpu=g13 -mcpu=g14 -mg10 -mg13 -mg14
  1242. -m64bit-doubles -m32bit-doubles -msave-mduc-in-interrupts
  1243. _RS/6000 and PowerPC Options_
  1244. -mcpu=CPU-TYPE
  1245. -mtune=CPU-TYPE
  1246. -mcmodel=CODE-MODEL
  1247. -mpowerpc64
  1248. -maltivec -mno-altivec
  1249. -mpowerpc-gpopt -mno-powerpc-gpopt
  1250. -mpowerpc-gfxopt -mno-powerpc-gfxopt
  1251. -mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb -mpopcntd -mno-popcntd
  1252. -mfprnd -mno-fprnd
  1253. -mcmpb -mno-cmpb -mmfpgpr -mno-mfpgpr -mhard-dfp -mno-hard-dfp
  1254. -mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc
  1255. -m64 -m32 -mxl-compat -mno-xl-compat -mpe
  1256. -malign-power -malign-natural
  1257. -msoft-float -mhard-float -mmultiple -mno-multiple
  1258. -mupdate -mno-update
  1259. -mavoid-indexed-addresses -mno-avoid-indexed-addresses
  1260. -mfused-madd -mno-fused-madd -mbit-align -mno-bit-align
  1261. -mstrict-align -mno-strict-align -mrelocatable
  1262. -mno-relocatable -mrelocatable-lib -mno-relocatable-lib
  1263. -mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian
  1264. -mdynamic-no-pic -mswdiv -msingle-pic-base
  1265. -mprioritize-restricted-insns=PRIORITY
  1266. -msched-costly-dep=DEPENDENCE_TYPE
  1267. -minsert-sched-nops=SCHEME
  1268. -mcall-aixdesc -mcall-eabi -mcall-freebsd
  1269. -mcall-linux -mcall-netbsd -mcall-openbsd
  1270. -mcall-sysv -mcall-sysv-eabi -mcall-sysv-noeabi
  1271. -mtraceback=TRACEBACK_TYPE
  1272. -maix-struct-return -msvr4-struct-return
  1273. -mabi=ABI-TYPE -msecure-plt -mbss-plt
  1274. -mlongcall -mno-longcall -mpltseq -mno-pltseq
  1275. -mblock-move-inline-limit=NUM
  1276. -mblock-compare-inline-limit=NUM
  1277. -mblock-compare-inline-loop-limit=NUM
  1278. -mstring-compare-inline-limit=NUM
  1279. -misel -mno-isel
  1280. -mvrsave -mno-vrsave
  1281. -mmulhw -mno-mulhw
  1282. -mdlmzb -mno-dlmzb
  1283. -mprototype -mno-prototype
  1284. -msim -mmvme -mads -myellowknife -memb -msdata
  1285. -msdata=OPT -mreadonly-in-sdata -mvxworks -G NUM
  1286. -mrecip -mrecip=OPT -mno-recip -mrecip-precision
  1287. -mno-recip-precision
  1288. -mveclibabi=TYPE -mfriz -mno-friz
  1289. -mpointers-to-nested-functions -mno-pointers-to-nested-functions
  1290. -msave-toc-indirect -mno-save-toc-indirect
  1291. -mpower8-fusion -mno-mpower8-fusion -mpower8-vector -mno-power8-vector
  1292. -mcrypto -mno-crypto -mhtm -mno-htm
  1293. -mquad-memory -mno-quad-memory
  1294. -mquad-memory-atomic -mno-quad-memory-atomic
  1295. -mcompat-align-parm -mno-compat-align-parm
  1296. -mfloat128 -mno-float128 -mfloat128-hardware -mno-float128-hardware
  1297. -mgnu-attribute -mno-gnu-attribute
  1298. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=REG
  1299. -mstack-protector-guard-offset=OFFSET
  1300. _RX Options_
  1301. -m64bit-doubles -m32bit-doubles -fpu -nofpu
  1302. -mcpu=
  1303. -mbig-endian-data -mlittle-endian-data
  1304. -msmall-data
  1305. -msim -mno-sim
  1306. -mas100-syntax -mno-as100-syntax
  1307. -mrelax
  1308. -mmax-constant-size=
  1309. -mint-register=
  1310. -mpid
  1311. -mallow-string-insns -mno-allow-string-insns
  1312. -mjsr
  1313. -mno-warn-multiple-fast-interrupts
  1314. -msave-acc-in-interrupts
  1315. _S/390 and zSeries Options_
  1316. -mtune=CPU-TYPE -march=CPU-TYPE
  1317. -mhard-float -msoft-float -mhard-dfp -mno-hard-dfp
  1318. -mlong-double-64 -mlong-double-128
  1319. -mbackchain -mno-backchain -mpacked-stack -mno-packed-stack
  1320. -msmall-exec -mno-small-exec -mmvcle -mno-mvcle
  1321. -m64 -m31 -mdebug -mno-debug -mesa -mzarch
  1322. -mhtm -mvx -mzvector
  1323. -mtpf-trace -mno-tpf-trace -mfused-madd -mno-fused-madd
  1324. -mwarn-framesize -mwarn-dynamicstack -mstack-size -mstack-guard
  1325. -mhotpatch=HALFWORDS,HALFWORDS
  1326. _Score Options_
  1327. -meb -mel
  1328. -mnhwloop
  1329. -muls
  1330. -mmac
  1331. -mscore5 -mscore5u -mscore7 -mscore7d
  1332. _SH Options_
  1333. -m1 -m2 -m2e
  1334. -m2a-nofpu -m2a-single-only -m2a-single -m2a
  1335. -m3 -m3e
  1336. -m4-nofpu -m4-single-only -m4-single -m4
  1337. -m4a-nofpu -m4a-single-only -m4a-single -m4a -m4al
  1338. -mb -ml -mdalign -mrelax
  1339. -mbigtable -mfmovd -mrenesas -mno-renesas -mnomacsave
  1340. -mieee -mno-ieee -mbitops -misize -minline-ic_invalidate -mpadstruct
  1341. -mprefergot -musermode -multcost=NUMBER -mdiv=STRATEGY
  1342. -mdivsi3_libfunc=NAME -mfixed-range=REGISTER-RANGE
  1343. -maccumulate-outgoing-args
  1344. -matomic-model=ATOMIC-MODEL
  1345. -mbranch-cost=NUM -mzdcbranch -mno-zdcbranch
  1346. -mcbranch-force-delay-slot
  1347. -mfused-madd -mno-fused-madd -mfsca -mno-fsca -mfsrra -mno-fsrra
  1348. -mpretend-cmove -mtas
  1349. _Solaris 2 Options_
  1350. -mclear-hwcap -mno-clear-hwcap -mimpure-text -mno-impure-text
  1351. -pthreads
  1352. _SPARC Options_
  1353. -mcpu=CPU-TYPE
  1354. -mtune=CPU-TYPE
  1355. -mcmodel=CODE-MODEL
  1356. -mmemory-model=MEM-MODEL
  1357. -m32 -m64 -mapp-regs -mno-app-regs
  1358. -mfaster-structs -mno-faster-structs -mflat -mno-flat
  1359. -mfpu -mno-fpu -mhard-float -msoft-float
  1360. -mhard-quad-float -msoft-quad-float
  1361. -mstack-bias -mno-stack-bias
  1362. -mstd-struct-return -mno-std-struct-return
  1363. -munaligned-doubles -mno-unaligned-doubles
  1364. -muser-mode -mno-user-mode
  1365. -mv8plus -mno-v8plus -mvis -mno-vis
  1366. -mvis2 -mno-vis2 -mvis3 -mno-vis3
  1367. -mvis4 -mno-vis4 -mvis4b -mno-vis4b
  1368. -mcbcond -mno-cbcond -mfmaf -mno-fmaf -mfsmuld -mno-fsmuld
  1369. -mpopc -mno-popc -msubxc -mno-subxc
  1370. -mfix-at697f -mfix-ut699 -mfix-ut700 -mfix-gr712rc
  1371. -mlra -mno-lra
  1372. _SPU Options_
  1373. -mwarn-reloc -merror-reloc
  1374. -msafe-dma -munsafe-dma
  1375. -mbranch-hints
  1376. -msmall-mem -mlarge-mem -mstdmain
  1377. -mfixed-range=REGISTER-RANGE
  1378. -mea32 -mea64
  1379. -maddress-space-conversion -mno-address-space-conversion
  1380. -mcache-size=CACHE-SIZE
  1381. -matomic-updates -mno-atomic-updates
  1382. _System V Options_
  1383. -Qy -Qn -YP,PATHS -Ym,DIR
  1384. _TILE-Gx Options_
  1385. -mcpu=CPU -m32 -m64 -mbig-endian -mlittle-endian
  1386. -mcmodel=CODE-MODEL
  1387. _TILEPro Options_
  1388. -mcpu=CPU -m32
  1389. _V850 Options_
  1390. -mlong-calls -mno-long-calls -mep -mno-ep
  1391. -mprolog-function -mno-prolog-function -mspace
  1392. -mtda=N -msda=N -mzda=N
  1393. -mapp-regs -mno-app-regs
  1394. -mdisable-callt -mno-disable-callt
  1395. -mv850e2v3 -mv850e2 -mv850e1 -mv850es
  1396. -mv850e -mv850 -mv850e3v5
  1397. -mloop
  1398. -mrelax
  1399. -mlong-jumps
  1400. -msoft-float
  1401. -mhard-float
  1402. -mgcc-abi
  1403. -mrh850-abi
  1404. -mbig-switch
  1405. _VAX Options_
  1406. -mg -mgnu -munix
  1407. _Visium Options_
  1408. -mdebug -msim -mfpu -mno-fpu -mhard-float -msoft-float
  1409. -mcpu=CPU-TYPE -mtune=CPU-TYPE -msv-mode -muser-mode
  1410. _VMS Options_
  1411. -mvms-return-codes -mdebug-main=PREFIX -mmalloc64
  1412. -mpointer-size=SIZE
  1413. _VxWorks Options_
  1414. -mrtp -non-static -Bstatic -Bdynamic
  1415. -Xbind-lazy -Xbind-now
  1416. _x86 Options_
  1417. -mtune=CPU-TYPE -march=CPU-TYPE
  1418. -mtune-ctrl=FEATURE-LIST -mdump-tune-features -mno-default
  1419. -mfpmath=UNIT
  1420. -masm=DIALECT -mno-fancy-math-387
  1421. -mno-fp-ret-in-387 -m80387 -mhard-float -msoft-float
  1422. -mno-wide-multiply -mrtd -malign-double
  1423. -mpreferred-stack-boundary=NUM
  1424. -mincoming-stack-boundary=NUM
  1425. -mcld -mcx16 -msahf -mmovbe -mcrc32
  1426. -mrecip -mrecip=OPT
  1427. -mvzeroupper -mprefer-avx128 -mprefer-vector-width=OPT
  1428. -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx
  1429. -mavx2 -mavx512f -mavx512pf -mavx512er -mavx512cd -mavx512vl
  1430. -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -msha -maes
  1431. -mpclmul -mfsgsbase -mrdrnd -mf16c -mfma -mpconfig -mwbnoinvd
  1432. -mptwrite -mprefetchwt1 -mclflushopt -mclwb -mxsavec -mxsaves
  1433. -msse4a -m3dnow -m3dnowa -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop
  1434. -madx -mlzcnt -mbmi2 -mfxsr -mxsave -mxsaveopt -mrtm -mhle -mlwp
  1435. -mmwaitx -mclzero -mpku -mthreads -mgfni -mvaes -mwaitpkg
  1436. -mshstk -mmanual-endbr -mforce-indirect-call -mavx512vbmi2
  1437. -mvpclmulqdq -mavx512bitalg -mmovdiri -mmovdir64b -mavx512vpopcntdq
  1438. -mavx5124fmaps -mavx512vnni -mavx5124vnniw -mprfchw -mrdpid
  1439. -mrdseed -msgx
  1440. -mcldemote -mms-bitfields -mno-align-stringops -minline-all-stringops
  1441. -minline-stringops-dynamically -mstringop-strategy=ALG
  1442. -mmemcpy-strategy=STRATEGY -mmemset-strategy=STRATEGY
  1443. -mpush-args -maccumulate-outgoing-args -m128bit-long-double
  1444. -m96bit-long-double -mlong-double-64 -mlong-double-80 -mlong-double-128
  1445. -mregparm=NUM -msseregparm
  1446. -mveclibabi=TYPE -mvect8-ret-in-mem
  1447. -mpc32 -mpc64 -mpc80 -mstackrealign
  1448. -momit-leaf-frame-pointer -mno-red-zone -mno-tls-direct-seg-refs
  1449. -mcmodel=CODE-MODEL -mabi=NAME -maddress-mode=MODE
  1450. -m32 -m64 -mx32 -m16 -miamcu -mlarge-data-threshold=NUM
  1451. -msse2avx -mfentry -mrecord-mcount -mnop-mcount -m8bit-idiv
  1452. -minstrument-return=TYPE -mfentry-name=NAME -mfentry-section=NAME
  1453. -mavx256-split-unaligned-load -mavx256-split-unaligned-store
  1454. -malign-data=TYPE -mstack-protector-guard=GUARD
  1455. -mstack-protector-guard-reg=REG
  1456. -mstack-protector-guard-offset=OFFSET
  1457. -mstack-protector-guard-symbol=SYMBOL
  1458. -mgeneral-regs-only -mcall-ms2sysv-xlogues
  1459. -mindirect-branch=CHOICE -mfunction-return=CHOICE
  1460. -mindirect-branch-register
  1461. _x86 Windows Options_
  1462. -mconsole -mcygwin -mno-cygwin -mdll
  1463. -mnop-fun-dllimport -mthread
  1464. -municode -mwin32 -mwindows -fno-set-stack-executable
  1465. _Xstormy16 Options_
  1466. -msim
  1467. _Xtensa Options_
  1468. -mconst16 -mno-const16
  1469. -mfused-madd -mno-fused-madd
  1470. -mforce-no-pic
  1471. -mserialize-volatile -mno-serialize-volatile
  1472. -mtext-section-literals -mno-text-section-literals
  1473. -mauto-litpools -mno-auto-litpools
  1474. -mtarget-align -mno-target-align
  1475. -mlongcalls -mno-longcalls
  1476. _zSeries Options_ See S/390 and zSeries Options.
  1477. 
  1478. File: gcc.info, Node: Overall Options, Next: Invoking G++, Prev: Option Summary, Up: Invoking GCC
  1479. 3.2 Options Controlling the Kind of Output
  1480. ==========================================
  1481. Compilation can involve up to four stages: preprocessing, compilation
  1482. proper, assembly and linking, always in that order. GCC is capable of
  1483. preprocessing and compiling several files either into several assembler
  1484. input files, or into one assembler input file; then each assembler input
  1485. file produces an object file, and linking combines all the object files
  1486. (those newly compiled, and those specified as input) into an executable
  1487. file.
  1488. For any given input file, the file name suffix determines what kind of
  1489. compilation is done:
  1490. 'FILE.c'
  1491. C source code that must be preprocessed.
  1492. 'FILE.i'
  1493. C source code that should not be preprocessed.
  1494. 'FILE.ii'
  1495. C++ source code that should not be preprocessed.
  1496. 'FILE.m'
  1497. Objective-C source code. Note that you must link with the
  1498. 'libobjc' library to make an Objective-C program work.
  1499. 'FILE.mi'
  1500. Objective-C source code that should not be preprocessed.
  1501. 'FILE.mm'
  1502. 'FILE.M'
  1503. Objective-C++ source code. Note that you must link with the
  1504. 'libobjc' library to make an Objective-C++ program work. Note that
  1505. '.M' refers to a literal capital M.
  1506. 'FILE.mii'
  1507. Objective-C++ source code that should not be preprocessed.
  1508. 'FILE.h'
  1509. C, C++, Objective-C or Objective-C++ header file to be turned into
  1510. a precompiled header (default), or C, C++ header file to be turned
  1511. into an Ada spec (via the '-fdump-ada-spec' switch).
  1512. 'FILE.cc'
  1513. 'FILE.cp'
  1514. 'FILE.cxx'
  1515. 'FILE.cpp'
  1516. 'FILE.CPP'
  1517. 'FILE.c++'
  1518. 'FILE.C'
  1519. C++ source code that must be preprocessed. Note that in '.cxx',
  1520. the last two letters must both be literally 'x'. Likewise, '.C'
  1521. refers to a literal capital C.
  1522. 'FILE.mm'
  1523. 'FILE.M'
  1524. Objective-C++ source code that must be preprocessed.
  1525. 'FILE.mii'
  1526. Objective-C++ source code that should not be preprocessed.
  1527. 'FILE.hh'
  1528. 'FILE.H'
  1529. 'FILE.hp'
  1530. 'FILE.hxx'
  1531. 'FILE.hpp'
  1532. 'FILE.HPP'
  1533. 'FILE.h++'
  1534. 'FILE.tcc'
  1535. C++ header file to be turned into a precompiled header or Ada spec.
  1536. 'FILE.f'
  1537. 'FILE.for'
  1538. 'FILE.ftn'
  1539. Fixed form Fortran source code that should not be preprocessed.
  1540. 'FILE.F'
  1541. 'FILE.FOR'
  1542. 'FILE.fpp'
  1543. 'FILE.FPP'
  1544. 'FILE.FTN'
  1545. Fixed form Fortran source code that must be preprocessed (with the
  1546. traditional preprocessor).
  1547. 'FILE.f90'
  1548. 'FILE.f95'
  1549. 'FILE.f03'
  1550. 'FILE.f08'
  1551. Free form Fortran source code that should not be preprocessed.
  1552. 'FILE.F90'
  1553. 'FILE.F95'
  1554. 'FILE.F03'
  1555. 'FILE.F08'
  1556. Free form Fortran source code that must be preprocessed (with the
  1557. traditional preprocessor).
  1558. 'FILE.go'
  1559. Go source code.
  1560. 'FILE.brig'
  1561. BRIG files (binary representation of HSAIL).
  1562. 'FILE.d'
  1563. D source code.
  1564. 'FILE.di'
  1565. D interface file.
  1566. 'FILE.dd'
  1567. D documentation code (Ddoc).
  1568. 'FILE.ads'
  1569. Ada source code file that contains a library unit declaration (a
  1570. declaration of a package, subprogram, or generic, or a generic
  1571. instantiation), or a library unit renaming declaration (a package,
  1572. generic, or subprogram renaming declaration). Such files are also
  1573. called "specs".
  1574. 'FILE.adb'
  1575. Ada source code file containing a library unit body (a subprogram
  1576. or package body). Such files are also called "bodies".
  1577. 'FILE.s'
  1578. Assembler code.
  1579. 'FILE.S'
  1580. 'FILE.sx'
  1581. Assembler code that must be preprocessed.
  1582. 'OTHER'
  1583. An object file to be fed straight into linking. Any file name with
  1584. no recognized suffix is treated this way.
  1585. You can specify the input language explicitly with the '-x' option:
  1586. '-x LANGUAGE'
  1587. Specify explicitly the LANGUAGE for the following input files
  1588. (rather than letting the compiler choose a default based on the
  1589. file name suffix). This option applies to all following input
  1590. files until the next '-x' option. Possible values for LANGUAGE
  1591. are:
  1592. c c-header cpp-output
  1593. c++ c++-header c++-cpp-output
  1594. objective-c objective-c-header objective-c-cpp-output
  1595. objective-c++ objective-c++-header objective-c++-cpp-output
  1596. assembler assembler-with-cpp
  1597. ada
  1598. d
  1599. f77 f77-cpp-input f95 f95-cpp-input
  1600. go
  1601. brig
  1602. '-x none'
  1603. Turn off any specification of a language, so that subsequent files
  1604. are handled according to their file name suffixes (as they are if
  1605. '-x' has not been used at all).
  1606. If you only want some of the stages of compilation, you can use '-x'
  1607. (or filename suffixes) to tell 'gcc' where to start, and one of the
  1608. options '-c', '-S', or '-E' to say where 'gcc' is to stop. Note that
  1609. some combinations (for example, '-x cpp-output -E') instruct 'gcc' to do
  1610. nothing at all.
  1611. '-c'
  1612. Compile or assemble the source files, but do not link. The linking
  1613. stage simply is not done. The ultimate output is in the form of an
  1614. object file for each source file.
  1615. By default, the object file name for a source file is made by
  1616. replacing the suffix '.c', '.i', '.s', etc., with '.o'.
  1617. Unrecognized input files, not requiring compilation or assembly,
  1618. are ignored.
  1619. '-S'
  1620. Stop after the stage of compilation proper; do not assemble. The
  1621. output is in the form of an assembler code file for each
  1622. non-assembler input file specified.
  1623. By default, the assembler file name for a source file is made by
  1624. replacing the suffix '.c', '.i', etc., with '.s'.
  1625. Input files that don't require compilation are ignored.
  1626. '-E'
  1627. Stop after the preprocessing stage; do not run the compiler proper.
  1628. The output is in the form of preprocessed source code, which is
  1629. sent to the standard output.
  1630. Input files that don't require preprocessing are ignored.
  1631. '-o FILE'
  1632. Place output in file FILE. This applies to whatever sort of output
  1633. is being produced, whether it be an executable file, an object
  1634. file, an assembler file or preprocessed C code.
  1635. If '-o' is not specified, the default is to put an executable file
  1636. in 'a.out', the object file for 'SOURCE.SUFFIX' in 'SOURCE.o', its
  1637. assembler file in 'SOURCE.s', a precompiled header file in
  1638. 'SOURCE.SUFFIX.gch', and all preprocessed C source on standard
  1639. output.
  1640. '-v'
  1641. Print (on standard error output) the commands executed to run the
  1642. stages of compilation. Also print the version number of the
  1643. compiler driver program and of the preprocessor and the compiler
  1644. proper.
  1645. '-###'
  1646. Like '-v' except the commands are not executed and arguments are
  1647. quoted unless they contain only alphanumeric characters or './-_'.
  1648. This is useful for shell scripts to capture the driver-generated
  1649. command lines.
  1650. '--help'
  1651. Print (on the standard output) a description of the command-line
  1652. options understood by 'gcc'. If the '-v' option is also specified
  1653. then '--help' is also passed on to the various processes invoked by
  1654. 'gcc', so that they can display the command-line options they
  1655. accept. If the '-Wextra' option has also been specified (prior to
  1656. the '--help' option), then command-line options that have no
  1657. documentation associated with them are also displayed.
  1658. '--target-help'
  1659. Print (on the standard output) a description of target-specific
  1660. command-line options for each tool. For some targets extra
  1661. target-specific information may also be printed.
  1662. '--help={CLASS|[^]QUALIFIER}[,...]'
  1663. Print (on the standard output) a description of the command-line
  1664. options understood by the compiler that fit into all specified
  1665. classes and qualifiers. These are the supported classes:
  1666. 'optimizers'
  1667. Display all of the optimization options supported by the
  1668. compiler.
  1669. 'warnings'
  1670. Display all of the options controlling warning messages
  1671. produced by the compiler.
  1672. 'target'
  1673. Display target-specific options. Unlike the '--target-help'
  1674. option however, target-specific options of the linker and
  1675. assembler are not displayed. This is because those tools do
  1676. not currently support the extended '--help=' syntax.
  1677. 'params'
  1678. Display the values recognized by the '--param' option.
  1679. LANGUAGE
  1680. Display the options supported for LANGUAGE, where LANGUAGE is
  1681. the name of one of the languages supported in this version of
  1682. GCC.
  1683. 'common'
  1684. Display the options that are common to all languages.
  1685. These are the supported qualifiers:
  1686. 'undocumented'
  1687. Display only those options that are undocumented.
  1688. 'joined'
  1689. Display options taking an argument that appears after an equal
  1690. sign in the same continuous piece of text, such as:
  1691. '--help=target'.
  1692. 'separate'
  1693. Display options taking an argument that appears as a separate
  1694. word following the original option, such as: '-o output-file'.
  1695. Thus for example to display all the undocumented target-specific
  1696. switches supported by the compiler, use:
  1697. --help=target,undocumented
  1698. The sense of a qualifier can be inverted by prefixing it with the
  1699. '^' character, so for example to display all binary warning options
  1700. (i.e., ones that are either on or off and that do not take an
  1701. argument) that have a description, use:
  1702. --help=warnings,^joined,^undocumented
  1703. The argument to '--help=' should not consist solely of inverted
  1704. qualifiers.
  1705. Combining several classes is possible, although this usually
  1706. restricts the output so much that there is nothing to display. One
  1707. case where it does work, however, is when one of the classes is
  1708. TARGET. For example, to display all the target-specific
  1709. optimization options, use:
  1710. --help=target,optimizers
  1711. The '--help=' option can be repeated on the command line. Each
  1712. successive use displays its requested class of options, skipping
  1713. those that have already been displayed. If '--help' is also
  1714. specified anywhere on the command line then this takes precedence
  1715. over any '--help=' option.
  1716. If the '-Q' option appears on the command line before the '--help='
  1717. option, then the descriptive text displayed by '--help=' is
  1718. changed. Instead of describing the displayed options, an
  1719. indication is given as to whether the option is enabled, disabled
  1720. or set to a specific value (assuming that the compiler knows this
  1721. at the point where the '--help=' option is used).
  1722. Here is a truncated example from the ARM port of 'gcc':
  1723. % gcc -Q -mabi=2 --help=target -c
  1724. The following options are target specific:
  1725. -mabi= 2
  1726. -mabort-on-noreturn [disabled]
  1727. -mapcs [disabled]
  1728. The output is sensitive to the effects of previous command-line
  1729. options, so for example it is possible to find out which
  1730. optimizations are enabled at '-O2' by using:
  1731. -Q -O2 --help=optimizers
  1732. Alternatively you can discover which binary optimizations are
  1733. enabled by '-O3' by using:
  1734. gcc -c -Q -O3 --help=optimizers > /tmp/O3-opts
  1735. gcc -c -Q -O2 --help=optimizers > /tmp/O2-opts
  1736. diff /tmp/O2-opts /tmp/O3-opts | grep enabled
  1737. '--version'
  1738. Display the version number and copyrights of the invoked GCC.
  1739. '-pass-exit-codes'
  1740. Normally the 'gcc' program exits with the code of 1 if any phase of
  1741. the compiler returns a non-success return code. If you specify
  1742. '-pass-exit-codes', the 'gcc' program instead returns with the
  1743. numerically highest error produced by any phase returning an error
  1744. indication. The C, C++, and Fortran front ends return 4 if an
  1745. internal compiler error is encountered.
  1746. '-pipe'
  1747. Use pipes rather than temporary files for communication between the
  1748. various stages of compilation. This fails to work on some systems
  1749. where the assembler is unable to read from a pipe; but the GNU
  1750. assembler has no trouble.
  1751. '-specs=FILE'
  1752. Process FILE after the compiler reads in the standard 'specs' file,
  1753. in order to override the defaults which the 'gcc' driver program
  1754. uses when determining what switches to pass to 'cc1', 'cc1plus',
  1755. 'as', 'ld', etc. More than one '-specs=FILE' can be specified on
  1756. the command line, and they are processed in order, from left to
  1757. right. *Note Spec Files::, for information about the format of the
  1758. FILE.
  1759. '-wrapper'
  1760. Invoke all subcommands under a wrapper program. The name of the
  1761. wrapper program and its parameters are passed as a comma separated
  1762. list.
  1763. gcc -c t.c -wrapper gdb,--args
  1764. This invokes all subprograms of 'gcc' under 'gdb --args', thus the
  1765. invocation of 'cc1' is 'gdb --args cc1 ...'.
  1766. '-ffile-prefix-map=OLD=NEW'
  1767. When compiling files residing in directory 'OLD', record any
  1768. references to them in the result of the compilation as if the files
  1769. resided in directory 'NEW' instead. Specifying this option is
  1770. equivalent to specifying all the individual '-f*-prefix-map'
  1771. options. This can be used to make reproducible builds that are
  1772. location independent. See also '-fmacro-prefix-map' and
  1773. '-fdebug-prefix-map'.
  1774. '-fplugin=NAME.so'
  1775. Load the plugin code in file NAME.so, assumed to be a shared object
  1776. to be dlopen'd by the compiler. The base name of the shared object
  1777. file is used to identify the plugin for the purposes of argument
  1778. parsing (See '-fplugin-arg-NAME-KEY=VALUE' below). Each plugin
  1779. should define the callback functions specified in the Plugins API.
  1780. '-fplugin-arg-NAME-KEY=VALUE'
  1781. Define an argument called KEY with a value of VALUE for the plugin
  1782. called NAME.
  1783. '-fdump-ada-spec[-slim]'
  1784. For C and C++ source and include files, generate corresponding Ada
  1785. specs. *Note (gnat_ugn)Generating Ada Bindings for C and C++
  1786. headers::, which provides detailed documentation on this feature.
  1787. '-fada-spec-parent=UNIT'
  1788. In conjunction with '-fdump-ada-spec[-slim]' above, generate Ada
  1789. specs as child units of parent UNIT.
  1790. '-fdump-go-spec=FILE'
  1791. For input files in any language, generate corresponding Go
  1792. declarations in FILE. This generates Go 'const', 'type', 'var',
  1793. and 'func' declarations which may be a useful way to start writing
  1794. a Go interface to code written in some other language.
  1795. '@FILE'
  1796. Read command-line options from FILE. The options read are inserted
  1797. in place of the original @FILE option. If FILE does not exist, or
  1798. cannot be read, then the option will be treated literally, and not
  1799. removed.
  1800. Options in FILE are separated by whitespace. A whitespace
  1801. character may be included in an option by surrounding the entire
  1802. option in either single or double quotes. Any character (including
  1803. a backslash) may be included by prefixing the character to be
  1804. included with a backslash. The FILE may itself contain additional
  1805. @FILE options; any such options will be processed recursively.
  1806. 
  1807. File: gcc.info, Node: Invoking G++, Next: C Dialect Options, Prev: Overall Options, Up: Invoking GCC
  1808. 3.3 Compiling C++ Programs
  1809. ==========================
  1810. C++ source files conventionally use one of the suffixes '.C', '.cc',
  1811. '.cpp', '.CPP', '.c++', '.cp', or '.cxx'; C++ header files often use
  1812. '.hh', '.hpp', '.H', or (for shared template code) '.tcc'; and
  1813. preprocessed C++ files use the suffix '.ii'. GCC recognizes files with
  1814. these names and compiles them as C++ programs even if you call the
  1815. compiler the same way as for compiling C programs (usually with the name
  1816. 'gcc').
  1817. However, the use of 'gcc' does not add the C++ library. 'g++' is a
  1818. program that calls GCC and automatically specifies linking against the
  1819. C++ library. It treats '.c', '.h' and '.i' files as C++ source files
  1820. instead of C source files unless '-x' is used. This program is also
  1821. useful when precompiling a C header file with a '.h' extension for use
  1822. in C++ compilations. On many systems, 'g++' is also installed with the
  1823. name 'c++'.
  1824. When you compile C++ programs, you may specify many of the same
  1825. command-line options that you use for compiling programs in any
  1826. language; or command-line options meaningful for C and related
  1827. languages; or options that are meaningful only for C++ programs. *Note
  1828. Options Controlling C Dialect: C Dialect Options, for explanations of
  1829. options for languages related to C. *Note Options Controlling C++
  1830. Dialect: C++ Dialect Options, for explanations of options that are
  1831. meaningful only for C++ programs.
  1832. 
  1833. File: gcc.info, Node: C Dialect Options, Next: C++ Dialect Options, Prev: Invoking G++, Up: Invoking GCC
  1834. 3.4 Options Controlling C Dialect
  1835. =================================
  1836. The following options control the dialect of C (or languages derived
  1837. from C, such as C++, Objective-C and Objective-C++) that the compiler
  1838. accepts:
  1839. '-ansi'
  1840. In C mode, this is equivalent to '-std=c90'. In C++ mode, it is
  1841. equivalent to '-std=c++98'.
  1842. This turns off certain features of GCC that are incompatible with
  1843. ISO C90 (when compiling C code), or of standard C++ (when compiling
  1844. C++ code), such as the 'asm' and 'typeof' keywords, and predefined
  1845. macros such as 'unix' and 'vax' that identify the type of system
  1846. you are using. It also enables the undesirable and rarely used ISO
  1847. trigraph feature. For the C compiler, it disables recognition of
  1848. C++ style '//' comments as well as the 'inline' keyword.
  1849. The alternate keywords '__asm__', '__extension__', '__inline__' and
  1850. '__typeof__' continue to work despite '-ansi'. You would not want
  1851. to use them in an ISO C program, of course, but it is useful to put
  1852. them in header files that might be included in compilations done
  1853. with '-ansi'. Alternate predefined macros such as '__unix__' and
  1854. '__vax__' are also available, with or without '-ansi'.
  1855. The '-ansi' option does not cause non-ISO programs to be rejected
  1856. gratuitously. For that, '-Wpedantic' is required in addition to
  1857. '-ansi'. *Note Warning Options::.
  1858. The macro '__STRICT_ANSI__' is predefined when the '-ansi' option
  1859. is used. Some header files may notice this macro and refrain from
  1860. declaring certain functions or defining certain macros that the ISO
  1861. standard doesn't call for; this is to avoid interfering with any
  1862. programs that might use these names for other things.
  1863. Functions that are normally built in but do not have semantics
  1864. defined by ISO C (such as 'alloca' and 'ffs') are not built-in
  1865. functions when '-ansi' is used. *Note Other built-in functions
  1866. provided by GCC: Other Builtins, for details of the functions
  1867. affected.
  1868. '-std='
  1869. Determine the language standard. *Note Language Standards
  1870. Supported by GCC: Standards, for details of these standard
  1871. versions. This option is currently only supported when compiling C
  1872. or C++.
  1873. The compiler can accept several base standards, such as 'c90' or
  1874. 'c++98', and GNU dialects of those standards, such as 'gnu90' or
  1875. 'gnu++98'. When a base standard is specified, the compiler accepts
  1876. all programs following that standard plus those using GNU
  1877. extensions that do not contradict it. For example, '-std=c90'
  1878. turns off certain features of GCC that are incompatible with ISO
  1879. C90, such as the 'asm' and 'typeof' keywords, but not other GNU
  1880. extensions that do not have a meaning in ISO C90, such as omitting
  1881. the middle term of a '?:' expression. On the other hand, when a
  1882. GNU dialect of a standard is specified, all features supported by
  1883. the compiler are enabled, even when those features change the
  1884. meaning of the base standard. As a result, some strict-conforming
  1885. programs may be rejected. The particular standard is used by
  1886. '-Wpedantic' to identify which features are GNU extensions given
  1887. that version of the standard. For example '-std=gnu90 -Wpedantic'
  1888. warns about C++ style '//' comments, while '-std=gnu99 -Wpedantic'
  1889. does not.
  1890. A value for this option must be provided; possible values are
  1891. 'c90'
  1892. 'c89'
  1893. 'iso9899:1990'
  1894. Support all ISO C90 programs (certain GNU extensions that
  1895. conflict with ISO C90 are disabled). Same as '-ansi' for C
  1896. code.
  1897. 'iso9899:199409'
  1898. ISO C90 as modified in amendment 1.
  1899. 'c99'
  1900. 'c9x'
  1901. 'iso9899:1999'
  1902. 'iso9899:199x'
  1903. ISO C99. This standard is substantially completely supported,
  1904. modulo bugs and floating-point issues (mainly but not entirely
  1905. relating to optional C99 features from Annexes F and G). See
  1906. <http://gcc.gnu.org/c99status.html> for more information. The
  1907. names 'c9x' and 'iso9899:199x' are deprecated.
  1908. 'c11'
  1909. 'c1x'
  1910. 'iso9899:2011'
  1911. ISO C11, the 2011 revision of the ISO C standard. This
  1912. standard is substantially completely supported, modulo bugs,
  1913. floating-point issues (mainly but not entirely relating to
  1914. optional C11 features from Annexes F and G) and the optional
  1915. Annexes K (Bounds-checking interfaces) and L (Analyzability).
  1916. The name 'c1x' is deprecated.
  1917. 'c17'
  1918. 'c18'
  1919. 'iso9899:2017'
  1920. 'iso9899:2018'
  1921. ISO C17, the 2017 revision of the ISO C standard (published in
  1922. 2018). This standard is same as C11 except for corrections of
  1923. defects (all of which are also applied with '-std=c11') and a
  1924. new value of '__STDC_VERSION__', and so is supported to the
  1925. same extent as C11.
  1926. 'c2x'
  1927. The next version of the ISO C standard, still under
  1928. development. The support for this version is experimental and
  1929. incomplete.
  1930. 'gnu90'
  1931. 'gnu89'
  1932. GNU dialect of ISO C90 (including some C99 features).
  1933. 'gnu99'
  1934. 'gnu9x'
  1935. GNU dialect of ISO C99. The name 'gnu9x' is deprecated.
  1936. 'gnu11'
  1937. 'gnu1x'
  1938. GNU dialect of ISO C11. The name 'gnu1x' is deprecated.
  1939. 'gnu17'
  1940. 'gnu18'
  1941. GNU dialect of ISO C17. This is the default for C code.
  1942. 'gnu2x'
  1943. The next version of the ISO C standard, still under
  1944. development, plus GNU extensions. The support for this
  1945. version is experimental and incomplete.
  1946. 'c++98'
  1947. 'c++03'
  1948. The 1998 ISO C++ standard plus the 2003 technical corrigendum
  1949. and some additional defect reports. Same as '-ansi' for C++
  1950. code.
  1951. 'gnu++98'
  1952. 'gnu++03'
  1953. GNU dialect of '-std=c++98'.
  1954. 'c++11'
  1955. 'c++0x'
  1956. The 2011 ISO C++ standard plus amendments. The name 'c++0x'
  1957. is deprecated.
  1958. 'gnu++11'
  1959. 'gnu++0x'
  1960. GNU dialect of '-std=c++11'. The name 'gnu++0x' is
  1961. deprecated.
  1962. 'c++14'
  1963. 'c++1y'
  1964. The 2014 ISO C++ standard plus amendments. The name 'c++1y'
  1965. is deprecated.
  1966. 'gnu++14'
  1967. 'gnu++1y'
  1968. GNU dialect of '-std=c++14'. This is the default for C++
  1969. code. The name 'gnu++1y' is deprecated.
  1970. 'c++17'
  1971. 'c++1z'
  1972. The 2017 ISO C++ standard plus amendments. The name 'c++1z'
  1973. is deprecated.
  1974. 'gnu++17'
  1975. 'gnu++1z'
  1976. GNU dialect of '-std=c++17'. The name 'gnu++1z' is
  1977. deprecated.
  1978. 'c++2a'
  1979. The next revision of the ISO C++ standard, tentatively planned
  1980. for 2020. Support is highly experimental, and will almost
  1981. certainly change in incompatible ways in future releases.
  1982. 'gnu++2a'
  1983. GNU dialect of '-std=c++2a'. Support is highly experimental,
  1984. and will almost certainly change in incompatible ways in
  1985. future releases.
  1986. '-fgnu89-inline'
  1987. The option '-fgnu89-inline' tells GCC to use the traditional GNU
  1988. semantics for 'inline' functions when in C99 mode. *Note An Inline
  1989. Function is As Fast As a Macro: Inline. Using this option is
  1990. roughly equivalent to adding the 'gnu_inline' function attribute to
  1991. all inline functions (*note Function Attributes::).
  1992. The option '-fno-gnu89-inline' explicitly tells GCC to use the C99
  1993. semantics for 'inline' when in C99 or gnu99 mode (i.e., it
  1994. specifies the default behavior). This option is not supported in
  1995. '-std=c90' or '-std=gnu90' mode.
  1996. The preprocessor macros '__GNUC_GNU_INLINE__' and
  1997. '__GNUC_STDC_INLINE__' may be used to check which semantics are in
  1998. effect for 'inline' functions. *Note (cpp)Common Predefined
  1999. Macros::.
  2000. '-fpermitted-flt-eval-methods=STYLE'
  2001. ISO/IEC TS 18661-3 defines new permissible values for
  2002. 'FLT_EVAL_METHOD' that indicate that operations and constants with
  2003. a semantic type that is an interchange or extended format should be
  2004. evaluated to the precision and range of that type. These new
  2005. values are a superset of those permitted under C99/C11, which does
  2006. not specify the meaning of other positive values of
  2007. 'FLT_EVAL_METHOD'. As such, code conforming to C11 may not have
  2008. been written expecting the possibility of the new values.
  2009. '-fpermitted-flt-eval-methods' specifies whether the compiler
  2010. should allow only the values of 'FLT_EVAL_METHOD' specified in
  2011. C99/C11, or the extended set of values specified in ISO/IEC TS
  2012. 18661-3.
  2013. STYLE is either 'c11' or 'ts-18661-3' as appropriate.
  2014. The default when in a standards compliant mode ('-std=c11' or
  2015. similar) is '-fpermitted-flt-eval-methods=c11'. The default when
  2016. in a GNU dialect ('-std=gnu11' or similar) is
  2017. '-fpermitted-flt-eval-methods=ts-18661-3'.
  2018. '-aux-info FILENAME'
  2019. Output to the given filename prototyped declarations for all
  2020. functions declared and/or defined in a translation unit, including
  2021. those in header files. This option is silently ignored in any
  2022. language other than C.
  2023. Besides declarations, the file indicates, in comments, the origin
  2024. of each declaration (source file and line), whether the declaration
  2025. was implicit, prototyped or unprototyped ('I', 'N' for new or 'O'
  2026. for old, respectively, in the first character after the line number
  2027. and the colon), and whether it came from a declaration or a
  2028. definition ('C' or 'F', respectively, in the following character).
  2029. In the case of function definitions, a K&R-style list of arguments
  2030. followed by their declarations is also provided, inside comments,
  2031. after the declaration.
  2032. '-fallow-parameterless-variadic-functions'
  2033. Accept variadic functions without named parameters.
  2034. Although it is possible to define such a function, this is not very
  2035. useful as it is not possible to read the arguments. This is only
  2036. supported for C as this construct is allowed by C++.
  2037. '-fno-asm'
  2038. Do not recognize 'asm', 'inline' or 'typeof' as a keyword, so that
  2039. code can use these words as identifiers. You can use the keywords
  2040. '__asm__', '__inline__' and '__typeof__' instead. '-ansi' implies
  2041. '-fno-asm'.
  2042. In C++, this switch only affects the 'typeof' keyword, since 'asm'
  2043. and 'inline' are standard keywords. You may want to use the
  2044. '-fno-gnu-keywords' flag instead, which has the same effect. In
  2045. C99 mode ('-std=c99' or '-std=gnu99'), this switch only affects the
  2046. 'asm' and 'typeof' keywords, since 'inline' is a standard keyword
  2047. in ISO C99.
  2048. '-fno-builtin'
  2049. '-fno-builtin-FUNCTION'
  2050. Don't recognize built-in functions that do not begin with
  2051. '__builtin_' as prefix. *Note Other built-in functions provided by
  2052. GCC: Other Builtins, for details of the functions affected,
  2053. including those which are not built-in functions when '-ansi' or
  2054. '-std' options for strict ISO C conformance are used because they
  2055. do not have an ISO standard meaning.
  2056. GCC normally generates special code to handle certain built-in
  2057. functions more efficiently; for instance, calls to 'alloca' may
  2058. become single instructions which adjust the stack directly, and
  2059. calls to 'memcpy' may become inline copy loops. The resulting code
  2060. is often both smaller and faster, but since the function calls no
  2061. longer appear as such, you cannot set a breakpoint on those calls,
  2062. nor can you change the behavior of the functions by linking with a
  2063. different library. In addition, when a function is recognized as a
  2064. built-in function, GCC may use information about that function to
  2065. warn about problems with calls to that function, or to generate
  2066. more efficient code, even if the resulting code still contains
  2067. calls to that function. For example, warnings are given with
  2068. '-Wformat' for bad calls to 'printf' when 'printf' is built in and
  2069. 'strlen' is known not to modify global memory.
  2070. With the '-fno-builtin-FUNCTION' option only the built-in function
  2071. FUNCTION is disabled. FUNCTION must not begin with '__builtin_'.
  2072. If a function is named that is not built-in in this version of GCC,
  2073. this option is ignored. There is no corresponding
  2074. '-fbuiltin-FUNCTION' option; if you wish to enable built-in
  2075. functions selectively when using '-fno-builtin' or
  2076. '-ffreestanding', you may define macros such as:
  2077. #define abs(n) __builtin_abs ((n))
  2078. #define strcpy(d, s) __builtin_strcpy ((d), (s))
  2079. '-fgimple'
  2080. Enable parsing of function definitions marked with '__GIMPLE'.
  2081. This is an experimental feature that allows unit testing of GIMPLE
  2082. passes.
  2083. '-fhosted'
  2084. Assert that compilation targets a hosted environment. This implies
  2085. '-fbuiltin'. A hosted environment is one in which the entire
  2086. standard library is available, and in which 'main' has a return
  2087. type of 'int'. Examples are nearly everything except a kernel.
  2088. This is equivalent to '-fno-freestanding'.
  2089. '-ffreestanding'
  2090. Assert that compilation targets a freestanding environment. This
  2091. implies '-fno-builtin'. A freestanding environment is one in which
  2092. the standard library may not exist, and program startup may not
  2093. necessarily be at 'main'. The most obvious example is an OS
  2094. kernel. This is equivalent to '-fno-hosted'.
  2095. *Note Language Standards Supported by GCC: Standards, for details
  2096. of freestanding and hosted environments.
  2097. '-fopenacc'
  2098. Enable handling of OpenACC directives '#pragma acc' in C/C++ and
  2099. '!$acc' in Fortran. When '-fopenacc' is specified, the compiler
  2100. generates accelerated code according to the OpenACC Application
  2101. Programming Interface v2.0 <https://www.openacc.org>. This option
  2102. implies '-pthread', and thus is only supported on targets that have
  2103. support for '-pthread'.
  2104. '-fopenacc-dim=GEOM'
  2105. Specify default compute dimensions for parallel offload regions
  2106. that do not explicitly specify. The GEOM value is a triple of
  2107. ':'-separated sizes, in order 'gang', 'worker' and, 'vector'. A
  2108. size can be omitted, to use a target-specific default value.
  2109. '-fopenmp'
  2110. Enable handling of OpenMP directives '#pragma omp' in C/C++ and
  2111. '!$omp' in Fortran. When '-fopenmp' is specified, the compiler
  2112. generates parallel code according to the OpenMP Application Program
  2113. Interface v4.5 <https://www.openmp.org>. This option implies
  2114. '-pthread', and thus is only supported on targets that have support
  2115. for '-pthread'. '-fopenmp' implies '-fopenmp-simd'.
  2116. '-fopenmp-simd'
  2117. Enable handling of OpenMP's SIMD directives with '#pragma omp' in
  2118. C/C++ and '!$omp' in Fortran. Other OpenMP directives are ignored.
  2119. '-fgnu-tm'
  2120. When the option '-fgnu-tm' is specified, the compiler generates
  2121. code for the Linux variant of Intel's current Transactional Memory
  2122. ABI specification document (Revision 1.1, May 6 2009). This is an
  2123. experimental feature whose interface may change in future versions
  2124. of GCC, as the official specification changes. Please note that
  2125. not all architectures are supported for this feature.
  2126. For more information on GCC's support for transactional memory,
  2127. *Note The GNU Transactional Memory Library: (libitm)Enabling
  2128. libitm.
  2129. Note that the transactional memory feature is not supported with
  2130. non-call exceptions ('-fnon-call-exceptions').
  2131. '-fms-extensions'
  2132. Accept some non-standard constructs used in Microsoft header files.
  2133. In C++ code, this allows member names in structures to be similar
  2134. to previous types declarations.
  2135. typedef int UOW;
  2136. struct ABC {
  2137. UOW UOW;
  2138. };
  2139. Some cases of unnamed fields in structures and unions are only
  2140. accepted with this option. *Note Unnamed struct/union fields
  2141. within structs/unions: Unnamed Fields, for details.
  2142. Note that this option is off for all targets but x86 targets using
  2143. ms-abi.
  2144. '-fplan9-extensions'
  2145. Accept some non-standard constructs used in Plan 9 code.
  2146. This enables '-fms-extensions', permits passing pointers to
  2147. structures with anonymous fields to functions that expect pointers
  2148. to elements of the type of the field, and permits referring to
  2149. anonymous fields declared using a typedef. *Note Unnamed
  2150. struct/union fields within structs/unions: Unnamed Fields, for
  2151. details. This is only supported for C, not C++.
  2152. '-fcond-mismatch'
  2153. Allow conditional expressions with mismatched types in the second
  2154. and third arguments. The value of such an expression is void.
  2155. This option is not supported for C++.
  2156. '-flax-vector-conversions'
  2157. Allow implicit conversions between vectors with differing numbers
  2158. of elements and/or incompatible element types. This option should
  2159. not be used for new code.
  2160. '-funsigned-char'
  2161. Let the type 'char' be unsigned, like 'unsigned char'.
  2162. Each kind of machine has a default for what 'char' should be. It
  2163. is either like 'unsigned char' by default or like 'signed char' by
  2164. default.
  2165. Ideally, a portable program should always use 'signed char' or
  2166. 'unsigned char' when it depends on the signedness of an object.
  2167. But many programs have been written to use plain 'char' and expect
  2168. it to be signed, or expect it to be unsigned, depending on the
  2169. machines they were written for. This option, and its inverse, let
  2170. you make such a program work with the opposite default.
  2171. The type 'char' is always a distinct type from each of 'signed
  2172. char' or 'unsigned char', even though its behavior is always just
  2173. like one of those two.
  2174. '-fsigned-char'
  2175. Let the type 'char' be signed, like 'signed char'.
  2176. Note that this is equivalent to '-fno-unsigned-char', which is the
  2177. negative form of '-funsigned-char'. Likewise, the option
  2178. '-fno-signed-char' is equivalent to '-funsigned-char'.
  2179. '-fsigned-bitfields'
  2180. '-funsigned-bitfields'
  2181. '-fno-signed-bitfields'
  2182. '-fno-unsigned-bitfields'
  2183. These options control whether a bit-field is signed or unsigned,
  2184. when the declaration does not use either 'signed' or 'unsigned'.
  2185. By default, such a bit-field is signed, because this is consistent:
  2186. the basic integer types such as 'int' are signed types.
  2187. '-fsso-struct=ENDIANNESS'
  2188. Set the default scalar storage order of structures and unions to
  2189. the specified endianness. The accepted values are 'big-endian',
  2190. 'little-endian' and 'native' for the native endianness of the
  2191. target (the default). This option is not supported for C++.
  2192. *Warning:* the '-fsso-struct' switch causes GCC to generate code
  2193. that is not binary compatible with code generated without it if the
  2194. specified endianness is not the native endianness of the target.
  2195. 
  2196. File: gcc.info, Node: C++ Dialect Options, Next: Objective-C and Objective-C++ Dialect Options, Prev: C Dialect Options, Up: Invoking GCC
  2197. 3.5 Options Controlling C++ Dialect
  2198. ===================================
  2199. This section describes the command-line options that are only meaningful
  2200. for C++ programs. You can also use most of the GNU compiler options
  2201. regardless of what language your program is in. For example, you might
  2202. compile a file 'firstClass.C' like this:
  2203. g++ -g -fstrict-enums -O -c firstClass.C
  2204. In this example, only '-fstrict-enums' is an option meant only for C++
  2205. programs; you can use the other options with any language supported by
  2206. GCC.
  2207. Some options for compiling C programs, such as '-std', are also
  2208. relevant for C++ programs. *Note Options Controlling C Dialect: C
  2209. Dialect Options.
  2210. Here is a list of options that are _only_ for compiling C++ programs:
  2211. '-fabi-version=N'
  2212. Use version N of the C++ ABI. The default is version 0.
  2213. Version 0 refers to the version conforming most closely to the C++
  2214. ABI specification. Therefore, the ABI obtained using version 0
  2215. will change in different versions of G++ as ABI bugs are fixed.
  2216. Version 1 is the version of the C++ ABI that first appeared in G++
  2217. 3.2.
  2218. Version 2 is the version of the C++ ABI that first appeared in G++
  2219. 3.4, and was the default through G++ 4.9.
  2220. Version 3 corrects an error in mangling a constant address as a
  2221. template argument.
  2222. Version 4, which first appeared in G++ 4.5, implements a standard
  2223. mangling for vector types.
  2224. Version 5, which first appeared in G++ 4.6, corrects the mangling
  2225. of attribute const/volatile on function pointer types, decltype of
  2226. a plain decl, and use of a function parameter in the declaration of
  2227. another parameter.
  2228. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2229. behavior of C++11 scoped enums and the mangling of template
  2230. argument packs, const/static_cast, prefix ++ and -, and a class
  2231. scope function used as a template argument.
  2232. Version 7, which first appeared in G++ 4.8, that treats nullptr_t
  2233. as a builtin type and corrects the mangling of lambdas in default
  2234. argument scope.
  2235. Version 8, which first appeared in G++ 4.9, corrects the
  2236. substitution behavior of function types with
  2237. function-cv-qualifiers.
  2238. Version 9, which first appeared in G++ 5.2, corrects the alignment
  2239. of 'nullptr_t'.
  2240. Version 10, which first appeared in G++ 6.1, adds mangling of
  2241. attributes that affect type identity, such as ia32 calling
  2242. convention attributes (e.g. 'stdcall').
  2243. Version 11, which first appeared in G++ 7, corrects the mangling of
  2244. sizeof... expressions and operator names. For multiple entities
  2245. with the same name within a function, that are declared in
  2246. different scopes, the mangling now changes starting with the
  2247. twelfth occurrence. It also implies '-fnew-inheriting-ctors'.
  2248. Version 12, which first appeared in G++ 8, corrects the calling
  2249. conventions for empty classes on the x86_64 target and for classes
  2250. with only deleted copy/move constructors. It accidentally changes
  2251. the calling convention for classes with a deleted copy constructor
  2252. and a trivial move constructor.
  2253. Version 13, which first appeared in G++ 8.2, fixes the accidental
  2254. change in version 12.
  2255. See also '-Wabi'.
  2256. '-fabi-compat-version=N'
  2257. On targets that support strong aliases, G++ works around mangling
  2258. changes by creating an alias with the correct mangled name when
  2259. defining a symbol with an incorrect mangled name. This switch
  2260. specifies which ABI version to use for the alias.
  2261. With '-fabi-version=0' (the default), this defaults to 11 (GCC 7
  2262. compatibility). If another ABI version is explicitly selected,
  2263. this defaults to 0. For compatibility with GCC versions 3.2
  2264. through 4.9, use '-fabi-compat-version=2'.
  2265. If this option is not provided but '-Wabi=N' is, that version is
  2266. used for compatibility aliases. If this option is provided along
  2267. with '-Wabi' (without the version), the version from this option is
  2268. used for the warning.
  2269. '-fno-access-control'
  2270. Turn off all access checking. This switch is mainly useful for
  2271. working around bugs in the access control code.
  2272. '-faligned-new'
  2273. Enable support for C++17 'new' of types that require more alignment
  2274. than 'void* ::operator new(std::size_t)' provides. A numeric
  2275. argument such as '-faligned-new=32' can be used to specify how much
  2276. alignment (in bytes) is provided by that function, but few users
  2277. will need to override the default of 'alignof(std::max_align_t)'.
  2278. This flag is enabled by default for '-std=c++17'.
  2279. '-fchar8_t'
  2280. '-fno-char8_t'
  2281. Enable support for 'char8_t' as adopted for C++2a. This includes
  2282. the addition of a new 'char8_t' fundamental type, changes to the
  2283. types of UTF-8 string and character literals, new signatures for
  2284. user-defined literals, associated standard library updates, and new
  2285. '__cpp_char8_t' and '__cpp_lib_char8_t' feature test macros.
  2286. This option enables functions to be overloaded for ordinary and
  2287. UTF-8 strings:
  2288. int f(const char *); // #1
  2289. int f(const char8_t *); // #2
  2290. int v1 = f("text"); // Calls #1
  2291. int v2 = f(u8"text"); // Calls #2
  2292. and introduces new signatures for user-defined literals:
  2293. int operator""_udl1(char8_t);
  2294. int v3 = u8'x'_udl1;
  2295. int operator""_udl2(const char8_t*, std::size_t);
  2296. int v4 = u8"text"_udl2;
  2297. template<typename T, T...> int operator""_udl3();
  2298. int v5 = u8"text"_udl3;
  2299. The change to the types of UTF-8 string and character literals
  2300. introduces incompatibilities with ISO C++11 and later standards.
  2301. For example, the following code is well-formed under ISO C++11, but
  2302. is ill-formed when '-fchar8_t' is specified.
  2303. char ca[] = u8"xx"; // error: char-array initialized from wide
  2304. // string
  2305. const char *cp = u8"xx";// error: invalid conversion from
  2306. // `const char8_t*' to `const char*'
  2307. int f(const char*);
  2308. auto v = f(u8"xx"); // error: invalid conversion from
  2309. // `const char8_t*' to `const char*'
  2310. std::string s{u8"xx"}; // error: no matching function for call to
  2311. // `std::basic_string<char>::basic_string()'
  2312. using namespace std::literals;
  2313. s = u8"xx"s; // error: conversion from
  2314. // `basic_string<char8_t>' to non-scalar
  2315. // type `basic_string<char>' requested
  2316. '-fcheck-new'
  2317. Check that the pointer returned by 'operator new' is non-null
  2318. before attempting to modify the storage allocated. This check is
  2319. normally unnecessary because the C++ standard specifies that
  2320. 'operator new' only returns '0' if it is declared 'throw()', in
  2321. which case the compiler always checks the return value even without
  2322. this option. In all other cases, when 'operator new' has a
  2323. non-empty exception specification, memory exhaustion is signalled
  2324. by throwing 'std::bad_alloc'. See also 'new (nothrow)'.
  2325. '-fconcepts'
  2326. Enable support for the C++ Extensions for Concepts Technical
  2327. Specification, ISO 19217 (2015), which allows code like
  2328. template <class T> concept bool Addable = requires (T t) { t + t; };
  2329. template <Addable T> T add (T a, T b) { return a + b; }
  2330. '-fconstexpr-depth=N'
  2331. Set the maximum nested evaluation depth for C++11 constexpr
  2332. functions to N. A limit is needed to detect endless recursion
  2333. during constant expression evaluation. The minimum specified by
  2334. the standard is 512.
  2335. '-fconstexpr-loop-limit=N'
  2336. Set the maximum number of iterations for a loop in C++14 constexpr
  2337. functions to N. A limit is needed to detect infinite loops during
  2338. constant expression evaluation. The default is 262144 (1<<18).
  2339. '-fconstexpr-ops-limit=N'
  2340. Set the maximum number of operations during a single constexpr
  2341. evaluation. Even when number of iterations of a single loop is
  2342. limited with the above limit, if there are several nested loops and
  2343. each of them has many iterations but still smaller than the above
  2344. limit, or if in a body of some loop or even outside of a loop too
  2345. many expressions need to be evaluated, the resulting constexpr
  2346. evaluation might take too long. The default is 33554432 (1<<25).
  2347. '-fdeduce-init-list'
  2348. Enable deduction of a template type parameter as
  2349. 'std::initializer_list' from a brace-enclosed initializer list,
  2350. i.e.
  2351. template <class T> auto forward(T t) -> decltype (realfn (t))
  2352. {
  2353. return realfn (t);
  2354. }
  2355. void f()
  2356. {
  2357. forward({1,2}); // call forward<std::initializer_list<int>>
  2358. }
  2359. This deduction was implemented as a possible extension to the
  2360. originally proposed semantics for the C++11 standard, but was not
  2361. part of the final standard, so it is disabled by default. This
  2362. option is deprecated, and may be removed in a future version of
  2363. G++.
  2364. '-fno-elide-constructors'
  2365. The C++ standard allows an implementation to omit creating a
  2366. temporary that is only used to initialize another object of the
  2367. same type. Specifying this option disables that optimization, and
  2368. forces G++ to call the copy constructor in all cases. This option
  2369. also causes G++ to call trivial member functions which otherwise
  2370. would be expanded inline.
  2371. In C++17, the compiler is required to omit these temporaries, but
  2372. this option still affects trivial member functions.
  2373. '-fno-enforce-eh-specs'
  2374. Don't generate code to check for violation of exception
  2375. specifications at run time. This option violates the C++ standard,
  2376. but may be useful for reducing code size in production builds, much
  2377. like defining 'NDEBUG'. This does not give user code permission to
  2378. throw exceptions in violation of the exception specifications; the
  2379. compiler still optimizes based on the specifications, so throwing
  2380. an unexpected exception results in undefined behavior at run time.
  2381. '-fextern-tls-init'
  2382. '-fno-extern-tls-init'
  2383. The C++11 and OpenMP standards allow 'thread_local' and
  2384. 'threadprivate' variables to have dynamic (runtime) initialization.
  2385. To support this, any use of such a variable goes through a wrapper
  2386. function that performs any necessary initialization. When the use
  2387. and definition of the variable are in the same translation unit,
  2388. this overhead can be optimized away, but when the use is in a
  2389. different translation unit there is significant overhead even if
  2390. the variable doesn't actually need dynamic initialization. If the
  2391. programmer can be sure that no use of the variable in a
  2392. non-defining TU needs to trigger dynamic initialization (either
  2393. because the variable is statically initialized, or a use of the
  2394. variable in the defining TU will be executed before any uses in
  2395. another TU), they can avoid this overhead with the
  2396. '-fno-extern-tls-init' option.
  2397. On targets that support symbol aliases, the default is
  2398. '-fextern-tls-init'. On targets that do not support symbol
  2399. aliases, the default is '-fno-extern-tls-init'.
  2400. '-fno-gnu-keywords'
  2401. Do not recognize 'typeof' as a keyword, so that code can use this
  2402. word as an identifier. You can use the keyword '__typeof__'
  2403. instead. This option is implied by the strict ISO C++ dialects:
  2404. '-ansi', '-std=c++98', '-std=c++11', etc.
  2405. '-fno-implicit-templates'
  2406. Never emit code for non-inline templates that are instantiated
  2407. implicitly (i.e. by use); only emit code for explicit
  2408. instantiations. If you use this option, you must take care to
  2409. structure your code to include all the necessary explicit
  2410. instantiations to avoid getting undefined symbols at link time.
  2411. *Note Template Instantiation::, for more information.
  2412. '-fno-implicit-inline-templates'
  2413. Don't emit code for implicit instantiations of inline templates,
  2414. either. The default is to handle inlines differently so that
  2415. compiles with and without optimization need the same set of
  2416. explicit instantiations.
  2417. '-fno-implement-inlines'
  2418. To save space, do not emit out-of-line copies of inline functions
  2419. controlled by '#pragma implementation'. This causes linker errors
  2420. if these functions are not inlined everywhere they are called.
  2421. '-fms-extensions'
  2422. Disable Wpedantic warnings about constructs used in MFC, such as
  2423. implicit int and getting a pointer to member function via
  2424. non-standard syntax.
  2425. '-fnew-inheriting-ctors'
  2426. Enable the P0136 adjustment to the semantics of C++11 constructor
  2427. inheritance. This is part of C++17 but also considered to be a
  2428. Defect Report against C++11 and C++14. This flag is enabled by
  2429. default unless '-fabi-version=10' or lower is specified.
  2430. '-fnew-ttp-matching'
  2431. Enable the P0522 resolution to Core issue 150, template template
  2432. parameters and default arguments: this allows a template with
  2433. default template arguments as an argument for a template template
  2434. parameter with fewer template parameters. This flag is enabled by
  2435. default for '-std=c++17'.
  2436. '-fno-nonansi-builtins'
  2437. Disable built-in declarations of functions that are not mandated by
  2438. ANSI/ISO C. These include 'ffs', 'alloca', '_exit', 'index',
  2439. 'bzero', 'conjf', and other related functions.
  2440. '-fnothrow-opt'
  2441. Treat a 'throw()' exception specification as if it were a
  2442. 'noexcept' specification to reduce or eliminate the text size
  2443. overhead relative to a function with no exception specification.
  2444. If the function has local variables of types with non-trivial
  2445. destructors, the exception specification actually makes the
  2446. function smaller because the EH cleanups for those variables can be
  2447. optimized away. The semantic effect is that an exception thrown
  2448. out of a function with such an exception specification results in a
  2449. call to 'terminate' rather than 'unexpected'.
  2450. '-fno-operator-names'
  2451. Do not treat the operator name keywords 'and', 'bitand', 'bitor',
  2452. 'compl', 'not', 'or' and 'xor' as synonyms as keywords.
  2453. '-fno-optional-diags'
  2454. Disable diagnostics that the standard says a compiler does not need
  2455. to issue. Currently, the only such diagnostic issued by G++ is the
  2456. one for a name having multiple meanings within a class.
  2457. '-fpermissive'
  2458. Downgrade some diagnostics about nonconformant code from errors to
  2459. warnings. Thus, using '-fpermissive' allows some nonconforming
  2460. code to compile.
  2461. '-fno-pretty-templates'
  2462. When an error message refers to a specialization of a function
  2463. template, the compiler normally prints the signature of the
  2464. template followed by the template arguments and any typedefs or
  2465. typenames in the signature (e.g. 'void f(T) [with T = int]' rather
  2466. than 'void f(int)') so that it's clear which template is involved.
  2467. When an error message refers to a specialization of a class
  2468. template, the compiler omits any template arguments that match the
  2469. default template arguments for that template. If either of these
  2470. behaviors make it harder to understand the error message rather
  2471. than easier, you can use '-fno-pretty-templates' to disable them.
  2472. '-frepo'
  2473. Enable automatic template instantiation at link time. This option
  2474. also implies '-fno-implicit-templates'. *Note Template
  2475. Instantiation::, for more information.
  2476. '-fno-rtti'
  2477. Disable generation of information about every class with virtual
  2478. functions for use by the C++ run-time type identification features
  2479. ('dynamic_cast' and 'typeid'). If you don't use those parts of the
  2480. language, you can save some space by using this flag. Note that
  2481. exception handling uses the same information, but G++ generates it
  2482. as needed. The 'dynamic_cast' operator can still be used for casts
  2483. that do not require run-time type information, i.e. casts to 'void
  2484. *' or to unambiguous base classes.
  2485. Mixing code compiled with '-frtti' with that compiled with
  2486. '-fno-rtti' may not work. For example, programs may fail to link
  2487. if a class compiled with '-fno-rtti' is used as a base for a class
  2488. compiled with '-frtti'.
  2489. '-fsized-deallocation'
  2490. Enable the built-in global declarations
  2491. void operator delete (void *, std::size_t) noexcept;
  2492. void operator delete[] (void *, std::size_t) noexcept;
  2493. as introduced in C++14. This is useful for user-defined
  2494. replacement deallocation functions that, for example, use the size
  2495. of the object to make deallocation faster. Enabled by default
  2496. under '-std=c++14' and above. The flag '-Wsized-deallocation'
  2497. warns about places that might want to add a definition.
  2498. '-fstrict-enums'
  2499. Allow the compiler to optimize using the assumption that a value of
  2500. enumerated type can only be one of the values of the enumeration
  2501. (as defined in the C++ standard; basically, a value that can be
  2502. represented in the minimum number of bits needed to represent all
  2503. the enumerators). This assumption may not be valid if the program
  2504. uses a cast to convert an arbitrary integer value to the enumerated
  2505. type.
  2506. '-fstrong-eval-order'
  2507. Evaluate member access, array subscripting, and shift expressions
  2508. in left-to-right order, and evaluate assignment in right-to-left
  2509. order, as adopted for C++17. Enabled by default with '-std=c++17'.
  2510. '-fstrong-eval-order=some' enables just the ordering of member
  2511. access and shift expressions, and is the default without
  2512. '-std=c++17'.
  2513. '-ftemplate-backtrace-limit=N'
  2514. Set the maximum number of template instantiation notes for a single
  2515. warning or error to N. The default value is 10.
  2516. '-ftemplate-depth=N'
  2517. Set the maximum instantiation depth for template classes to N. A
  2518. limit on the template instantiation depth is needed to detect
  2519. endless recursions during template class instantiation. ANSI/ISO
  2520. C++ conforming programs must not rely on a maximum depth greater
  2521. than 17 (changed to 1024 in C++11). The default value is 900, as
  2522. the compiler can run out of stack space before hitting 1024 in some
  2523. situations.
  2524. '-fno-threadsafe-statics'
  2525. Do not emit the extra code to use the routines specified in the C++
  2526. ABI for thread-safe initialization of local statics. You can use
  2527. this option to reduce code size slightly in code that doesn't need
  2528. to be thread-safe.
  2529. '-fuse-cxa-atexit'
  2530. Register destructors for objects with static storage duration with
  2531. the '__cxa_atexit' function rather than the 'atexit' function.
  2532. This option is required for fully standards-compliant handling of
  2533. static destructors, but only works if your C library supports
  2534. '__cxa_atexit'.
  2535. '-fno-use-cxa-get-exception-ptr'
  2536. Don't use the '__cxa_get_exception_ptr' runtime routine. This
  2537. causes 'std::uncaught_exception' to be incorrect, but is necessary
  2538. if the runtime routine is not available.
  2539. '-fvisibility-inlines-hidden'
  2540. This switch declares that the user does not attempt to compare
  2541. pointers to inline functions or methods where the addresses of the
  2542. two functions are taken in different shared objects.
  2543. The effect of this is that GCC may, effectively, mark inline
  2544. methods with '__attribute__ ((visibility ("hidden")))' so that they
  2545. do not appear in the export table of a DSO and do not require a PLT
  2546. indirection when used within the DSO. Enabling this option can
  2547. have a dramatic effect on load and link times of a DSO as it
  2548. massively reduces the size of the dynamic export table when the
  2549. library makes heavy use of templates.
  2550. The behavior of this switch is not quite the same as marking the
  2551. methods as hidden directly, because it does not affect static
  2552. variables local to the function or cause the compiler to deduce
  2553. that the function is defined in only one shared object.
  2554. You may mark a method as having a visibility explicitly to negate
  2555. the effect of the switch for that method. For example, if you do
  2556. want to compare pointers to a particular inline method, you might
  2557. mark it as having default visibility. Marking the enclosing class
  2558. with explicit visibility has no effect.
  2559. Explicitly instantiated inline methods are unaffected by this
  2560. option as their linkage might otherwise cross a shared library
  2561. boundary. *Note Template Instantiation::.
  2562. '-fvisibility-ms-compat'
  2563. This flag attempts to use visibility settings to make GCC's C++
  2564. linkage model compatible with that of Microsoft Visual Studio.
  2565. The flag makes these changes to GCC's linkage model:
  2566. 1. It sets the default visibility to 'hidden', like
  2567. '-fvisibility=hidden'.
  2568. 2. Types, but not their members, are not hidden by default.
  2569. 3. The One Definition Rule is relaxed for types without explicit
  2570. visibility specifications that are defined in more than one
  2571. shared object: those declarations are permitted if they are
  2572. permitted when this option is not used.
  2573. In new code it is better to use '-fvisibility=hidden' and export
  2574. those classes that are intended to be externally visible.
  2575. Unfortunately it is possible for code to rely, perhaps
  2576. accidentally, on the Visual Studio behavior.
  2577. Among the consequences of these changes are that static data
  2578. members of the same type with the same name but defined in
  2579. different shared objects are different, so changing one does not
  2580. change the other; and that pointers to function members defined in
  2581. different shared objects may not compare equal. When this flag is
  2582. given, it is a violation of the ODR to define types with the same
  2583. name differently.
  2584. '-fno-weak'
  2585. Do not use weak symbol support, even if it is provided by the
  2586. linker. By default, G++ uses weak symbols if they are available.
  2587. This option exists only for testing, and should not be used by
  2588. end-users; it results in inferior code and has no benefits. This
  2589. option may be removed in a future release of G++.
  2590. '-nostdinc++'
  2591. Do not search for header files in the standard directories specific
  2592. to C++, but do still search the other standard directories. (This
  2593. option is used when building the C++ library.)
  2594. In addition, these optimization, warning, and code generation options
  2595. have meanings only for C++ programs:
  2596. '-Wabi (C, Objective-C, C++ and Objective-C++ only)'
  2597. Warn when G++ it generates code that is probably not compatible
  2598. with the vendor-neutral C++ ABI. Since G++ now defaults to
  2599. updating the ABI with each major release, normally '-Wabi' will
  2600. warn only if there is a check added later in a release series for
  2601. an ABI issue discovered since the initial release. '-Wabi' will
  2602. warn about more things if an older ABI version is selected (with
  2603. '-fabi-version=N').
  2604. '-Wabi' can also be used with an explicit version number to warn
  2605. about compatibility with a particular '-fabi-version' level, e.g.
  2606. '-Wabi=2' to warn about changes relative to '-fabi-version=2'.
  2607. If an explicit version number is provided and
  2608. '-fabi-compat-version' is not specified, the version number from
  2609. this option is used for compatibility aliases. If no explicit
  2610. version number is provided with this option, but
  2611. '-fabi-compat-version' is specified, that version number is used
  2612. for ABI warnings.
  2613. Although an effort has been made to warn about all such cases,
  2614. there are probably some cases that are not warned about, even
  2615. though G++ is generating incompatible code. There may also be
  2616. cases where warnings are emitted even though the code that is
  2617. generated is compatible.
  2618. You should rewrite your code to avoid these warnings if you are
  2619. concerned about the fact that code generated by G++ may not be
  2620. binary compatible with code generated by other compilers.
  2621. Known incompatibilities in '-fabi-version=2' (which was the default
  2622. from GCC 3.4 to 4.9) include:
  2623. * A template with a non-type template parameter of reference
  2624. type was mangled incorrectly:
  2625. extern int N;
  2626. template <int &> struct S {};
  2627. void n (S<N>) {2}
  2628. This was fixed in '-fabi-version=3'.
  2629. * SIMD vector types declared using '__attribute ((vector_size))'
  2630. were mangled in a non-standard way that does not allow for
  2631. overloading of functions taking vectors of different sizes.
  2632. The mangling was changed in '-fabi-version=4'.
  2633. * '__attribute ((const))' and 'noreturn' were mangled as type
  2634. qualifiers, and 'decltype' of a plain declaration was folded
  2635. away.
  2636. These mangling issues were fixed in '-fabi-version=5'.
  2637. * Scoped enumerators passed as arguments to a variadic function
  2638. are promoted like unscoped enumerators, causing 'va_arg' to
  2639. complain. On most targets this does not actually affect the
  2640. parameter passing ABI, as there is no way to pass an argument
  2641. smaller than 'int'.
  2642. Also, the ABI changed the mangling of template argument packs,
  2643. 'const_cast', 'static_cast', prefix increment/decrement, and a
  2644. class scope function used as a template argument.
  2645. These issues were corrected in '-fabi-version=6'.
  2646. * Lambdas in default argument scope were mangled incorrectly,
  2647. and the ABI changed the mangling of 'nullptr_t'.
  2648. These issues were corrected in '-fabi-version=7'.
  2649. * When mangling a function type with function-cv-qualifiers, the
  2650. un-qualified function type was incorrectly treated as a
  2651. substitution candidate.
  2652. This was fixed in '-fabi-version=8', the default for GCC 5.1.
  2653. * 'decltype(nullptr)' incorrectly had an alignment of 1, leading
  2654. to unaligned accesses. Note that this did not affect the ABI
  2655. of a function with a 'nullptr_t' parameter, as parameters have
  2656. a minimum alignment.
  2657. This was fixed in '-fabi-version=9', the default for GCC 5.2.
  2658. * Target-specific attributes that affect the identity of a type,
  2659. such as ia32 calling conventions on a function type (stdcall,
  2660. regparm, etc.), did not affect the mangled name, leading to
  2661. name collisions when function pointers were used as template
  2662. arguments.
  2663. This was fixed in '-fabi-version=10', the default for GCC 6.1.
  2664. It also warns about psABI-related changes. The known psABI changes
  2665. at this point include:
  2666. * For SysV/x86-64, unions with 'long double' members are passed
  2667. in memory as specified in psABI. For example:
  2668. union U {
  2669. long double ld;
  2670. int i;
  2671. };
  2672. 'union U' is always passed in memory.
  2673. '-Wabi-tag (C++ and Objective-C++ only)'
  2674. Warn when a type with an ABI tag is used in a context that does not
  2675. have that ABI tag. See *note C++ Attributes:: for more information
  2676. about ABI tags.
  2677. '-Wctor-dtor-privacy (C++ and Objective-C++ only)'
  2678. Warn when a class seems unusable because all the constructors or
  2679. destructors in that class are private, and it has neither friends
  2680. nor public static member functions. Also warn if there are no
  2681. non-private methods, and there's at least one private member
  2682. function that isn't a constructor or destructor.
  2683. '-Wdelete-non-virtual-dtor (C++ and Objective-C++ only)'
  2684. Warn when 'delete' is used to destroy an instance of a class that
  2685. has virtual functions and non-virtual destructor. It is unsafe to
  2686. delete an instance of a derived class through a pointer to a base
  2687. class if the base class does not have a virtual destructor. This
  2688. warning is enabled by '-Wall'.
  2689. '-Wdeprecated-copy (C++ and Objective-C++ only)'
  2690. Warn that the implicit declaration of a copy constructor or copy
  2691. assignment operator is deprecated if the class has a user-provided
  2692. copy constructor or copy assignment operator, in C++11 and up.
  2693. This warning is enabled by '-Wextra'. With
  2694. '-Wdeprecated-copy-dtor', also deprecate if the class has a
  2695. user-provided destructor.
  2696. '-Wno-init-list-lifetime (C++ and Objective-C++ only)'
  2697. Do not warn about uses of 'std::initializer_list' that are likely
  2698. to result in dangling pointers. Since the underlying array for an
  2699. 'initializer_list' is handled like a normal C++ temporary object,
  2700. it is easy to inadvertently keep a pointer to the array past the
  2701. end of the array's lifetime. For example:
  2702. * If a function returns a temporary 'initializer_list', or a
  2703. local 'initializer_list' variable, the array's lifetime ends
  2704. at the end of the return statement, so the value returned has
  2705. a dangling pointer.
  2706. * If a new-expression creates an 'initializer_list', the array
  2707. only lives until the end of the enclosing full-expression, so
  2708. the 'initializer_list' in the heap has a dangling pointer.
  2709. * When an 'initializer_list' variable is assigned from a
  2710. brace-enclosed initializer list, the temporary array created
  2711. for the right side of the assignment only lives until the end
  2712. of the full-expression, so at the next statement the
  2713. 'initializer_list' variable has a dangling pointer.
  2714. // li's initial underlying array lives as long as li
  2715. std::initializer_list<int> li = { 1,2,3 };
  2716. // assignment changes li to point to a temporary array
  2717. li = { 4, 5 };
  2718. // now the temporary is gone and li has a dangling pointer
  2719. int i = li.begin()[0] // undefined behavior
  2720. * When a list constructor stores the 'begin' pointer from the
  2721. 'initializer_list' argument, this doesn't extend the lifetime
  2722. of the array, so if a class variable is constructed from a
  2723. temporary 'initializer_list', the pointer is left dangling by
  2724. the end of the variable declaration statement.
  2725. '-Wliteral-suffix (C++ and Objective-C++ only)'
  2726. Warn when a string or character literal is followed by a ud-suffix
  2727. which does not begin with an underscore. As a conforming
  2728. extension, GCC treats such suffixes as separate preprocessing
  2729. tokens in order to maintain backwards compatibility with code that
  2730. uses formatting macros from '<inttypes.h>'. For example:
  2731. #define __STDC_FORMAT_MACROS
  2732. #include <inttypes.h>
  2733. #include <stdio.h>
  2734. int main() {
  2735. int64_t i64 = 123;
  2736. printf("My int64: %" PRId64"\n", i64);
  2737. }
  2738. In this case, 'PRId64' is treated as a separate preprocessing
  2739. token.
  2740. Additionally, warn when a user-defined literal operator is declared
  2741. with a literal suffix identifier that doesn't begin with an
  2742. underscore. Literal suffix identifiers that don't begin with an
  2743. underscore are reserved for future standardization.
  2744. This warning is enabled by default.
  2745. '-Wlto-type-mismatch'
  2746. During the link-time optimization warn about type mismatches in
  2747. global declarations from different compilation units. Requires
  2748. '-flto' to be enabled. Enabled by default.
  2749. '-Wno-narrowing (C++ and Objective-C++ only)'
  2750. For C++11 and later standards, narrowing conversions are diagnosed
  2751. by default, as required by the standard. A narrowing conversion
  2752. from a constant produces an error, and a narrowing conversion from
  2753. a non-constant produces a warning, but '-Wno-narrowing' suppresses
  2754. the diagnostic. Note that this does not affect the meaning of
  2755. well-formed code; narrowing conversions are still considered
  2756. ill-formed in SFINAE contexts.
  2757. With '-Wnarrowing' in C++98, warn when a narrowing conversion
  2758. prohibited by C++11 occurs within '{ }', e.g.
  2759. int i = { 2.2 }; // error: narrowing from double to int
  2760. This flag is included in '-Wall' and '-Wc++11-compat'.
  2761. '-Wnoexcept (C++ and Objective-C++ only)'
  2762. Warn when a noexcept-expression evaluates to false because of a
  2763. call to a function that does not have a non-throwing exception
  2764. specification (i.e. 'throw()' or 'noexcept') but is known by the
  2765. compiler to never throw an exception.
  2766. '-Wnoexcept-type (C++ and Objective-C++ only)'
  2767. Warn if the C++17 feature making 'noexcept' part of a function type
  2768. changes the mangled name of a symbol relative to C++14. Enabled by
  2769. '-Wabi' and '-Wc++17-compat'.
  2770. As an example:
  2771. template <class T> void f(T t) { t(); };
  2772. void g() noexcept;
  2773. void h() { f(g); }
  2774. In C++14, 'f' calls 'f<void(*)()>', but in C++17 it calls
  2775. 'f<void(*)()noexcept>'.
  2776. '-Wclass-memaccess (C++ and Objective-C++ only)'
  2777. Warn when the destination of a call to a raw memory function such
  2778. as 'memset' or 'memcpy' is an object of class type, and when
  2779. writing into such an object might bypass the class non-trivial or
  2780. deleted constructor or copy assignment, violate const-correctness
  2781. or encapsulation, or corrupt virtual table pointers. Modifying the
  2782. representation of such objects may violate invariants maintained by
  2783. member functions of the class. For example, the call to 'memset'
  2784. below is undefined because it modifies a non-trivial class object
  2785. and is, therefore, diagnosed. The safe way to either initialize or
  2786. clear the storage of objects of such types is by using the
  2787. appropriate constructor or assignment operator, if one is
  2788. available.
  2789. std::string str = "abc";
  2790. memset (&str, 0, sizeof str);
  2791. The '-Wclass-memaccess' option is enabled by '-Wall'. Explicitly
  2792. casting the pointer to the class object to 'void *' or to a type
  2793. that can be safely accessed by the raw memory function suppresses
  2794. the warning.
  2795. '-Wnon-virtual-dtor (C++ and Objective-C++ only)'
  2796. Warn when a class has virtual functions and an accessible
  2797. non-virtual destructor itself or in an accessible polymorphic base
  2798. class, in which case it is possible but unsafe to delete an
  2799. instance of a derived class through a pointer to the class itself
  2800. or base class. This warning is automatically enabled if '-Weffc++'
  2801. is specified.
  2802. '-Wregister (C++ and Objective-C++ only)'
  2803. Warn on uses of the 'register' storage class specifier, except when
  2804. it is part of the GNU *note Explicit Register Variables::
  2805. extension. The use of the 'register' keyword as storage class
  2806. specifier has been deprecated in C++11 and removed in C++17.
  2807. Enabled by default with '-std=c++17'.
  2808. '-Wreorder (C++ and Objective-C++ only)'
  2809. Warn when the order of member initializers given in the code does
  2810. not match the order in which they must be executed. For instance:
  2811. struct A {
  2812. int i;
  2813. int j;
  2814. A(): j (0), i (1) { }
  2815. };
  2816. The compiler rearranges the member initializers for 'i' and 'j' to
  2817. match the declaration order of the members, emitting a warning to
  2818. that effect. This warning is enabled by '-Wall'.
  2819. '-Wno-pessimizing-move (C++ and Objective-C++ only)'
  2820. This warning warns when a call to 'std::move' prevents copy
  2821. elision. A typical scenario when copy elision can occur is when
  2822. returning in a function with a class return type, when the
  2823. expression being returned is the name of a non-volatile automatic
  2824. object, and is not a function parameter, and has the same type as
  2825. the function return type.
  2826. struct T {
  2827. ...
  2828. };
  2829. T fn()
  2830. {
  2831. T t;
  2832. ...
  2833. return std::move (t);
  2834. }
  2835. But in this example, the 'std::move' call prevents copy elision.
  2836. This warning is enabled by '-Wall'.
  2837. '-Wno-redundant-move (C++ and Objective-C++ only)'
  2838. This warning warns about redundant calls to 'std::move'; that is,
  2839. when a move operation would have been performed even without the
  2840. 'std::move' call. This happens because the compiler is forced to
  2841. treat the object as if it were an rvalue in certain situations such
  2842. as returning a local variable, where copy elision isn't applicable.
  2843. Consider:
  2844. struct T {
  2845. ...
  2846. };
  2847. T fn(T t)
  2848. {
  2849. ...
  2850. return std::move (t);
  2851. }
  2852. Here, the 'std::move' call is redundant. Because G++ implements
  2853. Core Issue 1579, another example is:
  2854. struct T { // convertible to U
  2855. ...
  2856. };
  2857. struct U {
  2858. ...
  2859. };
  2860. U fn()
  2861. {
  2862. T t;
  2863. ...
  2864. return std::move (t);
  2865. }
  2866. In this example, copy elision isn't applicable because the type of
  2867. the expression being returned and the function return type differ,
  2868. yet G++ treats the return value as if it were designated by an
  2869. rvalue.
  2870. This warning is enabled by '-Wextra'.
  2871. '-fext-numeric-literals (C++ and Objective-C++ only)'
  2872. Accept imaginary, fixed-point, or machine-defined literal number
  2873. suffixes as GNU extensions. When this option is turned off these
  2874. suffixes are treated as C++11 user-defined literal numeric
  2875. suffixes. This is on by default for all pre-C++11 dialects and all
  2876. GNU dialects: '-std=c++98', '-std=gnu++98', '-std=gnu++11',
  2877. '-std=gnu++14'. This option is off by default for ISO C++11
  2878. onwards ('-std=c++11', ...).
  2879. The following '-W...' options are not affected by '-Wall'.
  2880. '-Weffc++ (C++ and Objective-C++ only)'
  2881. Warn about violations of the following style guidelines from Scott
  2882. Meyers' 'Effective C++' series of books:
  2883. * Define a copy constructor and an assignment operator for
  2884. classes with dynamically-allocated memory.
  2885. * Prefer initialization to assignment in constructors.
  2886. * Have 'operator=' return a reference to '*this'.
  2887. * Don't try to return a reference when you must return an
  2888. object.
  2889. * Distinguish between prefix and postfix forms of increment and
  2890. decrement operators.
  2891. * Never overload '&&', '||', or ','.
  2892. This option also enables '-Wnon-virtual-dtor', which is also one of
  2893. the effective C++ recommendations. However, the check is extended
  2894. to warn about the lack of virtual destructor in accessible
  2895. non-polymorphic bases classes too.
  2896. When selecting this option, be aware that the standard library
  2897. headers do not obey all of these guidelines; use 'grep -v' to
  2898. filter out those warnings.
  2899. '-Wstrict-null-sentinel (C++ and Objective-C++ only)'
  2900. Warn about the use of an uncasted 'NULL' as sentinel. When
  2901. compiling only with GCC this is a valid sentinel, as 'NULL' is
  2902. defined to '__null'. Although it is a null pointer constant rather
  2903. than a null pointer, it is guaranteed to be of the same size as a
  2904. pointer. But this use is not portable across different compilers.
  2905. '-Wno-non-template-friend (C++ and Objective-C++ only)'
  2906. Disable warnings when non-template friend functions are declared
  2907. within a template. In very old versions of GCC that predate
  2908. implementation of the ISO standard, declarations such as 'friend
  2909. int foo(int)', where the name of the friend is an unqualified-id,
  2910. could be interpreted as a particular specialization of a template
  2911. function; the warning exists to diagnose compatibility problems,
  2912. and is enabled by default.
  2913. '-Wold-style-cast (C++ and Objective-C++ only)'
  2914. Warn if an old-style (C-style) cast to a non-void type is used
  2915. within a C++ program. The new-style casts ('dynamic_cast',
  2916. 'static_cast', 'reinterpret_cast', and 'const_cast') are less
  2917. vulnerable to unintended effects and much easier to search for.
  2918. '-Woverloaded-virtual (C++ and Objective-C++ only)'
  2919. Warn when a function declaration hides virtual functions from a
  2920. base class. For example, in:
  2921. struct A {
  2922. virtual void f();
  2923. };
  2924. struct B: public A {
  2925. void f(int);
  2926. };
  2927. the 'A' class version of 'f' is hidden in 'B', and code like:
  2928. B* b;
  2929. b->f();
  2930. fails to compile.
  2931. '-Wno-pmf-conversions (C++ and Objective-C++ only)'
  2932. Disable the diagnostic for converting a bound pointer to member
  2933. function to a plain pointer.
  2934. '-Wsign-promo (C++ and Objective-C++ only)'
  2935. Warn when overload resolution chooses a promotion from unsigned or
  2936. enumerated type to a signed type, over a conversion to an unsigned
  2937. type of the same size. Previous versions of G++ tried to preserve
  2938. unsignedness, but the standard mandates the current behavior.
  2939. '-Wtemplates (C++ and Objective-C++ only)'
  2940. Warn when a primary template declaration is encountered. Some
  2941. coding rules disallow templates, and this may be used to enforce
  2942. that rule. The warning is inactive inside a system header file,
  2943. such as the STL, so one can still use the STL. One may also
  2944. instantiate or specialize templates.
  2945. '-Wmultiple-inheritance (C++ and Objective-C++ only)'
  2946. Warn when a class is defined with multiple direct base classes.
  2947. Some coding rules disallow multiple inheritance, and this may be
  2948. used to enforce that rule. The warning is inactive inside a system
  2949. header file, such as the STL, so one can still use the STL. One may
  2950. also define classes that indirectly use multiple inheritance.
  2951. '-Wvirtual-inheritance'
  2952. Warn when a class is defined with a virtual direct base class.
  2953. Some coding rules disallow multiple inheritance, and this may be
  2954. used to enforce that rule. The warning is inactive inside a system
  2955. header file, such as the STL, so one can still use the STL. One may
  2956. also define classes that indirectly use virtual inheritance.
  2957. '-Wnamespaces'
  2958. Warn when a namespace definition is opened. Some coding rules
  2959. disallow namespaces, and this may be used to enforce that rule.
  2960. The warning is inactive inside a system header file, such as the
  2961. STL, so one can still use the STL. One may also use using
  2962. directives and qualified names.
  2963. '-Wno-terminate (C++ and Objective-C++ only)'
  2964. Disable the warning about a throw-expression that will immediately
  2965. result in a call to 'terminate'.
  2966. '-Wno-class-conversion (C++ and Objective-C++ only)'
  2967. Disable the warning about the case when a conversion function
  2968. converts an object to the same type, to a base class of that type,
  2969. or to void; such a conversion function will never be called.
  2970. 
  2971. File: gcc.info, Node: Objective-C and Objective-C++ Dialect Options, Next: Diagnostic Message Formatting Options, Prev: C++ Dialect Options, Up: Invoking GCC
  2972. 3.6 Options Controlling Objective-C and Objective-C++ Dialects
  2973. ==============================================================
  2974. (NOTE: This manual does not describe the Objective-C and Objective-C++
  2975. languages themselves. *Note Language Standards Supported by GCC:
  2976. Standards, for references.)
  2977. This section describes the command-line options that are only
  2978. meaningful for Objective-C and Objective-C++ programs. You can also use
  2979. most of the language-independent GNU compiler options. For example, you
  2980. might compile a file 'some_class.m' like this:
  2981. gcc -g -fgnu-runtime -O -c some_class.m
  2982. In this example, '-fgnu-runtime' is an option meant only for Objective-C
  2983. and Objective-C++ programs; you can use the other options with any
  2984. language supported by GCC.
  2985. Note that since Objective-C is an extension of the C language,
  2986. Objective-C compilations may also use options specific to the C
  2987. front-end (e.g., '-Wtraditional'). Similarly, Objective-C++
  2988. compilations may use C++-specific options (e.g., '-Wabi').
  2989. Here is a list of options that are _only_ for compiling Objective-C and
  2990. Objective-C++ programs:
  2991. '-fconstant-string-class=CLASS-NAME'
  2992. Use CLASS-NAME as the name of the class to instantiate for each
  2993. literal string specified with the syntax '@"..."'. The default
  2994. class name is 'NXConstantString' if the GNU runtime is being used,
  2995. and 'NSConstantString' if the NeXT runtime is being used (see
  2996. below). The '-fconstant-cfstrings' option, if also present,
  2997. overrides the '-fconstant-string-class' setting and cause '@"..."'
  2998. literals to be laid out as constant CoreFoundation strings.
  2999. '-fgnu-runtime'
  3000. Generate object code compatible with the standard GNU Objective-C
  3001. runtime. This is the default for most types of systems.
  3002. '-fnext-runtime'
  3003. Generate output compatible with the NeXT runtime. This is the
  3004. default for NeXT-based systems, including Darwin and Mac OS X. The
  3005. macro '__NEXT_RUNTIME__' is predefined if (and only if) this option
  3006. is used.
  3007. '-fno-nil-receivers'
  3008. Assume that all Objective-C message dispatches ('[receiver
  3009. message:arg]') in this translation unit ensure that the receiver is
  3010. not 'nil'. This allows for more efficient entry points in the
  3011. runtime to be used. This option is only available in conjunction
  3012. with the NeXT runtime and ABI version 0 or 1.
  3013. '-fobjc-abi-version=N'
  3014. Use version N of the Objective-C ABI for the selected runtime.
  3015. This option is currently supported only for the NeXT runtime. In
  3016. that case, Version 0 is the traditional (32-bit) ABI without
  3017. support for properties and other Objective-C 2.0 additions.
  3018. Version 1 is the traditional (32-bit) ABI with support for
  3019. properties and other Objective-C 2.0 additions. Version 2 is the
  3020. modern (64-bit) ABI. If nothing is specified, the default is
  3021. Version 0 on 32-bit target machines, and Version 2 on 64-bit target
  3022. machines.
  3023. '-fobjc-call-cxx-cdtors'
  3024. For each Objective-C class, check if any of its instance variables
  3025. is a C++ object with a non-trivial default constructor. If so,
  3026. synthesize a special '- (id) .cxx_construct' instance method which
  3027. runs non-trivial default constructors on any such instance
  3028. variables, in order, and then return 'self'. Similarly, check if
  3029. any instance variable is a C++ object with a non-trivial
  3030. destructor, and if so, synthesize a special '- (void)
  3031. .cxx_destruct' method which runs all such default destructors, in
  3032. reverse order.
  3033. The '- (id) .cxx_construct' and '- (void) .cxx_destruct' methods
  3034. thusly generated only operate on instance variables declared in the
  3035. current Objective-C class, and not those inherited from
  3036. superclasses. It is the responsibility of the Objective-C runtime
  3037. to invoke all such methods in an object's inheritance hierarchy.
  3038. The '- (id) .cxx_construct' methods are invoked by the runtime
  3039. immediately after a new object instance is allocated; the '- (void)
  3040. .cxx_destruct' methods are invoked immediately before the runtime
  3041. deallocates an object instance.
  3042. As of this writing, only the NeXT runtime on Mac OS X 10.4 and
  3043. later has support for invoking the '- (id) .cxx_construct' and '-
  3044. (void) .cxx_destruct' methods.
  3045. '-fobjc-direct-dispatch'
  3046. Allow fast jumps to the message dispatcher. On Darwin this is
  3047. accomplished via the comm page.
  3048. '-fobjc-exceptions'
  3049. Enable syntactic support for structured exception handling in
  3050. Objective-C, similar to what is offered by C++. This option is
  3051. required to use the Objective-C keywords '@try', '@throw',
  3052. '@catch', '@finally' and '@synchronized'. This option is available
  3053. with both the GNU runtime and the NeXT runtime (but not available
  3054. in conjunction with the NeXT runtime on Mac OS X 10.2 and earlier).
  3055. '-fobjc-gc'
  3056. Enable garbage collection (GC) in Objective-C and Objective-C++
  3057. programs. This option is only available with the NeXT runtime; the
  3058. GNU runtime has a different garbage collection implementation that
  3059. does not require special compiler flags.
  3060. '-fobjc-nilcheck'
  3061. For the NeXT runtime with version 2 of the ABI, check for a nil
  3062. receiver in method invocations before doing the actual method call.
  3063. This is the default and can be disabled using '-fno-objc-nilcheck'.
  3064. Class methods and super calls are never checked for nil in this way
  3065. no matter what this flag is set to. Currently this flag does
  3066. nothing when the GNU runtime, or an older version of the NeXT
  3067. runtime ABI, is used.
  3068. '-fobjc-std=objc1'
  3069. Conform to the language syntax of Objective-C 1.0, the language
  3070. recognized by GCC 4.0. This only affects the Objective-C additions
  3071. to the C/C++ language; it does not affect conformance to C/C++
  3072. standards, which is controlled by the separate C/C++ dialect option
  3073. flags. When this option is used with the Objective-C or
  3074. Objective-C++ compiler, any Objective-C syntax that is not
  3075. recognized by GCC 4.0 is rejected. This is useful if you need to
  3076. make sure that your Objective-C code can be compiled with older
  3077. versions of GCC.
  3078. '-freplace-objc-classes'
  3079. Emit a special marker instructing 'ld(1)' not to statically link in
  3080. the resulting object file, and allow 'dyld(1)' to load it in at run
  3081. time instead. This is used in conjunction with the
  3082. Fix-and-Continue debugging mode, where the object file in question
  3083. may be recompiled and dynamically reloaded in the course of program
  3084. execution, without the need to restart the program itself.
  3085. Currently, Fix-and-Continue functionality is only available in
  3086. conjunction with the NeXT runtime on Mac OS X 10.3 and later.
  3087. '-fzero-link'
  3088. When compiling for the NeXT runtime, the compiler ordinarily
  3089. replaces calls to 'objc_getClass("...")' (when the name of the
  3090. class is known at compile time) with static class references that
  3091. get initialized at load time, which improves run-time performance.
  3092. Specifying the '-fzero-link' flag suppresses this behavior and
  3093. causes calls to 'objc_getClass("...")' to be retained. This is
  3094. useful in Zero-Link debugging mode, since it allows for individual
  3095. class implementations to be modified during program execution. The
  3096. GNU runtime currently always retains calls to
  3097. 'objc_get_class("...")' regardless of command-line options.
  3098. '-fno-local-ivars'
  3099. By default instance variables in Objective-C can be accessed as if
  3100. they were local variables from within the methods of the class
  3101. they're declared in. This can lead to shadowing between instance
  3102. variables and other variables declared either locally inside a
  3103. class method or globally with the same name. Specifying the
  3104. '-fno-local-ivars' flag disables this behavior thus avoiding
  3105. variable shadowing issues.
  3106. '-fivar-visibility=[public|protected|private|package]'
  3107. Set the default instance variable visibility to the specified
  3108. option so that instance variables declared outside the scope of any
  3109. access modifier directives default to the specified visibility.
  3110. '-gen-decls'
  3111. Dump interface declarations for all classes seen in the source file
  3112. to a file named 'SOURCENAME.decl'.
  3113. '-Wassign-intercept (Objective-C and Objective-C++ only)'
  3114. Warn whenever an Objective-C assignment is being intercepted by the
  3115. garbage collector.
  3116. '-Wno-protocol (Objective-C and Objective-C++ only)'
  3117. If a class is declared to implement a protocol, a warning is issued
  3118. for every method in the protocol that is not implemented by the
  3119. class. The default behavior is to issue a warning for every method
  3120. not explicitly implemented in the class, even if a method
  3121. implementation is inherited from the superclass. If you use the
  3122. '-Wno-protocol' option, then methods inherited from the superclass
  3123. are considered to be implemented, and no warning is issued for
  3124. them.
  3125. '-Wselector (Objective-C and Objective-C++ only)'
  3126. Warn if multiple methods of different types for the same selector
  3127. are found during compilation. The check is performed on the list
  3128. of methods in the final stage of compilation. Additionally, a
  3129. check is performed for each selector appearing in a
  3130. '@selector(...)' expression, and a corresponding method for that
  3131. selector has been found during compilation. Because these checks
  3132. scan the method table only at the end of compilation, these
  3133. warnings are not produced if the final stage of compilation is not
  3134. reached, for example because an error is found during compilation,
  3135. or because the '-fsyntax-only' option is being used.
  3136. '-Wstrict-selector-match (Objective-C and Objective-C++ only)'
  3137. Warn if multiple methods with differing argument and/or return
  3138. types are found for a given selector when attempting to send a
  3139. message using this selector to a receiver of type 'id' or 'Class'.
  3140. When this flag is off (which is the default behavior), the compiler
  3141. omits such warnings if any differences found are confined to types
  3142. that share the same size and alignment.
  3143. '-Wundeclared-selector (Objective-C and Objective-C++ only)'
  3144. Warn if a '@selector(...)' expression referring to an undeclared
  3145. selector is found. A selector is considered undeclared if no
  3146. method with that name has been declared before the '@selector(...)'
  3147. expression, either explicitly in an '@interface' or '@protocol'
  3148. declaration, or implicitly in an '@implementation' section. This
  3149. option always performs its checks as soon as a '@selector(...)'
  3150. expression is found, while '-Wselector' only performs its checks in
  3151. the final stage of compilation. This also enforces the coding
  3152. style convention that methods and selectors must be declared before
  3153. being used.
  3154. '-print-objc-runtime-info'
  3155. Generate C header describing the largest structure that is passed
  3156. by value, if any.
  3157. 
  3158. File: gcc.info, Node: Diagnostic Message Formatting Options, Next: Warning Options, Prev: Objective-C and Objective-C++ Dialect Options, Up: Invoking GCC
  3159. 3.7 Options to Control Diagnostic Messages Formatting
  3160. =====================================================
  3161. Traditionally, diagnostic messages have been formatted irrespective of
  3162. the output device's aspect (e.g. its width, ...). You can use the
  3163. options described below to control the formatting algorithm for
  3164. diagnostic messages, e.g. how many characters per line, how often source
  3165. location information should be reported. Note that some language front
  3166. ends may not honor these options.
  3167. '-fmessage-length=N'
  3168. Try to format error messages so that they fit on lines of about N
  3169. characters. If N is zero, then no line-wrapping is done; each
  3170. error message appears on a single line. This is the default for
  3171. all front ends.
  3172. Note - this option also affects the display of the '#error' and
  3173. '#warning' pre-processor directives, and the 'deprecated'
  3174. function/type/variable attribute. It does not however affect the
  3175. 'pragma GCC warning' and 'pragma GCC error' pragmas.
  3176. '-fdiagnostics-show-location=once'
  3177. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3178. messages reporter to emit source location information _once_; that
  3179. is, in case the message is too long to fit on a single physical
  3180. line and has to be wrapped, the source location won't be emitted
  3181. (as prefix) again, over and over, in subsequent continuation lines.
  3182. This is the default behavior.
  3183. '-fdiagnostics-show-location=every-line'
  3184. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3185. messages reporter to emit the same source location information (as
  3186. prefix) for physical lines that result from the process of breaking
  3187. a message which is too long to fit on a single line.
  3188. '-fdiagnostics-color[=WHEN]'
  3189. '-fno-diagnostics-color'
  3190. Use color in diagnostics. WHEN is 'never', 'always', or 'auto'.
  3191. The default depends on how the compiler has been configured, it can
  3192. be any of the above WHEN options or also 'never' if 'GCC_COLORS'
  3193. environment variable isn't present in the environment, and 'auto'
  3194. otherwise. 'auto' means to use color only when the standard error
  3195. is a terminal. The forms '-fdiagnostics-color' and
  3196. '-fno-diagnostics-color' are aliases for
  3197. '-fdiagnostics-color=always' and '-fdiagnostics-color=never',
  3198. respectively.
  3199. The colors are defined by the environment variable 'GCC_COLORS'.
  3200. Its value is a colon-separated list of capabilities and Select
  3201. Graphic Rendition (SGR) substrings. SGR commands are interpreted
  3202. by the terminal or terminal emulator. (See the section in the
  3203. documentation of your text terminal for permitted values and their
  3204. meanings as character attributes.) These substring values are
  3205. integers in decimal representation and can be concatenated with
  3206. semicolons. Common values to concatenate include '1' for bold, '4'
  3207. for underline, '5' for blink, '7' for inverse, '39' for default
  3208. foreground color, '30' to '37' for foreground colors, '90' to '97'
  3209. for 16-color mode foreground colors, '38;5;0' to '38;5;255' for
  3210. 88-color and 256-color modes foreground colors, '49' for default
  3211. background color, '40' to '47' for background colors, '100' to
  3212. '107' for 16-color mode background colors, and '48;5;0' to
  3213. '48;5;255' for 88-color and 256-color modes background colors.
  3214. The default 'GCC_COLORS' is
  3215. error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\
  3216. quote=01:fixit-insert=32:fixit-delete=31:\
  3217. diff-filename=01:diff-hunk=32:diff-delete=31:diff-insert=32:\
  3218. type-diff=01;32
  3219. where '01;31' is bold red, '01;35' is bold magenta, '01;36' is bold
  3220. cyan, '32' is green, '34' is blue, '01' is bold, and '31' is red.
  3221. Setting 'GCC_COLORS' to the empty string disables colors.
  3222. Supported capabilities are as follows.
  3223. 'error='
  3224. SGR substring for error: markers.
  3225. 'warning='
  3226. SGR substring for warning: markers.
  3227. 'note='
  3228. SGR substring for note: markers.
  3229. 'range1='
  3230. SGR substring for first additional range.
  3231. 'range2='
  3232. SGR substring for second additional range.
  3233. 'locus='
  3234. SGR substring for location information, 'file:line' or
  3235. 'file:line:column' etc.
  3236. 'quote='
  3237. SGR substring for information printed within quotes.
  3238. 'fixit-insert='
  3239. SGR substring for fix-it hints suggesting text to be inserted
  3240. or replaced.
  3241. 'fixit-delete='
  3242. SGR substring for fix-it hints suggesting text to be deleted.
  3243. 'diff-filename='
  3244. SGR substring for filename headers within generated patches.
  3245. 'diff-hunk='
  3246. SGR substring for the starts of hunks within generated
  3247. patches.
  3248. 'diff-delete='
  3249. SGR substring for deleted lines within generated patches.
  3250. 'diff-insert='
  3251. SGR substring for inserted lines within generated patches.
  3252. 'type-diff='
  3253. SGR substring for highlighting mismatching types within
  3254. template arguments in the C++ frontend.
  3255. '-fno-diagnostics-show-option'
  3256. By default, each diagnostic emitted includes text indicating the
  3257. command-line option that directly controls the diagnostic (if such
  3258. an option is known to the diagnostic machinery). Specifying the
  3259. '-fno-diagnostics-show-option' flag suppresses that behavior.
  3260. '-fno-diagnostics-show-caret'
  3261. By default, each diagnostic emitted includes the original source
  3262. line and a caret '^' indicating the column. This option suppresses
  3263. this information. The source line is truncated to N characters, if
  3264. the '-fmessage-length=n' option is given. When the output is done
  3265. to the terminal, the width is limited to the width given by the
  3266. 'COLUMNS' environment variable or, if not set, to the terminal
  3267. width.
  3268. '-fno-diagnostics-show-labels'
  3269. By default, when printing source code (via
  3270. '-fdiagnostics-show-caret'), diagnostics can label ranges of source
  3271. code with pertinent information, such as the types of expressions:
  3272. printf ("foo %s bar", long_i + long_j);
  3273. ~^ ~~~~~~~~~~~~~~~
  3274. | |
  3275. char * long int
  3276. This option suppresses the printing of these labels (in the example
  3277. above, the vertical bars and the "char *" and "long int" text).
  3278. '-fno-diagnostics-show-line-numbers'
  3279. By default, when printing source code (via
  3280. '-fdiagnostics-show-caret'), a left margin is printed, showing line
  3281. numbers. This option suppresses this left margin.
  3282. '-fdiagnostics-minimum-margin-width=WIDTH'
  3283. This option controls the minimum width of the left margin printed
  3284. by '-fdiagnostics-show-line-numbers'. It defaults to 6.
  3285. '-fdiagnostics-parseable-fixits'
  3286. Emit fix-it hints in a machine-parseable format, suitable for
  3287. consumption by IDEs. For each fix-it, a line will be printed after
  3288. the relevant diagnostic, starting with the string "fix-it:". For
  3289. example:
  3290. fix-it:"test.c":{45:3-45:21}:"gtk_widget_show_all"
  3291. The location is expressed as a half-open range, expressed as a
  3292. count of bytes, starting at byte 1 for the initial column. In the
  3293. above example, bytes 3 through 20 of line 45 of "test.c" are to be
  3294. replaced with the given string:
  3295. 00000000011111111112222222222
  3296. 12345678901234567890123456789
  3297. gtk_widget_showall (dlg);
  3298. ^^^^^^^^^^^^^^^^^^
  3299. gtk_widget_show_all
  3300. The filename and replacement string escape backslash as "\\", tab
  3301. as "\t", newline as "\n", double quotes as "\"", non-printable
  3302. characters as octal (e.g. vertical tab as "\013").
  3303. An empty replacement string indicates that the given range is to be
  3304. removed. An empty range (e.g. "45:3-45:3") indicates that the
  3305. string is to be inserted at the given position.
  3306. '-fdiagnostics-generate-patch'
  3307. Print fix-it hints to stderr in unified diff format, after any
  3308. diagnostics are printed. For example:
  3309. --- test.c
  3310. +++ test.c
  3311. @ -42,5 +42,5 @
  3312. void show_cb(GtkDialog *dlg)
  3313. {
  3314. - gtk_widget_showall(dlg);
  3315. + gtk_widget_show_all(dlg);
  3316. }
  3317. The diff may or may not be colorized, following the same rules as
  3318. for diagnostics (see '-fdiagnostics-color').
  3319. '-fdiagnostics-show-template-tree'
  3320. In the C++ frontend, when printing diagnostics showing mismatching
  3321. template types, such as:
  3322. could not convert 'std::map<int, std::vector<double> >()'
  3323. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3324. the '-fdiagnostics-show-template-tree' flag enables printing a
  3325. tree-like structure showing the common and differing parts of the
  3326. types, such as:
  3327. map<
  3328. [...],
  3329. vector<
  3330. [double != float]>>
  3331. The parts that differ are highlighted with color ("double" and
  3332. "float" in this case).
  3333. '-fno-elide-type'
  3334. By default when the C++ frontend prints diagnostics showing
  3335. mismatching template types, common parts of the types are printed
  3336. as "[...]" to simplify the error message. For example:
  3337. could not convert 'std::map<int, std::vector<double> >()'
  3338. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3339. Specifying the '-fno-elide-type' flag suppresses that behavior.
  3340. This flag also affects the output of the
  3341. '-fdiagnostics-show-template-tree' flag.
  3342. '-fno-show-column'
  3343. Do not print column numbers in diagnostics. This may be necessary
  3344. if diagnostics are being scanned by a program that does not
  3345. understand the column numbers, such as 'dejagnu'.
  3346. '-fdiagnostics-format=FORMAT'
  3347. Select a different format for printing diagnostics. FORMAT is
  3348. 'text' or 'json'. The default is 'text'.
  3349. The 'json' format consists of a top-level JSON array containing
  3350. JSON objects representing the diagnostics.
  3351. The JSON is emitted as one line, without formatting; the examples
  3352. below have been formatted for clarity.
  3353. Diagnostics can have child diagnostics. For example, this error
  3354. and note:
  3355. misleading-indentation.c:15:3: warning: this 'if' clause does not
  3356. guard... [-Wmisleading-indentation]
  3357. 15 | if (flag)
  3358. | ^~
  3359. misleading-indentation.c:17:5: note: ...this statement, but the latter
  3360. is misleadingly indented as if it were guarded by the 'if'
  3361. 17 | y = 2;
  3362. | ^
  3363. might be printed in JSON form (after formatting) like this:
  3364. [
  3365. {
  3366. "kind": "warning",
  3367. "locations": [
  3368. {
  3369. "caret": {
  3370. "column": 3,
  3371. "file": "misleading-indentation.c",
  3372. "line": 15
  3373. },
  3374. "finish": {
  3375. "column": 4,
  3376. "file": "misleading-indentation.c",
  3377. "line": 15
  3378. }
  3379. }
  3380. ],
  3381. "message": "this \u2018if\u2019 clause does not guard...",
  3382. "option": "-Wmisleading-indentation",
  3383. "children": [
  3384. {
  3385. "kind": "note",
  3386. "locations": [
  3387. {
  3388. "caret": {
  3389. "column": 5,
  3390. "file": "misleading-indentation.c",
  3391. "line": 17
  3392. }
  3393. }
  3394. ],
  3395. "message": "...this statement, but the latter is ..."
  3396. }
  3397. ]
  3398. },
  3399. ...
  3400. ]
  3401. where the 'note' is a child of the 'warning'.
  3402. A diagnostic has a 'kind'. If this is 'warning', then there is an
  3403. 'option' key describing the command-line option controlling the
  3404. warning.
  3405. A diagnostic can contain zero or more locations. Each location has
  3406. up to three positions within it: a 'caret' position and optional
  3407. 'start' and 'finish' positions. A location can also have an
  3408. optional 'label' string. For example, this error:
  3409. bad-binary-ops.c:64:23: error: invalid operands to binary + (have 'S' {aka
  3410. 'struct s'} and 'T' {aka 'struct t'})
  3411. 64 | return callee_4a () + callee_4b ();
  3412. | ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
  3413. | | |
  3414. | | T {aka struct t}
  3415. | S {aka struct s}
  3416. has three locations. Its primary location is at the "+" token at
  3417. column 23. It has two secondary locations, describing the left and
  3418. right-hand sides of the expression, which have labels. It might be
  3419. printed in JSON form as:
  3420. {
  3421. "children": [],
  3422. "kind": "error",
  3423. "locations": [
  3424. {
  3425. "caret": {
  3426. "column": 23, "file": "bad-binary-ops.c", "line": 64
  3427. }
  3428. },
  3429. {
  3430. "caret": {
  3431. "column": 10, "file": "bad-binary-ops.c", "line": 64
  3432. },
  3433. "finish": {
  3434. "column": 21, "file": "bad-binary-ops.c", "line": 64
  3435. },
  3436. "label": "S {aka struct s}"
  3437. },
  3438. {
  3439. "caret": {
  3440. "column": 25, "file": "bad-binary-ops.c", "line": 64
  3441. },
  3442. "finish": {
  3443. "column": 36, "file": "bad-binary-ops.c", "line": 64
  3444. },
  3445. "label": "T {aka struct t}"
  3446. }
  3447. ],
  3448. "message": "invalid operands to binary + ..."
  3449. }
  3450. If a diagnostic contains fix-it hints, it has a 'fixits' array,
  3451. consisting of half-open intervals, similar to the output of
  3452. '-fdiagnostics-parseable-fixits'. For example, this diagnostic
  3453. with a replacement fix-it hint:
  3454. demo.c:8:15: error: 'struct s' has no member named 'colour'; did you
  3455. mean 'color'?
  3456. 8 | return ptr->colour;
  3457. | ^~~~~~
  3458. | color
  3459. might be printed in JSON form as:
  3460. {
  3461. "children": [],
  3462. "fixits": [
  3463. {
  3464. "next": {
  3465. "column": 21,
  3466. "file": "demo.c",
  3467. "line": 8
  3468. },
  3469. "start": {
  3470. "column": 15,
  3471. "file": "demo.c",
  3472. "line": 8
  3473. },
  3474. "string": "color"
  3475. }
  3476. ],
  3477. "kind": "error",
  3478. "locations": [
  3479. {
  3480. "caret": {
  3481. "column": 15,
  3482. "file": "demo.c",
  3483. "line": 8
  3484. },
  3485. "finish": {
  3486. "column": 20,
  3487. "file": "demo.c",
  3488. "line": 8
  3489. }
  3490. }
  3491. ],
  3492. "message": "\u2018struct s\u2019 has no member named ..."
  3493. }
  3494. where the fix-it hint suggests replacing the text from 'start' up
  3495. to but not including 'next' with 'string''s value. Deletions are
  3496. expressed via an empty value for 'string', insertions by having
  3497. 'start' equal 'next'.
  3498. 
  3499. File: gcc.info, Node: Warning Options, Next: Debugging Options, Prev: Diagnostic Message Formatting Options, Up: Invoking GCC
  3500. 3.8 Options to Request or Suppress Warnings
  3501. ===========================================
  3502. Warnings are diagnostic messages that report constructions that are not
  3503. inherently erroneous but that are risky or suggest there may have been
  3504. an error.
  3505. The following language-independent options do not enable specific
  3506. warnings but control the kinds of diagnostics produced by GCC.
  3507. '-fsyntax-only'
  3508. Check the code for syntax errors, but don't do anything beyond
  3509. that.
  3510. '-fmax-errors=N'
  3511. Limits the maximum number of error messages to N, at which point
  3512. GCC bails out rather than attempting to continue processing the
  3513. source code. If N is 0 (the default), there is no limit on the
  3514. number of error messages produced. If '-Wfatal-errors' is also
  3515. specified, then '-Wfatal-errors' takes precedence over this option.
  3516. '-w'
  3517. Inhibit all warning messages.
  3518. '-Werror'
  3519. Make all warnings into errors.
  3520. '-Werror='
  3521. Make the specified warning into an error. The specifier for a
  3522. warning is appended; for example '-Werror=switch' turns the
  3523. warnings controlled by '-Wswitch' into errors. This switch takes a
  3524. negative form, to be used to negate '-Werror' for specific
  3525. warnings; for example '-Wno-error=switch' makes '-Wswitch' warnings
  3526. not be errors, even when '-Werror' is in effect.
  3527. The warning message for each controllable warning includes the
  3528. option that controls the warning. That option can then be used
  3529. with '-Werror=' and '-Wno-error=' as described above. (Printing of
  3530. the option in the warning message can be disabled using the
  3531. '-fno-diagnostics-show-option' flag.)
  3532. Note that specifying '-Werror='FOO automatically implies '-W'FOO.
  3533. However, '-Wno-error='FOO does not imply anything.
  3534. '-Wfatal-errors'
  3535. This option causes the compiler to abort compilation on the first
  3536. error occurred rather than trying to keep going and printing
  3537. further error messages.
  3538. You can request many specific warnings with options beginning with
  3539. '-W', for example '-Wimplicit' to request warnings on implicit
  3540. declarations. Each of these specific warning options also has a
  3541. negative form beginning '-Wno-' to turn off warnings; for example,
  3542. '-Wno-implicit'. This manual lists only one of the two forms, whichever
  3543. is not the default. For further language-specific options also refer to
  3544. *note C++ Dialect Options:: and *note Objective-C and Objective-C++
  3545. Dialect Options::.
  3546. Some options, such as '-Wall' and '-Wextra', turn on other options,
  3547. such as '-Wunused', which may turn on further options, such as
  3548. '-Wunused-value'. The combined effect of positive and negative forms is
  3549. that more specific options have priority over less specific ones,
  3550. independently of their position in the command-line. For options of the
  3551. same specificity, the last one takes effect. Options enabled or
  3552. disabled via pragmas (*note Diagnostic Pragmas::) take effect as if they
  3553. appeared at the end of the command-line.
  3554. When an unrecognized warning option is requested (e.g.,
  3555. '-Wunknown-warning'), GCC emits a diagnostic stating that the option is
  3556. not recognized. However, if the '-Wno-' form is used, the behavior is
  3557. slightly different: no diagnostic is produced for '-Wno-unknown-warning'
  3558. unless other diagnostics are being produced. This allows the use of new
  3559. '-Wno-' options with old compilers, but if something goes wrong, the
  3560. compiler warns that an unrecognized option is present.
  3561. '-Wpedantic'
  3562. '-pedantic'
  3563. Issue all the warnings demanded by strict ISO C and ISO C++; reject
  3564. all programs that use forbidden extensions, and some other programs
  3565. that do not follow ISO C and ISO C++. For ISO C, follows the
  3566. version of the ISO C standard specified by any '-std' option used.
  3567. Valid ISO C and ISO C++ programs should compile properly with or
  3568. without this option (though a rare few require '-ansi' or a '-std'
  3569. option specifying the required version of ISO C). However, without
  3570. this option, certain GNU extensions and traditional C and C++
  3571. features are supported as well. With this option, they are
  3572. rejected.
  3573. '-Wpedantic' does not cause warning messages for use of the
  3574. alternate keywords whose names begin and end with '__'. Pedantic
  3575. warnings are also disabled in the expression that follows
  3576. '__extension__'. However, only system header files should use
  3577. these escape routes; application programs should avoid them. *Note
  3578. Alternate Keywords::.
  3579. Some users try to use '-Wpedantic' to check programs for strict ISO
  3580. C conformance. They soon find that it does not do quite what they
  3581. want: it finds some non-ISO practices, but not all--only those for
  3582. which ISO C _requires_ a diagnostic, and some others for which
  3583. diagnostics have been added.
  3584. A feature to report any failure to conform to ISO C might be useful
  3585. in some instances, but would require considerable additional work
  3586. and would be quite different from '-Wpedantic'. We don't have
  3587. plans to support such a feature in the near future.
  3588. Where the standard specified with '-std' represents a GNU extended
  3589. dialect of C, such as 'gnu90' or 'gnu99', there is a corresponding
  3590. "base standard", the version of ISO C on which the GNU extended
  3591. dialect is based. Warnings from '-Wpedantic' are given where they
  3592. are required by the base standard. (It does not make sense for
  3593. such warnings to be given only for features not in the specified
  3594. GNU C dialect, since by definition the GNU dialects of C include
  3595. all features the compiler supports with the given option, and there
  3596. would be nothing to warn about.)
  3597. '-pedantic-errors'
  3598. Give an error whenever the "base standard" (see '-Wpedantic')
  3599. requires a diagnostic, in some cases where there is undefined
  3600. behavior at compile-time and in some other cases that do not
  3601. prevent compilation of programs that are valid according to the
  3602. standard. This is not equivalent to '-Werror=pedantic', since
  3603. there are errors enabled by this option and not enabled by the
  3604. latter and vice versa.
  3605. '-Wall'
  3606. This enables all the warnings about constructions that some users
  3607. consider questionable, and that are easy to avoid (or modify to
  3608. prevent the warning), even in conjunction with macros. This also
  3609. enables some language-specific warnings described in *note C++
  3610. Dialect Options:: and *note Objective-C and Objective-C++ Dialect
  3611. Options::.
  3612. '-Wall' turns on the following warning flags:
  3613. -Waddress
  3614. -Warray-bounds=1 (only with -O2)
  3615. -Wbool-compare
  3616. -Wbool-operation
  3617. -Wc++11-compat -Wc++14-compat
  3618. -Wcatch-value (C++ and Objective-C++ only)
  3619. -Wchar-subscripts
  3620. -Wcomment
  3621. -Wduplicate-decl-specifier (C and Objective-C only)
  3622. -Wenum-compare (in C/ObjC; this is on by default in C++)
  3623. -Wformat
  3624. -Wint-in-bool-context
  3625. -Wimplicit (C and Objective-C only)
  3626. -Wimplicit-int (C and Objective-C only)
  3627. -Wimplicit-function-declaration (C and Objective-C only)
  3628. -Winit-self (only for C++)
  3629. -Wlogical-not-parentheses
  3630. -Wmain (only for C/ObjC and unless -ffreestanding)
  3631. -Wmaybe-uninitialized
  3632. -Wmemset-elt-size
  3633. -Wmemset-transposed-args
  3634. -Wmisleading-indentation (only for C/C++)
  3635. -Wmissing-attributes
  3636. -Wmissing-braces (only for C/ObjC)
  3637. -Wmultistatement-macros
  3638. -Wnarrowing (only for C++)
  3639. -Wnonnull
  3640. -Wnonnull-compare
  3641. -Wopenmp-simd
  3642. -Wparentheses
  3643. -Wpessimizing-move (only for C++)
  3644. -Wpointer-sign
  3645. -Wreorder
  3646. -Wrestrict
  3647. -Wreturn-type
  3648. -Wsequence-point
  3649. -Wsign-compare (only in C++)
  3650. -Wsizeof-pointer-div
  3651. -Wsizeof-pointer-memaccess
  3652. -Wstrict-aliasing
  3653. -Wstrict-overflow=1
  3654. -Wswitch
  3655. -Wtautological-compare
  3656. -Wtrigraphs
  3657. -Wuninitialized
  3658. -Wunknown-pragmas
  3659. -Wunused-function
  3660. -Wunused-label
  3661. -Wunused-value
  3662. -Wunused-variable
  3663. -Wvolatile-register-var
  3664. Note that some warning flags are not implied by '-Wall'. Some of
  3665. them warn about constructions that users generally do not consider
  3666. questionable, but which occasionally you might wish to check for;
  3667. others warn about constructions that are necessary or hard to avoid
  3668. in some cases, and there is no simple way to modify the code to
  3669. suppress the warning. Some of them are enabled by '-Wextra' but
  3670. many of them must be enabled individually.
  3671. '-Wextra'
  3672. This enables some extra warning flags that are not enabled by
  3673. '-Wall'. (This option used to be called '-W'. The older name is
  3674. still supported, but the newer name is more descriptive.)
  3675. -Wclobbered
  3676. -Wcast-function-type
  3677. -Wdeprecated-copy (C++ only)
  3678. -Wempty-body
  3679. -Wignored-qualifiers
  3680. -Wimplicit-fallthrough=3
  3681. -Wmissing-field-initializers
  3682. -Wmissing-parameter-type (C only)
  3683. -Wold-style-declaration (C only)
  3684. -Woverride-init
  3685. -Wsign-compare (C only)
  3686. -Wredundant-move (only for C++)
  3687. -Wtype-limits
  3688. -Wuninitialized
  3689. -Wshift-negative-value (in C++03 and in C99 and newer)
  3690. -Wunused-parameter (only with -Wunused or -Wall)
  3691. -Wunused-but-set-parameter (only with -Wunused or -Wall)
  3692. The option '-Wextra' also prints warning messages for the following
  3693. cases:
  3694. * A pointer is compared against integer zero with '<', '<=',
  3695. '>', or '>='.
  3696. * (C++ only) An enumerator and a non-enumerator both appear in a
  3697. conditional expression.
  3698. * (C++ only) Ambiguous virtual bases.
  3699. * (C++ only) Subscripting an array that has been declared
  3700. 'register'.
  3701. * (C++ only) Taking the address of a variable that has been
  3702. declared 'register'.
  3703. * (C++ only) A base class is not initialized in the copy
  3704. constructor of a derived class.
  3705. '-Wchar-subscripts'
  3706. Warn if an array subscript has type 'char'. This is a common cause
  3707. of error, as programmers often forget that this type is signed on
  3708. some machines. This warning is enabled by '-Wall'.
  3709. '-Wno-coverage-mismatch'
  3710. Warn if feedback profiles do not match when using the
  3711. '-fprofile-use' option. If a source file is changed between
  3712. compiling with '-fprofile-generate' and with '-fprofile-use', the
  3713. files with the profile feedback can fail to match the source file
  3714. and GCC cannot use the profile feedback information. By default,
  3715. this warning is enabled and is treated as an error.
  3716. '-Wno-coverage-mismatch' can be used to disable the warning or
  3717. '-Wno-error=coverage-mismatch' can be used to disable the error.
  3718. Disabling the error for this warning can result in poorly optimized
  3719. code and is useful only in the case of very minor changes such as
  3720. bug fixes to an existing code-base. Completely disabling the
  3721. warning is not recommended.
  3722. '-Wno-cpp'
  3723. (C, Objective-C, C++, Objective-C++ and Fortran only)
  3724. Suppress warning messages emitted by '#warning' directives.
  3725. '-Wdouble-promotion (C, C++, Objective-C and Objective-C++ only)'
  3726. Give a warning when a value of type 'float' is implicitly promoted
  3727. to 'double'. CPUs with a 32-bit "single-precision" floating-point
  3728. unit implement 'float' in hardware, but emulate 'double' in
  3729. software. On such a machine, doing computations using 'double'
  3730. values is much more expensive because of the overhead required for
  3731. software emulation.
  3732. It is easy to accidentally do computations with 'double' because
  3733. floating-point literals are implicitly of type 'double'. For
  3734. example, in:
  3735. float area(float radius)
  3736. {
  3737. return 3.14159 * radius * radius;
  3738. }
  3739. the compiler performs the entire computation with 'double' because
  3740. the floating-point literal is a 'double'.
  3741. '-Wduplicate-decl-specifier (C and Objective-C only)'
  3742. Warn if a declaration has duplicate 'const', 'volatile', 'restrict'
  3743. or '_Atomic' specifier. This warning is enabled by '-Wall'.
  3744. '-Wformat'
  3745. '-Wformat=N'
  3746. Check calls to 'printf' and 'scanf', etc., to make sure that the
  3747. arguments supplied have types appropriate to the format string
  3748. specified, and that the conversions specified in the format string
  3749. make sense. This includes standard functions, and others specified
  3750. by format attributes (*note Function Attributes::), in the
  3751. 'printf', 'scanf', 'strftime' and 'strfmon' (an X/Open extension,
  3752. not in the C standard) families (or other target-specific
  3753. families). Which functions are checked without format attributes
  3754. having been specified depends on the standard version selected, and
  3755. such checks of functions without the attribute specified are
  3756. disabled by '-ffreestanding' or '-fno-builtin'.
  3757. The formats are checked against the format features supported by
  3758. GNU libc version 2.2. These include all ISO C90 and C99 features,
  3759. as well as features from the Single Unix Specification and some BSD
  3760. and GNU extensions. Other library implementations may not support
  3761. all these features; GCC does not support warning about features
  3762. that go beyond a particular library's limitations. However, if
  3763. '-Wpedantic' is used with '-Wformat', warnings are given about
  3764. format features not in the selected standard version (but not for
  3765. 'strfmon' formats, since those are not in any version of the C
  3766. standard). *Note Options Controlling C Dialect: C Dialect Options.
  3767. '-Wformat=1'
  3768. '-Wformat'
  3769. Option '-Wformat' is equivalent to '-Wformat=1', and
  3770. '-Wno-format' is equivalent to '-Wformat=0'. Since '-Wformat'
  3771. also checks for null format arguments for several functions,
  3772. '-Wformat' also implies '-Wnonnull'. Some aspects of this
  3773. level of format checking can be disabled by the options:
  3774. '-Wno-format-contains-nul', '-Wno-format-extra-args', and
  3775. '-Wno-format-zero-length'. '-Wformat' is enabled by '-Wall'.
  3776. '-Wno-format-contains-nul'
  3777. If '-Wformat' is specified, do not warn about format strings
  3778. that contain NUL bytes.
  3779. '-Wno-format-extra-args'
  3780. If '-Wformat' is specified, do not warn about excess arguments
  3781. to a 'printf' or 'scanf' format function. The C standard
  3782. specifies that such arguments are ignored.
  3783. Where the unused arguments lie between used arguments that are
  3784. specified with '$' operand number specifications, normally
  3785. warnings are still given, since the implementation could not
  3786. know what type to pass to 'va_arg' to skip the unused
  3787. arguments. However, in the case of 'scanf' formats, this
  3788. option suppresses the warning if the unused arguments are all
  3789. pointers, since the Single Unix Specification says that such
  3790. unused arguments are allowed.
  3791. '-Wformat-overflow'
  3792. '-Wformat-overflow=LEVEL'
  3793. Warn about calls to formatted input/output functions such as
  3794. 'sprintf' and 'vsprintf' that might overflow the destination
  3795. buffer. When the exact number of bytes written by a format
  3796. directive cannot be determined at compile-time it is estimated
  3797. based on heuristics that depend on the LEVEL argument and on
  3798. optimization. While enabling optimization will in most cases
  3799. improve the accuracy of the warning, it may also result in
  3800. false positives.
  3801. '-Wformat-overflow'
  3802. '-Wformat-overflow=1'
  3803. Level 1 of '-Wformat-overflow' enabled by '-Wformat'
  3804. employs a conservative approach that warns only about
  3805. calls that most likely overflow the buffer. At this
  3806. level, numeric arguments to format directives with
  3807. unknown values are assumed to have the value of one, and
  3808. strings of unknown length to be empty. Numeric arguments
  3809. that are known to be bounded to a subrange of their type,
  3810. or string arguments whose output is bounded either by
  3811. their directive's precision or by a finite set of string
  3812. literals, are assumed to take on the value within the
  3813. range that results in the most bytes on output. For
  3814. example, the call to 'sprintf' below is diagnosed because
  3815. even with both A and B equal to zero, the terminating NUL
  3816. character (''\0'') appended by the function to the
  3817. destination buffer will be written past its end.
  3818. Increasing the size of the buffer by a single byte is
  3819. sufficient to avoid the warning, though it may not be
  3820. sufficient to avoid the overflow.
  3821. void f (int a, int b)
  3822. {
  3823. char buf [13];
  3824. sprintf (buf, "a = %i, b = %i\n", a, b);
  3825. }
  3826. '-Wformat-overflow=2'
  3827. Level 2 warns also about calls that might overflow the
  3828. destination buffer given an argument of sufficient length
  3829. or magnitude. At level 2, unknown numeric arguments are
  3830. assumed to have the minimum representable value for
  3831. signed types with a precision greater than 1, and the
  3832. maximum representable value otherwise. Unknown string
  3833. arguments whose length cannot be assumed to be bounded
  3834. either by the directive's precision, or by a finite set
  3835. of string literals they may evaluate to, or the character
  3836. array they may point to, are assumed to be 1 character
  3837. long.
  3838. At level 2, the call in the example above is again
  3839. diagnosed, but this time because with A equal to a 32-bit
  3840. 'INT_MIN' the first '%i' directive will write some of its
  3841. digits beyond the end of the destination buffer. To make
  3842. the call safe regardless of the values of the two
  3843. variables, the size of the destination buffer must be
  3844. increased to at least 34 bytes. GCC includes the minimum
  3845. size of the buffer in an informational note following the
  3846. warning.
  3847. An alternative to increasing the size of the destination
  3848. buffer is to constrain the range of formatted values.
  3849. The maximum length of string arguments can be bounded by
  3850. specifying the precision in the format directive. When
  3851. numeric arguments of format directives can be assumed to
  3852. be bounded by less than the precision of their type,
  3853. choosing an appropriate length modifier to the format
  3854. specifier will reduce the required buffer size. For
  3855. example, if A and B in the example above can be assumed
  3856. to be within the precision of the 'short int' type then
  3857. using either the '%hi' format directive or casting the
  3858. argument to 'short' reduces the maximum required size of
  3859. the buffer to 24 bytes.
  3860. void f (int a, int b)
  3861. {
  3862. char buf [23];
  3863. sprintf (buf, "a = %hi, b = %i\n", a, (short)b);
  3864. }
  3865. '-Wno-format-zero-length'
  3866. If '-Wformat' is specified, do not warn about zero-length
  3867. formats. The C standard specifies that zero-length formats
  3868. are allowed.
  3869. '-Wformat=2'
  3870. Enable '-Wformat' plus additional format checks. Currently
  3871. equivalent to '-Wformat -Wformat-nonliteral -Wformat-security
  3872. -Wformat-y2k'.
  3873. '-Wformat-nonliteral'
  3874. If '-Wformat' is specified, also warn if the format string is
  3875. not a string literal and so cannot be checked, unless the
  3876. format function takes its format arguments as a 'va_list'.
  3877. '-Wformat-security'
  3878. If '-Wformat' is specified, also warn about uses of format
  3879. functions that represent possible security problems. At
  3880. present, this warns about calls to 'printf' and 'scanf'
  3881. functions where the format string is not a string literal and
  3882. there are no format arguments, as in 'printf (foo);'. This
  3883. may be a security hole if the format string came from
  3884. untrusted input and contains '%n'. (This is currently a
  3885. subset of what '-Wformat-nonliteral' warns about, but in
  3886. future warnings may be added to '-Wformat-security' that are
  3887. not included in '-Wformat-nonliteral'.)
  3888. '-Wformat-signedness'
  3889. If '-Wformat' is specified, also warn if the format string
  3890. requires an unsigned argument and the argument is signed and
  3891. vice versa.
  3892. '-Wformat-truncation'
  3893. '-Wformat-truncation=LEVEL'
  3894. Warn about calls to formatted input/output functions such as
  3895. 'snprintf' and 'vsnprintf' that might result in output
  3896. truncation. When the exact number of bytes written by a
  3897. format directive cannot be determined at compile-time it is
  3898. estimated based on heuristics that depend on the LEVEL
  3899. argument and on optimization. While enabling optimization
  3900. will in most cases improve the accuracy of the warning, it may
  3901. also result in false positives. Except as noted otherwise,
  3902. the option uses the same logic '-Wformat-overflow'.
  3903. '-Wformat-truncation'
  3904. '-Wformat-truncation=1'
  3905. Level 1 of '-Wformat-truncation' enabled by '-Wformat'
  3906. employs a conservative approach that warns only about
  3907. calls to bounded functions whose return value is unused
  3908. and that will most likely result in output truncation.
  3909. '-Wformat-truncation=2'
  3910. Level 2 warns also about calls to bounded functions whose
  3911. return value is used and that might result in truncation
  3912. given an argument of sufficient length or magnitude.
  3913. '-Wformat-y2k'
  3914. If '-Wformat' is specified, also warn about 'strftime' formats
  3915. that may yield only a two-digit year.
  3916. '-Wnonnull'
  3917. Warn about passing a null pointer for arguments marked as requiring
  3918. a non-null value by the 'nonnull' function attribute.
  3919. '-Wnonnull' is included in '-Wall' and '-Wformat'. It can be
  3920. disabled with the '-Wno-nonnull' option.
  3921. '-Wnonnull-compare'
  3922. Warn when comparing an argument marked with the 'nonnull' function
  3923. attribute against null inside the function.
  3924. '-Wnonnull-compare' is included in '-Wall'. It can be disabled
  3925. with the '-Wno-nonnull-compare' option.
  3926. '-Wnull-dereference'
  3927. Warn if the compiler detects paths that trigger erroneous or
  3928. undefined behavior due to dereferencing a null pointer. This
  3929. option is only active when '-fdelete-null-pointer-checks' is
  3930. active, which is enabled by optimizations in most targets. The
  3931. precision of the warnings depends on the optimization options used.
  3932. '-Winit-self (C, C++, Objective-C and Objective-C++ only)'
  3933. Warn about uninitialized variables that are initialized with
  3934. themselves. Note this option can only be used with the
  3935. '-Wuninitialized' option.
  3936. For example, GCC warns about 'i' being uninitialized in the
  3937. following snippet only when '-Winit-self' has been specified:
  3938. int f()
  3939. {
  3940. int i = i;
  3941. return i;
  3942. }
  3943. This warning is enabled by '-Wall' in C++.
  3944. '-Wimplicit-int (C and Objective-C only)'
  3945. Warn when a declaration does not specify a type. This warning is
  3946. enabled by '-Wall'.
  3947. '-Wimplicit-function-declaration (C and Objective-C only)'
  3948. Give a warning whenever a function is used before being declared.
  3949. In C99 mode ('-std=c99' or '-std=gnu99'), this warning is enabled
  3950. by default and it is made into an error by '-pedantic-errors'.
  3951. This warning is also enabled by '-Wall'.
  3952. '-Wimplicit (C and Objective-C only)'
  3953. Same as '-Wimplicit-int' and '-Wimplicit-function-declaration'.
  3954. This warning is enabled by '-Wall'.
  3955. '-Wimplicit-fallthrough'
  3956. '-Wimplicit-fallthrough' is the same as '-Wimplicit-fallthrough=3'
  3957. and '-Wno-implicit-fallthrough' is the same as
  3958. '-Wimplicit-fallthrough=0'.
  3959. '-Wimplicit-fallthrough=N'
  3960. Warn when a switch case falls through. For example:
  3961. switch (cond)
  3962. {
  3963. case 1:
  3964. a = 1;
  3965. break;
  3966. case 2:
  3967. a = 2;
  3968. case 3:
  3969. a = 3;
  3970. break;
  3971. }
  3972. This warning does not warn when the last statement of a case cannot
  3973. fall through, e.g. when there is a return statement or a call to
  3974. function declared with the noreturn attribute.
  3975. '-Wimplicit-fallthrough=' also takes into account control flow
  3976. statements, such as ifs, and only warns when appropriate. E.g.
  3977. switch (cond)
  3978. {
  3979. case 1:
  3980. if (i > 3) {
  3981. bar (5);
  3982. break;
  3983. } else if (i < 1) {
  3984. bar (0);
  3985. } else
  3986. return;
  3987. default:
  3988. ...
  3989. }
  3990. Since there are occasions where a switch case fall through is
  3991. desirable, GCC provides an attribute, '__attribute__
  3992. ((fallthrough))', that is to be used along with a null statement to
  3993. suppress this warning that would normally occur:
  3994. switch (cond)
  3995. {
  3996. case 1:
  3997. bar (0);
  3998. __attribute__ ((fallthrough));
  3999. default:
  4000. ...
  4001. }
  4002. C++17 provides a standard way to suppress the
  4003. '-Wimplicit-fallthrough' warning using '[[fallthrough]];' instead
  4004. of the GNU attribute. In C++11 or C++14 users can use
  4005. '[[gnu::fallthrough]];', which is a GNU extension. Instead of
  4006. these attributes, it is also possible to add a fallthrough comment
  4007. to silence the warning. The whole body of the C or C++ style
  4008. comment should match the given regular expressions listed below.
  4009. The option argument N specifies what kind of comments are accepted:
  4010. * '-Wimplicit-fallthrough=0' disables the warning altogether.
  4011. * '-Wimplicit-fallthrough=1' matches '.*' regular expression,
  4012. any comment is used as fallthrough comment.
  4013. * '-Wimplicit-fallthrough=2' case insensitively matches
  4014. '.*falls?[ \t-]*thr(ough|u).*' regular expression.
  4015. * '-Wimplicit-fallthrough=3' case sensitively matches one of the
  4016. following regular expressions:
  4017. * '-fallthrough'
  4018. * '@fallthrough@'
  4019. * 'lint -fallthrough[ \t]*'
  4020. * '[ \t.!]*(ELSE,? |INTENTIONAL(LY)? )?
  4021. FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?'
  4022. * '[ \t.!]*(Else,? |Intentional(ly)? )?
  4023. Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  4024. * '[ \t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?
  4025. fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  4026. * '-Wimplicit-fallthrough=4' case sensitively matches one of the
  4027. following regular expressions:
  4028. * '-fallthrough'
  4029. * '@fallthrough@'
  4030. * 'lint -fallthrough[ \t]*'
  4031. * '[ \t]*FALLTHR(OUGH|U)[ \t]*'
  4032. * '-Wimplicit-fallthrough=5' doesn't recognize any comments as
  4033. fallthrough comments, only attributes disable the warning.
  4034. The comment needs to be followed after optional whitespace and
  4035. other comments by 'case' or 'default' keywords or by a user label
  4036. that precedes some 'case' or 'default' label.
  4037. switch (cond)
  4038. {
  4039. case 1:
  4040. bar (0);
  4041. /* FALLTHRU */
  4042. default:
  4043. ...
  4044. }
  4045. The '-Wimplicit-fallthrough=3' warning is enabled by '-Wextra'.
  4046. '-Wif-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  4047. Control if warning triggered by the 'warn_if_not_aligned' attribute
  4048. should be issued. This is enabled by default. Use
  4049. '-Wno-if-not-aligned' to disable it.
  4050. '-Wignored-qualifiers (C and C++ only)'
  4051. Warn if the return type of a function has a type qualifier such as
  4052. 'const'. For ISO C such a type qualifier has no effect, since the
  4053. value returned by a function is not an lvalue. For C++, the
  4054. warning is only emitted for scalar types or 'void'. ISO C
  4055. prohibits qualified 'void' return types on function definitions, so
  4056. such return types always receive a warning even without this
  4057. option.
  4058. This warning is also enabled by '-Wextra'.
  4059. '-Wignored-attributes (C and C++ only)'
  4060. Warn when an attribute is ignored. This is different from the
  4061. '-Wattributes' option in that it warns whenever the compiler
  4062. decides to drop an attribute, not that the attribute is either
  4063. unknown, used in a wrong place, etc. This warning is enabled by
  4064. default.
  4065. '-Wmain'
  4066. Warn if the type of 'main' is suspicious. 'main' should be a
  4067. function with external linkage, returning int, taking either zero
  4068. arguments, two, or three arguments of appropriate types. This
  4069. warning is enabled by default in C++ and is enabled by either
  4070. '-Wall' or '-Wpedantic'.
  4071. '-Wmisleading-indentation (C and C++ only)'
  4072. Warn when the indentation of the code does not reflect the block
  4073. structure. Specifically, a warning is issued for 'if', 'else',
  4074. 'while', and 'for' clauses with a guarded statement that does not
  4075. use braces, followed by an unguarded statement with the same
  4076. indentation.
  4077. In the following example, the call to "bar" is misleadingly
  4078. indented as if it were guarded by the "if" conditional.
  4079. if (some_condition ())
  4080. foo ();
  4081. bar (); /* Gotcha: this is not guarded by the "if". */
  4082. In the case of mixed tabs and spaces, the warning uses the
  4083. '-ftabstop=' option to determine if the statements line up
  4084. (defaulting to 8).
  4085. The warning is not issued for code involving multiline preprocessor
  4086. logic such as the following example.
  4087. if (flagA)
  4088. foo (0);
  4089. #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  4090. if (flagB)
  4091. #endif
  4092. foo (1);
  4093. The warning is not issued after a '#line' directive, since this
  4094. typically indicates autogenerated code, and no assumptions can be
  4095. made about the layout of the file that the directive references.
  4096. This warning is enabled by '-Wall' in C and C++.
  4097. '-Wmissing-attributes'
  4098. Warn when a declaration of a function is missing one or more
  4099. attributes that a related function is declared with and whose
  4100. absence may adversely affect the correctness or efficiency of
  4101. generated code. For example, the warning is issued for
  4102. declarations of aliases that use attributes to specify less
  4103. restrictive requirements than those of their targets. This
  4104. typically represents a potential optimization opportunity. By
  4105. contrast, the '-Wattribute-alias=2' option controls warnings issued
  4106. when the alias is more restrictive than the target, which could
  4107. lead to incorrect code generation. Attributes considered include
  4108. 'alloc_align', 'alloc_size', 'cold', 'const', 'hot', 'leaf',
  4109. 'malloc', 'nonnull', 'noreturn', 'nothrow', 'pure',
  4110. 'returns_nonnull', and 'returns_twice'.
  4111. In C++, the warning is issued when an explicit specialization of a
  4112. primary template declared with attribute 'alloc_align',
  4113. 'alloc_size', 'assume_aligned', 'format', 'format_arg', 'malloc',
  4114. or 'nonnull' is declared without it. Attributes 'deprecated',
  4115. 'error', and 'warning' suppress the warning. (*note Function
  4116. Attributes::).
  4117. You can use the 'copy' attribute to apply the same set of
  4118. attributes to a declaration as that on another declaration without
  4119. explicitly enumerating the attributes. This attribute can be
  4120. applied to declarations of functions (*note Common Function
  4121. Attributes::), variables (*note Common Variable Attributes::), or
  4122. types (*note Common Type Attributes::).
  4123. '-Wmissing-attributes' is enabled by '-Wall'.
  4124. For example, since the declaration of the primary function template
  4125. below makes use of both attribute 'malloc' and 'alloc_size' the
  4126. declaration of the explicit specialization of the template is
  4127. diagnosed because it is missing one of the attributes.
  4128. template <class T>
  4129. T* __attribute__ ((malloc, alloc_size (1)))
  4130. allocate (size_t);
  4131. template <>
  4132. void* __attribute__ ((malloc)) // missing alloc_size
  4133. allocate<void> (size_t);
  4134. '-Wmissing-braces'
  4135. Warn if an aggregate or union initializer is not fully bracketed.
  4136. In the following example, the initializer for 'a' is not fully
  4137. bracketed, but that for 'b' is fully bracketed. This warning is
  4138. enabled by '-Wall' in C.
  4139. int a[2][2] = { 0, 1, 2, 3 };
  4140. int b[2][2] = { { 0, 1 }, { 2, 3 } };
  4141. This warning is enabled by '-Wall'.
  4142. '-Wmissing-include-dirs (C, C++, Objective-C and Objective-C++ only)'
  4143. Warn if a user-supplied include directory does not exist.
  4144. '-Wmissing-profile'
  4145. Warn if feedback profiles are missing when using the
  4146. '-fprofile-use' option. This option diagnoses those cases where a
  4147. new function or a new file is added to the user code between
  4148. compiling with '-fprofile-generate' and with '-fprofile-use',
  4149. without regenerating the profiles. In these cases, the profile
  4150. feedback data files do not contain any profile feedback information
  4151. for the newly added function or file respectively. Also, in the
  4152. case when profile count data (.gcda) files are removed, GCC cannot
  4153. use any profile feedback information. In all these cases, warnings
  4154. are issued to inform the user that a profile generation step is
  4155. due. '-Wno-missing-profile' can be used to disable the warning.
  4156. Ignoring the warning can result in poorly optimized code.
  4157. Completely disabling the warning is not recommended and should be
  4158. done only when non-existent profile data is justified.
  4159. '-Wmultistatement-macros'
  4160. Warn about unsafe multiple statement macros that appear to be
  4161. guarded by a clause such as 'if', 'else', 'for', 'switch', or
  4162. 'while', in which only the first statement is actually guarded
  4163. after the macro is expanded.
  4164. For example:
  4165. #define DOIT x++; y++
  4166. if (c)
  4167. DOIT;
  4168. will increment 'y' unconditionally, not just when 'c' holds. The
  4169. can usually be fixed by wrapping the macro in a do-while loop:
  4170. #define DOIT do { x++; y++; } while (0)
  4171. if (c)
  4172. DOIT;
  4173. This warning is enabled by '-Wall' in C and C++.
  4174. '-Wparentheses'
  4175. Warn if parentheses are omitted in certain contexts, such as when
  4176. there is an assignment in a context where a truth value is
  4177. expected, or when operators are nested whose precedence people
  4178. often get confused about.
  4179. Also warn if a comparison like 'x<=y<=z' appears; this is
  4180. equivalent to '(x<=y ? 1 : 0) <= z', which is a different
  4181. interpretation from that of ordinary mathematical notation.
  4182. Also warn for dangerous uses of the GNU extension to '?:' with
  4183. omitted middle operand. When the condition in the '?': operator is
  4184. a boolean expression, the omitted value is always 1. Often
  4185. programmers expect it to be a value computed inside the conditional
  4186. expression instead.
  4187. For C++ this also warns for some cases of unnecessary parentheses
  4188. in declarations, which can indicate an attempt at a function call
  4189. instead of a declaration:
  4190. {
  4191. // Declares a local variable called mymutex.
  4192. std::unique_lock<std::mutex> (mymutex);
  4193. // User meant std::unique_lock<std::mutex> lock (mymutex);
  4194. }
  4195. This warning is enabled by '-Wall'.
  4196. '-Wsequence-point'
  4197. Warn about code that may have undefined semantics because of
  4198. violations of sequence point rules in the C and C++ standards.
  4199. The C and C++ standards define the order in which expressions in a
  4200. C/C++ program are evaluated in terms of "sequence points", which
  4201. represent a partial ordering between the execution of parts of the
  4202. program: those executed before the sequence point, and those
  4203. executed after it. These occur after the evaluation of a full
  4204. expression (one which is not part of a larger expression), after
  4205. the evaluation of the first operand of a '&&', '||', '? :' or ','
  4206. (comma) operator, before a function is called (but after the
  4207. evaluation of its arguments and the expression denoting the called
  4208. function), and in certain other places. Other than as expressed by
  4209. the sequence point rules, the order of evaluation of subexpressions
  4210. of an expression is not specified. All these rules describe only a
  4211. partial order rather than a total order, since, for example, if two
  4212. functions are called within one expression with no sequence point
  4213. between them, the order in which the functions are called is not
  4214. specified. However, the standards committee have ruled that
  4215. function calls do not overlap.
  4216. It is not specified when between sequence points modifications to
  4217. the values of objects take effect. Programs whose behavior depends
  4218. on this have undefined behavior; the C and C++ standards specify
  4219. that "Between the previous and next sequence point an object shall
  4220. have its stored value modified at most once by the evaluation of an
  4221. expression. Furthermore, the prior value shall be read only to
  4222. determine the value to be stored.". If a program breaks these
  4223. rules, the results on any particular implementation are entirely
  4224. unpredictable.
  4225. Examples of code with undefined behavior are 'a = a++;', 'a[n] =
  4226. b[n++]' and 'a[i++] = i;'. Some more complicated cases are not
  4227. diagnosed by this option, and it may give an occasional false
  4228. positive result, but in general it has been found fairly effective
  4229. at detecting this sort of problem in programs.
  4230. The C++17 standard will define the order of evaluation of operands
  4231. in more cases: in particular it requires that the right-hand side
  4232. of an assignment be evaluated before the left-hand side, so the
  4233. above examples are no longer undefined. But this warning will
  4234. still warn about them, to help people avoid writing code that is
  4235. undefined in C and earlier revisions of C++.
  4236. The standard is worded confusingly, therefore there is some debate
  4237. over the precise meaning of the sequence point rules in subtle
  4238. cases. Links to discussions of the problem, including proposed
  4239. formal definitions, may be found on the GCC readings page, at
  4240. <http://gcc.gnu.org/readings.html>.
  4241. This warning is enabled by '-Wall' for C and C++.
  4242. '-Wno-return-local-addr'
  4243. Do not warn about returning a pointer (or in C++, a reference) to a
  4244. variable that goes out of scope after the function returns.
  4245. '-Wreturn-type'
  4246. Warn whenever a function is defined with a return type that
  4247. defaults to 'int'. Also warn about any 'return' statement with no
  4248. return value in a function whose return type is not 'void' (falling
  4249. off the end of the function body is considered returning without a
  4250. value).
  4251. For C only, warn about a 'return' statement with an expression in a
  4252. function whose return type is 'void', unless the expression type is
  4253. also 'void'. As a GNU extension, the latter case is accepted
  4254. without a warning unless '-Wpedantic' is used. Attempting to use
  4255. the return value of a non-'void' function other than 'main' that
  4256. flows off the end by reaching the closing curly brace that
  4257. terminates the function is undefined.
  4258. Unlike in C, in C++, flowing off the end of a non-'void' function
  4259. other than 'main' results in undefined behavior even when the value
  4260. of the function is not used.
  4261. This warning is enabled by default in C++ and by '-Wall' otherwise.
  4262. '-Wshift-count-negative'
  4263. Warn if shift count is negative. This warning is enabled by
  4264. default.
  4265. '-Wshift-count-overflow'
  4266. Warn if shift count >= width of type. This warning is enabled by
  4267. default.
  4268. '-Wshift-negative-value'
  4269. Warn if left shifting a negative value. This warning is enabled by
  4270. '-Wextra' in C99 and C++11 modes (and newer).
  4271. '-Wshift-overflow'
  4272. '-Wshift-overflow=N'
  4273. Warn about left shift overflows. This warning is enabled by
  4274. default in C99 and C++11 modes (and newer).
  4275. '-Wshift-overflow=1'
  4276. This is the warning level of '-Wshift-overflow' and is enabled
  4277. by default in C99 and C++11 modes (and newer). This warning
  4278. level does not warn about left-shifting 1 into the sign bit.
  4279. (However, in C, such an overflow is still rejected in contexts
  4280. where an integer constant expression is required.) No warning
  4281. is emitted in C++2A mode (and newer), as signed left shifts
  4282. always wrap.
  4283. '-Wshift-overflow=2'
  4284. This warning level also warns about left-shifting 1 into the
  4285. sign bit, unless C++14 mode (or newer) is active.
  4286. '-Wswitch'
  4287. Warn whenever a 'switch' statement has an index of enumerated type
  4288. and lacks a 'case' for one or more of the named codes of that
  4289. enumeration. (The presence of a 'default' label prevents this
  4290. warning.) 'case' labels outside the enumeration range also provoke
  4291. warnings when this option is used (even if there is a 'default'
  4292. label). This warning is enabled by '-Wall'.
  4293. '-Wswitch-default'
  4294. Warn whenever a 'switch' statement does not have a 'default' case.
  4295. '-Wswitch-enum'
  4296. Warn whenever a 'switch' statement has an index of enumerated type
  4297. and lacks a 'case' for one or more of the named codes of that
  4298. enumeration. 'case' labels outside the enumeration range also
  4299. provoke warnings when this option is used. The only difference
  4300. between '-Wswitch' and this option is that this option gives a
  4301. warning about an omitted enumeration code even if there is a
  4302. 'default' label.
  4303. '-Wswitch-bool'
  4304. Warn whenever a 'switch' statement has an index of boolean type and
  4305. the case values are outside the range of a boolean type. It is
  4306. possible to suppress this warning by casting the controlling
  4307. expression to a type other than 'bool'. For example:
  4308. switch ((int) (a == 4))
  4309. {
  4310. ...
  4311. }
  4312. This warning is enabled by default for C and C++ programs.
  4313. '-Wswitch-unreachable'
  4314. Warn whenever a 'switch' statement contains statements between the
  4315. controlling expression and the first case label, which will never
  4316. be executed. For example:
  4317. switch (cond)
  4318. {
  4319. i = 15;
  4320. ...
  4321. case 5:
  4322. ...
  4323. }
  4324. '-Wswitch-unreachable' does not warn if the statement between the
  4325. controlling expression and the first case label is just a
  4326. declaration:
  4327. switch (cond)
  4328. {
  4329. int i;
  4330. ...
  4331. case 5:
  4332. i = 5;
  4333. ...
  4334. }
  4335. This warning is enabled by default for C and C++ programs.
  4336. '-Wsync-nand (C and C++ only)'
  4337. Warn when '__sync_fetch_and_nand' and '__sync_nand_and_fetch'
  4338. built-in functions are used. These functions changed semantics in
  4339. GCC 4.4.
  4340. '-Wunused-but-set-parameter'
  4341. Warn whenever a function parameter is assigned to, but otherwise
  4342. unused (aside from its declaration).
  4343. To suppress this warning use the 'unused' attribute (*note Variable
  4344. Attributes::).
  4345. This warning is also enabled by '-Wunused' together with '-Wextra'.
  4346. '-Wunused-but-set-variable'
  4347. Warn whenever a local variable is assigned to, but otherwise unused
  4348. (aside from its declaration). This warning is enabled by '-Wall'.
  4349. To suppress this warning use the 'unused' attribute (*note Variable
  4350. Attributes::).
  4351. This warning is also enabled by '-Wunused', which is enabled by
  4352. '-Wall'.
  4353. '-Wunused-function'
  4354. Warn whenever a static function is declared but not defined or a
  4355. non-inline static function is unused. This warning is enabled by
  4356. '-Wall'.
  4357. '-Wunused-label'
  4358. Warn whenever a label is declared but not used. This warning is
  4359. enabled by '-Wall'.
  4360. To suppress this warning use the 'unused' attribute (*note Variable
  4361. Attributes::).
  4362. '-Wunused-local-typedefs (C, Objective-C, C++ and Objective-C++ only)'
  4363. Warn when a typedef locally defined in a function is not used.
  4364. This warning is enabled by '-Wall'.
  4365. '-Wunused-parameter'
  4366. Warn whenever a function parameter is unused aside from its
  4367. declaration.
  4368. To suppress this warning use the 'unused' attribute (*note Variable
  4369. Attributes::).
  4370. '-Wno-unused-result'
  4371. Do not warn if a caller of a function marked with attribute
  4372. 'warn_unused_result' (*note Function Attributes::) does not use its
  4373. return value. The default is '-Wunused-result'.
  4374. '-Wunused-variable'
  4375. Warn whenever a local or static variable is unused aside from its
  4376. declaration. This option implies '-Wunused-const-variable=1' for
  4377. C, but not for C++. This warning is enabled by '-Wall'.
  4378. To suppress this warning use the 'unused' attribute (*note Variable
  4379. Attributes::).
  4380. '-Wunused-const-variable'
  4381. '-Wunused-const-variable=N'
  4382. Warn whenever a constant static variable is unused aside from its
  4383. declaration. '-Wunused-const-variable=1' is enabled by
  4384. '-Wunused-variable' for C, but not for C++. In C this declares
  4385. variable storage, but in C++ this is not an error since const
  4386. variables take the place of '#define's.
  4387. To suppress this warning use the 'unused' attribute (*note Variable
  4388. Attributes::).
  4389. '-Wunused-const-variable=1'
  4390. This is the warning level that is enabled by
  4391. '-Wunused-variable' for C. It warns only about unused static
  4392. const variables defined in the main compilation unit, but not
  4393. about static const variables declared in any header included.
  4394. '-Wunused-const-variable=2'
  4395. This warning level also warns for unused constant static
  4396. variables in headers (excluding system headers). This is the
  4397. warning level of '-Wunused-const-variable' and must be
  4398. explicitly requested since in C++ this isn't an error and in C
  4399. it might be harder to clean up all headers included.
  4400. '-Wunused-value'
  4401. Warn whenever a statement computes a result that is explicitly not
  4402. used. To suppress this warning cast the unused expression to
  4403. 'void'. This includes an expression-statement or the left-hand
  4404. side of a comma expression that contains no side effects. For
  4405. example, an expression such as 'x[i,j]' causes a warning, while
  4406. 'x[(void)i,j]' does not.
  4407. This warning is enabled by '-Wall'.
  4408. '-Wunused'
  4409. All the above '-Wunused' options combined.
  4410. In order to get a warning about an unused function parameter, you
  4411. must either specify '-Wextra -Wunused' (note that '-Wall' implies
  4412. '-Wunused'), or separately specify '-Wunused-parameter'.
  4413. '-Wuninitialized'
  4414. Warn if an automatic variable is used without first being
  4415. initialized or if a variable may be clobbered by a 'setjmp' call.
  4416. In C++, warn if a non-static reference or non-static 'const' member
  4417. appears in a class without constructors.
  4418. If you want to warn about code that uses the uninitialized value of
  4419. the variable in its own initializer, use the '-Winit-self' option.
  4420. These warnings occur for individual uninitialized or clobbered
  4421. elements of structure, union or array variables as well as for
  4422. variables that are uninitialized or clobbered as a whole. They do
  4423. not occur for variables or elements declared 'volatile'. Because
  4424. these warnings depend on optimization, the exact variables or
  4425. elements for which there are warnings depends on the precise
  4426. optimization options and version of GCC used.
  4427. Note that there may be no warning about a variable that is used
  4428. only to compute a value that itself is never used, because such
  4429. computations may be deleted by data flow analysis before the
  4430. warnings are printed.
  4431. '-Winvalid-memory-model'
  4432. Warn for invocations of *note __atomic Builtins::, *note __sync
  4433. Builtins::, and the C11 atomic generic functions with a memory
  4434. consistency argument that is either invalid for the operation or
  4435. outside the range of values of the 'memory_order' enumeration. For
  4436. example, since the '__atomic_store' and '__atomic_store_n'
  4437. built-ins are only defined for the relaxed, release, and
  4438. sequentially consistent memory orders the following code is
  4439. diagnosed:
  4440. void store (int *i)
  4441. {
  4442. __atomic_store_n (i, 0, memory_order_consume);
  4443. }
  4444. '-Winvalid-memory-model' is enabled by default.
  4445. '-Wmaybe-uninitialized'
  4446. For an automatic (i.e. local) variable, if there exists a path from
  4447. the function entry to a use of the variable that is initialized,
  4448. but there exist some other paths for which the variable is not
  4449. initialized, the compiler emits a warning if it cannot prove the
  4450. uninitialized paths are not executed at run time.
  4451. These warnings are only possible in optimizing compilation, because
  4452. otherwise GCC does not keep track of the state of variables.
  4453. These warnings are made optional because GCC may not be able to
  4454. determine when the code is correct in spite of appearing to have an
  4455. error. Here is one example of how this can happen:
  4456. {
  4457. int x;
  4458. switch (y)
  4459. {
  4460. case 1: x = 1;
  4461. break;
  4462. case 2: x = 4;
  4463. break;
  4464. case 3: x = 5;
  4465. }
  4466. foo (x);
  4467. }
  4468. If the value of 'y' is always 1, 2 or 3, then 'x' is always
  4469. initialized, but GCC doesn't know this. To suppress the warning,
  4470. you need to provide a default case with assert(0) or similar code.
  4471. This option also warns when a non-volatile automatic variable might
  4472. be changed by a call to 'longjmp'. The compiler sees only the
  4473. calls to 'setjmp'. It cannot know where 'longjmp' will be called;
  4474. in fact, a signal handler could call it at any point in the code.
  4475. As a result, you may get a warning even when there is in fact no
  4476. problem because 'longjmp' cannot in fact be called at the place
  4477. that would cause a problem.
  4478. Some spurious warnings can be avoided if you declare all the
  4479. functions you use that never return as 'noreturn'. *Note Function
  4480. Attributes::.
  4481. This warning is enabled by '-Wall' or '-Wextra'.
  4482. '-Wunknown-pragmas'
  4483. Warn when a '#pragma' directive is encountered that is not
  4484. understood by GCC. If this command-line option is used, warnings
  4485. are even issued for unknown pragmas in system header files. This
  4486. is not the case if the warnings are only enabled by the '-Wall'
  4487. command-line option.
  4488. '-Wno-pragmas'
  4489. Do not warn about misuses of pragmas, such as incorrect parameters,
  4490. invalid syntax, or conflicts between pragmas. See also
  4491. '-Wunknown-pragmas'.
  4492. '-Wno-prio-ctor-dtor'
  4493. Do not warn if a priority from 0 to 100 is used for constructor or
  4494. destructor. The use of constructor and destructor attributes allow
  4495. you to assign a priority to the constructor/destructor to control
  4496. its order of execution before 'main' is called or after it returns.
  4497. The priority values must be greater than 100 as the compiler
  4498. reserves priority values between 0-100 for the implementation.
  4499. '-Wstrict-aliasing'
  4500. This option is only active when '-fstrict-aliasing' is active. It
  4501. warns about code that might break the strict aliasing rules that
  4502. the compiler is using for optimization. The warning does not catch
  4503. all cases, but does attempt to catch the more common pitfalls. It
  4504. is included in '-Wall'. It is equivalent to '-Wstrict-aliasing=3'
  4505. '-Wstrict-aliasing=n'
  4506. This option is only active when '-fstrict-aliasing' is active. It
  4507. warns about code that might break the strict aliasing rules that
  4508. the compiler is using for optimization. Higher levels correspond
  4509. to higher accuracy (fewer false positives). Higher levels also
  4510. correspond to more effort, similar to the way '-O' works.
  4511. '-Wstrict-aliasing' is equivalent to '-Wstrict-aliasing=3'.
  4512. Level 1: Most aggressive, quick, least accurate. Possibly useful
  4513. when higher levels do not warn but '-fstrict-aliasing' still breaks
  4514. the code, as it has very few false negatives. However, it has many
  4515. false positives. Warns for all pointer conversions between
  4516. possibly incompatible types, even if never dereferenced. Runs in
  4517. the front end only.
  4518. Level 2: Aggressive, quick, not too precise. May still have many
  4519. false positives (not as many as level 1 though), and few false
  4520. negatives (but possibly more than level 1). Unlike level 1, it
  4521. only warns when an address is taken. Warns about incomplete types.
  4522. Runs in the front end only.
  4523. Level 3 (default for '-Wstrict-aliasing'): Should have very few
  4524. false positives and few false negatives. Slightly slower than
  4525. levels 1 or 2 when optimization is enabled. Takes care of the
  4526. common pun+dereference pattern in the front end:
  4527. '*(int*)&some_float'. If optimization is enabled, it also runs in
  4528. the back end, where it deals with multiple statement cases using
  4529. flow-sensitive points-to information. Only warns when the
  4530. converted pointer is dereferenced. Does not warn about incomplete
  4531. types.
  4532. '-Wstrict-overflow'
  4533. '-Wstrict-overflow=N'
  4534. This option is only active when signed overflow is undefined. It
  4535. warns about cases where the compiler optimizes based on the
  4536. assumption that signed overflow does not occur. Note that it does
  4537. not warn about all cases where the code might overflow: it only
  4538. warns about cases where the compiler implements some optimization.
  4539. Thus this warning depends on the optimization level.
  4540. An optimization that assumes that signed overflow does not occur is
  4541. perfectly safe if the values of the variables involved are such
  4542. that overflow never does, in fact, occur. Therefore this warning
  4543. can easily give a false positive: a warning about code that is not
  4544. actually a problem. To help focus on important issues, several
  4545. warning levels are defined. No warnings are issued for the use of
  4546. undefined signed overflow when estimating how many iterations a
  4547. loop requires, in particular when determining whether a loop will
  4548. be executed at all.
  4549. '-Wstrict-overflow=1'
  4550. Warn about cases that are both questionable and easy to avoid.
  4551. For example the compiler simplifies 'x + 1 > x' to '1'. This
  4552. level of '-Wstrict-overflow' is enabled by '-Wall'; higher
  4553. levels are not, and must be explicitly requested.
  4554. '-Wstrict-overflow=2'
  4555. Also warn about other cases where a comparison is simplified
  4556. to a constant. For example: 'abs (x) >= 0'. This can only be
  4557. simplified when signed integer overflow is undefined, because
  4558. 'abs (INT_MIN)' overflows to 'INT_MIN', which is less than
  4559. zero. '-Wstrict-overflow' (with no level) is the same as
  4560. '-Wstrict-overflow=2'.
  4561. '-Wstrict-overflow=3'
  4562. Also warn about other cases where a comparison is simplified.
  4563. For example: 'x + 1 > 1' is simplified to 'x > 0'.
  4564. '-Wstrict-overflow=4'
  4565. Also warn about other simplifications not covered by the above
  4566. cases. For example: '(x * 10) / 5' is simplified to 'x * 2'.
  4567. '-Wstrict-overflow=5'
  4568. Also warn about cases where the compiler reduces the magnitude
  4569. of a constant involved in a comparison. For example: 'x + 2 >
  4570. y' is simplified to 'x + 1 >= y'. This is reported only at
  4571. the highest warning level because this simplification applies
  4572. to many comparisons, so this warning level gives a very large
  4573. number of false positives.
  4574. '-Wstringop-overflow'
  4575. '-Wstringop-overflow=TYPE'
  4576. Warn for calls to string manipulation functions such as 'memcpy'
  4577. and 'strcpy' that are determined to overflow the destination
  4578. buffer. The optional argument is one greater than the type of
  4579. Object Size Checking to perform to determine the size of the
  4580. destination. *Note Object Size Checking::. The argument is
  4581. meaningful only for functions that operate on character arrays but
  4582. not for raw memory functions like 'memcpy' which always make use of
  4583. Object Size type-0. The option also warns for calls that specify a
  4584. size in excess of the largest possible object or at most 'SIZE_MAX
  4585. / 2' bytes. The option produces the best results with optimization
  4586. enabled but can detect a small subset of simple buffer overflows
  4587. even without optimization in calls to the GCC built-in functions
  4588. like '__builtin_memcpy' that correspond to the standard functions.
  4589. In any case, the option warns about just a subset of buffer
  4590. overflows detected by the corresponding overflow checking
  4591. built-ins. For example, the option will issue a warning for the
  4592. 'strcpy' call below because it copies at least 5 characters (the
  4593. string '"blue"' including the terminating NUL) into the buffer of
  4594. size 4.
  4595. enum Color { blue, purple, yellow };
  4596. const char* f (enum Color clr)
  4597. {
  4598. static char buf [4];
  4599. const char *str;
  4600. switch (clr)
  4601. {
  4602. case blue: str = "blue"; break;
  4603. case purple: str = "purple"; break;
  4604. case yellow: str = "yellow"; break;
  4605. }
  4606. return strcpy (buf, str); // warning here
  4607. }
  4608. Option '-Wstringop-overflow=2' is enabled by default.
  4609. '-Wstringop-overflow'
  4610. '-Wstringop-overflow=1'
  4611. The '-Wstringop-overflow=1' option uses type-zero Object Size
  4612. Checking to determine the sizes of destination objects. This
  4613. is the default setting of the option. At this setting the
  4614. option will not warn for writes past the end of subobjects of
  4615. larger objects accessed by pointers unless the size of the
  4616. largest surrounding object is known. When the destination may
  4617. be one of several objects it is assumed to be the largest one
  4618. of them. On Linux systems, when optimization is enabled at
  4619. this setting the option warns for the same code as when the
  4620. '_FORTIFY_SOURCE' macro is defined to a non-zero value.
  4621. '-Wstringop-overflow=2'
  4622. The '-Wstringop-overflow=2' option uses type-one Object Size
  4623. Checking to determine the sizes of destination objects. At
  4624. this setting the option will warn about overflows when writing
  4625. to members of the largest complete objects whose exact size is
  4626. known. It will, however, not warn for excessive writes to the
  4627. same members of unknown objects referenced by pointers since
  4628. they may point to arrays containing unknown numbers of
  4629. elements.
  4630. '-Wstringop-overflow=3'
  4631. The '-Wstringop-overflow=3' option uses type-two Object Size
  4632. Checking to determine the sizes of destination objects. At
  4633. this setting the option warns about overflowing the smallest
  4634. object or data member. This is the most restrictive setting
  4635. of the option that may result in warnings for safe code.
  4636. '-Wstringop-overflow=4'
  4637. The '-Wstringop-overflow=4' option uses type-three Object Size
  4638. Checking to determine the sizes of destination objects. At
  4639. this setting the option will warn about overflowing any data
  4640. members, and when the destination is one of several objects it
  4641. uses the size of the largest of them to decide whether to
  4642. issue a warning. Similarly to '-Wstringop-overflow=3' this
  4643. setting of the option may result in warnings for benign code.
  4644. '-Wstringop-truncation'
  4645. Warn for calls to bounded string manipulation functions such as
  4646. 'strncat', 'strncpy', and 'stpncpy' that may either truncate the
  4647. copied string or leave the destination unchanged.
  4648. In the following example, the call to 'strncat' specifies a bound
  4649. that is less than the length of the source string. As a result,
  4650. the copy of the source will be truncated and so the call is
  4651. diagnosed. To avoid the warning use 'bufsize - strlen (buf) - 1)'
  4652. as the bound.
  4653. void append (char *buf, size_t bufsize)
  4654. {
  4655. strncat (buf, ".txt", 3);
  4656. }
  4657. As another example, the following call to 'strncpy' results in
  4658. copying to 'd' just the characters preceding the terminating NUL,
  4659. without appending the NUL to the end. Assuming the result of
  4660. 'strncpy' is necessarily a NUL-terminated string is a common
  4661. mistake, and so the call is diagnosed. To avoid the warning when
  4662. the result is not expected to be NUL-terminated, call 'memcpy'
  4663. instead.
  4664. void copy (char *d, const char *s)
  4665. {
  4666. strncpy (d, s, strlen (s));
  4667. }
  4668. In the following example, the call to 'strncpy' specifies the size
  4669. of the destination buffer as the bound. If the length of the
  4670. source string is equal to or greater than this size the result of
  4671. the copy will not be NUL-terminated. Therefore, the call is also
  4672. diagnosed. To avoid the warning, specify 'sizeof buf - 1' as the
  4673. bound and set the last element of the buffer to 'NUL'.
  4674. void copy (const char *s)
  4675. {
  4676. char buf[80];
  4677. strncpy (buf, s, sizeof buf);
  4678. ...
  4679. }
  4680. In situations where a character array is intended to store a
  4681. sequence of bytes with no terminating 'NUL' such an array may be
  4682. annotated with attribute 'nonstring' to avoid this warning. Such
  4683. arrays, however, are not suitable arguments to functions that
  4684. expect 'NUL'-terminated strings. To help detect accidental misuses
  4685. of such arrays GCC issues warnings unless it can prove that the use
  4686. is safe. *Note Common Variable Attributes::.
  4687. '-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]'
  4688. Warn for cases where adding an attribute may be beneficial. The
  4689. attributes currently supported are listed below.
  4690. '-Wsuggest-attribute=pure'
  4691. '-Wsuggest-attribute=const'
  4692. '-Wsuggest-attribute=noreturn'
  4693. '-Wmissing-noreturn'
  4694. '-Wsuggest-attribute=malloc'
  4695. Warn about functions that might be candidates for attributes
  4696. 'pure', 'const' or 'noreturn' or 'malloc'. The compiler only
  4697. warns for functions visible in other compilation units or (in
  4698. the case of 'pure' and 'const') if it cannot prove that the
  4699. function returns normally. A function returns normally if it
  4700. doesn't contain an infinite loop or return abnormally by
  4701. throwing, calling 'abort' or trapping. This analysis requires
  4702. option '-fipa-pure-const', which is enabled by default at '-O'
  4703. and higher. Higher optimization levels improve the accuracy
  4704. of the analysis.
  4705. '-Wsuggest-attribute=format'
  4706. '-Wmissing-format-attribute'
  4707. Warn about function pointers that might be candidates for
  4708. 'format' attributes. Note these are only possible candidates,
  4709. not absolute ones. GCC guesses that function pointers with
  4710. 'format' attributes that are used in assignment,
  4711. initialization, parameter passing or return statements should
  4712. have a corresponding 'format' attribute in the resulting type.
  4713. I.e. the left-hand side of the assignment or initialization,
  4714. the type of the parameter variable, or the return type of the
  4715. containing function respectively should also have a 'format'
  4716. attribute to avoid the warning.
  4717. GCC also warns about function definitions that might be
  4718. candidates for 'format' attributes. Again, these are only
  4719. possible candidates. GCC guesses that 'format' attributes
  4720. might be appropriate for any function that calls a function
  4721. like 'vprintf' or 'vscanf', but this might not always be the
  4722. case, and some functions for which 'format' attributes are
  4723. appropriate may not be detected.
  4724. '-Wsuggest-attribute=cold'
  4725. Warn about functions that might be candidates for 'cold'
  4726. attribute. This is based on static detection and generally
  4727. will only warn about functions which always leads to a call to
  4728. another 'cold' function such as wrappers of C++ 'throw' or
  4729. fatal error reporting functions leading to 'abort'.
  4730. '-Wsuggest-final-types'
  4731. Warn about types with virtual methods where code quality would be
  4732. improved if the type were declared with the C++11 'final'
  4733. specifier, or, if possible, declared in an anonymous namespace.
  4734. This allows GCC to more aggressively devirtualize the polymorphic
  4735. calls. This warning is more effective with link time optimization,
  4736. where the information about the class hierarchy graph is more
  4737. complete.
  4738. '-Wsuggest-final-methods'
  4739. Warn about virtual methods where code quality would be improved if
  4740. the method were declared with the C++11 'final' specifier, or, if
  4741. possible, its type were declared in an anonymous namespace or with
  4742. the 'final' specifier. This warning is more effective with
  4743. link-time optimization, where the information about the class
  4744. hierarchy graph is more complete. It is recommended to first
  4745. consider suggestions of '-Wsuggest-final-types' and then rebuild
  4746. with new annotations.
  4747. '-Wsuggest-override'
  4748. Warn about overriding virtual functions that are not marked with
  4749. the override keyword.
  4750. '-Walloc-zero'
  4751. Warn about calls to allocation functions decorated with attribute
  4752. 'alloc_size' that specify zero bytes, including those to the
  4753. built-in forms of the functions 'aligned_alloc', 'alloca',
  4754. 'calloc', 'malloc', and 'realloc'. Because the behavior of these
  4755. functions when called with a zero size differs among
  4756. implementations (and in the case of 'realloc' has been deprecated)
  4757. relying on it may result in subtle portability bugs and should be
  4758. avoided.
  4759. '-Walloc-size-larger-than=BYTE-SIZE'
  4760. Warn about calls to functions decorated with attribute 'alloc_size'
  4761. that attempt to allocate objects larger than the specified number
  4762. of bytes, or where the result of the size computation in an integer
  4763. type with infinite precision would exceed the value of
  4764. 'PTRDIFF_MAX' on the target.
  4765. '-Walloc-size-larger-than=''PTRDIFF_MAX' is enabled by default.
  4766. Warnings controlled by the option can be disabled either by
  4767. specifying BYTE-SIZE of 'SIZE_MAX' or more or by
  4768. '-Wno-alloc-size-larger-than'. *Note Function Attributes::.
  4769. '-Wno-alloc-size-larger-than'
  4770. Disable '-Walloc-size-larger-than=' warnings. The option is
  4771. equivalent to '-Walloc-size-larger-than=''SIZE_MAX' or larger.
  4772. '-Walloca'
  4773. This option warns on all uses of 'alloca' in the source.
  4774. '-Walloca-larger-than=BYTE-SIZE'
  4775. This option warns on calls to 'alloca' with an integer argument
  4776. whose value is either zero, or that is not bounded by a controlling
  4777. predicate that limits its value to at most BYTE-SIZE. It also
  4778. warns for calls to 'alloca' where the bound value is unknown.
  4779. Arguments of non-integer types are considered unbounded even if
  4780. they appear to be constrained to the expected range.
  4781. For example, a bounded case of 'alloca' could be:
  4782. void func (size_t n)
  4783. {
  4784. void *p;
  4785. if (n <= 1000)
  4786. p = alloca (n);
  4787. else
  4788. p = malloc (n);
  4789. f (p);
  4790. }
  4791. In the above example, passing '-Walloca-larger-than=1000' would not
  4792. issue a warning because the call to 'alloca' is known to be at most
  4793. 1000 bytes. However, if '-Walloca-larger-than=500' were passed,
  4794. the compiler would emit a warning.
  4795. Unbounded uses, on the other hand, are uses of 'alloca' with no
  4796. controlling predicate constraining its integer argument. For
  4797. example:
  4798. void func ()
  4799. {
  4800. void *p = alloca (n);
  4801. f (p);
  4802. }
  4803. If '-Walloca-larger-than=500' were passed, the above would trigger
  4804. a warning, but this time because of the lack of bounds checking.
  4805. Note, that even seemingly correct code involving signed integers
  4806. could cause a warning:
  4807. void func (signed int n)
  4808. {
  4809. if (n < 500)
  4810. {
  4811. p = alloca (n);
  4812. f (p);
  4813. }
  4814. }
  4815. In the above example, N could be negative, causing a larger than
  4816. expected argument to be implicitly cast into the 'alloca' call.
  4817. This option also warns when 'alloca' is used in a loop.
  4818. '-Walloca-larger-than=''PTRDIFF_MAX' is enabled by default but is
  4819. usually only effective when '-ftree-vrp' is active (default for
  4820. '-O2' and above).
  4821. See also '-Wvla-larger-than=''byte-size'.
  4822. '-Wno-alloca-larger-than'
  4823. Disable '-Walloca-larger-than=' warnings. The option is equivalent
  4824. to '-Walloca-larger-than=''SIZE_MAX' or larger.
  4825. '-Warray-bounds'
  4826. '-Warray-bounds=N'
  4827. This option is only active when '-ftree-vrp' is active (default for
  4828. '-O2' and above). It warns about subscripts to arrays that are
  4829. always out of bounds. This warning is enabled by '-Wall'.
  4830. '-Warray-bounds=1'
  4831. This is the warning level of '-Warray-bounds' and is enabled
  4832. by '-Wall'; higher levels are not, and must be explicitly
  4833. requested.
  4834. '-Warray-bounds=2'
  4835. This warning level also warns about out of bounds access for
  4836. arrays at the end of a struct and for arrays accessed through
  4837. pointers. This warning level may give a larger number of
  4838. false positives and is deactivated by default.
  4839. '-Wattribute-alias=N'
  4840. '-Wno-attribute-alias'
  4841. Warn about declarations using the 'alias' and similar attributes
  4842. whose target is incompatible with the type of the alias. *Note
  4843. Declaring Attributes of Functions: Function Attributes.
  4844. '-Wattribute-alias=1'
  4845. The default warning level of the '-Wattribute-alias' option
  4846. diagnoses incompatibilities between the type of the alias
  4847. declaration and that of its target. Such incompatibilities
  4848. are typically indicative of bugs.
  4849. '-Wattribute-alias=2'
  4850. At this level '-Wattribute-alias' also diagnoses cases where
  4851. the attributes of the alias declaration are more restrictive
  4852. than the attributes applied to its target. These mismatches
  4853. can potentially result in incorrect code generation. In other
  4854. cases they may be benign and could be resolved simply by
  4855. adding the missing attribute to the target. For comparison,
  4856. see the '-Wmissing-attributes' option, which controls
  4857. diagnostics when the alias declaration is less restrictive
  4858. than the target, rather than more restrictive.
  4859. Attributes considered include 'alloc_align', 'alloc_size',
  4860. 'cold', 'const', 'hot', 'leaf', 'malloc', 'nonnull',
  4861. 'noreturn', 'nothrow', 'pure', 'returns_nonnull', and
  4862. 'returns_twice'.
  4863. '-Wattribute-alias' is equivalent to '-Wattribute-alias=1'. This
  4864. is the default. You can disable these warnings with either
  4865. '-Wno-attribute-alias' or '-Wattribute-alias=0'.
  4866. '-Wbool-compare'
  4867. Warn about boolean expression compared with an integer value
  4868. different from 'true'/'false'. For instance, the following
  4869. comparison is always false:
  4870. int n = 5;
  4871. ...
  4872. if ((n > 1) == 2) { ... }
  4873. This warning is enabled by '-Wall'.
  4874. '-Wbool-operation'
  4875. Warn about suspicious operations on expressions of a boolean type.
  4876. For instance, bitwise negation of a boolean is very likely a bug in
  4877. the program. For C, this warning also warns about incrementing or
  4878. decrementing a boolean, which rarely makes sense. (In C++,
  4879. decrementing a boolean is always invalid. Incrementing a boolean
  4880. is invalid in C++17, and deprecated otherwise.)
  4881. This warning is enabled by '-Wall'.
  4882. '-Wduplicated-branches'
  4883. Warn when an if-else has identical branches. This warning detects
  4884. cases like
  4885. if (p != NULL)
  4886. return 0;
  4887. else
  4888. return 0;
  4889. It doesn't warn when both branches contain just a null statement.
  4890. This warning also warn for conditional operators:
  4891. int i = x ? *p : *p;
  4892. '-Wduplicated-cond'
  4893. Warn about duplicated conditions in an if-else-if chain. For
  4894. instance, warn for the following code:
  4895. if (p->q != NULL) { ... }
  4896. else if (p->q != NULL) { ... }
  4897. '-Wframe-address'
  4898. Warn when the '__builtin_frame_address' or
  4899. '__builtin_return_address' is called with an argument greater than
  4900. 0. Such calls may return indeterminate values or crash the
  4901. program. The warning is included in '-Wall'.
  4902. '-Wno-discarded-qualifiers (C and Objective-C only)'
  4903. Do not warn if type qualifiers on pointers are being discarded.
  4904. Typically, the compiler warns if a 'const char *' variable is
  4905. passed to a function that takes a 'char *' parameter. This option
  4906. can be used to suppress such a warning.
  4907. '-Wno-discarded-array-qualifiers (C and Objective-C only)'
  4908. Do not warn if type qualifiers on arrays which are pointer targets
  4909. are being discarded. Typically, the compiler warns if a 'const int
  4910. (*)[]' variable is passed to a function that takes a 'int (*)[]'
  4911. parameter. This option can be used to suppress such a warning.
  4912. '-Wno-incompatible-pointer-types (C and Objective-C only)'
  4913. Do not warn when there is a conversion between pointers that have
  4914. incompatible types. This warning is for cases not covered by
  4915. '-Wno-pointer-sign', which warns for pointer argument passing or
  4916. assignment with different signedness.
  4917. '-Wno-int-conversion (C and Objective-C only)'
  4918. Do not warn about incompatible integer to pointer and pointer to
  4919. integer conversions. This warning is about implicit conversions;
  4920. for explicit conversions the warnings '-Wno-int-to-pointer-cast'
  4921. and '-Wno-pointer-to-int-cast' may be used.
  4922. '-Wno-div-by-zero'
  4923. Do not warn about compile-time integer division by zero.
  4924. Floating-point division by zero is not warned about, as it can be a
  4925. legitimate way of obtaining infinities and NaNs.
  4926. '-Wsystem-headers'
  4927. Print warning messages for constructs found in system header files.
  4928. Warnings from system headers are normally suppressed, on the
  4929. assumption that they usually do not indicate real problems and
  4930. would only make the compiler output harder to read. Using this
  4931. command-line option tells GCC to emit warnings from system headers
  4932. as if they occurred in user code. However, note that using '-Wall'
  4933. in conjunction with this option does _not_ warn about unknown
  4934. pragmas in system headers--for that, '-Wunknown-pragmas' must also
  4935. be used.
  4936. '-Wtautological-compare'
  4937. Warn if a self-comparison always evaluates to true or false. This
  4938. warning detects various mistakes such as:
  4939. int i = 1;
  4940. ...
  4941. if (i > i) { ... }
  4942. This warning also warns about bitwise comparisons that always
  4943. evaluate to true or false, for instance:
  4944. if ((a & 16) == 10) { ... }
  4945. will always be false.
  4946. This warning is enabled by '-Wall'.
  4947. '-Wtrampolines'
  4948. Warn about trampolines generated for pointers to nested functions.
  4949. A trampoline is a small piece of data or code that is created at
  4950. run time on the stack when the address of a nested function is
  4951. taken, and is used to call the nested function indirectly. For
  4952. some targets, it is made up of data only and thus requires no
  4953. special treatment. But, for most targets, it is made up of code
  4954. and thus requires the stack to be made executable in order for the
  4955. program to work properly.
  4956. '-Wfloat-equal'
  4957. Warn if floating-point values are used in equality comparisons.
  4958. The idea behind this is that sometimes it is convenient (for the
  4959. programmer) to consider floating-point values as approximations to
  4960. infinitely precise real numbers. If you are doing this, then you
  4961. need to compute (by analyzing the code, or in some other way) the
  4962. maximum or likely maximum error that the computation introduces,
  4963. and allow for it when performing comparisons (and when producing
  4964. output, but that's a different problem). In particular, instead of
  4965. testing for equality, you should check to see whether the two
  4966. values have ranges that overlap; and this is done with the
  4967. relational operators, so equality comparisons are probably
  4968. mistaken.
  4969. '-Wtraditional (C and Objective-C only)'
  4970. Warn about certain constructs that behave differently in
  4971. traditional and ISO C. Also warn about ISO C constructs that have
  4972. no traditional C equivalent, and/or problematic constructs that
  4973. should be avoided.
  4974. * Macro parameters that appear within string literals in the
  4975. macro body. In traditional C macro replacement takes place
  4976. within string literals, but in ISO C it does not.
  4977. * In traditional C, some preprocessor directives did not exist.
  4978. Traditional preprocessors only considered a line to be a
  4979. directive if the '#' appeared in column 1 on the line.
  4980. Therefore '-Wtraditional' warns about directives that
  4981. traditional C understands but ignores because the '#' does not
  4982. appear as the first character on the line. It also suggests
  4983. you hide directives like '#pragma' not understood by
  4984. traditional C by indenting them. Some traditional
  4985. implementations do not recognize '#elif', so this option
  4986. suggests avoiding it altogether.
  4987. * A function-like macro that appears without arguments.
  4988. * The unary plus operator.
  4989. * The 'U' integer constant suffix, or the 'F' or 'L'
  4990. floating-point constant suffixes. (Traditional C does support
  4991. the 'L' suffix on integer constants.) Note, these suffixes
  4992. appear in macros defined in the system headers of most modern
  4993. systems, e.g. the '_MIN'/'_MAX' macros in '<limits.h>'. Use
  4994. of these macros in user code might normally lead to spurious
  4995. warnings, however GCC's integrated preprocessor has enough
  4996. context to avoid warning in these cases.
  4997. * A function declared external in one block and then used after
  4998. the end of the block.
  4999. * A 'switch' statement has an operand of type 'long'.
  5000. * A non-'static' function declaration follows a 'static' one.
  5001. This construct is not accepted by some traditional C
  5002. compilers.
  5003. * The ISO type of an integer constant has a different width or
  5004. signedness from its traditional type. This warning is only
  5005. issued if the base of the constant is ten. I.e. hexadecimal
  5006. or octal values, which typically represent bit patterns, are
  5007. not warned about.
  5008. * Usage of ISO string concatenation is detected.
  5009. * Initialization of automatic aggregates.
  5010. * Identifier conflicts with labels. Traditional C lacks a
  5011. separate namespace for labels.
  5012. * Initialization of unions. If the initializer is zero, the
  5013. warning is omitted. This is done under the assumption that
  5014. the zero initializer in user code appears conditioned on e.g.
  5015. '__STDC__' to avoid missing initializer warnings and relies on
  5016. default initialization to zero in the traditional C case.
  5017. * Conversions by prototypes between fixed/floating-point values
  5018. and vice versa. The absence of these prototypes when
  5019. compiling with traditional C causes serious problems. This is
  5020. a subset of the possible conversion warnings; for the full set
  5021. use '-Wtraditional-conversion'.
  5022. * Use of ISO C style function definitions. This warning
  5023. intentionally is _not_ issued for prototype declarations or
  5024. variadic functions because these ISO C features appear in your
  5025. code when using libiberty's traditional C compatibility
  5026. macros, 'PARAMS' and 'VPARAMS'. This warning is also bypassed
  5027. for nested functions because that feature is already a GCC
  5028. extension and thus not relevant to traditional C
  5029. compatibility.
  5030. '-Wtraditional-conversion (C and Objective-C only)'
  5031. Warn if a prototype causes a type conversion that is different from
  5032. what would happen to the same argument in the absence of a
  5033. prototype. This includes conversions of fixed point to floating
  5034. and vice versa, and conversions changing the width or signedness of
  5035. a fixed-point argument except when the same as the default
  5036. promotion.
  5037. '-Wdeclaration-after-statement (C and Objective-C only)'
  5038. Warn when a declaration is found after a statement in a block.
  5039. This construct, known from C++, was introduced with ISO C99 and is
  5040. by default allowed in GCC. It is not supported by ISO C90. *Note
  5041. Mixed Declarations::.
  5042. '-Wshadow'
  5043. Warn whenever a local variable or type declaration shadows another
  5044. variable, parameter, type, class member (in C++), or instance
  5045. variable (in Objective-C) or whenever a built-in function is
  5046. shadowed. Note that in C++, the compiler warns if a local variable
  5047. shadows an explicit typedef, but not if it shadows a
  5048. struct/class/enum. Same as '-Wshadow=global'.
  5049. '-Wno-shadow-ivar (Objective-C only)'
  5050. Do not warn whenever a local variable shadows an instance variable
  5051. in an Objective-C method.
  5052. '-Wshadow=global'
  5053. The default for '-Wshadow'. Warns for any (global) shadowing.
  5054. '-Wshadow=local'
  5055. Warn when a local variable shadows another local variable or
  5056. parameter. This warning is enabled by '-Wshadow=global'.
  5057. '-Wshadow=compatible-local'
  5058. Warn when a local variable shadows another local variable or
  5059. parameter whose type is compatible with that of the shadowing
  5060. variable. In C++, type compatibility here means the type of the
  5061. shadowing variable can be converted to that of the shadowed
  5062. variable. The creation of this flag (in addition to
  5063. '-Wshadow=local') is based on the idea that when a local variable
  5064. shadows another one of incompatible type, it is most likely
  5065. intentional, not a bug or typo, as shown in the following example:
  5066. for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  5067. {
  5068. for (int i = 0; i < N; ++i)
  5069. {
  5070. ...
  5071. }
  5072. ...
  5073. }
  5074. Since the two variable 'i' in the example above have incompatible
  5075. types, enabling only '-Wshadow=compatible-local' will not emit a
  5076. warning. Because their types are incompatible, if a programmer
  5077. accidentally uses one in place of the other, type checking will
  5078. catch that and emit an error or warning. So not warning (about
  5079. shadowing) in this case will not lead to undetected bugs. Use of
  5080. this flag instead of '-Wshadow=local' can possibly reduce the
  5081. number of warnings triggered by intentional shadowing.
  5082. This warning is enabled by '-Wshadow=local'.
  5083. '-Wlarger-than=BYTE-SIZE'
  5084. Warn whenever an object is defined whose size exceeds BYTE-SIZE.
  5085. '-Wlarger-than=''PTRDIFF_MAX' is enabled by default. Warnings
  5086. controlled by the option can be disabled either by specifying
  5087. BYTE-SIZE of 'SIZE_MAX' or more or by '-Wno-larger-than'.
  5088. '-Wno-larger-than'
  5089. Disable '-Wlarger-than=' warnings. The option is equivalent to
  5090. '-Wlarger-than=''SIZE_MAX' or larger.
  5091. '-Wframe-larger-than=BYTE-SIZE'
  5092. Warn if the size of a function frame exceeds BYTE-SIZE. The
  5093. computation done to determine the stack frame size is approximate
  5094. and not conservative. The actual requirements may be somewhat
  5095. greater than BYTE-SIZE even if you do not get a warning. In
  5096. addition, any space allocated via 'alloca', variable-length arrays,
  5097. or related constructs is not included by the compiler when
  5098. determining whether or not to issue a warning.
  5099. '-Wframe-larger-than=''PTRDIFF_MAX' is enabled by default.
  5100. Warnings controlled by the option can be disabled either by
  5101. specifying BYTE-SIZE of 'SIZE_MAX' or more or by
  5102. '-Wno-frame-larger-than'.
  5103. '-Wno-frame-larger-than'
  5104. Disable '-Wframe-larger-than=' warnings. The option is equivalent
  5105. to '-Wframe-larger-than=''SIZE_MAX' or larger.
  5106. '-Wno-free-nonheap-object'
  5107. Do not warn when attempting to free an object that was not
  5108. allocated on the heap.
  5109. '-Wstack-usage=BYTE-SIZE'
  5110. Warn if the stack usage of a function might exceed BYTE-SIZE. The
  5111. computation done to determine the stack usage is conservative. Any
  5112. space allocated via 'alloca', variable-length arrays, or related
  5113. constructs is included by the compiler when determining whether or
  5114. not to issue a warning.
  5115. The message is in keeping with the output of '-fstack-usage'.
  5116. * If the stack usage is fully static but exceeds the specified
  5117. amount, it's:
  5118. warning: stack usage is 1120 bytes
  5119. * If the stack usage is (partly) dynamic but bounded, it's:
  5120. warning: stack usage might be 1648 bytes
  5121. * If the stack usage is (partly) dynamic and not bounded, it's:
  5122. warning: stack usage might be unbounded
  5123. '-Wstack-usage=''PTRDIFF_MAX' is enabled by default. Warnings
  5124. controlled by the option can be disabled either by specifying
  5125. BYTE-SIZE of 'SIZE_MAX' or more or by '-Wno-stack-usage'.
  5126. '-Wno-stack-usage'
  5127. Disable '-Wstack-usage=' warnings. The option is equivalent to
  5128. '-Wstack-usage=''SIZE_MAX' or larger.
  5129. '-Wunsafe-loop-optimizations'
  5130. Warn if the loop cannot be optimized because the compiler cannot
  5131. assume anything on the bounds of the loop indices. With
  5132. '-funsafe-loop-optimizations' warn if the compiler makes such
  5133. assumptions.
  5134. '-Wno-pedantic-ms-format (MinGW targets only)'
  5135. When used in combination with '-Wformat' and '-pedantic' without
  5136. GNU extensions, this option disables the warnings about non-ISO
  5137. 'printf' / 'scanf' format width specifiers 'I32', 'I64', and 'I'
  5138. used on Windows targets, which depend on the MS runtime.
  5139. '-Waligned-new'
  5140. Warn about a new-expression of a type that requires greater
  5141. alignment than the 'alignof(std::max_align_t)' but uses an
  5142. allocation function without an explicit alignment parameter. This
  5143. option is enabled by '-Wall'.
  5144. Normally this only warns about global allocation functions, but
  5145. '-Waligned-new=all' also warns about class member allocation
  5146. functions.
  5147. '-Wplacement-new'
  5148. '-Wplacement-new=N'
  5149. Warn about placement new expressions with undefined behavior, such
  5150. as constructing an object in a buffer that is smaller than the type
  5151. of the object. For example, the placement new expression below is
  5152. diagnosed because it attempts to construct an array of 64 integers
  5153. in a buffer only 64 bytes large.
  5154. char buf [64];
  5155. new (buf) int[64];
  5156. This warning is enabled by default.
  5157. '-Wplacement-new=1'
  5158. This is the default warning level of '-Wplacement-new'. At
  5159. this level the warning is not issued for some strictly
  5160. undefined constructs that GCC allows as extensions for
  5161. compatibility with legacy code. For example, the following
  5162. 'new' expression is not diagnosed at this level even though it
  5163. has undefined behavior according to the C++ standard because
  5164. it writes past the end of the one-element array.
  5165. struct S { int n, a[1]; };
  5166. S *s = (S *)malloc (sizeof *s + 31 * sizeof s->a[0]);
  5167. new (s->a)int [32]();
  5168. '-Wplacement-new=2'
  5169. At this level, in addition to diagnosing all the same
  5170. constructs as at level 1, a diagnostic is also issued for
  5171. placement new expressions that construct an object in the last
  5172. member of structure whose type is an array of a single element
  5173. and whose size is less than the size of the object being
  5174. constructed. While the previous example would be diagnosed,
  5175. the following construct makes use of the flexible member array
  5176. extension to avoid the warning at level 2.
  5177. struct S { int n, a[]; };
  5178. S *s = (S *)malloc (sizeof *s + 32 * sizeof s->a[0]);
  5179. new (s->a)int [32]();
  5180. '-Wpointer-arith'
  5181. Warn about anything that depends on the "size of" a function type
  5182. or of 'void'. GNU C assigns these types a size of 1, for
  5183. convenience in calculations with 'void *' pointers and pointers to
  5184. functions. In C++, warn also when an arithmetic operation involves
  5185. 'NULL'. This warning is also enabled by '-Wpedantic'.
  5186. '-Wpointer-compare'
  5187. Warn if a pointer is compared with a zero character constant. This
  5188. usually means that the pointer was meant to be dereferenced. For
  5189. example:
  5190. const char *p = foo ();
  5191. if (p == '\0')
  5192. return 42;
  5193. Note that the code above is invalid in C++11.
  5194. This warning is enabled by default.
  5195. '-Wtype-limits'
  5196. Warn if a comparison is always true or always false due to the
  5197. limited range of the data type, but do not warn for constant
  5198. expressions. For example, warn if an unsigned variable is compared
  5199. against zero with '<' or '>='. This warning is also enabled by
  5200. '-Wextra'.
  5201. '-Wabsolute-value (C and Objective-C only)'
  5202. Warn for calls to standard functions that compute the absolute
  5203. value of an argument when a more appropriate standard function is
  5204. available. For example, calling 'abs(3.14)' triggers the warning
  5205. because the appropriate function to call to compute the absolute
  5206. value of a double argument is 'fabs'. The option also triggers
  5207. warnings when the argument in a call to such a function has an
  5208. unsigned type. This warning can be suppressed with an explicit
  5209. type cast and it is also enabled by '-Wextra'.
  5210. '-Wcomment'
  5211. '-Wcomments'
  5212. Warn whenever a comment-start sequence '/*' appears in a '/*'
  5213. comment, or whenever a backslash-newline appears in a '//' comment.
  5214. This warning is enabled by '-Wall'.
  5215. '-Wtrigraphs'
  5216. Warn if any trigraphs are encountered that might change the meaning
  5217. of the program. Trigraphs within comments are not warned about,
  5218. except those that would form escaped newlines.
  5219. This option is implied by '-Wall'. If '-Wall' is not given, this
  5220. option is still enabled unless trigraphs are enabled. To get
  5221. trigraph conversion without warnings, but get the other '-Wall'
  5222. warnings, use '-trigraphs -Wall -Wno-trigraphs'.
  5223. '-Wundef'
  5224. Warn if an undefined identifier is evaluated in an '#if' directive.
  5225. Such identifiers are replaced with zero.
  5226. '-Wexpansion-to-defined'
  5227. Warn whenever 'defined' is encountered in the expansion of a macro
  5228. (including the case where the macro is expanded by an '#if'
  5229. directive). Such usage is not portable. This warning is also
  5230. enabled by '-Wpedantic' and '-Wextra'.
  5231. '-Wunused-macros'
  5232. Warn about macros defined in the main file that are unused. A
  5233. macro is "used" if it is expanded or tested for existence at least
  5234. once. The preprocessor also warns if the macro has not been used
  5235. at the time it is redefined or undefined.
  5236. Built-in macros, macros defined on the command line, and macros
  5237. defined in include files are not warned about.
  5238. _Note:_ If a macro is actually used, but only used in skipped
  5239. conditional blocks, then the preprocessor reports it as unused. To
  5240. avoid the warning in such a case, you might improve the scope of
  5241. the macro's definition by, for example, moving it into the first
  5242. skipped block. Alternatively, you could provide a dummy use with
  5243. something like:
  5244. #if defined the_macro_causing_the_warning
  5245. #endif
  5246. '-Wno-endif-labels'
  5247. Do not warn whenever an '#else' or an '#endif' are followed by
  5248. text. This sometimes happens in older programs with code of the
  5249. form
  5250. #if FOO
  5251. ...
  5252. #else FOO
  5253. ...
  5254. #endif FOO
  5255. The second and third 'FOO' should be in comments. This warning is
  5256. on by default.
  5257. '-Wbad-function-cast (C and Objective-C only)'
  5258. Warn when a function call is cast to a non-matching type. For
  5259. example, warn if a call to a function returning an integer type is
  5260. cast to a pointer type.
  5261. '-Wc90-c99-compat (C and Objective-C only)'
  5262. Warn about features not present in ISO C90, but present in ISO C99.
  5263. For instance, warn about use of variable length arrays, 'long long'
  5264. type, 'bool' type, compound literals, designated initializers, and
  5265. so on. This option is independent of the standards mode. Warnings
  5266. are disabled in the expression that follows '__extension__'.
  5267. '-Wc99-c11-compat (C and Objective-C only)'
  5268. Warn about features not present in ISO C99, but present in ISO C11.
  5269. For instance, warn about use of anonymous structures and unions,
  5270. '_Atomic' type qualifier, '_Thread_local' storage-class specifier,
  5271. '_Alignas' specifier, 'Alignof' operator, '_Generic' keyword, and
  5272. so on. This option is independent of the standards mode. Warnings
  5273. are disabled in the expression that follows '__extension__'.
  5274. '-Wc++-compat (C and Objective-C only)'
  5275. Warn about ISO C constructs that are outside of the common subset
  5276. of ISO C and ISO C++, e.g. request for implicit conversion from
  5277. 'void *' to a pointer to non-'void' type.
  5278. '-Wc++11-compat (C++ and Objective-C++ only)'
  5279. Warn about C++ constructs whose meaning differs between ISO C++
  5280. 1998 and ISO C++ 2011, e.g., identifiers in ISO C++ 1998 that are
  5281. keywords in ISO C++ 2011. This warning turns on '-Wnarrowing' and
  5282. is enabled by '-Wall'.
  5283. '-Wc++14-compat (C++ and Objective-C++ only)'
  5284. Warn about C++ constructs whose meaning differs between ISO C++
  5285. 2011 and ISO C++ 2014. This warning is enabled by '-Wall'.
  5286. '-Wc++17-compat (C++ and Objective-C++ only)'
  5287. Warn about C++ constructs whose meaning differs between ISO C++
  5288. 2014 and ISO C++ 2017. This warning is enabled by '-Wall'.
  5289. '-Wcast-qual'
  5290. Warn whenever a pointer is cast so as to remove a type qualifier
  5291. from the target type. For example, warn if a 'const char *' is
  5292. cast to an ordinary 'char *'.
  5293. Also warn when making a cast that introduces a type qualifier in an
  5294. unsafe way. For example, casting 'char **' to 'const char **' is
  5295. unsafe, as in this example:
  5296. /* p is char ** value. */
  5297. const char **q = (const char **) p;
  5298. /* Assignment of readonly string to const char * is OK. */
  5299. *q = "string";
  5300. /* Now char** pointer points to read-only memory. */
  5301. **p = 'b';
  5302. '-Wcast-align'
  5303. Warn whenever a pointer is cast such that the required alignment of
  5304. the target is increased. For example, warn if a 'char *' is cast
  5305. to an 'int *' on machines where integers can only be accessed at
  5306. two- or four-byte boundaries.
  5307. '-Wcast-align=strict'
  5308. Warn whenever a pointer is cast such that the required alignment of
  5309. the target is increased. For example, warn if a 'char *' is cast
  5310. to an 'int *' regardless of the target machine.
  5311. '-Wcast-function-type'
  5312. Warn when a function pointer is cast to an incompatible function
  5313. pointer. In a cast involving function types with a variable
  5314. argument list only the types of initial arguments that are provided
  5315. are considered. Any parameter of pointer-type matches any other
  5316. pointer-type. Any benign differences in integral types are
  5317. ignored, like 'int' vs. 'long' on ILP32 targets. Likewise type
  5318. qualifiers are ignored. The function type 'void (*) (void)' is
  5319. special and matches everything, which can be used to suppress this
  5320. warning. In a cast involving pointer to member types this warning
  5321. warns whenever the type cast is changing the pointer to member
  5322. type. This warning is enabled by '-Wextra'.
  5323. '-Wwrite-strings'
  5324. When compiling C, give string constants the type 'const
  5325. char[LENGTH]' so that copying the address of one into a non-'const'
  5326. 'char *' pointer produces a warning. These warnings help you find
  5327. at compile time code that can try to write into a string constant,
  5328. but only if you have been very careful about using 'const' in
  5329. declarations and prototypes. Otherwise, it is just a nuisance.
  5330. This is why we did not make '-Wall' request these warnings.
  5331. When compiling C++, warn about the deprecated conversion from
  5332. string literals to 'char *'. This warning is enabled by default
  5333. for C++ programs.
  5334. '-Wcatch-value'
  5335. '-Wcatch-value=N (C++ and Objective-C++ only)'
  5336. Warn about catch handlers that do not catch via reference. With
  5337. '-Wcatch-value=1' (or '-Wcatch-value' for short) warn about
  5338. polymorphic class types that are caught by value. With
  5339. '-Wcatch-value=2' warn about all class types that are caught by
  5340. value. With '-Wcatch-value=3' warn about all types that are not
  5341. caught by reference. '-Wcatch-value' is enabled by '-Wall'.
  5342. '-Wclobbered'
  5343. Warn for variables that might be changed by 'longjmp' or 'vfork'.
  5344. This warning is also enabled by '-Wextra'.
  5345. '-Wconditionally-supported (C++ and Objective-C++ only)'
  5346. Warn for conditionally-supported (C++11 [intro.defs]) constructs.
  5347. '-Wconversion'
  5348. Warn for implicit conversions that may alter a value. This
  5349. includes conversions between real and integer, like 'abs (x)' when
  5350. 'x' is 'double'; conversions between signed and unsigned, like
  5351. 'unsigned ui = -1'; and conversions to smaller types, like 'sqrtf
  5352. (M_PI)'. Do not warn for explicit casts like 'abs ((int) x)' and
  5353. 'ui = (unsigned) -1', or if the value is not changed by the
  5354. conversion like in 'abs (2.0)'. Warnings about conversions between
  5355. signed and unsigned integers can be disabled by using
  5356. '-Wno-sign-conversion'.
  5357. For C++, also warn for confusing overload resolution for
  5358. user-defined conversions; and conversions that never use a type
  5359. conversion operator: conversions to 'void', the same type, a base
  5360. class or a reference to them. Warnings about conversions between
  5361. signed and unsigned integers are disabled by default in C++ unless
  5362. '-Wsign-conversion' is explicitly enabled.
  5363. '-Wno-conversion-null (C++ and Objective-C++ only)'
  5364. Do not warn for conversions between 'NULL' and non-pointer types.
  5365. '-Wconversion-null' is enabled by default.
  5366. '-Wzero-as-null-pointer-constant (C++ and Objective-C++ only)'
  5367. Warn when a literal '0' is used as null pointer constant. This can
  5368. be useful to facilitate the conversion to 'nullptr' in C++11.
  5369. '-Wsubobject-linkage (C++ and Objective-C++ only)'
  5370. Warn if a class type has a base or a field whose type uses the
  5371. anonymous namespace or depends on a type with no linkage. If a
  5372. type A depends on a type B with no or internal linkage, defining it
  5373. in multiple translation units would be an ODR violation because the
  5374. meaning of B is different in each translation unit. If A only
  5375. appears in a single translation unit, the best way to silence the
  5376. warning is to give it internal linkage by putting it in an
  5377. anonymous namespace as well. The compiler doesn't give this
  5378. warning for types defined in the main .C file, as those are
  5379. unlikely to have multiple definitions. '-Wsubobject-linkage' is
  5380. enabled by default.
  5381. '-Wdangling-else'
  5382. Warn about constructions where there may be confusion to which 'if'
  5383. statement an 'else' branch belongs. Here is an example of such a
  5384. case:
  5385. {
  5386. if (a)
  5387. if (b)
  5388. foo ();
  5389. else
  5390. bar ();
  5391. }
  5392. In C/C++, every 'else' branch belongs to the innermost possible
  5393. 'if' statement, which in this example is 'if (b)'. This is often
  5394. not what the programmer expected, as illustrated in the above
  5395. example by indentation the programmer chose. When there is the
  5396. potential for this confusion, GCC issues a warning when this flag
  5397. is specified. To eliminate the warning, add explicit braces around
  5398. the innermost 'if' statement so there is no way the 'else' can
  5399. belong to the enclosing 'if'. The resulting code looks like this:
  5400. {
  5401. if (a)
  5402. {
  5403. if (b)
  5404. foo ();
  5405. else
  5406. bar ();
  5407. }
  5408. }
  5409. This warning is enabled by '-Wparentheses'.
  5410. '-Wdate-time'
  5411. Warn when macros '__TIME__', '__DATE__' or '__TIMESTAMP__' are
  5412. encountered as they might prevent bit-wise-identical reproducible
  5413. compilations.
  5414. '-Wdelete-incomplete (C++ and Objective-C++ only)'
  5415. Warn when deleting a pointer to incomplete type, which may cause
  5416. undefined behavior at runtime. This warning is enabled by default.
  5417. '-Wuseless-cast (C++ and Objective-C++ only)'
  5418. Warn when an expression is casted to its own type.
  5419. '-Wempty-body'
  5420. Warn if an empty body occurs in an 'if', 'else' or 'do while'
  5421. statement. This warning is also enabled by '-Wextra'.
  5422. '-Wenum-compare'
  5423. Warn about a comparison between values of different enumerated
  5424. types. In C++ enumerated type mismatches in conditional
  5425. expressions are also diagnosed and the warning is enabled by
  5426. default. In C this warning is enabled by '-Wall'.
  5427. '-Wextra-semi (C++, Objective-C++ only)'
  5428. Warn about redundant semicolon after in-class function definition.
  5429. '-Wjump-misses-init (C, Objective-C only)'
  5430. Warn if a 'goto' statement or a 'switch' statement jumps forward
  5431. across the initialization of a variable, or jumps backward to a
  5432. label after the variable has been initialized. This only warns
  5433. about variables that are initialized when they are declared. This
  5434. warning is only supported for C and Objective-C; in C++ this sort
  5435. of branch is an error in any case.
  5436. '-Wjump-misses-init' is included in '-Wc++-compat'. It can be
  5437. disabled with the '-Wno-jump-misses-init' option.
  5438. '-Wsign-compare'
  5439. Warn when a comparison between signed and unsigned values could
  5440. produce an incorrect result when the signed value is converted to
  5441. unsigned. In C++, this warning is also enabled by '-Wall'. In C,
  5442. it is also enabled by '-Wextra'.
  5443. '-Wsign-conversion'
  5444. Warn for implicit conversions that may change the sign of an
  5445. integer value, like assigning a signed integer expression to an
  5446. unsigned integer variable. An explicit cast silences the warning.
  5447. In C, this option is enabled also by '-Wconversion'.
  5448. '-Wfloat-conversion'
  5449. Warn for implicit conversions that reduce the precision of a real
  5450. value. This includes conversions from real to integer, and from
  5451. higher precision real to lower precision real values. This option
  5452. is also enabled by '-Wconversion'.
  5453. '-Wno-scalar-storage-order'
  5454. Do not warn on suspicious constructs involving reverse scalar
  5455. storage order.
  5456. '-Wsized-deallocation (C++ and Objective-C++ only)'
  5457. Warn about a definition of an unsized deallocation function
  5458. void operator delete (void *) noexcept;
  5459. void operator delete[] (void *) noexcept;
  5460. without a definition of the corresponding sized deallocation
  5461. function
  5462. void operator delete (void *, std::size_t) noexcept;
  5463. void operator delete[] (void *, std::size_t) noexcept;
  5464. or vice versa. Enabled by '-Wextra' along with
  5465. '-fsized-deallocation'.
  5466. '-Wsizeof-pointer-div'
  5467. Warn for suspicious divisions of two sizeof expressions that divide
  5468. the pointer size by the element size, which is the usual way to
  5469. compute the array size but won't work out correctly with pointers.
  5470. This warning warns e.g. about 'sizeof (ptr) / sizeof (ptr[0])' if
  5471. 'ptr' is not an array, but a pointer. This warning is enabled by
  5472. '-Wall'.
  5473. '-Wsizeof-pointer-memaccess'
  5474. Warn for suspicious length parameters to certain string and memory
  5475. built-in functions if the argument uses 'sizeof'. This warning
  5476. triggers for example for 'memset (ptr, 0, sizeof (ptr));' if 'ptr'
  5477. is not an array, but a pointer, and suggests a possible fix, or
  5478. about 'memcpy (&foo, ptr, sizeof (&foo));'.
  5479. '-Wsizeof-pointer-memaccess' also warns about calls to bounded
  5480. string copy functions like 'strncat' or 'strncpy' that specify as
  5481. the bound a 'sizeof' expression of the source array. For example,
  5482. in the following function the call to 'strncat' specifies the size
  5483. of the source string as the bound. That is almost certainly a
  5484. mistake and so the call is diagnosed.
  5485. void make_file (const char *name)
  5486. {
  5487. char path[PATH_MAX];
  5488. strncpy (path, name, sizeof path - 1);
  5489. strncat (path, ".text", sizeof ".text");
  5490. ...
  5491. }
  5492. The '-Wsizeof-pointer-memaccess' option is enabled by '-Wall'.
  5493. '-Wsizeof-array-argument'
  5494. Warn when the 'sizeof' operator is applied to a parameter that is
  5495. declared as an array in a function definition. This warning is
  5496. enabled by default for C and C++ programs.
  5497. '-Wmemset-elt-size'
  5498. Warn for suspicious calls to the 'memset' built-in function, if the
  5499. first argument references an array, and the third argument is a
  5500. number equal to the number of elements, but not equal to the size
  5501. of the array in memory. This indicates that the user has omitted a
  5502. multiplication by the element size. This warning is enabled by
  5503. '-Wall'.
  5504. '-Wmemset-transposed-args'
  5505. Warn for suspicious calls to the 'memset' built-in function where
  5506. the second argument is not zero and the third argument is zero.
  5507. For example, the call 'memset (buf, sizeof buf, 0)' is diagnosed
  5508. because 'memset (buf, 0, sizeof buf)' was meant instead. The
  5509. diagnostic is only emitted if the third argument is a literal zero.
  5510. Otherwise, if it is an expression that is folded to zero, or a cast
  5511. of zero to some type, it is far less likely that the arguments have
  5512. been mistakenly transposed and no warning is emitted. This warning
  5513. is enabled by '-Wall'.
  5514. '-Waddress'
  5515. Warn about suspicious uses of memory addresses. These include
  5516. using the address of a function in a conditional expression, such
  5517. as 'void func(void); if (func)', and comparisons against the memory
  5518. address of a string literal, such as 'if (x == "abc")'. Such uses
  5519. typically indicate a programmer error: the address of a function
  5520. always evaluates to true, so their use in a conditional usually
  5521. indicate that the programmer forgot the parentheses in a function
  5522. call; and comparisons against string literals result in unspecified
  5523. behavior and are not portable in C, so they usually indicate that
  5524. the programmer intended to use 'strcmp'. This warning is enabled
  5525. by '-Wall'.
  5526. '-Waddress-of-packed-member'
  5527. Warn when the address of packed member of struct or union is taken,
  5528. which usually results in an unaligned pointer value. This is
  5529. enabled by default.
  5530. '-Wlogical-op'
  5531. Warn about suspicious uses of logical operators in expressions.
  5532. This includes using logical operators in contexts where a bit-wise
  5533. operator is likely to be expected. Also warns when the operands of
  5534. a logical operator are the same:
  5535. extern int a;
  5536. if (a < 0 && a < 0) { ... }
  5537. '-Wlogical-not-parentheses'
  5538. Warn about logical not used on the left hand side operand of a
  5539. comparison. This option does not warn if the right operand is
  5540. considered to be a boolean expression. Its purpose is to detect
  5541. suspicious code like the following:
  5542. int a;
  5543. ...
  5544. if (!a > 1) { ... }
  5545. It is possible to suppress the warning by wrapping the LHS into
  5546. parentheses:
  5547. if ((!a) > 1) { ... }
  5548. This warning is enabled by '-Wall'.
  5549. '-Waggregate-return'
  5550. Warn if any functions that return structures or unions are defined
  5551. or called. (In languages where you can return an array, this also
  5552. elicits a warning.)
  5553. '-Wno-aggressive-loop-optimizations'
  5554. Warn if in a loop with constant number of iterations the compiler
  5555. detects undefined behavior in some statement during one or more of
  5556. the iterations.
  5557. '-Wno-attributes'
  5558. Do not warn if an unexpected '__attribute__' is used, such as
  5559. unrecognized attributes, function attributes applied to variables,
  5560. etc. This does not stop errors for incorrect use of supported
  5561. attributes.
  5562. '-Wno-builtin-declaration-mismatch'
  5563. Warn if a built-in function is declared with an incompatible
  5564. signature or as a non-function, or when a built-in function
  5565. declared with a type that does not include a prototype is called
  5566. with arguments whose promoted types do not match those expected by
  5567. the function. When '-Wextra' is specified, also warn when a
  5568. built-in function that takes arguments is declared without a
  5569. prototype. The '-Wno-builtin-declaration-mismatch' warning is
  5570. enabled by default. To avoid the warning include the appropriate
  5571. header to bring the prototypes of built-in functions into scope.
  5572. For example, the call to 'memset' below is diagnosed by the warning
  5573. because the function expects a value of type 'size_t' as its
  5574. argument but the type of '32' is 'int'. With '-Wextra', the
  5575. declaration of the function is diagnosed as well.
  5576. extern void* memset ();
  5577. void f (void *d)
  5578. {
  5579. memset (d, '\0', 32);
  5580. }
  5581. '-Wno-builtin-macro-redefined'
  5582. Do not warn if certain built-in macros are redefined. This
  5583. suppresses warnings for redefinition of '__TIMESTAMP__',
  5584. '__TIME__', '__DATE__', '__FILE__', and '__BASE_FILE__'.
  5585. '-Wstrict-prototypes (C and Objective-C only)'
  5586. Warn if a function is declared or defined without specifying the
  5587. argument types. (An old-style function definition is permitted
  5588. without a warning if preceded by a declaration that specifies the
  5589. argument types.)
  5590. '-Wold-style-declaration (C and Objective-C only)'
  5591. Warn for obsolescent usages, according to the C Standard, in a
  5592. declaration. For example, warn if storage-class specifiers like
  5593. 'static' are not the first things in a declaration. This warning
  5594. is also enabled by '-Wextra'.
  5595. '-Wold-style-definition (C and Objective-C only)'
  5596. Warn if an old-style function definition is used. A warning is
  5597. given even if there is a previous prototype.
  5598. '-Wmissing-parameter-type (C and Objective-C only)'
  5599. A function parameter is declared without a type specifier in
  5600. K&R-style functions:
  5601. void foo(bar) { }
  5602. This warning is also enabled by '-Wextra'.
  5603. '-Wmissing-prototypes (C and Objective-C only)'
  5604. Warn if a global function is defined without a previous prototype
  5605. declaration. This warning is issued even if the definition itself
  5606. provides a prototype. Use this option to detect global functions
  5607. that do not have a matching prototype declaration in a header file.
  5608. This option is not valid for C++ because all function declarations
  5609. provide prototypes and a non-matching declaration declares an
  5610. overload rather than conflict with an earlier declaration. Use
  5611. '-Wmissing-declarations' to detect missing declarations in C++.
  5612. '-Wmissing-declarations'
  5613. Warn if a global function is defined without a previous
  5614. declaration. Do so even if the definition itself provides a
  5615. prototype. Use this option to detect global functions that are not
  5616. declared in header files. In C, no warnings are issued for
  5617. functions with previous non-prototype declarations; use
  5618. '-Wmissing-prototypes' to detect missing prototypes. In C++, no
  5619. warnings are issued for function templates, or for inline
  5620. functions, or for functions in anonymous namespaces.
  5621. '-Wmissing-field-initializers'
  5622. Warn if a structure's initializer has some fields missing. For
  5623. example, the following code causes such a warning, because 'x.h' is
  5624. implicitly zero:
  5625. struct s { int f, g, h; };
  5626. struct s x = { 3, 4 };
  5627. This option does not warn about designated initializers, so the
  5628. following modification does not trigger a warning:
  5629. struct s { int f, g, h; };
  5630. struct s x = { .f = 3, .g = 4 };
  5631. In C this option does not warn about the universal zero initializer
  5632. '{ 0 }':
  5633. struct s { int f, g, h; };
  5634. struct s x = { 0 };
  5635. Likewise, in C++ this option does not warn about the empty { }
  5636. initializer, for example:
  5637. struct s { int f, g, h; };
  5638. s x = { };
  5639. This warning is included in '-Wextra'. To get other '-Wextra'
  5640. warnings without this one, use '-Wextra
  5641. -Wno-missing-field-initializers'.
  5642. '-Wno-multichar'
  5643. Do not warn if a multicharacter constant (''FOOF'') is used.
  5644. Usually they indicate a typo in the user's code, as they have
  5645. implementation-defined values, and should not be used in portable
  5646. code.
  5647. '-Wnormalized=[none|id|nfc|nfkc]'
  5648. In ISO C and ISO C++, two identifiers are different if they are
  5649. different sequences of characters. However, sometimes when
  5650. characters outside the basic ASCII character set are used, you can
  5651. have two different character sequences that look the same. To
  5652. avoid confusion, the ISO 10646 standard sets out some
  5653. "normalization rules" which when applied ensure that two sequences
  5654. that look the same are turned into the same sequence. GCC can warn
  5655. you if you are using identifiers that have not been normalized;
  5656. this option controls that warning.
  5657. There are four levels of warning supported by GCC. The default is
  5658. '-Wnormalized=nfc', which warns about any identifier that is not in
  5659. the ISO 10646 "C" normalized form, "NFC". NFC is the recommended
  5660. form for most uses. It is equivalent to '-Wnormalized'.
  5661. Unfortunately, there are some characters allowed in identifiers by
  5662. ISO C and ISO C++ that, when turned into NFC, are not allowed in
  5663. identifiers. That is, there's no way to use these symbols in
  5664. portable ISO C or C++ and have all your identifiers in NFC.
  5665. '-Wnormalized=id' suppresses the warning for these characters. It
  5666. is hoped that future versions of the standards involved will
  5667. correct this, which is why this option is not the default.
  5668. You can switch the warning off for all characters by writing
  5669. '-Wnormalized=none' or '-Wno-normalized'. You should only do this
  5670. if you are using some other normalization scheme (like "D"),
  5671. because otherwise you can easily create bugs that are literally
  5672. impossible to see.
  5673. Some characters in ISO 10646 have distinct meanings but look
  5674. identical in some fonts or display methodologies, especially once
  5675. formatting has been applied. For instance '\u207F', "SUPERSCRIPT
  5676. LATIN SMALL LETTER N", displays just like a regular 'n' that has
  5677. been placed in a superscript. ISO 10646 defines the "NFKC"
  5678. normalization scheme to convert all these into a standard form as
  5679. well, and GCC warns if your code is not in NFKC if you use
  5680. '-Wnormalized=nfkc'. This warning is comparable to warning about
  5681. every identifier that contains the letter O because it might be
  5682. confused with the digit 0, and so is not the default, but may be
  5683. useful as a local coding convention if the programming environment
  5684. cannot be fixed to display these characters distinctly.
  5685. '-Wno-attribute-warning'
  5686. Do not warn about usage of functions (*note Function Attributes::)
  5687. declared with 'warning' attribute. By default, this warning is
  5688. enabled. '-Wno-attribute-warning' can be used to disable the
  5689. warning or '-Wno-error=attribute-warning' can be used to disable
  5690. the error when compiled with '-Werror' flag.
  5691. '-Wno-deprecated'
  5692. Do not warn about usage of deprecated features. *Note Deprecated
  5693. Features::.
  5694. '-Wno-deprecated-declarations'
  5695. Do not warn about uses of functions (*note Function Attributes::),
  5696. variables (*note Variable Attributes::), and types (*note Type
  5697. Attributes::) marked as deprecated by using the 'deprecated'
  5698. attribute.
  5699. '-Wno-overflow'
  5700. Do not warn about compile-time overflow in constant expressions.
  5701. '-Wno-odr'
  5702. Warn about One Definition Rule violations during link-time
  5703. optimization. Requires '-flto-odr-type-merging' to be enabled.
  5704. Enabled by default.
  5705. '-Wopenmp-simd'
  5706. Warn if the vectorizer cost model overrides the OpenMP simd
  5707. directive set by user. The '-fsimd-cost-model=unlimited' option
  5708. can be used to relax the cost model.
  5709. '-Woverride-init (C and Objective-C only)'
  5710. Warn if an initialized field without side effects is overridden
  5711. when using designated initializers (*note Designated Initializers:
  5712. Designated Inits.).
  5713. This warning is included in '-Wextra'. To get other '-Wextra'
  5714. warnings without this one, use '-Wextra -Wno-override-init'.
  5715. '-Woverride-init-side-effects (C and Objective-C only)'
  5716. Warn if an initialized field with side effects is overridden when
  5717. using designated initializers (*note Designated Initializers:
  5718. Designated Inits.). This warning is enabled by default.
  5719. '-Wpacked'
  5720. Warn if a structure is given the packed attribute, but the packed
  5721. attribute has no effect on the layout or size of the structure.
  5722. Such structures may be mis-aligned for little benefit. For
  5723. instance, in this code, the variable 'f.x' in 'struct bar' is
  5724. misaligned even though 'struct bar' does not itself have the packed
  5725. attribute:
  5726. struct foo {
  5727. int x;
  5728. char a, b, c, d;
  5729. } __attribute__((packed));
  5730. struct bar {
  5731. char z;
  5732. struct foo f;
  5733. };
  5734. '-Wpacked-bitfield-compat'
  5735. The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed' attribute on
  5736. bit-fields of type 'char'. This has been fixed in GCC 4.4 but the
  5737. change can lead to differences in the structure layout. GCC
  5738. informs you when the offset of such a field has changed in GCC 4.4.
  5739. For example there is no longer a 4-bit padding between field 'a'
  5740. and 'b' in this structure:
  5741. struct foo
  5742. {
  5743. char a:4;
  5744. char b:8;
  5745. } __attribute__ ((packed));
  5746. This warning is enabled by default. Use
  5747. '-Wno-packed-bitfield-compat' to disable this warning.
  5748. '-Wpacked-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  5749. Warn if a structure field with explicitly specified alignment in a
  5750. packed struct or union is misaligned. For example, a warning will
  5751. be issued on 'struct S', like, 'warning: alignment 1 of 'struct S'
  5752. is less than 8', in this code:
  5753. struct __attribute__ ((aligned (8))) S8 { char a[8]; };
  5754. struct __attribute__ ((packed)) S {
  5755. struct S8 s8;
  5756. };
  5757. This warning is enabled by '-Wall'.
  5758. '-Wpadded'
  5759. Warn if padding is included in a structure, either to align an
  5760. element of the structure or to align the whole structure.
  5761. Sometimes when this happens it is possible to rearrange the fields
  5762. of the structure to reduce the padding and so make the structure
  5763. smaller.
  5764. '-Wredundant-decls'
  5765. Warn if anything is declared more than once in the same scope, even
  5766. in cases where multiple declaration is valid and changes nothing.
  5767. '-Wno-restrict'
  5768. Warn when an object referenced by a 'restrict'-qualified parameter
  5769. (or, in C++, a '__restrict'-qualified parameter) is aliased by
  5770. another argument, or when copies between such objects overlap. For
  5771. example, the call to the 'strcpy' function below attempts to
  5772. truncate the string by replacing its initial characters with the
  5773. last four. However, because the call writes the terminating NUL
  5774. into 'a[4]', the copies overlap and the call is diagnosed.
  5775. void foo (void)
  5776. {
  5777. char a[] = "abcd1234";
  5778. strcpy (a, a + 4);
  5779. ...
  5780. }
  5781. The '-Wrestrict' option detects some instances of simple overlap
  5782. even without optimization but works best at '-O2' and above. It is
  5783. included in '-Wall'.
  5784. '-Wnested-externs (C and Objective-C only)'
  5785. Warn if an 'extern' declaration is encountered within a function.
  5786. '-Wno-inherited-variadic-ctor'
  5787. Suppress warnings about use of C++11 inheriting constructors when
  5788. the base class inherited from has a C variadic constructor; the
  5789. warning is on by default because the ellipsis is not inherited.
  5790. '-Winline'
  5791. Warn if a function that is declared as inline cannot be inlined.
  5792. Even with this option, the compiler does not warn about failures to
  5793. inline functions declared in system headers.
  5794. The compiler uses a variety of heuristics to determine whether or
  5795. not to inline a function. For example, the compiler takes into
  5796. account the size of the function being inlined and the amount of
  5797. inlining that has already been done in the current function.
  5798. Therefore, seemingly insignificant changes in the source program
  5799. can cause the warnings produced by '-Winline' to appear or
  5800. disappear.
  5801. '-Wno-invalid-offsetof (C++ and Objective-C++ only)'
  5802. Suppress warnings from applying the 'offsetof' macro to a non-POD
  5803. type. According to the 2014 ISO C++ standard, applying 'offsetof'
  5804. to a non-standard-layout type is undefined. In existing C++
  5805. implementations, however, 'offsetof' typically gives meaningful
  5806. results. This flag is for users who are aware that they are
  5807. writing nonportable code and who have deliberately chosen to ignore
  5808. the warning about it.
  5809. The restrictions on 'offsetof' may be relaxed in a future version
  5810. of the C++ standard.
  5811. '-Wint-in-bool-context'
  5812. Warn for suspicious use of integer values where boolean values are
  5813. expected, such as conditional expressions (?:) using non-boolean
  5814. integer constants in boolean context, like 'if (a <= b ? 2 : 3)'.
  5815. Or left shifting of signed integers in boolean context, like 'for
  5816. (a = 0; 1 << a; a++);'. Likewise for all kinds of multiplications
  5817. regardless of the data type. This warning is enabled by '-Wall'.
  5818. '-Wno-int-to-pointer-cast'
  5819. Suppress warnings from casts to pointer type of an integer of a
  5820. different size. In C++, casting to a pointer type of smaller size
  5821. is an error. 'Wint-to-pointer-cast' is enabled by default.
  5822. '-Wno-pointer-to-int-cast (C and Objective-C only)'
  5823. Suppress warnings from casts from a pointer to an integer type of a
  5824. different size.
  5825. '-Winvalid-pch'
  5826. Warn if a precompiled header (*note Precompiled Headers::) is found
  5827. in the search path but cannot be used.
  5828. '-Wlong-long'
  5829. Warn if 'long long' type is used. This is enabled by either
  5830. '-Wpedantic' or '-Wtraditional' in ISO C90 and C++98 modes. To
  5831. inhibit the warning messages, use '-Wno-long-long'.
  5832. '-Wvariadic-macros'
  5833. Warn if variadic macros are used in ISO C90 mode, or if the GNU
  5834. alternate syntax is used in ISO C99 mode. This is enabled by
  5835. either '-Wpedantic' or '-Wtraditional'. To inhibit the warning
  5836. messages, use '-Wno-variadic-macros'.
  5837. '-Wvarargs'
  5838. Warn upon questionable usage of the macros used to handle variable
  5839. arguments like 'va_start'. This is default. To inhibit the
  5840. warning messages, use '-Wno-varargs'.
  5841. '-Wvector-operation-performance'
  5842. Warn if vector operation is not implemented via SIMD capabilities
  5843. of the architecture. Mainly useful for the performance tuning.
  5844. Vector operation can be implemented 'piecewise', which means that
  5845. the scalar operation is performed on every vector element; 'in
  5846. parallel', which means that the vector operation is implemented
  5847. using scalars of wider type, which normally is more performance
  5848. efficient; and 'as a single scalar', which means that vector fits
  5849. into a scalar type.
  5850. '-Wno-virtual-move-assign'
  5851. Suppress warnings about inheriting from a virtual base with a
  5852. non-trivial C++11 move assignment operator. This is dangerous
  5853. because if the virtual base is reachable along more than one path,
  5854. it is moved multiple times, which can mean both objects end up in
  5855. the moved-from state. If the move assignment operator is written
  5856. to avoid moving from a moved-from object, this warning can be
  5857. disabled.
  5858. '-Wvla'
  5859. Warn if a variable-length array is used in the code. '-Wno-vla'
  5860. prevents the '-Wpedantic' warning of the variable-length array.
  5861. '-Wvla-larger-than=BYTE-SIZE'
  5862. If this option is used, the compiler will warn for declarations of
  5863. variable-length arrays whose size is either unbounded, or bounded
  5864. by an argument that allows the array size to exceed BYTE-SIZE
  5865. bytes. This is similar to how '-Walloca-larger-than='BYTE-SIZE
  5866. works, but with variable-length arrays.
  5867. Note that GCC may optimize small variable-length arrays of a known
  5868. value into plain arrays, so this warning may not get triggered for
  5869. such arrays.
  5870. '-Wvla-larger-than=''PTRDIFF_MAX' is enabled by default but is
  5871. typically only effective when '-ftree-vrp' is active (default for
  5872. '-O2' and above).
  5873. See also '-Walloca-larger-than=BYTE-SIZE'.
  5874. '-Wno-vla-larger-than'
  5875. Disable '-Wvla-larger-than=' warnings. The option is equivalent to
  5876. '-Wvla-larger-than=''SIZE_MAX' or larger.
  5877. '-Wvolatile-register-var'
  5878. Warn if a register variable is declared volatile. The volatile
  5879. modifier does not inhibit all optimizations that may eliminate
  5880. reads and/or writes to register variables. This warning is enabled
  5881. by '-Wall'.
  5882. '-Wdisabled-optimization'
  5883. Warn if a requested optimization pass is disabled. This warning
  5884. does not generally indicate that there is anything wrong with your
  5885. code; it merely indicates that GCC's optimizers are unable to
  5886. handle the code effectively. Often, the problem is that your code
  5887. is too big or too complex; GCC refuses to optimize programs when
  5888. the optimization itself is likely to take inordinate amounts of
  5889. time.
  5890. '-Wpointer-sign (C and Objective-C only)'
  5891. Warn for pointer argument passing or assignment with different
  5892. signedness. This option is only supported for C and Objective-C.
  5893. It is implied by '-Wall' and by '-Wpedantic', which can be disabled
  5894. with '-Wno-pointer-sign'.
  5895. '-Wstack-protector'
  5896. This option is only active when '-fstack-protector' is active. It
  5897. warns about functions that are not protected against stack
  5898. smashing.
  5899. '-Woverlength-strings'
  5900. Warn about string constants that are longer than the "minimum
  5901. maximum" length specified in the C standard. Modern compilers
  5902. generally allow string constants that are much longer than the
  5903. standard's minimum limit, but very portable programs should avoid
  5904. using longer strings.
  5905. The limit applies _after_ string constant concatenation, and does
  5906. not count the trailing NUL. In C90, the limit was 509 characters;
  5907. in C99, it was raised to 4095. C++98 does not specify a normative
  5908. minimum maximum, so we do not diagnose overlength strings in C++.
  5909. This option is implied by '-Wpedantic', and can be disabled with
  5910. '-Wno-overlength-strings'.
  5911. '-Wunsuffixed-float-constants (C and Objective-C only)'
  5912. Issue a warning for any floating constant that does not have a
  5913. suffix. When used together with '-Wsystem-headers' it warns about
  5914. such constants in system header files. This can be useful when
  5915. preparing code to use with the 'FLOAT_CONST_DECIMAL64' pragma from
  5916. the decimal floating-point extension to C99.
  5917. '-Wno-designated-init (C and Objective-C only)'
  5918. Suppress warnings when a positional initializer is used to
  5919. initialize a structure that has been marked with the
  5920. 'designated_init' attribute.
  5921. '-Whsa'
  5922. Issue a warning when HSAIL cannot be emitted for the compiled
  5923. function or OpenMP construct.
  5924. 
  5925. File: gcc.info, Node: Debugging Options, Next: Optimize Options, Prev: Warning Options, Up: Invoking GCC
  5926. 3.9 Options for Debugging Your Program
  5927. ======================================
  5928. To tell GCC to emit extra information for use by a debugger, in almost
  5929. all cases you need only to add '-g' to your other options.
  5930. GCC allows you to use '-g' with '-O'. The shortcuts taken by optimized
  5931. code may occasionally be surprising: some variables you declared may not
  5932. exist at all; flow of control may briefly move where you did not expect
  5933. it; some statements may not be executed because they compute constant
  5934. results or their values are already at hand; some statements may execute
  5935. in different places because they have been moved out of loops.
  5936. Nevertheless it is possible to debug optimized output. This makes it
  5937. reasonable to use the optimizer for programs that might have bugs.
  5938. If you are not using some other optimization option, consider using
  5939. '-Og' (*note Optimize Options::) with '-g'. With no '-O' option at all,
  5940. some compiler passes that collect information useful for debugging do
  5941. not run at all, so that '-Og' may result in a better debugging
  5942. experience.
  5943. '-g'
  5944. Produce debugging information in the operating system's native
  5945. format (stabs, COFF, XCOFF, or DWARF). GDB can work with this
  5946. debugging information.
  5947. On most systems that use stabs format, '-g' enables use of extra
  5948. debugging information that only GDB can use; this extra information
  5949. makes debugging work better in GDB but probably makes other
  5950. debuggers crash or refuse to read the program. If you want to
  5951. control for certain whether to generate the extra information, use
  5952. '-gstabs+', '-gstabs', '-gxcoff+', '-gxcoff', or '-gvms' (see
  5953. below).
  5954. '-ggdb'
  5955. Produce debugging information for use by GDB. This means to use
  5956. the most expressive format available (DWARF, stabs, or the native
  5957. format if neither of those are supported), including GDB extensions
  5958. if at all possible.
  5959. '-gdwarf'
  5960. '-gdwarf-VERSION'
  5961. Produce debugging information in DWARF format (if that is
  5962. supported). The value of VERSION may be either 2, 3, 4 or 5; the
  5963. default version for most targets is 4. DWARF Version 5 is only
  5964. experimental.
  5965. Note that with DWARF Version 2, some ports require and always use
  5966. some non-conflicting DWARF 3 extensions in the unwind tables.
  5967. Version 4 may require GDB 7.0 and '-fvar-tracking-assignments' for
  5968. maximum benefit.
  5969. GCC no longer supports DWARF Version 1, which is substantially
  5970. different than Version 2 and later. For historical reasons, some
  5971. other DWARF-related options such as '-fno-dwarf2-cfi-asm') retain a
  5972. reference to DWARF Version 2 in their names, but apply to all
  5973. currently-supported versions of DWARF.
  5974. '-gstabs'
  5975. Produce debugging information in stabs format (if that is
  5976. supported), without GDB extensions. This is the format used by DBX
  5977. on most BSD systems. On MIPS, Alpha and System V Release 4 systems
  5978. this option produces stabs debugging output that is not understood
  5979. by DBX. On System V Release 4 systems this option requires the GNU
  5980. assembler.
  5981. '-gstabs+'
  5982. Produce debugging information in stabs format (if that is
  5983. supported), using GNU extensions understood only by the GNU
  5984. debugger (GDB). The use of these extensions is likely to make
  5985. other debuggers crash or refuse to read the program.
  5986. '-gxcoff'
  5987. Produce debugging information in XCOFF format (if that is
  5988. supported). This is the format used by the DBX debugger on IBM
  5989. RS/6000 systems.
  5990. '-gxcoff+'
  5991. Produce debugging information in XCOFF format (if that is
  5992. supported), using GNU extensions understood only by the GNU
  5993. debugger (GDB). The use of these extensions is likely to make
  5994. other debuggers crash or refuse to read the program, and may cause
  5995. assemblers other than the GNU assembler (GAS) to fail with an
  5996. error.
  5997. '-gvms'
  5998. Produce debugging information in Alpha/VMS debug format (if that is
  5999. supported). This is the format used by DEBUG on Alpha/VMS systems.
  6000. '-gLEVEL'
  6001. '-ggdbLEVEL'
  6002. '-gstabsLEVEL'
  6003. '-gxcoffLEVEL'
  6004. '-gvmsLEVEL'
  6005. Request debugging information and also use LEVEL to specify how
  6006. much information. The default level is 2.
  6007. Level 0 produces no debug information at all. Thus, '-g0' negates
  6008. '-g'.
  6009. Level 1 produces minimal information, enough for making backtraces
  6010. in parts of the program that you don't plan to debug. This
  6011. includes descriptions of functions and external variables, and line
  6012. number tables, but no information about local variables.
  6013. Level 3 includes extra information, such as all the macro
  6014. definitions present in the program. Some debuggers support macro
  6015. expansion when you use '-g3'.
  6016. If you use multiple '-g' options, with or without level numbers,
  6017. the last such option is the one that is effective.
  6018. '-gdwarf' does not accept a concatenated debug level, to avoid
  6019. confusion with '-gdwarf-LEVEL'. Instead use an additional
  6020. '-gLEVEL' option to change the debug level for DWARF.
  6021. '-feliminate-unused-debug-symbols'
  6022. Produce debugging information in stabs format (if that is
  6023. supported), for only symbols that are actually used.
  6024. '-femit-class-debug-always'
  6025. Instead of emitting debugging information for a C++ class in only
  6026. one object file, emit it in all object files using the class. This
  6027. option should be used only with debuggers that are unable to handle
  6028. the way GCC normally emits debugging information for classes
  6029. because using this option increases the size of debugging
  6030. information by as much as a factor of two.
  6031. '-fno-merge-debug-strings'
  6032. Direct the linker to not merge together strings in the debugging
  6033. information that are identical in different object files. Merging
  6034. is not supported by all assemblers or linkers. Merging decreases
  6035. the size of the debug information in the output file at the cost of
  6036. increasing link processing time. Merging is enabled by default.
  6037. '-fdebug-prefix-map=OLD=NEW'
  6038. When compiling files residing in directory 'OLD', record debugging
  6039. information describing them as if the files resided in directory
  6040. 'NEW' instead. This can be used to replace a build-time path with
  6041. an install-time path in the debug info. It can also be used to
  6042. change an absolute path to a relative path by using '.' for NEW.
  6043. This can give more reproducible builds, which are location
  6044. independent, but may require an extra command to tell GDB where to
  6045. find the source files. See also '-ffile-prefix-map'.
  6046. '-fvar-tracking'
  6047. Run variable tracking pass. It computes where variables are stored
  6048. at each position in code. Better debugging information is then
  6049. generated (if the debugging information format supports this
  6050. information).
  6051. It is enabled by default when compiling with optimization ('-Os',
  6052. '-O', '-O2', ...), debugging information ('-g') and the debug info
  6053. format supports it.
  6054. '-fvar-tracking-assignments'
  6055. Annotate assignments to user variables early in the compilation and
  6056. attempt to carry the annotations over throughout the compilation
  6057. all the way to the end, in an attempt to improve debug information
  6058. while optimizing. Use of '-gdwarf-4' is recommended along with it.
  6059. It can be enabled even if var-tracking is disabled, in which case
  6060. annotations are created and maintained, but discarded at the end.
  6061. By default, this flag is enabled together with '-fvar-tracking',
  6062. except when selective scheduling is enabled.
  6063. '-gsplit-dwarf'
  6064. Separate as much DWARF debugging information as possible into a
  6065. separate output file with the extension '.dwo'. This option allows
  6066. the build system to avoid linking files with debug information. To
  6067. be useful, this option requires a debugger capable of reading
  6068. '.dwo' files.
  6069. '-gdescribe-dies'
  6070. Add description attributes to some DWARF DIEs that have no name
  6071. attribute, such as artificial variables, external references and
  6072. call site parameter DIEs.
  6073. '-gpubnames'
  6074. Generate DWARF '.debug_pubnames' and '.debug_pubtypes' sections.
  6075. '-ggnu-pubnames'
  6076. Generate '.debug_pubnames' and '.debug_pubtypes' sections in a
  6077. format suitable for conversion into a GDB index. This option is
  6078. only useful with a linker that can produce GDB index version 7.
  6079. '-fdebug-types-section'
  6080. When using DWARF Version 4 or higher, type DIEs can be put into
  6081. their own '.debug_types' section instead of making them part of the
  6082. '.debug_info' section. It is more efficient to put them in a
  6083. separate comdat section since the linker can then remove
  6084. duplicates. But not all DWARF consumers support '.debug_types'
  6085. sections yet and on some objects '.debug_types' produces larger
  6086. instead of smaller debugging information.
  6087. '-grecord-gcc-switches'
  6088. '-gno-record-gcc-switches'
  6089. This switch causes the command-line options used to invoke the
  6090. compiler that may affect code generation to be appended to the
  6091. DW_AT_producer attribute in DWARF debugging information. The
  6092. options are concatenated with spaces separating them from each
  6093. other and from the compiler version. It is enabled by default.
  6094. See also '-frecord-gcc-switches' for another way of storing
  6095. compiler options into the object file.
  6096. '-gstrict-dwarf'
  6097. Disallow using extensions of later DWARF standard version than
  6098. selected with '-gdwarf-VERSION'. On most targets using
  6099. non-conflicting DWARF extensions from later standard versions is
  6100. allowed.
  6101. '-gno-strict-dwarf'
  6102. Allow using extensions of later DWARF standard version than
  6103. selected with '-gdwarf-VERSION'.
  6104. '-gas-loc-support'
  6105. Inform the compiler that the assembler supports '.loc' directives.
  6106. It may then use them for the assembler to generate DWARF2+ line
  6107. number tables.
  6108. This is generally desirable, because assembler-generated
  6109. line-number tables are a lot more compact than those the compiler
  6110. can generate itself.
  6111. This option will be enabled by default if, at GCC configure time,
  6112. the assembler was found to support such directives.
  6113. '-gno-as-loc-support'
  6114. Force GCC to generate DWARF2+ line number tables internally, if
  6115. DWARF2+ line number tables are to be generated.
  6116. 'gas-locview-support'
  6117. Inform the compiler that the assembler supports 'view' assignment
  6118. and reset assertion checking in '.loc' directives.
  6119. This option will be enabled by default if, at GCC configure time,
  6120. the assembler was found to support them.
  6121. 'gno-as-locview-support'
  6122. Force GCC to assign view numbers internally, if
  6123. '-gvariable-location-views' are explicitly requested.
  6124. '-gcolumn-info'
  6125. '-gno-column-info'
  6126. Emit location column information into DWARF debugging information,
  6127. rather than just file and line. This option is enabled by default.
  6128. '-gstatement-frontiers'
  6129. '-gno-statement-frontiers'
  6130. This option causes GCC to create markers in the internal
  6131. representation at the beginning of statements, and to keep them
  6132. roughly in place throughout compilation, using them to guide the
  6133. output of 'is_stmt' markers in the line number table. This is
  6134. enabled by default when compiling with optimization ('-Os', '-O',
  6135. '-O2', ...), and outputting DWARF 2 debug information at the normal
  6136. level.
  6137. '-gvariable-location-views'
  6138. '-gvariable-location-views=incompat5'
  6139. '-gno-variable-location-views'
  6140. Augment variable location lists with progressive view numbers
  6141. implied from the line number table. This enables debug information
  6142. consumers to inspect state at certain points of the program, even
  6143. if no instructions associated with the corresponding source
  6144. locations are present at that point. If the assembler lacks
  6145. support for view numbers in line number tables, this will cause the
  6146. compiler to emit the line number table, which generally makes them
  6147. somewhat less compact. The augmented line number tables and
  6148. location lists are fully backward-compatible, so they can be
  6149. consumed by debug information consumers that are not aware of these
  6150. augmentations, but they won't derive any benefit from them either.
  6151. This is enabled by default when outputting DWARF 2 debug
  6152. information at the normal level, as long as there is assembler
  6153. support, '-fvar-tracking-assignments' is enabled and
  6154. '-gstrict-dwarf' is not. When assembler support is not available,
  6155. this may still be enabled, but it will force GCC to output internal
  6156. line number tables, and if '-ginternal-reset-location-views' is not
  6157. enabled, that will most certainly lead to silently mismatching
  6158. location views.
  6159. There is a proposed representation for view numbers that is not
  6160. backward compatible with the location list format introduced in
  6161. DWARF 5, that can be enabled with
  6162. '-gvariable-location-views=incompat5'. This option may be removed
  6163. in the future, is only provided as a reference implementation of
  6164. the proposed representation. Debug information consumers are not
  6165. expected to support this extended format, and they would be
  6166. rendered unable to decode location lists using it.
  6167. '-ginternal-reset-location-views'
  6168. '-gnointernal-reset-location-views'
  6169. Attempt to determine location views that can be omitted from
  6170. location view lists. This requires the compiler to have very
  6171. accurate insn length estimates, which isn't always the case, and it
  6172. may cause incorrect view lists to be generated silently when using
  6173. an assembler that does not support location view lists. The GNU
  6174. assembler will flag any such error as a 'view number mismatch'.
  6175. This is only enabled on ports that define a reliable estimation
  6176. function.
  6177. '-ginline-points'
  6178. '-gno-inline-points'
  6179. Generate extended debug information for inlined functions.
  6180. Location view tracking markers are inserted at inlined entry
  6181. points, so that address and view numbers can be computed and output
  6182. in debug information. This can be enabled independently of
  6183. location views, in which case the view numbers won't be output, but
  6184. it can only be enabled along with statement frontiers, and it is
  6185. only enabled by default if location views are enabled.
  6186. '-gz[=TYPE]'
  6187. Produce compressed debug sections in DWARF format, if that is
  6188. supported. If TYPE is not given, the default type depends on the
  6189. capabilities of the assembler and linker used. TYPE may be one of
  6190. 'none' (don't compress debug sections), 'zlib' (use zlib
  6191. compression in ELF gABI format), or 'zlib-gnu' (use zlib
  6192. compression in traditional GNU format). If the linker doesn't
  6193. support writing compressed debug sections, the option is rejected.
  6194. Otherwise, if the assembler does not support them, '-gz' is
  6195. silently ignored when producing object files.
  6196. '-femit-struct-debug-baseonly'
  6197. Emit debug information for struct-like types only when the base
  6198. name of the compilation source file matches the base name of file
  6199. in which the struct is defined.
  6200. This option substantially reduces the size of debugging
  6201. information, but at significant potential loss in type information
  6202. to the debugger. See '-femit-struct-debug-reduced' for a less
  6203. aggressive option. See '-femit-struct-debug-detailed' for more
  6204. detailed control.
  6205. This option works only with DWARF debug output.
  6206. '-femit-struct-debug-reduced'
  6207. Emit debug information for struct-like types only when the base
  6208. name of the compilation source file matches the base name of file
  6209. in which the type is defined, unless the struct is a template or
  6210. defined in a system header.
  6211. This option significantly reduces the size of debugging
  6212. information, with some potential loss in type information to the
  6213. debugger. See '-femit-struct-debug-baseonly' for a more aggressive
  6214. option. See '-femit-struct-debug-detailed' for more detailed
  6215. control.
  6216. This option works only with DWARF debug output.
  6217. '-femit-struct-debug-detailed[=SPEC-LIST]'
  6218. Specify the struct-like types for which the compiler generates
  6219. debug information. The intent is to reduce duplicate struct debug
  6220. information between different object files within the same program.
  6221. This option is a detailed version of '-femit-struct-debug-reduced'
  6222. and '-femit-struct-debug-baseonly', which serves for most needs.
  6223. A specification has the syntax
  6224. ['dir:'|'ind:']['ord:'|'gen:']('any'|'sys'|'base'|'none')
  6225. The optional first word limits the specification to structs that
  6226. are used directly ('dir:') or used indirectly ('ind:'). A struct
  6227. type is used directly when it is the type of a variable, member.
  6228. Indirect uses arise through pointers to structs. That is, when use
  6229. of an incomplete struct is valid, the use is indirect. An example
  6230. is 'struct one direct; struct two * indirect;'.
  6231. The optional second word limits the specification to ordinary
  6232. structs ('ord:') or generic structs ('gen:'). Generic structs are
  6233. a bit complicated to explain. For C++, these are non-explicit
  6234. specializations of template classes, or non-template classes within
  6235. the above. Other programming languages have generics, but
  6236. '-femit-struct-debug-detailed' does not yet implement them.
  6237. The third word specifies the source files for those structs for
  6238. which the compiler should emit debug information. The values
  6239. 'none' and 'any' have the normal meaning. The value 'base' means
  6240. that the base of name of the file in which the type declaration
  6241. appears must match the base of the name of the main compilation
  6242. file. In practice, this means that when compiling 'foo.c', debug
  6243. information is generated for types declared in that file and
  6244. 'foo.h', but not other header files. The value 'sys' means those
  6245. types satisfying 'base' or declared in system or compiler headers.
  6246. You may need to experiment to determine the best settings for your
  6247. application.
  6248. The default is '-femit-struct-debug-detailed=all'.
  6249. This option works only with DWARF debug output.
  6250. '-fno-dwarf2-cfi-asm'
  6251. Emit DWARF unwind info as compiler generated '.eh_frame' section
  6252. instead of using GAS '.cfi_*' directives.
  6253. '-fno-eliminate-unused-debug-types'
  6254. Normally, when producing DWARF output, GCC avoids producing debug
  6255. symbol output for types that are nowhere used in the source file
  6256. being compiled. Sometimes it is useful to have GCC emit debugging
  6257. information for all types declared in a compilation unit,
  6258. regardless of whether or not they are actually used in that
  6259. compilation unit, for example if, in the debugger, you want to cast
  6260. a value to a type that is not actually used in your program (but is
  6261. declared). More often, however, this results in a significant
  6262. amount of wasted space.
  6263. 
  6264. File: gcc.info, Node: Optimize Options, Next: Instrumentation Options, Prev: Debugging Options, Up: Invoking GCC
  6265. 3.10 Options That Control Optimization
  6266. ======================================
  6267. These options control various sorts of optimizations.
  6268. Without any optimization option, the compiler's goal is to reduce the
  6269. cost of compilation and to make debugging produce the expected results.
  6270. Statements are independent: if you stop the program with a breakpoint
  6271. between statements, you can then assign a new value to any variable or
  6272. change the program counter to any other statement in the function and
  6273. get exactly the results you expect from the source code.
  6274. Turning on optimization flags makes the compiler attempt to improve the
  6275. performance and/or code size at the expense of compilation time and
  6276. possibly the ability to debug the program.
  6277. The compiler performs optimization based on the knowledge it has of the
  6278. program. Compiling multiple files at once to a single output file mode
  6279. allows the compiler to use information gained from all of the files when
  6280. compiling each of them.
  6281. Not all optimizations are controlled directly by a flag. Only
  6282. optimizations that have a flag are listed in this section.
  6283. Most optimizations are completely disabled at '-O0' or if an '-O' level
  6284. is not set on the command line, even if individual optimization flags
  6285. are specified. Similarly, '-Og' suppresses many optimization passes.
  6286. Depending on the target and how GCC was configured, a slightly
  6287. different set of optimizations may be enabled at each '-O' level than
  6288. those listed here. You can invoke GCC with '-Q --help=optimizers' to
  6289. find out the exact set of optimizations that are enabled at each level.
  6290. *Note Overall Options::, for examples.
  6291. '-O'
  6292. '-O1'
  6293. Optimize. Optimizing compilation takes somewhat more time, and a
  6294. lot more memory for a large function.
  6295. With '-O', the compiler tries to reduce code size and execution
  6296. time, without performing any optimizations that take a great deal
  6297. of compilation time.
  6298. '-O' turns on the following optimization flags:
  6299. -fauto-inc-dec
  6300. -fbranch-count-reg
  6301. -fcombine-stack-adjustments
  6302. -fcompare-elim
  6303. -fcprop-registers
  6304. -fdce
  6305. -fdefer-pop
  6306. -fdelayed-branch
  6307. -fdse
  6308. -fforward-propagate
  6309. -fguess-branch-probability
  6310. -fif-conversion
  6311. -fif-conversion2
  6312. -finline-functions-called-once
  6313. -fipa-profile
  6314. -fipa-pure-const
  6315. -fipa-reference
  6316. -fipa-reference-addressable
  6317. -fmerge-constants
  6318. -fmove-loop-invariants
  6319. -fomit-frame-pointer
  6320. -freorder-blocks
  6321. -fshrink-wrap
  6322. -fshrink-wrap-separate
  6323. -fsplit-wide-types
  6324. -fssa-backprop
  6325. -fssa-phiopt
  6326. -ftree-bit-ccp
  6327. -ftree-ccp
  6328. -ftree-ch
  6329. -ftree-coalesce-vars
  6330. -ftree-copy-prop
  6331. -ftree-dce
  6332. -ftree-dominator-opts
  6333. -ftree-dse
  6334. -ftree-forwprop
  6335. -ftree-fre
  6336. -ftree-phiprop
  6337. -ftree-pta
  6338. -ftree-scev-cprop
  6339. -ftree-sink
  6340. -ftree-slsr
  6341. -ftree-sra
  6342. -ftree-ter
  6343. -funit-at-a-time
  6344. '-O2'
  6345. Optimize even more. GCC performs nearly all supported
  6346. optimizations that do not involve a space-speed tradeoff. As
  6347. compared to '-O', this option increases both compilation time and
  6348. the performance of the generated code.
  6349. '-O2' turns on all optimization flags specified by '-O'. It also
  6350. turns on the following optimization flags:
  6351. -falign-functions -falign-jumps
  6352. -falign-labels -falign-loops
  6353. -fcaller-saves
  6354. -fcode-hoisting
  6355. -fcrossjumping
  6356. -fcse-follow-jumps -fcse-skip-blocks
  6357. -fdelete-null-pointer-checks
  6358. -fdevirtualize -fdevirtualize-speculatively
  6359. -fexpensive-optimizations
  6360. -fgcse -fgcse-lm
  6361. -fhoist-adjacent-loads
  6362. -finline-small-functions
  6363. -findirect-inlining
  6364. -fipa-bit-cp -fipa-cp -fipa-icf
  6365. -fipa-ra -fipa-sra -fipa-vrp
  6366. -fisolate-erroneous-paths-dereference
  6367. -flra-remat
  6368. -foptimize-sibling-calls
  6369. -foptimize-strlen
  6370. -fpartial-inlining
  6371. -fpeephole2
  6372. -freorder-blocks-algorithm=stc
  6373. -freorder-blocks-and-partition -freorder-functions
  6374. -frerun-cse-after-loop
  6375. -fschedule-insns -fschedule-insns2
  6376. -fsched-interblock -fsched-spec
  6377. -fstore-merging
  6378. -fstrict-aliasing
  6379. -fthread-jumps
  6380. -ftree-builtin-call-dce
  6381. -ftree-pre
  6382. -ftree-switch-conversion -ftree-tail-merge
  6383. -ftree-vrp
  6384. Please note the warning under '-fgcse' about invoking '-O2' on
  6385. programs that use computed gotos.
  6386. '-O3'
  6387. Optimize yet more. '-O3' turns on all optimizations specified by
  6388. '-O2' and also turns on the following optimization flags:
  6389. -fgcse-after-reload
  6390. -finline-functions
  6391. -fipa-cp-clone
  6392. -floop-interchange
  6393. -floop-unroll-and-jam
  6394. -fpeel-loops
  6395. -fpredictive-commoning
  6396. -fsplit-paths
  6397. -ftree-loop-distribute-patterns
  6398. -ftree-loop-distribution
  6399. -ftree-loop-vectorize
  6400. -ftree-partial-pre
  6401. -ftree-slp-vectorize
  6402. -funswitch-loops
  6403. -fvect-cost-model
  6404. -fversion-loops-for-strides
  6405. '-O0'
  6406. Reduce compilation time and make debugging produce the expected
  6407. results. This is the default.
  6408. '-Os'
  6409. Optimize for size. '-Os' enables all '-O2' optimizations except
  6410. those that often increase code size:
  6411. -falign-functions -falign-jumps
  6412. -falign-labels -falign-loops
  6413. -fprefetch-loop-arrays -freorder-blocks-algorithm=stc
  6414. It also enables '-finline-functions', causes the compiler to tune
  6415. for code size rather than execution speed, and performs further
  6416. optimizations designed to reduce code size.
  6417. '-Ofast'
  6418. Disregard strict standards compliance. '-Ofast' enables all '-O3'
  6419. optimizations. It also enables optimizations that are not valid
  6420. for all standard-compliant programs. It turns on '-ffast-math' and
  6421. the Fortran-specific '-fstack-arrays', unless
  6422. '-fmax-stack-var-size' is specified, and '-fno-protect-parens'.
  6423. '-Og'
  6424. Optimize debugging experience. '-Og' should be the optimization
  6425. level of choice for the standard edit-compile-debug cycle, offering
  6426. a reasonable level of optimization while maintaining fast
  6427. compilation and a good debugging experience. It is a better choice
  6428. than '-O0' for producing debuggable code because some compiler
  6429. passes that collect debug information are disabled at '-O0'.
  6430. Like '-O0', '-Og' completely disables a number of optimization
  6431. passes so that individual options controlling them have no effect.
  6432. Otherwise '-Og' enables all '-O1' optimization flags except for
  6433. those that may interfere with debugging:
  6434. -fbranch-count-reg -fdelayed-branch
  6435. -fif-conversion -fif-conversion2
  6436. -finline-functions-called-once
  6437. -fmove-loop-invariants -fssa-phiopt
  6438. -ftree-bit-ccp -ftree-pta -ftree-sra
  6439. If you use multiple '-O' options, with or without level numbers, the
  6440. last such option is the one that is effective.
  6441. Options of the form '-fFLAG' specify machine-independent flags. Most
  6442. flags have both positive and negative forms; the negative form of
  6443. '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  6444. listed--the one you typically use. You can figure out the other form by
  6445. either removing 'no-' or adding it.
  6446. The following options control specific optimizations. They are either
  6447. activated by '-O' options or are related to ones that are. You can use
  6448. the following flags in the rare cases when "fine-tuning" of
  6449. optimizations to be performed is desired.
  6450. '-fno-defer-pop'
  6451. For machines that must pop arguments after a function call, always
  6452. pop the arguments as soon as each function returns. At levels
  6453. '-O1' and higher, '-fdefer-pop' is the default; this allows the
  6454. compiler to let arguments accumulate on the stack for several
  6455. function calls and pop them all at once.
  6456. '-fforward-propagate'
  6457. Perform a forward propagation pass on RTL. The pass tries to
  6458. combine two instructions and checks if the result can be
  6459. simplified. If loop unrolling is active, two passes are performed
  6460. and the second is scheduled after loop unrolling.
  6461. This option is enabled by default at optimization levels '-O',
  6462. '-O2', '-O3', '-Os'.
  6463. '-ffp-contract=STYLE'
  6464. '-ffp-contract=off' disables floating-point expression contraction.
  6465. '-ffp-contract=fast' enables floating-point expression contraction
  6466. such as forming of fused multiply-add operations if the target has
  6467. native support for them. '-ffp-contract=on' enables floating-point
  6468. expression contraction if allowed by the language standard. This
  6469. is currently not implemented and treated equal to
  6470. '-ffp-contract=off'.
  6471. The default is '-ffp-contract=fast'.
  6472. '-fomit-frame-pointer'
  6473. Omit the frame pointer in functions that don't need one. This
  6474. avoids the instructions to save, set up and restore the frame
  6475. pointer; on many targets it also makes an extra register available.
  6476. On some targets this flag has no effect because the standard
  6477. calling sequence always uses a frame pointer, so it cannot be
  6478. omitted.
  6479. Note that '-fno-omit-frame-pointer' doesn't guarantee the frame
  6480. pointer is used in all functions. Several targets always omit the
  6481. frame pointer in leaf functions.
  6482. Enabled by default at '-O' and higher.
  6483. '-foptimize-sibling-calls'
  6484. Optimize sibling and tail recursive calls.
  6485. Enabled at levels '-O2', '-O3', '-Os'.
  6486. '-foptimize-strlen'
  6487. Optimize various standard C string functions (e.g. 'strlen',
  6488. 'strchr' or 'strcpy') and their '_FORTIFY_SOURCE' counterparts into
  6489. faster alternatives.
  6490. Enabled at levels '-O2', '-O3'.
  6491. '-fno-inline'
  6492. Do not expand any functions inline apart from those marked with the
  6493. 'always_inline' attribute. This is the default when not
  6494. optimizing.
  6495. Single functions can be exempted from inlining by marking them with
  6496. the 'noinline' attribute.
  6497. '-finline-small-functions'
  6498. Integrate functions into their callers when their body is smaller
  6499. than expected function call code (so overall size of program gets
  6500. smaller). The compiler heuristically decides which functions are
  6501. simple enough to be worth integrating in this way. This inlining
  6502. applies to all functions, even those not declared inline.
  6503. Enabled at levels '-O2', '-O3', '-Os'.
  6504. '-findirect-inlining'
  6505. Inline also indirect calls that are discovered to be known at
  6506. compile time thanks to previous inlining. This option has any
  6507. effect only when inlining itself is turned on by the
  6508. '-finline-functions' or '-finline-small-functions' options.
  6509. Enabled at levels '-O2', '-O3', '-Os'.
  6510. '-finline-functions'
  6511. Consider all functions for inlining, even if they are not declared
  6512. inline. The compiler heuristically decides which functions are
  6513. worth integrating in this way.
  6514. If all calls to a given function are integrated, and the function
  6515. is declared 'static', then the function is normally not output as
  6516. assembler code in its own right.
  6517. Enabled at levels '-O3', '-Os'. Also enabled by '-fprofile-use'
  6518. and '-fauto-profile'.
  6519. '-finline-functions-called-once'
  6520. Consider all 'static' functions called once for inlining into their
  6521. caller even if they are not marked 'inline'. If a call to a given
  6522. function is integrated, then the function is not output as
  6523. assembler code in its own right.
  6524. Enabled at levels '-O1', '-O2', '-O3' and '-Os', but not '-Og'.
  6525. '-fearly-inlining'
  6526. Inline functions marked by 'always_inline' and functions whose body
  6527. seems smaller than the function call overhead early before doing
  6528. '-fprofile-generate' instrumentation and real inlining pass. Doing
  6529. so makes profiling significantly cheaper and usually inlining
  6530. faster on programs having large chains of nested wrapper functions.
  6531. Enabled by default.
  6532. '-fipa-sra'
  6533. Perform interprocedural scalar replacement of aggregates, removal
  6534. of unused parameters and replacement of parameters passed by
  6535. reference by parameters passed by value.
  6536. Enabled at levels '-O2', '-O3' and '-Os'.
  6537. '-finline-limit=N'
  6538. By default, GCC limits the size of functions that can be inlined.
  6539. This flag allows coarse control of this limit. N is the size of
  6540. functions that can be inlined in number of pseudo instructions.
  6541. Inlining is actually controlled by a number of parameters, which
  6542. may be specified individually by using '--param NAME=VALUE'. The
  6543. '-finline-limit=N' option sets some of these parameters as follows:
  6544. 'max-inline-insns-single'
  6545. is set to N/2.
  6546. 'max-inline-insns-auto'
  6547. is set to N/2.
  6548. See below for a documentation of the individual parameters
  6549. controlling inlining and for the defaults of these parameters.
  6550. _Note:_ there may be no value to '-finline-limit' that results in
  6551. default behavior.
  6552. _Note:_ pseudo instruction represents, in this particular context,
  6553. an abstract measurement of function's size. In no way does it
  6554. represent a count of assembly instructions and as such its exact
  6555. meaning might change from one release to an another.
  6556. '-fno-keep-inline-dllexport'
  6557. This is a more fine-grained version of '-fkeep-inline-functions',
  6558. which applies only to functions that are declared using the
  6559. 'dllexport' attribute or declspec. *Note Declaring Attributes of
  6560. Functions: Function Attributes.
  6561. '-fkeep-inline-functions'
  6562. In C, emit 'static' functions that are declared 'inline' into the
  6563. object file, even if the function has been inlined into all of its
  6564. callers. This switch does not affect functions using the 'extern
  6565. inline' extension in GNU C90. In C++, emit any and all inline
  6566. functions into the object file.
  6567. '-fkeep-static-functions'
  6568. Emit 'static' functions into the object file, even if the function
  6569. is never used.
  6570. '-fkeep-static-consts'
  6571. Emit variables declared 'static const' when optimization isn't
  6572. turned on, even if the variables aren't referenced.
  6573. GCC enables this option by default. If you want to force the
  6574. compiler to check if a variable is referenced, regardless of
  6575. whether or not optimization is turned on, use the
  6576. '-fno-keep-static-consts' option.
  6577. '-fmerge-constants'
  6578. Attempt to merge identical constants (string constants and
  6579. floating-point constants) across compilation units.
  6580. This option is the default for optimized compilation if the
  6581. assembler and linker support it. Use '-fno-merge-constants' to
  6582. inhibit this behavior.
  6583. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6584. '-fmerge-all-constants'
  6585. Attempt to merge identical constants and identical variables.
  6586. This option implies '-fmerge-constants'. In addition to
  6587. '-fmerge-constants' this considers e.g. even constant initialized
  6588. arrays or initialized constant variables with integral or
  6589. floating-point types. Languages like C or C++ require each
  6590. variable, including multiple instances of the same variable in
  6591. recursive calls, to have distinct locations, so using this option
  6592. results in non-conforming behavior.
  6593. '-fmodulo-sched'
  6594. Perform swing modulo scheduling immediately before the first
  6595. scheduling pass. This pass looks at innermost loops and reorders
  6596. their instructions by overlapping different iterations.
  6597. '-fmodulo-sched-allow-regmoves'
  6598. Perform more aggressive SMS-based modulo scheduling with register
  6599. moves allowed. By setting this flag certain anti-dependences edges
  6600. are deleted, which triggers the generation of reg-moves based on
  6601. the life-range analysis. This option is effective only with
  6602. '-fmodulo-sched' enabled.
  6603. '-fno-branch-count-reg'
  6604. Disable the optimization pass that scans for opportunities to use
  6605. "decrement and branch" instructions on a count register instead of
  6606. instruction sequences that decrement a register, compare it against
  6607. zero, and then branch based upon the result. This option is only
  6608. meaningful on architectures that support such instructions, which
  6609. include x86, PowerPC, IA-64 and S/390. Note that the
  6610. '-fno-branch-count-reg' option doesn't remove the decrement and
  6611. branch instructions from the generated instruction stream
  6612. introduced by other optimization passes.
  6613. The default is '-fbranch-count-reg' at '-O1' and higher, except for
  6614. '-Og'.
  6615. '-fno-function-cse'
  6616. Do not put function addresses in registers; make each instruction
  6617. that calls a constant function contain the function's address
  6618. explicitly.
  6619. This option results in less efficient code, but some strange hacks
  6620. that alter the assembler output may be confused by the
  6621. optimizations performed when this option is not used.
  6622. The default is '-ffunction-cse'
  6623. '-fno-zero-initialized-in-bss'
  6624. If the target supports a BSS section, GCC by default puts variables
  6625. that are initialized to zero into BSS. This can save space in the
  6626. resulting code.
  6627. This option turns off this behavior because some programs
  6628. explicitly rely on variables going to the data section--e.g., so
  6629. that the resulting executable can find the beginning of that
  6630. section and/or make assumptions based on that.
  6631. The default is '-fzero-initialized-in-bss'.
  6632. '-fthread-jumps'
  6633. Perform optimizations that check to see if a jump branches to a
  6634. location where another comparison subsumed by the first is found.
  6635. If so, the first branch is redirected to either the destination of
  6636. the second branch or a point immediately following it, depending on
  6637. whether the condition is known to be true or false.
  6638. Enabled at levels '-O2', '-O3', '-Os'.
  6639. '-fsplit-wide-types'
  6640. When using a type that occupies multiple registers, such as 'long
  6641. long' on a 32-bit system, split the registers apart and allocate
  6642. them independently. This normally generates better code for those
  6643. types, but may make debugging more difficult.
  6644. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6645. '-fcse-follow-jumps'
  6646. In common subexpression elimination (CSE), scan through jump
  6647. instructions when the target of the jump is not reached by any
  6648. other path. For example, when CSE encounters an 'if' statement
  6649. with an 'else' clause, CSE follows the jump when the condition
  6650. tested is false.
  6651. Enabled at levels '-O2', '-O3', '-Os'.
  6652. '-fcse-skip-blocks'
  6653. This is similar to '-fcse-follow-jumps', but causes CSE to follow
  6654. jumps that conditionally skip over blocks. When CSE encounters a
  6655. simple 'if' statement with no else clause, '-fcse-skip-blocks'
  6656. causes CSE to follow the jump around the body of the 'if'.
  6657. Enabled at levels '-O2', '-O3', '-Os'.
  6658. '-frerun-cse-after-loop'
  6659. Re-run common subexpression elimination after loop optimizations
  6660. are performed.
  6661. Enabled at levels '-O2', '-O3', '-Os'.
  6662. '-fgcse'
  6663. Perform a global common subexpression elimination pass. This pass
  6664. also performs global constant and copy propagation.
  6665. _Note:_ When compiling a program using computed gotos, a GCC
  6666. extension, you may get better run-time performance if you disable
  6667. the global common subexpression elimination pass by adding
  6668. '-fno-gcse' to the command line.
  6669. Enabled at levels '-O2', '-O3', '-Os'.
  6670. '-fgcse-lm'
  6671. When '-fgcse-lm' is enabled, global common subexpression
  6672. elimination attempts to move loads that are only killed by stores
  6673. into themselves. This allows a loop containing a load/store
  6674. sequence to be changed to a load outside the loop, and a copy/store
  6675. within the loop.
  6676. Enabled by default when '-fgcse' is enabled.
  6677. '-fgcse-sm'
  6678. When '-fgcse-sm' is enabled, a store motion pass is run after
  6679. global common subexpression elimination. This pass attempts to
  6680. move stores out of loops. When used in conjunction with
  6681. '-fgcse-lm', loops containing a load/store sequence can be changed
  6682. to a load before the loop and a store after the loop.
  6683. Not enabled at any optimization level.
  6684. '-fgcse-las'
  6685. When '-fgcse-las' is enabled, the global common subexpression
  6686. elimination pass eliminates redundant loads that come after stores
  6687. to the same memory location (both partial and full redundancies).
  6688. Not enabled at any optimization level.
  6689. '-fgcse-after-reload'
  6690. When '-fgcse-after-reload' is enabled, a redundant load elimination
  6691. pass is performed after reload. The purpose of this pass is to
  6692. clean up redundant spilling.
  6693. Enabled by '-fprofile-use' and '-fauto-profile'.
  6694. '-faggressive-loop-optimizations'
  6695. This option tells the loop optimizer to use language constraints to
  6696. derive bounds for the number of iterations of a loop. This assumes
  6697. that loop code does not invoke undefined behavior by for example
  6698. causing signed integer overflows or out-of-bound array accesses.
  6699. The bounds for the number of iterations of a loop are used to guide
  6700. loop unrolling and peeling and loop exit test optimizations. This
  6701. option is enabled by default.
  6702. '-funconstrained-commons'
  6703. This option tells the compiler that variables declared in common
  6704. blocks (e.g. Fortran) may later be overridden with longer trailing
  6705. arrays. This prevents certain optimizations that depend on knowing
  6706. the array bounds.
  6707. '-fcrossjumping'
  6708. Perform cross-jumping transformation. This transformation unifies
  6709. equivalent code and saves code size. The resulting code may or may
  6710. not perform better than without cross-jumping.
  6711. Enabled at levels '-O2', '-O3', '-Os'.
  6712. '-fauto-inc-dec'
  6713. Combine increments or decrements of addresses with memory accesses.
  6714. This pass is always skipped on architectures that do not have
  6715. instructions to support this. Enabled by default at '-O' and
  6716. higher on architectures that support this.
  6717. '-fdce'
  6718. Perform dead code elimination (DCE) on RTL. Enabled by default at
  6719. '-O' and higher.
  6720. '-fdse'
  6721. Perform dead store elimination (DSE) on RTL. Enabled by default at
  6722. '-O' and higher.
  6723. '-fif-conversion'
  6724. Attempt to transform conditional jumps into branch-less
  6725. equivalents. This includes use of conditional moves, min, max, set
  6726. flags and abs instructions, and some tricks doable by standard
  6727. arithmetics. The use of conditional execution on chips where it is
  6728. available is controlled by '-fif-conversion2'.
  6729. Enabled at levels '-O', '-O2', '-O3', '-Os', but not with '-Og'.
  6730. '-fif-conversion2'
  6731. Use conditional execution (where available) to transform
  6732. conditional jumps into branch-less equivalents.
  6733. Enabled at levels '-O', '-O2', '-O3', '-Os', but not with '-Og'.
  6734. '-fdeclone-ctor-dtor'
  6735. The C++ ABI requires multiple entry points for constructors and
  6736. destructors: one for a base subobject, one for a complete object,
  6737. and one for a virtual destructor that calls operator delete
  6738. afterwards. For a hierarchy with virtual bases, the base and
  6739. complete variants are clones, which means two copies of the
  6740. function. With this option, the base and complete variants are
  6741. changed to be thunks that call a common implementation.
  6742. Enabled by '-Os'.
  6743. '-fdelete-null-pointer-checks'
  6744. Assume that programs cannot safely dereference null pointers, and
  6745. that no code or data element resides at address zero. This option
  6746. enables simple constant folding optimizations at all optimization
  6747. levels. In addition, other optimization passes in GCC use this
  6748. flag to control global dataflow analyses that eliminate useless
  6749. checks for null pointers; these assume that a memory access to
  6750. address zero always results in a trap, so that if a pointer is
  6751. checked after it has already been dereferenced, it cannot be null.
  6752. Note however that in some environments this assumption is not true.
  6753. Use '-fno-delete-null-pointer-checks' to disable this optimization
  6754. for programs that depend on that behavior.
  6755. This option is enabled by default on most targets. On Nios II ELF,
  6756. it defaults to off. On AVR, CR16, and MSP430, this option is
  6757. completely disabled.
  6758. Passes that use the dataflow information are enabled independently
  6759. at different optimization levels.
  6760. '-fdevirtualize'
  6761. Attempt to convert calls to virtual functions to direct calls.
  6762. This is done both within a procedure and interprocedurally as part
  6763. of indirect inlining ('-findirect-inlining') and interprocedural
  6764. constant propagation ('-fipa-cp'). Enabled at levels '-O2', '-O3',
  6765. '-Os'.
  6766. '-fdevirtualize-speculatively'
  6767. Attempt to convert calls to virtual functions to speculative direct
  6768. calls. Based on the analysis of the type inheritance graph,
  6769. determine for a given call the set of likely targets. If the set
  6770. is small, preferably of size 1, change the call into a conditional
  6771. deciding between direct and indirect calls. The speculative calls
  6772. enable more optimizations, such as inlining. When they seem
  6773. useless after further optimization, they are converted back into
  6774. original form.
  6775. '-fdevirtualize-at-ltrans'
  6776. Stream extra information needed for aggressive devirtualization
  6777. when running the link-time optimizer in local transformation mode.
  6778. This option enables more devirtualization but significantly
  6779. increases the size of streamed data. For this reason it is
  6780. disabled by default.
  6781. '-fexpensive-optimizations'
  6782. Perform a number of minor optimizations that are relatively
  6783. expensive.
  6784. Enabled at levels '-O2', '-O3', '-Os'.
  6785. '-free'
  6786. Attempt to remove redundant extension instructions. This is
  6787. especially helpful for the x86-64 architecture, which implicitly
  6788. zero-extends in 64-bit registers after writing to their lower
  6789. 32-bit half.
  6790. Enabled for Alpha, AArch64 and x86 at levels '-O2', '-O3', '-Os'.
  6791. '-fno-lifetime-dse'
  6792. In C++ the value of an object is only affected by changes within
  6793. its lifetime: when the constructor begins, the object has an
  6794. indeterminate value, and any changes during the lifetime of the
  6795. object are dead when the object is destroyed. Normally dead store
  6796. elimination will take advantage of this; if your code relies on the
  6797. value of the object storage persisting beyond the lifetime of the
  6798. object, you can use this flag to disable this optimization. To
  6799. preserve stores before the constructor starts (e.g. because your
  6800. operator new clears the object storage) but still treat the object
  6801. as dead after the destructor you, can use '-flifetime-dse=1'. The
  6802. default behavior can be explicitly selected with
  6803. '-flifetime-dse=2'. '-flifetime-dse=0' is equivalent to
  6804. '-fno-lifetime-dse'.
  6805. '-flive-range-shrinkage'
  6806. Attempt to decrease register pressure through register live range
  6807. shrinkage. This is helpful for fast processors with small or
  6808. moderate size register sets.
  6809. '-fira-algorithm=ALGORITHM'
  6810. Use the specified coloring algorithm for the integrated register
  6811. allocator. The ALGORITHM argument can be 'priority', which
  6812. specifies Chow's priority coloring, or 'CB', which specifies
  6813. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not
  6814. implemented for all architectures, but for those targets that do
  6815. support it, it is the default because it generates better code.
  6816. '-fira-region=REGION'
  6817. Use specified regions for the integrated register allocator. The
  6818. REGION argument should be one of the following:
  6819. 'all'
  6820. Use all loops as register allocation regions. This can give
  6821. the best results for machines with a small and/or irregular
  6822. register set.
  6823. 'mixed'
  6824. Use all loops except for loops with small register pressure as
  6825. the regions. This value usually gives the best results in
  6826. most cases and for most architectures, and is enabled by
  6827. default when compiling with optimization for speed ('-O',
  6828. '-O2', ...).
  6829. 'one'
  6830. Use all functions as a single region. This typically results
  6831. in the smallest code size, and is enabled by default for '-Os'
  6832. or '-O0'.
  6833. '-fira-hoist-pressure'
  6834. Use IRA to evaluate register pressure in the code hoisting pass for
  6835. decisions to hoist expressions. This option usually results in
  6836. smaller code, but it can slow the compiler down.
  6837. This option is enabled at level '-Os' for all targets.
  6838. '-fira-loop-pressure'
  6839. Use IRA to evaluate register pressure in loops for decisions to
  6840. move loop invariants. This option usually results in generation of
  6841. faster and smaller code on machines with large register files (>=
  6842. 32 registers), but it can slow the compiler down.
  6843. This option is enabled at level '-O3' for some targets.
  6844. '-fno-ira-share-save-slots'
  6845. Disable sharing of stack slots used for saving call-used hard
  6846. registers living through a call. Each hard register gets a
  6847. separate stack slot, and as a result function stack frames are
  6848. larger.
  6849. '-fno-ira-share-spill-slots'
  6850. Disable sharing of stack slots allocated for pseudo-registers.
  6851. Each pseudo-register that does not get a hard register gets a
  6852. separate stack slot, and as a result function stack frames are
  6853. larger.
  6854. '-flra-remat'
  6855. Enable CFG-sensitive rematerialization in LRA. Instead of loading
  6856. values of spilled pseudos, LRA tries to rematerialize (recalculate)
  6857. values if it is profitable.
  6858. Enabled at levels '-O2', '-O3', '-Os'.
  6859. '-fdelayed-branch'
  6860. If supported for the target machine, attempt to reorder
  6861. instructions to exploit instruction slots available after delayed
  6862. branch instructions.
  6863. Enabled at levels '-O', '-O2', '-O3', '-Os', but not at '-Og'.
  6864. '-fschedule-insns'
  6865. If supported for the target machine, attempt to reorder
  6866. instructions to eliminate execution stalls due to required data
  6867. being unavailable. This helps machines that have slow floating
  6868. point or memory load instructions by allowing other instructions to
  6869. be issued until the result of the load or floating-point
  6870. instruction is required.
  6871. Enabled at levels '-O2', '-O3'.
  6872. '-fschedule-insns2'
  6873. Similar to '-fschedule-insns', but requests an additional pass of
  6874. instruction scheduling after register allocation has been done.
  6875. This is especially useful on machines with a relatively small
  6876. number of registers and where memory load instructions take more
  6877. than one cycle.
  6878. Enabled at levels '-O2', '-O3', '-Os'.
  6879. '-fno-sched-interblock'
  6880. Disable instruction scheduling across basic blocks, which is
  6881. normally enabled when scheduling before register allocation, i.e.
  6882. with '-fschedule-insns' or at '-O2' or higher.
  6883. '-fno-sched-spec'
  6884. Disable speculative motion of non-load instructions, which is
  6885. normally enabled when scheduling before register allocation, i.e.
  6886. with '-fschedule-insns' or at '-O2' or higher.
  6887. '-fsched-pressure'
  6888. Enable register pressure sensitive insn scheduling before register
  6889. allocation. This only makes sense when scheduling before register
  6890. allocation is enabled, i.e. with '-fschedule-insns' or at '-O2' or
  6891. higher. Usage of this option can improve the generated code and
  6892. decrease its size by preventing register pressure increase above
  6893. the number of available hard registers and subsequent spills in
  6894. register allocation.
  6895. '-fsched-spec-load'
  6896. Allow speculative motion of some load instructions. This only
  6897. makes sense when scheduling before register allocation, i.e. with
  6898. '-fschedule-insns' or at '-O2' or higher.
  6899. '-fsched-spec-load-dangerous'
  6900. Allow speculative motion of more load instructions. This only
  6901. makes sense when scheduling before register allocation, i.e. with
  6902. '-fschedule-insns' or at '-O2' or higher.
  6903. '-fsched-stalled-insns'
  6904. '-fsched-stalled-insns=N'
  6905. Define how many insns (if any) can be moved prematurely from the
  6906. queue of stalled insns into the ready list during the second
  6907. scheduling pass. '-fno-sched-stalled-insns' means that no insns
  6908. are moved prematurely, '-fsched-stalled-insns=0' means there is no
  6909. limit on how many queued insns can be moved prematurely.
  6910. '-fsched-stalled-insns' without a value is equivalent to
  6911. '-fsched-stalled-insns=1'.
  6912. '-fsched-stalled-insns-dep'
  6913. '-fsched-stalled-insns-dep=N'
  6914. Define how many insn groups (cycles) are examined for a dependency
  6915. on a stalled insn that is a candidate for premature removal from
  6916. the queue of stalled insns. This has an effect only during the
  6917. second scheduling pass, and only if '-fsched-stalled-insns' is
  6918. used. '-fno-sched-stalled-insns-dep' is equivalent to
  6919. '-fsched-stalled-insns-dep=0'. '-fsched-stalled-insns-dep' without
  6920. a value is equivalent to '-fsched-stalled-insns-dep=1'.
  6921. '-fsched2-use-superblocks'
  6922. When scheduling after register allocation, use superblock
  6923. scheduling. This allows motion across basic block boundaries,
  6924. resulting in faster schedules. This option is experimental, as not
  6925. all machine descriptions used by GCC model the CPU closely enough
  6926. to avoid unreliable results from the algorithm.
  6927. This only makes sense when scheduling after register allocation,
  6928. i.e. with '-fschedule-insns2' or at '-O2' or higher.
  6929. '-fsched-group-heuristic'
  6930. Enable the group heuristic in the scheduler. This heuristic favors
  6931. the instruction that belongs to a schedule group. This is enabled
  6932. by default when scheduling is enabled, i.e. with '-fschedule-insns'
  6933. or '-fschedule-insns2' or at '-O2' or higher.
  6934. '-fsched-critical-path-heuristic'
  6935. Enable the critical-path heuristic in the scheduler. This
  6936. heuristic favors instructions on the critical path. This is
  6937. enabled by default when scheduling is enabled, i.e. with
  6938. '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or higher.
  6939. '-fsched-spec-insn-heuristic'
  6940. Enable the speculative instruction heuristic in the scheduler.
  6941. This heuristic favors speculative instructions with greater
  6942. dependency weakness. This is enabled by default when scheduling is
  6943. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  6944. '-O2' or higher.
  6945. '-fsched-rank-heuristic'
  6946. Enable the rank heuristic in the scheduler. This heuristic favors
  6947. the instruction belonging to a basic block with greater size or
  6948. frequency. This is enabled by default when scheduling is enabled,
  6949. i.e. with '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or
  6950. higher.
  6951. '-fsched-last-insn-heuristic'
  6952. Enable the last-instruction heuristic in the scheduler. This
  6953. heuristic favors the instruction that is less dependent on the last
  6954. instruction scheduled. This is enabled by default when scheduling
  6955. is enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or
  6956. at '-O2' or higher.
  6957. '-fsched-dep-count-heuristic'
  6958. Enable the dependent-count heuristic in the scheduler. This
  6959. heuristic favors the instruction that has more instructions
  6960. depending on it. This is enabled by default when scheduling is
  6961. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  6962. '-O2' or higher.
  6963. '-freschedule-modulo-scheduled-loops'
  6964. Modulo scheduling is performed before traditional scheduling. If a
  6965. loop is modulo scheduled, later scheduling passes may change its
  6966. schedule. Use this option to control that behavior.
  6967. '-fselective-scheduling'
  6968. Schedule instructions using selective scheduling algorithm.
  6969. Selective scheduling runs instead of the first scheduler pass.
  6970. '-fselective-scheduling2'
  6971. Schedule instructions using selective scheduling algorithm.
  6972. Selective scheduling runs instead of the second scheduler pass.
  6973. '-fsel-sched-pipelining'
  6974. Enable software pipelining of innermost loops during selective
  6975. scheduling. This option has no effect unless one of
  6976. '-fselective-scheduling' or '-fselective-scheduling2' is turned on.
  6977. '-fsel-sched-pipelining-outer-loops'
  6978. When pipelining loops during selective scheduling, also pipeline
  6979. outer loops. This option has no effect unless
  6980. '-fsel-sched-pipelining' is turned on.
  6981. '-fsemantic-interposition'
  6982. Some object formats, like ELF, allow interposing of symbols by the
  6983. dynamic linker. This means that for symbols exported from the DSO,
  6984. the compiler cannot perform interprocedural propagation, inlining
  6985. and other optimizations in anticipation that the function or
  6986. variable in question may change. While this feature is useful, for
  6987. example, to rewrite memory allocation functions by a debugging
  6988. implementation, it is expensive in the terms of code quality. With
  6989. '-fno-semantic-interposition' the compiler assumes that if
  6990. interposition happens for functions the overwriting function will
  6991. have precisely the same semantics (and side effects). Similarly if
  6992. interposition happens for variables, the constructor of the
  6993. variable will be the same. The flag has no effect for functions
  6994. explicitly declared inline (where it is never allowed for
  6995. interposition to change semantics) and for symbols explicitly
  6996. declared weak.
  6997. '-fshrink-wrap'
  6998. Emit function prologues only before parts of the function that need
  6999. it, rather than at the top of the function. This flag is enabled
  7000. by default at '-O' and higher.
  7001. '-fshrink-wrap-separate'
  7002. Shrink-wrap separate parts of the prologue and epilogue separately,
  7003. so that those parts are only executed when needed. This option is
  7004. on by default, but has no effect unless '-fshrink-wrap' is also
  7005. turned on and the target supports this.
  7006. '-fcaller-saves'
  7007. Enable allocation of values to registers that are clobbered by
  7008. function calls, by emitting extra instructions to save and restore
  7009. the registers around such calls. Such allocation is done only when
  7010. it seems to result in better code.
  7011. This option is always enabled by default on certain machines,
  7012. usually those which have no call-preserved registers to use
  7013. instead.
  7014. Enabled at levels '-O2', '-O3', '-Os'.
  7015. '-fcombine-stack-adjustments'
  7016. Tracks stack adjustments (pushes and pops) and stack memory
  7017. references and then tries to find ways to combine them.
  7018. Enabled by default at '-O1' and higher.
  7019. '-fipa-ra'
  7020. Use caller save registers for allocation if those registers are not
  7021. used by any called function. In that case it is not necessary to
  7022. save and restore them around calls. This is only possible if
  7023. called functions are part of same compilation unit as current
  7024. function and they are compiled before it.
  7025. Enabled at levels '-O2', '-O3', '-Os', however the option is
  7026. disabled if generated code will be instrumented for profiling
  7027. ('-p', or '-pg') or if callee's register usage cannot be known
  7028. exactly (this happens on targets that do not expose prologues and
  7029. epilogues in RTL).
  7030. '-fconserve-stack'
  7031. Attempt to minimize stack usage. The compiler attempts to use less
  7032. stack space, even if that makes the program slower. This option
  7033. implies setting the 'large-stack-frame' parameter to 100 and the
  7034. 'large-stack-frame-growth' parameter to 400.
  7035. '-ftree-reassoc'
  7036. Perform reassociation on trees. This flag is enabled by default at
  7037. '-O' and higher.
  7038. '-fcode-hoisting'
  7039. Perform code hoisting. Code hoisting tries to move the evaluation
  7040. of expressions executed on all paths to the function exit as early
  7041. as possible. This is especially useful as a code size
  7042. optimization, but it often helps for code speed as well. This flag
  7043. is enabled by default at '-O2' and higher.
  7044. '-ftree-pre'
  7045. Perform partial redundancy elimination (PRE) on trees. This flag
  7046. is enabled by default at '-O2' and '-O3'.
  7047. '-ftree-partial-pre'
  7048. Make partial redundancy elimination (PRE) more aggressive. This
  7049. flag is enabled by default at '-O3'.
  7050. '-ftree-forwprop'
  7051. Perform forward propagation on trees. This flag is enabled by
  7052. default at '-O' and higher.
  7053. '-ftree-fre'
  7054. Perform full redundancy elimination (FRE) on trees. The difference
  7055. between FRE and PRE is that FRE only considers expressions that are
  7056. computed on all paths leading to the redundant computation. This
  7057. analysis is faster than PRE, though it exposes fewer redundancies.
  7058. This flag is enabled by default at '-O' and higher.
  7059. '-ftree-phiprop'
  7060. Perform hoisting of loads from conditional pointers on trees. This
  7061. pass is enabled by default at '-O' and higher.
  7062. '-fhoist-adjacent-loads'
  7063. Speculatively hoist loads from both branches of an if-then-else if
  7064. the loads are from adjacent locations in the same structure and the
  7065. target architecture has a conditional move instruction. This flag
  7066. is enabled by default at '-O2' and higher.
  7067. '-ftree-copy-prop'
  7068. Perform copy propagation on trees. This pass eliminates
  7069. unnecessary copy operations. This flag is enabled by default at
  7070. '-O' and higher.
  7071. '-fipa-pure-const'
  7072. Discover which functions are pure or constant. Enabled by default
  7073. at '-O' and higher.
  7074. '-fipa-reference'
  7075. Discover which static variables do not escape the compilation unit.
  7076. Enabled by default at '-O' and higher.
  7077. '-fipa-reference-addressable'
  7078. Discover read-only, write-only and non-addressable static
  7079. variables. Enabled by default at '-O' and higher.
  7080. '-fipa-stack-alignment'
  7081. Reduce stack alignment on call sites if possible. Enabled by
  7082. default.
  7083. '-fipa-pta'
  7084. Perform interprocedural pointer analysis and interprocedural
  7085. modification and reference analysis. This option can cause
  7086. excessive memory and compile-time usage on large compilation units.
  7087. It is not enabled by default at any optimization level.
  7088. '-fipa-profile'
  7089. Perform interprocedural profile propagation. The functions called
  7090. only from cold functions are marked as cold. Also functions
  7091. executed once (such as 'cold', 'noreturn', static constructors or
  7092. destructors) are identified. Cold functions and loop less parts of
  7093. functions executed once are then optimized for size. Enabled by
  7094. default at '-O' and higher.
  7095. '-fipa-cp'
  7096. Perform interprocedural constant propagation. This optimization
  7097. analyzes the program to determine when values passed to functions
  7098. are constants and then optimizes accordingly. This optimization
  7099. can substantially increase performance if the application has
  7100. constants passed to functions. This flag is enabled by default at
  7101. '-O2', '-Os' and '-O3'. It is also enabled by '-fprofile-use' and
  7102. '-fauto-profile'.
  7103. '-fipa-cp-clone'
  7104. Perform function cloning to make interprocedural constant
  7105. propagation stronger. When enabled, interprocedural constant
  7106. propagation performs function cloning when externally visible
  7107. function can be called with constant arguments. Because this
  7108. optimization can create multiple copies of functions, it may
  7109. significantly increase code size (see '--param
  7110. ipcp-unit-growth=VALUE'). This flag is enabled by default at
  7111. '-O3'. It is also enabled by '-fprofile-use' and '-fauto-profile'.
  7112. '-fipa-bit-cp'
  7113. When enabled, perform interprocedural bitwise constant propagation.
  7114. This flag is enabled by default at '-O2' and by '-fprofile-use' and
  7115. '-fauto-profile'. It requires that '-fipa-cp' is enabled.
  7116. '-fipa-vrp'
  7117. When enabled, perform interprocedural propagation of value ranges.
  7118. This flag is enabled by default at '-O2'. It requires that
  7119. '-fipa-cp' is enabled.
  7120. '-fipa-icf'
  7121. Perform Identical Code Folding for functions and read-only
  7122. variables. The optimization reduces code size and may disturb
  7123. unwind stacks by replacing a function by equivalent one with a
  7124. different name. The optimization works more effectively with
  7125. link-time optimization enabled.
  7126. Although the behavior is similar to the Gold Linker's ICF
  7127. optimization, GCC ICF works on different levels and thus the
  7128. optimizations are not same - there are equivalences that are found
  7129. only by GCC and equivalences found only by Gold.
  7130. This flag is enabled by default at '-O2' and '-Os'.
  7131. '-flive-patching=LEVEL'
  7132. Control GCC's optimizations to produce output suitable for
  7133. live-patching.
  7134. If the compiler's optimization uses a function's body or
  7135. information extracted from its body to optimize/change another
  7136. function, the latter is called an impacted function of the former.
  7137. If a function is patched, its impacted functions should be patched
  7138. too.
  7139. The impacted functions are determined by the compiler's
  7140. interprocedural optimizations. For example, a caller is impacted
  7141. when inlining a function into its caller, cloning a function and
  7142. changing its caller to call this new clone, or extracting a
  7143. function's pureness/constness information to optimize its direct or
  7144. indirect callers, etc.
  7145. Usually, the more IPA optimizations enabled, the larger the number
  7146. of impacted functions for each function. In order to control the
  7147. number of impacted functions and more easily compute the list of
  7148. impacted function, IPA optimizations can be partially enabled at
  7149. two different levels.
  7150. The LEVEL argument should be one of the following:
  7151. 'inline-clone'
  7152. Only enable inlining and cloning optimizations, which includes
  7153. inlining, cloning, interprocedural scalar replacement of
  7154. aggregates and partial inlining. As a result, when patching a
  7155. function, all its callers and its clones' callers are
  7156. impacted, therefore need to be patched as well.
  7157. '-flive-patching=inline-clone' disables the following
  7158. optimization flags:
  7159. -fwhole-program -fipa-pta -fipa-reference -fipa-ra
  7160. -fipa-icf -fipa-icf-functions -fipa-icf-variables
  7161. -fipa-bit-cp -fipa-vrp -fipa-pure-const -fipa-reference-addressable
  7162. -fipa-stack-alignment
  7163. 'inline-only-static'
  7164. Only enable inlining of static functions. As a result, when
  7165. patching a static function, all its callers are impacted and
  7166. so need to be patched as well.
  7167. In addition to all the flags that
  7168. '-flive-patching=inline-clone' disables,
  7169. '-flive-patching=inline-only-static' disables the following
  7170. additional optimization flags:
  7171. -fipa-cp-clone -fipa-sra -fpartial-inlining -fipa-cp
  7172. When '-flive-patching' is specified without any value, the default
  7173. value is INLINE-CLONE.
  7174. This flag is disabled by default.
  7175. Note that '-flive-patching' is not supported with link-time
  7176. optimization ('-flto').
  7177. '-fisolate-erroneous-paths-dereference'
  7178. Detect paths that trigger erroneous or undefined behavior due to
  7179. dereferencing a null pointer. Isolate those paths from the main
  7180. control flow and turn the statement with erroneous or undefined
  7181. behavior into a trap. This flag is enabled by default at '-O2' and
  7182. higher and depends on '-fdelete-null-pointer-checks' also being
  7183. enabled.
  7184. '-fisolate-erroneous-paths-attribute'
  7185. Detect paths that trigger erroneous or undefined behavior due to a
  7186. null value being used in a way forbidden by a 'returns_nonnull' or
  7187. 'nonnull' attribute. Isolate those paths from the main control
  7188. flow and turn the statement with erroneous or undefined behavior
  7189. into a trap. This is not currently enabled, but may be enabled by
  7190. '-O2' in the future.
  7191. '-ftree-sink'
  7192. Perform forward store motion on trees. This flag is enabled by
  7193. default at '-O' and higher.
  7194. '-ftree-bit-ccp'
  7195. Perform sparse conditional bit constant propagation on trees and
  7196. propagate pointer alignment information. This pass only operates
  7197. on local scalar variables and is enabled by default at '-O1' and
  7198. higher, except for '-Og'. It requires that '-ftree-ccp' is
  7199. enabled.
  7200. '-ftree-ccp'
  7201. Perform sparse conditional constant propagation (CCP) on trees.
  7202. This pass only operates on local scalar variables and is enabled by
  7203. default at '-O' and higher.
  7204. '-fssa-backprop'
  7205. Propagate information about uses of a value up the definition chain
  7206. in order to simplify the definitions. For example, this pass
  7207. strips sign operations if the sign of a value never matters. The
  7208. flag is enabled by default at '-O' and higher.
  7209. '-fssa-phiopt'
  7210. Perform pattern matching on SSA PHI nodes to optimize conditional
  7211. code. This pass is enabled by default at '-O1' and higher, except
  7212. for '-Og'.
  7213. '-ftree-switch-conversion'
  7214. Perform conversion of simple initializations in a switch to
  7215. initializations from a scalar array. This flag is enabled by
  7216. default at '-O2' and higher.
  7217. '-ftree-tail-merge'
  7218. Look for identical code sequences. When found, replace one with a
  7219. jump to the other. This optimization is known as tail merging or
  7220. cross jumping. This flag is enabled by default at '-O2' and
  7221. higher. The compilation time in this pass can be limited using
  7222. 'max-tail-merge-comparisons' parameter and
  7223. 'max-tail-merge-iterations' parameter.
  7224. '-ftree-dce'
  7225. Perform dead code elimination (DCE) on trees. This flag is enabled
  7226. by default at '-O' and higher.
  7227. '-ftree-builtin-call-dce'
  7228. Perform conditional dead code elimination (DCE) for calls to
  7229. built-in functions that may set 'errno' but are otherwise free of
  7230. side effects. This flag is enabled by default at '-O2' and higher
  7231. if '-Os' is not also specified.
  7232. '-ftree-dominator-opts'
  7233. Perform a variety of simple scalar cleanups (constant/copy
  7234. propagation, redundancy elimination, range propagation and
  7235. expression simplification) based on a dominator tree traversal.
  7236. This also performs jump threading (to reduce jumps to jumps). This
  7237. flag is enabled by default at '-O' and higher.
  7238. '-ftree-dse'
  7239. Perform dead store elimination (DSE) on trees. A dead store is a
  7240. store into a memory location that is later overwritten by another
  7241. store without any intervening loads. In this case the earlier
  7242. store can be deleted. This flag is enabled by default at '-O' and
  7243. higher.
  7244. '-ftree-ch'
  7245. Perform loop header copying on trees. This is beneficial since it
  7246. increases effectiveness of code motion optimizations. It also
  7247. saves one jump. This flag is enabled by default at '-O' and
  7248. higher. It is not enabled for '-Os', since it usually increases
  7249. code size.
  7250. '-ftree-loop-optimize'
  7251. Perform loop optimizations on trees. This flag is enabled by
  7252. default at '-O' and higher.
  7253. '-ftree-loop-linear'
  7254. '-floop-strip-mine'
  7255. '-floop-block'
  7256. Perform loop nest optimizations. Same as '-floop-nest-optimize'.
  7257. To use this code transformation, GCC has to be configured with
  7258. '--with-isl' to enable the Graphite loop transformation
  7259. infrastructure.
  7260. '-fgraphite-identity'
  7261. Enable the identity transformation for graphite. For every SCoP we
  7262. generate the polyhedral representation and transform it back to
  7263. gimple. Using '-fgraphite-identity' we can check the costs or
  7264. benefits of the GIMPLE -> GRAPHITE -> GIMPLE transformation. Some
  7265. minimal optimizations are also performed by the code generator isl,
  7266. like index splitting and dead code elimination in loops.
  7267. '-floop-nest-optimize'
  7268. Enable the isl based loop nest optimizer. This is a generic loop
  7269. nest optimizer based on the Pluto optimization algorithms. It
  7270. calculates a loop structure optimized for data-locality and
  7271. parallelism. This option is experimental.
  7272. '-floop-parallelize-all'
  7273. Use the Graphite data dependence analysis to identify loops that
  7274. can be parallelized. Parallelize all the loops that can be
  7275. analyzed to not contain loop carried dependences without checking
  7276. that it is profitable to parallelize the loops.
  7277. '-ftree-coalesce-vars'
  7278. While transforming the program out of the SSA representation,
  7279. attempt to reduce copying by coalescing versions of different
  7280. user-defined variables, instead of just compiler temporaries. This
  7281. may severely limit the ability to debug an optimized program
  7282. compiled with '-fno-var-tracking-assignments'. In the negated
  7283. form, this flag prevents SSA coalescing of user variables. This
  7284. option is enabled by default if optimization is enabled, and it
  7285. does very little otherwise.
  7286. '-ftree-loop-if-convert'
  7287. Attempt to transform conditional jumps in the innermost loops to
  7288. branch-less equivalents. The intent is to remove control-flow from
  7289. the innermost loops in order to improve the ability of the
  7290. vectorization pass to handle these loops. This is enabled by
  7291. default if vectorization is enabled.
  7292. '-ftree-loop-distribution'
  7293. Perform loop distribution. This flag can improve cache performance
  7294. on big loop bodies and allow further loop optimizations, like
  7295. parallelization or vectorization, to take place. For example, the
  7296. loop
  7297. DO I = 1, N
  7298. A(I) = B(I) + C
  7299. D(I) = E(I) * F
  7300. ENDDO
  7301. is transformed to
  7302. DO I = 1, N
  7303. A(I) = B(I) + C
  7304. ENDDO
  7305. DO I = 1, N
  7306. D(I) = E(I) * F
  7307. ENDDO
  7308. This flag is enabled by default at '-O3'. It is also enabled by
  7309. '-fprofile-use' and '-fauto-profile'.
  7310. '-ftree-loop-distribute-patterns'
  7311. Perform loop distribution of patterns that can be code generated
  7312. with calls to a library. This flag is enabled by default at '-O3',
  7313. and by '-fprofile-use' and '-fauto-profile'.
  7314. This pass distributes the initialization loops and generates a call
  7315. to memset zero. For example, the loop
  7316. DO I = 1, N
  7317. A(I) = 0
  7318. B(I) = A(I) + I
  7319. ENDDO
  7320. is transformed to
  7321. DO I = 1, N
  7322. A(I) = 0
  7323. ENDDO
  7324. DO I = 1, N
  7325. B(I) = A(I) + I
  7326. ENDDO
  7327. and the initialization loop is transformed into a call to memset
  7328. zero. This flag is enabled by default at '-O3'. It is also
  7329. enabled by '-fprofile-use' and '-fauto-profile'.
  7330. '-floop-interchange'
  7331. Perform loop interchange outside of graphite. This flag can
  7332. improve cache performance on loop nest and allow further loop
  7333. optimizations, like vectorization, to take place. For example, the
  7334. loop
  7335. for (int i = 0; i < N; i++)
  7336. for (int j = 0; j < N; j++)
  7337. for (int k = 0; k < N; k++)
  7338. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  7339. is transformed to
  7340. for (int i = 0; i < N; i++)
  7341. for (int k = 0; k < N; k++)
  7342. for (int j = 0; j < N; j++)
  7343. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  7344. This flag is enabled by default at '-O3'. It is also enabled by
  7345. '-fprofile-use' and '-fauto-profile'.
  7346. '-floop-unroll-and-jam'
  7347. Apply unroll and jam transformations on feasible loops. In a loop
  7348. nest this unrolls the outer loop by some factor and fuses the
  7349. resulting multiple inner loops. This flag is enabled by default at
  7350. '-O3'. It is also enabled by '-fprofile-use' and '-fauto-profile'.
  7351. '-ftree-loop-im'
  7352. Perform loop invariant motion on trees. This pass moves only
  7353. invariants that are hard to handle at RTL level (function calls,
  7354. operations that expand to nontrivial sequences of insns). With
  7355. '-funswitch-loops' it also moves operands of conditions that are
  7356. invariant out of the loop, so that we can use just trivial
  7357. invariantness analysis in loop unswitching. The pass also includes
  7358. store motion.
  7359. '-ftree-loop-ivcanon'
  7360. Create a canonical counter for number of iterations in loops for
  7361. which determining number of iterations requires complicated
  7362. analysis. Later optimizations then may determine the number
  7363. easily. Useful especially in connection with unrolling.
  7364. '-ftree-scev-cprop'
  7365. Perform final value replacement. If a variable is modified in a
  7366. loop in such a way that its value when exiting the loop can be
  7367. determined using only its initial value and the number of loop
  7368. iterations, replace uses of the final value by such a computation,
  7369. provided it is sufficiently cheap. This reduces data dependencies
  7370. and may allow further simplifications. Enabled by default at '-O'
  7371. and higher.
  7372. '-fivopts'
  7373. Perform induction variable optimizations (strength reduction,
  7374. induction variable merging and induction variable elimination) on
  7375. trees.
  7376. '-ftree-parallelize-loops=n'
  7377. Parallelize loops, i.e., split their iteration space to run in n
  7378. threads. This is only possible for loops whose iterations are
  7379. independent and can be arbitrarily reordered. The optimization is
  7380. only profitable on multiprocessor machines, for loops that are
  7381. CPU-intensive, rather than constrained e.g. by memory bandwidth.
  7382. This option implies '-pthread', and thus is only supported on
  7383. targets that have support for '-pthread'.
  7384. '-ftree-pta'
  7385. Perform function-local points-to analysis on trees. This flag is
  7386. enabled by default at '-O1' and higher, except for '-Og'.
  7387. '-ftree-sra'
  7388. Perform scalar replacement of aggregates. This pass replaces
  7389. structure references with scalars to prevent committing structures
  7390. to memory too early. This flag is enabled by default at '-O1' and
  7391. higher, except for '-Og'.
  7392. '-fstore-merging'
  7393. Perform merging of narrow stores to consecutive memory addresses.
  7394. This pass merges contiguous stores of immediate values narrower
  7395. than a word into fewer wider stores to reduce the number of
  7396. instructions. This is enabled by default at '-O2' and higher as
  7397. well as '-Os'.
  7398. '-ftree-ter'
  7399. Perform temporary expression replacement during the SSA->normal
  7400. phase. Single use/single def temporaries are replaced at their use
  7401. location with their defining expression. This results in
  7402. non-GIMPLE code, but gives the expanders much more complex trees to
  7403. work on resulting in better RTL generation. This is enabled by
  7404. default at '-O' and higher.
  7405. '-ftree-slsr'
  7406. Perform straight-line strength reduction on trees. This recognizes
  7407. related expressions involving multiplications and replaces them by
  7408. less expensive calculations when possible. This is enabled by
  7409. default at '-O' and higher.
  7410. '-ftree-vectorize'
  7411. Perform vectorization on trees. This flag enables
  7412. '-ftree-loop-vectorize' and '-ftree-slp-vectorize' if not
  7413. explicitly specified.
  7414. '-ftree-loop-vectorize'
  7415. Perform loop vectorization on trees. This flag is enabled by
  7416. default at '-O3' and by '-ftree-vectorize', '-fprofile-use', and
  7417. '-fauto-profile'.
  7418. '-ftree-slp-vectorize'
  7419. Perform basic block vectorization on trees. This flag is enabled
  7420. by default at '-O3' and by '-ftree-vectorize', '-fprofile-use', and
  7421. '-fauto-profile'.
  7422. '-fvect-cost-model=MODEL'
  7423. Alter the cost model used for vectorization. The MODEL argument
  7424. should be one of 'unlimited', 'dynamic' or 'cheap'. With the
  7425. 'unlimited' model the vectorized code-path is assumed to be
  7426. profitable while with the 'dynamic' model a runtime check guards
  7427. the vectorized code-path to enable it only for iteration counts
  7428. that will likely execute faster than when executing the original
  7429. scalar loop. The 'cheap' model disables vectorization of loops
  7430. where doing so would be cost prohibitive for example due to
  7431. required runtime checks for data dependence or alignment but
  7432. otherwise is equal to the 'dynamic' model. The default cost model
  7433. depends on other optimization flags and is either 'dynamic' or
  7434. 'cheap'.
  7435. '-fsimd-cost-model=MODEL'
  7436. Alter the cost model used for vectorization of loops marked with
  7437. the OpenMP simd directive. The MODEL argument should be one of
  7438. 'unlimited', 'dynamic', 'cheap'. All values of MODEL have the same
  7439. meaning as described in '-fvect-cost-model' and by default a cost
  7440. model defined with '-fvect-cost-model' is used.
  7441. '-ftree-vrp'
  7442. Perform Value Range Propagation on trees. This is similar to the
  7443. constant propagation pass, but instead of values, ranges of values
  7444. are propagated. This allows the optimizers to remove unnecessary
  7445. range checks like array bound checks and null pointer checks. This
  7446. is enabled by default at '-O2' and higher. Null pointer check
  7447. elimination is only done if '-fdelete-null-pointer-checks' is
  7448. enabled.
  7449. '-fsplit-paths'
  7450. Split paths leading to loop backedges. This can improve dead code
  7451. elimination and common subexpression elimination. This is enabled
  7452. by default at '-O3' and above.
  7453. '-fsplit-ivs-in-unroller'
  7454. Enables expression of values of induction variables in later
  7455. iterations of the unrolled loop using the value in the first
  7456. iteration. This breaks long dependency chains, thus improving
  7457. efficiency of the scheduling passes.
  7458. A combination of '-fweb' and CSE is often sufficient to obtain the
  7459. same effect. However, that is not reliable in cases where the loop
  7460. body is more complicated than a single basic block. It also does
  7461. not work at all on some architectures due to restrictions in the
  7462. CSE pass.
  7463. This optimization is enabled by default.
  7464. '-fvariable-expansion-in-unroller'
  7465. With this option, the compiler creates multiple copies of some
  7466. local variables when unrolling a loop, which can result in superior
  7467. code.
  7468. '-fpartial-inlining'
  7469. Inline parts of functions. This option has any effect only when
  7470. inlining itself is turned on by the '-finline-functions' or
  7471. '-finline-small-functions' options.
  7472. Enabled at levels '-O2', '-O3', '-Os'.
  7473. '-fpredictive-commoning'
  7474. Perform predictive commoning optimization, i.e., reusing
  7475. computations (especially memory loads and stores) performed in
  7476. previous iterations of loops.
  7477. This option is enabled at level '-O3'. It is also enabled by
  7478. '-fprofile-use' and '-fauto-profile'.
  7479. '-fprefetch-loop-arrays'
  7480. If supported by the target machine, generate instructions to
  7481. prefetch memory to improve the performance of loops that access
  7482. large arrays.
  7483. This option may generate better or worse code; results are highly
  7484. dependent on the structure of loops within the source code.
  7485. Disabled at level '-Os'.
  7486. '-fno-printf-return-value'
  7487. Do not substitute constants for known return value of formatted
  7488. output functions such as 'sprintf', 'snprintf', 'vsprintf', and
  7489. 'vsnprintf' (but not 'printf' of 'fprintf'). This transformation
  7490. allows GCC to optimize or even eliminate branches based on the
  7491. known return value of these functions called with arguments that
  7492. are either constant, or whose values are known to be in a range
  7493. that makes determining the exact return value possible. For
  7494. example, when '-fprintf-return-value' is in effect, both the branch
  7495. and the body of the 'if' statement (but not the call to 'snprint')
  7496. can be optimized away when 'i' is a 32-bit or smaller integer
  7497. because the return value is guaranteed to be at most 8.
  7498. char buf[9];
  7499. if (snprintf (buf, "%08x", i) >= sizeof buf)
  7500. ...
  7501. The '-fprintf-return-value' option relies on other optimizations
  7502. and yields best results with '-O2' and above. It works in tandem
  7503. with the '-Wformat-overflow' and '-Wformat-truncation' options.
  7504. The '-fprintf-return-value' option is enabled by default.
  7505. '-fno-peephole'
  7506. '-fno-peephole2'
  7507. Disable any machine-specific peephole optimizations. The
  7508. difference between '-fno-peephole' and '-fno-peephole2' is in how
  7509. they are implemented in the compiler; some targets use one, some
  7510. use the other, a few use both.
  7511. '-fpeephole' is enabled by default. '-fpeephole2' enabled at
  7512. levels '-O2', '-O3', '-Os'.
  7513. '-fno-guess-branch-probability'
  7514. Do not guess branch probabilities using heuristics.
  7515. GCC uses heuristics to guess branch probabilities if they are not
  7516. provided by profiling feedback ('-fprofile-arcs'). These
  7517. heuristics are based on the control flow graph. If some branch
  7518. probabilities are specified by '__builtin_expect', then the
  7519. heuristics are used to guess branch probabilities for the rest of
  7520. the control flow graph, taking the '__builtin_expect' info into
  7521. account. The interactions between the heuristics and
  7522. '__builtin_expect' can be complex, and in some cases, it may be
  7523. useful to disable the heuristics so that the effects of
  7524. '__builtin_expect' are easier to understand.
  7525. It is also possible to specify expected probability of the
  7526. expression with '__builtin_expect_with_probability' built-in
  7527. function.
  7528. The default is '-fguess-branch-probability' at levels '-O', '-O2',
  7529. '-O3', '-Os'.
  7530. '-freorder-blocks'
  7531. Reorder basic blocks in the compiled function in order to reduce
  7532. number of taken branches and improve code locality.
  7533. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7534. '-freorder-blocks-algorithm=ALGORITHM'
  7535. Use the specified algorithm for basic block reordering. The
  7536. ALGORITHM argument can be 'simple', which does not increase code
  7537. size (except sometimes due to secondary effects like alignment), or
  7538. 'stc', the "software trace cache" algorithm, which tries to put all
  7539. often executed code together, minimizing the number of branches
  7540. executed by making extra copies of code.
  7541. The default is 'simple' at levels '-O', '-Os', and 'stc' at levels
  7542. '-O2', '-O3'.
  7543. '-freorder-blocks-and-partition'
  7544. In addition to reordering basic blocks in the compiled function, in
  7545. order to reduce number of taken branches, partitions hot and cold
  7546. basic blocks into separate sections of the assembly and '.o' files,
  7547. to improve paging and cache locality performance.
  7548. This optimization is automatically turned off in the presence of
  7549. exception handling or unwind tables (on targets using
  7550. setjump/longjump or target specific scheme), for linkonce sections,
  7551. for functions with a user-defined section attribute and on any
  7552. architecture that does not support named sections. When
  7553. '-fsplit-stack' is used this option is not enabled by default (to
  7554. avoid linker errors), but may be enabled explicitly (if using a
  7555. working linker).
  7556. Enabled for x86 at levels '-O2', '-O3', '-Os'.
  7557. '-freorder-functions'
  7558. Reorder functions in the object file in order to improve code
  7559. locality. This is implemented by using special subsections
  7560. '.text.hot' for most frequently executed functions and
  7561. '.text.unlikely' for unlikely executed functions. Reordering is
  7562. done by the linker so object file format must support named
  7563. sections and linker must place them in a reasonable way.
  7564. This option isn't effective unless you either provide profile
  7565. feedback (see '-fprofile-arcs' for details) or manually annotate
  7566. functions with 'hot' or 'cold' attributes (*note Common Function
  7567. Attributes::).
  7568. Enabled at levels '-O2', '-O3', '-Os'.
  7569. '-fstrict-aliasing'
  7570. Allow the compiler to assume the strictest aliasing rules
  7571. applicable to the language being compiled. For C (and C++), this
  7572. activates optimizations based on the type of expressions. In
  7573. particular, an object of one type is assumed never to reside at the
  7574. same address as an object of a different type, unless the types are
  7575. almost the same. For example, an 'unsigned int' can alias an
  7576. 'int', but not a 'void*' or a 'double'. A character type may alias
  7577. any other type.
  7578. Pay special attention to code like this:
  7579. union a_union {
  7580. int i;
  7581. double d;
  7582. };
  7583. int f() {
  7584. union a_union t;
  7585. t.d = 3.0;
  7586. return t.i;
  7587. }
  7588. The practice of reading from a different union member than the one
  7589. most recently written to (called "type-punning") is common. Even
  7590. with '-fstrict-aliasing', type-punning is allowed, provided the
  7591. memory is accessed through the union type. So, the code above
  7592. works as expected. *Note Structures unions enumerations and
  7593. bit-fields implementation::. However, this code might not:
  7594. int f() {
  7595. union a_union t;
  7596. int* ip;
  7597. t.d = 3.0;
  7598. ip = &t.i;
  7599. return *ip;
  7600. }
  7601. Similarly, access by taking the address, casting the resulting
  7602. pointer and dereferencing the result has undefined behavior, even
  7603. if the cast uses a union type, e.g.:
  7604. int f() {
  7605. double d = 3.0;
  7606. return ((union a_union *) &d)->i;
  7607. }
  7608. The '-fstrict-aliasing' option is enabled at levels '-O2', '-O3',
  7609. '-Os'.
  7610. '-falign-functions'
  7611. '-falign-functions=N'
  7612. '-falign-functions=N:M'
  7613. '-falign-functions=N:M:N2'
  7614. '-falign-functions=N:M:N2:M2'
  7615. Align the start of functions to the next power-of-two greater than
  7616. N, skipping up to M-1 bytes. This ensures that at least the first
  7617. M bytes of the function can be fetched by the CPU without crossing
  7618. an N-byte alignment boundary.
  7619. If M is not specified, it defaults to N.
  7620. Examples: '-falign-functions=32' aligns functions to the next
  7621. 32-byte boundary, '-falign-functions=24' aligns to the next 32-byte
  7622. boundary only if this can be done by skipping 23 bytes or less,
  7623. '-falign-functions=32:7' aligns to the next 32-byte boundary only
  7624. if this can be done by skipping 6 bytes or less.
  7625. The second pair of N2:M2 values allows you to specify a secondary
  7626. alignment: '-falign-functions=64:7:32:3' aligns to the next 64-byte
  7627. boundary if this can be done by skipping 6 bytes or less, otherwise
  7628. aligns to the next 32-byte boundary if this can be done by skipping
  7629. 2 bytes or less. If M2 is not specified, it defaults to N2.
  7630. Some assemblers only support this flag when N is a power of two; in
  7631. that case, it is rounded up.
  7632. '-fno-align-functions' and '-falign-functions=1' are equivalent and
  7633. mean that functions are not aligned.
  7634. If N is not specified or is zero, use a machine-dependent default.
  7635. The maximum allowed N option value is 65536.
  7636. Enabled at levels '-O2', '-O3'.
  7637. '-flimit-function-alignment'
  7638. If this option is enabled, the compiler tries to avoid
  7639. unnecessarily overaligning functions. It attempts to instruct the
  7640. assembler to align by the amount specified by '-falign-functions',
  7641. but not to skip more bytes than the size of the function.
  7642. '-falign-labels'
  7643. '-falign-labels=N'
  7644. '-falign-labels=N:M'
  7645. '-falign-labels=N:M:N2'
  7646. '-falign-labels=N:M:N2:M2'
  7647. Align all branch targets to a power-of-two boundary.
  7648. Parameters of this option are analogous to the '-falign-functions'
  7649. option. '-fno-align-labels' and '-falign-labels=1' are equivalent
  7650. and mean that labels are not aligned.
  7651. If '-falign-loops' or '-falign-jumps' are applicable and are
  7652. greater than this value, then their values are used instead.
  7653. If N is not specified or is zero, use a machine-dependent default
  7654. which is very likely to be '1', meaning no alignment. The maximum
  7655. allowed N option value is 65536.
  7656. Enabled at levels '-O2', '-O3'.
  7657. '-falign-loops'
  7658. '-falign-loops=N'
  7659. '-falign-loops=N:M'
  7660. '-falign-loops=N:M:N2'
  7661. '-falign-loops=N:M:N2:M2'
  7662. Align loops to a power-of-two boundary. If the loops are executed
  7663. many times, this makes up for any execution of the dummy padding
  7664. instructions.
  7665. Parameters of this option are analogous to the '-falign-functions'
  7666. option. '-fno-align-loops' and '-falign-loops=1' are equivalent
  7667. and mean that loops are not aligned. The maximum allowed N option
  7668. value is 65536.
  7669. If N is not specified or is zero, use a machine-dependent default.
  7670. Enabled at levels '-O2', '-O3'.
  7671. '-falign-jumps'
  7672. '-falign-jumps=N'
  7673. '-falign-jumps=N:M'
  7674. '-falign-jumps=N:M:N2'
  7675. '-falign-jumps=N:M:N2:M2'
  7676. Align branch targets to a power-of-two boundary, for branch targets
  7677. where the targets can only be reached by jumping. In this case, no
  7678. dummy operations need be executed.
  7679. Parameters of this option are analogous to the '-falign-functions'
  7680. option. '-fno-align-jumps' and '-falign-jumps=1' are equivalent
  7681. and mean that loops are not aligned.
  7682. If N is not specified or is zero, use a machine-dependent default.
  7683. The maximum allowed N option value is 65536.
  7684. Enabled at levels '-O2', '-O3'.
  7685. '-funit-at-a-time'
  7686. This option is left for compatibility reasons. '-funit-at-a-time'
  7687. has no effect, while '-fno-unit-at-a-time' implies
  7688. '-fno-toplevel-reorder' and '-fno-section-anchors'.
  7689. Enabled by default.
  7690. '-fno-toplevel-reorder'
  7691. Do not reorder top-level functions, variables, and 'asm'
  7692. statements. Output them in the same order that they appear in the
  7693. input file. When this option is used, unreferenced static
  7694. variables are not removed. This option is intended to support
  7695. existing code that relies on a particular ordering. For new code,
  7696. it is better to use attributes when possible.
  7697. '-ftoplevel-reorder' is the default at '-O1' and higher, and also
  7698. at '-O0' if '-fsection-anchors' is explicitly requested.
  7699. Additionally '-fno-toplevel-reorder' implies
  7700. '-fno-section-anchors'.
  7701. '-fweb'
  7702. Constructs webs as commonly used for register allocation purposes
  7703. and assign each web individual pseudo register. This allows the
  7704. register allocation pass to operate on pseudos directly, but also
  7705. strengthens several other optimization passes, such as CSE, loop
  7706. optimizer and trivial dead code remover. It can, however, make
  7707. debugging impossible, since variables no longer stay in a "home
  7708. register".
  7709. Enabled by default with '-funroll-loops'.
  7710. '-fwhole-program'
  7711. Assume that the current compilation unit represents the whole
  7712. program being compiled. All public functions and variables with
  7713. the exception of 'main' and those merged by attribute
  7714. 'externally_visible' become static functions and in effect are
  7715. optimized more aggressively by interprocedural optimizers.
  7716. This option should not be used in combination with '-flto'.
  7717. Instead relying on a linker plugin should provide safer and more
  7718. precise information.
  7719. '-flto[=N]'
  7720. This option runs the standard link-time optimizer. When invoked
  7721. with source code, it generates GIMPLE (one of GCC's internal
  7722. representations) and writes it to special ELF sections in the
  7723. object file. When the object files are linked together, all the
  7724. function bodies are read from these ELF sections and instantiated
  7725. as if they had been part of the same translation unit.
  7726. To use the link-time optimizer, '-flto' and optimization options
  7727. should be specified at compile time and during the final link. It
  7728. is recommended that you compile all the files participating in the
  7729. same link with the same options and also specify those options at
  7730. link time. For example:
  7731. gcc -c -O2 -flto foo.c
  7732. gcc -c -O2 -flto bar.c
  7733. gcc -o myprog -flto -O2 foo.o bar.o
  7734. The first two invocations to GCC save a bytecode representation of
  7735. GIMPLE into special ELF sections inside 'foo.o' and 'bar.o'. The
  7736. final invocation reads the GIMPLE bytecode from 'foo.o' and
  7737. 'bar.o', merges the two files into a single internal image, and
  7738. compiles the result as usual. Since both 'foo.o' and 'bar.o' are
  7739. merged into a single image, this causes all the interprocedural
  7740. analyses and optimizations in GCC to work across the two files as
  7741. if they were a single one. This means, for example, that the
  7742. inliner is able to inline functions in 'bar.o' into functions in
  7743. 'foo.o' and vice-versa.
  7744. Another (simpler) way to enable link-time optimization is:
  7745. gcc -o myprog -flto -O2 foo.c bar.c
  7746. The above generates bytecode for 'foo.c' and 'bar.c', merges them
  7747. together into a single GIMPLE representation and optimizes them as
  7748. usual to produce 'myprog'.
  7749. The important thing to keep in mind is that to enable link-time
  7750. optimizations you need to use the GCC driver to perform the link
  7751. step. GCC automatically performs link-time optimization if any of
  7752. the objects involved were compiled with the '-flto' command-line
  7753. option. You can always override the automatic decision to do
  7754. link-time optimization by passing '-fno-lto' to the link command.
  7755. To make whole program optimization effective, it is necessary to
  7756. make certain whole program assumptions. The compiler needs to know
  7757. what functions and variables can be accessed by libraries and
  7758. runtime outside of the link-time optimized unit. When supported by
  7759. the linker, the linker plugin (see '-fuse-linker-plugin') passes
  7760. information to the compiler about used and externally visible
  7761. symbols. When the linker plugin is not available,
  7762. '-fwhole-program' should be used to allow the compiler to make
  7763. these assumptions, which leads to more aggressive optimization
  7764. decisions.
  7765. When a file is compiled with '-flto' without '-fuse-linker-plugin',
  7766. the generated object file is larger than a regular object file
  7767. because it contains GIMPLE bytecodes and the usual final code (see
  7768. '-ffat-lto-objects'. This means that object files with LTO
  7769. information can be linked as normal object files; if '-fno-lto' is
  7770. passed to the linker, no interprocedural optimizations are applied.
  7771. Note that when '-fno-fat-lto-objects' is enabled the compile stage
  7772. is faster but you cannot perform a regular, non-LTO link on them.
  7773. When producing the final binary, GCC only applies link-time
  7774. optimizations to those files that contain bytecode. Therefore, you
  7775. can mix and match object files and libraries with GIMPLE bytecodes
  7776. and final object code. GCC automatically selects which files to
  7777. optimize in LTO mode and which files to link without further
  7778. processing.
  7779. Generally, options specified at link time override those specified
  7780. at compile time, although in some cases GCC attempts to infer
  7781. link-time options from the settings used to compile the input
  7782. files.
  7783. If you do not specify an optimization level option '-O' at link
  7784. time, then GCC uses the highest optimization level used when
  7785. compiling the object files. Note that it is generally ineffective
  7786. to specify an optimization level option only at link time and not
  7787. at compile time, for two reasons. First, compiling without
  7788. optimization suppresses compiler passes that gather information
  7789. needed for effective optimization at link time. Second, some early
  7790. optimization passes can be performed only at compile time and not
  7791. at link time.
  7792. There are some code generation flags preserved by GCC when
  7793. generating bytecodes, as they need to be used during the final
  7794. link. Currently, the following options and their settings are
  7795. taken from the first object file that explicitly specifies them:
  7796. '-fPIC', '-fpic', '-fpie', '-fcommon', '-fexceptions',
  7797. '-fnon-call-exceptions', '-fgnu-tm' and all the '-m' target flags.
  7798. Certain ABI-changing flags are required to match in all compilation
  7799. units, and trying to override this at link time with a conflicting
  7800. value is ignored. This includes options such as
  7801. '-freg-struct-return' and '-fpcc-struct-return'.
  7802. Other options such as '-ffp-contract', '-fno-strict-overflow',
  7803. '-fwrapv', '-fno-trapv' or '-fno-strict-aliasing' are passed
  7804. through to the link stage and merged conservatively for conflicting
  7805. translation units. Specifically '-fno-strict-overflow', '-fwrapv'
  7806. and '-fno-trapv' take precedence; and for example
  7807. '-ffp-contract=off' takes precedence over '-ffp-contract=fast'.
  7808. You can override them at link time.
  7809. If LTO encounters objects with C linkage declared with incompatible
  7810. types in separate translation units to be linked together
  7811. (undefined behavior according to ISO C99 6.2.7), a non-fatal
  7812. diagnostic may be issued. The behavior is still undefined at run
  7813. time. Similar diagnostics may be raised for other languages.
  7814. Another feature of LTO is that it is possible to apply
  7815. interprocedural optimizations on files written in different
  7816. languages:
  7817. gcc -c -flto foo.c
  7818. g++ -c -flto bar.cc
  7819. gfortran -c -flto baz.f90
  7820. g++ -o myprog -flto -O3 foo.o bar.o baz.o -lgfortran
  7821. Notice that the final link is done with 'g++' to get the C++
  7822. runtime libraries and '-lgfortran' is added to get the Fortran
  7823. runtime libraries. In general, when mixing languages in LTO mode,
  7824. you should use the same link command options as when mixing
  7825. languages in a regular (non-LTO) compilation.
  7826. If object files containing GIMPLE bytecode are stored in a library
  7827. archive, say 'libfoo.a', it is possible to extract and use them in
  7828. an LTO link if you are using a linker with plugin support. To
  7829. create static libraries suitable for LTO, use 'gcc-ar' and
  7830. 'gcc-ranlib' instead of 'ar' and 'ranlib'; to show the symbols of
  7831. object files with GIMPLE bytecode, use 'gcc-nm'. Those commands
  7832. require that 'ar', 'ranlib' and 'nm' have been compiled with plugin
  7833. support. At link time, use the flag '-fuse-linker-plugin' to
  7834. ensure that the library participates in the LTO optimization
  7835. process:
  7836. gcc -o myprog -O2 -flto -fuse-linker-plugin a.o b.o -lfoo
  7837. With the linker plugin enabled, the linker extracts the needed
  7838. GIMPLE files from 'libfoo.a' and passes them on to the running GCC
  7839. to make them part of the aggregated GIMPLE image to be optimized.
  7840. If you are not using a linker with plugin support and/or do not
  7841. enable the linker plugin, then the objects inside 'libfoo.a' are
  7842. extracted and linked as usual, but they do not participate in the
  7843. LTO optimization process. In order to make a static library
  7844. suitable for both LTO optimization and usual linkage, compile its
  7845. object files with '-flto' '-ffat-lto-objects'.
  7846. Link-time optimizations do not require the presence of the whole
  7847. program to operate. If the program does not require any symbols to
  7848. be exported, it is possible to combine '-flto' and
  7849. '-fwhole-program' to allow the interprocedural optimizers to use
  7850. more aggressive assumptions which may lead to improved optimization
  7851. opportunities. Use of '-fwhole-program' is not needed when linker
  7852. plugin is active (see '-fuse-linker-plugin').
  7853. The current implementation of LTO makes no attempt to generate
  7854. bytecode that is portable between different types of hosts. The
  7855. bytecode files are versioned and there is a strict version check,
  7856. so bytecode files generated in one version of GCC do not work with
  7857. an older or newer version of GCC.
  7858. Link-time optimization does not work well with generation of
  7859. debugging information on systems other than those using a
  7860. combination of ELF and DWARF.
  7861. If you specify the optional N, the optimization and code generation
  7862. done at link time is executed in parallel using N parallel jobs by
  7863. utilizing an installed 'make' program. The environment variable
  7864. 'MAKE' may be used to override the program used. The default value
  7865. for N is 1.
  7866. You can also specify '-flto=jobserver' to use GNU make's job server
  7867. mode to determine the number of parallel jobs. This is useful when
  7868. the Makefile calling GCC is already executing in parallel. You
  7869. must prepend a '+' to the command recipe in the parent Makefile for
  7870. this to work. This option likely only works if 'MAKE' is GNU make.
  7871. '-flto-partition=ALG'
  7872. Specify the partitioning algorithm used by the link-time optimizer.
  7873. The value is either '1to1' to specify a partitioning mirroring the
  7874. original source files or 'balanced' to specify partitioning into
  7875. equally sized chunks (whenever possible) or 'max' to create new
  7876. partition for every symbol where possible. Specifying 'none' as an
  7877. algorithm disables partitioning and streaming completely. The
  7878. default value is 'balanced'. While '1to1' can be used as an
  7879. workaround for various code ordering issues, the 'max' partitioning
  7880. is intended for internal testing only. The value 'one' specifies
  7881. that exactly one partition should be used while the value 'none'
  7882. bypasses partitioning and executes the link-time optimization step
  7883. directly from the WPA phase.
  7884. '-flto-odr-type-merging'
  7885. Enable streaming of mangled types names of C++ types and their
  7886. unification at link time. This increases size of LTO object files,
  7887. but enables diagnostics about One Definition Rule violations.
  7888. '-flto-compression-level=N'
  7889. This option specifies the level of compression used for
  7890. intermediate language written to LTO object files, and is only
  7891. meaningful in conjunction with LTO mode ('-flto'). Valid values
  7892. are 0 (no compression) to 9 (maximum compression). Values outside
  7893. this range are clamped to either 0 or 9. If the option is not
  7894. given, a default balanced compression setting is used.
  7895. '-fuse-linker-plugin'
  7896. Enables the use of a linker plugin during link-time optimization.
  7897. This option relies on plugin support in the linker, which is
  7898. available in gold or in GNU ld 2.21 or newer.
  7899. This option enables the extraction of object files with GIMPLE
  7900. bytecode out of library archives. This improves the quality of
  7901. optimization by exposing more code to the link-time optimizer.
  7902. This information specifies what symbols can be accessed externally
  7903. (by non-LTO object or during dynamic linking). Resulting code
  7904. quality improvements on binaries (and shared libraries that use
  7905. hidden visibility) are similar to '-fwhole-program'. See '-flto'
  7906. for a description of the effect of this flag and how to use it.
  7907. This option is enabled by default when LTO support in GCC is
  7908. enabled and GCC was configured for use with a linker supporting
  7909. plugins (GNU ld 2.21 or newer or gold).
  7910. '-ffat-lto-objects'
  7911. Fat LTO objects are object files that contain both the intermediate
  7912. language and the object code. This makes them usable for both LTO
  7913. linking and normal linking. This option is effective only when
  7914. compiling with '-flto' and is ignored at link time.
  7915. '-fno-fat-lto-objects' improves compilation time over plain LTO,
  7916. but requires the complete toolchain to be aware of LTO. It requires
  7917. a linker with linker plugin support for basic functionality.
  7918. Additionally, 'nm', 'ar' and 'ranlib' need to support linker
  7919. plugins to allow a full-featured build environment (capable of
  7920. building static libraries etc). GCC provides the 'gcc-ar',
  7921. 'gcc-nm', 'gcc-ranlib' wrappers to pass the right options to these
  7922. tools. With non fat LTO makefiles need to be modified to use them.
  7923. Note that modern binutils provide plugin auto-load mechanism.
  7924. Installing the linker plugin into '$libdir/bfd-plugins' has the
  7925. same effect as usage of the command wrappers ('gcc-ar', 'gcc-nm'
  7926. and 'gcc-ranlib').
  7927. The default is '-fno-fat-lto-objects' on targets with linker plugin
  7928. support.
  7929. '-fcompare-elim'
  7930. After register allocation and post-register allocation instruction
  7931. splitting, identify arithmetic instructions that compute processor
  7932. flags similar to a comparison operation based on that arithmetic.
  7933. If possible, eliminate the explicit comparison operation.
  7934. This pass only applies to certain targets that cannot explicitly
  7935. represent the comparison operation before register allocation is
  7936. complete.
  7937. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7938. '-fcprop-registers'
  7939. After register allocation and post-register allocation instruction
  7940. splitting, perform a copy-propagation pass to try to reduce
  7941. scheduling dependencies and occasionally eliminate the copy.
  7942. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7943. '-fprofile-correction'
  7944. Profiles collected using an instrumented binary for multi-threaded
  7945. programs may be inconsistent due to missed counter updates. When
  7946. this option is specified, GCC uses heuristics to correct or smooth
  7947. out such inconsistencies. By default, GCC emits an error message
  7948. when an inconsistent profile is detected.
  7949. This option is enabled by '-fauto-profile'.
  7950. '-fprofile-use'
  7951. '-fprofile-use=PATH'
  7952. Enable profile feedback-directed optimizations, and the following
  7953. optimizations, many of which are generally profitable only with
  7954. profile feedback available:
  7955. -fbranch-probabilities -fprofile-values
  7956. -funroll-loops -fpeel-loops -ftracer -fvpt
  7957. -finline-functions -fipa-cp -fipa-cp-clone -fipa-bit-cp
  7958. -fpredictive-commoning -fsplit-loops -funswitch-loops
  7959. -fgcse-after-reload -ftree-loop-vectorize -ftree-slp-vectorize
  7960. -fvect-cost-model=dynamic -ftree-loop-distribute-patterns
  7961. -fprofile-reorder-functions
  7962. Before you can use this option, you must first generate profiling
  7963. information. *Note Instrumentation Options::, for information
  7964. about the '-fprofile-generate' option.
  7965. By default, GCC emits an error message if the feedback profiles do
  7966. not match the source code. This error can be turned into a warning
  7967. by using '-Wno-error=coverage-mismatch'. Note this may result in
  7968. poorly optimized code. Additionally, by default, GCC also emits a
  7969. warning message if the feedback profiles do not exist (see
  7970. '-Wmissing-profile').
  7971. If PATH is specified, GCC looks at the PATH to find the profile
  7972. feedback data files. See '-fprofile-dir'.
  7973. '-fauto-profile'
  7974. '-fauto-profile=PATH'
  7975. Enable sampling-based feedback-directed optimizations, and the
  7976. following optimizations, many of which are generally profitable
  7977. only with profile feedback available:
  7978. -fbranch-probabilities -fprofile-values
  7979. -funroll-loops -fpeel-loops -ftracer -fvpt
  7980. -finline-functions -fipa-cp -fipa-cp-clone -fipa-bit-cp
  7981. -fpredictive-commoning -fsplit-loops -funswitch-loops
  7982. -fgcse-after-reload -ftree-loop-vectorize -ftree-slp-vectorize
  7983. -fvect-cost-model=dynamic -ftree-loop-distribute-patterns
  7984. -fprofile-correction
  7985. PATH is the name of a file containing AutoFDO profile information.
  7986. If omitted, it defaults to 'fbdata.afdo' in the current directory.
  7987. Producing an AutoFDO profile data file requires running your
  7988. program with the 'perf' utility on a supported GNU/Linux target
  7989. system. For more information, see <https://perf.wiki.kernel.org/>.
  7990. E.g.
  7991. perf record -e br_inst_retired:near_taken -b -o perf.data \
  7992. -- your_program
  7993. Then use the 'create_gcov' tool to convert the raw profile data to
  7994. a format that can be used by GCC. You must also supply the
  7995. unstripped binary for your program to this tool. See
  7996. <https://github.com/google/autofdo>.
  7997. E.g.
  7998. create_gcov --binary=your_program.unstripped --profile=perf.data \
  7999. --gcov=profile.afdo
  8000. The following options control compiler behavior regarding
  8001. floating-point arithmetic. These options trade off between speed and
  8002. correctness. All must be specifically enabled.
  8003. '-ffloat-store'
  8004. Do not store floating-point variables in registers, and inhibit
  8005. other options that might change whether a floating-point value is
  8006. taken from a register or memory.
  8007. This option prevents undesirable excess precision on machines such
  8008. as the 68000 where the floating registers (of the 68881) keep more
  8009. precision than a 'double' is supposed to have. Similarly for the
  8010. x86 architecture. For most programs, the excess precision does
  8011. only good, but a few programs rely on the precise definition of
  8012. IEEE floating point. Use '-ffloat-store' for such programs, after
  8013. modifying them to store all pertinent intermediate computations
  8014. into variables.
  8015. '-fexcess-precision=STYLE'
  8016. This option allows further control over excess precision on
  8017. machines where floating-point operations occur in a format with
  8018. more precision or range than the IEEE standard and interchange
  8019. floating-point types. By default, '-fexcess-precision=fast' is in
  8020. effect; this means that operations may be carried out in a wider
  8021. precision than the types specified in the source if that would
  8022. result in faster code, and it is unpredictable when rounding to the
  8023. types specified in the source code takes place. When compiling C,
  8024. if '-fexcess-precision=standard' is specified then excess precision
  8025. follows the rules specified in ISO C99; in particular, both casts
  8026. and assignments cause values to be rounded to their semantic types
  8027. (whereas '-ffloat-store' only affects assignments). This option is
  8028. enabled by default for C if a strict conformance option such as
  8029. '-std=c99' is used. '-ffast-math' enables
  8030. '-fexcess-precision=fast' by default regardless of whether a strict
  8031. conformance option is used.
  8032. '-fexcess-precision=standard' is not implemented for languages
  8033. other than C. On the x86, it has no effect if '-mfpmath=sse' or
  8034. '-mfpmath=sse+387' is specified; in the former case, IEEE semantics
  8035. apply without excess precision, and in the latter, rounding is
  8036. unpredictable.
  8037. '-ffast-math'
  8038. Sets the options '-fno-math-errno', '-funsafe-math-optimizations',
  8039. '-ffinite-math-only', '-fno-rounding-math', '-fno-signaling-nans',
  8040. '-fcx-limited-range' and '-fexcess-precision=fast'.
  8041. This option causes the preprocessor macro '__FAST_MATH__' to be
  8042. defined.
  8043. This option is not turned on by any '-O' option besides '-Ofast'
  8044. since it can result in incorrect output for programs that depend on
  8045. an exact implementation of IEEE or ISO rules/specifications for
  8046. math functions. It may, however, yield faster code for programs
  8047. that do not require the guarantees of these specifications.
  8048. '-fno-math-errno'
  8049. Do not set 'errno' after calling math functions that are executed
  8050. with a single instruction, e.g., 'sqrt'. A program that relies on
  8051. IEEE exceptions for math error handling may want to use this flag
  8052. for speed while maintaining IEEE arithmetic compatibility.
  8053. This option is not turned on by any '-O' option since it can result
  8054. in incorrect output for programs that depend on an exact
  8055. implementation of IEEE or ISO rules/specifications for math
  8056. functions. It may, however, yield faster code for programs that do
  8057. not require the guarantees of these specifications.
  8058. The default is '-fmath-errno'.
  8059. On Darwin systems, the math library never sets 'errno'. There is
  8060. therefore no reason for the compiler to consider the possibility
  8061. that it might, and '-fno-math-errno' is the default.
  8062. '-funsafe-math-optimizations'
  8063. Allow optimizations for floating-point arithmetic that (a) assume
  8064. that arguments and results are valid and (b) may violate IEEE or
  8065. ANSI standards. When used at link time, it may include libraries
  8066. or startup files that change the default FPU control word or other
  8067. similar optimizations.
  8068. This option is not turned on by any '-O' option since it can result
  8069. in incorrect output for programs that depend on an exact
  8070. implementation of IEEE or ISO rules/specifications for math
  8071. functions. It may, however, yield faster code for programs that do
  8072. not require the guarantees of these specifications. Enables
  8073. '-fno-signed-zeros', '-fno-trapping-math', '-fassociative-math' and
  8074. '-freciprocal-math'.
  8075. The default is '-fno-unsafe-math-optimizations'.
  8076. '-fassociative-math'
  8077. Allow re-association of operands in series of floating-point
  8078. operations. This violates the ISO C and C++ language standard by
  8079. possibly changing computation result. NOTE: re-ordering may change
  8080. the sign of zero as well as ignore NaNs and inhibit or create
  8081. underflow or overflow (and thus cannot be used on code that relies
  8082. on rounding behavior like '(x + 2**52) - 2**52'. May also reorder
  8083. floating-point comparisons and thus may not be used when ordered
  8084. comparisons are required. This option requires that both
  8085. '-fno-signed-zeros' and '-fno-trapping-math' be in effect.
  8086. Moreover, it doesn't make much sense with '-frounding-math'. For
  8087. Fortran the option is automatically enabled when both
  8088. '-fno-signed-zeros' and '-fno-trapping-math' are in effect.
  8089. The default is '-fno-associative-math'.
  8090. '-freciprocal-math'
  8091. Allow the reciprocal of a value to be used instead of dividing by
  8092. the value if this enables optimizations. For example 'x / y' can
  8093. be replaced with 'x * (1/y)', which is useful if '(1/y)' is subject
  8094. to common subexpression elimination. Note that this loses
  8095. precision and increases the number of flops operating on the value.
  8096. The default is '-fno-reciprocal-math'.
  8097. '-ffinite-math-only'
  8098. Allow optimizations for floating-point arithmetic that assume that
  8099. arguments and results are not NaNs or +-Infs.
  8100. This option is not turned on by any '-O' option since it can result
  8101. in incorrect output for programs that depend on an exact
  8102. implementation of IEEE or ISO rules/specifications for math
  8103. functions. It may, however, yield faster code for programs that do
  8104. not require the guarantees of these specifications.
  8105. The default is '-fno-finite-math-only'.
  8106. '-fno-signed-zeros'
  8107. Allow optimizations for floating-point arithmetic that ignore the
  8108. signedness of zero. IEEE arithmetic specifies the behavior of
  8109. distinct +0.0 and -0.0 values, which then prohibits simplification
  8110. of expressions such as x+0.0 or 0.0*x (even with
  8111. '-ffinite-math-only'). This option implies that the sign of a zero
  8112. result isn't significant.
  8113. The default is '-fsigned-zeros'.
  8114. '-fno-trapping-math'
  8115. Compile code assuming that floating-point operations cannot
  8116. generate user-visible traps. These traps include division by zero,
  8117. overflow, underflow, inexact result and invalid operation. This
  8118. option requires that '-fno-signaling-nans' be in effect. Setting
  8119. this option may allow faster code if one relies on "non-stop" IEEE
  8120. arithmetic, for example.
  8121. This option should never be turned on by any '-O' option since it
  8122. can result in incorrect output for programs that depend on an exact
  8123. implementation of IEEE or ISO rules/specifications for math
  8124. functions.
  8125. The default is '-ftrapping-math'.
  8126. '-frounding-math'
  8127. Disable transformations and optimizations that assume default
  8128. floating-point rounding behavior. This is round-to-zero for all
  8129. floating point to integer conversions, and round-to-nearest for all
  8130. other arithmetic truncations. This option should be specified for
  8131. programs that change the FP rounding mode dynamically, or that may
  8132. be executed with a non-default rounding mode. This option disables
  8133. constant folding of floating-point expressions at compile time
  8134. (which may be affected by rounding mode) and arithmetic
  8135. transformations that are unsafe in the presence of sign-dependent
  8136. rounding modes.
  8137. The default is '-fno-rounding-math'.
  8138. This option is experimental and does not currently guarantee to
  8139. disable all GCC optimizations that are affected by rounding mode.
  8140. Future versions of GCC may provide finer control of this setting
  8141. using C99's 'FENV_ACCESS' pragma. This command-line option will be
  8142. used to specify the default state for 'FENV_ACCESS'.
  8143. '-fsignaling-nans'
  8144. Compile code assuming that IEEE signaling NaNs may generate
  8145. user-visible traps during floating-point operations. Setting this
  8146. option disables optimizations that may change the number of
  8147. exceptions visible with signaling NaNs. This option implies
  8148. '-ftrapping-math'.
  8149. This option causes the preprocessor macro '__SUPPORT_SNAN__' to be
  8150. defined.
  8151. The default is '-fno-signaling-nans'.
  8152. This option is experimental and does not currently guarantee to
  8153. disable all GCC optimizations that affect signaling NaN behavior.
  8154. '-fno-fp-int-builtin-inexact'
  8155. Do not allow the built-in functions 'ceil', 'floor', 'round' and
  8156. 'trunc', and their 'float' and 'long double' variants, to generate
  8157. code that raises the "inexact" floating-point exception for
  8158. noninteger arguments. ISO C99 and C11 allow these functions to
  8159. raise the "inexact" exception, but ISO/IEC TS 18661-1:2014, the C
  8160. bindings to IEEE 754-2008, does not allow these functions to do so.
  8161. The default is '-ffp-int-builtin-inexact', allowing the exception
  8162. to be raised. This option does nothing unless '-ftrapping-math' is
  8163. in effect.
  8164. Even if '-fno-fp-int-builtin-inexact' is used, if the functions
  8165. generate a call to a library function then the "inexact" exception
  8166. may be raised if the library implementation does not follow TS
  8167. 18661.
  8168. '-fsingle-precision-constant'
  8169. Treat floating-point constants as single precision instead of
  8170. implicitly converting them to double-precision constants.
  8171. '-fcx-limited-range'
  8172. When enabled, this option states that a range reduction step is not
  8173. needed when performing complex division. Also, there is no
  8174. checking whether the result of a complex multiplication or division
  8175. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  8176. case. The default is '-fno-cx-limited-range', but is enabled by
  8177. '-ffast-math'.
  8178. This option controls the default setting of the ISO C99
  8179. 'CX_LIMITED_RANGE' pragma. Nevertheless, the option applies to all
  8180. languages.
  8181. '-fcx-fortran-rules'
  8182. Complex multiplication and division follow Fortran rules. Range
  8183. reduction is done as part of complex division, but there is no
  8184. checking whether the result of a complex multiplication or division
  8185. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  8186. case.
  8187. The default is '-fno-cx-fortran-rules'.
  8188. The following options control optimizations that may improve
  8189. performance, but are not enabled by any '-O' options. This section
  8190. includes experimental options that may produce broken code.
  8191. '-fbranch-probabilities'
  8192. After running a program compiled with '-fprofile-arcs' (*note
  8193. Instrumentation Options::), you can compile it a second time using
  8194. '-fbranch-probabilities', to improve optimizations based on the
  8195. number of times each branch was taken. When a program compiled
  8196. with '-fprofile-arcs' exits, it saves arc execution counts to a
  8197. file called 'SOURCENAME.gcda' for each source file. The
  8198. information in this data file is very dependent on the structure of
  8199. the generated code, so you must use the same source code and the
  8200. same optimization options for both compilations.
  8201. With '-fbranch-probabilities', GCC puts a 'REG_BR_PROB' note on
  8202. each 'JUMP_INSN' and 'CALL_INSN'. These can be used to improve
  8203. optimization. Currently, they are only used in one place: in
  8204. 'reorg.c', instead of guessing which path a branch is most likely
  8205. to take, the 'REG_BR_PROB' values are used to exactly determine
  8206. which path is taken more often.
  8207. Enabled by '-fprofile-use' and '-fauto-profile'.
  8208. '-fprofile-values'
  8209. If combined with '-fprofile-arcs', it adds code so that some data
  8210. about values of expressions in the program is gathered.
  8211. With '-fbranch-probabilities', it reads back the data gathered from
  8212. profiling values of expressions for usage in optimizations.
  8213. Enabled by '-fprofile-generate', '-fprofile-use', and
  8214. '-fauto-profile'.
  8215. '-fprofile-reorder-functions'
  8216. Function reordering based on profile instrumentation collects first
  8217. time of execution of a function and orders these functions in
  8218. ascending order.
  8219. Enabled with '-fprofile-use'.
  8220. '-fvpt'
  8221. If combined with '-fprofile-arcs', this option instructs the
  8222. compiler to add code to gather information about values of
  8223. expressions.
  8224. With '-fbranch-probabilities', it reads back the data gathered and
  8225. actually performs the optimizations based on them. Currently the
  8226. optimizations include specialization of division operations using
  8227. the knowledge about the value of the denominator.
  8228. Enabled with '-fprofile-use' and '-fauto-profile'.
  8229. '-frename-registers'
  8230. Attempt to avoid false dependencies in scheduled code by making use
  8231. of registers left over after register allocation. This
  8232. optimization most benefits processors with lots of registers.
  8233. Depending on the debug information format adopted by the target,
  8234. however, it can make debugging impossible, since variables no
  8235. longer stay in a "home register".
  8236. Enabled by default with '-funroll-loops'.
  8237. '-fschedule-fusion'
  8238. Performs a target dependent pass over the instruction stream to
  8239. schedule instructions of same type together because target machine
  8240. can execute them more efficiently if they are adjacent to each
  8241. other in the instruction flow.
  8242. Enabled at levels '-O2', '-O3', '-Os'.
  8243. '-ftracer'
  8244. Perform tail duplication to enlarge superblock size. This
  8245. transformation simplifies the control flow of the function allowing
  8246. other optimizations to do a better job.
  8247. Enabled by '-fprofile-use' and '-fauto-profile'.
  8248. '-funroll-loops'
  8249. Unroll loops whose number of iterations can be determined at
  8250. compile time or upon entry to the loop. '-funroll-loops' implies
  8251. '-frerun-cse-after-loop', '-fweb' and '-frename-registers'. It
  8252. also turns on complete loop peeling (i.e. complete removal of loops
  8253. with a small constant number of iterations). This option makes
  8254. code larger, and may or may not make it run faster.
  8255. Enabled by '-fprofile-use' and '-fauto-profile'.
  8256. '-funroll-all-loops'
  8257. Unroll all loops, even if their number of iterations is uncertain
  8258. when the loop is entered. This usually makes programs run more
  8259. slowly. '-funroll-all-loops' implies the same options as
  8260. '-funroll-loops'.
  8261. '-fpeel-loops'
  8262. Peels loops for which there is enough information that they do not
  8263. roll much (from profile feedback or static analysis). It also
  8264. turns on complete loop peeling (i.e. complete removal of loops with
  8265. small constant number of iterations).
  8266. Enabled by '-O3', '-fprofile-use', and '-fauto-profile'.
  8267. '-fmove-loop-invariants'
  8268. Enables the loop invariant motion pass in the RTL loop optimizer.
  8269. Enabled at level '-O1' and higher, except for '-Og'.
  8270. '-fsplit-loops'
  8271. Split a loop into two if it contains a condition that's always true
  8272. for one side of the iteration space and false for the other.
  8273. Enabled by '-fprofile-use' and '-fauto-profile'.
  8274. '-funswitch-loops'
  8275. Move branches with loop invariant conditions out of the loop, with
  8276. duplicates of the loop on both branches (modified according to
  8277. result of the condition).
  8278. Enabled by '-fprofile-use' and '-fauto-profile'.
  8279. '-fversion-loops-for-strides'
  8280. If a loop iterates over an array with a variable stride, create
  8281. another version of the loop that assumes the stride is always one.
  8282. For example:
  8283. for (int i = 0; i < n; ++i)
  8284. x[i * stride] = ...;
  8285. becomes:
  8286. if (stride == 1)
  8287. for (int i = 0; i < n; ++i)
  8288. x[i] = ...;
  8289. else
  8290. for (int i = 0; i < n; ++i)
  8291. x[i * stride] = ...;
  8292. This is particularly useful for assumed-shape arrays in Fortran
  8293. where (for example) it allows better vectorization assuming
  8294. contiguous accesses. This flag is enabled by default at '-O3'. It
  8295. is also enabled by '-fprofile-use' and '-fauto-profile'.
  8296. '-ffunction-sections'
  8297. '-fdata-sections'
  8298. Place each function or data item into its own section in the output
  8299. file if the target supports arbitrary sections. The name of the
  8300. function or the name of the data item determines the section's name
  8301. in the output file.
  8302. Use these options on systems where the linker can perform
  8303. optimizations to improve locality of reference in the instruction
  8304. space. Most systems using the ELF object format have linkers with
  8305. such optimizations. On AIX, the linker rearranges sections
  8306. (CSECTs) based on the call graph. The performance impact varies.
  8307. Together with a linker garbage collection (linker '--gc-sections'
  8308. option) these options may lead to smaller statically-linked
  8309. executables (after stripping).
  8310. On ELF/DWARF systems these options do not degenerate the quality of
  8311. the debug information. There could be issues with other object
  8312. files/debug info formats.
  8313. Only use these options when there are significant benefits from
  8314. doing so. When you specify these options, the assembler and linker
  8315. create larger object and executable files and are also slower.
  8316. These options affect code generation. They prevent optimizations
  8317. by the compiler and assembler using relative locations inside a
  8318. translation unit since the locations are unknown until link time.
  8319. An example of such an optimization is relaxing calls to short call
  8320. instructions.
  8321. '-fbranch-target-load-optimize'
  8322. Perform branch target register load optimization before prologue /
  8323. epilogue threading. The use of target registers can typically be
  8324. exposed only during reload, thus hoisting loads out of loops and
  8325. doing inter-block scheduling needs a separate optimization pass.
  8326. '-fbranch-target-load-optimize2'
  8327. Perform branch target register load optimization after prologue /
  8328. epilogue threading.
  8329. '-fbtr-bb-exclusive'
  8330. When performing branch target register load optimization, don't
  8331. reuse branch target registers within any basic block.
  8332. '-fstdarg-opt'
  8333. Optimize the prologue of variadic argument functions with respect
  8334. to usage of those arguments.
  8335. '-fsection-anchors'
  8336. Try to reduce the number of symbolic address calculations by using
  8337. shared "anchor" symbols to address nearby objects. This
  8338. transformation can help to reduce the number of GOT entries and GOT
  8339. accesses on some targets.
  8340. For example, the implementation of the following function 'foo':
  8341. static int a, b, c;
  8342. int foo (void) { return a + b + c; }
  8343. usually calculates the addresses of all three variables, but if you
  8344. compile it with '-fsection-anchors', it accesses the variables from
  8345. a common anchor point instead. The effect is similar to the
  8346. following pseudocode (which isn't valid C):
  8347. int foo (void)
  8348. {
  8349. register int *xr = &x;
  8350. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  8351. }
  8352. Not all targets support this option.
  8353. '--param NAME=VALUE'
  8354. In some places, GCC uses various constants to control the amount of
  8355. optimization that is done. For example, GCC does not inline
  8356. functions that contain more than a certain number of instructions.
  8357. You can control some of these constants on the command line using
  8358. the '--param' option.
  8359. The names of specific parameters, and the meaning of the values,
  8360. are tied to the internals of the compiler, and are subject to
  8361. change without notice in future releases.
  8362. In order to get minimal, maximal and default value of a parameter,
  8363. one can use '--help=param -Q' options.
  8364. In each case, the VALUE is an integer. The allowable choices for
  8365. NAME are:
  8366. 'predictable-branch-outcome'
  8367. When branch is predicted to be taken with probability lower
  8368. than this threshold (in percent), then it is considered well
  8369. predictable.
  8370. 'max-rtl-if-conversion-insns'
  8371. RTL if-conversion tries to remove conditional branches around
  8372. a block and replace them with conditionally executed
  8373. instructions. This parameter gives the maximum number of
  8374. instructions in a block which should be considered for
  8375. if-conversion. The compiler will also use other heuristics to
  8376. decide whether if-conversion is likely to be profitable.
  8377. 'max-rtl-if-conversion-predictable-cost'
  8378. 'max-rtl-if-conversion-unpredictable-cost'
  8379. RTL if-conversion will try to remove conditional branches
  8380. around a block and replace them with conditionally executed
  8381. instructions. These parameters give the maximum permissible
  8382. cost for the sequence that would be generated by if-conversion
  8383. depending on whether the branch is statically determined to be
  8384. predictable or not. The units for this parameter are the same
  8385. as those for the GCC internal seq_cost metric. The compiler
  8386. will try to provide a reasonable default for this parameter
  8387. using the BRANCH_COST target macro.
  8388. 'max-crossjump-edges'
  8389. The maximum number of incoming edges to consider for
  8390. cross-jumping. The algorithm used by '-fcrossjumping' is
  8391. O(N^2) in the number of edges incoming to each block.
  8392. Increasing values mean more aggressive optimization, making
  8393. the compilation time increase with probably small improvement
  8394. in executable size.
  8395. 'min-crossjump-insns'
  8396. The minimum number of instructions that must be matched at the
  8397. end of two blocks before cross-jumping is performed on them.
  8398. This value is ignored in the case where all instructions in
  8399. the block being cross-jumped from are matched.
  8400. 'max-grow-copy-bb-insns'
  8401. The maximum code size expansion factor when copying basic
  8402. blocks instead of jumping. The expansion is relative to a
  8403. jump instruction.
  8404. 'max-goto-duplication-insns'
  8405. The maximum number of instructions to duplicate to a block
  8406. that jumps to a computed goto. To avoid O(N^2) behavior in a
  8407. number of passes, GCC factors computed gotos early in the
  8408. compilation process, and unfactors them as late as possible.
  8409. Only computed jumps at the end of a basic blocks with no more
  8410. than max-goto-duplication-insns are unfactored.
  8411. 'max-delay-slot-insn-search'
  8412. The maximum number of instructions to consider when looking
  8413. for an instruction to fill a delay slot. If more than this
  8414. arbitrary number of instructions are searched, the time
  8415. savings from filling the delay slot are minimal, so stop
  8416. searching. Increasing values mean more aggressive
  8417. optimization, making the compilation time increase with
  8418. probably small improvement in execution time.
  8419. 'max-delay-slot-live-search'
  8420. When trying to fill delay slots, the maximum number of
  8421. instructions to consider when searching for a block with valid
  8422. live register information. Increasing this arbitrarily chosen
  8423. value means more aggressive optimization, increasing the
  8424. compilation time. This parameter should be removed when the
  8425. delay slot code is rewritten to maintain the control-flow
  8426. graph.
  8427. 'max-gcse-memory'
  8428. The approximate maximum amount of memory that can be allocated
  8429. in order to perform the global common subexpression
  8430. elimination optimization. If more memory than specified is
  8431. required, the optimization is not done.
  8432. 'max-gcse-insertion-ratio'
  8433. If the ratio of expression insertions to deletions is larger
  8434. than this value for any expression, then RTL PRE inserts or
  8435. removes the expression and thus leaves partially redundant
  8436. computations in the instruction stream.
  8437. 'max-pending-list-length'
  8438. The maximum number of pending dependencies scheduling allows
  8439. before flushing the current state and starting over. Large
  8440. functions with few branches or calls can create excessively
  8441. large lists which needlessly consume memory and resources.
  8442. 'max-modulo-backtrack-attempts'
  8443. The maximum number of backtrack attempts the scheduler should
  8444. make when modulo scheduling a loop. Larger values can
  8445. exponentially increase compilation time.
  8446. 'max-inline-insns-single'
  8447. Several parameters control the tree inliner used in GCC. This
  8448. number sets the maximum number of instructions (counted in
  8449. GCC's internal representation) in a single function that the
  8450. tree inliner considers for inlining. This only affects
  8451. functions declared inline and methods implemented in a class
  8452. declaration (C++).
  8453. 'max-inline-insns-auto'
  8454. When you use '-finline-functions' (included in '-O3'), a lot
  8455. of functions that would otherwise not be considered for
  8456. inlining by the compiler are investigated. To those
  8457. functions, a different (more restrictive) limit compared to
  8458. functions declared inline can be applied.
  8459. 'max-inline-insns-small'
  8460. This is bound applied to calls which are considered relevant
  8461. with '-finline-small-functions'.
  8462. 'max-inline-insns-size'
  8463. This is bound applied to calls which are optimized for size.
  8464. Small growth may be desirable to anticipate optimization
  8465. oppurtunities exposed by inlining.
  8466. 'uninlined-function-insns'
  8467. Number of instructions accounted by inliner for function
  8468. overhead such as function prologue and epilogue.
  8469. 'uninlined-function-time'
  8470. Extra time accounted by inliner for function overhead such as
  8471. time needed to execute function prologue and epilogue
  8472. 'uninlined-thunk-insns'
  8473. 'uninlined-thunk-time'
  8474. Same as '--param uninlined-function-insns' and '--param
  8475. uninlined-function-time' but applied to function thunks
  8476. 'inline-min-speedup'
  8477. When estimated performance improvement of caller + callee
  8478. runtime exceeds this threshold (in percent), the function can
  8479. be inlined regardless of the limit on '--param
  8480. max-inline-insns-single' and '--param max-inline-insns-auto'.
  8481. 'large-function-insns'
  8482. The limit specifying really large functions. For functions
  8483. larger than this limit after inlining, inlining is constrained
  8484. by '--param large-function-growth'. This parameter is useful
  8485. primarily to avoid extreme compilation time caused by
  8486. non-linear algorithms used by the back end.
  8487. 'large-function-growth'
  8488. Specifies maximal growth of large function caused by inlining
  8489. in percents. For example, parameter value 100 limits large
  8490. function growth to 2.0 times the original size.
  8491. 'large-unit-insns'
  8492. The limit specifying large translation unit. Growth caused by
  8493. inlining of units larger than this limit is limited by
  8494. '--param inline-unit-growth'. For small units this might be
  8495. too tight. For example, consider a unit consisting of
  8496. function A that is inline and B that just calls A three times.
  8497. If B is small relative to A, the growth of unit is 300\% and
  8498. yet such inlining is very sane. For very large units
  8499. consisting of small inlineable functions, however, the overall
  8500. unit growth limit is needed to avoid exponential explosion of
  8501. code size. Thus for smaller units, the size is increased to
  8502. '--param large-unit-insns' before applying '--param
  8503. inline-unit-growth'.
  8504. 'inline-unit-growth'
  8505. Specifies maximal overall growth of the compilation unit
  8506. caused by inlining. For example, parameter value 20 limits
  8507. unit growth to 1.2 times the original size. Cold functions
  8508. (either marked cold via an attribute or by profile feedback)
  8509. are not accounted into the unit size.
  8510. 'ipcp-unit-growth'
  8511. Specifies maximal overall growth of the compilation unit
  8512. caused by interprocedural constant propagation. For example,
  8513. parameter value 10 limits unit growth to 1.1 times the
  8514. original size.
  8515. 'large-stack-frame'
  8516. The limit specifying large stack frames. While inlining the
  8517. algorithm is trying to not grow past this limit too much.
  8518. 'large-stack-frame-growth'
  8519. Specifies maximal growth of large stack frames caused by
  8520. inlining in percents. For example, parameter value 1000
  8521. limits large stack frame growth to 11 times the original size.
  8522. 'max-inline-insns-recursive'
  8523. 'max-inline-insns-recursive-auto'
  8524. Specifies the maximum number of instructions an out-of-line
  8525. copy of a self-recursive inline function can grow into by
  8526. performing recursive inlining.
  8527. '--param max-inline-insns-recursive' applies to functions
  8528. declared inline. For functions not declared inline, recursive
  8529. inlining happens only when '-finline-functions' (included in
  8530. '-O3') is enabled; '--param max-inline-insns-recursive-auto'
  8531. applies instead.
  8532. 'max-inline-recursive-depth'
  8533. 'max-inline-recursive-depth-auto'
  8534. Specifies the maximum recursion depth used for recursive
  8535. inlining.
  8536. '--param max-inline-recursive-depth' applies to functions
  8537. declared inline. For functions not declared inline, recursive
  8538. inlining happens only when '-finline-functions' (included in
  8539. '-O3') is enabled; '--param max-inline-recursive-depth-auto'
  8540. applies instead.
  8541. 'min-inline-recursive-probability'
  8542. Recursive inlining is profitable only for function having deep
  8543. recursion in average and can hurt for function having little
  8544. recursion depth by increasing the prologue size or complexity
  8545. of function body to other optimizers.
  8546. When profile feedback is available (see '-fprofile-generate')
  8547. the actual recursion depth can be guessed from the probability
  8548. that function recurses via a given call expression. This
  8549. parameter limits inlining only to call expressions whose
  8550. probability exceeds the given threshold (in percents).
  8551. 'early-inlining-insns'
  8552. Specify growth that the early inliner can make. In effect it
  8553. increases the amount of inlining for code having a large
  8554. abstraction penalty.
  8555. 'max-early-inliner-iterations'
  8556. Limit of iterations of the early inliner. This basically
  8557. bounds the number of nested indirect calls the early inliner
  8558. can resolve. Deeper chains are still handled by late
  8559. inlining.
  8560. 'comdat-sharing-probability'
  8561. Probability (in percent) that C++ inline function with comdat
  8562. visibility are shared across multiple compilation units.
  8563. 'profile-func-internal-id'
  8564. A parameter to control whether to use function internal id in
  8565. profile database lookup. If the value is 0, the compiler uses
  8566. an id that is based on function assembler name and filename,
  8567. which makes old profile data more tolerant to source changes
  8568. such as function reordering etc.
  8569. 'min-vect-loop-bound'
  8570. The minimum number of iterations under which loops are not
  8571. vectorized when '-ftree-vectorize' is used. The number of
  8572. iterations after vectorization needs to be greater than the
  8573. value specified by this option to allow vectorization.
  8574. 'gcse-cost-distance-ratio'
  8575. Scaling factor in calculation of maximum distance an
  8576. expression can be moved by GCSE optimizations. This is
  8577. currently supported only in the code hoisting pass. The
  8578. bigger the ratio, the more aggressive code hoisting is with
  8579. simple expressions, i.e., the expressions that have cost less
  8580. than 'gcse-unrestricted-cost'. Specifying 0 disables hoisting
  8581. of simple expressions.
  8582. 'gcse-unrestricted-cost'
  8583. Cost, roughly measured as the cost of a single typical machine
  8584. instruction, at which GCSE optimizations do not constrain the
  8585. distance an expression can travel. This is currently
  8586. supported only in the code hoisting pass. The lesser the
  8587. cost, the more aggressive code hoisting is. Specifying 0
  8588. allows all expressions to travel unrestricted distances.
  8589. 'max-hoist-depth'
  8590. The depth of search in the dominator tree for expressions to
  8591. hoist. This is used to avoid quadratic behavior in hoisting
  8592. algorithm. The value of 0 does not limit on the search, but
  8593. may slow down compilation of huge functions.
  8594. 'max-tail-merge-comparisons'
  8595. The maximum amount of similar bbs to compare a bb with. This
  8596. is used to avoid quadratic behavior in tree tail merging.
  8597. 'max-tail-merge-iterations'
  8598. The maximum amount of iterations of the pass over the
  8599. function. This is used to limit compilation time in tree tail
  8600. merging.
  8601. 'store-merging-allow-unaligned'
  8602. Allow the store merging pass to introduce unaligned stores if
  8603. it is legal to do so.
  8604. 'max-stores-to-merge'
  8605. The maximum number of stores to attempt to merge into wider
  8606. stores in the store merging pass.
  8607. 'max-unrolled-insns'
  8608. The maximum number of instructions that a loop may have to be
  8609. unrolled. If a loop is unrolled, this parameter also
  8610. determines how many times the loop code is unrolled.
  8611. 'max-average-unrolled-insns'
  8612. The maximum number of instructions biased by probabilities of
  8613. their execution that a loop may have to be unrolled. If a
  8614. loop is unrolled, this parameter also determines how many
  8615. times the loop code is unrolled.
  8616. 'max-unroll-times'
  8617. The maximum number of unrollings of a single loop.
  8618. 'max-peeled-insns'
  8619. The maximum number of instructions that a loop may have to be
  8620. peeled. If a loop is peeled, this parameter also determines
  8621. how many times the loop code is peeled.
  8622. 'max-peel-times'
  8623. The maximum number of peelings of a single loop.
  8624. 'max-peel-branches'
  8625. The maximum number of branches on the hot path through the
  8626. peeled sequence.
  8627. 'max-completely-peeled-insns'
  8628. The maximum number of insns of a completely peeled loop.
  8629. 'max-completely-peel-times'
  8630. The maximum number of iterations of a loop to be suitable for
  8631. complete peeling.
  8632. 'max-completely-peel-loop-nest-depth'
  8633. The maximum depth of a loop nest suitable for complete
  8634. peeling.
  8635. 'max-unswitch-insns'
  8636. The maximum number of insns of an unswitched loop.
  8637. 'max-unswitch-level'
  8638. The maximum number of branches unswitched in a single loop.
  8639. 'lim-expensive'
  8640. The minimum cost of an expensive expression in the loop
  8641. invariant motion.
  8642. 'iv-consider-all-candidates-bound'
  8643. Bound on number of candidates for induction variables, below
  8644. which all candidates are considered for each use in induction
  8645. variable optimizations. If there are more candidates than
  8646. this, only the most relevant ones are considered to avoid
  8647. quadratic time complexity.
  8648. 'iv-max-considered-uses'
  8649. The induction variable optimizations give up on loops that
  8650. contain more induction variable uses.
  8651. 'iv-always-prune-cand-set-bound'
  8652. If the number of candidates in the set is smaller than this
  8653. value, always try to remove unnecessary ivs from the set when
  8654. adding a new one.
  8655. 'avg-loop-niter'
  8656. Average number of iterations of a loop.
  8657. 'dse-max-object-size'
  8658. Maximum size (in bytes) of objects tracked bytewise by dead
  8659. store elimination. Larger values may result in larger
  8660. compilation times.
  8661. 'dse-max-alias-queries-per-store'
  8662. Maximum number of queries into the alias oracle per store.
  8663. Larger values result in larger compilation times and may
  8664. result in more removed dead stores.
  8665. 'scev-max-expr-size'
  8666. Bound on size of expressions used in the scalar evolutions
  8667. analyzer. Large expressions slow the analyzer.
  8668. 'scev-max-expr-complexity'
  8669. Bound on the complexity of the expressions in the scalar
  8670. evolutions analyzer. Complex expressions slow the analyzer.
  8671. 'max-tree-if-conversion-phi-args'
  8672. Maximum number of arguments in a PHI supported by TREE if
  8673. conversion unless the loop is marked with simd pragma.
  8674. 'vect-max-version-for-alignment-checks'
  8675. The maximum number of run-time checks that can be performed
  8676. when doing loop versioning for alignment in the vectorizer.
  8677. 'vect-max-version-for-alias-checks'
  8678. The maximum number of run-time checks that can be performed
  8679. when doing loop versioning for alias in the vectorizer.
  8680. 'vect-max-peeling-for-alignment'
  8681. The maximum number of loop peels to enhance access alignment
  8682. for vectorizer. Value -1 means no limit.
  8683. 'max-iterations-to-track'
  8684. The maximum number of iterations of a loop the brute-force
  8685. algorithm for analysis of the number of iterations of the loop
  8686. tries to evaluate.
  8687. 'hot-bb-count-ws-permille'
  8688. A basic block profile count is considered hot if it
  8689. contributes to the given permillage (i.e. 0...1000) of the
  8690. entire profiled execution.
  8691. 'hot-bb-frequency-fraction'
  8692. Select fraction of the entry block frequency of executions of
  8693. basic block in function given basic block needs to have to be
  8694. considered hot.
  8695. 'max-predicted-iterations'
  8696. The maximum number of loop iterations we predict statically.
  8697. This is useful in cases where a function contains a single
  8698. loop with known bound and another loop with unknown bound.
  8699. The known number of iterations is predicted correctly, while
  8700. the unknown number of iterations average to roughly 10. This
  8701. means that the loop without bounds appears artificially cold
  8702. relative to the other one.
  8703. 'builtin-expect-probability'
  8704. Control the probability of the expression having the specified
  8705. value. This parameter takes a percentage (i.e. 0 ... 100) as
  8706. input.
  8707. 'builtin-string-cmp-inline-length'
  8708. The maximum length of a constant string for a builtin string
  8709. cmp call eligible for inlining.
  8710. 'align-threshold'
  8711. Select fraction of the maximal frequency of executions of a
  8712. basic block in a function to align the basic block.
  8713. 'align-loop-iterations'
  8714. A loop expected to iterate at least the selected number of
  8715. iterations is aligned.
  8716. 'tracer-dynamic-coverage'
  8717. 'tracer-dynamic-coverage-feedback'
  8718. This value is used to limit superblock formation once the
  8719. given percentage of executed instructions is covered. This
  8720. limits unnecessary code size expansion.
  8721. The 'tracer-dynamic-coverage-feedback' parameter is used only
  8722. when profile feedback is available. The real profiles (as
  8723. opposed to statically estimated ones) are much less balanced
  8724. allowing the threshold to be larger value.
  8725. 'tracer-max-code-growth'
  8726. Stop tail duplication once code growth has reached given
  8727. percentage. This is a rather artificial limit, as most of the
  8728. duplicates are eliminated later in cross jumping, so it may be
  8729. set to much higher values than is the desired code growth.
  8730. 'tracer-min-branch-ratio'
  8731. Stop reverse growth when the reverse probability of best edge
  8732. is less than this threshold (in percent).
  8733. 'tracer-min-branch-probability'
  8734. 'tracer-min-branch-probability-feedback'
  8735. Stop forward growth if the best edge has probability lower
  8736. than this threshold.
  8737. Similarly to 'tracer-dynamic-coverage' two parameters are
  8738. provided. 'tracer-min-branch-probability-feedback' is used
  8739. for compilation with profile feedback and
  8740. 'tracer-min-branch-probability' compilation without. The
  8741. value for compilation with profile feedback needs to be more
  8742. conservative (higher) in order to make tracer effective.
  8743. 'stack-clash-protection-guard-size'
  8744. Specify the size of the operating system provided stack guard
  8745. as 2 raised to NUM bytes. Higher values may reduce the number
  8746. of explicit probes, but a value larger than the operating
  8747. system provided guard will leave code vulnerable to stack
  8748. clash style attacks.
  8749. 'stack-clash-protection-probe-interval'
  8750. Stack clash protection involves probing stack space as it is
  8751. allocated. This param controls the maximum distance between
  8752. probes into the stack as 2 raised to NUM bytes. Higher values
  8753. may reduce the number of explicit probes, but a value larger
  8754. than the operating system provided guard will leave code
  8755. vulnerable to stack clash style attacks.
  8756. 'max-cse-path-length'
  8757. The maximum number of basic blocks on path that CSE considers.
  8758. 'max-cse-insns'
  8759. The maximum number of instructions CSE processes before
  8760. flushing.
  8761. 'ggc-min-expand'
  8762. GCC uses a garbage collector to manage its own memory
  8763. allocation. This parameter specifies the minimum percentage
  8764. by which the garbage collector's heap should be allowed to
  8765. expand between collections. Tuning this may improve
  8766. compilation speed; it has no effect on code generation.
  8767. The default is 30% + 70% * (RAM/1GB) with an upper bound of
  8768. 100% when RAM >= 1GB. If 'getrlimit' is available, the notion
  8769. of "RAM" is the smallest of actual RAM and 'RLIMIT_DATA' or
  8770. 'RLIMIT_AS'. If GCC is not able to calculate RAM on a
  8771. particular platform, the lower bound of 30% is used. Setting
  8772. this parameter and 'ggc-min-heapsize' to zero causes a full
  8773. collection to occur at every opportunity. This is extremely
  8774. slow, but can be useful for debugging.
  8775. 'ggc-min-heapsize'
  8776. Minimum size of the garbage collector's heap before it begins
  8777. bothering to collect garbage. The first collection occurs
  8778. after the heap expands by 'ggc-min-expand'% beyond
  8779. 'ggc-min-heapsize'. Again, tuning this may improve
  8780. compilation speed, and has no effect on code generation.
  8781. The default is the smaller of RAM/8, RLIMIT_RSS, or a limit
  8782. that tries to ensure that RLIMIT_DATA or RLIMIT_AS are not
  8783. exceeded, but with a lower bound of 4096 (four megabytes) and
  8784. an upper bound of 131072 (128 megabytes). If GCC is not able
  8785. to calculate RAM on a particular platform, the lower bound is
  8786. used. Setting this parameter very large effectively disables
  8787. garbage collection. Setting this parameter and
  8788. 'ggc-min-expand' to zero causes a full collection to occur at
  8789. every opportunity.
  8790. 'max-reload-search-insns'
  8791. The maximum number of instruction reload should look backward
  8792. for equivalent register. Increasing values mean more
  8793. aggressive optimization, making the compilation time increase
  8794. with probably slightly better performance.
  8795. 'max-cselib-memory-locations'
  8796. The maximum number of memory locations cselib should take into
  8797. account. Increasing values mean more aggressive optimization,
  8798. making the compilation time increase with probably slightly
  8799. better performance.
  8800. 'max-sched-ready-insns'
  8801. The maximum number of instructions ready to be issued the
  8802. scheduler should consider at any given time during the first
  8803. scheduling pass. Increasing values mean more thorough
  8804. searches, making the compilation time increase with probably
  8805. little benefit.
  8806. 'max-sched-region-blocks'
  8807. The maximum number of blocks in a region to be considered for
  8808. interblock scheduling.
  8809. 'max-pipeline-region-blocks'
  8810. The maximum number of blocks in a region to be considered for
  8811. pipelining in the selective scheduler.
  8812. 'max-sched-region-insns'
  8813. The maximum number of insns in a region to be considered for
  8814. interblock scheduling.
  8815. 'max-pipeline-region-insns'
  8816. The maximum number of insns in a region to be considered for
  8817. pipelining in the selective scheduler.
  8818. 'min-spec-prob'
  8819. The minimum probability (in percents) of reaching a source
  8820. block for interblock speculative scheduling.
  8821. 'max-sched-extend-regions-iters'
  8822. The maximum number of iterations through CFG to extend
  8823. regions. A value of 0 disables region extensions.
  8824. 'max-sched-insn-conflict-delay'
  8825. The maximum conflict delay for an insn to be considered for
  8826. speculative motion.
  8827. 'sched-spec-prob-cutoff'
  8828. The minimal probability of speculation success (in percents),
  8829. so that speculative insns are scheduled.
  8830. 'sched-state-edge-prob-cutoff'
  8831. The minimum probability an edge must have for the scheduler to
  8832. save its state across it.
  8833. 'sched-mem-true-dep-cost'
  8834. Minimal distance (in CPU cycles) between store and load
  8835. targeting same memory locations.
  8836. 'selsched-max-lookahead'
  8837. The maximum size of the lookahead window of selective
  8838. scheduling. It is a depth of search for available
  8839. instructions.
  8840. 'selsched-max-sched-times'
  8841. The maximum number of times that an instruction is scheduled
  8842. during selective scheduling. This is the limit on the number
  8843. of iterations through which the instruction may be pipelined.
  8844. 'selsched-insns-to-rename'
  8845. The maximum number of best instructions in the ready list that
  8846. are considered for renaming in the selective scheduler.
  8847. 'sms-min-sc'
  8848. The minimum value of stage count that swing modulo scheduler
  8849. generates.
  8850. 'max-last-value-rtl'
  8851. The maximum size measured as number of RTLs that can be
  8852. recorded in an expression in combiner for a pseudo register as
  8853. last known value of that register.
  8854. 'max-combine-insns'
  8855. The maximum number of instructions the RTL combiner tries to
  8856. combine.
  8857. 'integer-share-limit'
  8858. Small integer constants can use a shared data structure,
  8859. reducing the compiler's memory usage and increasing its speed.
  8860. This sets the maximum value of a shared integer constant.
  8861. 'ssp-buffer-size'
  8862. The minimum size of buffers (i.e. arrays) that receive stack
  8863. smashing protection when '-fstack-protection' is used.
  8864. 'min-size-for-stack-sharing'
  8865. The minimum size of variables taking part in stack slot
  8866. sharing when not optimizing.
  8867. 'max-jump-thread-duplication-stmts'
  8868. Maximum number of statements allowed in a block that needs to
  8869. be duplicated when threading jumps.
  8870. 'max-fields-for-field-sensitive'
  8871. Maximum number of fields in a structure treated in a field
  8872. sensitive manner during pointer analysis.
  8873. 'prefetch-latency'
  8874. Estimate on average number of instructions that are executed
  8875. before prefetch finishes. The distance prefetched ahead is
  8876. proportional to this constant. Increasing this number may
  8877. also lead to less streams being prefetched (see
  8878. 'simultaneous-prefetches').
  8879. 'simultaneous-prefetches'
  8880. Maximum number of prefetches that can run at the same time.
  8881. 'l1-cache-line-size'
  8882. The size of cache line in L1 data cache, in bytes.
  8883. 'l1-cache-size'
  8884. The size of L1 data cache, in kilobytes.
  8885. 'l2-cache-size'
  8886. The size of L2 data cache, in kilobytes.
  8887. 'prefetch-dynamic-strides'
  8888. Whether the loop array prefetch pass should issue software
  8889. prefetch hints for strides that are non-constant. In some
  8890. cases this may be beneficial, though the fact the stride is
  8891. non-constant may make it hard to predict when there is clear
  8892. benefit to issuing these hints.
  8893. Set to 1 if the prefetch hints should be issued for
  8894. non-constant strides. Set to 0 if prefetch hints should be
  8895. issued only for strides that are known to be constant and
  8896. below 'prefetch-minimum-stride'.
  8897. 'prefetch-minimum-stride'
  8898. Minimum constant stride, in bytes, to start using prefetch
  8899. hints for. If the stride is less than this threshold,
  8900. prefetch hints will not be issued.
  8901. This setting is useful for processors that have hardware
  8902. prefetchers, in which case there may be conflicts between the
  8903. hardware prefetchers and the software prefetchers. If the
  8904. hardware prefetchers have a maximum stride they can handle, it
  8905. should be used here to improve the use of software
  8906. prefetchers.
  8907. A value of -1 means we don't have a threshold and therefore
  8908. prefetch hints can be issued for any constant stride.
  8909. This setting is only useful for strides that are known and
  8910. constant.
  8911. 'loop-interchange-max-num-stmts'
  8912. The maximum number of stmts in a loop to be interchanged.
  8913. 'loop-interchange-stride-ratio'
  8914. The minimum ratio between stride of two loops for interchange
  8915. to be profitable.
  8916. 'min-insn-to-prefetch-ratio'
  8917. The minimum ratio between the number of instructions and the
  8918. number of prefetches to enable prefetching in a loop.
  8919. 'prefetch-min-insn-to-mem-ratio'
  8920. The minimum ratio between the number of instructions and the
  8921. number of memory references to enable prefetching in a loop.
  8922. 'use-canonical-types'
  8923. Whether the compiler should use the "canonical" type system.
  8924. Should always be 1, which uses a more efficient internal
  8925. mechanism for comparing types in C++ and Objective-C++.
  8926. However, if bugs in the canonical type system are causing
  8927. compilation failures, set this value to 0 to disable canonical
  8928. types.
  8929. 'switch-conversion-max-branch-ratio'
  8930. Switch initialization conversion refuses to create arrays that
  8931. are bigger than 'switch-conversion-max-branch-ratio' times the
  8932. number of branches in the switch.
  8933. 'max-partial-antic-length'
  8934. Maximum length of the partial antic set computed during the
  8935. tree partial redundancy elimination optimization
  8936. ('-ftree-pre') when optimizing at '-O3' and above. For some
  8937. sorts of source code the enhanced partial redundancy
  8938. elimination optimization can run away, consuming all of the
  8939. memory available on the host machine. This parameter sets a
  8940. limit on the length of the sets that are computed, which
  8941. prevents the runaway behavior. Setting a value of 0 for this
  8942. parameter allows an unlimited set length.
  8943. 'rpo-vn-max-loop-depth'
  8944. Maximum loop depth that is value-numbered optimistically.
  8945. When the limit hits the innermost RPO-VN-MAX-LOOP-DEPTH loops
  8946. and the outermost loop in the loop nest are value-numbered
  8947. optimistically and the remaining ones not.
  8948. 'sccvn-max-alias-queries-per-access'
  8949. Maximum number of alias-oracle queries we perform when looking
  8950. for redundancies for loads and stores. If this limit is hit
  8951. the search is aborted and the load or store is not considered
  8952. redundant. The number of queries is algorithmically limited
  8953. to the number of stores on all paths from the load to the
  8954. function entry.
  8955. 'ira-max-loops-num'
  8956. IRA uses regional register allocation by default. If a
  8957. function contains more loops than the number given by this
  8958. parameter, only at most the given number of the most
  8959. frequently-executed loops form regions for regional register
  8960. allocation.
  8961. 'ira-max-conflict-table-size'
  8962. Although IRA uses a sophisticated algorithm to compress the
  8963. conflict table, the table can still require excessive amounts
  8964. of memory for huge functions. If the conflict table for a
  8965. function could be more than the size in MB given by this
  8966. parameter, the register allocator instead uses a faster,
  8967. simpler, and lower-quality algorithm that does not require
  8968. building a pseudo-register conflict table.
  8969. 'ira-loop-reserved-regs'
  8970. IRA can be used to evaluate more accurate register pressure in
  8971. loops for decisions to move loop invariants (see '-O3'). The
  8972. number of available registers reserved for some other purposes
  8973. is given by this parameter. Default of the parameter is the
  8974. best found from numerous experiments.
  8975. 'lra-inheritance-ebb-probability-cutoff'
  8976. LRA tries to reuse values reloaded in registers in subsequent
  8977. insns. This optimization is called inheritance. EBB is used
  8978. as a region to do this optimization. The parameter defines a
  8979. minimal fall-through edge probability in percentage used to
  8980. add BB to inheritance EBB in LRA. The default value was chosen
  8981. from numerous runs of SPEC2000 on x86-64.
  8982. 'loop-invariant-max-bbs-in-loop'
  8983. Loop invariant motion can be very expensive, both in
  8984. compilation time and in amount of needed compile-time memory,
  8985. with very large loops. Loops with more basic blocks than this
  8986. parameter won't have loop invariant motion optimization
  8987. performed on them.
  8988. 'loop-max-datarefs-for-datadeps'
  8989. Building data dependencies is expensive for very large loops.
  8990. This parameter limits the number of data references in loops
  8991. that are considered for data dependence analysis. These large
  8992. loops are no handled by the optimizations using loop data
  8993. dependencies.
  8994. 'max-vartrack-size'
  8995. Sets a maximum number of hash table slots to use during
  8996. variable tracking dataflow analysis of any function. If this
  8997. limit is exceeded with variable tracking at assignments
  8998. enabled, analysis for that function is retried without it,
  8999. after removing all debug insns from the function. If the
  9000. limit is exceeded even without debug insns, var tracking
  9001. analysis is completely disabled for the function. Setting the
  9002. parameter to zero makes it unlimited.
  9003. 'max-vartrack-expr-depth'
  9004. Sets a maximum number of recursion levels when attempting to
  9005. map variable names or debug temporaries to value expressions.
  9006. This trades compilation time for more complete debug
  9007. information. If this is set too low, value expressions that
  9008. are available and could be represented in debug information
  9009. may end up not being used; setting this higher may enable the
  9010. compiler to find more complex debug expressions, but compile
  9011. time and memory use may grow.
  9012. 'max-debug-marker-count'
  9013. Sets a threshold on the number of debug markers (e.g. begin
  9014. stmt markers) to avoid complexity explosion at inlining or
  9015. expanding to RTL. If a function has more such gimple stmts
  9016. than the set limit, such stmts will be dropped from the
  9017. inlined copy of a function, and from its RTL expansion.
  9018. 'min-nondebug-insn-uid'
  9019. Use uids starting at this parameter for nondebug insns. The
  9020. range below the parameter is reserved exclusively for debug
  9021. insns created by '-fvar-tracking-assignments', but debug insns
  9022. may get (non-overlapping) uids above it if the reserved range
  9023. is exhausted.
  9024. 'ipa-sra-ptr-growth-factor'
  9025. IPA-SRA replaces a pointer to an aggregate with one or more
  9026. new parameters only when their cumulative size is less or
  9027. equal to 'ipa-sra-ptr-growth-factor' times the size of the
  9028. original pointer parameter.
  9029. 'sra-max-scalarization-size-Ospeed'
  9030. 'sra-max-scalarization-size-Osize'
  9031. The two Scalar Reduction of Aggregates passes (SRA and
  9032. IPA-SRA) aim to replace scalar parts of aggregates with uses
  9033. of independent scalar variables. These parameters control the
  9034. maximum size, in storage units, of aggregate which is
  9035. considered for replacement when compiling for speed
  9036. ('sra-max-scalarization-size-Ospeed') or size
  9037. ('sra-max-scalarization-size-Osize') respectively.
  9038. 'tm-max-aggregate-size'
  9039. When making copies of thread-local variables in a transaction,
  9040. this parameter specifies the size in bytes after which
  9041. variables are saved with the logging functions as opposed to
  9042. save/restore code sequence pairs. This option only applies
  9043. when using '-fgnu-tm'.
  9044. 'graphite-max-nb-scop-params'
  9045. To avoid exponential effects in the Graphite loop transforms,
  9046. the number of parameters in a Static Control Part (SCoP) is
  9047. bounded. A value of zero can be used to lift the bound. A
  9048. variable whose value is unknown at compilation time and
  9049. defined outside a SCoP is a parameter of the SCoP.
  9050. 'loop-block-tile-size'
  9051. Loop blocking or strip mining transforms, enabled with
  9052. '-floop-block' or '-floop-strip-mine', strip mine each loop in
  9053. the loop nest by a given number of iterations. The strip
  9054. length can be changed using the 'loop-block-tile-size'
  9055. parameter.
  9056. 'ipa-cp-value-list-size'
  9057. IPA-CP attempts to track all possible values and types passed
  9058. to a function's parameter in order to propagate them and
  9059. perform devirtualization. 'ipa-cp-value-list-size' is the
  9060. maximum number of values and types it stores per one formal
  9061. parameter of a function.
  9062. 'ipa-cp-eval-threshold'
  9063. IPA-CP calculates its own score of cloning profitability
  9064. heuristics and performs those cloning opportunities with
  9065. scores that exceed 'ipa-cp-eval-threshold'.
  9066. 'ipa-cp-recursion-penalty'
  9067. Percentage penalty the recursive functions will receive when
  9068. they are evaluated for cloning.
  9069. 'ipa-cp-single-call-penalty'
  9070. Percentage penalty functions containing a single call to
  9071. another function will receive when they are evaluated for
  9072. cloning.
  9073. 'ipa-max-agg-items'
  9074. IPA-CP is also capable to propagate a number of scalar values
  9075. passed in an aggregate. 'ipa-max-agg-items' controls the
  9076. maximum number of such values per one parameter.
  9077. 'ipa-cp-loop-hint-bonus'
  9078. When IPA-CP determines that a cloning candidate would make the
  9079. number of iterations of a loop known, it adds a bonus of
  9080. 'ipa-cp-loop-hint-bonus' to the profitability score of the
  9081. candidate.
  9082. 'ipa-cp-array-index-hint-bonus'
  9083. When IPA-CP determines that a cloning candidate would make the
  9084. index of an array access known, it adds a bonus of
  9085. 'ipa-cp-array-index-hint-bonus' to the profitability score of
  9086. the candidate.
  9087. 'ipa-max-aa-steps'
  9088. During its analysis of function bodies, IPA-CP employs alias
  9089. analysis in order to track values pointed to by function
  9090. parameters. In order not spend too much time analyzing huge
  9091. functions, it gives up and consider all memory clobbered after
  9092. examining 'ipa-max-aa-steps' statements modifying memory.
  9093. 'lto-partitions'
  9094. Specify desired number of partitions produced during WHOPR
  9095. compilation. The number of partitions should exceed the
  9096. number of CPUs used for compilation.
  9097. 'lto-min-partition'
  9098. Size of minimal partition for WHOPR (in estimated
  9099. instructions). This prevents expenses of splitting very small
  9100. programs into too many partitions.
  9101. 'lto-max-partition'
  9102. Size of max partition for WHOPR (in estimated instructions).
  9103. to provide an upper bound for individual size of partition.
  9104. Meant to be used only with balanced partitioning.
  9105. 'lto-max-streaming-parallelism'
  9106. Maximal number of parallel processes used for LTO streaming.
  9107. 'cxx-max-namespaces-for-diagnostic-help'
  9108. The maximum number of namespaces to consult for suggestions
  9109. when C++ name lookup fails for an identifier.
  9110. 'sink-frequency-threshold'
  9111. The maximum relative execution frequency (in percents) of the
  9112. target block relative to a statement's original block to allow
  9113. statement sinking of a statement. Larger numbers result in
  9114. more aggressive statement sinking. A small positive
  9115. adjustment is applied for statements with memory operands as
  9116. those are even more profitable so sink.
  9117. 'max-stores-to-sink'
  9118. The maximum number of conditional store pairs that can be
  9119. sunk. Set to 0 if either vectorization ('-ftree-vectorize')
  9120. or if-conversion ('-ftree-loop-if-convert') is disabled.
  9121. 'allow-store-data-races'
  9122. Allow optimizers to introduce new data races on stores. Set
  9123. to 1 to allow, otherwise to 0.
  9124. 'case-values-threshold'
  9125. The smallest number of different values for which it is best
  9126. to use a jump-table instead of a tree of conditional branches.
  9127. If the value is 0, use the default for the machine.
  9128. 'tree-reassoc-width'
  9129. Set the maximum number of instructions executed in parallel in
  9130. reassociated tree. This parameter overrides target dependent
  9131. heuristics used by default if has non zero value.
  9132. 'sched-pressure-algorithm'
  9133. Choose between the two available implementations of
  9134. '-fsched-pressure'. Algorithm 1 is the original
  9135. implementation and is the more likely to prevent instructions
  9136. from being reordered. Algorithm 2 was designed to be a
  9137. compromise between the relatively conservative approach taken
  9138. by algorithm 1 and the rather aggressive approach taken by the
  9139. default scheduler. It relies more heavily on having a regular
  9140. register file and accurate register pressure classes. See
  9141. 'haifa-sched.c' in the GCC sources for more details.
  9142. The default choice depends on the target.
  9143. 'max-slsr-cand-scan'
  9144. Set the maximum number of existing candidates that are
  9145. considered when seeking a basis for a new straight-line
  9146. strength reduction candidate.
  9147. 'asan-globals'
  9148. Enable buffer overflow detection for global objects. This
  9149. kind of protection is enabled by default if you are using
  9150. '-fsanitize=address' option. To disable global objects
  9151. protection use '--param asan-globals=0'.
  9152. 'asan-stack'
  9153. Enable buffer overflow detection for stack objects. This kind
  9154. of protection is enabled by default when using
  9155. '-fsanitize=address'. To disable stack protection use
  9156. '--param asan-stack=0' option.
  9157. 'asan-instrument-reads'
  9158. Enable buffer overflow detection for memory reads. This kind
  9159. of protection is enabled by default when using
  9160. '-fsanitize=address'. To disable memory reads protection use
  9161. '--param asan-instrument-reads=0'.
  9162. 'asan-instrument-writes'
  9163. Enable buffer overflow detection for memory writes. This kind
  9164. of protection is enabled by default when using
  9165. '-fsanitize=address'. To disable memory writes protection use
  9166. '--param asan-instrument-writes=0' option.
  9167. 'asan-memintrin'
  9168. Enable detection for built-in functions. This kind of
  9169. protection is enabled by default when using
  9170. '-fsanitize=address'. To disable built-in functions
  9171. protection use '--param asan-memintrin=0'.
  9172. 'asan-use-after-return'
  9173. Enable detection of use-after-return. This kind of protection
  9174. is enabled by default when using the '-fsanitize=address'
  9175. option. To disable it use '--param asan-use-after-return=0'.
  9176. Note: By default the check is disabled at run time. To enable
  9177. it, add 'detect_stack_use_after_return=1' to the environment
  9178. variable 'ASAN_OPTIONS'.
  9179. 'asan-instrumentation-with-call-threshold'
  9180. If number of memory accesses in function being instrumented is
  9181. greater or equal to this number, use callbacks instead of
  9182. inline checks. E.g. to disable inline code use '--param
  9183. asan-instrumentation-with-call-threshold=0'.
  9184. 'use-after-scope-direct-emission-threshold'
  9185. If the size of a local variable in bytes is smaller or equal
  9186. to this number, directly poison (or unpoison) shadow memory
  9187. instead of using run-time callbacks.
  9188. 'max-fsm-thread-path-insns'
  9189. Maximum number of instructions to copy when duplicating blocks
  9190. on a finite state automaton jump thread path.
  9191. 'max-fsm-thread-length'
  9192. Maximum number of basic blocks on a finite state automaton
  9193. jump thread path.
  9194. 'max-fsm-thread-paths'
  9195. Maximum number of new jump thread paths to create for a finite
  9196. state automaton.
  9197. 'parloops-chunk-size'
  9198. Chunk size of omp schedule for loops parallelized by parloops.
  9199. 'parloops-schedule'
  9200. Schedule type of omp schedule for loops parallelized by
  9201. parloops (static, dynamic, guided, auto, runtime).
  9202. 'parloops-min-per-thread'
  9203. The minimum number of iterations per thread of an innermost
  9204. parallelized loop for which the parallelized variant is
  9205. preferred over the single threaded one. Note that for a
  9206. parallelized loop nest the minimum number of iterations of the
  9207. outermost loop per thread is two.
  9208. 'max-ssa-name-query-depth'
  9209. Maximum depth of recursion when querying properties of SSA
  9210. names in things like fold routines. One level of recursion
  9211. corresponds to following a use-def chain.
  9212. 'hsa-gen-debug-stores'
  9213. Enable emission of special debug stores within HSA kernels
  9214. which are then read and reported by libgomp plugin.
  9215. Generation of these stores is disabled by default, use
  9216. '--param hsa-gen-debug-stores=1' to enable it.
  9217. 'max-speculative-devirt-maydefs'
  9218. The maximum number of may-defs we analyze when looking for a
  9219. must-def specifying the dynamic type of an object that invokes
  9220. a virtual call we may be able to devirtualize speculatively.
  9221. 'max-vrp-switch-assertions'
  9222. The maximum number of assertions to add along the default edge
  9223. of a switch statement during VRP.
  9224. 'unroll-jam-min-percent'
  9225. The minimum percentage of memory references that must be
  9226. optimized away for the unroll-and-jam transformation to be
  9227. considered profitable.
  9228. 'unroll-jam-max-unroll'
  9229. The maximum number of times the outer loop should be unrolled
  9230. by the unroll-and-jam transformation.
  9231. 'max-rtl-if-conversion-unpredictable-cost'
  9232. Maximum permissible cost for the sequence that would be
  9233. generated by the RTL if-conversion pass for a branch that is
  9234. considered unpredictable.
  9235. 'max-variable-expansions-in-unroller'
  9236. If '-fvariable-expansion-in-unroller' is used, the maximum
  9237. number of times that an individual variable will be expanded
  9238. during loop unrolling.
  9239. 'tracer-min-branch-probability-feedback'
  9240. Stop forward growth if the probability of best edge is less
  9241. than this threshold (in percent). Used when profile feedback
  9242. is available.
  9243. 'partial-inlining-entry-probability'
  9244. Maximum probability of the entry BB of split region (in
  9245. percent relative to entry BB of the function) to make partial
  9246. inlining happen.
  9247. 'max-tracked-strlens'
  9248. Maximum number of strings for which strlen optimization pass
  9249. will track string lengths.
  9250. 'gcse-after-reload-partial-fraction'
  9251. The threshold ratio for performing partial redundancy
  9252. elimination after reload.
  9253. 'gcse-after-reload-critical-fraction'
  9254. The threshold ratio of critical edges execution count that
  9255. permit performing redundancy elimination after reload.
  9256. 'max-loop-header-insns'
  9257. The maximum number of insns in loop header duplicated by the
  9258. copy loop headers pass.
  9259. 'vect-epilogues-nomask'
  9260. Enable loop epilogue vectorization using smaller vector size.
  9261. 'slp-max-insns-in-bb'
  9262. Maximum number of instructions in basic block to be considered
  9263. for SLP vectorization.
  9264. 'avoid-fma-max-bits'
  9265. Maximum number of bits for which we avoid creating FMAs.
  9266. 'sms-loop-average-count-threshold'
  9267. A threshold on the average loop count considered by the swing
  9268. modulo scheduler.
  9269. 'sms-dfa-history'
  9270. The number of cycles the swing modulo scheduler considers when
  9271. checking conflicts using DFA.
  9272. 'hot-bb-count-fraction'
  9273. Select fraction of the maximal count of repetitions of basic
  9274. block in program given basic block needs to have to be
  9275. considered hot (used in non-LTO mode)
  9276. 'max-inline-insns-recursive-auto'
  9277. The maximum number of instructions non-inline function can
  9278. grow to via recursive inlining.
  9279. 'graphite-allow-codegen-errors'
  9280. Whether codegen errors should be ICEs when '-fchecking'.
  9281. 'sms-max-ii-factor'
  9282. A factor for tuning the upper bound that swing modulo
  9283. scheduler uses for scheduling a loop.
  9284. 'lra-max-considered-reload-pseudos'
  9285. The max number of reload pseudos which are considered during
  9286. spilling a non-reload pseudo.
  9287. 'max-pow-sqrt-depth'
  9288. Maximum depth of sqrt chains to use when synthesizing
  9289. exponentiation by a real constant.
  9290. 'max-dse-active-local-stores'
  9291. Maximum number of active local stores in RTL dead store
  9292. elimination.
  9293. 'asan-instrument-allocas'
  9294. Enable asan allocas/VLAs protection.
  9295. 'max-iterations-computation-cost'
  9296. Bound on the cost of an expression to compute the number of
  9297. iterations.
  9298. 'max-isl-operations'
  9299. Maximum number of isl operations, 0 means unlimited.
  9300. 'graphite-max-arrays-per-scop'
  9301. Maximum number of arrays per scop.
  9302. 'max-vartrack-reverse-op-size'
  9303. Max. size of loc list for which reverse ops should be added.
  9304. 'unlikely-bb-count-fraction'
  9305. The minimum fraction of profile runs a given basic block
  9306. execution count must be not to be considered unlikely.
  9307. 'tracer-dynamic-coverage-feedback'
  9308. The percentage of function, weighted by execution frequency,
  9309. that must be covered by trace formation. Used when profile
  9310. feedback is available.
  9311. 'max-inline-recursive-depth-auto'
  9312. The maximum depth of recursive inlining for non-inline
  9313. functions.
  9314. 'fsm-scale-path-stmts'
  9315. Scale factor to apply to the number of statements in a
  9316. threading path when comparing to the number of (scaled)
  9317. blocks.
  9318. 'fsm-maximum-phi-arguments'
  9319. Maximum number of arguments a PHI may have before the FSM
  9320. threader will not try to thread through its block.
  9321. 'uninit-control-dep-attempts'
  9322. Maximum number of nested calls to search for control
  9323. dependencies during uninitialized variable analysis.
  9324. 'indir-call-topn-profile'
  9325. Track top N target addresses in indirect-call profile.
  9326. 'max-once-peeled-insns'
  9327. The maximum number of insns of a peeled loop that rolls only
  9328. once.
  9329. 'sra-max-scalarization-size-Osize'
  9330. Maximum size, in storage units, of an aggregate which should
  9331. be considered for scalarization when compiling for size.
  9332. 'fsm-scale-path-blocks'
  9333. Scale factor to apply to the number of blocks in a threading
  9334. path when comparing to the number of (scaled) statements.
  9335. 'sched-autopref-queue-depth'
  9336. Hardware autoprefetcher scheduler model control flag. Number
  9337. of lookahead cycles the model looks into; at ' ' only enable
  9338. instruction sorting heuristic.
  9339. 'loop-versioning-max-inner-insns'
  9340. The maximum number of instructions that an inner loop can have
  9341. before the loop versioning pass considers it too big to copy.
  9342. 'loop-versioning-max-outer-insns'
  9343. The maximum number of instructions that an outer loop can have
  9344. before the loop versioning pass considers it too big to copy,
  9345. discounting any instructions in inner loops that directly
  9346. benefit from versioning.
  9347. 'ssa-name-def-chain-limit'
  9348. The maximum number of SSA_NAME assignments to follow in
  9349. determining a property of a variable such as its value. This
  9350. limits the number of iterations or recursive calls GCC
  9351. performs when optimizing certain statements or when
  9352. determining their validity prior to issuing diagnostics.
  9353. 
  9354. File: gcc.info, Node: Instrumentation Options, Next: Preprocessor Options, Prev: Optimize Options, Up: Invoking GCC
  9355. 3.11 Program Instrumentation Options
  9356. ====================================
  9357. GCC supports a number of command-line options that control adding
  9358. run-time instrumentation to the code it normally generates. For
  9359. example, one purpose of instrumentation is collect profiling statistics
  9360. for use in finding program hot spots, code coverage analysis, or
  9361. profile-guided optimizations. Another class of program instrumentation
  9362. is adding run-time checking to detect programming errors like invalid
  9363. pointer dereferences or out-of-bounds array accesses, as well as
  9364. deliberately hostile attacks such as stack smashing or C++ vtable
  9365. hijacking. There is also a general hook which can be used to implement
  9366. other forms of tracing or function-level instrumentation for debug or
  9367. program analysis purposes.
  9368. '-p'
  9369. '-pg'
  9370. Generate extra code to write profile information suitable for the
  9371. analysis program 'prof' (for '-p') or 'gprof' (for '-pg'). You
  9372. must use this option when compiling the source files you want data
  9373. about, and you must also use it when linking.
  9374. You can use the function attribute 'no_instrument_function' to
  9375. suppress profiling of individual functions when compiling with
  9376. these options. *Note Common Function Attributes::.
  9377. '-fprofile-arcs'
  9378. Add code so that program flow "arcs" are instrumented. During
  9379. execution the program records how many times each branch and call
  9380. is executed and how many times it is taken or returns. On targets
  9381. that support constructors with priority support, profiling properly
  9382. handles constructors, destructors and C++ constructors (and
  9383. destructors) of classes which are used as a type of a global
  9384. variable.
  9385. When the compiled program exits it saves this data to a file called
  9386. 'AUXNAME.gcda' for each source file. The data may be used for
  9387. profile-directed optimizations ('-fbranch-probabilities'), or for
  9388. test coverage analysis ('-ftest-coverage'). Each object file's
  9389. AUXNAME is generated from the name of the output file, if
  9390. explicitly specified and it is not the final executable, otherwise
  9391. it is the basename of the source file. In both cases any suffix is
  9392. removed (e.g. 'foo.gcda' for input file 'dir/foo.c', or
  9393. 'dir/foo.gcda' for output file specified as '-o dir/foo.o'). *Note
  9394. Cross-profiling::.
  9395. '--coverage'
  9396. This option is used to compile and link code instrumented for
  9397. coverage analysis. The option is a synonym for '-fprofile-arcs'
  9398. '-ftest-coverage' (when compiling) and '-lgcov' (when linking).
  9399. See the documentation for those options for more details.
  9400. * Compile the source files with '-fprofile-arcs' plus
  9401. optimization and code generation options. For test coverage
  9402. analysis, use the additional '-ftest-coverage' option. You do
  9403. not need to profile every source file in a program.
  9404. * Compile the source files additionally with
  9405. '-fprofile-abs-path' to create absolute path names in the
  9406. '.gcno' files. This allows 'gcov' to find the correct sources
  9407. in projects where compilations occur with different working
  9408. directories.
  9409. * Link your object files with '-lgcov' or '-fprofile-arcs' (the
  9410. latter implies the former).
  9411. * Run the program on a representative workload to generate the
  9412. arc profile information. This may be repeated any number of
  9413. times. You can run concurrent instances of your program, and
  9414. provided that the file system supports locking, the data files
  9415. will be correctly updated. Unless a strict ISO C dialect
  9416. option is in effect, 'fork' calls are detected and correctly
  9417. handled without double counting.
  9418. * For profile-directed optimizations, compile the source files
  9419. again with the same optimization and code generation options
  9420. plus '-fbranch-probabilities' (*note Options that Control
  9421. Optimization: Optimize Options.).
  9422. * For test coverage analysis, use 'gcov' to produce human
  9423. readable information from the '.gcno' and '.gcda' files.
  9424. Refer to the 'gcov' documentation for further information.
  9425. With '-fprofile-arcs', for each function of your program GCC
  9426. creates a program flow graph, then finds a spanning tree for the
  9427. graph. Only arcs that are not on the spanning tree have to be
  9428. instrumented: the compiler adds code to count the number of times
  9429. that these arcs are executed. When an arc is the only exit or only
  9430. entrance to a block, the instrumentation code can be added to the
  9431. block; otherwise, a new basic block must be created to hold the
  9432. instrumentation code.
  9433. '-ftest-coverage'
  9434. Produce a notes file that the 'gcov' code-coverage utility (*note
  9435. 'gcov'--a Test Coverage Program: Gcov.) can use to show program
  9436. coverage. Each source file's note file is called 'AUXNAME.gcno'.
  9437. Refer to the '-fprofile-arcs' option above for a description of
  9438. AUXNAME and instructions on how to generate test coverage data.
  9439. Coverage data matches the source files more closely if you do not
  9440. optimize.
  9441. '-fprofile-abs-path'
  9442. Automatically convert relative source file names to absolute path
  9443. names in the '.gcno' files. This allows 'gcov' to find the correct
  9444. sources in projects where compilations occur with different working
  9445. directories.
  9446. '-fprofile-dir=PATH'
  9447. Set the directory to search for the profile data files in to PATH.
  9448. This option affects only the profile data generated by
  9449. '-fprofile-generate', '-ftest-coverage', '-fprofile-arcs' and used
  9450. by '-fprofile-use' and '-fbranch-probabilities' and its related
  9451. options. Both absolute and relative paths can be used. By
  9452. default, GCC uses the current directory as PATH, thus the profile
  9453. data file appears in the same directory as the object file. In
  9454. order to prevent the file name clashing, if the object file name is
  9455. not an absolute path, we mangle the absolute path of the
  9456. 'SOURCENAME.gcda' file and use it as the file name of a '.gcda'
  9457. file.
  9458. When an executable is run in a massive parallel environment, it is
  9459. recommended to save profile to different folders. That can be done
  9460. with variables in PATH that are exported during run-time:
  9461. '%p'
  9462. process ID.
  9463. '%q{VAR}'
  9464. value of environment variable VAR
  9465. '-fprofile-generate'
  9466. '-fprofile-generate=PATH'
  9467. Enable options usually used for instrumenting application to
  9468. produce profile useful for later recompilation with profile
  9469. feedback based optimization. You must use '-fprofile-generate'
  9470. both when compiling and when linking your program.
  9471. The following options are enabled: '-fprofile-arcs',
  9472. '-fprofile-values', '-finline-functions', and '-fipa-bit-cp'.
  9473. If PATH is specified, GCC looks at the PATH to find the profile
  9474. feedback data files. See '-fprofile-dir'.
  9475. To optimize the program based on the collected profile information,
  9476. use '-fprofile-use'. *Note Optimize Options::, for more
  9477. information.
  9478. '-fprofile-update=METHOD'
  9479. Alter the update method for an application instrumented for profile
  9480. feedback based optimization. The METHOD argument should be one of
  9481. 'single', 'atomic' or 'prefer-atomic'. The first one is useful for
  9482. single-threaded applications, while the second one prevents profile
  9483. corruption by emitting thread-safe code.
  9484. *Warning:* When an application does not properly join all threads
  9485. (or creates an detached thread), a profile file can be still
  9486. corrupted.
  9487. Using 'prefer-atomic' would be transformed either to 'atomic', when
  9488. supported by a target, or to 'single' otherwise. The GCC driver
  9489. automatically selects 'prefer-atomic' when '-pthread' is present in
  9490. the command line.
  9491. '-fprofile-filter-files=REGEX'
  9492. Instrument only functions from files where names match any regular
  9493. expression (separated by a semi-colon).
  9494. For example, '-fprofile-filter-files=main.c;module.*.c' will
  9495. instrument only 'main.c' and all C files starting with 'module'.
  9496. '-fprofile-exclude-files=REGEX'
  9497. Instrument only functions from files where names do not match all
  9498. the regular expressions (separated by a semi-colon).
  9499. For example, '-fprofile-exclude-files=/usr/*' will prevent
  9500. instrumentation of all files that are located in '/usr/' folder.
  9501. '-fsanitize=address'
  9502. Enable AddressSanitizer, a fast memory error detector. Memory
  9503. access instructions are instrumented to detect out-of-bounds and
  9504. use-after-free bugs. The option enables
  9505. '-fsanitize-address-use-after-scope'. See
  9506. <https://github.com/google/sanitizers/wiki/AddressSanitizer> for
  9507. more details. The run-time behavior can be influenced using the
  9508. 'ASAN_OPTIONS' environment variable. When set to 'help=1', the
  9509. available options are shown at startup of the instrumented program.
  9510. See
  9511. <https://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run-time-flags>
  9512. for a list of supported options. The option cannot be combined
  9513. with '-fsanitize=thread'.
  9514. '-fsanitize=kernel-address'
  9515. Enable AddressSanitizer for Linux kernel. See
  9516. <https://github.com/google/kasan/wiki> for more details.
  9517. '-fsanitize=pointer-compare'
  9518. Instrument comparison operation (<, <=, >, >=) with pointer
  9519. operands. The option must be combined with either
  9520. '-fsanitize=kernel-address' or '-fsanitize=address' The option
  9521. cannot be combined with '-fsanitize=thread'. Note: By default the
  9522. check is disabled at run time. To enable it, add
  9523. 'detect_invalid_pointer_pairs=2' to the environment variable
  9524. 'ASAN_OPTIONS'. Using 'detect_invalid_pointer_pairs=1' detects
  9525. invalid operation only when both pointers are non-null.
  9526. '-fsanitize=pointer-subtract'
  9527. Instrument subtraction with pointer operands. The option must be
  9528. combined with either '-fsanitize=kernel-address' or
  9529. '-fsanitize=address' The option cannot be combined with
  9530. '-fsanitize=thread'. Note: By default the check is disabled at run
  9531. time. To enable it, add 'detect_invalid_pointer_pairs=2' to the
  9532. environment variable 'ASAN_OPTIONS'. Using
  9533. 'detect_invalid_pointer_pairs=1' detects invalid operation only
  9534. when both pointers are non-null.
  9535. '-fsanitize=thread'
  9536. Enable ThreadSanitizer, a fast data race detector. Memory access
  9537. instructions are instrumented to detect data race bugs. See
  9538. <https://github.com/google/sanitizers/wiki#threadsanitizer> for
  9539. more details. The run-time behavior can be influenced using the
  9540. 'TSAN_OPTIONS' environment variable; see
  9541. <https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags>
  9542. for a list of supported options. The option cannot be combined
  9543. with '-fsanitize=address', '-fsanitize=leak'.
  9544. Note that sanitized atomic builtins cannot throw exceptions when
  9545. operating on invalid memory addresses with non-call exceptions
  9546. ('-fnon-call-exceptions').
  9547. '-fsanitize=leak'
  9548. Enable LeakSanitizer, a memory leak detector. This option only
  9549. matters for linking of executables and the executable is linked
  9550. against a library that overrides 'malloc' and other allocator
  9551. functions. See
  9552. <https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer>
  9553. for more details. The run-time behavior can be influenced using
  9554. the 'LSAN_OPTIONS' environment variable. The option cannot be
  9555. combined with '-fsanitize=thread'.
  9556. '-fsanitize=undefined'
  9557. Enable UndefinedBehaviorSanitizer, a fast undefined behavior
  9558. detector. Various computations are instrumented to detect
  9559. undefined behavior at runtime. Current suboptions are:
  9560. '-fsanitize=shift'
  9561. This option enables checking that the result of a shift
  9562. operation is not undefined. Note that what exactly is
  9563. considered undefined differs slightly between C and C++, as
  9564. well as between ISO C90 and C99, etc. This option has two
  9565. suboptions, '-fsanitize=shift-base' and
  9566. '-fsanitize=shift-exponent'.
  9567. '-fsanitize=shift-exponent'
  9568. This option enables checking that the second argument of a
  9569. shift operation is not negative and is smaller than the
  9570. precision of the promoted first argument.
  9571. '-fsanitize=shift-base'
  9572. If the second argument of a shift operation is within range,
  9573. check that the result of a shift operation is not undefined.
  9574. Note that what exactly is considered undefined differs
  9575. slightly between C and C++, as well as between ISO C90 and
  9576. C99, etc.
  9577. '-fsanitize=integer-divide-by-zero'
  9578. Detect integer division by zero as well as 'INT_MIN / -1'
  9579. division.
  9580. '-fsanitize=unreachable'
  9581. With this option, the compiler turns the
  9582. '__builtin_unreachable' call into a diagnostics message call
  9583. instead. When reaching the '__builtin_unreachable' call, the
  9584. behavior is undefined.
  9585. '-fsanitize=vla-bound'
  9586. This option instructs the compiler to check that the size of a
  9587. variable length array is positive.
  9588. '-fsanitize=null'
  9589. This option enables pointer checking. Particularly, the
  9590. application built with this option turned on will issue an
  9591. error message when it tries to dereference a NULL pointer, or
  9592. if a reference (possibly an rvalue reference) is bound to a
  9593. NULL pointer, or if a method is invoked on an object pointed
  9594. by a NULL pointer.
  9595. '-fsanitize=return'
  9596. This option enables return statement checking. Programs built
  9597. with this option turned on will issue an error message when
  9598. the end of a non-void function is reached without actually
  9599. returning a value. This option works in C++ only.
  9600. '-fsanitize=signed-integer-overflow'
  9601. This option enables signed integer overflow checking. We
  9602. check that the result of '+', '*', and both unary and binary
  9603. '-' does not overflow in the signed arithmetics. Note,
  9604. integer promotion rules must be taken into account. That is,
  9605. the following is not an overflow:
  9606. signed char a = SCHAR_MAX;
  9607. a++;
  9608. '-fsanitize=bounds'
  9609. This option enables instrumentation of array bounds. Various
  9610. out of bounds accesses are detected. Flexible array members,
  9611. flexible array member-like arrays, and initializers of
  9612. variables with static storage are not instrumented.
  9613. '-fsanitize=bounds-strict'
  9614. This option enables strict instrumentation of array bounds.
  9615. Most out of bounds accesses are detected, including flexible
  9616. array members and flexible array member-like arrays.
  9617. Initializers of variables with static storage are not
  9618. instrumented.
  9619. '-fsanitize=alignment'
  9620. This option enables checking of alignment of pointers when
  9621. they are dereferenced, or when a reference is bound to
  9622. insufficiently aligned target, or when a method or constructor
  9623. is invoked on insufficiently aligned object.
  9624. '-fsanitize=object-size'
  9625. This option enables instrumentation of memory references using
  9626. the '__builtin_object_size' function. Various out of bounds
  9627. pointer accesses are detected.
  9628. '-fsanitize=float-divide-by-zero'
  9629. Detect floating-point division by zero. Unlike other similar
  9630. options, '-fsanitize=float-divide-by-zero' is not enabled by
  9631. '-fsanitize=undefined', since floating-point division by zero
  9632. can be a legitimate way of obtaining infinities and NaNs.
  9633. '-fsanitize=float-cast-overflow'
  9634. This option enables floating-point type to integer conversion
  9635. checking. We check that the result of the conversion does not
  9636. overflow. Unlike other similar options,
  9637. '-fsanitize=float-cast-overflow' is not enabled by
  9638. '-fsanitize=undefined'. This option does not work well with
  9639. 'FE_INVALID' exceptions enabled.
  9640. '-fsanitize=nonnull-attribute'
  9641. This option enables instrumentation of calls, checking whether
  9642. null values are not passed to arguments marked as requiring a
  9643. non-null value by the 'nonnull' function attribute.
  9644. '-fsanitize=returns-nonnull-attribute'
  9645. This option enables instrumentation of return statements in
  9646. functions marked with 'returns_nonnull' function attribute, to
  9647. detect returning of null values from such functions.
  9648. '-fsanitize=bool'
  9649. This option enables instrumentation of loads from bool. If a
  9650. value other than 0/1 is loaded, a run-time error is issued.
  9651. '-fsanitize=enum'
  9652. This option enables instrumentation of loads from an enum
  9653. type. If a value outside the range of values for the enum
  9654. type is loaded, a run-time error is issued.
  9655. '-fsanitize=vptr'
  9656. This option enables instrumentation of C++ member function
  9657. calls, member accesses and some conversions between pointers
  9658. to base and derived classes, to verify the referenced object
  9659. has the correct dynamic type.
  9660. '-fsanitize=pointer-overflow'
  9661. This option enables instrumentation of pointer arithmetics.
  9662. If the pointer arithmetics overflows, a run-time error is
  9663. issued.
  9664. '-fsanitize=builtin'
  9665. This option enables instrumentation of arguments to selected
  9666. builtin functions. If an invalid value is passed to such
  9667. arguments, a run-time error is issued. E.g. passing 0 as the
  9668. argument to '__builtin_ctz' or '__builtin_clz' invokes
  9669. undefined behavior and is diagnosed by this option.
  9670. While '-ftrapv' causes traps for signed overflows to be emitted,
  9671. '-fsanitize=undefined' gives a diagnostic message. This currently
  9672. works only for the C family of languages.
  9673. '-fno-sanitize=all'
  9674. This option disables all previously enabled sanitizers.
  9675. '-fsanitize=all' is not allowed, as some sanitizers cannot be used
  9676. together.
  9677. '-fasan-shadow-offset=NUMBER'
  9678. This option forces GCC to use custom shadow offset in
  9679. AddressSanitizer checks. It is useful for experimenting with
  9680. different shadow memory layouts in Kernel AddressSanitizer.
  9681. '-fsanitize-sections=S1,S2,...'
  9682. Sanitize global variables in selected user-defined sections. SI
  9683. may contain wildcards.
  9684. '-fsanitize-recover[=OPTS]'
  9685. '-fsanitize-recover=' controls error recovery mode for sanitizers
  9686. mentioned in comma-separated list of OPTS. Enabling this option
  9687. for a sanitizer component causes it to attempt to continue running
  9688. the program as if no error happened. This means multiple runtime
  9689. errors can be reported in a single program run, and the exit code
  9690. of the program may indicate success even when errors have been
  9691. reported. The '-fno-sanitize-recover=' option can be used to alter
  9692. this behavior: only the first detected error is reported and
  9693. program then exits with a non-zero exit code.
  9694. Currently this feature only works for '-fsanitize=undefined' (and
  9695. its suboptions except for '-fsanitize=unreachable' and
  9696. '-fsanitize=return'), '-fsanitize=float-cast-overflow',
  9697. '-fsanitize=float-divide-by-zero', '-fsanitize=bounds-strict',
  9698. '-fsanitize=kernel-address' and '-fsanitize=address'. For these
  9699. sanitizers error recovery is turned on by default, except
  9700. '-fsanitize=address', for which this feature is experimental.
  9701. '-fsanitize-recover=all' and '-fno-sanitize-recover=all' is also
  9702. accepted, the former enables recovery for all sanitizers that
  9703. support it, the latter disables recovery for all sanitizers that
  9704. support it.
  9705. Even if a recovery mode is turned on the compiler side, it needs to
  9706. be also enabled on the runtime library side, otherwise the failures
  9707. are still fatal. The runtime library defaults to 'halt_on_error=0'
  9708. for ThreadSanitizer and UndefinedBehaviorSanitizer, while default
  9709. value for AddressSanitizer is 'halt_on_error=1'. This can be
  9710. overridden through setting the 'halt_on_error' flag in the
  9711. corresponding environment variable.
  9712. Syntax without an explicit OPTS parameter is deprecated. It is
  9713. equivalent to specifying an OPTS list of:
  9714. undefined,float-cast-overflow,float-divide-by-zero,bounds-strict
  9715. '-fsanitize-address-use-after-scope'
  9716. Enable sanitization of local variables to detect use-after-scope
  9717. bugs. The option sets '-fstack-reuse' to 'none'.
  9718. '-fsanitize-undefined-trap-on-error'
  9719. The '-fsanitize-undefined-trap-on-error' option instructs the
  9720. compiler to report undefined behavior using '__builtin_trap' rather
  9721. than a 'libubsan' library routine. The advantage of this is that
  9722. the 'libubsan' library is not needed and is not linked in, so this
  9723. is usable even in freestanding environments.
  9724. '-fsanitize-coverage=trace-pc'
  9725. Enable coverage-guided fuzzing code instrumentation. Inserts a
  9726. call to '__sanitizer_cov_trace_pc' into every basic block.
  9727. '-fsanitize-coverage=trace-cmp'
  9728. Enable dataflow guided fuzzing code instrumentation. Inserts a
  9729. call to '__sanitizer_cov_trace_cmp1', '__sanitizer_cov_trace_cmp2',
  9730. '__sanitizer_cov_trace_cmp4' or '__sanitizer_cov_trace_cmp8' for
  9731. integral comparison with both operands variable or
  9732. '__sanitizer_cov_trace_const_cmp1',
  9733. '__sanitizer_cov_trace_const_cmp2',
  9734. '__sanitizer_cov_trace_const_cmp4' or
  9735. '__sanitizer_cov_trace_const_cmp8' for integral comparison with one
  9736. operand constant, '__sanitizer_cov_trace_cmpf' or
  9737. '__sanitizer_cov_trace_cmpd' for float or double comparisons and
  9738. '__sanitizer_cov_trace_switch' for switch statements.
  9739. '-fcf-protection=[full|branch|return|none]'
  9740. Enable code instrumentation of control-flow transfers to increase
  9741. program security by checking that target addresses of control-flow
  9742. transfer instructions (such as indirect function call, function
  9743. return, indirect jump) are valid. This prevents diverting the flow
  9744. of control to an unexpected target. This is intended to protect
  9745. against such threats as Return-oriented Programming (ROP), and
  9746. similarly call/jmp-oriented programming (COP/JOP).
  9747. The value 'branch' tells the compiler to implement checking of
  9748. validity of control-flow transfer at the point of indirect branch
  9749. instructions, i.e. call/jmp instructions. The value 'return'
  9750. implements checking of validity at the point of returning from a
  9751. function. The value 'full' is an alias for specifying both
  9752. 'branch' and 'return'. The value 'none' turns off instrumentation.
  9753. The macro '__CET__' is defined when '-fcf-protection' is used. The
  9754. first bit of '__CET__' is set to 1 for the value 'branch' and the
  9755. second bit of '__CET__' is set to 1 for the 'return'.
  9756. You can also use the 'nocf_check' attribute to identify which
  9757. functions and calls should be skipped from instrumentation (*note
  9758. Function Attributes::).
  9759. Currently the x86 GNU/Linux target provides an implementation based
  9760. on Intel Control-flow Enforcement Technology (CET).
  9761. '-fstack-protector'
  9762. Emit extra code to check for buffer overflows, such as stack
  9763. smashing attacks. This is done by adding a guard variable to
  9764. functions with vulnerable objects. This includes functions that
  9765. call 'alloca', and functions with buffers larger than 8 bytes. The
  9766. guards are initialized when a function is entered and then checked
  9767. when the function exits. If a guard check fails, an error message
  9768. is printed and the program exits.
  9769. '-fstack-protector-all'
  9770. Like '-fstack-protector' except that all functions are protected.
  9771. '-fstack-protector-strong'
  9772. Like '-fstack-protector' but includes additional functions to be
  9773. protected -- those that have local array definitions, or have
  9774. references to local frame addresses.
  9775. '-fstack-protector-explicit'
  9776. Like '-fstack-protector' but only protects those functions which
  9777. have the 'stack_protect' attribute.
  9778. '-fstack-check'
  9779. Generate code to verify that you do not go beyond the boundary of
  9780. the stack. You should specify this flag if you are running in an
  9781. environment with multiple threads, but you only rarely need to
  9782. specify it in a single-threaded environment since stack overflow is
  9783. automatically detected on nearly all systems if there is only one
  9784. stack.
  9785. Note that this switch does not actually cause checking to be done;
  9786. the operating system or the language runtime must do that. The
  9787. switch causes generation of code to ensure that they see the stack
  9788. being extended.
  9789. You can additionally specify a string parameter: 'no' means no
  9790. checking, 'generic' means force the use of old-style checking,
  9791. 'specific' means use the best checking method and is equivalent to
  9792. bare '-fstack-check'.
  9793. Old-style checking is a generic mechanism that requires no specific
  9794. target support in the compiler but comes with the following
  9795. drawbacks:
  9796. 1. Modified allocation strategy for large objects: they are
  9797. always allocated dynamically if their size exceeds a fixed
  9798. threshold. Note this may change the semantics of some code.
  9799. 2. Fixed limit on the size of the static frame of functions: when
  9800. it is topped by a particular function, stack checking is not
  9801. reliable and a warning is issued by the compiler.
  9802. 3. Inefficiency: because of both the modified allocation strategy
  9803. and the generic implementation, code performance is hampered.
  9804. Note that old-style stack checking is also the fallback method for
  9805. 'specific' if no target support has been added in the compiler.
  9806. '-fstack-check=' is designed for Ada's needs to detect infinite
  9807. recursion and stack overflows. 'specific' is an excellent choice
  9808. when compiling Ada code. It is not generally sufficient to protect
  9809. against stack-clash attacks. To protect against those you want
  9810. '-fstack-clash-protection'.
  9811. '-fstack-clash-protection'
  9812. Generate code to prevent stack clash style attacks. When this
  9813. option is enabled, the compiler will only allocate one page of
  9814. stack space at a time and each page is accessed immediately after
  9815. allocation. Thus, it prevents allocations from jumping over any
  9816. stack guard page provided by the operating system.
  9817. Most targets do not fully support stack clash protection. However,
  9818. on those targets '-fstack-clash-protection' will protect dynamic
  9819. stack allocations. '-fstack-clash-protection' may also provide
  9820. limited protection for static stack allocations if the target
  9821. supports '-fstack-check=specific'.
  9822. '-fstack-limit-register=REG'
  9823. '-fstack-limit-symbol=SYM'
  9824. '-fno-stack-limit'
  9825. Generate code to ensure that the stack does not grow beyond a
  9826. certain value, either the value of a register or the address of a
  9827. symbol. If a larger stack is required, a signal is raised at run
  9828. time. For most targets, the signal is raised before the stack
  9829. overruns the boundary, so it is possible to catch the signal
  9830. without taking special precautions.
  9831. For instance, if the stack starts at absolute address '0x80000000'
  9832. and grows downwards, you can use the flags
  9833. '-fstack-limit-symbol=__stack_limit' and
  9834. '-Wl,--defsym,__stack_limit=0x7ffe0000' to enforce a stack limit of
  9835. 128KB. Note that this may only work with the GNU linker.
  9836. You can locally override stack limit checking by using the
  9837. 'no_stack_limit' function attribute (*note Function Attributes::).
  9838. '-fsplit-stack'
  9839. Generate code to automatically split the stack before it overflows.
  9840. The resulting program has a discontiguous stack which can only
  9841. overflow if the program is unable to allocate any more memory.
  9842. This is most useful when running threaded programs, as it is no
  9843. longer necessary to calculate a good stack size to use for each
  9844. thread. This is currently only implemented for the x86 targets
  9845. running GNU/Linux.
  9846. When code compiled with '-fsplit-stack' calls code compiled without
  9847. '-fsplit-stack', there may not be much stack space available for
  9848. the latter code to run. If compiling all code, including library
  9849. code, with '-fsplit-stack' is not an option, then the linker can
  9850. fix up these calls so that the code compiled without
  9851. '-fsplit-stack' always has a large stack. Support for this is
  9852. implemented in the gold linker in GNU binutils release 2.21 and
  9853. later.
  9854. '-fvtable-verify=[std|preinit|none]'
  9855. This option is only available when compiling C++ code. It turns on
  9856. (or off, if using '-fvtable-verify=none') the security feature that
  9857. verifies at run time, for every virtual call, that the vtable
  9858. pointer through which the call is made is valid for the type of the
  9859. object, and has not been corrupted or overwritten. If an invalid
  9860. vtable pointer is detected at run time, an error is reported and
  9861. execution of the program is immediately halted.
  9862. This option causes run-time data structures to be built at program
  9863. startup, which are used for verifying the vtable pointers. The
  9864. options 'std' and 'preinit' control the timing of when these data
  9865. structures are built. In both cases the data structures are built
  9866. before execution reaches 'main'. Using '-fvtable-verify=std'
  9867. causes the data structures to be built after shared libraries have
  9868. been loaded and initialized. '-fvtable-verify=preinit' causes them
  9869. to be built before shared libraries have been loaded and
  9870. initialized.
  9871. If this option appears multiple times in the command line with
  9872. different values specified, 'none' takes highest priority over both
  9873. 'std' and 'preinit'; 'preinit' takes priority over 'std'.
  9874. '-fvtv-debug'
  9875. When used in conjunction with '-fvtable-verify=std' or
  9876. '-fvtable-verify=preinit', causes debug versions of the runtime
  9877. functions for the vtable verification feature to be called. This
  9878. flag also causes the compiler to log information about which vtable
  9879. pointers it finds for each class. This information is written to a
  9880. file named 'vtv_set_ptr_data.log' in the directory named by the
  9881. environment variable 'VTV_LOGS_DIR' if that is defined or the
  9882. current working directory otherwise.
  9883. Note: This feature _appends_ data to the log file. If you want a
  9884. fresh log file, be sure to delete any existing one.
  9885. '-fvtv-counts'
  9886. This is a debugging flag. When used in conjunction with
  9887. '-fvtable-verify=std' or '-fvtable-verify=preinit', this causes the
  9888. compiler to keep track of the total number of virtual calls it
  9889. encounters and the number of verifications it inserts. It also
  9890. counts the number of calls to certain run-time library functions
  9891. that it inserts and logs this information for each compilation
  9892. unit. The compiler writes this information to a file named
  9893. 'vtv_count_data.log' in the directory named by the environment
  9894. variable 'VTV_LOGS_DIR' if that is defined or the current working
  9895. directory otherwise. It also counts the size of the vtable pointer
  9896. sets for each class, and writes this information to
  9897. 'vtv_class_set_sizes.log' in the same directory.
  9898. Note: This feature _appends_ data to the log files. To get fresh
  9899. log files, be sure to delete any existing ones.
  9900. '-finstrument-functions'
  9901. Generate instrumentation calls for entry and exit to functions.
  9902. Just after function entry and just before function exit, the
  9903. following profiling functions are called with the address of the
  9904. current function and its call site. (On some platforms,
  9905. '__builtin_return_address' does not work beyond the current
  9906. function, so the call site information may not be available to the
  9907. profiling functions otherwise.)
  9908. void __cyg_profile_func_enter (void *this_fn,
  9909. void *call_site);
  9910. void __cyg_profile_func_exit (void *this_fn,
  9911. void *call_site);
  9912. The first argument is the address of the start of the current
  9913. function, which may be looked up exactly in the symbol table.
  9914. This instrumentation is also done for functions expanded inline in
  9915. other functions. The profiling calls indicate where, conceptually,
  9916. the inline function is entered and exited. This means that
  9917. addressable versions of such functions must be available. If all
  9918. your uses of a function are expanded inline, this may mean an
  9919. additional expansion of code size. If you use 'extern inline' in
  9920. your C code, an addressable version of such functions must be
  9921. provided. (This is normally the case anyway, but if you get lucky
  9922. and the optimizer always expands the functions inline, you might
  9923. have gotten away without providing static copies.)
  9924. A function may be given the attribute 'no_instrument_function', in
  9925. which case this instrumentation is not done. This can be used, for
  9926. example, for the profiling functions listed above, high-priority
  9927. interrupt routines, and any functions from which the profiling
  9928. functions cannot safely be called (perhaps signal handlers, if the
  9929. profiling routines generate output or allocate memory). *Note
  9930. Common Function Attributes::.
  9931. '-finstrument-functions-exclude-file-list=FILE,FILE,...'
  9932. Set the list of functions that are excluded from instrumentation
  9933. (see the description of '-finstrument-functions'). If the file
  9934. that contains a function definition matches with one of FILE, then
  9935. that function is not instrumented. The match is done on
  9936. substrings: if the FILE parameter is a substring of the file name,
  9937. it is considered to be a match.
  9938. For example:
  9939. -finstrument-functions-exclude-file-list=/bits/stl,include/sys
  9940. excludes any inline function defined in files whose pathnames
  9941. contain '/bits/stl' or 'include/sys'.
  9942. If, for some reason, you want to include letter ',' in one of SYM,
  9943. write '\,'. For example,
  9944. '-finstrument-functions-exclude-file-list='\,\,tmp'' (note the
  9945. single quote surrounding the option).
  9946. '-finstrument-functions-exclude-function-list=SYM,SYM,...'
  9947. This is similar to '-finstrument-functions-exclude-file-list', but
  9948. this option sets the list of function names to be excluded from
  9949. instrumentation. The function name to be matched is its
  9950. user-visible name, such as 'vector<int> blah(const vector<int> &)',
  9951. not the internal mangled name (e.g., '_Z4blahRSt6vectorIiSaIiEE').
  9952. The match is done on substrings: if the SYM parameter is a
  9953. substring of the function name, it is considered to be a match.
  9954. For C99 and C++ extended identifiers, the function name must be
  9955. given in UTF-8, not using universal character names.
  9956. '-fpatchable-function-entry=N[,M]'
  9957. Generate N NOPs right at the beginning of each function, with the
  9958. function entry point before the Mth NOP. If M is omitted, it
  9959. defaults to '0' so the function entry points to the address just at
  9960. the first NOP. The NOP instructions reserve extra space which can
  9961. be used to patch in any desired instrumentation at run time,
  9962. provided that the code segment is writable. The amount of space is
  9963. controllable indirectly via the number of NOPs; the NOP instruction
  9964. used corresponds to the instruction emitted by the internal GCC
  9965. back-end interface 'gen_nop'. This behavior is target-specific and
  9966. may also depend on the architecture variant and/or other
  9967. compilation options.
  9968. For run-time identification, the starting addresses of these areas,
  9969. which correspond to their respective function entries minus M, are
  9970. additionally collected in the '__patchable_function_entries'
  9971. section of the resulting binary.
  9972. Note that the value of '__attribute__ ((patchable_function_entry
  9973. (N,M)))' takes precedence over command-line option
  9974. '-fpatchable-function-entry=N,M'. This can be used to increase the
  9975. area size or to remove it completely on a single function. If
  9976. 'N=0', no pad location is recorded.
  9977. The NOP instructions are inserted at--and maybe before, depending
  9978. on M--the function entry address, even before the prologue.
  9979. 
  9980. File: gcc.info, Node: Preprocessor Options, Next: Assembler Options, Prev: Instrumentation Options, Up: Invoking GCC
  9981. 3.12 Options Controlling the Preprocessor
  9982. =========================================
  9983. These options control the C preprocessor, which is run on each C source
  9984. file before actual compilation.
  9985. If you use the '-E' option, nothing is done except preprocessing. Some
  9986. of these options make sense only together with '-E' because they cause
  9987. the preprocessor output to be unsuitable for actual compilation.
  9988. In addition to the options listed here, there are a number of options
  9989. to control search paths for include files documented in *note Directory
  9990. Options::. Options to control preprocessor diagnostics are listed in
  9991. *note Warning Options::.
  9992. '-D NAME'
  9993. Predefine NAME as a macro, with definition '1'.
  9994. '-D NAME=DEFINITION'
  9995. The contents of DEFINITION are tokenized and processed as if they
  9996. appeared during translation phase three in a '#define' directive.
  9997. In particular, the definition is truncated by embedded newline
  9998. characters.
  9999. If you are invoking the preprocessor from a shell or shell-like
  10000. program you may need to use the shell's quoting syntax to protect
  10001. characters such as spaces that have a meaning in the shell syntax.
  10002. If you wish to define a function-like macro on the command line,
  10003. write its argument list with surrounding parentheses before the
  10004. equals sign (if any). Parentheses are meaningful to most shells,
  10005. so you should quote the option. With 'sh' and 'csh',
  10006. '-D'NAME(ARGS...)=DEFINITION'' works.
  10007. '-D' and '-U' options are processed in the order they are given on
  10008. the command line. All '-imacros FILE' and '-include FILE' options
  10009. are processed after all '-D' and '-U' options.
  10010. '-U NAME'
  10011. Cancel any previous definition of NAME, either built in or provided
  10012. with a '-D' option.
  10013. '-include FILE'
  10014. Process FILE as if '#include "file"' appeared as the first line of
  10015. the primary source file. However, the first directory searched for
  10016. FILE is the preprocessor's working directory _instead of_ the
  10017. directory containing the main source file. If not found there, it
  10018. is searched for in the remainder of the '#include "..."' search
  10019. chain as normal.
  10020. If multiple '-include' options are given, the files are included in
  10021. the order they appear on the command line.
  10022. '-imacros FILE'
  10023. Exactly like '-include', except that any output produced by
  10024. scanning FILE is thrown away. Macros it defines remain defined.
  10025. This allows you to acquire all the macros from a header without
  10026. also processing its declarations.
  10027. All files specified by '-imacros' are processed before all files
  10028. specified by '-include'.
  10029. '-undef'
  10030. Do not predefine any system-specific or GCC-specific macros. The
  10031. standard predefined macros remain defined.
  10032. '-pthread'
  10033. Define additional macros required for using the POSIX threads
  10034. library. You should use this option consistently for both
  10035. compilation and linking. This option is supported on GNU/Linux
  10036. targets, most other Unix derivatives, and also on x86 Cygwin and
  10037. MinGW targets.
  10038. '-M'
  10039. Instead of outputting the result of preprocessing, output a rule
  10040. suitable for 'make' describing the dependencies of the main source
  10041. file. The preprocessor outputs one 'make' rule containing the
  10042. object file name for that source file, a colon, and the names of
  10043. all the included files, including those coming from '-include' or
  10044. '-imacros' command-line options.
  10045. Unless specified explicitly (with '-MT' or '-MQ'), the object file
  10046. name consists of the name of the source file with any suffix
  10047. replaced with object file suffix and with any leading directory
  10048. parts removed. If there are many included files then the rule is
  10049. split into several lines using '\'-newline. The rule has no
  10050. commands.
  10051. This option does not suppress the preprocessor's debug output, such
  10052. as '-dM'. To avoid mixing such debug output with the dependency
  10053. rules you should explicitly specify the dependency output file with
  10054. '-MF', or use an environment variable like 'DEPENDENCIES_OUTPUT'
  10055. (*note Environment Variables::). Debug output is still sent to the
  10056. regular output stream as normal.
  10057. Passing '-M' to the driver implies '-E', and suppresses warnings
  10058. with an implicit '-w'.
  10059. '-MM'
  10060. Like '-M' but do not mention header files that are found in system
  10061. header directories, nor header files that are included, directly or
  10062. indirectly, from such a header.
  10063. This implies that the choice of angle brackets or double quotes in
  10064. an '#include' directive does not in itself determine whether that
  10065. header appears in '-MM' dependency output.
  10066. '-MF FILE'
  10067. When used with '-M' or '-MM', specifies a file to write the
  10068. dependencies to. If no '-MF' switch is given the preprocessor
  10069. sends the rules to the same place it would send preprocessed
  10070. output.
  10071. When used with the driver options '-MD' or '-MMD', '-MF' overrides
  10072. the default dependency output file.
  10073. If FILE is '-', then the dependencies are written to 'stdout'.
  10074. '-MG'
  10075. In conjunction with an option such as '-M' requesting dependency
  10076. generation, '-MG' assumes missing header files are generated files
  10077. and adds them to the dependency list without raising an error. The
  10078. dependency filename is taken directly from the '#include' directive
  10079. without prepending any path. '-MG' also suppresses preprocessed
  10080. output, as a missing header file renders this useless.
  10081. This feature is used in automatic updating of makefiles.
  10082. '-MP'
  10083. This option instructs CPP to add a phony target for each dependency
  10084. other than the main file, causing each to depend on nothing. These
  10085. dummy rules work around errors 'make' gives if you remove header
  10086. files without updating the 'Makefile' to match.
  10087. This is typical output:
  10088. test.o: test.c test.h
  10089. test.h:
  10090. '-MT TARGET'
  10091. Change the target of the rule emitted by dependency generation. By
  10092. default CPP takes the name of the main input file, deletes any
  10093. directory components and any file suffix such as '.c', and appends
  10094. the platform's usual object suffix. The result is the target.
  10095. An '-MT' option sets the target to be exactly the string you
  10096. specify. If you want multiple targets, you can specify them as a
  10097. single argument to '-MT', or use multiple '-MT' options.
  10098. For example, '-MT '$(objpfx)foo.o'' might give
  10099. $(objpfx)foo.o: foo.c
  10100. '-MQ TARGET'
  10101. Same as '-MT', but it quotes any characters which are special to
  10102. Make. '-MQ '$(objpfx)foo.o'' gives
  10103. $$(objpfx)foo.o: foo.c
  10104. The default target is automatically quoted, as if it were given
  10105. with '-MQ'.
  10106. '-MD'
  10107. '-MD' is equivalent to '-M -MF FILE', except that '-E' is not
  10108. implied. The driver determines FILE based on whether an '-o'
  10109. option is given. If it is, the driver uses its argument but with a
  10110. suffix of '.d', otherwise it takes the name of the input file,
  10111. removes any directory components and suffix, and applies a '.d'
  10112. suffix.
  10113. If '-MD' is used in conjunction with '-E', any '-o' switch is
  10114. understood to specify the dependency output file (*note -MF:
  10115. dashMF.), but if used without '-E', each '-o' is understood to
  10116. specify a target object file.
  10117. Since '-E' is not implied, '-MD' can be used to generate a
  10118. dependency output file as a side effect of the compilation process.
  10119. '-MMD'
  10120. Like '-MD' except mention only user header files, not system header
  10121. files.
  10122. '-fpreprocessed'
  10123. Indicate to the preprocessor that the input file has already been
  10124. preprocessed. This suppresses things like macro expansion,
  10125. trigraph conversion, escaped newline splicing, and processing of
  10126. most directives. The preprocessor still recognizes and removes
  10127. comments, so that you can pass a file preprocessed with '-C' to the
  10128. compiler without problems. In this mode the integrated
  10129. preprocessor is little more than a tokenizer for the front ends.
  10130. '-fpreprocessed' is implicit if the input file has one of the
  10131. extensions '.i', '.ii' or '.mi'. These are the extensions that GCC
  10132. uses for preprocessed files created by '-save-temps'.
  10133. '-fdirectives-only'
  10134. When preprocessing, handle directives, but do not expand macros.
  10135. The option's behavior depends on the '-E' and '-fpreprocessed'
  10136. options.
  10137. With '-E', preprocessing is limited to the handling of directives
  10138. such as '#define', '#ifdef', and '#error'. Other preprocessor
  10139. operations, such as macro expansion and trigraph conversion are not
  10140. performed. In addition, the '-dD' option is implicitly enabled.
  10141. With '-fpreprocessed', predefinition of command line and most
  10142. builtin macros is disabled. Macros such as '__LINE__', which are
  10143. contextually dependent, are handled normally. This enables
  10144. compilation of files previously preprocessed with '-E
  10145. -fdirectives-only'.
  10146. With both '-E' and '-fpreprocessed', the rules for '-fpreprocessed'
  10147. take precedence. This enables full preprocessing of files
  10148. previously preprocessed with '-E -fdirectives-only'.
  10149. '-fdollars-in-identifiers'
  10150. Accept '$' in identifiers.
  10151. '-fextended-identifiers'
  10152. Accept universal character names in identifiers. This option is
  10153. enabled by default for C99 (and later C standard versions) and C++.
  10154. '-fno-canonical-system-headers'
  10155. When preprocessing, do not shorten system header paths with
  10156. canonicalization.
  10157. '-ftabstop=WIDTH'
  10158. Set the distance between tab stops. This helps the preprocessor
  10159. report correct column numbers in warnings or errors, even if tabs
  10160. appear on the line. If the value is less than 1 or greater than
  10161. 100, the option is ignored. The default is 8.
  10162. '-ftrack-macro-expansion[=LEVEL]'
  10163. Track locations of tokens across macro expansions. This allows the
  10164. compiler to emit diagnostic about the current macro expansion stack
  10165. when a compilation error occurs in a macro expansion. Using this
  10166. option makes the preprocessor and the compiler consume more memory.
  10167. The LEVEL parameter can be used to choose the level of precision of
  10168. token location tracking thus decreasing the memory consumption if
  10169. necessary. Value '0' of LEVEL de-activates this option. Value '1'
  10170. tracks tokens locations in a degraded mode for the sake of minimal
  10171. memory overhead. In this mode all tokens resulting from the
  10172. expansion of an argument of a function-like macro have the same
  10173. location. Value '2' tracks tokens locations completely. This
  10174. value is the most memory hungry. When this option is given no
  10175. argument, the default parameter value is '2'.
  10176. Note that '-ftrack-macro-expansion=2' is activated by default.
  10177. '-fmacro-prefix-map=OLD=NEW'
  10178. When preprocessing files residing in directory 'OLD', expand the
  10179. '__FILE__' and '__BASE_FILE__' macros as if the files resided in
  10180. directory 'NEW' instead. This can be used to change an absolute
  10181. path to a relative path by using '.' for NEW which can result in
  10182. more reproducible builds that are location independent. This
  10183. option also affects '__builtin_FILE()' during compilation. See
  10184. also '-ffile-prefix-map'.
  10185. '-fexec-charset=CHARSET'
  10186. Set the execution character set, used for string and character
  10187. constants. The default is UTF-8. CHARSET can be any encoding
  10188. supported by the system's 'iconv' library routine.
  10189. '-fwide-exec-charset=CHARSET'
  10190. Set the wide execution character set, used for wide string and
  10191. character constants. The default is UTF-32 or UTF-16, whichever
  10192. corresponds to the width of 'wchar_t'. As with '-fexec-charset',
  10193. CHARSET can be any encoding supported by the system's 'iconv'
  10194. library routine; however, you will have problems with encodings
  10195. that do not fit exactly in 'wchar_t'.
  10196. '-finput-charset=CHARSET'
  10197. Set the input character set, used for translation from the
  10198. character set of the input file to the source character set used by
  10199. GCC. If the locale does not specify, or GCC cannot get this
  10200. information from the locale, the default is UTF-8. This can be
  10201. overridden by either the locale or this command-line option.
  10202. Currently the command-line option takes precedence if there's a
  10203. conflict. CHARSET can be any encoding supported by the system's
  10204. 'iconv' library routine.
  10205. '-fpch-deps'
  10206. When using precompiled headers (*note Precompiled Headers::), this
  10207. flag causes the dependency-output flags to also list the files from
  10208. the precompiled header's dependencies. If not specified, only the
  10209. precompiled header are listed and not the files that were used to
  10210. create it, because those files are not consulted when a precompiled
  10211. header is used.
  10212. '-fpch-preprocess'
  10213. This option allows use of a precompiled header (*note Precompiled
  10214. Headers::) together with '-E'. It inserts a special '#pragma',
  10215. '#pragma GCC pch_preprocess "FILENAME"' in the output to mark the
  10216. place where the precompiled header was found, and its FILENAME.
  10217. When '-fpreprocessed' is in use, GCC recognizes this '#pragma' and
  10218. loads the PCH.
  10219. This option is off by default, because the resulting preprocessed
  10220. output is only really suitable as input to GCC. It is switched on
  10221. by '-save-temps'.
  10222. You should not write this '#pragma' in your own code, but it is
  10223. safe to edit the filename if the PCH file is available in a
  10224. different location. The filename may be absolute or it may be
  10225. relative to GCC's current directory.
  10226. '-fworking-directory'
  10227. Enable generation of linemarkers in the preprocessor output that
  10228. let the compiler know the current working directory at the time of
  10229. preprocessing. When this option is enabled, the preprocessor
  10230. emits, after the initial linemarker, a second linemarker with the
  10231. current working directory followed by two slashes. GCC uses this
  10232. directory, when it's present in the preprocessed input, as the
  10233. directory emitted as the current working directory in some
  10234. debugging information formats. This option is implicitly enabled
  10235. if debugging information is enabled, but this can be inhibited with
  10236. the negated form '-fno-working-directory'. If the '-P' flag is
  10237. present in the command line, this option has no effect, since no
  10238. '#line' directives are emitted whatsoever.
  10239. '-A PREDICATE=ANSWER'
  10240. Make an assertion with the predicate PREDICATE and answer ANSWER.
  10241. This form is preferred to the older form '-A PREDICATE(ANSWER)',
  10242. which is still supported, because it does not use shell special
  10243. characters.
  10244. '-A -PREDICATE=ANSWER'
  10245. Cancel an assertion with the predicate PREDICATE and answer ANSWER.
  10246. '-C'
  10247. Do not discard comments. All comments are passed through to the
  10248. output file, except for comments in processed directives, which are
  10249. deleted along with the directive.
  10250. You should be prepared for side effects when using '-C'; it causes
  10251. the preprocessor to treat comments as tokens in their own right.
  10252. For example, comments appearing at the start of what would be a
  10253. directive line have the effect of turning that line into an
  10254. ordinary source line, since the first token on the line is no
  10255. longer a '#'.
  10256. '-CC'
  10257. Do not discard comments, including during macro expansion. This is
  10258. like '-C', except that comments contained within macros are also
  10259. passed through to the output file where the macro is expanded.
  10260. In addition to the side effects of the '-C' option, the '-CC'
  10261. option causes all C++-style comments inside a macro to be converted
  10262. to C-style comments. This is to prevent later use of that macro
  10263. from inadvertently commenting out the remainder of the source line.
  10264. The '-CC' option is generally used to support lint comments.
  10265. '-P'
  10266. Inhibit generation of linemarkers in the output from the
  10267. preprocessor. This might be useful when running the preprocessor
  10268. on something that is not C code, and will be sent to a program
  10269. which might be confused by the linemarkers.
  10270. '-traditional'
  10271. '-traditional-cpp'
  10272. Try to imitate the behavior of pre-standard C preprocessors, as
  10273. opposed to ISO C preprocessors. See the GNU CPP manual for
  10274. details.
  10275. Note that GCC does not otherwise attempt to emulate a pre-standard
  10276. C compiler, and these options are only supported with the '-E'
  10277. switch, or when invoking CPP explicitly.
  10278. '-trigraphs'
  10279. Support ISO C trigraphs. These are three-character sequences, all
  10280. starting with '??', that are defined by ISO C to stand for single
  10281. characters. For example, '??/' stands for '\', so ''??/n'' is a
  10282. character constant for a newline.
  10283. The nine trigraphs and their replacements are
  10284. Trigraph: ??( ??) ??< ??> ??= ??/ ??' ??! ??-
  10285. Replacement: [ ] { } # \ ^ | ~
  10286. By default, GCC ignores trigraphs, but in standard-conforming modes
  10287. it converts them. See the '-std' and '-ansi' options.
  10288. '-remap'
  10289. Enable special code to work around file systems which only permit
  10290. very short file names, such as MS-DOS.
  10291. '-H'
  10292. Print the name of each header file used, in addition to other
  10293. normal activities. Each name is indented to show how deep in the
  10294. '#include' stack it is. Precompiled header files are also printed,
  10295. even if they are found to be invalid; an invalid precompiled header
  10296. file is printed with '...x' and a valid one with '...!' .
  10297. '-dLETTERS'
  10298. Says to make debugging dumps during compilation as specified by
  10299. LETTERS. The flags documented here are those relevant to the
  10300. preprocessor. Other LETTERS are interpreted by the compiler
  10301. proper, or reserved for future versions of GCC, and so are silently
  10302. ignored. If you specify LETTERS whose behavior conflicts, the
  10303. result is undefined. *Note Developer Options::, for more
  10304. information.
  10305. '-dM'
  10306. Instead of the normal output, generate a list of '#define'
  10307. directives for all the macros defined during the execution of
  10308. the preprocessor, including predefined macros. This gives you
  10309. a way of finding out what is predefined in your version of the
  10310. preprocessor. Assuming you have no file 'foo.h', the command
  10311. touch foo.h; cpp -dM foo.h
  10312. shows all the predefined macros.
  10313. If you use '-dM' without the '-E' option, '-dM' is interpreted
  10314. as a synonym for '-fdump-rtl-mach'. *Note (gcc)Developer
  10315. Options::.
  10316. '-dD'
  10317. Like '-dM' except in two respects: it does _not_ include the
  10318. predefined macros, and it outputs _both_ the '#define'
  10319. directives and the result of preprocessing. Both kinds of
  10320. output go to the standard output file.
  10321. '-dN'
  10322. Like '-dD', but emit only the macro names, not their
  10323. expansions.
  10324. '-dI'
  10325. Output '#include' directives in addition to the result of
  10326. preprocessing.
  10327. '-dU'
  10328. Like '-dD' except that only macros that are expanded, or whose
  10329. definedness is tested in preprocessor directives, are output;
  10330. the output is delayed until the use or test of the macro; and
  10331. '#undef' directives are also output for macros tested but
  10332. undefined at the time.
  10333. '-fdebug-cpp'
  10334. This option is only useful for debugging GCC. When used from CPP or
  10335. with '-E', it dumps debugging information about location maps.
  10336. Every token in the output is preceded by the dump of the map its
  10337. location belongs to.
  10338. When used from GCC without '-E', this option has no effect.
  10339. '-Wp,OPTION'
  10340. You can use '-Wp,OPTION' to bypass the compiler driver and pass
  10341. OPTION directly through to the preprocessor. If OPTION contains
  10342. commas, it is split into multiple options at the commas. However,
  10343. many options are modified, translated or interpreted by the
  10344. compiler driver before being passed to the preprocessor, and '-Wp'
  10345. forcibly bypasses this phase. The preprocessor's direct interface
  10346. is undocumented and subject to change, so whenever possible you
  10347. should avoid using '-Wp' and let the driver handle the options
  10348. instead.
  10349. '-Xpreprocessor OPTION'
  10350. Pass OPTION as an option to the preprocessor. You can use this to
  10351. supply system-specific preprocessor options that GCC does not
  10352. recognize.
  10353. If you want to pass an option that takes an argument, you must use
  10354. '-Xpreprocessor' twice, once for the option and once for the
  10355. argument.
  10356. '-no-integrated-cpp'
  10357. Perform preprocessing as a separate pass before compilation. By
  10358. default, GCC performs preprocessing as an integrated part of input
  10359. tokenization and parsing. If this option is provided, the
  10360. appropriate language front end ('cc1', 'cc1plus', or 'cc1obj' for
  10361. C, C++, and Objective-C, respectively) is instead invoked twice,
  10362. once for preprocessing only and once for actual compilation of the
  10363. preprocessed input. This option may be useful in conjunction with
  10364. the '-B' or '-wrapper' options to specify an alternate preprocessor
  10365. or perform additional processing of the program source between
  10366. normal preprocessing and compilation.
  10367. 
  10368. File: gcc.info, Node: Assembler Options, Next: Link Options, Prev: Preprocessor Options, Up: Invoking GCC
  10369. 3.13 Passing Options to the Assembler
  10370. =====================================
  10371. You can pass options to the assembler.
  10372. '-Wa,OPTION'
  10373. Pass OPTION as an option to the assembler. If OPTION contains
  10374. commas, it is split into multiple options at the commas.
  10375. '-Xassembler OPTION'
  10376. Pass OPTION as an option to the assembler. You can use this to
  10377. supply system-specific assembler options that GCC does not
  10378. recognize.
  10379. If you want to pass an option that takes an argument, you must use
  10380. '-Xassembler' twice, once for the option and once for the argument.
  10381. 
  10382. File: gcc.info, Node: Link Options, Next: Directory Options, Prev: Assembler Options, Up: Invoking GCC
  10383. 3.14 Options for Linking
  10384. ========================
  10385. These options come into play when the compiler links object files into
  10386. an executable output file. They are meaningless if the compiler is not
  10387. doing a link step.
  10388. 'OBJECT-FILE-NAME'
  10389. A file name that does not end in a special recognized suffix is
  10390. considered to name an object file or library. (Object files are
  10391. distinguished from libraries by the linker according to the file
  10392. contents.) If linking is done, these object files are used as
  10393. input to the linker.
  10394. '-c'
  10395. '-S'
  10396. '-E'
  10397. If any of these options is used, then the linker is not run, and
  10398. object file names should not be used as arguments. *Note Overall
  10399. Options::.
  10400. '-flinker-output=TYPE'
  10401. This option controls the code generation of the link time
  10402. optimizer. By default the linker output is determined by the
  10403. linker plugin automatically. For debugging the compiler and in the
  10404. case of incremental linking to non-lto object file is desired, it
  10405. may be useful to control the type manually.
  10406. If TYPE is 'exec' the code generation is configured to produce
  10407. static binary. In this case '-fpic' and '-fpie' are both disabled.
  10408. If TYPE is 'dyn' the code generation is configured to produce
  10409. shared library. In this case '-fpic' or '-fPIC' is preserved, but
  10410. not enabled automatically. This makes it possible to build shared
  10411. libraries without position independent code on architectures this
  10412. is possible, i.e. on x86.
  10413. If TYPE is 'pie' the code generation is configured to produce
  10414. '-fpie' executable. This result in similar optimizations as 'exec'
  10415. except that '-fpie' is not disabled if specified at compilation
  10416. time.
  10417. If TYPE is 'rel' the compiler assumes that incremental linking is
  10418. done. The sections containing intermediate code for link-time
  10419. optimization are merged, pre-optimized, and output to the resulting
  10420. object file. In addition, if '-ffat-lto-objects' is specified the
  10421. binary code is produced for future non-lto linking. The object
  10422. file produced by incremental linking will be smaller than a static
  10423. library produced from the same object files. At link-time the
  10424. result of incremental linking will also load faster to compiler
  10425. than a static library assuming that majority of objects in the
  10426. library are used.
  10427. Finally 'nolto-rel' configure compiler to for incremental linking
  10428. where code generation is forced, final binary is produced and the
  10429. intermediate code for later link-time optimization is stripped.
  10430. When multiple object files are linked together the resulting code
  10431. will be optimized better than with link time optimizations disabled
  10432. (for example, the cross-module inlining will happen), most of
  10433. benefits of whole program optimizations are however lost.
  10434. During the incremental link (by '-r') the linker plugin will
  10435. default to 'rel'. With current interfaces to GNU Binutils it is
  10436. however not possible to link incrementally LTO objects and non-LTO
  10437. objects into a single mixed object file. In the case any of object
  10438. files in incremental link cannot be used for link-time optimization
  10439. the linker plugin will output warning and use 'nolto-rel'. To
  10440. maintain the whole program optimization it is recommended to link
  10441. such objects into static library instead. Alternatively it is
  10442. possible to use H.J. Lu's binutils with support for mixed objects.
  10443. '-fuse-ld=bfd'
  10444. Use the 'bfd' linker instead of the default linker.
  10445. '-fuse-ld=gold'
  10446. Use the 'gold' linker instead of the default linker.
  10447. '-fuse-ld=lld'
  10448. Use the LLVM 'lld' linker instead of the default linker.
  10449. '-lLIBRARY'
  10450. '-l LIBRARY'
  10451. Search the library named LIBRARY when linking. (The second
  10452. alternative with the library as a separate argument is only for
  10453. POSIX compliance and is not recommended.)
  10454. The '-l' option is passed directly to the linker by GCC. Refer to
  10455. your linker documentation for exact details. The general
  10456. description below applies to the GNU linker.
  10457. The linker searches a standard list of directories for the library.
  10458. The directories searched include several standard system
  10459. directories plus any that you specify with '-L'.
  10460. Static libraries are archives of object files, and have file names
  10461. like 'libLIBRARY.a'. Some targets also support shared libraries,
  10462. which typically have names like 'libLIBRARY.so'. If both static
  10463. and shared libraries are found, the linker gives preference to
  10464. linking with the shared library unless the '-static' option is
  10465. used.
  10466. It makes a difference where in the command you write this option;
  10467. the linker searches and processes libraries and object files in the
  10468. order they are specified. Thus, 'foo.o -lz bar.o' searches library
  10469. 'z' after file 'foo.o' but before 'bar.o'. If 'bar.o' refers to
  10470. functions in 'z', those functions may not be loaded.
  10471. '-lobjc'
  10472. You need this special case of the '-l' option in order to link an
  10473. Objective-C or Objective-C++ program.
  10474. '-nostartfiles'
  10475. Do not use the standard system startup files when linking. The
  10476. standard system libraries are used normally, unless '-nostdlib',
  10477. '-nolibc', or '-nodefaultlibs' is used.
  10478. '-nodefaultlibs'
  10479. Do not use the standard system libraries when linking. Only the
  10480. libraries you specify are passed to the linker, and options
  10481. specifying linkage of the system libraries, such as
  10482. '-static-libgcc' or '-shared-libgcc', are ignored. The standard
  10483. startup files are used normally, unless '-nostartfiles' is used.
  10484. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  10485. 'memmove'. These entries are usually resolved by entries in libc.
  10486. These entry points should be supplied through some other mechanism
  10487. when this option is specified.
  10488. '-nolibc'
  10489. Do not use the C library or system libraries tightly coupled with
  10490. it when linking. Still link with the startup files, 'libgcc' or
  10491. toolchain provided language support libraries such as 'libgnat',
  10492. 'libgfortran' or 'libstdc++' unless options preventing their
  10493. inclusion are used as well. This typically removes '-lc' from the
  10494. link command line, as well as system libraries that normally go
  10495. with it and become meaningless when absence of a C library is
  10496. assumed, for example '-lpthread' or '-lm' in some configurations.
  10497. This is intended for bare-board targets when there is indeed no C
  10498. library available.
  10499. '-nostdlib'
  10500. Do not use the standard system startup files or libraries when
  10501. linking. No startup files and only the libraries you specify are
  10502. passed to the linker, and options specifying linkage of the system
  10503. libraries, such as '-static-libgcc' or '-shared-libgcc', are
  10504. ignored.
  10505. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  10506. 'memmove'. These entries are usually resolved by entries in libc.
  10507. These entry points should be supplied through some other mechanism
  10508. when this option is specified.
  10509. One of the standard libraries bypassed by '-nostdlib' and
  10510. '-nodefaultlibs' is 'libgcc.a', a library of internal subroutines
  10511. which GCC uses to overcome shortcomings of particular machines, or
  10512. special needs for some languages. (*Note Interfacing to GCC
  10513. Output: (gccint)Interface, for more discussion of 'libgcc.a'.) In
  10514. most cases, you need 'libgcc.a' even when you want to avoid other
  10515. standard libraries. In other words, when you specify '-nostdlib'
  10516. or '-nodefaultlibs' you should usually specify '-lgcc' as well.
  10517. This ensures that you have no unresolved references to internal GCC
  10518. library subroutines. (An example of such an internal subroutine is
  10519. '__main', used to ensure C++ constructors are called; *note
  10520. 'collect2': (gccint)Collect2.)
  10521. '-e ENTRY'
  10522. '--entry=ENTRY'
  10523. Specify that the program entry point is ENTRY. The argument is
  10524. interpreted by the linker; the GNU linker accepts either a symbol
  10525. name or an address.
  10526. '-pie'
  10527. Produce a dynamically linked position independent executable on
  10528. targets that support it. For predictable results, you must also
  10529. specify the same set of options used for compilation ('-fpie',
  10530. '-fPIE', or model suboptions) when you specify this linker option.
  10531. '-no-pie'
  10532. Don't produce a dynamically linked position independent executable.
  10533. '-static-pie'
  10534. Produce a static position independent executable on targets that
  10535. support it. A static position independent executable is similar to
  10536. a static executable, but can be loaded at any address without a
  10537. dynamic linker. For predictable results, you must also specify the
  10538. same set of options used for compilation ('-fpie', '-fPIE', or
  10539. model suboptions) when you specify this linker option.
  10540. '-pthread'
  10541. Link with the POSIX threads library. This option is supported on
  10542. GNU/Linux targets, most other Unix derivatives, and also on x86
  10543. Cygwin and MinGW targets. On some targets this option also sets
  10544. flags for the preprocessor, so it should be used consistently for
  10545. both compilation and linking.
  10546. '-r'
  10547. Produce a relocatable object as output. This is also known as
  10548. partial linking.
  10549. '-rdynamic'
  10550. Pass the flag '-export-dynamic' to the ELF linker, on targets that
  10551. support it. This instructs the linker to add all symbols, not only
  10552. used ones, to the dynamic symbol table. This option is needed for
  10553. some uses of 'dlopen' or to allow obtaining backtraces from within
  10554. a program.
  10555. '-s'
  10556. Remove all symbol table and relocation information from the
  10557. executable.
  10558. '-static'
  10559. On systems that support dynamic linking, this overrides '-pie' and
  10560. prevents linking with the shared libraries. On other systems, this
  10561. option has no effect.
  10562. '-shared'
  10563. Produce a shared object which can then be linked with other objects
  10564. to form an executable. Not all systems support this option. For
  10565. predictable results, you must also specify the same set of options
  10566. used for compilation ('-fpic', '-fPIC', or model suboptions) when
  10567. you specify this linker option.(1)
  10568. '-shared-libgcc'
  10569. '-static-libgcc'
  10570. On systems that provide 'libgcc' as a shared library, these options
  10571. force the use of either the shared or static version, respectively.
  10572. If no shared version of 'libgcc' was built when the compiler was
  10573. configured, these options have no effect.
  10574. There are several situations in which an application should use the
  10575. shared 'libgcc' instead of the static version. The most common of
  10576. these is when the application wishes to throw and catch exceptions
  10577. across different shared libraries. In that case, each of the
  10578. libraries as well as the application itself should use the shared
  10579. 'libgcc'.
  10580. Therefore, the G++ driver automatically adds '-shared-libgcc'
  10581. whenever you build a shared library or a main executable, because
  10582. C++ programs typically use exceptions, so this is the right thing
  10583. to do.
  10584. If, instead, you use the GCC driver to create shared libraries, you
  10585. may find that they are not always linked with the shared 'libgcc'.
  10586. If GCC finds, at its configuration time, that you have a non-GNU
  10587. linker or a GNU linker that does not support option
  10588. '--eh-frame-hdr', it links the shared version of 'libgcc' into
  10589. shared libraries by default. Otherwise, it takes advantage of the
  10590. linker and optimizes away the linking with the shared version of
  10591. 'libgcc', linking with the static version of libgcc by default.
  10592. This allows exceptions to propagate through such shared libraries,
  10593. without incurring relocation costs at library load time.
  10594. However, if a library or main executable is supposed to throw or
  10595. catch exceptions, you must link it using the G++ driver, or using
  10596. the option '-shared-libgcc', such that it is linked with the shared
  10597. 'libgcc'.
  10598. '-static-libasan'
  10599. When the '-fsanitize=address' option is used to link a program, the
  10600. GCC driver automatically links against 'libasan'. If 'libasan' is
  10601. available as a shared library, and the '-static' option is not
  10602. used, then this links against the shared version of 'libasan'. The
  10603. '-static-libasan' option directs the GCC driver to link 'libasan'
  10604. statically, without necessarily linking other libraries statically.
  10605. '-static-libtsan'
  10606. When the '-fsanitize=thread' option is used to link a program, the
  10607. GCC driver automatically links against 'libtsan'. If 'libtsan' is
  10608. available as a shared library, and the '-static' option is not
  10609. used, then this links against the shared version of 'libtsan'. The
  10610. '-static-libtsan' option directs the GCC driver to link 'libtsan'
  10611. statically, without necessarily linking other libraries statically.
  10612. '-static-liblsan'
  10613. When the '-fsanitize=leak' option is used to link a program, the
  10614. GCC driver automatically links against 'liblsan'. If 'liblsan' is
  10615. available as a shared library, and the '-static' option is not
  10616. used, then this links against the shared version of 'liblsan'. The
  10617. '-static-liblsan' option directs the GCC driver to link 'liblsan'
  10618. statically, without necessarily linking other libraries statically.
  10619. '-static-libubsan'
  10620. When the '-fsanitize=undefined' option is used to link a program,
  10621. the GCC driver automatically links against 'libubsan'. If
  10622. 'libubsan' is available as a shared library, and the '-static'
  10623. option is not used, then this links against the shared version of
  10624. 'libubsan'. The '-static-libubsan' option directs the GCC driver
  10625. to link 'libubsan' statically, without necessarily linking other
  10626. libraries statically.
  10627. '-static-libstdc++'
  10628. When the 'g++' program is used to link a C++ program, it normally
  10629. automatically links against 'libstdc++'. If 'libstdc++' is
  10630. available as a shared library, and the '-static' option is not
  10631. used, then this links against the shared version of 'libstdc++'.
  10632. That is normally fine. However, it is sometimes useful to freeze
  10633. the version of 'libstdc++' used by the program without going all
  10634. the way to a fully static link. The '-static-libstdc++' option
  10635. directs the 'g++' driver to link 'libstdc++' statically, without
  10636. necessarily linking other libraries statically.
  10637. '-symbolic'
  10638. Bind references to global symbols when building a shared object.
  10639. Warn about any unresolved references (unless overridden by the link
  10640. editor option '-Xlinker -z -Xlinker defs'). Only a few systems
  10641. support this option.
  10642. '-T SCRIPT'
  10643. Use SCRIPT as the linker script. This option is supported by most
  10644. systems using the GNU linker. On some targets, such as bare-board
  10645. targets without an operating system, the '-T' option may be
  10646. required when linking to avoid references to undefined symbols.
  10647. '-Xlinker OPTION'
  10648. Pass OPTION as an option to the linker. You can use this to supply
  10649. system-specific linker options that GCC does not recognize.
  10650. If you want to pass an option that takes a separate argument, you
  10651. must use '-Xlinker' twice, once for the option and once for the
  10652. argument. For example, to pass '-assert definitions', you must
  10653. write '-Xlinker -assert -Xlinker definitions'. It does not work to
  10654. write '-Xlinker "-assert definitions"', because this passes the
  10655. entire string as a single argument, which is not what the linker
  10656. expects.
  10657. When using the GNU linker, it is usually more convenient to pass
  10658. arguments to linker options using the 'OPTION=VALUE' syntax than as
  10659. separate arguments. For example, you can specify '-Xlinker
  10660. -Map=output.map' rather than '-Xlinker -Map -Xlinker output.map'.
  10661. Other linkers may not support this syntax for command-line options.
  10662. '-Wl,OPTION'
  10663. Pass OPTION as an option to the linker. If OPTION contains commas,
  10664. it is split into multiple options at the commas. You can use this
  10665. syntax to pass an argument to the option. For example,
  10666. '-Wl,-Map,output.map' passes '-Map output.map' to the linker. When
  10667. using the GNU linker, you can also get the same effect with
  10668. '-Wl,-Map=output.map'.
  10669. '-u SYMBOL'
  10670. Pretend the symbol SYMBOL is undefined, to force linking of library
  10671. modules to define it. You can use '-u' multiple times with
  10672. different symbols to force loading of additional library modules.
  10673. '-z KEYWORD'
  10674. '-z' is passed directly on to the linker along with the keyword
  10675. KEYWORD. See the section in the documentation of your linker for
  10676. permitted values and their meanings.
  10677. ---------- Footnotes ----------
  10678. (1) On some systems, 'gcc -shared' needs to build supplementary stub
  10679. code for constructors to work. On multi-libbed systems, 'gcc -shared'
  10680. must select the correct support libraries to link against. Failing to
  10681. supply the correct flags may lead to subtle defects. Supplying them in
  10682. cases where they are not necessary is innocuous.
  10683. 
  10684. File: gcc.info, Node: Directory Options, Next: Code Gen Options, Prev: Link Options, Up: Invoking GCC
  10685. 3.15 Options for Directory Search
  10686. =================================
  10687. These options specify directories to search for header files, for
  10688. libraries and for parts of the compiler:
  10689. '-I DIR'
  10690. '-iquote DIR'
  10691. '-isystem DIR'
  10692. '-idirafter DIR'
  10693. Add the directory DIR to the list of directories to be searched for
  10694. header files during preprocessing. If DIR begins with '=' or
  10695. '$SYSROOT', then the '=' or '$SYSROOT' is replaced by the sysroot
  10696. prefix; see '--sysroot' and '-isysroot'.
  10697. Directories specified with '-iquote' apply only to the quote form
  10698. of the directive, '#include "FILE"'. Directories specified with
  10699. '-I', '-isystem', or '-idirafter' apply to lookup for both the
  10700. '#include "FILE"' and '#include <FILE>' directives.
  10701. You can specify any number or combination of these options on the
  10702. command line to search for header files in several directories.
  10703. The lookup order is as follows:
  10704. 1. For the quote form of the include directive, the directory of
  10705. the current file is searched first.
  10706. 2. For the quote form of the include directive, the directories
  10707. specified by '-iquote' options are searched in left-to-right
  10708. order, as they appear on the command line.
  10709. 3. Directories specified with '-I' options are scanned in
  10710. left-to-right order.
  10711. 4. Directories specified with '-isystem' options are scanned in
  10712. left-to-right order.
  10713. 5. Standard system directories are scanned.
  10714. 6. Directories specified with '-idirafter' options are scanned in
  10715. left-to-right order.
  10716. You can use '-I' to override a system header file, substituting
  10717. your own version, since these directories are searched before the
  10718. standard system header file directories. However, you should not
  10719. use this option to add directories that contain vendor-supplied
  10720. system header files; use '-isystem' for that.
  10721. The '-isystem' and '-idirafter' options also mark the directory as
  10722. a system directory, so that it gets the same special treatment that
  10723. is applied to the standard system directories.
  10724. If a standard system include directory, or a directory specified
  10725. with '-isystem', is also specified with '-I', the '-I' option is
  10726. ignored. The directory is still searched but as a system directory
  10727. at its normal position in the system include chain. This is to
  10728. ensure that GCC's procedure to fix buggy system headers and the
  10729. ordering for the '#include_next' directive are not inadvertently
  10730. changed. If you really need to change the search order for system
  10731. directories, use the '-nostdinc' and/or '-isystem' options.
  10732. '-I-'
  10733. Split the include path. This option has been deprecated. Please
  10734. use '-iquote' instead for '-I' directories before the '-I-' and
  10735. remove the '-I-' option.
  10736. Any directories specified with '-I' options before '-I-' are
  10737. searched only for headers requested with '#include "FILE"'; they
  10738. are not searched for '#include <FILE>'. If additional directories
  10739. are specified with '-I' options after the '-I-', those directories
  10740. are searched for all '#include' directives.
  10741. In addition, '-I-' inhibits the use of the directory of the current
  10742. file directory as the first search directory for '#include "FILE"'.
  10743. There is no way to override this effect of '-I-'.
  10744. '-iprefix PREFIX'
  10745. Specify PREFIX as the prefix for subsequent '-iwithprefix' options.
  10746. If the prefix represents a directory, you should include the final
  10747. '/'.
  10748. '-iwithprefix DIR'
  10749. '-iwithprefixbefore DIR'
  10750. Append DIR to the prefix specified previously with '-iprefix', and
  10751. add the resulting directory to the include search path.
  10752. '-iwithprefixbefore' puts it in the same place '-I' would;
  10753. '-iwithprefix' puts it where '-idirafter' would.
  10754. '-isysroot DIR'
  10755. This option is like the '--sysroot' option, but applies only to
  10756. header files (except for Darwin targets, where it applies to both
  10757. header files and libraries). See the '--sysroot' option for more
  10758. information.
  10759. '-imultilib DIR'
  10760. Use DIR as a subdirectory of the directory containing
  10761. target-specific C++ headers.
  10762. '-nostdinc'
  10763. Do not search the standard system directories for header files.
  10764. Only the directories explicitly specified with '-I', '-iquote',
  10765. '-isystem', and/or '-idirafter' options (and the directory of the
  10766. current file, if appropriate) are searched.
  10767. '-nostdinc++'
  10768. Do not search for header files in the C++-specific standard
  10769. directories, but do still search the other standard directories.
  10770. (This option is used when building the C++ library.)
  10771. '-iplugindir=DIR'
  10772. Set the directory to search for plugins that are passed by
  10773. '-fplugin=NAME' instead of '-fplugin=PATH/NAME.so'. This option is
  10774. not meant to be used by the user, but only passed by the driver.
  10775. '-LDIR'
  10776. Add directory DIR to the list of directories to be searched for
  10777. '-l'.
  10778. '-BPREFIX'
  10779. This option specifies where to find the executables, libraries,
  10780. include files, and data files of the compiler itself.
  10781. The compiler driver program runs one or more of the subprograms
  10782. 'cpp', 'cc1', 'as' and 'ld'. It tries PREFIX as a prefix for each
  10783. program it tries to run, both with and without 'MACHINE/VERSION/'
  10784. for the corresponding target machine and compiler version.
  10785. For each subprogram to be run, the compiler driver first tries the
  10786. '-B' prefix, if any. If that name is not found, or if '-B' is not
  10787. specified, the driver tries two standard prefixes, '/usr/lib/gcc/'
  10788. and '/usr/local/lib/gcc/'. If neither of those results in a file
  10789. name that is found, the unmodified program name is searched for
  10790. using the directories specified in your 'PATH' environment
  10791. variable.
  10792. The compiler checks to see if the path provided by '-B' refers to a
  10793. directory, and if necessary it adds a directory separator character
  10794. at the end of the path.
  10795. '-B' prefixes that effectively specify directory names also apply
  10796. to libraries in the linker, because the compiler translates these
  10797. options into '-L' options for the linker. They also apply to
  10798. include files in the preprocessor, because the compiler translates
  10799. these options into '-isystem' options for the preprocessor. In
  10800. this case, the compiler appends 'include' to the prefix.
  10801. The runtime support file 'libgcc.a' can also be searched for using
  10802. the '-B' prefix, if needed. If it is not found there, the two
  10803. standard prefixes above are tried, and that is all. The file is
  10804. left out of the link if it is not found by those means.
  10805. Another way to specify a prefix much like the '-B' prefix is to use
  10806. the environment variable 'GCC_EXEC_PREFIX'. *Note Environment
  10807. Variables::.
  10808. As a special kludge, if the path provided by '-B' is
  10809. '[dir/]stageN/', where N is a number in the range 0 to 9, then it
  10810. is replaced by '[dir/]include'. This is to help with
  10811. boot-strapping the compiler.
  10812. '-no-canonical-prefixes'
  10813. Do not expand any symbolic links, resolve references to '/../' or
  10814. '/./', or make the path absolute when generating a relative prefix.
  10815. '--sysroot=DIR'
  10816. Use DIR as the logical root directory for headers and libraries.
  10817. For example, if the compiler normally searches for headers in
  10818. '/usr/include' and libraries in '/usr/lib', it instead searches
  10819. 'DIR/usr/include' and 'DIR/usr/lib'.
  10820. If you use both this option and the '-isysroot' option, then the
  10821. '--sysroot' option applies to libraries, but the '-isysroot' option
  10822. applies to header files.
  10823. The GNU linker (beginning with version 2.16) has the necessary
  10824. support for this option. If your linker does not support this
  10825. option, the header file aspect of '--sysroot' still works, but the
  10826. library aspect does not.
  10827. '--no-sysroot-suffix'
  10828. For some targets, a suffix is added to the root directory specified
  10829. with '--sysroot', depending on the other options used, so that
  10830. headers may for example be found in 'DIR/SUFFIX/usr/include'
  10831. instead of 'DIR/usr/include'. This option disables the addition of
  10832. such a suffix.
  10833. 
  10834. File: gcc.info, Node: Code Gen Options, Next: Developer Options, Prev: Directory Options, Up: Invoking GCC
  10835. 3.16 Options for Code Generation Conventions
  10836. ============================================
  10837. These machine-independent options control the interface conventions used
  10838. in code generation.
  10839. Most of them have both positive and negative forms; the negative form
  10840. of '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  10841. listed--the one that is not the default. You can figure out the other
  10842. form by either removing 'no-' or adding it.
  10843. '-fstack-reuse=REUSE-LEVEL'
  10844. This option controls stack space reuse for user declared local/auto
  10845. variables and compiler generated temporaries. REUSE_LEVEL can be
  10846. 'all', 'named_vars', or 'none'. 'all' enables stack reuse for all
  10847. local variables and temporaries, 'named_vars' enables the reuse
  10848. only for user defined local variables with names, and 'none'
  10849. disables stack reuse completely. The default value is 'all'. The
  10850. option is needed when the program extends the lifetime of a scoped
  10851. local variable or a compiler generated temporary beyond the end
  10852. point defined by the language. When a lifetime of a variable ends,
  10853. and if the variable lives in memory, the optimizing compiler has
  10854. the freedom to reuse its stack space with other temporaries or
  10855. scoped local variables whose live range does not overlap with it.
  10856. Legacy code extending local lifetime is likely to break with the
  10857. stack reuse optimization.
  10858. For example,
  10859. int *p;
  10860. {
  10861. int local1;
  10862. p = &local1;
  10863. local1 = 10;
  10864. ....
  10865. }
  10866. {
  10867. int local2;
  10868. local2 = 20;
  10869. ...
  10870. }
  10871. if (*p == 10) // out of scope use of local1
  10872. {
  10873. }
  10874. Another example:
  10875. struct A
  10876. {
  10877. A(int k) : i(k), j(k) { }
  10878. int i;
  10879. int j;
  10880. };
  10881. A *ap;
  10882. void foo(const A& ar)
  10883. {
  10884. ap = &ar;
  10885. }
  10886. void bar()
  10887. {
  10888. foo(A(10)); // temp object's lifetime ends when foo returns
  10889. {
  10890. A a(20);
  10891. ....
  10892. }
  10893. ap->i+= 10; // ap references out of scope temp whose space
  10894. // is reused with a. What is the value of ap->i?
  10895. }
  10896. The lifetime of a compiler generated temporary is well defined by
  10897. the C++ standard. When a lifetime of a temporary ends, and if the
  10898. temporary lives in memory, the optimizing compiler has the freedom
  10899. to reuse its stack space with other temporaries or scoped local
  10900. variables whose live range does not overlap with it. However some
  10901. of the legacy code relies on the behavior of older compilers in
  10902. which temporaries' stack space is not reused, the aggressive stack
  10903. reuse can lead to runtime errors. This option is used to control
  10904. the temporary stack reuse optimization.
  10905. '-ftrapv'
  10906. This option generates traps for signed overflow on addition,
  10907. subtraction, multiplication operations. The options '-ftrapv' and
  10908. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  10909. command-line results in '-fwrapv' being effective. Note that only
  10910. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  10911. on the command-line results in '-ftrapv' being effective.
  10912. '-fwrapv'
  10913. This option instructs the compiler to assume that signed arithmetic
  10914. overflow of addition, subtraction and multiplication wraps around
  10915. using twos-complement representation. This flag enables some
  10916. optimizations and disables others. The options '-ftrapv' and
  10917. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  10918. command-line results in '-fwrapv' being effective. Note that only
  10919. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  10920. on the command-line results in '-ftrapv' being effective.
  10921. '-fwrapv-pointer'
  10922. This option instructs the compiler to assume that pointer
  10923. arithmetic overflow on addition and subtraction wraps around using
  10924. twos-complement representation. This flag disables some
  10925. optimizations which assume pointer overflow is invalid.
  10926. '-fstrict-overflow'
  10927. This option implies '-fno-wrapv' '-fno-wrapv-pointer' and when
  10928. negated implies '-fwrapv' '-fwrapv-pointer'.
  10929. '-fexceptions'
  10930. Enable exception handling. Generates extra code needed to
  10931. propagate exceptions. For some targets, this implies GCC generates
  10932. frame unwind information for all functions, which can produce
  10933. significant data size overhead, although it does not affect
  10934. execution. If you do not specify this option, GCC enables it by
  10935. default for languages like C++ that normally require exception
  10936. handling, and disables it for languages like C that do not normally
  10937. require it. However, you may need to enable this option when
  10938. compiling C code that needs to interoperate properly with exception
  10939. handlers written in C++. You may also wish to disable this option
  10940. if you are compiling older C++ programs that don't use exception
  10941. handling.
  10942. '-fnon-call-exceptions'
  10943. Generate code that allows trapping instructions to throw
  10944. exceptions. Note that this requires platform-specific runtime
  10945. support that does not exist everywhere. Moreover, it only allows
  10946. _trapping_ instructions to throw exceptions, i.e. memory references
  10947. or floating-point instructions. It does not allow exceptions to be
  10948. thrown from arbitrary signal handlers such as 'SIGALRM'.
  10949. '-fdelete-dead-exceptions'
  10950. Consider that instructions that may throw exceptions but don't
  10951. otherwise contribute to the execution of the program can be
  10952. optimized away. This option is enabled by default for the Ada
  10953. front end, as permitted by the Ada language specification.
  10954. Optimization passes that cause dead exceptions to be removed are
  10955. enabled independently at different optimization levels.
  10956. '-funwind-tables'
  10957. Similar to '-fexceptions', except that it just generates any needed
  10958. static data, but does not affect the generated code in any other
  10959. way. You normally do not need to enable this option; instead, a
  10960. language processor that needs this handling enables it on your
  10961. behalf.
  10962. '-fasynchronous-unwind-tables'
  10963. Generate unwind table in DWARF format, if supported by target
  10964. machine. The table is exact at each instruction boundary, so it
  10965. can be used for stack unwinding from asynchronous events (such as
  10966. debugger or garbage collector).
  10967. '-fno-gnu-unique'
  10968. On systems with recent GNU assembler and C library, the C++
  10969. compiler uses the 'STB_GNU_UNIQUE' binding to make sure that
  10970. definitions of template static data members and static local
  10971. variables in inline functions are unique even in the presence of
  10972. 'RTLD_LOCAL'; this is necessary to avoid problems with a library
  10973. used by two different 'RTLD_LOCAL' plugins depending on a
  10974. definition in one of them and therefore disagreeing with the other
  10975. one about the binding of the symbol. But this causes 'dlclose' to
  10976. be ignored for affected DSOs; if your program relies on
  10977. reinitialization of a DSO via 'dlclose' and 'dlopen', you can use
  10978. '-fno-gnu-unique'.
  10979. '-fpcc-struct-return'
  10980. Return "short" 'struct' and 'union' values in memory like longer
  10981. ones, rather than in registers. This convention is less efficient,
  10982. but it has the advantage of allowing intercallability between
  10983. GCC-compiled files and files compiled with other compilers,
  10984. particularly the Portable C Compiler (pcc).
  10985. The precise convention for returning structures in memory depends
  10986. on the target configuration macros.
  10987. Short structures and unions are those whose size and alignment
  10988. match that of some integer type.
  10989. *Warning:* code compiled with the '-fpcc-struct-return' switch is
  10990. not binary compatible with code compiled with the
  10991. '-freg-struct-return' switch. Use it to conform to a non-default
  10992. application binary interface.
  10993. '-freg-struct-return'
  10994. Return 'struct' and 'union' values in registers when possible.
  10995. This is more efficient for small structures than
  10996. '-fpcc-struct-return'.
  10997. If you specify neither '-fpcc-struct-return' nor
  10998. '-freg-struct-return', GCC defaults to whichever convention is
  10999. standard for the target. If there is no standard convention, GCC
  11000. defaults to '-fpcc-struct-return', except on targets where GCC is
  11001. the principal compiler. In those cases, we can choose the
  11002. standard, and we chose the more efficient register return
  11003. alternative.
  11004. *Warning:* code compiled with the '-freg-struct-return' switch is
  11005. not binary compatible with code compiled with the
  11006. '-fpcc-struct-return' switch. Use it to conform to a non-default
  11007. application binary interface.
  11008. '-fshort-enums'
  11009. Allocate to an 'enum' type only as many bytes as it needs for the
  11010. declared range of possible values. Specifically, the 'enum' type
  11011. is equivalent to the smallest integer type that has enough room.
  11012. *Warning:* the '-fshort-enums' switch causes GCC to generate code
  11013. that is not binary compatible with code generated without that
  11014. switch. Use it to conform to a non-default application binary
  11015. interface.
  11016. '-fshort-wchar'
  11017. Override the underlying type for 'wchar_t' to be 'short unsigned
  11018. int' instead of the default for the target. This option is useful
  11019. for building programs to run under WINE.
  11020. *Warning:* the '-fshort-wchar' switch causes GCC to generate code
  11021. that is not binary compatible with code generated without that
  11022. switch. Use it to conform to a non-default application binary
  11023. interface.
  11024. '-fno-common'
  11025. In C code, this option controls the placement of global variables
  11026. defined without an initializer, known as "tentative definitions" in
  11027. the C standard. Tentative definitions are distinct from
  11028. declarations of a variable with the 'extern' keyword, which do not
  11029. allocate storage.
  11030. Unix C compilers have traditionally allocated storage for
  11031. uninitialized global variables in a common block. This allows the
  11032. linker to resolve all tentative definitions of the same variable in
  11033. different compilation units to the same object, or to a
  11034. non-tentative definition. This is the behavior specified by
  11035. '-fcommon', and is the default for GCC on most targets. On the
  11036. other hand, this behavior is not required by ISO C, and on some
  11037. targets may carry a speed or code size penalty on variable
  11038. references.
  11039. The '-fno-common' option specifies that the compiler should instead
  11040. place uninitialized global variables in the BSS section of the
  11041. object file. This inhibits the merging of tentative definitions by
  11042. the linker so you get a multiple-definition error if the same
  11043. variable is defined in more than one compilation unit. Compiling
  11044. with '-fno-common' is useful on targets for which it provides
  11045. better performance, or if you wish to verify that the program will
  11046. work on other systems that always treat uninitialized variable
  11047. definitions this way.
  11048. '-fno-ident'
  11049. Ignore the '#ident' directive.
  11050. '-finhibit-size-directive'
  11051. Don't output a '.size' assembler directive, or anything else that
  11052. would cause trouble if the function is split in the middle, and the
  11053. two halves are placed at locations far apart in memory. This
  11054. option is used when compiling 'crtstuff.c'; you should not need to
  11055. use it for anything else.
  11056. '-fverbose-asm'
  11057. Put extra commentary information in the generated assembly code to
  11058. make it more readable. This option is generally only of use to
  11059. those who actually need to read the generated assembly code
  11060. (perhaps while debugging the compiler itself).
  11061. '-fno-verbose-asm', the default, causes the extra information to be
  11062. omitted and is useful when comparing two assembler files.
  11063. The added comments include:
  11064. * information on the compiler version and command-line options,
  11065. * the source code lines associated with the assembly
  11066. instructions, in the form FILENAME:LINENUMBER:CONTENT OF LINE,
  11067. * hints on which high-level expressions correspond to the
  11068. various assembly instruction operands.
  11069. For example, given this C source file:
  11070. int test (int n)
  11071. {
  11072. int i;
  11073. int total = 0;
  11074. for (i = 0; i < n; i++)
  11075. total += i * i;
  11076. return total;
  11077. }
  11078. compiling to (x86_64) assembly via '-S' and emitting the result
  11079. direct to stdout via '-o' '-'
  11080. gcc -S test.c -fverbose-asm -Os -o -
  11081. gives output similar to this:
  11082. .file "test.c"
  11083. # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64-pc-linux-gnu)
  11084. [...snip...]
  11085. # options passed:
  11086. [...snip...]
  11087. .text
  11088. .globl test
  11089. .type test, @function
  11090. test:
  11091. .LFB0:
  11092. .cfi_startproc
  11093. # test.c:4: int total = 0;
  11094. xorl %eax, %eax # <retval>
  11095. # test.c:6: for (i = 0; i < n; i++)
  11096. xorl %edx, %edx # i
  11097. .L2:
  11098. # test.c:6: for (i = 0; i < n; i++)
  11099. cmpl %edi, %edx # n, i
  11100. jge .L5 #,
  11101. # test.c:7: total += i * i;
  11102. movl %edx, %ecx # i, tmp92
  11103. imull %edx, %ecx # i, tmp92
  11104. # test.c:6: for (i = 0; i < n; i++)
  11105. incl %edx # i
  11106. # test.c:7: total += i * i;
  11107. addl %ecx, %eax # tmp92, <retval>
  11108. jmp .L2 #
  11109. .L5:
  11110. # test.c:10: }
  11111. ret
  11112. .cfi_endproc
  11113. .LFE0:
  11114. .size test, .-test
  11115. .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  11116. .section .note.GNU-stack,"",@progbits
  11117. The comments are intended for humans rather than machines and hence
  11118. the precise format of the comments is subject to change.
  11119. '-frecord-gcc-switches'
  11120. This switch causes the command line used to invoke the compiler to
  11121. be recorded into the object file that is being created. This
  11122. switch is only implemented on some targets and the exact format of
  11123. the recording is target and binary file format dependent, but it
  11124. usually takes the form of a section containing ASCII text. This
  11125. switch is related to the '-fverbose-asm' switch, but that switch
  11126. only records information in the assembler output file as comments,
  11127. so it never reaches the object file. See also
  11128. '-grecord-gcc-switches' for another way of storing compiler options
  11129. into the object file.
  11130. '-fpic'
  11131. Generate position-independent code (PIC) suitable for use in a
  11132. shared library, if supported for the target machine. Such code
  11133. accesses all constant addresses through a global offset table
  11134. (GOT). The dynamic loader resolves the GOT entries when the
  11135. program starts (the dynamic loader is not part of GCC; it is part
  11136. of the operating system). If the GOT size for the linked
  11137. executable exceeds a machine-specific maximum size, you get an
  11138. error message from the linker indicating that '-fpic' does not
  11139. work; in that case, recompile with '-fPIC' instead. (These
  11140. maximums are 8k on the SPARC, 28k on AArch64 and 32k on the m68k
  11141. and RS/6000. The x86 has no such limit.)
  11142. Position-independent code requires special support, and therefore
  11143. works only on certain machines. For the x86, GCC supports PIC for
  11144. System V but not for the Sun 386i. Code generated for the IBM
  11145. RS/6000 is always position-independent.
  11146. When this flag is set, the macros '__pic__' and '__PIC__' are
  11147. defined to 1.
  11148. '-fPIC'
  11149. If supported for the target machine, emit position-independent
  11150. code, suitable for dynamic linking and avoiding any limit on the
  11151. size of the global offset table. This option makes a difference on
  11152. AArch64, m68k, PowerPC and SPARC.
  11153. Position-independent code requires special support, and therefore
  11154. works only on certain machines.
  11155. When this flag is set, the macros '__pic__' and '__PIC__' are
  11156. defined to 2.
  11157. '-fpie'
  11158. '-fPIE'
  11159. These options are similar to '-fpic' and '-fPIC', but the generated
  11160. position-independent code can be only linked into executables.
  11161. Usually these options are used to compile code that will be linked
  11162. using the '-pie' GCC option.
  11163. '-fpie' and '-fPIE' both define the macros '__pie__' and '__PIE__'.
  11164. The macros have the value 1 for '-fpie' and 2 for '-fPIE'.
  11165. '-fno-plt'
  11166. Do not use the PLT for external function calls in
  11167. position-independent code. Instead, load the callee address at
  11168. call sites from the GOT and branch to it. This leads to more
  11169. efficient code by eliminating PLT stubs and exposing GOT loads to
  11170. optimizations. On architectures such as 32-bit x86 where PLT stubs
  11171. expect the GOT pointer in a specific register, this gives more
  11172. register allocation freedom to the compiler. Lazy binding requires
  11173. use of the PLT; with '-fno-plt' all external symbols are resolved
  11174. at load time.
  11175. Alternatively, the function attribute 'noplt' can be used to avoid
  11176. calls through the PLT for specific external functions.
  11177. In position-dependent code, a few targets also convert calls to
  11178. functions that are marked to not use the PLT to use the GOT
  11179. instead.
  11180. '-fno-jump-tables'
  11181. Do not use jump tables for switch statements even where it would be
  11182. more efficient than other code generation strategies. This option
  11183. is of use in conjunction with '-fpic' or '-fPIC' for building code
  11184. that forms part of a dynamic linker and cannot reference the
  11185. address of a jump table. On some targets, jump tables do not
  11186. require a GOT and this option is not needed.
  11187. '-ffixed-REG'
  11188. Treat the register named REG as a fixed register; generated code
  11189. should never refer to it (except perhaps as a stack pointer, frame
  11190. pointer or in some other fixed role).
  11191. REG must be the name of a register. The register names accepted
  11192. are machine-specific and are defined in the 'REGISTER_NAMES' macro
  11193. in the machine description macro file.
  11194. This flag does not have a negative form, because it specifies a
  11195. three-way choice.
  11196. '-fcall-used-REG'
  11197. Treat the register named REG as an allocable register that is
  11198. clobbered by function calls. It may be allocated for temporaries
  11199. or variables that do not live across a call. Functions compiled
  11200. this way do not save and restore the register REG.
  11201. It is an error to use this flag with the frame pointer or stack
  11202. pointer. Use of this flag for other registers that have fixed
  11203. pervasive roles in the machine's execution model produces
  11204. disastrous results.
  11205. This flag does not have a negative form, because it specifies a
  11206. three-way choice.
  11207. '-fcall-saved-REG'
  11208. Treat the register named REG as an allocable register saved by
  11209. functions. It may be allocated even for temporaries or variables
  11210. that live across a call. Functions compiled this way save and
  11211. restore the register REG if they use it.
  11212. It is an error to use this flag with the frame pointer or stack
  11213. pointer. Use of this flag for other registers that have fixed
  11214. pervasive roles in the machine's execution model produces
  11215. disastrous results.
  11216. A different sort of disaster results from the use of this flag for
  11217. a register in which function values may be returned.
  11218. This flag does not have a negative form, because it specifies a
  11219. three-way choice.
  11220. '-fpack-struct[=N]'
  11221. Without a value specified, pack all structure members together
  11222. without holes. When a value is specified (which must be a small
  11223. power of two), pack structure members according to this value,
  11224. representing the maximum alignment (that is, objects with default
  11225. alignment requirements larger than this are output potentially
  11226. unaligned at the next fitting location.
  11227. *Warning:* the '-fpack-struct' switch causes GCC to generate code
  11228. that is not binary compatible with code generated without that
  11229. switch. Additionally, it makes the code suboptimal. Use it to
  11230. conform to a non-default application binary interface.
  11231. '-fleading-underscore'
  11232. This option and its counterpart, '-fno-leading-underscore',
  11233. forcibly change the way C symbols are represented in the object
  11234. file. One use is to help link with legacy assembly code.
  11235. *Warning:* the '-fleading-underscore' switch causes GCC to generate
  11236. code that is not binary compatible with code generated without that
  11237. switch. Use it to conform to a non-default application binary
  11238. interface. Not all targets provide complete support for this
  11239. switch.
  11240. '-ftls-model=MODEL'
  11241. Alter the thread-local storage model to be used (*note
  11242. Thread-Local::). The MODEL argument should be one of
  11243. 'global-dynamic', 'local-dynamic', 'initial-exec' or 'local-exec'.
  11244. Note that the choice is subject to optimization: the compiler may
  11245. use a more efficient model for symbols not visible outside of the
  11246. translation unit, or if '-fpic' is not given on the command line.
  11247. The default without '-fpic' is 'initial-exec'; with '-fpic' the
  11248. default is 'global-dynamic'.
  11249. '-ftrampolines'
  11250. For targets that normally need trampolines for nested functions,
  11251. always generate them instead of using descriptors. Otherwise, for
  11252. targets that do not need them, like for example HP-PA or IA-64, do
  11253. nothing.
  11254. A trampoline is a small piece of code that is created at run time
  11255. on the stack when the address of a nested function is taken, and is
  11256. used to call the nested function indirectly. Therefore, it
  11257. requires the stack to be made executable in order for the program
  11258. to work properly.
  11259. '-fno-trampolines' is enabled by default on a language by language
  11260. basis to let the compiler avoid generating them, if it computes
  11261. that this is safe, and replace them with descriptors. Descriptors
  11262. are made up of data only, but the generated code must be prepared
  11263. to deal with them. As of this writing, '-fno-trampolines' is
  11264. enabled by default only for Ada.
  11265. Moreover, code compiled with '-ftrampolines' and code compiled with
  11266. '-fno-trampolines' are not binary compatible if nested functions
  11267. are present. This option must therefore be used on a program-wide
  11268. basis and be manipulated with extreme care.
  11269. '-fvisibility=[default|internal|hidden|protected]'
  11270. Set the default ELF image symbol visibility to the specified
  11271. option--all symbols are marked with this unless overridden within
  11272. the code. Using this feature can very substantially improve
  11273. linking and load times of shared object libraries, produce more
  11274. optimized code, provide near-perfect API export and prevent symbol
  11275. clashes. It is *strongly* recommended that you use this in any
  11276. shared objects you distribute.
  11277. Despite the nomenclature, 'default' always means public; i.e.,
  11278. available to be linked against from outside the shared object.
  11279. 'protected' and 'internal' are pretty useless in real-world usage
  11280. so the only other commonly used option is 'hidden'. The default if
  11281. '-fvisibility' isn't specified is 'default', i.e., make every
  11282. symbol public.
  11283. A good explanation of the benefits offered by ensuring ELF symbols
  11284. have the correct visibility is given by "How To Write Shared
  11285. Libraries" by Ulrich Drepper (which can be found at
  11286. <https://www.akkadia.org/drepper/>)--however a superior solution
  11287. made possible by this option to marking things hidden when the
  11288. default is public is to make the default hidden and mark things
  11289. public. This is the norm with DLLs on Windows and with
  11290. '-fvisibility=hidden' and '__attribute__ ((visibility("default")))'
  11291. instead of '__declspec(dllexport)' you get almost identical
  11292. semantics with identical syntax. This is a great boon to those
  11293. working with cross-platform projects.
  11294. For those adding visibility support to existing code, you may find
  11295. '#pragma GCC visibility' of use. This works by you enclosing the
  11296. declarations you wish to set visibility for with (for example)
  11297. '#pragma GCC visibility push(hidden)' and '#pragma GCC visibility
  11298. pop'. Bear in mind that symbol visibility should be viewed *as
  11299. part of the API interface contract* and thus all new code should
  11300. always specify visibility when it is not the default; i.e.,
  11301. declarations only for use within the local DSO should *always* be
  11302. marked explicitly as hidden as so to avoid PLT indirection
  11303. overheads--making this abundantly clear also aids readability and
  11304. self-documentation of the code. Note that due to ISO C++
  11305. specification requirements, 'operator new' and 'operator delete'
  11306. must always be of default visibility.
  11307. Be aware that headers from outside your project, in particular
  11308. system headers and headers from any other library you use, may not
  11309. be expecting to be compiled with visibility other than the default.
  11310. You may need to explicitly say '#pragma GCC visibility
  11311. push(default)' before including any such headers.
  11312. 'extern' declarations are not affected by '-fvisibility', so a lot
  11313. of code can be recompiled with '-fvisibility=hidden' with no
  11314. modifications. However, this means that calls to 'extern'
  11315. functions with no explicit visibility use the PLT, so it is more
  11316. effective to use '__attribute ((visibility))' and/or '#pragma GCC
  11317. visibility' to tell the compiler which 'extern' declarations should
  11318. be treated as hidden.
  11319. Note that '-fvisibility' does affect C++ vague linkage entities.
  11320. This means that, for instance, an exception class that is be thrown
  11321. between DSOs must be explicitly marked with default visibility so
  11322. that the 'type_info' nodes are unified between the DSOs.
  11323. An overview of these techniques, their benefits and how to use them
  11324. is at <http://gcc.gnu.org/wiki/Visibility>.
  11325. '-fstrict-volatile-bitfields'
  11326. This option should be used if accesses to volatile bit-fields (or
  11327. other structure fields, although the compiler usually honors those
  11328. types anyway) should use a single access of the width of the
  11329. field's type, aligned to a natural alignment if possible. For
  11330. example, targets with memory-mapped peripheral registers might
  11331. require all such accesses to be 16 bits wide; with this flag you
  11332. can declare all peripheral bit-fields as 'unsigned short' (assuming
  11333. short is 16 bits on these targets) to force GCC to use 16-bit
  11334. accesses instead of, perhaps, a more efficient 32-bit access.
  11335. If this option is disabled, the compiler uses the most efficient
  11336. instruction. In the previous example, that might be a 32-bit load
  11337. instruction, even though that accesses bytes that do not contain
  11338. any portion of the bit-field, or memory-mapped registers unrelated
  11339. to the one being updated.
  11340. In some cases, such as when the 'packed' attribute is applied to a
  11341. structure field, it may not be possible to access the field with a
  11342. single read or write that is correctly aligned for the target
  11343. machine. In this case GCC falls back to generating multiple
  11344. accesses rather than code that will fault or truncate the result at
  11345. run time.
  11346. Note: Due to restrictions of the C/C++11 memory model, write
  11347. accesses are not allowed to touch non bit-field members. It is
  11348. therefore recommended to define all bits of the field's type as
  11349. bit-field members.
  11350. The default value of this option is determined by the application
  11351. binary interface for the target processor.
  11352. '-fsync-libcalls'
  11353. This option controls whether any out-of-line instance of the
  11354. '__sync' family of functions may be used to implement the C++11
  11355. '__atomic' family of functions.
  11356. The default value of this option is enabled, thus the only useful
  11357. form of the option is '-fno-sync-libcalls'. This option is used in
  11358. the implementation of the 'libatomic' runtime library.
  11359. 
  11360. File: gcc.info, Node: Developer Options, Next: Submodel Options, Prev: Code Gen Options, Up: Invoking GCC
  11361. 3.17 GCC Developer Options
  11362. ==========================
  11363. This section describes command-line options that are primarily of
  11364. interest to GCC developers, including options to support compiler
  11365. testing and investigation of compiler bugs and compile-time performance
  11366. problems. This includes options that produce debug dumps at various
  11367. points in the compilation; that print statistics such as memory use and
  11368. execution time; and that print information about GCC's configuration,
  11369. such as where it searches for libraries. You should rarely need to use
  11370. any of these options for ordinary compilation and linking tasks.
  11371. Many developer options that cause GCC to dump output to a file take an
  11372. optional '=FILENAME' suffix. You can specify 'stdout' or '-' to dump to
  11373. standard output, and 'stderr' for standard error.
  11374. If '=FILENAME' is omitted, a default dump file name is constructed by
  11375. concatenating the base dump file name, a pass number, phase letter, and
  11376. pass name. The base dump file name is the name of output file produced
  11377. by the compiler if explicitly specified and not an executable; otherwise
  11378. it is the source file name. The pass number is determined by the order
  11379. passes are registered with the compiler's pass manager. This is
  11380. generally the same as the order of execution, but passes registered by
  11381. plugins, target-specific passes, or passes that are otherwise registered
  11382. late are numbered higher than the pass named 'final', even if they are
  11383. executed earlier. The phase letter is one of 'i' (inter-procedural
  11384. analysis), 'l' (language-specific), 'r' (RTL), or 't' (tree). The files
  11385. are created in the directory of the output file.
  11386. '-dLETTERS'
  11387. '-fdump-rtl-PASS'
  11388. '-fdump-rtl-PASS=FILENAME'
  11389. Says to make debugging dumps during compilation at times specified
  11390. by LETTERS. This is used for debugging the RTL-based passes of the
  11391. compiler.
  11392. Some '-dLETTERS' switches have different meaning when '-E' is used
  11393. for preprocessing. *Note Preprocessor Options::, for information
  11394. about preprocessor-specific dump options.
  11395. Debug dumps can be enabled with a '-fdump-rtl' switch or some '-d'
  11396. option LETTERS. Here are the possible letters for use in PASS and
  11397. LETTERS, and their meanings:
  11398. '-fdump-rtl-alignments'
  11399. Dump after branch alignments have been computed.
  11400. '-fdump-rtl-asmcons'
  11401. Dump after fixing rtl statements that have unsatisfied in/out
  11402. constraints.
  11403. '-fdump-rtl-auto_inc_dec'
  11404. Dump after auto-inc-dec discovery. This pass is only run on
  11405. architectures that have auto inc or auto dec instructions.
  11406. '-fdump-rtl-barriers'
  11407. Dump after cleaning up the barrier instructions.
  11408. '-fdump-rtl-bbpart'
  11409. Dump after partitioning hot and cold basic blocks.
  11410. '-fdump-rtl-bbro'
  11411. Dump after block reordering.
  11412. '-fdump-rtl-btl1'
  11413. '-fdump-rtl-btl2'
  11414. '-fdump-rtl-btl1' and '-fdump-rtl-btl2' enable dumping after
  11415. the two branch target load optimization passes.
  11416. '-fdump-rtl-bypass'
  11417. Dump after jump bypassing and control flow optimizations.
  11418. '-fdump-rtl-combine'
  11419. Dump after the RTL instruction combination pass.
  11420. '-fdump-rtl-compgotos'
  11421. Dump after duplicating the computed gotos.
  11422. '-fdump-rtl-ce1'
  11423. '-fdump-rtl-ce2'
  11424. '-fdump-rtl-ce3'
  11425. '-fdump-rtl-ce1', '-fdump-rtl-ce2', and '-fdump-rtl-ce3'
  11426. enable dumping after the three if conversion passes.
  11427. '-fdump-rtl-cprop_hardreg'
  11428. Dump after hard register copy propagation.
  11429. '-fdump-rtl-csa'
  11430. Dump after combining stack adjustments.
  11431. '-fdump-rtl-cse1'
  11432. '-fdump-rtl-cse2'
  11433. '-fdump-rtl-cse1' and '-fdump-rtl-cse2' enable dumping after
  11434. the two common subexpression elimination passes.
  11435. '-fdump-rtl-dce'
  11436. Dump after the standalone dead code elimination passes.
  11437. '-fdump-rtl-dbr'
  11438. Dump after delayed branch scheduling.
  11439. '-fdump-rtl-dce1'
  11440. '-fdump-rtl-dce2'
  11441. '-fdump-rtl-dce1' and '-fdump-rtl-dce2' enable dumping after
  11442. the two dead store elimination passes.
  11443. '-fdump-rtl-eh'
  11444. Dump after finalization of EH handling code.
  11445. '-fdump-rtl-eh_ranges'
  11446. Dump after conversion of EH handling range regions.
  11447. '-fdump-rtl-expand'
  11448. Dump after RTL generation.
  11449. '-fdump-rtl-fwprop1'
  11450. '-fdump-rtl-fwprop2'
  11451. '-fdump-rtl-fwprop1' and '-fdump-rtl-fwprop2' enable dumping
  11452. after the two forward propagation passes.
  11453. '-fdump-rtl-gcse1'
  11454. '-fdump-rtl-gcse2'
  11455. '-fdump-rtl-gcse1' and '-fdump-rtl-gcse2' enable dumping after
  11456. global common subexpression elimination.
  11457. '-fdump-rtl-init-regs'
  11458. Dump after the initialization of the registers.
  11459. '-fdump-rtl-initvals'
  11460. Dump after the computation of the initial value sets.
  11461. '-fdump-rtl-into_cfglayout'
  11462. Dump after converting to cfglayout mode.
  11463. '-fdump-rtl-ira'
  11464. Dump after iterated register allocation.
  11465. '-fdump-rtl-jump'
  11466. Dump after the second jump optimization.
  11467. '-fdump-rtl-loop2'
  11468. '-fdump-rtl-loop2' enables dumping after the rtl loop
  11469. optimization passes.
  11470. '-fdump-rtl-mach'
  11471. Dump after performing the machine dependent reorganization
  11472. pass, if that pass exists.
  11473. '-fdump-rtl-mode_sw'
  11474. Dump after removing redundant mode switches.
  11475. '-fdump-rtl-rnreg'
  11476. Dump after register renumbering.
  11477. '-fdump-rtl-outof_cfglayout'
  11478. Dump after converting from cfglayout mode.
  11479. '-fdump-rtl-peephole2'
  11480. Dump after the peephole pass.
  11481. '-fdump-rtl-postreload'
  11482. Dump after post-reload optimizations.
  11483. '-fdump-rtl-pro_and_epilogue'
  11484. Dump after generating the function prologues and epilogues.
  11485. '-fdump-rtl-sched1'
  11486. '-fdump-rtl-sched2'
  11487. '-fdump-rtl-sched1' and '-fdump-rtl-sched2' enable dumping
  11488. after the basic block scheduling passes.
  11489. '-fdump-rtl-ree'
  11490. Dump after sign/zero extension elimination.
  11491. '-fdump-rtl-seqabstr'
  11492. Dump after common sequence discovery.
  11493. '-fdump-rtl-shorten'
  11494. Dump after shortening branches.
  11495. '-fdump-rtl-sibling'
  11496. Dump after sibling call optimizations.
  11497. '-fdump-rtl-split1'
  11498. '-fdump-rtl-split2'
  11499. '-fdump-rtl-split3'
  11500. '-fdump-rtl-split4'
  11501. '-fdump-rtl-split5'
  11502. These options enable dumping after five rounds of instruction
  11503. splitting.
  11504. '-fdump-rtl-sms'
  11505. Dump after modulo scheduling. This pass is only run on some
  11506. architectures.
  11507. '-fdump-rtl-stack'
  11508. Dump after conversion from GCC's "flat register file"
  11509. registers to the x87's stack-like registers. This pass is
  11510. only run on x86 variants.
  11511. '-fdump-rtl-subreg1'
  11512. '-fdump-rtl-subreg2'
  11513. '-fdump-rtl-subreg1' and '-fdump-rtl-subreg2' enable dumping
  11514. after the two subreg expansion passes.
  11515. '-fdump-rtl-unshare'
  11516. Dump after all rtl has been unshared.
  11517. '-fdump-rtl-vartrack'
  11518. Dump after variable tracking.
  11519. '-fdump-rtl-vregs'
  11520. Dump after converting virtual registers to hard registers.
  11521. '-fdump-rtl-web'
  11522. Dump after live range splitting.
  11523. '-fdump-rtl-regclass'
  11524. '-fdump-rtl-subregs_of_mode_init'
  11525. '-fdump-rtl-subregs_of_mode_finish'
  11526. '-fdump-rtl-dfinit'
  11527. '-fdump-rtl-dfinish'
  11528. These dumps are defined but always produce empty files.
  11529. '-da'
  11530. '-fdump-rtl-all'
  11531. Produce all the dumps listed above.
  11532. '-dA'
  11533. Annotate the assembler output with miscellaneous debugging
  11534. information.
  11535. '-dD'
  11536. Dump all macro definitions, at the end of preprocessing, in
  11537. addition to normal output.
  11538. '-dH'
  11539. Produce a core dump whenever an error occurs.
  11540. '-dp'
  11541. Annotate the assembler output with a comment indicating which
  11542. pattern and alternative is used. The length and cost of each
  11543. instruction are also printed.
  11544. '-dP'
  11545. Dump the RTL in the assembler output as a comment before each
  11546. instruction. Also turns on '-dp' annotation.
  11547. '-dx'
  11548. Just generate RTL for a function instead of compiling it.
  11549. Usually used with '-fdump-rtl-expand'.
  11550. '-fdump-debug'
  11551. Dump debugging information generated during the debug generation
  11552. phase.
  11553. '-fdump-earlydebug'
  11554. Dump debugging information generated during the early debug
  11555. generation phase.
  11556. '-fdump-noaddr'
  11557. When doing debugging dumps, suppress address output. This makes it
  11558. more feasible to use diff on debugging dumps for compiler
  11559. invocations with different compiler binaries and/or different text
  11560. / bss / data / heap / stack / dso start locations.
  11561. '-freport-bug'
  11562. Collect and dump debug information into a temporary file if an
  11563. internal compiler error (ICE) occurs.
  11564. '-fdump-unnumbered'
  11565. When doing debugging dumps, suppress instruction numbers and
  11566. address output. This makes it more feasible to use diff on
  11567. debugging dumps for compiler invocations with different options, in
  11568. particular with and without '-g'.
  11569. '-fdump-unnumbered-links'
  11570. When doing debugging dumps (see '-d' option above), suppress
  11571. instruction numbers for the links to the previous and next
  11572. instructions in a sequence.
  11573. '-fdump-ipa-SWITCH'
  11574. '-fdump-ipa-SWITCH-OPTIONS'
  11575. Control the dumping at various stages of inter-procedural analysis
  11576. language tree to a file. The file name is generated by appending a
  11577. switch specific suffix to the source file name, and the file is
  11578. created in the same directory as the output file. The following
  11579. dumps are possible:
  11580. 'all'
  11581. Enables all inter-procedural analysis dumps.
  11582. 'cgraph'
  11583. Dumps information about call-graph optimization, unused
  11584. function removal, and inlining decisions.
  11585. 'inline'
  11586. Dump after function inlining.
  11587. Additionally, the options '-optimized', '-missed', '-note', and
  11588. '-all' can be provided, with the same meaning as for '-fopt-info',
  11589. defaulting to '-optimized'.
  11590. For example, '-fdump-ipa-inline-optimized-missed' will emit
  11591. information on callsites that were inlined, along with callsites
  11592. that were not inlined.
  11593. By default, the dump will contain messages about successful
  11594. optimizations (equivalent to '-optimized') together with low-level
  11595. details about the analysis.
  11596. '-fdump-lang-all'
  11597. '-fdump-lang-SWITCH'
  11598. '-fdump-lang-SWITCH-OPTIONS'
  11599. '-fdump-lang-SWITCH-OPTIONS=FILENAME'
  11600. Control the dumping of language-specific information. The OPTIONS
  11601. and FILENAME portions behave as described in the '-fdump-tree'
  11602. option. The following SWITCH values are accepted:
  11603. 'all'
  11604. Enable all language-specific dumps.
  11605. 'class'
  11606. Dump class hierarchy information. Virtual table information
  11607. is emitted unless ''slim'' is specified. This option is
  11608. applicable to C++ only.
  11609. 'raw'
  11610. Dump the raw internal tree data. This option is applicable to
  11611. C++ only.
  11612. '-fdump-passes'
  11613. Print on 'stderr' the list of optimization passes that are turned
  11614. on and off by the current command-line options.
  11615. '-fdump-statistics-OPTION'
  11616. Enable and control dumping of pass statistics in a separate file.
  11617. The file name is generated by appending a suffix ending in
  11618. '.statistics' to the source file name, and the file is created in
  11619. the same directory as the output file. If the '-OPTION' form is
  11620. used, '-stats' causes counters to be summed over the whole
  11621. compilation unit while '-details' dumps every event as the passes
  11622. generate them. The default with no option is to sum counters for
  11623. each function compiled.
  11624. '-fdump-tree-all'
  11625. '-fdump-tree-SWITCH'
  11626. '-fdump-tree-SWITCH-OPTIONS'
  11627. '-fdump-tree-SWITCH-OPTIONS=FILENAME'
  11628. Control the dumping at various stages of processing the
  11629. intermediate language tree to a file. If the '-OPTIONS' form is
  11630. used, OPTIONS is a list of '-' separated options which control the
  11631. details of the dump. Not all options are applicable to all dumps;
  11632. those that are not meaningful are ignored. The following options
  11633. are available
  11634. 'address'
  11635. Print the address of each node. Usually this is not
  11636. meaningful as it changes according to the environment and
  11637. source file. Its primary use is for tying up a dump file with
  11638. a debug environment.
  11639. 'asmname'
  11640. If 'DECL_ASSEMBLER_NAME' has been set for a given decl, use
  11641. that in the dump instead of 'DECL_NAME'. Its primary use is
  11642. ease of use working backward from mangled names in the
  11643. assembly file.
  11644. 'slim'
  11645. When dumping front-end intermediate representations, inhibit
  11646. dumping of members of a scope or body of a function merely
  11647. because that scope has been reached. Only dump such items
  11648. when they are directly reachable by some other path.
  11649. When dumping pretty-printed trees, this option inhibits
  11650. dumping the bodies of control structures.
  11651. When dumping RTL, print the RTL in slim (condensed) form
  11652. instead of the default LISP-like representation.
  11653. 'raw'
  11654. Print a raw representation of the tree. By default, trees are
  11655. pretty-printed into a C-like representation.
  11656. 'details'
  11657. Enable more detailed dumps (not honored by every dump option).
  11658. Also include information from the optimization passes.
  11659. 'stats'
  11660. Enable dumping various statistics about the pass (not honored
  11661. by every dump option).
  11662. 'blocks'
  11663. Enable showing basic block boundaries (disabled in raw dumps).
  11664. 'graph'
  11665. For each of the other indicated dump files
  11666. ('-fdump-rtl-PASS'), dump a representation of the control flow
  11667. graph suitable for viewing with GraphViz to
  11668. 'FILE.PASSID.PASS.dot'. Each function in the file is
  11669. pretty-printed as a subgraph, so that GraphViz can render them
  11670. all in a single plot.
  11671. This option currently only works for RTL dumps, and the RTL is
  11672. always dumped in slim form.
  11673. 'vops'
  11674. Enable showing virtual operands for every statement.
  11675. 'lineno'
  11676. Enable showing line numbers for statements.
  11677. 'uid'
  11678. Enable showing the unique ID ('DECL_UID') for each variable.
  11679. 'verbose'
  11680. Enable showing the tree dump for each statement.
  11681. 'eh'
  11682. Enable showing the EH region number holding each statement.
  11683. 'scev'
  11684. Enable showing scalar evolution analysis details.
  11685. 'optimized'
  11686. Enable showing optimization information (only available in
  11687. certain passes).
  11688. 'missed'
  11689. Enable showing missed optimization information (only available
  11690. in certain passes).
  11691. 'note'
  11692. Enable other detailed optimization information (only available
  11693. in certain passes).
  11694. 'all'
  11695. Turn on all options, except 'raw', 'slim', 'verbose' and
  11696. 'lineno'.
  11697. 'optall'
  11698. Turn on all optimization options, i.e., 'optimized', 'missed',
  11699. and 'note'.
  11700. To determine what tree dumps are available or find the dump for a
  11701. pass of interest follow the steps below.
  11702. 1. Invoke GCC with '-fdump-passes' and in the 'stderr' output
  11703. look for a code that corresponds to the pass you are
  11704. interested in. For example, the codes 'tree-evrp',
  11705. 'tree-vrp1', and 'tree-vrp2' correspond to the three Value
  11706. Range Propagation passes. The number at the end distinguishes
  11707. distinct invocations of the same pass.
  11708. 2. To enable the creation of the dump file, append the pass code
  11709. to the '-fdump-' option prefix and invoke GCC with it. For
  11710. example, to enable the dump from the Early Value Range
  11711. Propagation pass, invoke GCC with the '-fdump-tree-evrp'
  11712. option. Optionally, you may specify the name of the dump
  11713. file. If you don't specify one, GCC creates as described
  11714. below.
  11715. 3. Find the pass dump in a file whose name is composed of three
  11716. components separated by a period: the name of the source file
  11717. GCC was invoked to compile, a numeric suffix indicating the
  11718. pass number followed by the letter 't' for tree passes (and
  11719. the letter 'r' for RTL passes), and finally the pass code.
  11720. For example, the Early VRP pass dump might be in a file named
  11721. 'myfile.c.038t.evrp' in the current working directory. Note
  11722. that the numeric codes are not stable and may change from one
  11723. version of GCC to another.
  11724. '-fopt-info'
  11725. '-fopt-info-OPTIONS'
  11726. '-fopt-info-OPTIONS=FILENAME'
  11727. Controls optimization dumps from various optimization passes. If
  11728. the '-OPTIONS' form is used, OPTIONS is a list of '-' separated
  11729. option keywords to select the dump details and optimizations.
  11730. The OPTIONS can be divided into three groups:
  11731. 1. options describing what kinds of messages should be emitted,
  11732. 2. options describing the verbosity of the dump, and
  11733. 3. options describing which optimizations should be included.
  11734. The options from each group can be freely mixed as they are
  11735. non-overlapping. However, in case of any conflicts, the later
  11736. options override the earlier options on the command line.
  11737. The following options control which kinds of messages should be
  11738. emitted:
  11739. 'optimized'
  11740. Print information when an optimization is successfully
  11741. applied. It is up to a pass to decide which information is
  11742. relevant. For example, the vectorizer passes print the source
  11743. location of loops which are successfully vectorized.
  11744. 'missed'
  11745. Print information about missed optimizations. Individual
  11746. passes control which information to include in the output.
  11747. 'note'
  11748. Print verbose information about optimizations, such as certain
  11749. transformations, more detailed messages about decisions etc.
  11750. 'all'
  11751. Print detailed optimization information. This includes
  11752. 'optimized', 'missed', and 'note'.
  11753. The following option controls the dump verbosity:
  11754. 'internals'
  11755. By default, only "high-level" messages are emitted. This
  11756. option enables additional, more detailed, messages, which are
  11757. likely to only be of interest to GCC developers.
  11758. One or more of the following option keywords can be used to
  11759. describe a group of optimizations:
  11760. 'ipa'
  11761. Enable dumps from all interprocedural optimizations.
  11762. 'loop'
  11763. Enable dumps from all loop optimizations.
  11764. 'inline'
  11765. Enable dumps from all inlining optimizations.
  11766. 'omp'
  11767. Enable dumps from all OMP (Offloading and Multi Processing)
  11768. optimizations.
  11769. 'vec'
  11770. Enable dumps from all vectorization optimizations.
  11771. 'optall'
  11772. Enable dumps from all optimizations. This is a superset of
  11773. the optimization groups listed above.
  11774. If OPTIONS is omitted, it defaults to 'optimized-optall', which
  11775. means to dump messages about successful optimizations from all the
  11776. passes, omitting messages that are treated as "internals".
  11777. If the FILENAME is provided, then the dumps from all the applicable
  11778. optimizations are concatenated into the FILENAME. Otherwise the
  11779. dump is output onto 'stderr'. Though multiple '-fopt-info' options
  11780. are accepted, only one of them can include a FILENAME. If other
  11781. filenames are provided then all but the first such option are
  11782. ignored.
  11783. Note that the output FILENAME is overwritten in case of multiple
  11784. translation units. If a combined output from multiple translation
  11785. units is desired, 'stderr' should be used instead.
  11786. In the following example, the optimization info is output to
  11787. 'stderr':
  11788. gcc -O3 -fopt-info
  11789. This example:
  11790. gcc -O3 -fopt-info-missed=missed.all
  11791. outputs missed optimization report from all the passes into
  11792. 'missed.all', and this one:
  11793. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  11794. prints information about missed optimization opportunities from
  11795. vectorization passes on 'stderr'. Note that
  11796. '-fopt-info-vec-missed' is equivalent to '-fopt-info-missed-vec'.
  11797. The order of the optimization group names and message types listed
  11798. after '-fopt-info' does not matter.
  11799. As another example,
  11800. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  11801. outputs information about missed optimizations as well as optimized
  11802. locations from all the inlining passes into 'inline.txt'.
  11803. Finally, consider:
  11804. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  11805. Here the two output filenames 'vec.miss' and 'loop.opt' are in
  11806. conflict since only one output file is allowed. In this case, only
  11807. the first option takes effect and the subsequent options are
  11808. ignored. Thus only 'vec.miss' is produced which contains dumps
  11809. from the vectorizer about missed opportunities.
  11810. '-fsave-optimization-record'
  11811. Write a SRCFILE.opt-record.json.gz file detailing what
  11812. optimizations were performed, for those optimizations that support
  11813. '-fopt-info'.
  11814. This option is experimental and the format of the data within the
  11815. compressed JSON file is subject to change.
  11816. It is roughly equivalent to a machine-readable version of
  11817. '-fopt-info-all', as a collection of messages with source file,
  11818. line number and column number, with the following additional data
  11819. for each message:
  11820. * the execution count of the code being optimized, along with
  11821. metadata about whether this was from actual profile data, or
  11822. just an estimate, allowing consumers to prioritize messages by
  11823. code hotness,
  11824. * the function name of the code being optimized, where
  11825. applicable,
  11826. * the "inlining chain" for the code being optimized, so that
  11827. when a function is inlined into several different places
  11828. (which might themselves be inlined), the reader can
  11829. distinguish between the copies,
  11830. * objects identifying those parts of the message that refer to
  11831. expressions, statements or symbol-table nodes, which of these
  11832. categories they are, and, when available, their source code
  11833. location,
  11834. * the GCC pass that emitted the message, and
  11835. * the location in GCC's own code from which the message was
  11836. emitted
  11837. Additionally, some messages are logically nested within other
  11838. messages, reflecting implementation details of the optimization
  11839. passes.
  11840. '-fsched-verbose=N'
  11841. On targets that use instruction scheduling, this option controls
  11842. the amount of debugging output the scheduler prints to the dump
  11843. files.
  11844. For N greater than zero, '-fsched-verbose' outputs the same
  11845. information as '-fdump-rtl-sched1' and '-fdump-rtl-sched2'. For N
  11846. greater than one, it also output basic block probabilities,
  11847. detailed ready list information and unit/insn info. For N greater
  11848. than two, it includes RTL at abort point, control-flow and regions
  11849. info. And for N over four, '-fsched-verbose' also includes
  11850. dependence info.
  11851. '-fenable-KIND-PASS'
  11852. '-fdisable-KIND-PASS=RANGE-LIST'
  11853. This is a set of options that are used to explicitly disable/enable
  11854. optimization passes. These options are intended for use for
  11855. debugging GCC. Compiler users should use regular options for
  11856. enabling/disabling passes instead.
  11857. '-fdisable-ipa-PASS'
  11858. Disable IPA pass PASS. PASS is the pass name. If the same
  11859. pass is statically invoked in the compiler multiple times, the
  11860. pass name should be appended with a sequential number starting
  11861. from 1.
  11862. '-fdisable-rtl-PASS'
  11863. '-fdisable-rtl-PASS=RANGE-LIST'
  11864. Disable RTL pass PASS. PASS is the pass name. If the same
  11865. pass is statically invoked in the compiler multiple times, the
  11866. pass name should be appended with a sequential number starting
  11867. from 1. RANGE-LIST is a comma-separated list of function
  11868. ranges or assembler names. Each range is a number pair
  11869. separated by a colon. The range is inclusive in both ends.
  11870. If the range is trivial, the number pair can be simplified as
  11871. a single number. If the function's call graph node's UID
  11872. falls within one of the specified ranges, the PASS is disabled
  11873. for that function. The UID is shown in the function header of
  11874. a dump file, and the pass names can be dumped by using option
  11875. '-fdump-passes'.
  11876. '-fdisable-tree-PASS'
  11877. '-fdisable-tree-PASS=RANGE-LIST'
  11878. Disable tree pass PASS. See '-fdisable-rtl' for the
  11879. description of option arguments.
  11880. '-fenable-ipa-PASS'
  11881. Enable IPA pass PASS. PASS is the pass name. If the same
  11882. pass is statically invoked in the compiler multiple times, the
  11883. pass name should be appended with a sequential number starting
  11884. from 1.
  11885. '-fenable-rtl-PASS'
  11886. '-fenable-rtl-PASS=RANGE-LIST'
  11887. Enable RTL pass PASS. See '-fdisable-rtl' for option argument
  11888. description and examples.
  11889. '-fenable-tree-PASS'
  11890. '-fenable-tree-PASS=RANGE-LIST'
  11891. Enable tree pass PASS. See '-fdisable-rtl' for the
  11892. description of option arguments.
  11893. Here are some examples showing uses of these options.
  11894. # disable ccp1 for all functions
  11895. -fdisable-tree-ccp1
  11896. # disable complete unroll for function whose cgraph node uid is 1
  11897. -fenable-tree-cunroll=1
  11898. # disable gcse2 for functions at the following ranges [1,1],
  11899. # [300,400], and [400,1000]
  11900. # disable gcse2 for functions foo and foo2
  11901. -fdisable-rtl-gcse2=foo,foo2
  11902. # disable early inlining
  11903. -fdisable-tree-einline
  11904. # disable ipa inlining
  11905. -fdisable-ipa-inline
  11906. # enable tree full unroll
  11907. -fenable-tree-unroll
  11908. '-fchecking'
  11909. '-fchecking=N'
  11910. Enable internal consistency checking. The default depends on the
  11911. compiler configuration. '-fchecking=2' enables further internal
  11912. consistency checking that might affect code generation.
  11913. '-frandom-seed=STRING'
  11914. This option provides a seed that GCC uses in place of random
  11915. numbers in generating certain symbol names that have to be
  11916. different in every compiled file. It is also used to place unique
  11917. stamps in coverage data files and the object files that produce
  11918. them. You can use the '-frandom-seed' option to produce
  11919. reproducibly identical object files.
  11920. The STRING can either be a number (decimal, octal or hex) or an
  11921. arbitrary string (in which case it's converted to a number by
  11922. computing CRC32).
  11923. The STRING should be different for every file you compile.
  11924. '-save-temps'
  11925. '-save-temps=cwd'
  11926. Store the usual "temporary" intermediate files permanently; place
  11927. them in the current directory and name them based on the source
  11928. file. Thus, compiling 'foo.c' with '-c -save-temps' produces files
  11929. 'foo.i' and 'foo.s', as well as 'foo.o'. This creates a
  11930. preprocessed 'foo.i' output file even though the compiler now
  11931. normally uses an integrated preprocessor.
  11932. When used in combination with the '-x' command-line option,
  11933. '-save-temps' is sensible enough to avoid over writing an input
  11934. source file with the same extension as an intermediate file. The
  11935. corresponding intermediate file may be obtained by renaming the
  11936. source file before using '-save-temps'.
  11937. If you invoke GCC in parallel, compiling several different source
  11938. files that share a common base name in different subdirectories or
  11939. the same source file compiled for multiple output destinations, it
  11940. is likely that the different parallel compilers will interfere with
  11941. each other, and overwrite the temporary files. For instance:
  11942. gcc -save-temps -o outdir1/foo.o indir1/foo.c&
  11943. gcc -save-temps -o outdir2/foo.o indir2/foo.c&
  11944. may result in 'foo.i' and 'foo.o' being written to simultaneously
  11945. by both compilers.
  11946. '-save-temps=obj'
  11947. Store the usual "temporary" intermediate files permanently. If the
  11948. '-o' option is used, the temporary files are based on the object
  11949. file. If the '-o' option is not used, the '-save-temps=obj' switch
  11950. behaves like '-save-temps'.
  11951. For example:
  11952. gcc -save-temps=obj -c foo.c
  11953. gcc -save-temps=obj -c bar.c -o dir/xbar.o
  11954. gcc -save-temps=obj foobar.c -o dir2/yfoobar
  11955. creates 'foo.i', 'foo.s', 'dir/xbar.i', 'dir/xbar.s',
  11956. 'dir2/yfoobar.i', 'dir2/yfoobar.s', and 'dir2/yfoobar.o'.
  11957. '-time[=FILE]'
  11958. Report the CPU time taken by each subprocess in the compilation
  11959. sequence. For C source files, this is the compiler proper and
  11960. assembler (plus the linker if linking is done).
  11961. Without the specification of an output file, the output looks like
  11962. this:
  11963. # cc1 0.12 0.01
  11964. # as 0.00 0.01
  11965. The first number on each line is the "user time", that is time
  11966. spent executing the program itself. The second number is "system
  11967. time", time spent executing operating system routines on behalf of
  11968. the program. Both numbers are in seconds.
  11969. With the specification of an output file, the output is appended to
  11970. the named file, and it looks like this:
  11971. 0.12 0.01 cc1 OPTIONS
  11972. 0.00 0.01 as OPTIONS
  11973. The "user time" and the "system time" are moved before the program
  11974. name, and the options passed to the program are displayed, so that
  11975. one can later tell what file was being compiled, and with which
  11976. options.
  11977. '-fdump-final-insns[=FILE]'
  11978. Dump the final internal representation (RTL) to FILE. If the
  11979. optional argument is omitted (or if FILE is '.'), the name of the
  11980. dump file is determined by appending '.gkd' to the compilation
  11981. output file name.
  11982. '-fcompare-debug[=OPTS]'
  11983. If no error occurs during compilation, run the compiler a second
  11984. time, adding OPTS and '-fcompare-debug-second' to the arguments
  11985. passed to the second compilation. Dump the final internal
  11986. representation in both compilations, and print an error if they
  11987. differ.
  11988. If the equal sign is omitted, the default '-gtoggle' is used.
  11989. The environment variable 'GCC_COMPARE_DEBUG', if defined, non-empty
  11990. and nonzero, implicitly enables '-fcompare-debug'. If
  11991. 'GCC_COMPARE_DEBUG' is defined to a string starting with a dash,
  11992. then it is used for OPTS, otherwise the default '-gtoggle' is used.
  11993. '-fcompare-debug=', with the equal sign but without OPTS, is
  11994. equivalent to '-fno-compare-debug', which disables the dumping of
  11995. the final representation and the second compilation, preventing
  11996. even 'GCC_COMPARE_DEBUG' from taking effect.
  11997. To verify full coverage during '-fcompare-debug' testing, set
  11998. 'GCC_COMPARE_DEBUG' to say '-fcompare-debug-not-overridden', which
  11999. GCC rejects as an invalid option in any actual compilation (rather
  12000. than preprocessing, assembly or linking). To get just a warning,
  12001. setting 'GCC_COMPARE_DEBUG' to '-w%n-fcompare-debug not overridden'
  12002. will do.
  12003. '-fcompare-debug-second'
  12004. This option is implicitly passed to the compiler for the second
  12005. compilation requested by '-fcompare-debug', along with options to
  12006. silence warnings, and omitting other options that would cause the
  12007. compiler to produce output to files or to standard output as a side
  12008. effect. Dump files and preserved temporary files are renamed so as
  12009. to contain the '.gk' additional extension during the second
  12010. compilation, to avoid overwriting those generated by the first.
  12011. When this option is passed to the compiler driver, it causes the
  12012. _first_ compilation to be skipped, which makes it useful for little
  12013. other than debugging the compiler proper.
  12014. '-gtoggle'
  12015. Turn off generation of debug info, if leaving out this option
  12016. generates it, or turn it on at level 2 otherwise. The position of
  12017. this argument in the command line does not matter; it takes effect
  12018. after all other options are processed, and it does so only once, no
  12019. matter how many times it is given. This is mainly intended to be
  12020. used with '-fcompare-debug'.
  12021. '-fvar-tracking-assignments-toggle'
  12022. Toggle '-fvar-tracking-assignments', in the same way that
  12023. '-gtoggle' toggles '-g'.
  12024. '-Q'
  12025. Makes the compiler print out each function name as it is compiled,
  12026. and print some statistics about each pass when it finishes.
  12027. '-ftime-report'
  12028. Makes the compiler print some statistics about the time consumed by
  12029. each pass when it finishes.
  12030. '-ftime-report-details'
  12031. Record the time consumed by infrastructure parts separately for
  12032. each pass.
  12033. '-fira-verbose=N'
  12034. Control the verbosity of the dump file for the integrated register
  12035. allocator. The default value is 5. If the value N is greater or
  12036. equal to 10, the dump output is sent to stderr using the same
  12037. format as N minus 10.
  12038. '-flto-report'
  12039. Prints a report with internal details on the workings of the
  12040. link-time optimizer. The contents of this report vary from version
  12041. to version. It is meant to be useful to GCC developers when
  12042. processing object files in LTO mode (via '-flto').
  12043. Disabled by default.
  12044. '-flto-report-wpa'
  12045. Like '-flto-report', but only print for the WPA phase of Link Time
  12046. Optimization.
  12047. '-fmem-report'
  12048. Makes the compiler print some statistics about permanent memory
  12049. allocation when it finishes.
  12050. '-fmem-report-wpa'
  12051. Makes the compiler print some statistics about permanent memory
  12052. allocation for the WPA phase only.
  12053. '-fpre-ipa-mem-report'
  12054. '-fpost-ipa-mem-report'
  12055. Makes the compiler print some statistics about permanent memory
  12056. allocation before or after interprocedural optimization.
  12057. '-fprofile-report'
  12058. Makes the compiler print some statistics about consistency of the
  12059. (estimated) profile and effect of individual passes.
  12060. '-fstack-usage'
  12061. Makes the compiler output stack usage information for the program,
  12062. on a per-function basis. The filename for the dump is made by
  12063. appending '.su' to the AUXNAME. AUXNAME is generated from the name
  12064. of the output file, if explicitly specified and it is not an
  12065. executable, otherwise it is the basename of the source file. An
  12066. entry is made up of three fields:
  12067. * The name of the function.
  12068. * A number of bytes.
  12069. * One or more qualifiers: 'static', 'dynamic', 'bounded'.
  12070. The qualifier 'static' means that the function manipulates the
  12071. stack statically: a fixed number of bytes are allocated for the
  12072. frame on function entry and released on function exit; no stack
  12073. adjustments are otherwise made in the function. The second field
  12074. is this fixed number of bytes.
  12075. The qualifier 'dynamic' means that the function manipulates the
  12076. stack dynamically: in addition to the static allocation described
  12077. above, stack adjustments are made in the body of the function, for
  12078. example to push/pop arguments around function calls. If the
  12079. qualifier 'bounded' is also present, the amount of these
  12080. adjustments is bounded at compile time and the second field is an
  12081. upper bound of the total amount of stack used by the function. If
  12082. it is not present, the amount of these adjustments is not bounded
  12083. at compile time and the second field only represents the bounded
  12084. part.
  12085. '-fstats'
  12086. Emit statistics about front-end processing at the end of the
  12087. compilation. This option is supported only by the C++ front end,
  12088. and the information is generally only useful to the G++ development
  12089. team.
  12090. '-fdbg-cnt-list'
  12091. Print the name and the counter upper bound for all debug counters.
  12092. '-fdbg-cnt=COUNTER-VALUE-LIST'
  12093. Set the internal debug counter lower and upper bound.
  12094. COUNTER-VALUE-LIST is a comma-separated list of
  12095. NAME:LOWER_BOUND:UPPER_BOUND tuples which sets the lower and the
  12096. upper bound of each debug counter NAME. The LOWER_BOUND is
  12097. optional and is zero initialized if not set. All debug counters
  12098. have the initial upper bound of 'UINT_MAX'; thus 'dbg_cnt' returns
  12099. true always unless the upper bound is set by this option. For
  12100. example, with '-fdbg-cnt=dce:2:4,tail_call:10', 'dbg_cnt(dce)'
  12101. returns true only for third and fourth invocation. For
  12102. 'dbg_cnt(tail_call)' true is returned for first 10 invocations.
  12103. '-print-file-name=LIBRARY'
  12104. Print the full absolute name of the library file LIBRARY that would
  12105. be used when linking--and don't do anything else. With this
  12106. option, GCC does not compile or link anything; it just prints the
  12107. file name.
  12108. '-print-multi-directory'
  12109. Print the directory name corresponding to the multilib selected by
  12110. any other switches present in the command line. This directory is
  12111. supposed to exist in 'GCC_EXEC_PREFIX'.
  12112. '-print-multi-lib'
  12113. Print the mapping from multilib directory names to compiler
  12114. switches that enable them. The directory name is separated from
  12115. the switches by ';', and each switch starts with an '@' instead of
  12116. the '-', without spaces between multiple switches. This is
  12117. supposed to ease shell processing.
  12118. '-print-multi-os-directory'
  12119. Print the path to OS libraries for the selected multilib, relative
  12120. to some 'lib' subdirectory. If OS libraries are present in the
  12121. 'lib' subdirectory and no multilibs are used, this is usually just
  12122. '.', if OS libraries are present in 'libSUFFIX' sibling directories
  12123. this prints e.g. '../lib64', '../lib' or '../lib32', or if OS
  12124. libraries are present in 'lib/SUBDIR' subdirectories it prints e.g.
  12125. 'amd64', 'sparcv9' or 'ev6'.
  12126. '-print-multiarch'
  12127. Print the path to OS libraries for the selected multiarch, relative
  12128. to some 'lib' subdirectory.
  12129. '-print-prog-name=PROGRAM'
  12130. Like '-print-file-name', but searches for a program such as 'cpp'.
  12131. '-print-libgcc-file-name'
  12132. Same as '-print-file-name=libgcc.a'.
  12133. This is useful when you use '-nostdlib' or '-nodefaultlibs' but you
  12134. do want to link with 'libgcc.a'. You can do:
  12135. gcc -nostdlib FILES... `gcc -print-libgcc-file-name`
  12136. '-print-search-dirs'
  12137. Print the name of the configured installation directory and a list
  12138. of program and library directories 'gcc' searches--and don't do
  12139. anything else.
  12140. This is useful when 'gcc' prints the error message 'installation
  12141. problem, cannot exec cpp0: No such file or directory'. To resolve
  12142. this you either need to put 'cpp0' and the other compiler
  12143. components where 'gcc' expects to find them, or you can set the
  12144. environment variable 'GCC_EXEC_PREFIX' to the directory where you
  12145. installed them. Don't forget the trailing '/'. *Note Environment
  12146. Variables::.
  12147. '-print-sysroot'
  12148. Print the target sysroot directory that is used during compilation.
  12149. This is the target sysroot specified either at configure time or
  12150. using the '--sysroot' option, possibly with an extra suffix that
  12151. depends on compilation options. If no target sysroot is specified,
  12152. the option prints nothing.
  12153. '-print-sysroot-headers-suffix'
  12154. Print the suffix added to the target sysroot when searching for
  12155. headers, or give an error if the compiler is not configured with
  12156. such a suffix--and don't do anything else.
  12157. '-dumpmachine'
  12158. Print the compiler's target machine (for example,
  12159. 'i686-pc-linux-gnu')--and don't do anything else.
  12160. '-dumpversion'
  12161. Print the compiler version (for example, '3.0', '6.3.0' or
  12162. '7')--and don't do anything else. This is the compiler version
  12163. used in filesystem paths and specs. Depending on how the compiler
  12164. has been configured it can be just a single number (major version),
  12165. two numbers separated by a dot (major and minor version) or three
  12166. numbers separated by dots (major, minor and patchlevel version).
  12167. '-dumpfullversion'
  12168. Print the full compiler version--and don't do anything else. The
  12169. output is always three numbers separated by dots, major, minor and
  12170. patchlevel version.
  12171. '-dumpspecs'
  12172. Print the compiler's built-in specs--and don't do anything else.
  12173. (This is used when GCC itself is being built.) *Note Spec Files::.
  12174. 
  12175. File: gcc.info, Node: Submodel Options, Next: Spec Files, Prev: Developer Options, Up: Invoking GCC
  12176. 3.18 Machine-Dependent Options
  12177. ==============================
  12178. Each target machine supported by GCC can have its own options--for
  12179. example, to allow you to compile for a particular processor variant or
  12180. ABI, or to control optimizations specific to that machine. By
  12181. convention, the names of machine-specific options start with '-m'.
  12182. Some configurations of the compiler also support additional
  12183. target-specific options, usually for compatibility with other compilers
  12184. on the same platform.
  12185. * Menu:
  12186. * AArch64 Options::
  12187. * Adapteva Epiphany Options::
  12188. * AMD GCN Options::
  12189. * ARC Options::
  12190. * ARM Options::
  12191. * AVR Options::
  12192. * Blackfin Options::
  12193. * C6X Options::
  12194. * CRIS Options::
  12195. * CR16 Options::
  12196. * C-SKY Options::
  12197. * Darwin Options::
  12198. * DEC Alpha Options::
  12199. * FR30 Options::
  12200. * FT32 Options::
  12201. * FRV Options::
  12202. * GNU/Linux Options::
  12203. * H8/300 Options::
  12204. * HPPA Options::
  12205. * IA-64 Options::
  12206. * LM32 Options::
  12207. * M32C Options::
  12208. * M32R/D Options::
  12209. * M680x0 Options::
  12210. * MCore Options::
  12211. * MeP Options::
  12212. * MicroBlaze Options::
  12213. * MIPS Options::
  12214. * MMIX Options::
  12215. * MN10300 Options::
  12216. * Moxie Options::
  12217. * MSP430 Options::
  12218. * NDS32 Options::
  12219. * Nios II Options::
  12220. * Nvidia PTX Options::
  12221. * OpenRISC Options::
  12222. * PDP-11 Options::
  12223. * picoChip Options::
  12224. * PowerPC Options::
  12225. * RISC-V Options::
  12226. * RL78 Options::
  12227. * RS/6000 and PowerPC Options::
  12228. * RX Options::
  12229. * S/390 and zSeries Options::
  12230. * Score Options::
  12231. * SH Options::
  12232. * Solaris 2 Options::
  12233. * SPARC Options::
  12234. * SPU Options::
  12235. * System V Options::
  12236. * TILE-Gx Options::
  12237. * TILEPro Options::
  12238. * V850 Options::
  12239. * VAX Options::
  12240. * Visium Options::
  12241. * VMS Options::
  12242. * VxWorks Options::
  12243. * x86 Options::
  12244. * x86 Windows Options::
  12245. * Xstormy16 Options::
  12246. * Xtensa Options::
  12247. * zSeries Options::
  12248. 
  12249. File: gcc.info, Node: AArch64 Options, Next: Adapteva Epiphany Options, Up: Submodel Options
  12250. 3.18.1 AArch64 Options
  12251. ----------------------
  12252. These options are defined for AArch64 implementations:
  12253. '-mabi=NAME'
  12254. Generate code for the specified data model. Permissible values are
  12255. 'ilp32' for SysV-like data model where int, long int and pointers
  12256. are 32 bits, and 'lp64' for SysV-like data model where int is 32
  12257. bits, but long int and pointers are 64 bits.
  12258. The default depends on the specific target configuration. Note
  12259. that the LP64 and ILP32 ABIs are not link-compatible; you must
  12260. compile your entire program with the same ABI, and link with a
  12261. compatible set of libraries.
  12262. '-mbig-endian'
  12263. Generate big-endian code. This is the default when GCC is
  12264. configured for an 'aarch64_be-*-*' target.
  12265. '-mgeneral-regs-only'
  12266. Generate code which uses only the general-purpose registers. This
  12267. will prevent the compiler from using floating-point and Advanced
  12268. SIMD registers but will not impose any restrictions on the
  12269. assembler.
  12270. '-mlittle-endian'
  12271. Generate little-endian code. This is the default when GCC is
  12272. configured for an 'aarch64-*-*' but not an 'aarch64_be-*-*' target.
  12273. '-mcmodel=tiny'
  12274. Generate code for the tiny code model. The program and its
  12275. statically defined symbols must be within 1MB of each other.
  12276. Programs can be statically or dynamically linked.
  12277. '-mcmodel=small'
  12278. Generate code for the small code model. The program and its
  12279. statically defined symbols must be within 4GB of each other.
  12280. Programs can be statically or dynamically linked. This is the
  12281. default code model.
  12282. '-mcmodel=large'
  12283. Generate code for the large code model. This makes no assumptions
  12284. about addresses and sizes of sections. Programs can be statically
  12285. linked only.
  12286. '-mstrict-align'
  12287. '-mno-strict-align'
  12288. Avoid or allow generating memory accesses that may not be aligned
  12289. on a natural object boundary as described in the architecture
  12290. specification.
  12291. '-momit-leaf-frame-pointer'
  12292. '-mno-omit-leaf-frame-pointer'
  12293. Omit or keep the frame pointer in leaf functions. The former
  12294. behavior is the default.
  12295. '-mstack-protector-guard=GUARD'
  12296. '-mstack-protector-guard-reg=REG'
  12297. '-mstack-protector-guard-offset=OFFSET'
  12298. Generate stack protection code using canary at GUARD. Supported
  12299. locations are 'global' for a global canary or 'sysreg' for a canary
  12300. in an appropriate system register.
  12301. With the latter choice the options
  12302. '-mstack-protector-guard-reg=REG' and
  12303. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  12304. system register to use as base register for reading the canary, and
  12305. from what offset from that base register. There is no default
  12306. register or offset as this is entirely for use within the Linux
  12307. kernel.
  12308. '-mstack-protector-guard=GUARD'
  12309. '-mstack-protector-guard-reg=REG'
  12310. '-mstack-protector-guard-offset=OFFSET'
  12311. Generate stack protection code using canary at GUARD. Supported
  12312. locations are 'global' for a global canary or 'sysreg' for a canary
  12313. in an appropriate system register.
  12314. With the latter choice the options
  12315. '-mstack-protector-guard-reg=REG' and
  12316. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  12317. system register to use as base register for reading the canary, and
  12318. from what offset from that base register. There is no default
  12319. register or offset as this is entirely for use within the Linux
  12320. kernel.
  12321. '-mtls-dialect=desc'
  12322. Use TLS descriptors as the thread-local storage mechanism for
  12323. dynamic accesses of TLS variables. This is the default.
  12324. '-mtls-dialect=traditional'
  12325. Use traditional TLS as the thread-local storage mechanism for
  12326. dynamic accesses of TLS variables.
  12327. '-mtls-size=SIZE'
  12328. Specify bit size of immediate TLS offsets. Valid values are 12,
  12329. 24, 32, 48. This option requires binutils 2.26 or newer.
  12330. '-mfix-cortex-a53-835769'
  12331. '-mno-fix-cortex-a53-835769'
  12332. Enable or disable the workaround for the ARM Cortex-A53 erratum
  12333. number 835769. This involves inserting a NOP instruction between
  12334. memory instructions and 64-bit integer multiply-accumulate
  12335. instructions.
  12336. '-mfix-cortex-a53-843419'
  12337. '-mno-fix-cortex-a53-843419'
  12338. Enable or disable the workaround for the ARM Cortex-A53 erratum
  12339. number 843419. This erratum workaround is made at link time and
  12340. this will only pass the corresponding flag to the linker.
  12341. '-mlow-precision-recip-sqrt'
  12342. '-mno-low-precision-recip-sqrt'
  12343. Enable or disable the reciprocal square root approximation. This
  12344. option only has an effect if '-ffast-math' or
  12345. '-funsafe-math-optimizations' is used as well. Enabling this
  12346. reduces precision of reciprocal square root results to about 16
  12347. bits for single precision and to 32 bits for double precision.
  12348. '-mlow-precision-sqrt'
  12349. '-mno-low-precision-sqrt'
  12350. Enable or disable the square root approximation. This option only
  12351. has an effect if '-ffast-math' or '-funsafe-math-optimizations' is
  12352. used as well. Enabling this reduces precision of square root
  12353. results to about 16 bits for single precision and to 32 bits for
  12354. double precision. If enabled, it implies
  12355. '-mlow-precision-recip-sqrt'.
  12356. '-mlow-precision-div'
  12357. '-mno-low-precision-div'
  12358. Enable or disable the division approximation. This option only has
  12359. an effect if '-ffast-math' or '-funsafe-math-optimizations' is used
  12360. as well. Enabling this reduces precision of division results to
  12361. about 16 bits for single precision and to 32 bits for double
  12362. precision.
  12363. '-mtrack-speculation'
  12364. '-mno-track-speculation'
  12365. Enable or disable generation of additional code to track
  12366. speculative execution through conditional branches. The tracking
  12367. state can then be used by the compiler when expanding calls to
  12368. '__builtin_speculation_safe_copy' to permit a more efficient code
  12369. sequence to be generated.
  12370. '-march=NAME'
  12371. Specify the name of the target architecture and, optionally, one or
  12372. more feature modifiers. This option has the form
  12373. '-march=ARCH{+[no]FEATURE}*'.
  12374. The permissible values for ARCH are 'armv8-a', 'armv8.1-a',
  12375. 'armv8.2-a', 'armv8.3-a', 'armv8.4-a', 'armv8.5-a' or NATIVE.
  12376. The value 'armv8.5-a' implies 'armv8.4-a' and enables compiler
  12377. support for the ARMv8.5-A architecture extensions.
  12378. The value 'armv8.4-a' implies 'armv8.3-a' and enables compiler
  12379. support for the ARMv8.4-A architecture extensions.
  12380. The value 'armv8.3-a' implies 'armv8.2-a' and enables compiler
  12381. support for the ARMv8.3-A architecture extensions.
  12382. The value 'armv8.2-a' implies 'armv8.1-a' and enables compiler
  12383. support for the ARMv8.2-A architecture extensions.
  12384. The value 'armv8.1-a' implies 'armv8-a' and enables compiler
  12385. support for the ARMv8.1-A architecture extension. In particular,
  12386. it enables the '+crc', '+lse', and '+rdma' features.
  12387. The value 'native' is available on native AArch64 GNU/Linux and
  12388. causes the compiler to pick the architecture of the host system.
  12389. This option has no effect if the compiler is unable to recognize
  12390. the architecture of the host system,
  12391. The permissible values for FEATURE are listed in the sub-section on
  12392. *note '-march' and '-mcpu' Feature Modifiers:
  12393. aarch64-feature-modifiers. Where conflicting feature modifiers are
  12394. specified, the right-most feature is used.
  12395. GCC uses NAME to determine what kind of instructions it can emit
  12396. when generating assembly code. If '-march' is specified without
  12397. either of '-mtune' or '-mcpu' also being specified, the code is
  12398. tuned to perform well across a range of target processors
  12399. implementing the target architecture.
  12400. '-mtune=NAME'
  12401. Specify the name of the target processor for which GCC should tune
  12402. the performance of the code. Permissible values for this option
  12403. are: 'generic', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  12404. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  12405. 'cortex-a76', 'ares', 'exynos-m1', 'emag', 'falkor',
  12406. 'neoverse-e1','neoverse-n1','qdf24xx', 'saphira', 'phecda',
  12407. 'xgene1', 'vulcan', 'octeontx', 'octeontx81', 'octeontx83',
  12408. 'thunderx', 'thunderxt88', 'thunderxt88p1', 'thunderxt81',
  12409. 'tsv110', 'thunderxt83', 'thunderx2t99', 'cortex-a57.cortex-a53',
  12410. 'cortex-a72.cortex-a53', 'cortex-a73.cortex-a35',
  12411. 'cortex-a73.cortex-a53', 'cortex-a75.cortex-a55',
  12412. 'cortex-a76.cortex-a55' 'native'.
  12413. The values 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  12414. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53',
  12415. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55' specify that GCC
  12416. should tune for a big.LITTLE system.
  12417. Additionally on native AArch64 GNU/Linux systems the value 'native'
  12418. tunes performance to the host system. This option has no effect if
  12419. the compiler is unable to recognize the processor of the host
  12420. system.
  12421. Where none of '-mtune=', '-mcpu=' or '-march=' are specified, the
  12422. code is tuned to perform well across a range of target processors.
  12423. This option cannot be suffixed by feature modifiers.
  12424. '-mcpu=NAME'
  12425. Specify the name of the target processor, optionally suffixed by
  12426. one or more feature modifiers. This option has the form
  12427. '-mcpu=CPU{+[no]FEATURE}*', where the permissible values for CPU
  12428. are the same as those available for '-mtune'. The permissible
  12429. values for FEATURE are documented in the sub-section on *note
  12430. '-march' and '-mcpu' Feature Modifiers: aarch64-feature-modifiers.
  12431. Where conflicting feature modifiers are specified, the right-most
  12432. feature is used.
  12433. GCC uses NAME to determine what kind of instructions it can emit
  12434. when generating assembly code (as if by '-march') and to determine
  12435. the target processor for which to tune for performance (as if by
  12436. '-mtune'). Where this option is used in conjunction with '-march'
  12437. or '-mtune', those options take precedence over the appropriate
  12438. part of this option.
  12439. '-moverride=STRING'
  12440. Override tuning decisions made by the back-end in response to a
  12441. '-mtune=' switch. The syntax, semantics, and accepted values for
  12442. STRING in this option are not guaranteed to be consistent across
  12443. releases.
  12444. This option is only intended to be useful when developing GCC.
  12445. '-mverbose-cost-dump'
  12446. Enable verbose cost model dumping in the debug dump files. This
  12447. option is provided for use in debugging the compiler.
  12448. '-mpc-relative-literal-loads'
  12449. '-mno-pc-relative-literal-loads'
  12450. Enable or disable PC-relative literal loads. With this option
  12451. literal pools are accessed using a single instruction and emitted
  12452. after each function. This limits the maximum size of functions to
  12453. 1MB. This is enabled by default for '-mcmodel=tiny'.
  12454. '-msign-return-address=SCOPE'
  12455. Select the function scope on which return address signing will be
  12456. applied. Permissible values are 'none', which disables return
  12457. address signing, 'non-leaf', which enables pointer signing for
  12458. functions which are not leaf functions, and 'all', which enables
  12459. pointer signing for all functions. The default value is 'none'.
  12460. This option has been deprecated by -mbranch-protection.
  12461. '-mbranch-protection=NONE|STANDARD|PAC-RET[+LEAF]|BTI'
  12462. Select the branch protection features to use. 'none' is the
  12463. default and turns off all types of branch protection. 'standard'
  12464. turns on all types of branch protection features. If a feature has
  12465. additional tuning options, then 'standard' sets it to its standard
  12466. level. 'pac-ret[+LEAF]' turns on return address signing to its
  12467. standard level: signing functions that save the return address to
  12468. memory (non-leaf functions will practically always do this) using
  12469. the a-key. The optional argument 'leaf' can be used to extend the
  12470. signing to include leaf functions. 'bti' turns on branch target
  12471. identification mechanism.
  12472. '-msve-vector-bits=BITS'
  12473. Specify the number of bits in an SVE vector register. This option
  12474. only has an effect when SVE is enabled.
  12475. GCC supports two forms of SVE code generation: "vector-length
  12476. agnostic" output that works with any size of vector register and
  12477. "vector-length specific" output that allows GCC to make assumptions
  12478. about the vector length when it is useful for optimization reasons.
  12479. The possible values of 'bits' are: 'scalable', '128', '256', '512',
  12480. '1024' and '2048'. Specifying 'scalable' selects vector-length
  12481. agnostic output. At present '-msve-vector-bits=128' also generates
  12482. vector-length agnostic output. All other values generate
  12483. vector-length specific code. The behavior of these values may
  12484. change in future releases and no value except 'scalable' should be
  12485. relied on for producing code that is portable across different
  12486. hardware SVE vector lengths.
  12487. The default is '-msve-vector-bits=scalable', which produces
  12488. vector-length agnostic code.
  12489. 3.18.1.1 '-march' and '-mcpu' Feature Modifiers
  12490. ...............................................
  12491. Feature modifiers used with '-march' and '-mcpu' can be any of the
  12492. following and their inverses 'noFEATURE':
  12493. 'crc'
  12494. Enable CRC extension. This is on by default for
  12495. '-march=armv8.1-a'.
  12496. 'crypto'
  12497. Enable Crypto extension. This also enables Advanced SIMD and
  12498. floating-point instructions.
  12499. 'fp'
  12500. Enable floating-point instructions. This is on by default for all
  12501. possible values for options '-march' and '-mcpu'.
  12502. 'simd'
  12503. Enable Advanced SIMD instructions. This also enables
  12504. floating-point instructions. This is on by default for all
  12505. possible values for options '-march' and '-mcpu'.
  12506. 'sve'
  12507. Enable Scalable Vector Extension instructions. This also enables
  12508. Advanced SIMD and floating-point instructions.
  12509. 'lse'
  12510. Enable Large System Extension instructions. This is on by default
  12511. for '-march=armv8.1-a'.
  12512. 'rdma'
  12513. Enable Round Double Multiply Accumulate instructions. This is on
  12514. by default for '-march=armv8.1-a'.
  12515. 'fp16'
  12516. Enable FP16 extension. This also enables floating-point
  12517. instructions.
  12518. 'fp16fml'
  12519. Enable FP16 fmla extension. This also enables FP16 extensions and
  12520. floating-point instructions. This option is enabled by default for
  12521. '-march=armv8.4-a'. Use of this option with architectures prior to
  12522. Armv8.2-A is not supported.
  12523. 'rcpc'
  12524. Enable the RcPc extension. This does not change code generation
  12525. from GCC, but is passed on to the assembler, enabling inline asm
  12526. statements to use instructions from the RcPc extension.
  12527. 'dotprod'
  12528. Enable the Dot Product extension. This also enables Advanced SIMD
  12529. instructions.
  12530. 'aes'
  12531. Enable the Armv8-a aes and pmull crypto extension. This also
  12532. enables Advanced SIMD instructions.
  12533. 'sha2'
  12534. Enable the Armv8-a sha2 crypto extension. This also enables
  12535. Advanced SIMD instructions.
  12536. 'sha3'
  12537. Enable the sha512 and sha3 crypto extension. This also enables
  12538. Advanced SIMD instructions. Use of this option with architectures
  12539. prior to Armv8.2-A is not supported.
  12540. 'sm4'
  12541. Enable the sm3 and sm4 crypto extension. This also enables
  12542. Advanced SIMD instructions. Use of this option with architectures
  12543. prior to Armv8.2-A is not supported.
  12544. 'profile'
  12545. Enable the Statistical Profiling extension. This option is only to
  12546. enable the extension at the assembler level and does not affect
  12547. code generation.
  12548. 'rng'
  12549. Enable the Armv8.5-a Random Number instructions. This option is
  12550. only to enable the extension at the assembler level and does not
  12551. affect code generation.
  12552. 'memtag'
  12553. Enable the Armv8.5-a Memory Tagging Extensions. This option is
  12554. only to enable the extension at the assembler level and does not
  12555. affect code generation.
  12556. 'sb'
  12557. Enable the Armv8-a Speculation Barrier instruction. This option is
  12558. only to enable the extension at the assembler level and does not
  12559. affect code generation. This option is enabled by default for
  12560. '-march=armv8.5-a'.
  12561. 'ssbs'
  12562. Enable the Armv8-a Speculative Store Bypass Safe instruction. This
  12563. option is only to enable the extension at the assembler level and
  12564. does not affect code generation. This option is enabled by default
  12565. for '-march=armv8.5-a'.
  12566. 'predres'
  12567. Enable the Armv8-a Execution and Data Prediction Restriction
  12568. instructions. This option is only to enable the extension at the
  12569. assembler level and does not affect code generation. This option
  12570. is enabled by default for '-march=armv8.5-a'.
  12571. Feature 'crypto' implies 'aes', 'sha2', and 'simd', which implies 'fp'.
  12572. Conversely, 'nofp' implies 'nosimd', which implies 'nocrypto', 'noaes'
  12573. and 'nosha2'.
  12574. 
  12575. File: gcc.info, Node: Adapteva Epiphany Options, Next: AMD GCN Options, Prev: AArch64 Options, Up: Submodel Options
  12576. 3.18.2 Adapteva Epiphany Options
  12577. --------------------------------
  12578. These '-m' options are defined for Adapteva Epiphany:
  12579. '-mhalf-reg-file'
  12580. Don't allocate any register in the range 'r32'...'r63'. That
  12581. allows code to run on hardware variants that lack these registers.
  12582. '-mprefer-short-insn-regs'
  12583. Preferentially allocate registers that allow short instruction
  12584. generation. This can result in increased instruction count, so
  12585. this may either reduce or increase overall code size.
  12586. '-mbranch-cost=NUM'
  12587. Set the cost of branches to roughly NUM "simple" instructions.
  12588. This cost is only a heuristic and is not guaranteed to produce
  12589. consistent results across releases.
  12590. '-mcmove'
  12591. Enable the generation of conditional moves.
  12592. '-mnops=NUM'
  12593. Emit NUM NOPs before every other generated instruction.
  12594. '-mno-soft-cmpsf'
  12595. For single-precision floating-point comparisons, emit an 'fsub'
  12596. instruction and test the flags. This is faster than a software
  12597. comparison, but can get incorrect results in the presence of NaNs,
  12598. or when two different small numbers are compared such that their
  12599. difference is calculated as zero. The default is '-msoft-cmpsf',
  12600. which uses slower, but IEEE-compliant, software comparisons.
  12601. '-mstack-offset=NUM'
  12602. Set the offset between the top of the stack and the stack pointer.
  12603. E.g., a value of 8 means that the eight bytes in the range
  12604. 'sp+0...sp+7' can be used by leaf functions without stack
  12605. allocation. Values other than '8' or '16' are untested and
  12606. unlikely to work. Note also that this option changes the ABI;
  12607. compiling a program with a different stack offset than the
  12608. libraries have been compiled with generally does not work. This
  12609. option can be useful if you want to evaluate if a different stack
  12610. offset would give you better code, but to actually use a different
  12611. stack offset to build working programs, it is recommended to
  12612. configure the toolchain with the appropriate
  12613. '--with-stack-offset=NUM' option.
  12614. '-mno-round-nearest'
  12615. Make the scheduler assume that the rounding mode has been set to
  12616. truncating. The default is '-mround-nearest'.
  12617. '-mlong-calls'
  12618. If not otherwise specified by an attribute, assume all calls might
  12619. be beyond the offset range of the 'b' / 'bl' instructions, and
  12620. therefore load the function address into a register before
  12621. performing a (otherwise direct) call. This is the default.
  12622. '-mshort-calls'
  12623. If not otherwise specified by an attribute, assume all direct calls
  12624. are in the range of the 'b' / 'bl' instructions, so use these
  12625. instructions for direct calls. The default is '-mlong-calls'.
  12626. '-msmall16'
  12627. Assume addresses can be loaded as 16-bit unsigned values. This
  12628. does not apply to function addresses for which '-mlong-calls'
  12629. semantics are in effect.
  12630. '-mfp-mode=MODE'
  12631. Set the prevailing mode of the floating-point unit. This
  12632. determines the floating-point mode that is provided and expected at
  12633. function call and return time. Making this mode match the mode you
  12634. predominantly need at function start can make your programs smaller
  12635. and faster by avoiding unnecessary mode switches.
  12636. MODE can be set to one the following values:
  12637. 'caller'
  12638. Any mode at function entry is valid, and retained or restored
  12639. when the function returns, and when it calls other functions.
  12640. This mode is useful for compiling libraries or other
  12641. compilation units you might want to incorporate into different
  12642. programs with different prevailing FPU modes, and the
  12643. convenience of being able to use a single object file
  12644. outweighs the size and speed overhead for any extra mode
  12645. switching that might be needed, compared with what would be
  12646. needed with a more specific choice of prevailing FPU mode.
  12647. 'truncate'
  12648. This is the mode used for floating-point calculations with
  12649. truncating (i.e. round towards zero) rounding mode. That
  12650. includes conversion from floating point to integer.
  12651. 'round-nearest'
  12652. This is the mode used for floating-point calculations with
  12653. round-to-nearest-or-even rounding mode.
  12654. 'int'
  12655. This is the mode used to perform integer calculations in the
  12656. FPU, e.g. integer multiply, or integer
  12657. multiply-and-accumulate.
  12658. The default is '-mfp-mode=caller'
  12659. '-mno-split-lohi'
  12660. '-mno-postinc'
  12661. '-mno-postmodify'
  12662. Code generation tweaks that disable, respectively, splitting of
  12663. 32-bit loads, generation of post-increment addresses, and
  12664. generation of post-modify addresses. The defaults are
  12665. 'msplit-lohi', '-mpost-inc', and '-mpost-modify'.
  12666. '-mnovect-double'
  12667. Change the preferred SIMD mode to SImode. The default is
  12668. '-mvect-double', which uses DImode as preferred SIMD mode.
  12669. '-max-vect-align=NUM'
  12670. The maximum alignment for SIMD vector mode types. NUM may be 4 or
  12671. 8. The default is 8. Note that this is an ABI change, even though
  12672. many library function interfaces are unaffected if they don't use
  12673. SIMD vector modes in places that affect size and/or alignment of
  12674. relevant types.
  12675. '-msplit-vecmove-early'
  12676. Split vector moves into single word moves before reload. In theory
  12677. this can give better register allocation, but so far the reverse
  12678. seems to be generally the case.
  12679. '-m1reg-REG'
  12680. Specify a register to hold the constant -1, which makes loading
  12681. small negative constants and certain bitmasks faster. Allowable
  12682. values for REG are 'r43' and 'r63', which specify use of that
  12683. register as a fixed register, and 'none', which means that no
  12684. register is used for this purpose. The default is '-m1reg-none'.
  12685. 
  12686. File: gcc.info, Node: AMD GCN Options, Next: ARC Options, Prev: Adapteva Epiphany Options, Up: Submodel Options
  12687. 3.18.3 AMD GCN Options
  12688. ----------------------
  12689. These options are defined specifically for the AMD GCN port.
  12690. '-march=GPU'
  12691. '-mtune=GPU'
  12692. Set architecture type or tuning for GPU. Supported values for GPU
  12693. are
  12694. 'fiji'
  12695. Compile for GCN3 Fiji devices (gfx803).
  12696. 'gfx900'
  12697. Compile for GCN5 Vega 10 devices (gfx900).
  12698. '-mstack-size=BYTES'
  12699. Specify how many BYTES of stack space will be requested for each
  12700. GPU thread (wave-front). Beware that there may be many threads and
  12701. limited memory available. The size of the stack allocation may
  12702. also have an impact on run-time performance. The default is 32KB
  12703. when using OpenACC or OpenMP, and 1MB otherwise.
  12704. 
  12705. File: gcc.info, Node: ARC Options, Next: ARM Options, Prev: AMD GCN Options, Up: Submodel Options
  12706. 3.18.4 ARC Options
  12707. ------------------
  12708. The following options control the architecture variant for which code is
  12709. being compiled:
  12710. '-mbarrel-shifter'
  12711. Generate instructions supported by barrel shifter. This is the
  12712. default unless '-mcpu=ARC601' or '-mcpu=ARCEM' is in effect.
  12713. '-mjli-always'
  12714. Force to call a function using jli_s instruction. This option is
  12715. valid only for ARCv2 architecture.
  12716. '-mcpu=CPU'
  12717. Set architecture type, register usage, and instruction scheduling
  12718. parameters for CPU. There are also shortcut alias options
  12719. available for backward compatibility and convenience. Supported
  12720. values for CPU are
  12721. 'arc600'
  12722. Compile for ARC600. Aliases: '-mA6', '-mARC600'.
  12723. 'arc601'
  12724. Compile for ARC601. Alias: '-mARC601'.
  12725. 'arc700'
  12726. Compile for ARC700. Aliases: '-mA7', '-mARC700'. This is the
  12727. default when configured with '--with-cpu=arc700'.
  12728. 'arcem'
  12729. Compile for ARC EM.
  12730. 'archs'
  12731. Compile for ARC HS.
  12732. 'em'
  12733. Compile for ARC EM CPU with no hardware extensions.
  12734. 'em4'
  12735. Compile for ARC EM4 CPU.
  12736. 'em4_dmips'
  12737. Compile for ARC EM4 DMIPS CPU.
  12738. 'em4_fpus'
  12739. Compile for ARC EM4 DMIPS CPU with the single-precision
  12740. floating-point extension.
  12741. 'em4_fpuda'
  12742. Compile for ARC EM4 DMIPS CPU with single-precision
  12743. floating-point and double assist instructions.
  12744. 'hs'
  12745. Compile for ARC HS CPU with no hardware extensions except the
  12746. atomic instructions.
  12747. 'hs34'
  12748. Compile for ARC HS34 CPU.
  12749. 'hs38'
  12750. Compile for ARC HS38 CPU.
  12751. 'hs38_linux'
  12752. Compile for ARC HS38 CPU with all hardware extensions on.
  12753. 'arc600_norm'
  12754. Compile for ARC 600 CPU with 'norm' instructions enabled.
  12755. 'arc600_mul32x16'
  12756. Compile for ARC 600 CPU with 'norm' and 32x16-bit multiply
  12757. instructions enabled.
  12758. 'arc600_mul64'
  12759. Compile for ARC 600 CPU with 'norm' and 'mul64'-family
  12760. instructions enabled.
  12761. 'arc601_norm'
  12762. Compile for ARC 601 CPU with 'norm' instructions enabled.
  12763. 'arc601_mul32x16'
  12764. Compile for ARC 601 CPU with 'norm' and 32x16-bit multiply
  12765. instructions enabled.
  12766. 'arc601_mul64'
  12767. Compile for ARC 601 CPU with 'norm' and 'mul64'-family
  12768. instructions enabled.
  12769. 'nps400'
  12770. Compile for ARC 700 on NPS400 chip.
  12771. 'em_mini'
  12772. Compile for ARC EM minimalist configuration featuring reduced
  12773. register set.
  12774. '-mdpfp'
  12775. '-mdpfp-compact'
  12776. Generate double-precision FPX instructions, tuned for the compact
  12777. implementation.
  12778. '-mdpfp-fast'
  12779. Generate double-precision FPX instructions, tuned for the fast
  12780. implementation.
  12781. '-mno-dpfp-lrsr'
  12782. Disable 'lr' and 'sr' instructions from using FPX extension aux
  12783. registers.
  12784. '-mea'
  12785. Generate extended arithmetic instructions. Currently only 'divaw',
  12786. 'adds', 'subs', and 'sat16' are supported. This is always enabled
  12787. for '-mcpu=ARC700'.
  12788. '-mno-mpy'
  12789. Do not generate 'mpy'-family instructions for ARC700. This option
  12790. is deprecated.
  12791. '-mmul32x16'
  12792. Generate 32x16-bit multiply and multiply-accumulate instructions.
  12793. '-mmul64'
  12794. Generate 'mul64' and 'mulu64' instructions. Only valid for
  12795. '-mcpu=ARC600'.
  12796. '-mnorm'
  12797. Generate 'norm' instructions. This is the default if
  12798. '-mcpu=ARC700' is in effect.
  12799. '-mspfp'
  12800. '-mspfp-compact'
  12801. Generate single-precision FPX instructions, tuned for the compact
  12802. implementation.
  12803. '-mspfp-fast'
  12804. Generate single-precision FPX instructions, tuned for the fast
  12805. implementation.
  12806. '-msimd'
  12807. Enable generation of ARC SIMD instructions via target-specific
  12808. builtins. Only valid for '-mcpu=ARC700'.
  12809. '-msoft-float'
  12810. This option ignored; it is provided for compatibility purposes
  12811. only. Software floating-point code is emitted by default, and this
  12812. default can overridden by FPX options; '-mspfp', '-mspfp-compact',
  12813. or '-mspfp-fast' for single precision, and '-mdpfp',
  12814. '-mdpfp-compact', or '-mdpfp-fast' for double precision.
  12815. '-mswap'
  12816. Generate 'swap' instructions.
  12817. '-matomic'
  12818. This enables use of the locked load/store conditional extension to
  12819. implement atomic memory built-in functions. Not available for ARC
  12820. 6xx or ARC EM cores.
  12821. '-mdiv-rem'
  12822. Enable 'div' and 'rem' instructions for ARCv2 cores.
  12823. '-mcode-density'
  12824. Enable code density instructions for ARC EM. This option is on by
  12825. default for ARC HS.
  12826. '-mll64'
  12827. Enable double load/store operations for ARC HS cores.
  12828. '-mtp-regno=REGNO'
  12829. Specify thread pointer register number.
  12830. '-mmpy-option=MULTO'
  12831. Compile ARCv2 code with a multiplier design option. You can
  12832. specify the option using either a string or numeric value for
  12833. MULTO. 'wlh1' is the default value. The recognized values are:
  12834. '0'
  12835. 'none'
  12836. No multiplier available.
  12837. '1'
  12838. 'w'
  12839. 16x16 multiplier, fully pipelined. The following instructions
  12840. are enabled: 'mpyw' and 'mpyuw'.
  12841. '2'
  12842. 'wlh1'
  12843. 32x32 multiplier, fully pipelined (1 stage). The following
  12844. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12845. 'mpymu', and 'mpy_s'.
  12846. '3'
  12847. 'wlh2'
  12848. 32x32 multiplier, fully pipelined (2 stages). The following
  12849. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12850. 'mpymu', and 'mpy_s'.
  12851. '4'
  12852. 'wlh3'
  12853. Two 16x16 multipliers, blocking, sequential. The following
  12854. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12855. 'mpymu', and 'mpy_s'.
  12856. '5'
  12857. 'wlh4'
  12858. One 16x16 multiplier, blocking, sequential. The following
  12859. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12860. 'mpymu', and 'mpy_s'.
  12861. '6'
  12862. 'wlh5'
  12863. One 32x4 multiplier, blocking, sequential. The following
  12864. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12865. 'mpymu', and 'mpy_s'.
  12866. '7'
  12867. 'plus_dmpy'
  12868. ARC HS SIMD support.
  12869. '8'
  12870. 'plus_macd'
  12871. ARC HS SIMD support.
  12872. '9'
  12873. 'plus_qmacw'
  12874. ARC HS SIMD support.
  12875. This option is only available for ARCv2 cores.
  12876. '-mfpu=FPU'
  12877. Enables support for specific floating-point hardware extensions for
  12878. ARCv2 cores. Supported values for FPU are:
  12879. 'fpus'
  12880. Enables support for single-precision floating-point hardware
  12881. extensions.
  12882. 'fpud'
  12883. Enables support for double-precision floating-point hardware
  12884. extensions. The single-precision floating-point extension is
  12885. also enabled. Not available for ARC EM.
  12886. 'fpuda'
  12887. Enables support for double-precision floating-point hardware
  12888. extensions using double-precision assist instructions. The
  12889. single-precision floating-point extension is also enabled.
  12890. This option is only available for ARC EM.
  12891. 'fpuda_div'
  12892. Enables support for double-precision floating-point hardware
  12893. extensions using double-precision assist instructions. The
  12894. single-precision floating-point, square-root, and divide
  12895. extensions are also enabled. This option is only available
  12896. for ARC EM.
  12897. 'fpuda_fma'
  12898. Enables support for double-precision floating-point hardware
  12899. extensions using double-precision assist instructions. The
  12900. single-precision floating-point and fused multiply and add
  12901. hardware extensions are also enabled. This option is only
  12902. available for ARC EM.
  12903. 'fpuda_all'
  12904. Enables support for double-precision floating-point hardware
  12905. extensions using double-precision assist instructions. All
  12906. single-precision floating-point hardware extensions are also
  12907. enabled. This option is only available for ARC EM.
  12908. 'fpus_div'
  12909. Enables support for single-precision floating-point,
  12910. square-root and divide hardware extensions.
  12911. 'fpud_div'
  12912. Enables support for double-precision floating-point,
  12913. square-root and divide hardware extensions. This option
  12914. includes option 'fpus_div'. Not available for ARC EM.
  12915. 'fpus_fma'
  12916. Enables support for single-precision floating-point and fused
  12917. multiply and add hardware extensions.
  12918. 'fpud_fma'
  12919. Enables support for double-precision floating-point and fused
  12920. multiply and add hardware extensions. This option includes
  12921. option 'fpus_fma'. Not available for ARC EM.
  12922. 'fpus_all'
  12923. Enables support for all single-precision floating-point
  12924. hardware extensions.
  12925. 'fpud_all'
  12926. Enables support for all single- and double-precision
  12927. floating-point hardware extensions. Not available for ARC EM.
  12928. '-mirq-ctrl-saved=REGISTER-RANGE, BLINK, LP_COUNT'
  12929. Specifies general-purposes registers that the processor
  12930. automatically saves/restores on interrupt entry and exit.
  12931. REGISTER-RANGE is specified as two registers separated by a dash.
  12932. The register range always starts with 'r0', the upper limit is 'fp'
  12933. register. BLINK and LP_COUNT are optional. This option is only
  12934. valid for ARC EM and ARC HS cores.
  12935. '-mrgf-banked-regs=NUMBER'
  12936. Specifies the number of registers replicated in second register
  12937. bank on entry to fast interrupt. Fast interrupts are interrupts
  12938. with the highest priority level P0. These interrupts save only PC
  12939. and STATUS32 registers to avoid memory transactions during
  12940. interrupt entry and exit sequences. Use this option when you are
  12941. using fast interrupts in an ARC V2 family processor. Permitted
  12942. values are 4, 8, 16, and 32.
  12943. '-mlpc-width=WIDTH'
  12944. Specify the width of the 'lp_count' register. Valid values for
  12945. WIDTH are 8, 16, 20, 24, 28 and 32 bits. The default width is
  12946. fixed to 32 bits. If the width is less than 32, the compiler does
  12947. not attempt to transform loops in your program to use the
  12948. zero-delay loop mechanism unless it is known that the 'lp_count'
  12949. register can hold the required loop-counter value. Depending on
  12950. the width specified, the compiler and run-time library might
  12951. continue to use the loop mechanism for various needs. This option
  12952. defines macro '__ARC_LPC_WIDTH__' with the value of WIDTH.
  12953. '-mrf16'
  12954. This option instructs the compiler to generate code for a 16-entry
  12955. register file. This option defines the '__ARC_RF16__' preprocessor
  12956. macro.
  12957. '-mbranch-index'
  12958. Enable use of 'bi' or 'bih' instructions to implement jump tables.
  12959. The following options are passed through to the assembler, and also
  12960. define preprocessor macro symbols.
  12961. '-mdsp-packa'
  12962. Passed down to the assembler to enable the DSP Pack A extensions.
  12963. Also sets the preprocessor symbol '__Xdsp_packa'. This option is
  12964. deprecated.
  12965. '-mdvbf'
  12966. Passed down to the assembler to enable the dual Viterbi butterfly
  12967. extension. Also sets the preprocessor symbol '__Xdvbf'. This
  12968. option is deprecated.
  12969. '-mlock'
  12970. Passed down to the assembler to enable the locked load/store
  12971. conditional extension. Also sets the preprocessor symbol
  12972. '__Xlock'.
  12973. '-mmac-d16'
  12974. Passed down to the assembler. Also sets the preprocessor symbol
  12975. '__Xxmac_d16'. This option is deprecated.
  12976. '-mmac-24'
  12977. Passed down to the assembler. Also sets the preprocessor symbol
  12978. '__Xxmac_24'. This option is deprecated.
  12979. '-mrtsc'
  12980. Passed down to the assembler to enable the 64-bit time-stamp
  12981. counter extension instruction. Also sets the preprocessor symbol
  12982. '__Xrtsc'. This option is deprecated.
  12983. '-mswape'
  12984. Passed down to the assembler to enable the swap byte ordering
  12985. extension instruction. Also sets the preprocessor symbol
  12986. '__Xswape'.
  12987. '-mtelephony'
  12988. Passed down to the assembler to enable dual- and single-operand
  12989. instructions for telephony. Also sets the preprocessor symbol
  12990. '__Xtelephony'. This option is deprecated.
  12991. '-mxy'
  12992. Passed down to the assembler to enable the XY memory extension.
  12993. Also sets the preprocessor symbol '__Xxy'.
  12994. The following options control how the assembly code is annotated:
  12995. '-misize'
  12996. Annotate assembler instructions with estimated addresses.
  12997. '-mannotate-align'
  12998. Explain what alignment considerations lead to the decision to make
  12999. an instruction short or long.
  13000. The following options are passed through to the linker:
  13001. '-marclinux'
  13002. Passed through to the linker, to specify use of the 'arclinux'
  13003. emulation. This option is enabled by default in tool chains built
  13004. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  13005. profiling is not requested.
  13006. '-marclinux_prof'
  13007. Passed through to the linker, to specify use of the 'arclinux_prof'
  13008. emulation. This option is enabled by default in tool chains built
  13009. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  13010. profiling is requested.
  13011. The following options control the semantics of generated code:
  13012. '-mlong-calls'
  13013. Generate calls as register indirect calls, thus providing access to
  13014. the full 32-bit address range.
  13015. '-mmedium-calls'
  13016. Don't use less than 25-bit addressing range for calls, which is the
  13017. offset available for an unconditional branch-and-link instruction.
  13018. Conditional execution of function calls is suppressed, to allow use
  13019. of the 25-bit range, rather than the 21-bit range with conditional
  13020. branch-and-link. This is the default for tool chains built for
  13021. 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets.
  13022. '-G NUM'
  13023. Put definitions of externally-visible data in a small data section
  13024. if that data is no bigger than NUM bytes. The default value of NUM
  13025. is 4 for any ARC configuration, or 8 when we have double load/store
  13026. operations.
  13027. '-mno-sdata'
  13028. Do not generate sdata references. This is the default for tool
  13029. chains built for 'arc-linux-uclibc' and 'arceb-linux-uclibc'
  13030. targets.
  13031. '-mvolatile-cache'
  13032. Use ordinarily cached memory accesses for volatile references.
  13033. This is the default.
  13034. '-mno-volatile-cache'
  13035. Enable cache bypass for volatile references.
  13036. The following options fine tune code generation:
  13037. '-malign-call'
  13038. Do alignment optimizations for call instructions.
  13039. '-mauto-modify-reg'
  13040. Enable the use of pre/post modify with register displacement.
  13041. '-mbbit-peephole'
  13042. Enable bbit peephole2.
  13043. '-mno-brcc'
  13044. This option disables a target-specific pass in 'arc_reorg' to
  13045. generate compare-and-branch ('brCC') instructions. It has no
  13046. effect on generation of these instructions driven by the combiner
  13047. pass.
  13048. '-mcase-vector-pcrel'
  13049. Use PC-relative switch case tables to enable case table shortening.
  13050. This is the default for '-Os'.
  13051. '-mcompact-casesi'
  13052. Enable compact 'casesi' pattern. This is the default for '-Os',
  13053. and only available for ARCv1 cores. This option is deprecated.
  13054. '-mno-cond-exec'
  13055. Disable the ARCompact-specific pass to generate conditional
  13056. execution instructions.
  13057. Due to delay slot scheduling and interactions between operand
  13058. numbers, literal sizes, instruction lengths, and the support for
  13059. conditional execution, the target-independent pass to generate
  13060. conditional execution is often lacking, so the ARC port has kept a
  13061. special pass around that tries to find more conditional execution
  13062. generation opportunities after register allocation, branch
  13063. shortening, and delay slot scheduling have been done. This pass
  13064. generally, but not always, improves performance and code size, at
  13065. the cost of extra compilation time, which is why there is an option
  13066. to switch it off. If you have a problem with call instructions
  13067. exceeding their allowable offset range because they are
  13068. conditionalized, you should consider using '-mmedium-calls'
  13069. instead.
  13070. '-mearly-cbranchsi'
  13071. Enable pre-reload use of the 'cbranchsi' pattern.
  13072. '-mexpand-adddi'
  13073. Expand 'adddi3' and 'subdi3' at RTL generation time into 'add.f',
  13074. 'adc' etc. This option is deprecated.
  13075. '-mindexed-loads'
  13076. Enable the use of indexed loads. This can be problematic because
  13077. some optimizers then assume that indexed stores exist, which is not
  13078. the case.
  13079. '-mlra'
  13080. Enable Local Register Allocation. This is still experimental for
  13081. ARC, so by default the compiler uses standard reload (i.e.
  13082. '-mno-lra').
  13083. '-mlra-priority-none'
  13084. Don't indicate any priority for target registers.
  13085. '-mlra-priority-compact'
  13086. Indicate target register priority for r0..r3 / r12..r15.
  13087. '-mlra-priority-noncompact'
  13088. Reduce target register priority for r0..r3 / r12..r15.
  13089. '-mmillicode'
  13090. When optimizing for size (using '-Os'), prologues and epilogues
  13091. that have to save or restore a large number of registers are often
  13092. shortened by using call to a special function in libgcc; this is
  13093. referred to as a _millicode_ call. As these calls can pose
  13094. performance issues, and/or cause linking issues when linking in a
  13095. nonstandard way, this option is provided to turn on or off
  13096. millicode call generation.
  13097. '-mcode-density-frame'
  13098. This option enable the compiler to emit 'enter' and 'leave'
  13099. instructions. These instructions are only valid for CPUs with
  13100. code-density feature.
  13101. '-mmixed-code'
  13102. Tweak register allocation to help 16-bit instruction generation.
  13103. This generally has the effect of decreasing the average instruction
  13104. size while increasing the instruction count.
  13105. '-mq-class'
  13106. Enable 'q' instruction alternatives. This is the default for
  13107. '-Os'.
  13108. '-mRcq'
  13109. Enable 'Rcq' constraint handling. Most short code generation
  13110. depends on this. This is the default.
  13111. '-mRcw'
  13112. Enable 'Rcw' constraint handling. Most ccfsm condexec mostly
  13113. depends on this. This is the default.
  13114. '-msize-level=LEVEL'
  13115. Fine-tune size optimization with regards to instruction lengths and
  13116. alignment. The recognized values for LEVEL are:
  13117. '0'
  13118. No size optimization. This level is deprecated and treated
  13119. like '1'.
  13120. '1'
  13121. Short instructions are used opportunistically.
  13122. '2'
  13123. In addition, alignment of loops and of code after barriers are
  13124. dropped.
  13125. '3'
  13126. In addition, optional data alignment is dropped, and the
  13127. option 'Os' is enabled.
  13128. This defaults to '3' when '-Os' is in effect. Otherwise, the
  13129. behavior when this is not set is equivalent to level '1'.
  13130. '-mtune=CPU'
  13131. Set instruction scheduling parameters for CPU, overriding any
  13132. implied by '-mcpu='.
  13133. Supported values for CPU are
  13134. 'ARC600'
  13135. Tune for ARC600 CPU.
  13136. 'ARC601'
  13137. Tune for ARC601 CPU.
  13138. 'ARC700'
  13139. Tune for ARC700 CPU with standard multiplier block.
  13140. 'ARC700-xmac'
  13141. Tune for ARC700 CPU with XMAC block.
  13142. 'ARC725D'
  13143. Tune for ARC725D CPU.
  13144. 'ARC750D'
  13145. Tune for ARC750D CPU.
  13146. '-mmultcost=NUM'
  13147. Cost to assume for a multiply instruction, with '4' being equal to
  13148. a normal instruction.
  13149. '-munalign-prob-threshold=PROBABILITY'
  13150. Set probability threshold for unaligning branches. When tuning for
  13151. 'ARC700' and optimizing for speed, branches without filled delay
  13152. slot are preferably emitted unaligned and long, unless profiling
  13153. indicates that the probability for the branch to be taken is below
  13154. PROBABILITY. *Note Cross-profiling::. The default is
  13155. (REG_BR_PROB_BASE/2), i.e. 5000.
  13156. The following options are maintained for backward compatibility, but
  13157. are now deprecated and will be removed in a future release:
  13158. '-margonaut'
  13159. Obsolete FPX.
  13160. '-mbig-endian'
  13161. '-EB'
  13162. Compile code for big-endian targets. Use of these options is now
  13163. deprecated. Big-endian code is supported by configuring GCC to
  13164. build 'arceb-elf32' and 'arceb-linux-uclibc' targets, for which big
  13165. endian is the default.
  13166. '-mlittle-endian'
  13167. '-EL'
  13168. Compile code for little-endian targets. Use of these options is
  13169. now deprecated. Little-endian code is supported by configuring GCC
  13170. to build 'arc-elf32' and 'arc-linux-uclibc' targets, for which
  13171. little endian is the default.
  13172. '-mbarrel_shifter'
  13173. Replaced by '-mbarrel-shifter'.
  13174. '-mdpfp_compact'
  13175. Replaced by '-mdpfp-compact'.
  13176. '-mdpfp_fast'
  13177. Replaced by '-mdpfp-fast'.
  13178. '-mdsp_packa'
  13179. Replaced by '-mdsp-packa'.
  13180. '-mEA'
  13181. Replaced by '-mea'.
  13182. '-mmac_24'
  13183. Replaced by '-mmac-24'.
  13184. '-mmac_d16'
  13185. Replaced by '-mmac-d16'.
  13186. '-mspfp_compact'
  13187. Replaced by '-mspfp-compact'.
  13188. '-mspfp_fast'
  13189. Replaced by '-mspfp-fast'.
  13190. '-mtune=CPU'
  13191. Values 'arc600', 'arc601', 'arc700' and 'arc700-xmac' for CPU are
  13192. replaced by 'ARC600', 'ARC601', 'ARC700' and 'ARC700-xmac'
  13193. respectively.
  13194. '-multcost=NUM'
  13195. Replaced by '-mmultcost'.
  13196. 
  13197. File: gcc.info, Node: ARM Options, Next: AVR Options, Prev: ARC Options, Up: Submodel Options
  13198. 3.18.5 ARM Options
  13199. ------------------
  13200. These '-m' options are defined for the ARM port:
  13201. '-mabi=NAME'
  13202. Generate code for the specified ABI. Permissible values are:
  13203. 'apcs-gnu', 'atpcs', 'aapcs', 'aapcs-linux' and 'iwmmxt'.
  13204. '-mapcs-frame'
  13205. Generate a stack frame that is compliant with the ARM Procedure
  13206. Call Standard for all functions, even if this is not strictly
  13207. necessary for correct execution of the code. Specifying
  13208. '-fomit-frame-pointer' with this option causes the stack frames not
  13209. to be generated for leaf functions. The default is
  13210. '-mno-apcs-frame'. This option is deprecated.
  13211. '-mapcs'
  13212. This is a synonym for '-mapcs-frame' and is deprecated.
  13213. '-mthumb-interwork'
  13214. Generate code that supports calling between the ARM and Thumb
  13215. instruction sets. Without this option, on pre-v5 architectures,
  13216. the two instruction sets cannot be reliably used inside one
  13217. program. The default is '-mno-thumb-interwork', since slightly
  13218. larger code is generated when '-mthumb-interwork' is specified. In
  13219. AAPCS configurations this option is meaningless.
  13220. '-mno-sched-prolog'
  13221. Prevent the reordering of instructions in the function prologue, or
  13222. the merging of those instruction with the instructions in the
  13223. function's body. This means that all functions start with a
  13224. recognizable set of instructions (or in fact one of a choice from a
  13225. small set of different function prologues), and this information
  13226. can be used to locate the start of functions inside an executable
  13227. piece of code. The default is '-msched-prolog'.
  13228. '-mfloat-abi=NAME'
  13229. Specifies which floating-point ABI to use. Permissible values are:
  13230. 'soft', 'softfp' and 'hard'.
  13231. Specifying 'soft' causes GCC to generate output containing library
  13232. calls for floating-point operations. 'softfp' allows the
  13233. generation of code using hardware floating-point instructions, but
  13234. still uses the soft-float calling conventions. 'hard' allows
  13235. generation of floating-point instructions and uses FPU-specific
  13236. calling conventions.
  13237. The default depends on the specific target configuration. Note
  13238. that the hard-float and soft-float ABIs are not link-compatible;
  13239. you must compile your entire program with the same ABI, and link
  13240. with a compatible set of libraries.
  13241. '-mgeneral-regs-only'
  13242. Generate code which uses only the general-purpose registers. This
  13243. will prevent the compiler from using floating-point and Advanced
  13244. SIMD registers but will not impose any restrictions on the
  13245. assembler.
  13246. '-mlittle-endian'
  13247. Generate code for a processor running in little-endian mode. This
  13248. is the default for all standard configurations.
  13249. '-mbig-endian'
  13250. Generate code for a processor running in big-endian mode; the
  13251. default is to compile code for a little-endian processor.
  13252. '-mbe8'
  13253. '-mbe32'
  13254. When linking a big-endian image select between BE8 and BE32
  13255. formats. The option has no effect for little-endian images and is
  13256. ignored. The default is dependent on the selected target
  13257. architecture. For ARMv6 and later architectures the default is
  13258. BE8, for older architectures the default is BE32. BE32 format has
  13259. been deprecated by ARM.
  13260. '-march=NAME[+extension...]'
  13261. This specifies the name of the target ARM architecture. GCC uses
  13262. this name to determine what kind of instructions it can emit when
  13263. generating assembly code. This option can be used in conjunction
  13264. with or instead of the '-mcpu=' option.
  13265. Permissible names are: 'armv4t', 'armv5t', 'armv5te', 'armv6',
  13266. 'armv6j', 'armv6k', 'armv6kz', 'armv6t2', 'armv6z', 'armv6zk',
  13267. 'armv7', 'armv7-a', 'armv7ve', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  13268. 'armv8.3-a', 'armv8.4-a', 'armv8.5-a', 'armv7-r', 'armv8-r',
  13269. 'armv6-m', 'armv6s-m', 'armv7-m', 'armv7e-m', 'armv8-m.base',
  13270. 'armv8-m.main', 'iwmmxt' and 'iwmmxt2'.
  13271. Additionally, the following architectures, which lack support for
  13272. the Thumb execution state, are recognized but support is
  13273. deprecated: 'armv4'.
  13274. Many of the architectures support extensions. These can be added
  13275. by appending '+EXTENSION' to the architecture name. Extension
  13276. options are processed in order and capabilities accumulate. An
  13277. extension will also enable any necessary base extensions upon which
  13278. it depends. For example, the '+crypto' extension will always
  13279. enable the '+simd' extension. The exception to the additive
  13280. construction is for extensions that are prefixed with '+no...':
  13281. these extensions disable the specified option and any other
  13282. extensions that may depend on the presence of that extension.
  13283. For example, '-march=armv7-a+simd+nofp+vfpv4' is equivalent to
  13284. writing '-march=armv7-a+vfpv4' since the '+simd' option is entirely
  13285. disabled by the '+nofp' option that follows it.
  13286. Most extension names are generically named, but have an effect that
  13287. is dependent upon the architecture to which it is applied. For
  13288. example, the '+simd' option can be applied to both 'armv7-a' and
  13289. 'armv8-a' architectures, but will enable the original ARMv7-A
  13290. Advanced SIMD (Neon) extensions for 'armv7-a' and the ARMv8-A
  13291. variant for 'armv8-a'.
  13292. The table below lists the supported extensions for each
  13293. architecture. Architectures not mentioned do not support any
  13294. extensions.
  13295. 'armv5te'
  13296. 'armv6'
  13297. 'armv6j'
  13298. 'armv6k'
  13299. 'armv6kz'
  13300. 'armv6t2'
  13301. 'armv6z'
  13302. 'armv6zk'
  13303. '+fp'
  13304. The VFPv2 floating-point instructions. The extension
  13305. '+vfpv2' can be used as an alias for this extension.
  13306. '+nofp'
  13307. Disable the floating-point instructions.
  13308. 'armv7'
  13309. The common subset of the ARMv7-A, ARMv7-R and ARMv7-M
  13310. architectures.
  13311. '+fp'
  13312. The VFPv3 floating-point instructions, with 16
  13313. double-precision registers. The extension '+vfpv3-d16'
  13314. can be used as an alias for this extension. Note that
  13315. floating-point is not supported by the base ARMv7-M
  13316. architecture, but is compatible with both the ARMv7-A and
  13317. ARMv7-R architectures.
  13318. '+nofp'
  13319. Disable the floating-point instructions.
  13320. 'armv7-a'
  13321. '+mp'
  13322. The multiprocessing extension.
  13323. '+sec'
  13324. The security extension.
  13325. '+fp'
  13326. The VFPv3 floating-point instructions, with 16
  13327. double-precision registers. The extension '+vfpv3-d16'
  13328. can be used as an alias for this extension.
  13329. '+simd'
  13330. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  13331. instructions. The extensions '+neon' and '+neon-vfpv3'
  13332. can be used as aliases for this extension.
  13333. '+vfpv3'
  13334. The VFPv3 floating-point instructions, with 32
  13335. double-precision registers.
  13336. '+vfpv3-d16-fp16'
  13337. The VFPv3 floating-point instructions, with 16
  13338. double-precision registers and the half-precision
  13339. floating-point conversion operations.
  13340. '+vfpv3-fp16'
  13341. The VFPv3 floating-point instructions, with 32
  13342. double-precision registers and the half-precision
  13343. floating-point conversion operations.
  13344. '+vfpv4-d16'
  13345. The VFPv4 floating-point instructions, with 16
  13346. double-precision registers.
  13347. '+vfpv4'
  13348. The VFPv4 floating-point instructions, with 32
  13349. double-precision registers.
  13350. '+neon-fp16'
  13351. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  13352. instructions, with the half-precision floating-point
  13353. conversion operations.
  13354. '+neon-vfpv4'
  13355. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  13356. instructions.
  13357. '+nosimd'
  13358. Disable the Advanced SIMD instructions (does not disable
  13359. floating point).
  13360. '+nofp'
  13361. Disable the floating-point and Advanced SIMD
  13362. instructions.
  13363. 'armv7ve'
  13364. The extended version of the ARMv7-A architecture with support
  13365. for virtualization.
  13366. '+fp'
  13367. The VFPv4 floating-point instructions, with 16
  13368. double-precision registers. The extension '+vfpv4-d16'
  13369. can be used as an alias for this extension.
  13370. '+simd'
  13371. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  13372. instructions. The extension '+neon-vfpv4' can be used as
  13373. an alias for this extension.
  13374. '+vfpv3-d16'
  13375. The VFPv3 floating-point instructions, with 16
  13376. double-precision registers.
  13377. '+vfpv3'
  13378. The VFPv3 floating-point instructions, with 32
  13379. double-precision registers.
  13380. '+vfpv3-d16-fp16'
  13381. The VFPv3 floating-point instructions, with 16
  13382. double-precision registers and the half-precision
  13383. floating-point conversion operations.
  13384. '+vfpv3-fp16'
  13385. The VFPv3 floating-point instructions, with 32
  13386. double-precision registers and the half-precision
  13387. floating-point conversion operations.
  13388. '+vfpv4-d16'
  13389. The VFPv4 floating-point instructions, with 16
  13390. double-precision registers.
  13391. '+vfpv4'
  13392. The VFPv4 floating-point instructions, with 32
  13393. double-precision registers.
  13394. '+neon'
  13395. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  13396. instructions. The extension '+neon-vfpv3' can be used as
  13397. an alias for this extension.
  13398. '+neon-fp16'
  13399. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  13400. instructions, with the half-precision floating-point
  13401. conversion operations.
  13402. '+nosimd'
  13403. Disable the Advanced SIMD instructions (does not disable
  13404. floating point).
  13405. '+nofp'
  13406. Disable the floating-point and Advanced SIMD
  13407. instructions.
  13408. 'armv8-a'
  13409. '+crc'
  13410. The Cyclic Redundancy Check (CRC) instructions.
  13411. '+simd'
  13412. The ARMv8-A Advanced SIMD and floating-point
  13413. instructions.
  13414. '+crypto'
  13415. The cryptographic instructions.
  13416. '+nocrypto'
  13417. Disable the cryptographic instructions.
  13418. '+nofp'
  13419. Disable the floating-point, Advanced SIMD and
  13420. cryptographic instructions.
  13421. '+sb'
  13422. Speculation Barrier Instruction.
  13423. '+predres'
  13424. Execution and Data Prediction Restriction Instructions.
  13425. 'armv8.1-a'
  13426. '+simd'
  13427. The ARMv8.1-A Advanced SIMD and floating-point
  13428. instructions.
  13429. '+crypto'
  13430. The cryptographic instructions. This also enables the
  13431. Advanced SIMD and floating-point instructions.
  13432. '+nocrypto'
  13433. Disable the cryptographic instructions.
  13434. '+nofp'
  13435. Disable the floating-point, Advanced SIMD and
  13436. cryptographic instructions.
  13437. '+sb'
  13438. Speculation Barrier Instruction.
  13439. '+predres'
  13440. Execution and Data Prediction Restriction Instructions.
  13441. 'armv8.2-a'
  13442. 'armv8.3-a'
  13443. '+fp16'
  13444. The half-precision floating-point data processing
  13445. instructions. This also enables the Advanced SIMD and
  13446. floating-point instructions.
  13447. '+fp16fml'
  13448. The half-precision floating-point fmla extension. This
  13449. also enables the half-precision floating-point extension
  13450. and Advanced SIMD and floating-point instructions.
  13451. '+simd'
  13452. The ARMv8.1-A Advanced SIMD and floating-point
  13453. instructions.
  13454. '+crypto'
  13455. The cryptographic instructions. This also enables the
  13456. Advanced SIMD and floating-point instructions.
  13457. '+dotprod'
  13458. Enable the Dot Product extension. This also enables
  13459. Advanced SIMD instructions.
  13460. '+nocrypto'
  13461. Disable the cryptographic extension.
  13462. '+nofp'
  13463. Disable the floating-point, Advanced SIMD and
  13464. cryptographic instructions.
  13465. '+sb'
  13466. Speculation Barrier Instruction.
  13467. '+predres'
  13468. Execution and Data Prediction Restriction Instructions.
  13469. 'armv8.4-a'
  13470. '+fp16'
  13471. The half-precision floating-point data processing
  13472. instructions. This also enables the Advanced SIMD and
  13473. floating-point instructions as well as the Dot Product
  13474. extension and the half-precision floating-point fmla
  13475. extension.
  13476. '+simd'
  13477. The ARMv8.3-A Advanced SIMD and floating-point
  13478. instructions as well as the Dot Product extension.
  13479. '+crypto'
  13480. The cryptographic instructions. This also enables the
  13481. Advanced SIMD and floating-point instructions as well as
  13482. the Dot Product extension.
  13483. '+nocrypto'
  13484. Disable the cryptographic extension.
  13485. '+nofp'
  13486. Disable the floating-point, Advanced SIMD and
  13487. cryptographic instructions.
  13488. '+sb'
  13489. Speculation Barrier Instruction.
  13490. '+predres'
  13491. Execution and Data Prediction Restriction Instructions.
  13492. 'armv8.5-a'
  13493. '+fp16'
  13494. The half-precision floating-point data processing
  13495. instructions. This also enables the Advanced SIMD and
  13496. floating-point instructions as well as the Dot Product
  13497. extension and the half-precision floating-point fmla
  13498. extension.
  13499. '+simd'
  13500. The ARMv8.3-A Advanced SIMD and floating-point
  13501. instructions as well as the Dot Product extension.
  13502. '+crypto'
  13503. The cryptographic instructions. This also enables the
  13504. Advanced SIMD and floating-point instructions as well as
  13505. the Dot Product extension.
  13506. '+nocrypto'
  13507. Disable the cryptographic extension.
  13508. '+nofp'
  13509. Disable the floating-point, Advanced SIMD and
  13510. cryptographic instructions.
  13511. 'armv7-r'
  13512. '+fp.sp'
  13513. The single-precision VFPv3 floating-point instructions.
  13514. The extension '+vfpv3xd' can be used as an alias for this
  13515. extension.
  13516. '+fp'
  13517. The VFPv3 floating-point instructions with 16
  13518. double-precision registers. The extension +vfpv3-d16 can
  13519. be used as an alias for this extension.
  13520. '+vfpv3xd-d16-fp16'
  13521. The single-precision VFPv3 floating-point instructions
  13522. with 16 double-precision registers and the half-precision
  13523. floating-point conversion operations.
  13524. '+vfpv3-d16-fp16'
  13525. The VFPv3 floating-point instructions with 16
  13526. double-precision registers and the half-precision
  13527. floating-point conversion operations.
  13528. '+nofp'
  13529. Disable the floating-point extension.
  13530. '+idiv'
  13531. The ARM-state integer division instructions.
  13532. '+noidiv'
  13533. Disable the ARM-state integer division extension.
  13534. 'armv7e-m'
  13535. '+fp'
  13536. The single-precision VFPv4 floating-point instructions.
  13537. '+fpv5'
  13538. The single-precision FPv5 floating-point instructions.
  13539. '+fp.dp'
  13540. The single- and double-precision FPv5 floating-point
  13541. instructions.
  13542. '+nofp'
  13543. Disable the floating-point extensions.
  13544. 'armv8-m.main'
  13545. '+dsp'
  13546. The DSP instructions.
  13547. '+nodsp'
  13548. Disable the DSP extension.
  13549. '+fp'
  13550. The single-precision floating-point instructions.
  13551. '+fp.dp'
  13552. The single- and double-precision floating-point
  13553. instructions.
  13554. '+nofp'
  13555. Disable the floating-point extension.
  13556. 'armv8-r'
  13557. '+crc'
  13558. The Cyclic Redundancy Check (CRC) instructions.
  13559. '+fp.sp'
  13560. The single-precision FPv5 floating-point instructions.
  13561. '+simd'
  13562. The ARMv8-A Advanced SIMD and floating-point
  13563. instructions.
  13564. '+crypto'
  13565. The cryptographic instructions.
  13566. '+nocrypto'
  13567. Disable the cryptographic instructions.
  13568. '+nofp'
  13569. Disable the floating-point, Advanced SIMD and
  13570. cryptographic instructions.
  13571. '-march=native' causes the compiler to auto-detect the architecture
  13572. of the build computer. At present, this feature is only supported
  13573. on GNU/Linux, and not all architectures are recognized. If the
  13574. auto-detect is unsuccessful the option has no effect.
  13575. '-mtune=NAME'
  13576. This option specifies the name of the target ARM processor for
  13577. which GCC should tune the performance of the code. For some ARM
  13578. implementations better performance can be obtained by using this
  13579. option. Permissible names are: 'arm7tdmi', 'arm7tdmi-s',
  13580. 'arm710t', 'arm720t', 'arm740t', 'strongarm', 'strongarm110',
  13581. 'strongarm1100', 0'strongarm1110', 'arm8', 'arm810', 'arm9',
  13582. 'arm9e', 'arm920', 'arm920t', 'arm922t', 'arm946e-s', 'arm966e-s',
  13583. 'arm968e-s', 'arm926ej-s', 'arm940t', 'arm9tdmi', 'arm10tdmi',
  13584. 'arm1020t', 'arm1026ej-s', 'arm10e', 'arm1020e', 'arm1022e',
  13585. 'arm1136j-s', 'arm1136jf-s', 'mpcore', 'mpcorenovfp',
  13586. 'arm1156t2-s', 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s',
  13587. 'generic-armv7-a', 'cortex-a5', 'cortex-a7', 'cortex-a8',
  13588. 'cortex-a9', 'cortex-a12', 'cortex-a15', 'cortex-a17',
  13589. 'cortex-a32', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  13590. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  13591. 'cortex-a76', 'ares', 'cortex-r4', 'cortex-r4f', 'cortex-r5',
  13592. 'cortex-r7', 'cortex-r8', 'cortex-r52', 'cortex-m0',
  13593. 'cortex-m0plus', 'cortex-m1', 'cortex-m3', 'cortex-m4',
  13594. 'cortex-m7', 'cortex-m23', 'cortex-m33',
  13595. 'cortex-m1.small-multiply', 'cortex-m0.small-multiply',
  13596. 'cortex-m0plus.small-multiply', 'exynos-m1', 'marvell-pj4',
  13597. 'neoverse-n1', 'xscale', 'iwmmxt', 'iwmmxt2', 'ep9312', 'fa526',
  13598. 'fa626', 'fa606te', 'fa626te', 'fmp626', 'fa726te', 'xgene1'.
  13599. Additionally, this option can specify that GCC should tune the
  13600. performance of the code for a big.LITTLE system. Permissible names
  13601. are: 'cortex-a15.cortex-a7', 'cortex-a17.cortex-a7',
  13602. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  13603. 'cortex-a72.cortex-a35', 'cortex-a73.cortex-a53',
  13604. 'cortex-a75.cortex-a55', 'cortex-a76.cortex-a55'.
  13605. '-mtune=generic-ARCH' specifies that GCC should tune the
  13606. performance for a blend of processors within architecture ARCH.
  13607. The aim is to generate code that run well on the current most
  13608. popular processors, balancing between optimizations that benefit
  13609. some CPUs in the range, and avoiding performance pitfalls of other
  13610. CPUs. The effects of this option may change in future GCC versions
  13611. as CPU models come and go.
  13612. '-mtune' permits the same extension options as '-mcpu', but the
  13613. extension options do not affect the tuning of the generated code.
  13614. '-mtune=native' causes the compiler to auto-detect the CPU of the
  13615. build computer. At present, this feature is only supported on
  13616. GNU/Linux, and not all architectures are recognized. If the
  13617. auto-detect is unsuccessful the option has no effect.
  13618. '-mcpu=NAME[+extension...]'
  13619. This specifies the name of the target ARM processor. GCC uses this
  13620. name to derive the name of the target ARM architecture (as if
  13621. specified by '-march') and the ARM processor type for which to tune
  13622. for performance (as if specified by '-mtune'). Where this option
  13623. is used in conjunction with '-march' or '-mtune', those options
  13624. take precedence over the appropriate part of this option.
  13625. Many of the supported CPUs implement optional architectural
  13626. extensions. Where this is so the architectural extensions are
  13627. normally enabled by default. If implementations that lack the
  13628. extension exist, then the extension syntax can be used to disable
  13629. those extensions that have been omitted. For floating-point and
  13630. Advanced SIMD (Neon) instructions, the settings of the options
  13631. '-mfloat-abi' and '-mfpu' must also be considered: floating-point
  13632. and Advanced SIMD instructions will only be used if '-mfloat-abi'
  13633. is not set to 'soft'; and any setting of '-mfpu' other than 'auto'
  13634. will override the available floating-point and SIMD extension
  13635. instructions.
  13636. For example, 'cortex-a9' can be found in three major
  13637. configurations: integer only, with just a floating-point unit or
  13638. with floating-point and Advanced SIMD. The default is to enable all
  13639. the instructions, but the extensions '+nosimd' and '+nofp' can be
  13640. used to disable just the SIMD or both the SIMD and floating-point
  13641. instructions respectively.
  13642. Permissible names for this option are the same as those for
  13643. '-mtune'.
  13644. The following extension options are common to the listed CPUs:
  13645. '+nodsp'
  13646. Disable the DSP instructions on 'cortex-m33'.
  13647. '+nofp'
  13648. Disables the floating-point instructions on 'arm9e',
  13649. 'arm946e-s', 'arm966e-s', 'arm968e-s', 'arm10e', 'arm1020e',
  13650. 'arm1022e', 'arm926ej-s', 'arm1026ej-s', 'cortex-r5',
  13651. 'cortex-r7', 'cortex-r8', 'cortex-m4', 'cortex-m7' and
  13652. 'cortex-m33'. Disables the floating-point and SIMD
  13653. instructions on 'generic-armv7-a', 'cortex-a5', 'cortex-a7',
  13654. 'cortex-a8', 'cortex-a9', 'cortex-a12', 'cortex-a15',
  13655. 'cortex-a17', 'cortex-a15.cortex-a7', 'cortex-a17.cortex-a7',
  13656. 'cortex-a32', 'cortex-a35', 'cortex-a53' and 'cortex-a55'.
  13657. '+nofp.dp'
  13658. Disables the double-precision component of the floating-point
  13659. instructions on 'cortex-r5', 'cortex-r7', 'cortex-r8',
  13660. 'cortex-r52' and 'cortex-m7'.
  13661. '+nosimd'
  13662. Disables the SIMD (but not floating-point) instructions on
  13663. 'generic-armv7-a', 'cortex-a5', 'cortex-a7' and 'cortex-a9'.
  13664. '+crypto'
  13665. Enables the cryptographic instructions on 'cortex-a32',
  13666. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  13667. 'cortex-a72', 'cortex-a73', 'cortex-a75', 'exynos-m1',
  13668. 'xgene1', 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  13669. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53' and
  13670. 'cortex-a75.cortex-a55'.
  13671. Additionally the 'generic-armv7-a' pseudo target defaults to VFPv3
  13672. with 16 double-precision registers. It supports the following
  13673. extension options: 'mp', 'sec', 'vfpv3-d16', 'vfpv3',
  13674. 'vfpv3-d16-fp16', 'vfpv3-fp16', 'vfpv4-d16', 'vfpv4', 'neon',
  13675. 'neon-vfpv3', 'neon-fp16', 'neon-vfpv4'. The meanings are the same
  13676. as for the extensions to '-march=armv7-a'.
  13677. '-mcpu=generic-ARCH' is also permissible, and is equivalent to
  13678. '-march=ARCH -mtune=generic-ARCH'. See '-mtune' for more
  13679. information.
  13680. '-mcpu=native' causes the compiler to auto-detect the CPU of the
  13681. build computer. At present, this feature is only supported on
  13682. GNU/Linux, and not all architectures are recognized. If the
  13683. auto-detect is unsuccessful the option has no effect.
  13684. '-mfpu=NAME'
  13685. This specifies what floating-point hardware (or hardware emulation)
  13686. is available on the target. Permissible names are: 'auto',
  13687. 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16', 'vfpv3-d16-fp16',
  13688. 'vfpv3xd', 'vfpv3xd-fp16', 'neon-vfpv3', 'neon-fp16', 'vfpv4',
  13689. 'vfpv4-d16', 'fpv4-sp-d16', 'neon-vfpv4', 'fpv5-d16',
  13690. 'fpv5-sp-d16', 'fp-armv8', 'neon-fp-armv8' and
  13691. 'crypto-neon-fp-armv8'. Note that 'neon' is an alias for
  13692. 'neon-vfpv3' and 'vfp' is an alias for 'vfpv2'.
  13693. The setting 'auto' is the default and is special. It causes the
  13694. compiler to select the floating-point and Advanced SIMD
  13695. instructions based on the settings of '-mcpu' and '-march'.
  13696. If the selected floating-point hardware includes the NEON extension
  13697. (e.g. '-mfpu=neon'), note that floating-point operations are not
  13698. generated by GCC's auto-vectorization pass unless
  13699. '-funsafe-math-optimizations' is also specified. This is because
  13700. NEON hardware does not fully implement the IEEE 754 standard for
  13701. floating-point arithmetic (in particular denormal values are
  13702. treated as zero), so the use of NEON instructions may lead to a
  13703. loss of precision.
  13704. You can also set the fpu name at function level by using the
  13705. 'target("fpu=")' function attributes (*note ARM Function
  13706. Attributes::) or pragmas (*note Function Specific Option
  13707. Pragmas::).
  13708. '-mfp16-format=NAME'
  13709. Specify the format of the '__fp16' half-precision floating-point
  13710. type. Permissible names are 'none', 'ieee', and 'alternative'; the
  13711. default is 'none', in which case the '__fp16' type is not defined.
  13712. *Note Half-Precision::, for more information.
  13713. '-mstructure-size-boundary=N'
  13714. The sizes of all structures and unions are rounded up to a multiple
  13715. of the number of bits set by this option. Permissible values are
  13716. 8, 32 and 64. The default value varies for different toolchains.
  13717. For the COFF targeted toolchain the default value is 8. A value of
  13718. 64 is only allowed if the underlying ABI supports it.
  13719. Specifying a larger number can produce faster, more efficient code,
  13720. but can also increase the size of the program. Different values
  13721. are potentially incompatible. Code compiled with one value cannot
  13722. necessarily expect to work with code or libraries compiled with
  13723. another value, if they exchange information using structures or
  13724. unions.
  13725. This option is deprecated.
  13726. '-mabort-on-noreturn'
  13727. Generate a call to the function 'abort' at the end of a 'noreturn'
  13728. function. It is executed if the function tries to return.
  13729. '-mlong-calls'
  13730. '-mno-long-calls'
  13731. Tells the compiler to perform function calls by first loading the
  13732. address of the function into a register and then performing a
  13733. subroutine call on this register. This switch is needed if the
  13734. target function lies outside of the 64-megabyte addressing range of
  13735. the offset-based version of subroutine call instruction.
  13736. Even if this switch is enabled, not all function calls are turned
  13737. into long calls. The heuristic is that static functions, functions
  13738. that have the 'short_call' attribute, functions that are inside the
  13739. scope of a '#pragma no_long_calls' directive, and functions whose
  13740. definitions have already been compiled within the current
  13741. compilation unit are not turned into long calls. The exceptions to
  13742. this rule are that weak function definitions, functions with the
  13743. 'long_call' attribute or the 'section' attribute, and functions
  13744. that are within the scope of a '#pragma long_calls' directive are
  13745. always turned into long calls.
  13746. This feature is not enabled by default. Specifying
  13747. '-mno-long-calls' restores the default behavior, as does placing
  13748. the function calls within the scope of a '#pragma long_calls_off'
  13749. directive. Note these switches have no effect on how the compiler
  13750. generates code to handle function calls via function pointers.
  13751. '-msingle-pic-base'
  13752. Treat the register used for PIC addressing as read-only, rather
  13753. than loading it in the prologue for each function. The runtime
  13754. system is responsible for initializing this register with an
  13755. appropriate value before execution begins.
  13756. '-mpic-register=REG'
  13757. Specify the register to be used for PIC addressing. For standard
  13758. PIC base case, the default is any suitable register determined by
  13759. compiler. For single PIC base case, the default is 'R9' if target
  13760. is EABI based or stack-checking is enabled, otherwise the default
  13761. is 'R10'.
  13762. '-mpic-data-is-text-relative'
  13763. Assume that the displacement between the text and data segments is
  13764. fixed at static link time. This permits using PC-relative
  13765. addressing operations to access data known to be in the data
  13766. segment. For non-VxWorks RTP targets, this option is enabled by
  13767. default. When disabled on such targets, it will enable
  13768. '-msingle-pic-base' by default.
  13769. '-mpoke-function-name'
  13770. Write the name of each function into the text section, directly
  13771. preceding the function prologue. The generated code is similar to
  13772. this:
  13773. t0
  13774. .ascii "arm_poke_function_name", 0
  13775. .align
  13776. t1
  13777. .word 0xff000000 + (t1 - t0)
  13778. arm_poke_function_name
  13779. mov ip, sp
  13780. stmfd sp!, {fp, ip, lr, pc}
  13781. sub fp, ip, #4
  13782. When performing a stack backtrace, code can inspect the value of
  13783. 'pc' stored at 'fp + 0'. If the trace function then looks at
  13784. location 'pc - 12' and the top 8 bits are set, then we know that
  13785. there is a function name embedded immediately preceding this
  13786. location and has length '((pc[-3]) & 0xff000000)'.
  13787. '-mthumb'
  13788. '-marm'
  13789. Select between generating code that executes in ARM and Thumb
  13790. states. The default for most configurations is to generate code
  13791. that executes in ARM state, but the default can be changed by
  13792. configuring GCC with the '--with-mode='STATE configure option.
  13793. You can also override the ARM and Thumb mode for each function by
  13794. using the 'target("thumb")' and 'target("arm")' function attributes
  13795. (*note ARM Function Attributes::) or pragmas (*note Function
  13796. Specific Option Pragmas::).
  13797. '-mflip-thumb'
  13798. Switch ARM/Thumb modes on alternating functions. This option is
  13799. provided for regression testing of mixed Thumb/ARM code generation,
  13800. and is not intended for ordinary use in compiling code.
  13801. '-mtpcs-frame'
  13802. Generate a stack frame that is compliant with the Thumb Procedure
  13803. Call Standard for all non-leaf functions. (A leaf function is one
  13804. that does not call any other functions.) The default is
  13805. '-mno-tpcs-frame'.
  13806. '-mtpcs-leaf-frame'
  13807. Generate a stack frame that is compliant with the Thumb Procedure
  13808. Call Standard for all leaf functions. (A leaf function is one that
  13809. does not call any other functions.) The default is
  13810. '-mno-apcs-leaf-frame'.
  13811. '-mcallee-super-interworking'
  13812. Gives all externally visible functions in the file being compiled
  13813. an ARM instruction set header which switches to Thumb mode before
  13814. executing the rest of the function. This allows these functions to
  13815. be called from non-interworking code. This option is not valid in
  13816. AAPCS configurations because interworking is enabled by default.
  13817. '-mcaller-super-interworking'
  13818. Allows calls via function pointers (including virtual functions) to
  13819. execute correctly regardless of whether the target code has been
  13820. compiled for interworking or not. There is a small overhead in the
  13821. cost of executing a function pointer if this option is enabled.
  13822. This option is not valid in AAPCS configurations because
  13823. interworking is enabled by default.
  13824. '-mtp=NAME'
  13825. Specify the access model for the thread local storage pointer. The
  13826. valid models are 'soft', which generates calls to
  13827. '__aeabi_read_tp', 'cp15', which fetches the thread pointer from
  13828. 'cp15' directly (supported in the arm6k architecture), and 'auto',
  13829. which uses the best available method for the selected processor.
  13830. The default setting is 'auto'.
  13831. '-mtls-dialect=DIALECT'
  13832. Specify the dialect to use for accessing thread local storage. Two
  13833. DIALECTs are supported--'gnu' and 'gnu2'. The 'gnu' dialect
  13834. selects the original GNU scheme for supporting local and global
  13835. dynamic TLS models. The 'gnu2' dialect selects the GNU descriptor
  13836. scheme, which provides better performance for shared libraries.
  13837. The GNU descriptor scheme is compatible with the original scheme,
  13838. but does require new assembler, linker and library support.
  13839. Initial and local exec TLS models are unaffected by this option and
  13840. always use the original scheme.
  13841. '-mword-relocations'
  13842. Only generate absolute relocations on word-sized values (i.e.
  13843. R_ARM_ABS32). This is enabled by default on targets (uClinux,
  13844. SymbianOS) where the runtime loader imposes this restriction, and
  13845. when '-fpic' or '-fPIC' is specified. This option conflicts with
  13846. '-mslow-flash-data'.
  13847. '-mfix-cortex-m3-ldrd'
  13848. Some Cortex-M3 cores can cause data corruption when 'ldrd'
  13849. instructions with overlapping destination and base registers are
  13850. used. This option avoids generating these instructions. This
  13851. option is enabled by default when '-mcpu=cortex-m3' is specified.
  13852. '-munaligned-access'
  13853. '-mno-unaligned-access'
  13854. Enables (or disables) reading and writing of 16- and 32- bit values
  13855. from addresses that are not 16- or 32- bit aligned. By default
  13856. unaligned access is disabled for all pre-ARMv6, all ARMv6-M and for
  13857. ARMv8-M Baseline architectures, and enabled for all other
  13858. architectures. If unaligned access is not enabled then words in
  13859. packed data structures are accessed a byte at a time.
  13860. The ARM attribute 'Tag_CPU_unaligned_access' is set in the
  13861. generated object file to either true or false, depending upon the
  13862. setting of this option. If unaligned access is enabled then the
  13863. preprocessor symbol '__ARM_FEATURE_UNALIGNED' is also defined.
  13864. '-mneon-for-64bits'
  13865. Enables using Neon to handle scalar 64-bits operations. This is
  13866. disabled by default since the cost of moving data from core
  13867. registers to Neon is high.
  13868. '-mslow-flash-data'
  13869. Assume loading data from flash is slower than fetching instruction.
  13870. Therefore literal load is minimized for better performance. This
  13871. option is only supported when compiling for ARMv7 M-profile and off
  13872. by default. It conflicts with '-mword-relocations'.
  13873. '-masm-syntax-unified'
  13874. Assume inline assembler is using unified asm syntax. The default
  13875. is currently off which implies divided syntax. This option has no
  13876. impact on Thumb2. However, this may change in future releases of
  13877. GCC. Divided syntax should be considered deprecated.
  13878. '-mrestrict-it'
  13879. Restricts generation of IT blocks to conform to the rules of
  13880. ARMv8-A. IT blocks can only contain a single 16-bit instruction
  13881. from a select set of instructions. This option is on by default
  13882. for ARMv8-A Thumb mode.
  13883. '-mprint-tune-info'
  13884. Print CPU tuning information as comment in assembler file. This is
  13885. an option used only for regression testing of the compiler and not
  13886. intended for ordinary use in compiling code. This option is
  13887. disabled by default.
  13888. '-mverbose-cost-dump'
  13889. Enable verbose cost model dumping in the debug dump files. This
  13890. option is provided for use in debugging the compiler.
  13891. '-mpure-code'
  13892. Do not allow constant data to be placed in code sections.
  13893. Additionally, when compiling for ELF object format give all text
  13894. sections the ELF processor-specific section attribute
  13895. 'SHF_ARM_PURECODE'. This option is only available when generating
  13896. non-pic code for M-profile targets with the MOVT instruction.
  13897. '-mcmse'
  13898. Generate secure code as per the "ARMv8-M Security Extensions:
  13899. Requirements on Development Tools Engineering Specification", which
  13900. can be found on
  13901. <http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf>.
  13902. 
  13903. File: gcc.info, Node: AVR Options, Next: Blackfin Options, Prev: ARM Options, Up: Submodel Options
  13904. 3.18.6 AVR Options
  13905. ------------------
  13906. These options are defined for AVR implementations:
  13907. '-mmcu=MCU'
  13908. Specify Atmel AVR instruction set architectures (ISA) or MCU type.
  13909. The default for this option is 'avr2'.
  13910. GCC supports the following AVR devices and ISAs:
  13911. 'avr2'
  13912. "Classic" devices with up to 8 KiB of program memory.
  13913. MCU = 'attiny22', 'attiny26', 'at90c8534', 'at90s2313',
  13914. 'at90s2323', 'at90s2333', 'at90s2343', 'at90s4414',
  13915. 'at90s4433', 'at90s4434', 'at90s8515', 'at90s8535'.
  13916. 'avr25'
  13917. "Classic" devices with up to 8 KiB of program memory and with
  13918. the 'MOVW' instruction.
  13919. MCU = 'ata5272', 'ata6616c', 'attiny13', 'attiny13a',
  13920. 'attiny2313', 'attiny2313a', 'attiny24', 'attiny24a',
  13921. 'attiny25', 'attiny261', 'attiny261a', 'attiny43u',
  13922. 'attiny4313', 'attiny44', 'attiny44a', 'attiny441',
  13923. 'attiny45', 'attiny461', 'attiny461a', 'attiny48',
  13924. 'attiny828', 'attiny84', 'attiny84a', 'attiny841', 'attiny85',
  13925. 'attiny861', 'attiny861a', 'attiny87', 'attiny88',
  13926. 'at86rf401'.
  13927. 'avr3'
  13928. "Classic" devices with 16 KiB up to 64 KiB of program memory.
  13929. MCU = 'at43usb355', 'at76c711'.
  13930. 'avr31'
  13931. "Classic" devices with 128 KiB of program memory.
  13932. MCU = 'atmega103', 'at43usb320'.
  13933. 'avr35'
  13934. "Classic" devices with 16 KiB up to 64 KiB of program memory
  13935. and with the 'MOVW' instruction.
  13936. MCU = 'ata5505', 'ata6617c', 'ata664251', 'atmega16u2',
  13937. 'atmega32u2', 'atmega8u2', 'attiny1634', 'attiny167',
  13938. 'at90usb162', 'at90usb82'.
  13939. 'avr4'
  13940. "Enhanced" devices with up to 8 KiB of program memory.
  13941. MCU = 'ata6285', 'ata6286', 'ata6289', 'ata6612c', 'atmega48',
  13942. 'atmega48a', 'atmega48p', 'atmega48pa', 'atmega48pb',
  13943. 'atmega8', 'atmega8a', 'atmega8hva', 'atmega8515',
  13944. 'atmega8535', 'atmega88', 'atmega88a', 'atmega88p',
  13945. 'atmega88pa', 'atmega88pb', 'at90pwm1', 'at90pwm2',
  13946. 'at90pwm2b', 'at90pwm3', 'at90pwm3b', 'at90pwm81'.
  13947. 'avr5'
  13948. "Enhanced" devices with 16 KiB up to 64 KiB of program memory.
  13949. MCU = 'ata5702m322', 'ata5782', 'ata5790', 'ata5790n',
  13950. 'ata5791', 'ata5795', 'ata5831', 'ata6613c', 'ata6614q',
  13951. 'ata8210', 'ata8510', 'atmega16', 'atmega16a', 'atmega16hva',
  13952. 'atmega16hva2', 'atmega16hvb', 'atmega16hvbrevb',
  13953. 'atmega16m1', 'atmega16u4', 'atmega161', 'atmega162',
  13954. 'atmega163', 'atmega164a', 'atmega164p', 'atmega164pa',
  13955. 'atmega165', 'atmega165a', 'atmega165p', 'atmega165pa',
  13956. 'atmega168', 'atmega168a', 'atmega168p', 'atmega168pa',
  13957. 'atmega168pb', 'atmega169', 'atmega169a', 'atmega169p',
  13958. 'atmega169pa', 'atmega32', 'atmega32a', 'atmega32c1',
  13959. 'atmega32hvb', 'atmega32hvbrevb', 'atmega32m1', 'atmega32u4',
  13960. 'atmega32u6', 'atmega323', 'atmega324a', 'atmega324p',
  13961. 'atmega324pa', 'atmega325', 'atmega325a', 'atmega325p',
  13962. 'atmega325pa', 'atmega3250', 'atmega3250a', 'atmega3250p',
  13963. 'atmega3250pa', 'atmega328', 'atmega328p', 'atmega328pb',
  13964. 'atmega329', 'atmega329a', 'atmega329p', 'atmega329pa',
  13965. 'atmega3290', 'atmega3290a', 'atmega3290p', 'atmega3290pa',
  13966. 'atmega406', 'atmega64', 'atmega64a', 'atmega64c1',
  13967. 'atmega64hve', 'atmega64hve2', 'atmega64m1', 'atmega64rfr2',
  13968. 'atmega640', 'atmega644', 'atmega644a', 'atmega644p',
  13969. 'atmega644pa', 'atmega644rfr2', 'atmega645', 'atmega645a',
  13970. 'atmega645p', 'atmega6450', 'atmega6450a', 'atmega6450p',
  13971. 'atmega649', 'atmega649a', 'atmega649p', 'atmega6490',
  13972. 'atmega6490a', 'atmega6490p', 'at90can32', 'at90can64',
  13973. 'at90pwm161', 'at90pwm216', 'at90pwm316', 'at90scr100',
  13974. 'at90usb646', 'at90usb647', 'at94k', 'm3000'.
  13975. 'avr51'
  13976. "Enhanced" devices with 128 KiB of program memory.
  13977. MCU = 'atmega128', 'atmega128a', 'atmega128rfa1',
  13978. 'atmega128rfr2', 'atmega1280', 'atmega1281', 'atmega1284',
  13979. 'atmega1284p', 'atmega1284rfr2', 'at90can128', 'at90usb1286',
  13980. 'at90usb1287'.
  13981. 'avr6'
  13982. "Enhanced" devices with 3-byte PC, i.e. with more than 128 KiB
  13983. of program memory.
  13984. MCU = 'atmega256rfr2', 'atmega2560', 'atmega2561',
  13985. 'atmega2564rfr2'.
  13986. 'avrxmega2'
  13987. "XMEGA" devices with more than 8 KiB and up to 64 KiB of
  13988. program memory.
  13989. MCU = 'atxmega16a4', 'atxmega16a4u', 'atxmega16c4',
  13990. 'atxmega16d4', 'atxmega16e5', 'atxmega32a4', 'atxmega32a4u',
  13991. 'atxmega32c3', 'atxmega32c4', 'atxmega32d3', 'atxmega32d4',
  13992. 'atxmega32e5', 'atxmega8e5'.
  13993. 'avrxmega3'
  13994. "XMEGA" devices with up to 64 KiB of combined program memory
  13995. and RAM, and with program memory visible in the RAM address
  13996. space.
  13997. MCU = 'attiny1614', 'attiny1616', 'attiny1617', 'attiny212',
  13998. 'attiny214', 'attiny3214', 'attiny3216', 'attiny3217',
  13999. 'attiny412', 'attiny414', 'attiny416', 'attiny417',
  14000. 'attiny814', 'attiny816', 'attiny817'.
  14001. 'avrxmega4'
  14002. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  14003. program memory.
  14004. MCU = 'atxmega64a3', 'atxmega64a3u', 'atxmega64a4u',
  14005. 'atxmega64b1', 'atxmega64b3', 'atxmega64c3', 'atxmega64d3',
  14006. 'atxmega64d4'.
  14007. 'avrxmega5'
  14008. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  14009. program memory and more than 64 KiB of RAM.
  14010. MCU = 'atxmega64a1', 'atxmega64a1u'.
  14011. 'avrxmega6'
  14012. "XMEGA" devices with more than 128 KiB of program memory.
  14013. MCU = 'atxmega128a3', 'atxmega128a3u', 'atxmega128b1',
  14014. 'atxmega128b3', 'atxmega128c3', 'atxmega128d3',
  14015. 'atxmega128d4', 'atxmega192a3', 'atxmega192a3u',
  14016. 'atxmega192c3', 'atxmega192d3', 'atxmega256a3',
  14017. 'atxmega256a3b', 'atxmega256a3bu', 'atxmega256a3u',
  14018. 'atxmega256c3', 'atxmega256d3', 'atxmega384c3',
  14019. 'atxmega384d3'.
  14020. 'avrxmega7'
  14021. "XMEGA" devices with more than 128 KiB of program memory and
  14022. more than 64 KiB of RAM.
  14023. MCU = 'atxmega128a1', 'atxmega128a1u', 'atxmega128a4u'.
  14024. 'avrtiny'
  14025. "TINY" Tiny core devices with 512 B up to 4 KiB of program
  14026. memory.
  14027. MCU = 'attiny10', 'attiny20', 'attiny4', 'attiny40',
  14028. 'attiny5', 'attiny9'.
  14029. 'avr1'
  14030. This ISA is implemented by the minimal AVR core and supported
  14031. for assembler only.
  14032. MCU = 'attiny11', 'attiny12', 'attiny15', 'attiny28',
  14033. 'at90s1200'.
  14034. '-mabsdata'
  14035. Assume that all data in static storage can be accessed by LDS / STS
  14036. instructions. This option has only an effect on reduced Tiny
  14037. devices like ATtiny40. See also the 'absdata' *note variable
  14038. attribute: AVR Variable Attributes.
  14039. '-maccumulate-args'
  14040. Accumulate outgoing function arguments and acquire/release the
  14041. needed stack space for outgoing function arguments once in function
  14042. prologue/epilogue. Without this option, outgoing arguments are
  14043. pushed before calling a function and popped afterwards.
  14044. Popping the arguments after the function call can be expensive on
  14045. AVR so that accumulating the stack space might lead to smaller
  14046. executables because arguments need not be removed from the stack
  14047. after such a function call.
  14048. This option can lead to reduced code size for functions that
  14049. perform several calls to functions that get their arguments on the
  14050. stack like calls to printf-like functions.
  14051. '-mbranch-cost=COST'
  14052. Set the branch costs for conditional branch instructions to COST.
  14053. Reasonable values for COST are small, non-negative integers. The
  14054. default branch cost is 0.
  14055. '-mcall-prologues'
  14056. Functions prologues/epilogues are expanded as calls to appropriate
  14057. subroutines. Code size is smaller.
  14058. '-mgas-isr-prologues'
  14059. Interrupt service routines (ISRs) may use the '__gcc_isr' pseudo
  14060. instruction supported by GNU Binutils. If this option is on, the
  14061. feature can still be disabled for individual ISRs by means of the
  14062. *note 'no_gccisr': AVR Function Attributes. function attribute.
  14063. This feature is activated per default if optimization is on (but
  14064. not with '-Og', *note Optimize Options::), and if GNU Binutils
  14065. support PR21683 (https://sourceware.org/PR21683).
  14066. '-mint8'
  14067. Assume 'int' to be 8-bit integer. This affects the sizes of all
  14068. types: a 'char' is 1 byte, an 'int' is 1 byte, a 'long' is 2 bytes,
  14069. and 'long long' is 4 bytes. Please note that this option does not
  14070. conform to the C standards, but it results in smaller code size.
  14071. '-mmain-is-OS_task'
  14072. Do not save registers in 'main'. The effect is the same like
  14073. attaching attribute *note 'OS_task': AVR Function Attributes. to
  14074. 'main'. It is activated per default if optimization is on.
  14075. '-mn-flash=NUM'
  14076. Assume that the flash memory has a size of NUM times 64 KiB.
  14077. '-mno-interrupts'
  14078. Generated code is not compatible with hardware interrupts. Code
  14079. size is smaller.
  14080. '-mrelax'
  14081. Try to replace 'CALL' resp. 'JMP' instruction by the shorter
  14082. 'RCALL' resp. 'RJMP' instruction if applicable. Setting '-mrelax'
  14083. just adds the '--mlink-relax' option to the assembler's command
  14084. line and the '--relax' option to the linker's command line.
  14085. Jump relaxing is performed by the linker because jump offsets are
  14086. not known before code is located. Therefore, the assembler code
  14087. generated by the compiler is the same, but the instructions in the
  14088. executable may differ from instructions in the assembler code.
  14089. Relaxing must be turned on if linker stubs are needed, see the
  14090. section on 'EIND' and linker stubs below.
  14091. '-mrmw'
  14092. Assume that the device supports the Read-Modify-Write instructions
  14093. 'XCH', 'LAC', 'LAS' and 'LAT'.
  14094. '-mshort-calls'
  14095. Assume that 'RJMP' and 'RCALL' can target the whole program memory.
  14096. This option is used internally for multilib selection. It is not
  14097. an optimization option, and you don't need to set it by hand.
  14098. '-msp8'
  14099. Treat the stack pointer register as an 8-bit register, i.e. assume
  14100. the high byte of the stack pointer is zero. In general, you don't
  14101. need to set this option by hand.
  14102. This option is used internally by the compiler to select and build
  14103. multilibs for architectures 'avr2' and 'avr25'. These
  14104. architectures mix devices with and without 'SPH'. For any setting
  14105. other than '-mmcu=avr2' or '-mmcu=avr25' the compiler driver adds
  14106. or removes this option from the compiler proper's command line,
  14107. because the compiler then knows if the device or architecture has
  14108. an 8-bit stack pointer and thus no 'SPH' register or not.
  14109. '-mstrict-X'
  14110. Use address register 'X' in a way proposed by the hardware. This
  14111. means that 'X' is only used in indirect, post-increment or
  14112. pre-decrement addressing.
  14113. Without this option, the 'X' register may be used in the same way
  14114. as 'Y' or 'Z' which then is emulated by additional instructions.
  14115. For example, loading a value with 'X+const' addressing with a small
  14116. non-negative 'const < 64' to a register RN is performed as
  14117. adiw r26, const ; X += const
  14118. ld RN, X ; RN = *X
  14119. sbiw r26, const ; X -= const
  14120. '-mtiny-stack'
  14121. Only change the lower 8 bits of the stack pointer.
  14122. '-mfract-convert-truncate'
  14123. Allow to use truncation instead of rounding towards zero for
  14124. fractional fixed-point types.
  14125. '-nodevicelib'
  14126. Don't link against AVR-LibC's device specific library 'lib<mcu>.a'.
  14127. '-Waddr-space-convert'
  14128. Warn about conversions between address spaces in the case where the
  14129. resulting address space is not contained in the incoming address
  14130. space.
  14131. '-Wmisspelled-isr'
  14132. Warn if the ISR is misspelled, i.e. without __vector prefix.
  14133. Enabled by default.
  14134. 3.18.6.1 'EIND' and Devices with More Than 128 Ki Bytes of Flash
  14135. ................................................................
  14136. Pointers in the implementation are 16 bits wide. The address of a
  14137. function or label is represented as word address so that indirect jumps
  14138. and calls can target any code address in the range of 64 Ki words.
  14139. In order to facilitate indirect jump on devices with more than 128 Ki
  14140. bytes of program memory space, there is a special function register
  14141. called 'EIND' that serves as most significant part of the target address
  14142. when 'EICALL' or 'EIJMP' instructions are used.
  14143. Indirect jumps and calls on these devices are handled as follows by the
  14144. compiler and are subject to some limitations:
  14145. * The compiler never sets 'EIND'.
  14146. * The compiler uses 'EIND' implicitly in 'EICALL'/'EIJMP'
  14147. instructions or might read 'EIND' directly in order to emulate an
  14148. indirect call/jump by means of a 'RET' instruction.
  14149. * The compiler assumes that 'EIND' never changes during the startup
  14150. code or during the application. In particular, 'EIND' is not
  14151. saved/restored in function or interrupt service routine
  14152. prologue/epilogue.
  14153. * For indirect calls to functions and computed goto, the linker
  14154. generates _stubs_. Stubs are jump pads sometimes also called
  14155. _trampolines_. Thus, the indirect call/jump jumps to such a stub.
  14156. The stub contains a direct jump to the desired address.
  14157. * Linker relaxation must be turned on so that the linker generates
  14158. the stubs correctly in all situations. See the compiler option
  14159. '-mrelax' and the linker option '--relax'. There are corner cases
  14160. where the linker is supposed to generate stubs but aborts without
  14161. relaxation and without a helpful error message.
  14162. * The default linker script is arranged for code with 'EIND = 0'. If
  14163. code is supposed to work for a setup with 'EIND != 0', a custom
  14164. linker script has to be used in order to place the sections whose
  14165. name start with '.trampolines' into the segment where 'EIND' points
  14166. to.
  14167. * The startup code from libgcc never sets 'EIND'. Notice that
  14168. startup code is a blend of code from libgcc and AVR-LibC. For the
  14169. impact of AVR-LibC on 'EIND', see the
  14170. AVR-LibC user manual (http://nongnu.org/avr-libc/user-manual/).
  14171. * It is legitimate for user-specific startup code to set up 'EIND'
  14172. early, for example by means of initialization code located in
  14173. section '.init3'. Such code runs prior to general startup code
  14174. that initializes RAM and calls constructors, but after the bit of
  14175. startup code from AVR-LibC that sets 'EIND' to the segment where
  14176. the vector table is located.
  14177. #include <avr/io.h>
  14178. static void
  14179. __attribute__((section(".init3"),naked,used,no_instrument_function))
  14180. init3_set_eind (void)
  14181. {
  14182. __asm volatile ("ldi r24,pm_hh8(__trampolines_start)\n\t"
  14183. "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  14184. }
  14185. The '__trampolines_start' symbol is defined in the linker script.
  14186. * Stubs are generated automatically by the linker if the following
  14187. two conditions are met:
  14188. - The address of a label is taken by means of the 'gs' modifier
  14189. (short for _generate stubs_) like so:
  14190. LDI r24, lo8(gs(FUNC))
  14191. LDI r25, hi8(gs(FUNC))
  14192. - The final location of that label is in a code segment
  14193. _outside_ the segment where the stubs are located.
  14194. * The compiler emits such 'gs' modifiers for code labels in the
  14195. following situations:
  14196. - Taking address of a function or code label.
  14197. - Computed goto.
  14198. - If prologue-save function is used, see '-mcall-prologues'
  14199. command-line option.
  14200. - Switch/case dispatch tables. If you do not want such dispatch
  14201. tables you can specify the '-fno-jump-tables' command-line
  14202. option.
  14203. - C and C++ constructors/destructors called during
  14204. startup/shutdown.
  14205. - If the tools hit a 'gs()' modifier explained above.
  14206. * Jumping to non-symbolic addresses like so is _not_ supported:
  14207. int main (void)
  14208. {
  14209. /* Call function at word address 0x2 */
  14210. return ((int(*)(void)) 0x2)();
  14211. }
  14212. Instead, a stub has to be set up, i.e. the function has to be
  14213. called through a symbol ('func_4' in the example):
  14214. int main (void)
  14215. {
  14216. extern int func_4 (void);
  14217. /* Call function at byte address 0x4 */
  14218. return func_4();
  14219. }
  14220. and the application be linked with '-Wl,--defsym,func_4=0x4'.
  14221. Alternatively, 'func_4' can be defined in the linker script.
  14222. 3.18.6.2 Handling of the 'RAMPD', 'RAMPX', 'RAMPY' and 'RAMPZ' Special Function Registers
  14223. .........................................................................................
  14224. Some AVR devices support memories larger than the 64 KiB range that can
  14225. be accessed with 16-bit pointers. To access memory locations outside
  14226. this 64 KiB range, the content of a 'RAMP' register is used as high part
  14227. of the address: The 'X', 'Y', 'Z' address register is concatenated with
  14228. the 'RAMPX', 'RAMPY', 'RAMPZ' special function register, respectively,
  14229. to get a wide address. Similarly, 'RAMPD' is used together with direct
  14230. addressing.
  14231. * The startup code initializes the 'RAMP' special function registers
  14232. with zero.
  14233. * If a *note named address space: AVR Named Address Spaces. other
  14234. than generic or '__flash' is used, then 'RAMPZ' is set as needed
  14235. before the operation.
  14236. * If the device supports RAM larger than 64 KiB and the compiler
  14237. needs to change 'RAMPZ' to accomplish an operation, 'RAMPZ' is
  14238. reset to zero after the operation.
  14239. * If the device comes with a specific 'RAMP' register, the ISR
  14240. prologue/epilogue saves/restores that SFR and initializes it with
  14241. zero in case the ISR code might (implicitly) use it.
  14242. * RAM larger than 64 KiB is not supported by GCC for AVR targets. If
  14243. you use inline assembler to read from locations outside the 16-bit
  14244. address range and change one of the 'RAMP' registers, you must
  14245. reset it to zero after the access.
  14246. 3.18.6.3 AVR Built-in Macros
  14247. ............................
  14248. GCC defines several built-in macros so that the user code can test for
  14249. the presence or absence of features. Almost any of the following
  14250. built-in macros are deduced from device capabilities and thus triggered
  14251. by the '-mmcu=' command-line option.
  14252. For even more AVR-specific built-in macros see *note AVR Named Address
  14253. Spaces:: and *note AVR Built-in Functions::.
  14254. '__AVR_ARCH__'
  14255. Build-in macro that resolves to a decimal number that identifies
  14256. the architecture and depends on the '-mmcu=MCU' option. Possible
  14257. values are:
  14258. '2', '25', '3', '31', '35', '4', '5', '51', '6'
  14259. for MCU='avr2', 'avr25', 'avr3', 'avr31', 'avr35', 'avr4', 'avr5',
  14260. 'avr51', 'avr6',
  14261. respectively and
  14262. '100', '102', '103', '104', '105', '106', '107'
  14263. for MCU='avrtiny', 'avrxmega2', 'avrxmega3', 'avrxmega4',
  14264. 'avrxmega5', 'avrxmega6', 'avrxmega7', respectively. If MCU
  14265. specifies a device, this built-in macro is set accordingly. For
  14266. example, with '-mmcu=atmega8' the macro is defined to '4'.
  14267. '__AVR_DEVICE__'
  14268. Setting '-mmcu=DEVICE' defines this built-in macro which reflects
  14269. the device's name. For example, '-mmcu=atmega8' defines the
  14270. built-in macro '__AVR_ATmega8__', '-mmcu=attiny261a' defines
  14271. '__AVR_ATtiny261A__', etc.
  14272. The built-in macros' names follow the scheme '__AVR_DEVICE__' where
  14273. DEVICE is the device name as from the AVR user manual. The
  14274. difference between DEVICE in the built-in macro and DEVICE in
  14275. '-mmcu=DEVICE' is that the latter is always lowercase.
  14276. If DEVICE is not a device but only a core architecture like
  14277. 'avr51', this macro is not defined.
  14278. '__AVR_DEVICE_NAME__'
  14279. Setting '-mmcu=DEVICE' defines this built-in macro to the device's
  14280. name. For example, with '-mmcu=atmega8' the macro is defined to
  14281. 'atmega8'.
  14282. If DEVICE is not a device but only a core architecture like
  14283. 'avr51', this macro is not defined.
  14284. '__AVR_XMEGA__'
  14285. The device / architecture belongs to the XMEGA family of devices.
  14286. '__AVR_HAVE_ELPM__'
  14287. The device has the 'ELPM' instruction.
  14288. '__AVR_HAVE_ELPMX__'
  14289. The device has the 'ELPM RN,Z' and 'ELPM RN,Z+' instructions.
  14290. '__AVR_HAVE_MOVW__'
  14291. The device has the 'MOVW' instruction to perform 16-bit
  14292. register-register moves.
  14293. '__AVR_HAVE_LPMX__'
  14294. The device has the 'LPM RN,Z' and 'LPM RN,Z+' instructions.
  14295. '__AVR_HAVE_MUL__'
  14296. The device has a hardware multiplier.
  14297. '__AVR_HAVE_JMP_CALL__'
  14298. The device has the 'JMP' and 'CALL' instructions. This is the case
  14299. for devices with more than 8 KiB of program memory.
  14300. '__AVR_HAVE_EIJMP_EICALL__'
  14301. '__AVR_3_BYTE_PC__'
  14302. The device has the 'EIJMP' and 'EICALL' instructions. This is the
  14303. case for devices with more than 128 KiB of program memory. This
  14304. also means that the program counter (PC) is 3 bytes wide.
  14305. '__AVR_2_BYTE_PC__'
  14306. The program counter (PC) is 2 bytes wide. This is the case for
  14307. devices with up to 128 KiB of program memory.
  14308. '__AVR_HAVE_8BIT_SP__'
  14309. '__AVR_HAVE_16BIT_SP__'
  14310. The stack pointer (SP) register is treated as 8-bit respectively
  14311. 16-bit register by the compiler. The definition of these macros is
  14312. affected by '-mtiny-stack'.
  14313. '__AVR_HAVE_SPH__'
  14314. '__AVR_SP8__'
  14315. The device has the SPH (high part of stack pointer) special
  14316. function register or has an 8-bit stack pointer, respectively. The
  14317. definition of these macros is affected by '-mmcu=' and in the cases
  14318. of '-mmcu=avr2' and '-mmcu=avr25' also by '-msp8'.
  14319. '__AVR_HAVE_RAMPD__'
  14320. '__AVR_HAVE_RAMPX__'
  14321. '__AVR_HAVE_RAMPY__'
  14322. '__AVR_HAVE_RAMPZ__'
  14323. The device has the 'RAMPD', 'RAMPX', 'RAMPY', 'RAMPZ' special
  14324. function register, respectively.
  14325. '__NO_INTERRUPTS__'
  14326. This macro reflects the '-mno-interrupts' command-line option.
  14327. '__AVR_ERRATA_SKIP__'
  14328. '__AVR_ERRATA_SKIP_JMP_CALL__'
  14329. Some AVR devices (AT90S8515, ATmega103) must not skip 32-bit
  14330. instructions because of a hardware erratum. Skip instructions are
  14331. 'SBRS', 'SBRC', 'SBIS', 'SBIC' and 'CPSE'. The second macro is
  14332. only defined if '__AVR_HAVE_JMP_CALL__' is also set.
  14333. '__AVR_ISA_RMW__'
  14334. The device has Read-Modify-Write instructions (XCH, LAC, LAS and
  14335. LAT).
  14336. '__AVR_SFR_OFFSET__=OFFSET'
  14337. Instructions that can address I/O special function registers
  14338. directly like 'IN', 'OUT', 'SBI', etc. may use a different address
  14339. as if addressed by an instruction to access RAM like 'LD' or 'STS'.
  14340. This offset depends on the device architecture and has to be
  14341. subtracted from the RAM address in order to get the respective
  14342. I/O address.
  14343. '__AVR_SHORT_CALLS__'
  14344. The '-mshort-calls' command line option is set.
  14345. '__AVR_PM_BASE_ADDRESS__=ADDR'
  14346. Some devices support reading from flash memory by means of 'LD*'
  14347. instructions. The flash memory is seen in the data address space
  14348. at an offset of '__AVR_PM_BASE_ADDRESS__'. If this macro is not
  14349. defined, this feature is not available. If defined, the address
  14350. space is linear and there is no need to put '.rodata' into RAM.
  14351. This is handled by the default linker description file, and is
  14352. currently available for 'avrtiny' and 'avrxmega3'. Even more
  14353. convenient, there is no need to use address spaces like '__flash'
  14354. or features like attribute 'progmem' and 'pgm_read_*'.
  14355. '__WITH_AVRLIBC__'
  14356. The compiler is configured to be used together with AVR-Libc. See
  14357. the '--with-avrlibc' configure option.
  14358. 
  14359. File: gcc.info, Node: Blackfin Options, Next: C6X Options, Prev: AVR Options, Up: Submodel Options
  14360. 3.18.7 Blackfin Options
  14361. -----------------------
  14362. '-mcpu=CPU[-SIREVISION]'
  14363. Specifies the name of the target Blackfin processor. Currently,
  14364. CPU can be one of 'bf512', 'bf514', 'bf516', 'bf518', 'bf522',
  14365. 'bf523', 'bf524', 'bf525', 'bf526', 'bf527', 'bf531', 'bf532',
  14366. 'bf533', 'bf534', 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  14367. 'bf544', 'bf547', 'bf548', 'bf549', 'bf542m', 'bf544m', 'bf547m',
  14368. 'bf548m', 'bf549m', 'bf561', 'bf592'.
  14369. The optional SIREVISION specifies the silicon revision of the
  14370. target Blackfin processor. Any workarounds available for the
  14371. targeted silicon revision are enabled. If SIREVISION is 'none', no
  14372. workarounds are enabled. If SIREVISION is 'any', all workarounds
  14373. for the targeted processor are enabled. The '__SILICON_REVISION__'
  14374. macro is defined to two hexadecimal digits representing the major
  14375. and minor numbers in the silicon revision. If SIREVISION is
  14376. 'none', the '__SILICON_REVISION__' is not defined. If SIREVISION
  14377. is 'any', the '__SILICON_REVISION__' is defined to be '0xffff'. If
  14378. this optional SIREVISION is not used, GCC assumes the latest known
  14379. silicon revision of the targeted Blackfin processor.
  14380. GCC defines a preprocessor macro for the specified CPU. For the
  14381. 'bfin-elf' toolchain, this option causes the hardware BSP provided
  14382. by libgloss to be linked in if '-msim' is not given.
  14383. Without this option, 'bf532' is used as the processor by default.
  14384. Note that support for 'bf561' is incomplete. For 'bf561', only the
  14385. preprocessor macro is defined.
  14386. '-msim'
  14387. Specifies that the program will be run on the simulator. This
  14388. causes the simulator BSP provided by libgloss to be linked in.
  14389. This option has effect only for 'bfin-elf' toolchain. Certain
  14390. other options, such as '-mid-shared-library' and '-mfdpic', imply
  14391. '-msim'.
  14392. '-momit-leaf-frame-pointer'
  14393. Don't keep the frame pointer in a register for leaf functions.
  14394. This avoids the instructions to save, set up and restore frame
  14395. pointers and makes an extra register available in leaf functions.
  14396. '-mspecld-anomaly'
  14397. When enabled, the compiler ensures that the generated code does not
  14398. contain speculative loads after jump instructions. If this option
  14399. is used, '__WORKAROUND_SPECULATIVE_LOADS' is defined.
  14400. '-mno-specld-anomaly'
  14401. Don't generate extra code to prevent speculative loads from
  14402. occurring.
  14403. '-mcsync-anomaly'
  14404. When enabled, the compiler ensures that the generated code does not
  14405. contain CSYNC or SSYNC instructions too soon after conditional
  14406. branches. If this option is used, '__WORKAROUND_SPECULATIVE_SYNCS'
  14407. is defined.
  14408. '-mno-csync-anomaly'
  14409. Don't generate extra code to prevent CSYNC or SSYNC instructions
  14410. from occurring too soon after a conditional branch.
  14411. '-mlow64k'
  14412. When enabled, the compiler is free to take advantage of the
  14413. knowledge that the entire program fits into the low 64k of memory.
  14414. '-mno-low64k'
  14415. Assume that the program is arbitrarily large. This is the default.
  14416. '-mstack-check-l1'
  14417. Do stack checking using information placed into L1 scratchpad
  14418. memory by the uClinux kernel.
  14419. '-mid-shared-library'
  14420. Generate code that supports shared libraries via the library ID
  14421. method. This allows for execute in place and shared libraries in
  14422. an environment without virtual memory management. This option
  14423. implies '-fPIC'. With a 'bfin-elf' target, this option implies
  14424. '-msim'.
  14425. '-mno-id-shared-library'
  14426. Generate code that doesn't assume ID-based shared libraries are
  14427. being used. This is the default.
  14428. '-mleaf-id-shared-library'
  14429. Generate code that supports shared libraries via the library ID
  14430. method, but assumes that this library or executable won't link
  14431. against any other ID shared libraries. That allows the compiler to
  14432. use faster code for jumps and calls.
  14433. '-mno-leaf-id-shared-library'
  14434. Do not assume that the code being compiled won't link against any
  14435. ID shared libraries. Slower code is generated for jump and call
  14436. insns.
  14437. '-mshared-library-id=n'
  14438. Specifies the identification number of the ID-based shared library
  14439. being compiled. Specifying a value of 0 generates more compact
  14440. code; specifying other values forces the allocation of that number
  14441. to the current library but is no more space- or time-efficient than
  14442. omitting this option.
  14443. '-msep-data'
  14444. Generate code that allows the data segment to be located in a
  14445. different area of memory from the text segment. This allows for
  14446. execute in place in an environment without virtual memory
  14447. management by eliminating relocations against the text section.
  14448. '-mno-sep-data'
  14449. Generate code that assumes that the data segment follows the text
  14450. segment. This is the default.
  14451. '-mlong-calls'
  14452. '-mno-long-calls'
  14453. Tells the compiler to perform function calls by first loading the
  14454. address of the function into a register and then performing a
  14455. subroutine call on this register. This switch is needed if the
  14456. target function lies outside of the 24-bit addressing range of the
  14457. offset-based version of subroutine call instruction.
  14458. This feature is not enabled by default. Specifying
  14459. '-mno-long-calls' restores the default behavior. Note these
  14460. switches have no effect on how the compiler generates code to
  14461. handle function calls via function pointers.
  14462. '-mfast-fp'
  14463. Link with the fast floating-point library. This library relaxes
  14464. some of the IEEE floating-point standard's rules for checking
  14465. inputs against Not-a-Number (NAN), in the interest of performance.
  14466. '-minline-plt'
  14467. Enable inlining of PLT entries in function calls to functions that
  14468. are not known to bind locally. It has no effect without '-mfdpic'.
  14469. '-mmulticore'
  14470. Build a standalone application for multicore Blackfin processors.
  14471. This option causes proper start files and link scripts supporting
  14472. multicore to be used, and defines the macro '__BFIN_MULTICORE'. It
  14473. can only be used with '-mcpu=bf561[-SIREVISION]'.
  14474. This option can be used with '-mcorea' or '-mcoreb', which selects
  14475. the one-application-per-core programming model. Without '-mcorea'
  14476. or '-mcoreb', the single-application/dual-core programming model is
  14477. used. In this model, the main function of Core B should be named
  14478. as 'coreb_main'.
  14479. If this option is not used, the single-core application programming
  14480. model is used.
  14481. '-mcorea'
  14482. Build a standalone application for Core A of BF561 when using the
  14483. one-application-per-core programming model. Proper start files and
  14484. link scripts are used to support Core A, and the macro
  14485. '__BFIN_COREA' is defined. This option can only be used in
  14486. conjunction with '-mmulticore'.
  14487. '-mcoreb'
  14488. Build a standalone application for Core B of BF561 when using the
  14489. one-application-per-core programming model. Proper start files and
  14490. link scripts are used to support Core B, and the macro
  14491. '__BFIN_COREB' is defined. When this option is used, 'coreb_main'
  14492. should be used instead of 'main'. This option can only be used in
  14493. conjunction with '-mmulticore'.
  14494. '-msdram'
  14495. Build a standalone application for SDRAM. Proper start files and
  14496. link scripts are used to put the application into SDRAM, and the
  14497. macro '__BFIN_SDRAM' is defined. The loader should initialize
  14498. SDRAM before loading the application.
  14499. '-micplb'
  14500. Assume that ICPLBs are enabled at run time. This has an effect on
  14501. certain anomaly workarounds. For Linux targets, the default is to
  14502. assume ICPLBs are enabled; for standalone applications the default
  14503. is off.
  14504. 
  14505. File: gcc.info, Node: C6X Options, Next: CRIS Options, Prev: Blackfin Options, Up: Submodel Options
  14506. 3.18.8 C6X Options
  14507. ------------------
  14508. '-march=NAME'
  14509. This specifies the name of the target architecture. GCC uses this
  14510. name to determine what kind of instructions it can emit when
  14511. generating assembly code. Permissible names are: 'c62x', 'c64x',
  14512. 'c64x+', 'c67x', 'c67x+', 'c674x'.
  14513. '-mbig-endian'
  14514. Generate code for a big-endian target.
  14515. '-mlittle-endian'
  14516. Generate code for a little-endian target. This is the default.
  14517. '-msim'
  14518. Choose startup files and linker script suitable for the simulator.
  14519. '-msdata=default'
  14520. Put small global and static data in the '.neardata' section, which
  14521. is pointed to by register 'B14'. Put small uninitialized global
  14522. and static data in the '.bss' section, which is adjacent to the
  14523. '.neardata' section. Put small read-only data into the '.rodata'
  14524. section. The corresponding sections used for large pieces of data
  14525. are '.fardata', '.far' and '.const'.
  14526. '-msdata=all'
  14527. Put all data, not just small objects, into the sections reserved
  14528. for small data, and use addressing relative to the 'B14' register
  14529. to access them.
  14530. '-msdata=none'
  14531. Make no use of the sections reserved for small data, and use
  14532. absolute addresses to access all data. Put all initialized global
  14533. and static data in the '.fardata' section, and all uninitialized
  14534. data in the '.far' section. Put all constant data into the
  14535. '.const' section.
  14536. 
  14537. File: gcc.info, Node: CRIS Options, Next: CR16 Options, Prev: C6X Options, Up: Submodel Options
  14538. 3.18.9 CRIS Options
  14539. -------------------
  14540. These options are defined specifically for the CRIS ports.
  14541. '-march=ARCHITECTURE-TYPE'
  14542. '-mcpu=ARCHITECTURE-TYPE'
  14543. Generate code for the specified architecture. The choices for
  14544. ARCHITECTURE-TYPE are 'v3', 'v8' and 'v10' for respectively
  14545. ETRAX 4, ETRAX 100, and ETRAX 100 LX. Default is 'v0' except for
  14546. cris-axis-linux-gnu, where the default is 'v10'.
  14547. '-mtune=ARCHITECTURE-TYPE'
  14548. Tune to ARCHITECTURE-TYPE everything applicable about the generated
  14549. code, except for the ABI and the set of available instructions.
  14550. The choices for ARCHITECTURE-TYPE are the same as for
  14551. '-march=ARCHITECTURE-TYPE'.
  14552. '-mmax-stack-frame=N'
  14553. Warn when the stack frame of a function exceeds N bytes.
  14554. '-metrax4'
  14555. '-metrax100'
  14556. The options '-metrax4' and '-metrax100' are synonyms for
  14557. '-march=v3' and '-march=v8' respectively.
  14558. '-mmul-bug-workaround'
  14559. '-mno-mul-bug-workaround'
  14560. Work around a bug in the 'muls' and 'mulu' instructions for CPU
  14561. models where it applies. This option is active by default.
  14562. '-mpdebug'
  14563. Enable CRIS-specific verbose debug-related information in the
  14564. assembly code. This option also has the effect of turning off the
  14565. '#NO_APP' formatted-code indicator to the assembler at the
  14566. beginning of the assembly file.
  14567. '-mcc-init'
  14568. Do not use condition-code results from previous instruction; always
  14569. emit compare and test instructions before use of condition codes.
  14570. '-mno-side-effects'
  14571. Do not emit instructions with side effects in addressing modes
  14572. other than post-increment.
  14573. '-mstack-align'
  14574. '-mno-stack-align'
  14575. '-mdata-align'
  14576. '-mno-data-align'
  14577. '-mconst-align'
  14578. '-mno-const-align'
  14579. These options ('no-' options) arrange (eliminate arrangements) for
  14580. the stack frame, individual data and constants to be aligned for
  14581. the maximum single data access size for the chosen CPU model. The
  14582. default is to arrange for 32-bit alignment. ABI details such as
  14583. structure layout are not affected by these options.
  14584. '-m32-bit'
  14585. '-m16-bit'
  14586. '-m8-bit'
  14587. Similar to the stack- data- and const-align options above, these
  14588. options arrange for stack frame, writable data and constants to all
  14589. be 32-bit, 16-bit or 8-bit aligned. The default is 32-bit
  14590. alignment.
  14591. '-mno-prologue-epilogue'
  14592. '-mprologue-epilogue'
  14593. With '-mno-prologue-epilogue', the normal function prologue and
  14594. epilogue which set up the stack frame are omitted and no return
  14595. instructions or return sequences are generated in the code. Use
  14596. this option only together with visual inspection of the compiled
  14597. code: no warnings or errors are generated when call-saved registers
  14598. must be saved, or storage for local variables needs to be
  14599. allocated.
  14600. '-mno-gotplt'
  14601. '-mgotplt'
  14602. With '-fpic' and '-fPIC', don't generate (do generate) instruction
  14603. sequences that load addresses for functions from the PLT part of
  14604. the GOT rather than (traditional on other architectures) calls to
  14605. the PLT. The default is '-mgotplt'.
  14606. '-melf'
  14607. Legacy no-op option only recognized with the cris-axis-elf and
  14608. cris-axis-linux-gnu targets.
  14609. '-mlinux'
  14610. Legacy no-op option only recognized with the cris-axis-linux-gnu
  14611. target.
  14612. '-sim'
  14613. This option, recognized for the cris-axis-elf, arranges to link
  14614. with input-output functions from a simulator library. Code,
  14615. initialized data and zero-initialized data are allocated
  14616. consecutively.
  14617. '-sim2'
  14618. Like '-sim', but pass linker options to locate initialized data at
  14619. 0x40000000 and zero-initialized data at 0x80000000.
  14620. 
  14621. File: gcc.info, Node: CR16 Options, Next: C-SKY Options, Prev: CRIS Options, Up: Submodel Options
  14622. 3.18.10 CR16 Options
  14623. --------------------
  14624. These options are defined specifically for the CR16 ports.
  14625. '-mmac'
  14626. Enable the use of multiply-accumulate instructions. Disabled by
  14627. default.
  14628. '-mcr16cplus'
  14629. '-mcr16c'
  14630. Generate code for CR16C or CR16C+ architecture. CR16C+
  14631. architecture is default.
  14632. '-msim'
  14633. Links the library libsim.a which is in compatible with simulator.
  14634. Applicable to ELF compiler only.
  14635. '-mint32'
  14636. Choose integer type as 32-bit wide.
  14637. '-mbit-ops'
  14638. Generates 'sbit'/'cbit' instructions for bit manipulations.
  14639. '-mdata-model=MODEL'
  14640. Choose a data model. The choices for MODEL are 'near', 'far' or
  14641. 'medium'. 'medium' is default. However, 'far' is not valid with
  14642. '-mcr16c', as the CR16C architecture does not support the far data
  14643. model.
  14644. 
  14645. File: gcc.info, Node: C-SKY Options, Next: Darwin Options, Prev: CR16 Options, Up: Submodel Options
  14646. 3.18.11 C-SKY Options
  14647. ---------------------
  14648. GCC supports these options when compiling for C-SKY V2 processors.
  14649. '-march=ARCH'
  14650. Specify the C-SKY target architecture. Valid values for ARCH are:
  14651. 'ck801', 'ck802', 'ck803', 'ck807', and 'ck810'. The default is
  14652. 'ck810'.
  14653. '-mcpu=CPU'
  14654. Specify the C-SKY target processor. Valid values for CPU are:
  14655. 'ck801', 'ck801t', 'ck802', 'ck802t', 'ck802j', 'ck803', 'ck803h',
  14656. 'ck803t', 'ck803ht', 'ck803f', 'ck803fh', 'ck803e', 'ck803eh',
  14657. 'ck803et', 'ck803eht', 'ck803ef', 'ck803efh', 'ck803ft',
  14658. 'ck803eft', 'ck803efht', 'ck803r1', 'ck803hr1', 'ck803tr1',
  14659. 'ck803htr1', 'ck803fr1', 'ck803fhr1', 'ck803er1', 'ck803ehr1',
  14660. 'ck803etr1', 'ck803ehtr1', 'ck803efr1', 'ck803efhr1', 'ck803ftr1',
  14661. 'ck803eftr1', 'ck803efhtr1', 'ck803s', 'ck803st', 'ck803se',
  14662. 'ck803sf', 'ck803sef', 'ck803seft', 'ck807e', 'ck807ef', 'ck807',
  14663. 'ck807f', 'ck810e', 'ck810et', 'ck810ef', 'ck810eft', 'ck810',
  14664. 'ck810v', 'ck810f', 'ck810t', 'ck810fv', 'ck810tv', 'ck810ft', and
  14665. 'ck810ftv'.
  14666. '-mbig-endian'
  14667. '-EB'
  14668. '-mlittle-endian'
  14669. '-EL'
  14670. Select big- or little-endian code. The default is little-endian.
  14671. '-mhard-float'
  14672. '-msoft-float'
  14673. Select hardware or software floating-point implementations. The
  14674. default is soft float.
  14675. '-mdouble-float'
  14676. '-mno-double-float'
  14677. When '-mhard-float' is in effect, enable generation of
  14678. double-precision float instructions. This is the default except
  14679. when compiling for CK803.
  14680. '-mfdivdu'
  14681. '-mno-fdivdu'
  14682. When '-mhard-float' is in effect, enable generation of 'frecipd',
  14683. 'fsqrtd', and 'fdivd' instructions. This is the default except
  14684. when compiling for CK803.
  14685. '-mfpu=FPU'
  14686. Select the floating-point processor. This option can only be used
  14687. with '-mhard-float'. Values for FPU are 'fpv2_sf' (equivalent to
  14688. '-mno-double-float -mno-fdivdu'), 'fpv2' ('-mdouble-float
  14689. -mno-divdu'), and 'fpv2_divd' ('-mdouble-float -mdivdu').
  14690. '-melrw'
  14691. '-mno-elrw'
  14692. Enable the extended 'lrw' instruction. This option defaults to on
  14693. for CK801 and off otherwise.
  14694. '-mistack'
  14695. '-mno-istack'
  14696. Enable interrupt stack instructions; the default is off.
  14697. The '-mistack' option is required to handle the 'interrupt' and
  14698. 'isr' function attributes (*note C-SKY Function Attributes::).
  14699. '-mmp'
  14700. Enable multiprocessor instructions; the default is off.
  14701. '-mcp'
  14702. Enable coprocessor instructions; the default is off.
  14703. '-mcache'
  14704. Enable coprocessor instructions; the default is off.
  14705. '-msecurity'
  14706. Enable C-SKY security instructions; the default is off.
  14707. '-mtrust'
  14708. Enable C-SKY trust instructions; the default is off.
  14709. '-mdsp'
  14710. '-medsp'
  14711. '-mvdsp'
  14712. Enable C-SKY DSP, Enhanced DSP, or Vector DSP instructions,
  14713. respectively. All of these options default to off.
  14714. '-mdiv'
  14715. '-mno-div'
  14716. Generate divide instructions. Default is off.
  14717. '-msmart'
  14718. '-mno-smart'
  14719. Generate code for Smart Mode, using only registers numbered 0-7 to
  14720. allow use of 16-bit instructions. This option is ignored for CK801
  14721. where this is the required behavior, and it defaults to on for
  14722. CK802. For other targets, the default is off.
  14723. '-mhigh-registers'
  14724. '-mno-high-registers'
  14725. Generate code using the high registers numbered 16-31. This option
  14726. is not supported on CK801, CK802, or CK803, and is enabled by
  14727. default for other processors.
  14728. '-manchor'
  14729. '-mno-anchor'
  14730. Generate code using global anchor symbol addresses.
  14731. '-mpushpop'
  14732. '-mno-pushpop'
  14733. Generate code using 'push' and 'pop' instructions. This option
  14734. defaults to on.
  14735. '-mmultiple-stld'
  14736. '-mstm'
  14737. '-mno-multiple-stld'
  14738. '-mno-stm'
  14739. Generate code using 'stm' and 'ldm' instructions. This option
  14740. isn't supported on CK801 but is enabled by default on other
  14741. processors.
  14742. '-mconstpool'
  14743. '-mno-constpool'
  14744. Create constant pools in the compiler instead of deferring it to
  14745. the assembler. This option is the default and required for correct
  14746. code generation on CK801 and CK802, and is optional on other
  14747. processors.
  14748. '-mstack-size'
  14749. '-mno-stack-size'
  14750. Emit '.stack_size' directives for each function in the assembly
  14751. output. This option defaults to off.
  14752. '-mccrt'
  14753. '-mno-ccrt'
  14754. Generate code for the C-SKY compiler runtime instead of libgcc.
  14755. This option defaults to off.
  14756. '-mbranch-cost=N'
  14757. Set the branch costs to roughly 'n' instructions. The default is
  14758. 1.
  14759. '-msched-prolog'
  14760. '-mno-sched-prolog'
  14761. Permit scheduling of function prologue and epilogue sequences.
  14762. Using this option can result in code that is not compliant with the
  14763. C-SKY V2 ABI prologue requirements and that cannot be debugged or
  14764. backtraced. It is disabled by default.
  14765. 
  14766. File: gcc.info, Node: Darwin Options, Next: DEC Alpha Options, Prev: C-SKY Options, Up: Submodel Options
  14767. 3.18.12 Darwin Options
  14768. ----------------------
  14769. These options are defined for all architectures running the Darwin
  14770. operating system.
  14771. FSF GCC on Darwin does not create "fat" object files; it creates an
  14772. object file for the single architecture that GCC was built to target.
  14773. Apple's GCC on Darwin does create "fat" files if multiple '-arch'
  14774. options are used; it does so by running the compiler or linker multiple
  14775. times and joining the results together with 'lipo'.
  14776. The subtype of the file created (like 'ppc7400' or 'ppc970' or 'i686')
  14777. is determined by the flags that specify the ISA that GCC is targeting,
  14778. like '-mcpu' or '-march'. The '-force_cpusubtype_ALL' option can be
  14779. used to override this.
  14780. The Darwin tools vary in their behavior when presented with an ISA
  14781. mismatch. The assembler, 'as', only permits instructions to be used
  14782. that are valid for the subtype of the file it is generating, so you
  14783. cannot put 64-bit instructions in a 'ppc750' object file. The linker
  14784. for shared libraries, '/usr/bin/libtool', fails and prints an error if
  14785. asked to create a shared library with a less restrictive subtype than
  14786. its input files (for instance, trying to put a 'ppc970' object file in a
  14787. 'ppc7400' library). The linker for executables, 'ld', quietly gives the
  14788. executable the most restrictive subtype of any of its input files.
  14789. '-FDIR'
  14790. Add the framework directory DIR to the head of the list of
  14791. directories to be searched for header files. These directories are
  14792. interleaved with those specified by '-I' options and are scanned in
  14793. a left-to-right order.
  14794. A framework directory is a directory with frameworks in it. A
  14795. framework is a directory with a 'Headers' and/or 'PrivateHeaders'
  14796. directory contained directly in it that ends in '.framework'. The
  14797. name of a framework is the name of this directory excluding the
  14798. '.framework'. Headers associated with the framework are found in
  14799. one of those two directories, with 'Headers' being searched first.
  14800. A subframework is a framework directory that is in a framework's
  14801. 'Frameworks' directory. Includes of subframework headers can only
  14802. appear in a header of a framework that contains the subframework,
  14803. or in a sibling subframework header. Two subframeworks are
  14804. siblings if they occur in the same framework. A subframework
  14805. should not have the same name as a framework; a warning is issued
  14806. if this is violated. Currently a subframework cannot have
  14807. subframeworks; in the future, the mechanism may be extended to
  14808. support this. The standard frameworks can be found in
  14809. '/System/Library/Frameworks' and '/Library/Frameworks'. An example
  14810. include looks like '#include <Framework/header.h>', where
  14811. 'Framework' denotes the name of the framework and 'header.h' is
  14812. found in the 'PrivateHeaders' or 'Headers' directory.
  14813. '-iframeworkDIR'
  14814. Like '-F' except the directory is a treated as a system directory.
  14815. The main difference between this '-iframework' and '-F' is that
  14816. with '-iframework' the compiler does not warn about constructs
  14817. contained within header files found via DIR. This option is valid
  14818. only for the C family of languages.
  14819. '-gused'
  14820. Emit debugging information for symbols that are used. For stabs
  14821. debugging format, this enables '-feliminate-unused-debug-symbols'.
  14822. This is by default ON.
  14823. '-gfull'
  14824. Emit debugging information for all symbols and types.
  14825. '-mmacosx-version-min=VERSION'
  14826. The earliest version of MacOS X that this executable will run on is
  14827. VERSION. Typical values of VERSION include '10.1', '10.2', and
  14828. '10.3.9'.
  14829. If the compiler was built to use the system's headers by default,
  14830. then the default for this option is the system version on which the
  14831. compiler is running, otherwise the default is to make choices that
  14832. are compatible with as many systems and code bases as possible.
  14833. '-mkernel'
  14834. Enable kernel development mode. The '-mkernel' option sets
  14835. '-static', '-fno-common', '-fno-use-cxa-atexit', '-fno-exceptions',
  14836. '-fno-non-call-exceptions', '-fapple-kext', '-fno-weak' and
  14837. '-fno-rtti' where applicable. This mode also sets '-mno-altivec',
  14838. '-msoft-float', '-fno-builtin' and '-mlong-branch' for PowerPC
  14839. targets.
  14840. '-mone-byte-bool'
  14841. Override the defaults for 'bool' so that 'sizeof(bool)==1'. By
  14842. default 'sizeof(bool)' is '4' when compiling for Darwin/PowerPC and
  14843. '1' when compiling for Darwin/x86, so this option has no effect on
  14844. x86.
  14845. *Warning:* The '-mone-byte-bool' switch causes GCC to generate code
  14846. that is not binary compatible with code generated without that
  14847. switch. Using this switch may require recompiling all other
  14848. modules in a program, including system libraries. Use this switch
  14849. to conform to a non-default data model.
  14850. '-mfix-and-continue'
  14851. '-ffix-and-continue'
  14852. '-findirect-data'
  14853. Generate code suitable for fast turnaround development, such as to
  14854. allow GDB to dynamically load '.o' files into already-running
  14855. programs. '-findirect-data' and '-ffix-and-continue' are provided
  14856. for backwards compatibility.
  14857. '-all_load'
  14858. Loads all members of static archive libraries. See man ld(1) for
  14859. more information.
  14860. '-arch_errors_fatal'
  14861. Cause the errors having to do with files that have the wrong
  14862. architecture to be fatal.
  14863. '-bind_at_load'
  14864. Causes the output file to be marked such that the dynamic linker
  14865. will bind all undefined references when the file is loaded or
  14866. launched.
  14867. '-bundle'
  14868. Produce a Mach-o bundle format file. See man ld(1) for more
  14869. information.
  14870. '-bundle_loader EXECUTABLE'
  14871. This option specifies the EXECUTABLE that will load the build
  14872. output file being linked. See man ld(1) for more information.
  14873. '-dynamiclib'
  14874. When passed this option, GCC produces a dynamic library instead of
  14875. an executable when linking, using the Darwin 'libtool' command.
  14876. '-force_cpusubtype_ALL'
  14877. This causes GCC's output file to have the 'ALL' subtype, instead of
  14878. one controlled by the '-mcpu' or '-march' option.
  14879. '-allowable_client CLIENT_NAME'
  14880. '-client_name'
  14881. '-compatibility_version'
  14882. '-current_version'
  14883. '-dead_strip'
  14884. '-dependency-file'
  14885. '-dylib_file'
  14886. '-dylinker_install_name'
  14887. '-dynamic'
  14888. '-exported_symbols_list'
  14889. '-filelist'
  14890. '-flat_namespace'
  14891. '-force_flat_namespace'
  14892. '-headerpad_max_install_names'
  14893. '-image_base'
  14894. '-init'
  14895. '-install_name'
  14896. '-keep_private_externs'
  14897. '-multi_module'
  14898. '-multiply_defined'
  14899. '-multiply_defined_unused'
  14900. '-noall_load'
  14901. '-no_dead_strip_inits_and_terms'
  14902. '-nofixprebinding'
  14903. '-nomultidefs'
  14904. '-noprebind'
  14905. '-noseglinkedit'
  14906. '-pagezero_size'
  14907. '-prebind'
  14908. '-prebind_all_twolevel_modules'
  14909. '-private_bundle'
  14910. '-read_only_relocs'
  14911. '-sectalign'
  14912. '-sectobjectsymbols'
  14913. '-whyload'
  14914. '-seg1addr'
  14915. '-sectcreate'
  14916. '-sectobjectsymbols'
  14917. '-sectorder'
  14918. '-segaddr'
  14919. '-segs_read_only_addr'
  14920. '-segs_read_write_addr'
  14921. '-seg_addr_table'
  14922. '-seg_addr_table_filename'
  14923. '-seglinkedit'
  14924. '-segprot'
  14925. '-segs_read_only_addr'
  14926. '-segs_read_write_addr'
  14927. '-single_module'
  14928. '-static'
  14929. '-sub_library'
  14930. '-sub_umbrella'
  14931. '-twolevel_namespace'
  14932. '-umbrella'
  14933. '-undefined'
  14934. '-unexported_symbols_list'
  14935. '-weak_reference_mismatches'
  14936. '-whatsloaded'
  14937. These options are passed to the Darwin linker. The Darwin linker
  14938. man page describes them in detail.
  14939. 
  14940. File: gcc.info, Node: DEC Alpha Options, Next: FR30 Options, Prev: Darwin Options, Up: Submodel Options
  14941. 3.18.13 DEC Alpha Options
  14942. -------------------------
  14943. These '-m' options are defined for the DEC Alpha implementations:
  14944. '-mno-soft-float'
  14945. '-msoft-float'
  14946. Use (do not use) the hardware floating-point instructions for
  14947. floating-point operations. When '-msoft-float' is specified,
  14948. functions in 'libgcc.a' are used to perform floating-point
  14949. operations. Unless they are replaced by routines that emulate the
  14950. floating-point operations, or compiled in such a way as to call
  14951. such emulations routines, these routines issue floating-point
  14952. operations. If you are compiling for an Alpha without
  14953. floating-point operations, you must ensure that the library is
  14954. built so as not to call them.
  14955. Note that Alpha implementations without floating-point operations
  14956. are required to have floating-point registers.
  14957. '-mfp-reg'
  14958. '-mno-fp-regs'
  14959. Generate code that uses (does not use) the floating-point register
  14960. set. '-mno-fp-regs' implies '-msoft-float'. If the floating-point
  14961. register set is not used, floating-point operands are passed in
  14962. integer registers as if they were integers and floating-point
  14963. results are passed in '$0' instead of '$f0'. This is a
  14964. non-standard calling sequence, so any function with a
  14965. floating-point argument or return value called by code compiled
  14966. with '-mno-fp-regs' must also be compiled with that option.
  14967. A typical use of this option is building a kernel that does not
  14968. use, and hence need not save and restore, any floating-point
  14969. registers.
  14970. '-mieee'
  14971. The Alpha architecture implements floating-point hardware optimized
  14972. for maximum performance. It is mostly compliant with the IEEE
  14973. floating-point standard. However, for full compliance, software
  14974. assistance is required. This option generates code fully
  14975. IEEE-compliant code _except_ that the INEXACT-FLAG is not
  14976. maintained (see below). If this option is turned on, the
  14977. preprocessor macro '_IEEE_FP' is defined during compilation. The
  14978. resulting code is less efficient but is able to correctly support
  14979. denormalized numbers and exceptional IEEE values such as
  14980. not-a-number and plus/minus infinity. Other Alpha compilers call
  14981. this option '-ieee_with_no_inexact'.
  14982. '-mieee-with-inexact'
  14983. This is like '-mieee' except the generated code also maintains the
  14984. IEEE INEXACT-FLAG. Turning on this option causes the generated
  14985. code to implement fully-compliant IEEE math. In addition to
  14986. '_IEEE_FP', '_IEEE_FP_EXACT' is defined as a preprocessor macro.
  14987. On some Alpha implementations the resulting code may execute
  14988. significantly slower than the code generated by default. Since
  14989. there is very little code that depends on the INEXACT-FLAG, you
  14990. should normally not specify this option. Other Alpha compilers
  14991. call this option '-ieee_with_inexact'.
  14992. '-mfp-trap-mode=TRAP-MODE'
  14993. This option controls what floating-point related traps are enabled.
  14994. Other Alpha compilers call this option '-fptm TRAP-MODE'. The trap
  14995. mode can be set to one of four values:
  14996. 'n'
  14997. This is the default (normal) setting. The only traps that are
  14998. enabled are the ones that cannot be disabled in software
  14999. (e.g., division by zero trap).
  15000. 'u'
  15001. In addition to the traps enabled by 'n', underflow traps are
  15002. enabled as well.
  15003. 'su'
  15004. Like 'u', but the instructions are marked to be safe for
  15005. software completion (see Alpha architecture manual for
  15006. details).
  15007. 'sui'
  15008. Like 'su', but inexact traps are enabled as well.
  15009. '-mfp-rounding-mode=ROUNDING-MODE'
  15010. Selects the IEEE rounding mode. Other Alpha compilers call this
  15011. option '-fprm ROUNDING-MODE'. The ROUNDING-MODE can be one of:
  15012. 'n'
  15013. Normal IEEE rounding mode. Floating-point numbers are rounded
  15014. towards the nearest machine number or towards the even machine
  15015. number in case of a tie.
  15016. 'm'
  15017. Round towards minus infinity.
  15018. 'c'
  15019. Chopped rounding mode. Floating-point numbers are rounded
  15020. towards zero.
  15021. 'd'
  15022. Dynamic rounding mode. A field in the floating-point control
  15023. register (FPCR, see Alpha architecture reference manual)
  15024. controls the rounding mode in effect. The C library
  15025. initializes this register for rounding towards plus infinity.
  15026. Thus, unless your program modifies the FPCR, 'd' corresponds
  15027. to round towards plus infinity.
  15028. '-mtrap-precision=TRAP-PRECISION'
  15029. In the Alpha architecture, floating-point traps are imprecise.
  15030. This means without software assistance it is impossible to recover
  15031. from a floating trap and program execution normally needs to be
  15032. terminated. GCC can generate code that can assist operating system
  15033. trap handlers in determining the exact location that caused a
  15034. floating-point trap. Depending on the requirements of an
  15035. application, different levels of precisions can be selected:
  15036. 'p'
  15037. Program precision. This option is the default and means a
  15038. trap handler can only identify which program caused a
  15039. floating-point exception.
  15040. 'f'
  15041. Function precision. The trap handler can determine the
  15042. function that caused a floating-point exception.
  15043. 'i'
  15044. Instruction precision. The trap handler can determine the
  15045. exact instruction that caused a floating-point exception.
  15046. Other Alpha compilers provide the equivalent options called
  15047. '-scope_safe' and '-resumption_safe'.
  15048. '-mieee-conformant'
  15049. This option marks the generated code as IEEE conformant. You must
  15050. not use this option unless you also specify '-mtrap-precision=i'
  15051. and either '-mfp-trap-mode=su' or '-mfp-trap-mode=sui'. Its only
  15052. effect is to emit the line '.eflag 48' in the function prologue of
  15053. the generated assembly file.
  15054. '-mbuild-constants'
  15055. Normally GCC examines a 32- or 64-bit integer constant to see if it
  15056. can construct it from smaller constants in two or three
  15057. instructions. If it cannot, it outputs the constant as a literal
  15058. and generates code to load it from the data segment at run time.
  15059. Use this option to require GCC to construct _all_ integer constants
  15060. using code, even if it takes more instructions (the maximum is
  15061. six).
  15062. You typically use this option to build a shared library dynamic
  15063. loader. Itself a shared library, it must relocate itself in memory
  15064. before it can find the variables and constants in its own data
  15065. segment.
  15066. '-mbwx'
  15067. '-mno-bwx'
  15068. '-mcix'
  15069. '-mno-cix'
  15070. '-mfix'
  15071. '-mno-fix'
  15072. '-mmax'
  15073. '-mno-max'
  15074. Indicate whether GCC should generate code to use the optional BWX,
  15075. CIX, FIX and MAX instruction sets. The default is to use the
  15076. instruction sets supported by the CPU type specified via '-mcpu='
  15077. option or that of the CPU on which GCC was built if none is
  15078. specified.
  15079. '-mfloat-vax'
  15080. '-mfloat-ieee'
  15081. Generate code that uses (does not use) VAX F and G floating-point
  15082. arithmetic instead of IEEE single and double precision.
  15083. '-mexplicit-relocs'
  15084. '-mno-explicit-relocs'
  15085. Older Alpha assemblers provided no way to generate symbol
  15086. relocations except via assembler macros. Use of these macros does
  15087. not allow optimal instruction scheduling. GNU binutils as of
  15088. version 2.12 supports a new syntax that allows the compiler to
  15089. explicitly mark which relocations should apply to which
  15090. instructions. This option is mostly useful for debugging, as GCC
  15091. detects the capabilities of the assembler when it is built and sets
  15092. the default accordingly.
  15093. '-msmall-data'
  15094. '-mlarge-data'
  15095. When '-mexplicit-relocs' is in effect, static data is accessed via
  15096. "gp-relative" relocations. When '-msmall-data' is used, objects 8
  15097. bytes long or smaller are placed in a "small data area" (the
  15098. '.sdata' and '.sbss' sections) and are accessed via 16-bit
  15099. relocations off of the '$gp' register. This limits the size of the
  15100. small data area to 64KB, but allows the variables to be directly
  15101. accessed via a single instruction.
  15102. The default is '-mlarge-data'. With this option the data area is
  15103. limited to just below 2GB. Programs that require more than 2GB of
  15104. data must use 'malloc' or 'mmap' to allocate the data in the heap
  15105. instead of in the program's data segment.
  15106. When generating code for shared libraries, '-fpic' implies
  15107. '-msmall-data' and '-fPIC' implies '-mlarge-data'.
  15108. '-msmall-text'
  15109. '-mlarge-text'
  15110. When '-msmall-text' is used, the compiler assumes that the code of
  15111. the entire program (or shared library) fits in 4MB, and is thus
  15112. reachable with a branch instruction. When '-msmall-data' is used,
  15113. the compiler can assume that all local symbols share the same '$gp'
  15114. value, and thus reduce the number of instructions required for a
  15115. function call from 4 to 1.
  15116. The default is '-mlarge-text'.
  15117. '-mcpu=CPU_TYPE'
  15118. Set the instruction set and instruction scheduling parameters for
  15119. machine type CPU_TYPE. You can specify either the 'EV' style name
  15120. or the corresponding chip number. GCC supports scheduling
  15121. parameters for the EV4, EV5 and EV6 family of processors and
  15122. chooses the default values for the instruction set from the
  15123. processor you specify. If you do not specify a processor type, GCC
  15124. defaults to the processor on which the compiler was built.
  15125. Supported values for CPU_TYPE are
  15126. 'ev4'
  15127. 'ev45'
  15128. '21064'
  15129. Schedules as an EV4 and has no instruction set extensions.
  15130. 'ev5'
  15131. '21164'
  15132. Schedules as an EV5 and has no instruction set extensions.
  15133. 'ev56'
  15134. '21164a'
  15135. Schedules as an EV5 and supports the BWX extension.
  15136. 'pca56'
  15137. '21164pc'
  15138. '21164PC'
  15139. Schedules as an EV5 and supports the BWX and MAX extensions.
  15140. 'ev6'
  15141. '21264'
  15142. Schedules as an EV6 and supports the BWX, FIX, and MAX
  15143. extensions.
  15144. 'ev67'
  15145. '21264a'
  15146. Schedules as an EV6 and supports the BWX, CIX, FIX, and MAX
  15147. extensions.
  15148. Native toolchains also support the value 'native', which selects
  15149. the best architecture option for the host processor.
  15150. '-mcpu=native' has no effect if GCC does not recognize the
  15151. processor.
  15152. '-mtune=CPU_TYPE'
  15153. Set only the instruction scheduling parameters for machine type
  15154. CPU_TYPE. The instruction set is not changed.
  15155. Native toolchains also support the value 'native', which selects
  15156. the best architecture option for the host processor.
  15157. '-mtune=native' has no effect if GCC does not recognize the
  15158. processor.
  15159. '-mmemory-latency=TIME'
  15160. Sets the latency the scheduler should assume for typical memory
  15161. references as seen by the application. This number is highly
  15162. dependent on the memory access patterns used by the application and
  15163. the size of the external cache on the machine.
  15164. Valid options for TIME are
  15165. 'NUMBER'
  15166. A decimal number representing clock cycles.
  15167. 'L1'
  15168. 'L2'
  15169. 'L3'
  15170. 'main'
  15171. The compiler contains estimates of the number of clock cycles
  15172. for "typical" EV4 & EV5 hardware for the Level 1, 2 & 3 caches
  15173. (also called Dcache, Scache, and Bcache), as well as to main
  15174. memory. Note that L3 is only valid for EV5.
  15175. 
  15176. File: gcc.info, Node: FR30 Options, Next: FT32 Options, Prev: DEC Alpha Options, Up: Submodel Options
  15177. 3.18.14 FR30 Options
  15178. --------------------
  15179. These options are defined specifically for the FR30 port.
  15180. '-msmall-model'
  15181. Use the small address space model. This can produce smaller code,
  15182. but it does assume that all symbolic values and addresses fit into
  15183. a 20-bit range.
  15184. '-mno-lsim'
  15185. Assume that runtime support has been provided and so there is no
  15186. need to include the simulator library ('libsim.a') on the linker
  15187. command line.
  15188. 
  15189. File: gcc.info, Node: FT32 Options, Next: FRV Options, Prev: FR30 Options, Up: Submodel Options
  15190. 3.18.15 FT32 Options
  15191. --------------------
  15192. These options are defined specifically for the FT32 port.
  15193. '-msim'
  15194. Specifies that the program will be run on the simulator. This
  15195. causes an alternate runtime startup and library to be linked. You
  15196. must not use this option when generating programs that will run on
  15197. real hardware; you must provide your own runtime library for
  15198. whatever I/O functions are needed.
  15199. '-mlra'
  15200. Enable Local Register Allocation. This is still experimental for
  15201. FT32, so by default the compiler uses standard reload.
  15202. '-mnodiv'
  15203. Do not use div and mod instructions.
  15204. '-mft32b'
  15205. Enable use of the extended instructions of the FT32B processor.
  15206. '-mcompress'
  15207. Compress all code using the Ft32B code compression scheme.
  15208. '-mnopm'
  15209. Do not generate code that reads program memory.
  15210. 
  15211. File: gcc.info, Node: FRV Options, Next: GNU/Linux Options, Prev: FT32 Options, Up: Submodel Options
  15212. 3.18.16 FRV Options
  15213. -------------------
  15214. '-mgpr-32'
  15215. Only use the first 32 general-purpose registers.
  15216. '-mgpr-64'
  15217. Use all 64 general-purpose registers.
  15218. '-mfpr-32'
  15219. Use only the first 32 floating-point registers.
  15220. '-mfpr-64'
  15221. Use all 64 floating-point registers.
  15222. '-mhard-float'
  15223. Use hardware instructions for floating-point operations.
  15224. '-msoft-float'
  15225. Use library routines for floating-point operations.
  15226. '-malloc-cc'
  15227. Dynamically allocate condition code registers.
  15228. '-mfixed-cc'
  15229. Do not try to dynamically allocate condition code registers, only
  15230. use 'icc0' and 'fcc0'.
  15231. '-mdword'
  15232. Change ABI to use double word insns.
  15233. '-mno-dword'
  15234. Do not use double word instructions.
  15235. '-mdouble'
  15236. Use floating-point double instructions.
  15237. '-mno-double'
  15238. Do not use floating-point double instructions.
  15239. '-mmedia'
  15240. Use media instructions.
  15241. '-mno-media'
  15242. Do not use media instructions.
  15243. '-mmuladd'
  15244. Use multiply and add/subtract instructions.
  15245. '-mno-muladd'
  15246. Do not use multiply and add/subtract instructions.
  15247. '-mfdpic'
  15248. Select the FDPIC ABI, which uses function descriptors to represent
  15249. pointers to functions. Without any PIC/PIE-related options, it
  15250. implies '-fPIE'. With '-fpic' or '-fpie', it assumes GOT entries
  15251. and small data are within a 12-bit range from the GOT base address;
  15252. with '-fPIC' or '-fPIE', GOT offsets are computed with 32 bits.
  15253. With a 'bfin-elf' target, this option implies '-msim'.
  15254. '-minline-plt'
  15255. Enable inlining of PLT entries in function calls to functions that
  15256. are not known to bind locally. It has no effect without '-mfdpic'.
  15257. It's enabled by default if optimizing for speed and compiling for
  15258. shared libraries (i.e., '-fPIC' or '-fpic'), or when an
  15259. optimization option such as '-O3' or above is present in the
  15260. command line.
  15261. '-mTLS'
  15262. Assume a large TLS segment when generating thread-local code.
  15263. '-mtls'
  15264. Do not assume a large TLS segment when generating thread-local
  15265. code.
  15266. '-mgprel-ro'
  15267. Enable the use of 'GPREL' relocations in the FDPIC ABI for data
  15268. that is known to be in read-only sections. It's enabled by
  15269. default, except for '-fpic' or '-fpie': even though it may help
  15270. make the global offset table smaller, it trades 1 instruction for
  15271. 4. With '-fPIC' or '-fPIE', it trades 3 instructions for 4, one of
  15272. which may be shared by multiple symbols, and it avoids the need for
  15273. a GOT entry for the referenced symbol, so it's more likely to be a
  15274. win. If it is not, '-mno-gprel-ro' can be used to disable it.
  15275. '-multilib-library-pic'
  15276. Link with the (library, not FD) pic libraries. It's implied by
  15277. '-mlibrary-pic', as well as by '-fPIC' and '-fpic' without
  15278. '-mfdpic'. You should never have to use it explicitly.
  15279. '-mlinked-fp'
  15280. Follow the EABI requirement of always creating a frame pointer
  15281. whenever a stack frame is allocated. This option is enabled by
  15282. default and can be disabled with '-mno-linked-fp'.
  15283. '-mlong-calls'
  15284. Use indirect addressing to call functions outside the current
  15285. compilation unit. This allows the functions to be placed anywhere
  15286. within the 32-bit address space.
  15287. '-malign-labels'
  15288. Try to align labels to an 8-byte boundary by inserting NOPs into
  15289. the previous packet. This option only has an effect when VLIW
  15290. packing is enabled. It doesn't create new packets; it merely adds
  15291. NOPs to existing ones.
  15292. '-mlibrary-pic'
  15293. Generate position-independent EABI code.
  15294. '-macc-4'
  15295. Use only the first four media accumulator registers.
  15296. '-macc-8'
  15297. Use all eight media accumulator registers.
  15298. '-mpack'
  15299. Pack VLIW instructions.
  15300. '-mno-pack'
  15301. Do not pack VLIW instructions.
  15302. '-mno-eflags'
  15303. Do not mark ABI switches in e_flags.
  15304. '-mcond-move'
  15305. Enable the use of conditional-move instructions (default).
  15306. This switch is mainly for debugging the compiler and will likely be
  15307. removed in a future version.
  15308. '-mno-cond-move'
  15309. Disable the use of conditional-move instructions.
  15310. This switch is mainly for debugging the compiler and will likely be
  15311. removed in a future version.
  15312. '-mscc'
  15313. Enable the use of conditional set instructions (default).
  15314. This switch is mainly for debugging the compiler and will likely be
  15315. removed in a future version.
  15316. '-mno-scc'
  15317. Disable the use of conditional set instructions.
  15318. This switch is mainly for debugging the compiler and will likely be
  15319. removed in a future version.
  15320. '-mcond-exec'
  15321. Enable the use of conditional execution (default).
  15322. This switch is mainly for debugging the compiler and will likely be
  15323. removed in a future version.
  15324. '-mno-cond-exec'
  15325. Disable the use of conditional execution.
  15326. This switch is mainly for debugging the compiler and will likely be
  15327. removed in a future version.
  15328. '-mvliw-branch'
  15329. Run a pass to pack branches into VLIW instructions (default).
  15330. This switch is mainly for debugging the compiler and will likely be
  15331. removed in a future version.
  15332. '-mno-vliw-branch'
  15333. Do not run a pass to pack branches into VLIW instructions.
  15334. This switch is mainly for debugging the compiler and will likely be
  15335. removed in a future version.
  15336. '-mmulti-cond-exec'
  15337. Enable optimization of '&&' and '||' in conditional execution
  15338. (default).
  15339. This switch is mainly for debugging the compiler and will likely be
  15340. removed in a future version.
  15341. '-mno-multi-cond-exec'
  15342. Disable optimization of '&&' and '||' in conditional execution.
  15343. This switch is mainly for debugging the compiler and will likely be
  15344. removed in a future version.
  15345. '-mnested-cond-exec'
  15346. Enable nested conditional execution optimizations (default).
  15347. This switch is mainly for debugging the compiler and will likely be
  15348. removed in a future version.
  15349. '-mno-nested-cond-exec'
  15350. Disable nested conditional execution optimizations.
  15351. This switch is mainly for debugging the compiler and will likely be
  15352. removed in a future version.
  15353. '-moptimize-membar'
  15354. This switch removes redundant 'membar' instructions from the
  15355. compiler-generated code. It is enabled by default.
  15356. '-mno-optimize-membar'
  15357. This switch disables the automatic removal of redundant 'membar'
  15358. instructions from the generated code.
  15359. '-mtomcat-stats'
  15360. Cause gas to print out tomcat statistics.
  15361. '-mcpu=CPU'
  15362. Select the processor type for which to generate code. Possible
  15363. values are 'frv', 'fr550', 'tomcat', 'fr500', 'fr450', 'fr405',
  15364. 'fr400', 'fr300' and 'simple'.
  15365. 
  15366. File: gcc.info, Node: GNU/Linux Options, Next: H8/300 Options, Prev: FRV Options, Up: Submodel Options
  15367. 3.18.17 GNU/Linux Options
  15368. -------------------------
  15369. These '-m' options are defined for GNU/Linux targets:
  15370. '-mglibc'
  15371. Use the GNU C library. This is the default except on
  15372. '*-*-linux-*uclibc*', '*-*-linux-*musl*' and '*-*-linux-*android*'
  15373. targets.
  15374. '-muclibc'
  15375. Use uClibc C library. This is the default on '*-*-linux-*uclibc*'
  15376. targets.
  15377. '-mmusl'
  15378. Use the musl C library. This is the default on '*-*-linux-*musl*'
  15379. targets.
  15380. '-mbionic'
  15381. Use Bionic C library. This is the default on '*-*-linux-*android*'
  15382. targets.
  15383. '-mandroid'
  15384. Compile code compatible with Android platform. This is the default
  15385. on '*-*-linux-*android*' targets.
  15386. When compiling, this option enables '-mbionic', '-fPIC',
  15387. '-fno-exceptions' and '-fno-rtti' by default. When linking, this
  15388. option makes the GCC driver pass Android-specific options to the
  15389. linker. Finally, this option causes the preprocessor macro
  15390. '__ANDROID__' to be defined.
  15391. '-tno-android-cc'
  15392. Disable compilation effects of '-mandroid', i.e., do not enable
  15393. '-mbionic', '-fPIC', '-fno-exceptions' and '-fno-rtti' by default.
  15394. '-tno-android-ld'
  15395. Disable linking effects of '-mandroid', i.e., pass standard Linux
  15396. linking options to the linker.
  15397. 
  15398. File: gcc.info, Node: H8/300 Options, Next: HPPA Options, Prev: GNU/Linux Options, Up: Submodel Options
  15399. 3.18.18 H8/300 Options
  15400. ----------------------
  15401. These '-m' options are defined for the H8/300 implementations:
  15402. '-mrelax'
  15403. Shorten some address references at link time, when possible; uses
  15404. the linker option '-relax'. *Note 'ld' and the H8/300: (ld)H8/300,
  15405. for a fuller description.
  15406. '-mh'
  15407. Generate code for the H8/300H.
  15408. '-ms'
  15409. Generate code for the H8S.
  15410. '-mn'
  15411. Generate code for the H8S and H8/300H in the normal mode. This
  15412. switch must be used either with '-mh' or '-ms'.
  15413. '-ms2600'
  15414. Generate code for the H8S/2600. This switch must be used with
  15415. '-ms'.
  15416. '-mexr'
  15417. Extended registers are stored on stack before execution of function
  15418. with monitor attribute. Default option is '-mexr'. This option is
  15419. valid only for H8S targets.
  15420. '-mno-exr'
  15421. Extended registers are not stored on stack before execution of
  15422. function with monitor attribute. Default option is '-mno-exr'.
  15423. This option is valid only for H8S targets.
  15424. '-mint32'
  15425. Make 'int' data 32 bits by default.
  15426. '-malign-300'
  15427. On the H8/300H and H8S, use the same alignment rules as for the
  15428. H8/300. The default for the H8/300H and H8S is to align longs and
  15429. floats on 4-byte boundaries. '-malign-300' causes them to be
  15430. aligned on 2-byte boundaries. This option has no effect on the
  15431. H8/300.
  15432. 
  15433. File: gcc.info, Node: HPPA Options, Next: IA-64 Options, Prev: H8/300 Options, Up: Submodel Options
  15434. 3.18.19 HPPA Options
  15435. --------------------
  15436. These '-m' options are defined for the HPPA family of computers:
  15437. '-march=ARCHITECTURE-TYPE'
  15438. Generate code for the specified architecture. The choices for
  15439. ARCHITECTURE-TYPE are '1.0' for PA 1.0, '1.1' for PA 1.1, and '2.0'
  15440. for PA 2.0 processors. Refer to '/usr/lib/sched.models' on an
  15441. HP-UX system to determine the proper architecture option for your
  15442. machine. Code compiled for lower numbered architectures runs on
  15443. higher numbered architectures, but not the other way around.
  15444. '-mpa-risc-1-0'
  15445. '-mpa-risc-1-1'
  15446. '-mpa-risc-2-0'
  15447. Synonyms for '-march=1.0', '-march=1.1', and '-march=2.0'
  15448. respectively.
  15449. '-mcaller-copies'
  15450. The caller copies function arguments passed by hidden reference.
  15451. This option should be used with care as it is not compatible with
  15452. the default 32-bit runtime. However, only aggregates larger than
  15453. eight bytes are passed by hidden reference and the option provides
  15454. better compatibility with OpenMP.
  15455. '-mjump-in-delay'
  15456. This option is ignored and provided for compatibility purposes
  15457. only.
  15458. '-mdisable-fpregs'
  15459. Prevent floating-point registers from being used in any manner.
  15460. This is necessary for compiling kernels that perform lazy context
  15461. switching of floating-point registers. If you use this option and
  15462. attempt to perform floating-point operations, the compiler aborts.
  15463. '-mdisable-indexing'
  15464. Prevent the compiler from using indexing address modes. This
  15465. avoids some rather obscure problems when compiling MIG generated
  15466. code under MACH.
  15467. '-mno-space-regs'
  15468. Generate code that assumes the target has no space registers. This
  15469. allows GCC to generate faster indirect calls and use unscaled index
  15470. address modes.
  15471. Such code is suitable for level 0 PA systems and kernels.
  15472. '-mfast-indirect-calls'
  15473. Generate code that assumes calls never cross space boundaries.
  15474. This allows GCC to emit code that performs faster indirect calls.
  15475. This option does not work in the presence of shared libraries or
  15476. nested functions.
  15477. '-mfixed-range=REGISTER-RANGE'
  15478. Generate code treating the given register range as fixed registers.
  15479. A fixed register is one that the register allocator cannot use.
  15480. This is useful when compiling kernel code. A register range is
  15481. specified as two registers separated by a dash. Multiple register
  15482. ranges can be specified separated by a comma.
  15483. '-mlong-load-store'
  15484. Generate 3-instruction load and store sequences as sometimes
  15485. required by the HP-UX 10 linker. This is equivalent to the '+k'
  15486. option to the HP compilers.
  15487. '-mportable-runtime'
  15488. Use the portable calling conventions proposed by HP for ELF
  15489. systems.
  15490. '-mgas'
  15491. Enable the use of assembler directives only GAS understands.
  15492. '-mschedule=CPU-TYPE'
  15493. Schedule code according to the constraints for the machine type
  15494. CPU-TYPE. The choices for CPU-TYPE are '700' '7100', '7100LC',
  15495. '7200', '7300' and '8000'. Refer to '/usr/lib/sched.models' on an
  15496. HP-UX system to determine the proper scheduling option for your
  15497. machine. The default scheduling is '8000'.
  15498. '-mlinker-opt'
  15499. Enable the optimization pass in the HP-UX linker. Note this makes
  15500. symbolic debugging impossible. It also triggers a bug in the HP-UX
  15501. 8 and HP-UX 9 linkers in which they give bogus error messages when
  15502. linking some programs.
  15503. '-msoft-float'
  15504. Generate output containing library calls for floating point.
  15505. *Warning:* the requisite libraries are not available for all HPPA
  15506. targets. Normally the facilities of the machine's usual C compiler
  15507. are used, but this cannot be done directly in cross-compilation.
  15508. You must make your own arrangements to provide suitable library
  15509. functions for cross-compilation.
  15510. '-msoft-float' changes the calling convention in the output file;
  15511. therefore, it is only useful if you compile _all_ of a program with
  15512. this option. In particular, you need to compile 'libgcc.a', the
  15513. library that comes with GCC, with '-msoft-float' in order for this
  15514. to work.
  15515. '-msio'
  15516. Generate the predefine, '_SIO', for server IO. The default is
  15517. '-mwsio'. This generates the predefines, '__hp9000s700',
  15518. '__hp9000s700__' and '_WSIO', for workstation IO. These options
  15519. are available under HP-UX and HI-UX.
  15520. '-mgnu-ld'
  15521. Use options specific to GNU 'ld'. This passes '-shared' to 'ld'
  15522. when building a shared library. It is the default when GCC is
  15523. configured, explicitly or implicitly, with the GNU linker. This
  15524. option does not affect which 'ld' is called; it only changes what
  15525. parameters are passed to that 'ld'. The 'ld' that is called is
  15526. determined by the '--with-ld' configure option, GCC's program
  15527. search path, and finally by the user's 'PATH'. The linker used by
  15528. GCC can be printed using 'which `gcc -print-prog-name=ld`'. This
  15529. option is only available on the 64-bit HP-UX GCC, i.e. configured
  15530. with 'hppa*64*-*-hpux*'.
  15531. '-mhp-ld'
  15532. Use options specific to HP 'ld'. This passes '-b' to 'ld' when
  15533. building a shared library and passes '+Accept TypeMismatch' to 'ld'
  15534. on all links. It is the default when GCC is configured, explicitly
  15535. or implicitly, with the HP linker. This option does not affect
  15536. which 'ld' is called; it only changes what parameters are passed to
  15537. that 'ld'. The 'ld' that is called is determined by the
  15538. '--with-ld' configure option, GCC's program search path, and
  15539. finally by the user's 'PATH'. The linker used by GCC can be
  15540. printed using 'which `gcc -print-prog-name=ld`'. This option is
  15541. only available on the 64-bit HP-UX GCC, i.e. configured with
  15542. 'hppa*64*-*-hpux*'.
  15543. '-mlong-calls'
  15544. Generate code that uses long call sequences. This ensures that a
  15545. call is always able to reach linker generated stubs. The default
  15546. is to generate long calls only when the distance from the call site
  15547. to the beginning of the function or translation unit, as the case
  15548. may be, exceeds a predefined limit set by the branch type being
  15549. used. The limits for normal calls are 7,600,000 and 240,000 bytes,
  15550. respectively for the PA 2.0 and PA 1.X architectures. Sibcalls are
  15551. always limited at 240,000 bytes.
  15552. Distances are measured from the beginning of functions when using
  15553. the '-ffunction-sections' option, or when using the '-mgas' and
  15554. '-mno-portable-runtime' options together under HP-UX with the SOM
  15555. linker.
  15556. It is normally not desirable to use this option as it degrades
  15557. performance. However, it may be useful in large applications,
  15558. particularly when partial linking is used to build the application.
  15559. The types of long calls used depends on the capabilities of the
  15560. assembler and linker, and the type of code being generated. The
  15561. impact on systems that support long absolute calls, and long pic
  15562. symbol-difference or pc-relative calls should be relatively small.
  15563. However, an indirect call is used on 32-bit ELF systems in pic code
  15564. and it is quite long.
  15565. '-munix=UNIX-STD'
  15566. Generate compiler predefines and select a startfile for the
  15567. specified UNIX standard. The choices for UNIX-STD are '93', '95'
  15568. and '98'. '93' is supported on all HP-UX versions. '95' is
  15569. available on HP-UX 10.10 and later. '98' is available on HP-UX
  15570. 11.11 and later. The default values are '93' for HP-UX 10.00, '95'
  15571. for HP-UX 10.10 though to 11.00, and '98' for HP-UX 11.11 and
  15572. later.
  15573. '-munix=93' provides the same predefines as GCC 3.3 and 3.4.
  15574. '-munix=95' provides additional predefines for 'XOPEN_UNIX' and
  15575. '_XOPEN_SOURCE_EXTENDED', and the startfile 'unix95.o'.
  15576. '-munix=98' provides additional predefines for '_XOPEN_UNIX',
  15577. '_XOPEN_SOURCE_EXTENDED', '_INCLUDE__STDC_A1_SOURCE' and
  15578. '_INCLUDE_XOPEN_SOURCE_500', and the startfile 'unix98.o'.
  15579. It is _important_ to note that this option changes the interfaces
  15580. for various library routines. It also affects the operational
  15581. behavior of the C library. Thus, _extreme_ care is needed in using
  15582. this option.
  15583. Library code that is intended to operate with more than one UNIX
  15584. standard must test, set and restore the variable
  15585. '__xpg4_extended_mask' as appropriate. Most GNU software doesn't
  15586. provide this capability.
  15587. '-nolibdld'
  15588. Suppress the generation of link options to search libdld.sl when
  15589. the '-static' option is specified on HP-UX 10 and later.
  15590. '-static'
  15591. The HP-UX implementation of setlocale in libc has a dependency on
  15592. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  15593. when the '-static' option is specified, special link options are
  15594. needed to resolve this dependency.
  15595. On HP-UX 10 and later, the GCC driver adds the necessary options to
  15596. link with libdld.sl when the '-static' option is specified. This
  15597. causes the resulting binary to be dynamic. On the 64-bit port, the
  15598. linkers generate dynamic binaries by default in any case. The
  15599. '-nolibdld' option can be used to prevent the GCC driver from
  15600. adding these link options.
  15601. '-threads'
  15602. Add support for multithreading with the "dce thread" library under
  15603. HP-UX. This option sets flags for both the preprocessor and
  15604. linker.
  15605. 
  15606. File: gcc.info, Node: IA-64 Options, Next: LM32 Options, Prev: HPPA Options, Up: Submodel Options
  15607. 3.18.20 IA-64 Options
  15608. ---------------------
  15609. These are the '-m' options defined for the Intel IA-64 architecture.
  15610. '-mbig-endian'
  15611. Generate code for a big-endian target. This is the default for
  15612. HP-UX.
  15613. '-mlittle-endian'
  15614. Generate code for a little-endian target. This is the default for
  15615. AIX5 and GNU/Linux.
  15616. '-mgnu-as'
  15617. '-mno-gnu-as'
  15618. Generate (or don't) code for the GNU assembler. This is the
  15619. default.
  15620. '-mgnu-ld'
  15621. '-mno-gnu-ld'
  15622. Generate (or don't) code for the GNU linker. This is the default.
  15623. '-mno-pic'
  15624. Generate code that does not use a global pointer register. The
  15625. result is not position independent code, and violates the IA-64
  15626. ABI.
  15627. '-mvolatile-asm-stop'
  15628. '-mno-volatile-asm-stop'
  15629. Generate (or don't) a stop bit immediately before and after
  15630. volatile asm statements.
  15631. '-mregister-names'
  15632. '-mno-register-names'
  15633. Generate (or don't) 'in', 'loc', and 'out' register names for the
  15634. stacked registers. This may make assembler output more readable.
  15635. '-mno-sdata'
  15636. '-msdata'
  15637. Disable (or enable) optimizations that use the small data section.
  15638. This may be useful for working around optimizer bugs.
  15639. '-mconstant-gp'
  15640. Generate code that uses a single constant global pointer value.
  15641. This is useful when compiling kernel code.
  15642. '-mauto-pic'
  15643. Generate code that is self-relocatable. This implies
  15644. '-mconstant-gp'. This is useful when compiling firmware code.
  15645. '-minline-float-divide-min-latency'
  15646. Generate code for inline divides of floating-point values using the
  15647. minimum latency algorithm.
  15648. '-minline-float-divide-max-throughput'
  15649. Generate code for inline divides of floating-point values using the
  15650. maximum throughput algorithm.
  15651. '-mno-inline-float-divide'
  15652. Do not generate inline code for divides of floating-point values.
  15653. '-minline-int-divide-min-latency'
  15654. Generate code for inline divides of integer values using the
  15655. minimum latency algorithm.
  15656. '-minline-int-divide-max-throughput'
  15657. Generate code for inline divides of integer values using the
  15658. maximum throughput algorithm.
  15659. '-mno-inline-int-divide'
  15660. Do not generate inline code for divides of integer values.
  15661. '-minline-sqrt-min-latency'
  15662. Generate code for inline square roots using the minimum latency
  15663. algorithm.
  15664. '-minline-sqrt-max-throughput'
  15665. Generate code for inline square roots using the maximum throughput
  15666. algorithm.
  15667. '-mno-inline-sqrt'
  15668. Do not generate inline code for 'sqrt'.
  15669. '-mfused-madd'
  15670. '-mno-fused-madd'
  15671. Do (don't) generate code that uses the fused multiply/add or
  15672. multiply/subtract instructions. The default is to use these
  15673. instructions.
  15674. '-mno-dwarf2-asm'
  15675. '-mdwarf2-asm'
  15676. Don't (or do) generate assembler code for the DWARF line number
  15677. debugging info. This may be useful when not using the GNU
  15678. assembler.
  15679. '-mearly-stop-bits'
  15680. '-mno-early-stop-bits'
  15681. Allow stop bits to be placed earlier than immediately preceding the
  15682. instruction that triggered the stop bit. This can improve
  15683. instruction scheduling, but does not always do so.
  15684. '-mfixed-range=REGISTER-RANGE'
  15685. Generate code treating the given register range as fixed registers.
  15686. A fixed register is one that the register allocator cannot use.
  15687. This is useful when compiling kernel code. A register range is
  15688. specified as two registers separated by a dash. Multiple register
  15689. ranges can be specified separated by a comma.
  15690. '-mtls-size=TLS-SIZE'
  15691. Specify bit size of immediate TLS offsets. Valid values are 14,
  15692. 22, and 64.
  15693. '-mtune=CPU-TYPE'
  15694. Tune the instruction scheduling for a particular CPU, Valid values
  15695. are 'itanium', 'itanium1', 'merced', 'itanium2', and 'mckinley'.
  15696. '-milp32'
  15697. '-mlp64'
  15698. Generate code for a 32-bit or 64-bit environment. The 32-bit
  15699. environment sets int, long and pointer to 32 bits. The 64-bit
  15700. environment sets int to 32 bits and long and pointer to 64 bits.
  15701. These are HP-UX specific flags.
  15702. '-mno-sched-br-data-spec'
  15703. '-msched-br-data-spec'
  15704. (Dis/En)able data speculative scheduling before reload. This
  15705. results in generation of 'ld.a' instructions and the corresponding
  15706. check instructions ('ld.c' / 'chk.a'). The default setting is
  15707. disabled.
  15708. '-msched-ar-data-spec'
  15709. '-mno-sched-ar-data-spec'
  15710. (En/Dis)able data speculative scheduling after reload. This
  15711. results in generation of 'ld.a' instructions and the corresponding
  15712. check instructions ('ld.c' / 'chk.a'). The default setting is
  15713. enabled.
  15714. '-mno-sched-control-spec'
  15715. '-msched-control-spec'
  15716. (Dis/En)able control speculative scheduling. This feature is
  15717. available only during region scheduling (i.e. before reload). This
  15718. results in generation of the 'ld.s' instructions and the
  15719. corresponding check instructions 'chk.s'. The default setting is
  15720. disabled.
  15721. '-msched-br-in-data-spec'
  15722. '-mno-sched-br-in-data-spec'
  15723. (En/Dis)able speculative scheduling of the instructions that are
  15724. dependent on the data speculative loads before reload. This is
  15725. effective only with '-msched-br-data-spec' enabled. The default
  15726. setting is enabled.
  15727. '-msched-ar-in-data-spec'
  15728. '-mno-sched-ar-in-data-spec'
  15729. (En/Dis)able speculative scheduling of the instructions that are
  15730. dependent on the data speculative loads after reload. This is
  15731. effective only with '-msched-ar-data-spec' enabled. The default
  15732. setting is enabled.
  15733. '-msched-in-control-spec'
  15734. '-mno-sched-in-control-spec'
  15735. (En/Dis)able speculative scheduling of the instructions that are
  15736. dependent on the control speculative loads. This is effective only
  15737. with '-msched-control-spec' enabled. The default setting is
  15738. enabled.
  15739. '-mno-sched-prefer-non-data-spec-insns'
  15740. '-msched-prefer-non-data-spec-insns'
  15741. If enabled, data-speculative instructions are chosen for schedule
  15742. only if there are no other choices at the moment. This makes the
  15743. use of the data speculation much more conservative. The default
  15744. setting is disabled.
  15745. '-mno-sched-prefer-non-control-spec-insns'
  15746. '-msched-prefer-non-control-spec-insns'
  15747. If enabled, control-speculative instructions are chosen for
  15748. schedule only if there are no other choices at the moment. This
  15749. makes the use of the control speculation much more conservative.
  15750. The default setting is disabled.
  15751. '-mno-sched-count-spec-in-critical-path'
  15752. '-msched-count-spec-in-critical-path'
  15753. If enabled, speculative dependencies are considered during
  15754. computation of the instructions priorities. This makes the use of
  15755. the speculation a bit more conservative. The default setting is
  15756. disabled.
  15757. '-msched-spec-ldc'
  15758. Use a simple data speculation check. This option is on by default.
  15759. '-msched-control-spec-ldc'
  15760. Use a simple check for control speculation. This option is on by
  15761. default.
  15762. '-msched-stop-bits-after-every-cycle'
  15763. Place a stop bit after every cycle when scheduling. This option is
  15764. on by default.
  15765. '-msched-fp-mem-deps-zero-cost'
  15766. Assume that floating-point stores and loads are not likely to cause
  15767. a conflict when placed into the same instruction group. This
  15768. option is disabled by default.
  15769. '-msel-sched-dont-check-control-spec'
  15770. Generate checks for control speculation in selective scheduling.
  15771. This flag is disabled by default.
  15772. '-msched-max-memory-insns=MAX-INSNS'
  15773. Limit on the number of memory insns per instruction group, giving
  15774. lower priority to subsequent memory insns attempting to schedule in
  15775. the same instruction group. Frequently useful to prevent cache
  15776. bank conflicts. The default value is 1.
  15777. '-msched-max-memory-insns-hard-limit'
  15778. Makes the limit specified by 'msched-max-memory-insns' a hard
  15779. limit, disallowing more than that number in an instruction group.
  15780. Otherwise, the limit is "soft", meaning that non-memory operations
  15781. are preferred when the limit is reached, but memory operations may
  15782. still be scheduled.
  15783. 
  15784. File: gcc.info, Node: LM32 Options, Next: M32C Options, Prev: IA-64 Options, Up: Submodel Options
  15785. 3.18.21 LM32 Options
  15786. --------------------
  15787. These '-m' options are defined for the LatticeMico32 architecture:
  15788. '-mbarrel-shift-enabled'
  15789. Enable barrel-shift instructions.
  15790. '-mdivide-enabled'
  15791. Enable divide and modulus instructions.
  15792. '-mmultiply-enabled'
  15793. Enable multiply instructions.
  15794. '-msign-extend-enabled'
  15795. Enable sign extend instructions.
  15796. '-muser-enabled'
  15797. Enable user-defined instructions.
  15798. 
  15799. File: gcc.info, Node: M32C Options, Next: M32R/D Options, Prev: LM32 Options, Up: Submodel Options
  15800. 3.18.22 M32C Options
  15801. --------------------
  15802. '-mcpu=NAME'
  15803. Select the CPU for which code is generated. NAME may be one of
  15804. 'r8c' for the R8C/Tiny series, 'm16c' for the M16C (up to /60)
  15805. series, 'm32cm' for the M16C/80 series, or 'm32c' for the M32C/80
  15806. series.
  15807. '-msim'
  15808. Specifies that the program will be run on the simulator. This
  15809. causes an alternate runtime library to be linked in which supports,
  15810. for example, file I/O. You must not use this option when
  15811. generating programs that will run on real hardware; you must
  15812. provide your own runtime library for whatever I/O functions are
  15813. needed.
  15814. '-memregs=NUMBER'
  15815. Specifies the number of memory-based pseudo-registers GCC uses
  15816. during code generation. These pseudo-registers are used like real
  15817. registers, so there is a tradeoff between GCC's ability to fit the
  15818. code into available registers, and the performance penalty of using
  15819. memory instead of registers. Note that all modules in a program
  15820. must be compiled with the same value for this option. Because of
  15821. that, you must not use this option with GCC's default runtime
  15822. libraries.
  15823. 
  15824. File: gcc.info, Node: M32R/D Options, Next: M680x0 Options, Prev: M32C Options, Up: Submodel Options
  15825. 3.18.23 M32R/D Options
  15826. ----------------------
  15827. These '-m' options are defined for Renesas M32R/D architectures:
  15828. '-m32r2'
  15829. Generate code for the M32R/2.
  15830. '-m32rx'
  15831. Generate code for the M32R/X.
  15832. '-m32r'
  15833. Generate code for the M32R. This is the default.
  15834. '-mmodel=small'
  15835. Assume all objects live in the lower 16MB of memory (so that their
  15836. addresses can be loaded with the 'ld24' instruction), and assume
  15837. all subroutines are reachable with the 'bl' instruction. This is
  15838. the default.
  15839. The addressability of a particular object can be set with the
  15840. 'model' attribute.
  15841. '-mmodel=medium'
  15842. Assume objects may be anywhere in the 32-bit address space (the
  15843. compiler generates 'seth/add3' instructions to load their
  15844. addresses), and assume all subroutines are reachable with the 'bl'
  15845. instruction.
  15846. '-mmodel=large'
  15847. Assume objects may be anywhere in the 32-bit address space (the
  15848. compiler generates 'seth/add3' instructions to load their
  15849. addresses), and assume subroutines may not be reachable with the
  15850. 'bl' instruction (the compiler generates the much slower
  15851. 'seth/add3/jl' instruction sequence).
  15852. '-msdata=none'
  15853. Disable use of the small data area. Variables are put into one of
  15854. '.data', '.bss', or '.rodata' (unless the 'section' attribute has
  15855. been specified). This is the default.
  15856. The small data area consists of sections '.sdata' and '.sbss'.
  15857. Objects may be explicitly put in the small data area with the
  15858. 'section' attribute using one of these sections.
  15859. '-msdata=sdata'
  15860. Put small global and static data in the small data area, but do not
  15861. generate special code to reference them.
  15862. '-msdata=use'
  15863. Put small global and static data in the small data area, and
  15864. generate special instructions to reference them.
  15865. '-G NUM'
  15866. Put global and static objects less than or equal to NUM bytes into
  15867. the small data or BSS sections instead of the normal data or BSS
  15868. sections. The default value of NUM is 8. The '-msdata' option
  15869. must be set to one of 'sdata' or 'use' for this option to have any
  15870. effect.
  15871. All modules should be compiled with the same '-G NUM' value.
  15872. Compiling with different values of NUM may or may not work; if it
  15873. doesn't the linker gives an error message--incorrect code is not
  15874. generated.
  15875. '-mdebug'
  15876. Makes the M32R-specific code in the compiler display some
  15877. statistics that might help in debugging programs.
  15878. '-malign-loops'
  15879. Align all loops to a 32-byte boundary.
  15880. '-mno-align-loops'
  15881. Do not enforce a 32-byte alignment for loops. This is the default.
  15882. '-missue-rate=NUMBER'
  15883. Issue NUMBER instructions per cycle. NUMBER can only be 1 or 2.
  15884. '-mbranch-cost=NUMBER'
  15885. NUMBER can only be 1 or 2. If it is 1 then branches are preferred
  15886. over conditional code, if it is 2, then the opposite applies.
  15887. '-mflush-trap=NUMBER'
  15888. Specifies the trap number to use to flush the cache. The default
  15889. is 12. Valid numbers are between 0 and 15 inclusive.
  15890. '-mno-flush-trap'
  15891. Specifies that the cache cannot be flushed by using a trap.
  15892. '-mflush-func=NAME'
  15893. Specifies the name of the operating system function to call to
  15894. flush the cache. The default is '_flush_cache', but a function
  15895. call is only used if a trap is not available.
  15896. '-mno-flush-func'
  15897. Indicates that there is no OS function for flushing the cache.
  15898. 
  15899. File: gcc.info, Node: M680x0 Options, Next: MCore Options, Prev: M32R/D Options, Up: Submodel Options
  15900. 3.18.24 M680x0 Options
  15901. ----------------------
  15902. These are the '-m' options defined for M680x0 and ColdFire processors.
  15903. The default settings depend on which architecture was selected when the
  15904. compiler was configured; the defaults for the most common choices are
  15905. given below.
  15906. '-march=ARCH'
  15907. Generate code for a specific M680x0 or ColdFire instruction set
  15908. architecture. Permissible values of ARCH for M680x0 architectures
  15909. are: '68000', '68010', '68020', '68030', '68040', '68060' and
  15910. 'cpu32'. ColdFire architectures are selected according to
  15911. Freescale's ISA classification and the permissible values are:
  15912. 'isaa', 'isaaplus', 'isab' and 'isac'.
  15913. GCC defines a macro '__mcfARCH__' whenever it is generating code
  15914. for a ColdFire target. The ARCH in this macro is one of the
  15915. '-march' arguments given above.
  15916. When used together, '-march' and '-mtune' select code that runs on
  15917. a family of similar processors but that is optimized for a
  15918. particular microarchitecture.
  15919. '-mcpu=CPU'
  15920. Generate code for a specific M680x0 or ColdFire processor. The
  15921. M680x0 CPUs are: '68000', '68010', '68020', '68030', '68040',
  15922. '68060', '68302', '68332' and 'cpu32'. The ColdFire CPUs are given
  15923. by the table below, which also classifies the CPUs into families:
  15924. *Family* *'-mcpu' arguments*
  15925. '51' '51' '51ac' '51ag' '51cn' '51em' '51je' '51jf' '51jg'
  15926. '51jm' '51mm' '51qe' '51qm'
  15927. '5206' '5202' '5204' '5206'
  15928. '5206e' '5206e'
  15929. '5208' '5207' '5208'
  15930. '5211a' '5210a' '5211a'
  15931. '5213' '5211' '5212' '5213'
  15932. '5216' '5214' '5216'
  15933. '52235' '52230' '52231' '52232' '52233' '52234' '52235'
  15934. '5225' '5224' '5225'
  15935. '52259' '52252' '52254' '52255' '52256' '52258' '52259'
  15936. '5235' '5232' '5233' '5234' '5235' '523x'
  15937. '5249' '5249'
  15938. '5250' '5250'
  15939. '5271' '5270' '5271'
  15940. '5272' '5272'
  15941. '5275' '5274' '5275'
  15942. '5282' '5280' '5281' '5282' '528x'
  15943. '53017' '53011' '53012' '53013' '53014' '53015' '53016' '53017'
  15944. '5307' '5307'
  15945. '5329' '5327' '5328' '5329' '532x'
  15946. '5373' '5372' '5373' '537x'
  15947. '5407' '5407'
  15948. '5475' '5470' '5471' '5472' '5473' '5474' '5475' '547x' '5480'
  15949. '5481' '5482' '5483' '5484' '5485'
  15950. '-mcpu=CPU' overrides '-march=ARCH' if ARCH is compatible with CPU.
  15951. Other combinations of '-mcpu' and '-march' are rejected.
  15952. GCC defines the macro '__mcf_cpu_CPU' when ColdFire target CPU is
  15953. selected. It also defines '__mcf_family_FAMILY', where the value
  15954. of FAMILY is given by the table above.
  15955. '-mtune=TUNE'
  15956. Tune the code for a particular microarchitecture within the
  15957. constraints set by '-march' and '-mcpu'. The M680x0
  15958. microarchitectures are: '68000', '68010', '68020', '68030',
  15959. '68040', '68060' and 'cpu32'. The ColdFire microarchitectures are:
  15960. 'cfv1', 'cfv2', 'cfv3', 'cfv4' and 'cfv4e'.
  15961. You can also use '-mtune=68020-40' for code that needs to run
  15962. relatively well on 68020, 68030 and 68040 targets.
  15963. '-mtune=68020-60' is similar but includes 68060 targets as well.
  15964. These two options select the same tuning decisions as '-m68020-40'
  15965. and '-m68020-60' respectively.
  15966. GCC defines the macros '__mcARCH' and '__mcARCH__' when tuning for
  15967. 680x0 architecture ARCH. It also defines 'mcARCH' unless either
  15968. '-ansi' or a non-GNU '-std' option is used. If GCC is tuning for a
  15969. range of architectures, as selected by '-mtune=68020-40' or
  15970. '-mtune=68020-60', it defines the macros for every architecture in
  15971. the range.
  15972. GCC also defines the macro '__mUARCH__' when tuning for ColdFire
  15973. microarchitecture UARCH, where UARCH is one of the arguments given
  15974. above.
  15975. '-m68000'
  15976. '-mc68000'
  15977. Generate output for a 68000. This is the default when the compiler
  15978. is configured for 68000-based systems. It is equivalent to
  15979. '-march=68000'.
  15980. Use this option for microcontrollers with a 68000 or EC000 core,
  15981. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  15982. '-m68010'
  15983. Generate output for a 68010. This is the default when the compiler
  15984. is configured for 68010-based systems. It is equivalent to
  15985. '-march=68010'.
  15986. '-m68020'
  15987. '-mc68020'
  15988. Generate output for a 68020. This is the default when the compiler
  15989. is configured for 68020-based systems. It is equivalent to
  15990. '-march=68020'.
  15991. '-m68030'
  15992. Generate output for a 68030. This is the default when the compiler
  15993. is configured for 68030-based systems. It is equivalent to
  15994. '-march=68030'.
  15995. '-m68040'
  15996. Generate output for a 68040. This is the default when the compiler
  15997. is configured for 68040-based systems. It is equivalent to
  15998. '-march=68040'.
  15999. This option inhibits the use of 68881/68882 instructions that have
  16000. to be emulated by software on the 68040. Use this option if your
  16001. 68040 does not have code to emulate those instructions.
  16002. '-m68060'
  16003. Generate output for a 68060. This is the default when the compiler
  16004. is configured for 68060-based systems. It is equivalent to
  16005. '-march=68060'.
  16006. This option inhibits the use of 68020 and 68881/68882 instructions
  16007. that have to be emulated by software on the 68060. Use this option
  16008. if your 68060 does not have code to emulate those instructions.
  16009. '-mcpu32'
  16010. Generate output for a CPU32. This is the default when the compiler
  16011. is configured for CPU32-based systems. It is equivalent to
  16012. '-march=cpu32'.
  16013. Use this option for microcontrollers with a CPU32 or CPU32+ core,
  16014. including the 68330, 68331, 68332, 68333, 68334, 68336, 68340,
  16015. 68341, 68349 and 68360.
  16016. '-m5200'
  16017. Generate output for a 520X ColdFire CPU. This is the default when
  16018. the compiler is configured for 520X-based systems. It is
  16019. equivalent to '-mcpu=5206', and is now deprecated in favor of that
  16020. option.
  16021. Use this option for microcontroller with a 5200 core, including the
  16022. MCF5202, MCF5203, MCF5204 and MCF5206.
  16023. '-m5206e'
  16024. Generate output for a 5206e ColdFire CPU. The option is now
  16025. deprecated in favor of the equivalent '-mcpu=5206e'.
  16026. '-m528x'
  16027. Generate output for a member of the ColdFire 528X family. The
  16028. option is now deprecated in favor of the equivalent '-mcpu=528x'.
  16029. '-m5307'
  16030. Generate output for a ColdFire 5307 CPU. The option is now
  16031. deprecated in favor of the equivalent '-mcpu=5307'.
  16032. '-m5407'
  16033. Generate output for a ColdFire 5407 CPU. The option is now
  16034. deprecated in favor of the equivalent '-mcpu=5407'.
  16035. '-mcfv4e'
  16036. Generate output for a ColdFire V4e family CPU (e.g. 547x/548x).
  16037. This includes use of hardware floating-point instructions. The
  16038. option is equivalent to '-mcpu=547x', and is now deprecated in
  16039. favor of that option.
  16040. '-m68020-40'
  16041. Generate output for a 68040, without using any of the new
  16042. instructions. This results in code that can run relatively
  16043. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  16044. generated code does use the 68881 instructions that are emulated on
  16045. the 68040.
  16046. The option is equivalent to '-march=68020' '-mtune=68020-40'.
  16047. '-m68020-60'
  16048. Generate output for a 68060, without using any of the new
  16049. instructions. This results in code that can run relatively
  16050. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  16051. generated code does use the 68881 instructions that are emulated on
  16052. the 68060.
  16053. The option is equivalent to '-march=68020' '-mtune=68020-60'.
  16054. '-mhard-float'
  16055. '-m68881'
  16056. Generate floating-point instructions. This is the default for
  16057. 68020 and above, and for ColdFire devices that have an FPU. It
  16058. defines the macro '__HAVE_68881__' on M680x0 targets and
  16059. '__mcffpu__' on ColdFire targets.
  16060. '-msoft-float'
  16061. Do not generate floating-point instructions; use library calls
  16062. instead. This is the default for 68000, 68010, and 68832 targets.
  16063. It is also the default for ColdFire devices that have no FPU.
  16064. '-mdiv'
  16065. '-mno-div'
  16066. Generate (do not generate) ColdFire hardware divide and remainder
  16067. instructions. If '-march' is used without '-mcpu', the default is
  16068. "on" for ColdFire architectures and "off" for M680x0 architectures.
  16069. Otherwise, the default is taken from the target CPU (either the
  16070. default CPU, or the one specified by '-mcpu'). For example, the
  16071. default is "off" for '-mcpu=5206' and "on" for '-mcpu=5206e'.
  16072. GCC defines the macro '__mcfhwdiv__' when this option is enabled.
  16073. '-mshort'
  16074. Consider type 'int' to be 16 bits wide, like 'short int'.
  16075. Additionally, parameters passed on the stack are also aligned to a
  16076. 16-bit boundary even on targets whose API mandates promotion to
  16077. 32-bit.
  16078. '-mno-short'
  16079. Do not consider type 'int' to be 16 bits wide. This is the
  16080. default.
  16081. '-mnobitfield'
  16082. '-mno-bitfield'
  16083. Do not use the bit-field instructions. The '-m68000', '-mcpu32'
  16084. and '-m5200' options imply '-mnobitfield'.
  16085. '-mbitfield'
  16086. Do use the bit-field instructions. The '-m68020' option implies
  16087. '-mbitfield'. This is the default if you use a configuration
  16088. designed for a 68020.
  16089. '-mrtd'
  16090. Use a different function-calling convention, in which functions
  16091. that take a fixed number of arguments return with the 'rtd'
  16092. instruction, which pops their arguments while returning. This
  16093. saves one instruction in the caller since there is no need to pop
  16094. the arguments there.
  16095. This calling convention is incompatible with the one normally used
  16096. on Unix, so you cannot use it if you need to call libraries
  16097. compiled with the Unix compiler.
  16098. Also, you must provide function prototypes for all functions that
  16099. take variable numbers of arguments (including 'printf'); otherwise
  16100. incorrect code is generated for calls to those functions.
  16101. In addition, seriously incorrect code results if you call a
  16102. function with too many arguments. (Normally, extra arguments are
  16103. harmlessly ignored.)
  16104. The 'rtd' instruction is supported by the 68010, 68020, 68030,
  16105. 68040, 68060 and CPU32 processors, but not by the 68000 or 5200.
  16106. The default is '-mno-rtd'.
  16107. '-malign-int'
  16108. '-mno-align-int'
  16109. Control whether GCC aligns 'int', 'long', 'long long', 'float',
  16110. 'double', and 'long double' variables on a 32-bit boundary
  16111. ('-malign-int') or a 16-bit boundary ('-mno-align-int'). Aligning
  16112. variables on 32-bit boundaries produces code that runs somewhat
  16113. faster on processors with 32-bit busses at the expense of more
  16114. memory.
  16115. *Warning:* if you use the '-malign-int' switch, GCC aligns
  16116. structures containing the above types differently than most
  16117. published application binary interface specifications for the m68k.
  16118. '-mpcrel'
  16119. Use the pc-relative addressing mode of the 68000 directly, instead
  16120. of using a global offset table. At present, this option implies
  16121. '-fpic', allowing at most a 16-bit offset for pc-relative
  16122. addressing. '-fPIC' is not presently supported with '-mpcrel',
  16123. though this could be supported for 68020 and higher processors.
  16124. '-mno-strict-align'
  16125. '-mstrict-align'
  16126. Do not (do) assume that unaligned memory references are handled by
  16127. the system.
  16128. '-msep-data'
  16129. Generate code that allows the data segment to be located in a
  16130. different area of memory from the text segment. This allows for
  16131. execute-in-place in an environment without virtual memory
  16132. management. This option implies '-fPIC'.
  16133. '-mno-sep-data'
  16134. Generate code that assumes that the data segment follows the text
  16135. segment. This is the default.
  16136. '-mid-shared-library'
  16137. Generate code that supports shared libraries via the library ID
  16138. method. This allows for execute-in-place and shared libraries in
  16139. an environment without virtual memory management. This option
  16140. implies '-fPIC'.
  16141. '-mno-id-shared-library'
  16142. Generate code that doesn't assume ID-based shared libraries are
  16143. being used. This is the default.
  16144. '-mshared-library-id=n'
  16145. Specifies the identification number of the ID-based shared library
  16146. being compiled. Specifying a value of 0 generates more compact
  16147. code; specifying other values forces the allocation of that number
  16148. to the current library, but is no more space- or time-efficient
  16149. than omitting this option.
  16150. '-mxgot'
  16151. '-mno-xgot'
  16152. When generating position-independent code for ColdFire, generate
  16153. code that works if the GOT has more than 8192 entries. This code
  16154. is larger and slower than code generated without this option. On
  16155. M680x0 processors, this option is not needed; '-fPIC' suffices.
  16156. GCC normally uses a single instruction to load values from the GOT.
  16157. While this is relatively efficient, it only works if the GOT is
  16158. smaller than about 64k. Anything larger causes the linker to
  16159. report an error such as:
  16160. relocation truncated to fit: R_68K_GOT16O foobar
  16161. If this happens, you should recompile your code with '-mxgot'. It
  16162. should then work with very large GOTs. However, code generated
  16163. with '-mxgot' is less efficient, since it takes 4 instructions to
  16164. fetch the value of a global symbol.
  16165. Note that some linkers, including newer versions of the GNU linker,
  16166. can create multiple GOTs and sort GOT entries. If you have such a
  16167. linker, you should only need to use '-mxgot' when compiling a
  16168. single object file that accesses more than 8192 GOT entries. Very
  16169. few do.
  16170. These options have no effect unless GCC is generating
  16171. position-independent code.
  16172. '-mlong-jump-table-offsets'
  16173. Use 32-bit offsets in 'switch' tables. The default is to use
  16174. 16-bit offsets.
  16175. 
  16176. File: gcc.info, Node: MCore Options, Next: MeP Options, Prev: M680x0 Options, Up: Submodel Options
  16177. 3.18.25 MCore Options
  16178. ---------------------
  16179. These are the '-m' options defined for the Motorola M*Core processors.
  16180. '-mhardlit'
  16181. '-mno-hardlit'
  16182. Inline constants into the code stream if it can be done in two
  16183. instructions or less.
  16184. '-mdiv'
  16185. '-mno-div'
  16186. Use the divide instruction. (Enabled by default).
  16187. '-mrelax-immediate'
  16188. '-mno-relax-immediate'
  16189. Allow arbitrary-sized immediates in bit operations.
  16190. '-mwide-bitfields'
  16191. '-mno-wide-bitfields'
  16192. Always treat bit-fields as 'int'-sized.
  16193. '-m4byte-functions'
  16194. '-mno-4byte-functions'
  16195. Force all functions to be aligned to a 4-byte boundary.
  16196. '-mcallgraph-data'
  16197. '-mno-callgraph-data'
  16198. Emit callgraph information.
  16199. '-mslow-bytes'
  16200. '-mno-slow-bytes'
  16201. Prefer word access when reading byte quantities.
  16202. '-mlittle-endian'
  16203. '-mbig-endian'
  16204. Generate code for a little-endian target.
  16205. '-m210'
  16206. '-m340'
  16207. Generate code for the 210 processor.
  16208. '-mno-lsim'
  16209. Assume that runtime support has been provided and so omit the
  16210. simulator library ('libsim.a)' from the linker command line.
  16211. '-mstack-increment=SIZE'
  16212. Set the maximum amount for a single stack increment operation.
  16213. Large values can increase the speed of programs that contain
  16214. functions that need a large amount of stack space, but they can
  16215. also trigger a segmentation fault if the stack is extended too
  16216. much. The default value is 0x1000.
  16217. 
  16218. File: gcc.info, Node: MeP Options, Next: MicroBlaze Options, Prev: MCore Options, Up: Submodel Options
  16219. 3.18.26 MeP Options
  16220. -------------------
  16221. '-mabsdiff'
  16222. Enables the 'abs' instruction, which is the absolute difference
  16223. between two registers.
  16224. '-mall-opts'
  16225. Enables all the optional instructions--average, multiply, divide,
  16226. bit operations, leading zero, absolute difference, min/max, clip,
  16227. and saturation.
  16228. '-maverage'
  16229. Enables the 'ave' instruction, which computes the average of two
  16230. registers.
  16231. '-mbased=N'
  16232. Variables of size N bytes or smaller are placed in the '.based'
  16233. section by default. Based variables use the '$tp' register as a
  16234. base register, and there is a 128-byte limit to the '.based'
  16235. section.
  16236. '-mbitops'
  16237. Enables the bit operation instructions--bit test ('btstm'), set
  16238. ('bsetm'), clear ('bclrm'), invert ('bnotm'), and test-and-set
  16239. ('tas').
  16240. '-mc=NAME'
  16241. Selects which section constant data is placed in. NAME may be
  16242. 'tiny', 'near', or 'far'.
  16243. '-mclip'
  16244. Enables the 'clip' instruction. Note that '-mclip' is not useful
  16245. unless you also provide '-mminmax'.
  16246. '-mconfig=NAME'
  16247. Selects one of the built-in core configurations. Each MeP chip has
  16248. one or more modules in it; each module has a core CPU and a variety
  16249. of coprocessors, optional instructions, and peripherals. The
  16250. 'MeP-Integrator' tool, not part of GCC, provides these
  16251. configurations through this option; using this option is the same
  16252. as using all the corresponding command-line options. The default
  16253. configuration is 'default'.
  16254. '-mcop'
  16255. Enables the coprocessor instructions. By default, this is a 32-bit
  16256. coprocessor. Note that the coprocessor is normally enabled via the
  16257. '-mconfig=' option.
  16258. '-mcop32'
  16259. Enables the 32-bit coprocessor's instructions.
  16260. '-mcop64'
  16261. Enables the 64-bit coprocessor's instructions.
  16262. '-mivc2'
  16263. Enables IVC2 scheduling. IVC2 is a 64-bit VLIW coprocessor.
  16264. '-mdc'
  16265. Causes constant variables to be placed in the '.near' section.
  16266. '-mdiv'
  16267. Enables the 'div' and 'divu' instructions.
  16268. '-meb'
  16269. Generate big-endian code.
  16270. '-mel'
  16271. Generate little-endian code.
  16272. '-mio-volatile'
  16273. Tells the compiler that any variable marked with the 'io' attribute
  16274. is to be considered volatile.
  16275. '-ml'
  16276. Causes variables to be assigned to the '.far' section by default.
  16277. '-mleadz'
  16278. Enables the 'leadz' (leading zero) instruction.
  16279. '-mm'
  16280. Causes variables to be assigned to the '.near' section by default.
  16281. '-mminmax'
  16282. Enables the 'min' and 'max' instructions.
  16283. '-mmult'
  16284. Enables the multiplication and multiply-accumulate instructions.
  16285. '-mno-opts'
  16286. Disables all the optional instructions enabled by '-mall-opts'.
  16287. '-mrepeat'
  16288. Enables the 'repeat' and 'erepeat' instructions, used for
  16289. low-overhead looping.
  16290. '-ms'
  16291. Causes all variables to default to the '.tiny' section. Note that
  16292. there is a 65536-byte limit to this section. Accesses to these
  16293. variables use the '%gp' base register.
  16294. '-msatur'
  16295. Enables the saturation instructions. Note that the compiler does
  16296. not currently generate these itself, but this option is included
  16297. for compatibility with other tools, like 'as'.
  16298. '-msdram'
  16299. Link the SDRAM-based runtime instead of the default ROM-based
  16300. runtime.
  16301. '-msim'
  16302. Link the simulator run-time libraries.
  16303. '-msimnovec'
  16304. Link the simulator runtime libraries, excluding built-in support
  16305. for reset and exception vectors and tables.
  16306. '-mtf'
  16307. Causes all functions to default to the '.far' section. Without
  16308. this option, functions default to the '.near' section.
  16309. '-mtiny=N'
  16310. Variables that are N bytes or smaller are allocated to the '.tiny'
  16311. section. These variables use the '$gp' base register. The default
  16312. for this option is 4, but note that there's a 65536-byte limit to
  16313. the '.tiny' section.
  16314. 
  16315. File: gcc.info, Node: MicroBlaze Options, Next: MIPS Options, Prev: MeP Options, Up: Submodel Options
  16316. 3.18.27 MicroBlaze Options
  16317. --------------------------
  16318. '-msoft-float'
  16319. Use software emulation for floating point (default).
  16320. '-mhard-float'
  16321. Use hardware floating-point instructions.
  16322. '-mmemcpy'
  16323. Do not optimize block moves, use 'memcpy'.
  16324. '-mno-clearbss'
  16325. This option is deprecated. Use '-fno-zero-initialized-in-bss'
  16326. instead.
  16327. '-mcpu=CPU-TYPE'
  16328. Use features of, and schedule code for, the given CPU. Supported
  16329. values are in the format 'vX.YY.Z', where X is a major version, YY
  16330. is the minor version, and Z is compatibility code. Example values
  16331. are 'v3.00.a', 'v4.00.b', 'v5.00.a', 'v5.00.b', 'v6.00.a'.
  16332. '-mxl-soft-mul'
  16333. Use software multiply emulation (default).
  16334. '-mxl-soft-div'
  16335. Use software emulation for divides (default).
  16336. '-mxl-barrel-shift'
  16337. Use the hardware barrel shifter.
  16338. '-mxl-pattern-compare'
  16339. Use pattern compare instructions.
  16340. '-msmall-divides'
  16341. Use table lookup optimization for small signed integer divisions.
  16342. '-mxl-stack-check'
  16343. This option is deprecated. Use '-fstack-check' instead.
  16344. '-mxl-gp-opt'
  16345. Use GP-relative '.sdata'/'.sbss' sections.
  16346. '-mxl-multiply-high'
  16347. Use multiply high instructions for high part of 32x32 multiply.
  16348. '-mxl-float-convert'
  16349. Use hardware floating-point conversion instructions.
  16350. '-mxl-float-sqrt'
  16351. Use hardware floating-point square root instruction.
  16352. '-mbig-endian'
  16353. Generate code for a big-endian target.
  16354. '-mlittle-endian'
  16355. Generate code for a little-endian target.
  16356. '-mxl-reorder'
  16357. Use reorder instructions (swap and byte reversed load/store).
  16358. '-mxl-mode-APP-MODEL'
  16359. Select application model APP-MODEL. Valid models are
  16360. 'executable'
  16361. normal executable (default), uses startup code 'crt0.o'.
  16362. '-mpic-data-is-text-relative'
  16363. Assume that the displacement between the text and data
  16364. segments is fixed at static link time. This allows data to be
  16365. referenced by offset from start of text address instead of GOT
  16366. since PC-relative addressing is not supported.
  16367. 'xmdstub'
  16368. for use with Xilinx Microprocessor Debugger (XMD) based
  16369. software intrusive debug agent called xmdstub. This uses
  16370. startup file 'crt1.o' and sets the start address of the
  16371. program to 0x800.
  16372. 'bootstrap'
  16373. for applications that are loaded using a bootloader. This
  16374. model uses startup file 'crt2.o' which does not contain a
  16375. processor reset vector handler. This is suitable for
  16376. transferring control on a processor reset to the bootloader
  16377. rather than the application.
  16378. 'novectors'
  16379. for applications that do not require any of the MicroBlaze
  16380. vectors. This option may be useful for applications running
  16381. within a monitoring application. This model uses 'crt3.o' as
  16382. a startup file.
  16383. Option '-xl-mode-APP-MODEL' is a deprecated alias for
  16384. '-mxl-mode-APP-MODEL'.
  16385. 
  16386. File: gcc.info, Node: MIPS Options, Next: MMIX Options, Prev: MicroBlaze Options, Up: Submodel Options
  16387. 3.18.28 MIPS Options
  16388. --------------------
  16389. '-EB'
  16390. Generate big-endian code.
  16391. '-EL'
  16392. Generate little-endian code. This is the default for 'mips*el-*-*'
  16393. configurations.
  16394. '-march=ARCH'
  16395. Generate code that runs on ARCH, which can be the name of a generic
  16396. MIPS ISA, or the name of a particular processor. The ISA names
  16397. are: 'mips1', 'mips2', 'mips3', 'mips4', 'mips32', 'mips32r2',
  16398. 'mips32r3', 'mips32r5', 'mips32r6', 'mips64', 'mips64r2',
  16399. 'mips64r3', 'mips64r5' and 'mips64r6'. The processor names are:
  16400. '4kc', '4km', '4kp', '4ksc', '4kec', '4kem', '4kep', '4ksd', '5kc',
  16401. '5kf', '20kc', '24kc', '24kf2_1', '24kf1_1', '24kec', '24kef2_1',
  16402. '24kef1_1', '34kc', '34kf2_1', '34kf1_1', '34kn', '74kc',
  16403. '74kf2_1', '74kf1_1', '74kf3_2', '1004kc', '1004kf2_1',
  16404. '1004kf1_1', 'i6400', 'i6500', 'interaptiv', 'loongson2e',
  16405. 'loongson2f', 'loongson3a', 'gs464', 'gs464e', 'gs264e', 'm4k',
  16406. 'm14k', 'm14kc', 'm14ke', 'm14kec', 'm5100', 'm5101', 'octeon',
  16407. 'octeon+', 'octeon2', 'octeon3', 'orion', 'p5600', 'p6600',
  16408. 'r2000', 'r3000', 'r3900', 'r4000', 'r4400', 'r4600', 'r4650',
  16409. 'r4700', 'r5900', 'r6000', 'r8000', 'rm7000', 'rm9000', 'r10000',
  16410. 'r12000', 'r14000', 'r16000', 'sb1', 'sr71000', 'vr4100', 'vr4111',
  16411. 'vr4120', 'vr4130', 'vr4300', 'vr5000', 'vr5400', 'vr5500', 'xlr'
  16412. and 'xlp'. The special value 'from-abi' selects the most
  16413. compatible architecture for the selected ABI (that is, 'mips1' for
  16414. 32-bit ABIs and 'mips3' for 64-bit ABIs).
  16415. The native Linux/GNU toolchain also supports the value 'native',
  16416. which selects the best architecture option for the host processor.
  16417. '-march=native' has no effect if GCC does not recognize the
  16418. processor.
  16419. In processor names, a final '000' can be abbreviated as 'k' (for
  16420. example, '-march=r2k'). Prefixes are optional, and 'vr' may be
  16421. written 'r'.
  16422. Names of the form 'Nf2_1' refer to processors with FPUs clocked at
  16423. half the rate of the core, names of the form 'Nf1_1' refer to
  16424. processors with FPUs clocked at the same rate as the core, and
  16425. names of the form 'Nf3_2' refer to processors with FPUs clocked a
  16426. ratio of 3:2 with respect to the core. For compatibility reasons,
  16427. 'Nf' is accepted as a synonym for 'Nf2_1' while 'Nx' and 'Bfx' are
  16428. accepted as synonyms for 'Nf1_1'.
  16429. GCC defines two macros based on the value of this option. The
  16430. first is '_MIPS_ARCH', which gives the name of target architecture,
  16431. as a string. The second has the form '_MIPS_ARCH_FOO', where FOO
  16432. is the capitalized value of '_MIPS_ARCH'. For example,
  16433. '-march=r2000' sets '_MIPS_ARCH' to '"r2000"' and defines the macro
  16434. '_MIPS_ARCH_R2000'.
  16435. Note that the '_MIPS_ARCH' macro uses the processor names given
  16436. above. In other words, it has the full prefix and does not
  16437. abbreviate '000' as 'k'. In the case of 'from-abi', the macro
  16438. names the resolved architecture (either '"mips1"' or '"mips3"').
  16439. It names the default architecture when no '-march' option is given.
  16440. '-mtune=ARCH'
  16441. Optimize for ARCH. Among other things, this option controls the
  16442. way instructions are scheduled, and the perceived cost of
  16443. arithmetic operations. The list of ARCH values is the same as for
  16444. '-march'.
  16445. When this option is not used, GCC optimizes for the processor
  16446. specified by '-march'. By using '-march' and '-mtune' together, it
  16447. is possible to generate code that runs on a family of processors,
  16448. but optimize the code for one particular member of that family.
  16449. '-mtune' defines the macros '_MIPS_TUNE' and '_MIPS_TUNE_FOO',
  16450. which work in the same way as the '-march' ones described above.
  16451. '-mips1'
  16452. Equivalent to '-march=mips1'.
  16453. '-mips2'
  16454. Equivalent to '-march=mips2'.
  16455. '-mips3'
  16456. Equivalent to '-march=mips3'.
  16457. '-mips4'
  16458. Equivalent to '-march=mips4'.
  16459. '-mips32'
  16460. Equivalent to '-march=mips32'.
  16461. '-mips32r3'
  16462. Equivalent to '-march=mips32r3'.
  16463. '-mips32r5'
  16464. Equivalent to '-march=mips32r5'.
  16465. '-mips32r6'
  16466. Equivalent to '-march=mips32r6'.
  16467. '-mips64'
  16468. Equivalent to '-march=mips64'.
  16469. '-mips64r2'
  16470. Equivalent to '-march=mips64r2'.
  16471. '-mips64r3'
  16472. Equivalent to '-march=mips64r3'.
  16473. '-mips64r5'
  16474. Equivalent to '-march=mips64r5'.
  16475. '-mips64r6'
  16476. Equivalent to '-march=mips64r6'.
  16477. '-mips16'
  16478. '-mno-mips16'
  16479. Generate (do not generate) MIPS16 code. If GCC is targeting a
  16480. MIPS32 or MIPS64 architecture, it makes use of the MIPS16e ASE.
  16481. MIPS16 code generation can also be controlled on a per-function
  16482. basis by means of 'mips16' and 'nomips16' attributes. *Note
  16483. Function Attributes::, for more information.
  16484. '-mflip-mips16'
  16485. Generate MIPS16 code on alternating functions. This option is
  16486. provided for regression testing of mixed MIPS16/non-MIPS16 code
  16487. generation, and is not intended for ordinary use in compiling user
  16488. code.
  16489. '-minterlink-compressed'
  16490. '-mno-interlink-compressed'
  16491. Require (do not require) that code using the standard
  16492. (uncompressed) MIPS ISA be link-compatible with MIPS16 and
  16493. microMIPS code, and vice versa.
  16494. For example, code using the standard ISA encoding cannot jump
  16495. directly to MIPS16 or microMIPS code; it must either use a call or
  16496. an indirect jump. '-minterlink-compressed' therefore disables
  16497. direct jumps unless GCC knows that the target of the jump is not
  16498. compressed.
  16499. '-minterlink-mips16'
  16500. '-mno-interlink-mips16'
  16501. Aliases of '-minterlink-compressed' and
  16502. '-mno-interlink-compressed'. These options predate the microMIPS
  16503. ASE and are retained for backwards compatibility.
  16504. '-mabi=32'
  16505. '-mabi=o64'
  16506. '-mabi=n32'
  16507. '-mabi=64'
  16508. '-mabi=eabi'
  16509. Generate code for the given ABI.
  16510. Note that the EABI has a 32-bit and a 64-bit variant. GCC normally
  16511. generates 64-bit code when you select a 64-bit architecture, but
  16512. you can use '-mgp32' to get 32-bit code instead.
  16513. For information about the O64 ABI, see
  16514. <http://gcc.gnu.org/projects/mipso64-abi.html>.
  16515. GCC supports a variant of the o32 ABI in which floating-point
  16516. registers are 64 rather than 32 bits wide. You can select this
  16517. combination with '-mabi=32' '-mfp64'. This ABI relies on the
  16518. 'mthc1' and 'mfhc1' instructions and is therefore only supported
  16519. for MIPS32R2, MIPS32R3 and MIPS32R5 processors.
  16520. The register assignments for arguments and return values remain the
  16521. same, but each scalar value is passed in a single 64-bit register
  16522. rather than a pair of 32-bit registers. For example, scalar
  16523. floating-point values are returned in '$f0' only, not a '$f0'/'$f1'
  16524. pair. The set of call-saved registers also remains the same in
  16525. that the even-numbered double-precision registers are saved.
  16526. Two additional variants of the o32 ABI are supported to enable a
  16527. transition from 32-bit to 64-bit registers. These are FPXX
  16528. ('-mfpxx') and FP64A ('-mfp64' '-mno-odd-spreg'). The FPXX
  16529. extension mandates that all code must execute correctly when run
  16530. using 32-bit or 64-bit registers. The code can be interlinked with
  16531. either FP32 or FP64, but not both. The FP64A extension is similar
  16532. to the FP64 extension but forbids the use of odd-numbered
  16533. single-precision registers. This can be used in conjunction with
  16534. the 'FRE' mode of FPUs in MIPS32R5 processors and allows both FP32
  16535. and FP64A code to interlink and run in the same process without
  16536. changing FPU modes.
  16537. '-mabicalls'
  16538. '-mno-abicalls'
  16539. Generate (do not generate) code that is suitable for SVR4-style
  16540. dynamic objects. '-mabicalls' is the default for SVR4-based
  16541. systems.
  16542. '-mshared'
  16543. '-mno-shared'
  16544. Generate (do not generate) code that is fully position-independent,
  16545. and that can therefore be linked into shared libraries. This
  16546. option only affects '-mabicalls'.
  16547. All '-mabicalls' code has traditionally been position-independent,
  16548. regardless of options like '-fPIC' and '-fpic'. However, as an
  16549. extension, the GNU toolchain allows executables to use absolute
  16550. accesses for locally-binding symbols. It can also use shorter GP
  16551. initialization sequences and generate direct calls to
  16552. locally-defined functions. This mode is selected by '-mno-shared'.
  16553. '-mno-shared' depends on binutils 2.16 or higher and generates
  16554. objects that can only be linked by the GNU linker. However, the
  16555. option does not affect the ABI of the final executable; it only
  16556. affects the ABI of relocatable objects. Using '-mno-shared'
  16557. generally makes executables both smaller and quicker.
  16558. '-mshared' is the default.
  16559. '-mplt'
  16560. '-mno-plt'
  16561. Assume (do not assume) that the static and dynamic linkers support
  16562. PLTs and copy relocations. This option only affects '-mno-shared
  16563. -mabicalls'. For the n64 ABI, this option has no effect without
  16564. '-msym32'.
  16565. You can make '-mplt' the default by configuring GCC with
  16566. '--with-mips-plt'. The default is '-mno-plt' otherwise.
  16567. '-mxgot'
  16568. '-mno-xgot'
  16569. Lift (do not lift) the usual restrictions on the size of the global
  16570. offset table.
  16571. GCC normally uses a single instruction to load values from the GOT.
  16572. While this is relatively efficient, it only works if the GOT is
  16573. smaller than about 64k. Anything larger causes the linker to
  16574. report an error such as:
  16575. relocation truncated to fit: R_MIPS_GOT16 foobar
  16576. If this happens, you should recompile your code with '-mxgot'.
  16577. This works with very large GOTs, although the code is also less
  16578. efficient, since it takes three instructions to fetch the value of
  16579. a global symbol.
  16580. Note that some linkers can create multiple GOTs. If you have such
  16581. a linker, you should only need to use '-mxgot' when a single object
  16582. file accesses more than 64k's worth of GOT entries. Very few do.
  16583. These options have no effect unless GCC is generating position
  16584. independent code.
  16585. '-mgp32'
  16586. Assume that general-purpose registers are 32 bits wide.
  16587. '-mgp64'
  16588. Assume that general-purpose registers are 64 bits wide.
  16589. '-mfp32'
  16590. Assume that floating-point registers are 32 bits wide.
  16591. '-mfp64'
  16592. Assume that floating-point registers are 64 bits wide.
  16593. '-mfpxx'
  16594. Do not assume the width of floating-point registers.
  16595. '-mhard-float'
  16596. Use floating-point coprocessor instructions.
  16597. '-msoft-float'
  16598. Do not use floating-point coprocessor instructions. Implement
  16599. floating-point calculations using library calls instead.
  16600. '-mno-float'
  16601. Equivalent to '-msoft-float', but additionally asserts that the
  16602. program being compiled does not perform any floating-point
  16603. operations. This option is presently supported only by some
  16604. bare-metal MIPS configurations, where it may select a special set
  16605. of libraries that lack all floating-point support (including, for
  16606. example, the floating-point 'printf' formats). If code compiled
  16607. with '-mno-float' accidentally contains floating-point operations,
  16608. it is likely to suffer a link-time or run-time failure.
  16609. '-msingle-float'
  16610. Assume that the floating-point coprocessor only supports
  16611. single-precision operations.
  16612. '-mdouble-float'
  16613. Assume that the floating-point coprocessor supports
  16614. double-precision operations. This is the default.
  16615. '-modd-spreg'
  16616. '-mno-odd-spreg'
  16617. Enable the use of odd-numbered single-precision floating-point
  16618. registers for the o32 ABI. This is the default for processors that
  16619. are known to support these registers. When using the o32 FPXX ABI,
  16620. '-mno-odd-spreg' is set by default.
  16621. '-mabs=2008'
  16622. '-mabs=legacy'
  16623. These options control the treatment of the special not-a-number
  16624. (NaN) IEEE 754 floating-point data with the 'abs.fmt' and 'neg.fmt'
  16625. machine instructions.
  16626. By default or when '-mabs=legacy' is used the legacy treatment is
  16627. selected. In this case these instructions are considered
  16628. arithmetic and avoided where correct operation is required and the
  16629. input operand might be a NaN. A longer sequence of instructions
  16630. that manipulate the sign bit of floating-point datum manually is
  16631. used instead unless the '-ffinite-math-only' option has also been
  16632. specified.
  16633. The '-mabs=2008' option selects the IEEE 754-2008 treatment. In
  16634. this case these instructions are considered non-arithmetic and
  16635. therefore operating correctly in all cases, including in particular
  16636. where the input operand is a NaN. These instructions are therefore
  16637. always used for the respective operations.
  16638. '-mnan=2008'
  16639. '-mnan=legacy'
  16640. These options control the encoding of the special not-a-number
  16641. (NaN) IEEE 754 floating-point data.
  16642. The '-mnan=legacy' option selects the legacy encoding. In this
  16643. case quiet NaNs (qNaNs) are denoted by the first bit of their
  16644. trailing significand field being 0, whereas signaling NaNs (sNaNs)
  16645. are denoted by the first bit of their trailing significand field
  16646. being 1.
  16647. The '-mnan=2008' option selects the IEEE 754-2008 encoding. In
  16648. this case qNaNs are denoted by the first bit of their trailing
  16649. significand field being 1, whereas sNaNs are denoted by the first
  16650. bit of their trailing significand field being 0.
  16651. The default is '-mnan=legacy' unless GCC has been configured with
  16652. '--with-nan=2008'.
  16653. '-mllsc'
  16654. '-mno-llsc'
  16655. Use (do not use) 'll', 'sc', and 'sync' instructions to implement
  16656. atomic memory built-in functions. When neither option is
  16657. specified, GCC uses the instructions if the target architecture
  16658. supports them.
  16659. '-mllsc' is useful if the runtime environment can emulate the
  16660. instructions and '-mno-llsc' can be useful when compiling for
  16661. nonstandard ISAs. You can make either option the default by
  16662. configuring GCC with '--with-llsc' and '--without-llsc'
  16663. respectively. '--with-llsc' is the default for some
  16664. configurations; see the installation documentation for details.
  16665. '-mdsp'
  16666. '-mno-dsp'
  16667. Use (do not use) revision 1 of the MIPS DSP ASE. *Note MIPS DSP
  16668. Built-in Functions::. This option defines the preprocessor macro
  16669. '__mips_dsp'. It also defines '__mips_dsp_rev' to 1.
  16670. '-mdspr2'
  16671. '-mno-dspr2'
  16672. Use (do not use) revision 2 of the MIPS DSP ASE. *Note MIPS DSP
  16673. Built-in Functions::. This option defines the preprocessor macros
  16674. '__mips_dsp' and '__mips_dspr2'. It also defines '__mips_dsp_rev'
  16675. to 2.
  16676. '-msmartmips'
  16677. '-mno-smartmips'
  16678. Use (do not use) the MIPS SmartMIPS ASE.
  16679. '-mpaired-single'
  16680. '-mno-paired-single'
  16681. Use (do not use) paired-single floating-point instructions. *Note
  16682. MIPS Paired-Single Support::. This option requires hardware
  16683. floating-point support to be enabled.
  16684. '-mdmx'
  16685. '-mno-mdmx'
  16686. Use (do not use) MIPS Digital Media Extension instructions. This
  16687. option can only be used when generating 64-bit code and requires
  16688. hardware floating-point support to be enabled.
  16689. '-mips3d'
  16690. '-mno-mips3d'
  16691. Use (do not use) the MIPS-3D ASE. *Note MIPS-3D Built-in
  16692. Functions::. The option '-mips3d' implies '-mpaired-single'.
  16693. '-mmicromips'
  16694. '-mno-micromips'
  16695. Generate (do not generate) microMIPS code.
  16696. MicroMIPS code generation can also be controlled on a per-function
  16697. basis by means of 'micromips' and 'nomicromips' attributes. *Note
  16698. Function Attributes::, for more information.
  16699. '-mmt'
  16700. '-mno-mt'
  16701. Use (do not use) MT Multithreading instructions.
  16702. '-mmcu'
  16703. '-mno-mcu'
  16704. Use (do not use) the MIPS MCU ASE instructions.
  16705. '-meva'
  16706. '-mno-eva'
  16707. Use (do not use) the MIPS Enhanced Virtual Addressing instructions.
  16708. '-mvirt'
  16709. '-mno-virt'
  16710. Use (do not use) the MIPS Virtualization (VZ) instructions.
  16711. '-mxpa'
  16712. '-mno-xpa'
  16713. Use (do not use) the MIPS eXtended Physical Address (XPA)
  16714. instructions.
  16715. '-mcrc'
  16716. '-mno-crc'
  16717. Use (do not use) the MIPS Cyclic Redundancy Check (CRC)
  16718. instructions.
  16719. '-mginv'
  16720. '-mno-ginv'
  16721. Use (do not use) the MIPS Global INValidate (GINV) instructions.
  16722. '-mloongson-mmi'
  16723. '-mno-loongson-mmi'
  16724. Use (do not use) the MIPS Loongson MultiMedia extensions
  16725. Instructions (MMI).
  16726. '-mloongson-ext'
  16727. '-mno-loongson-ext'
  16728. Use (do not use) the MIPS Loongson EXTensions (EXT) instructions.
  16729. '-mloongson-ext2'
  16730. '-mno-loongson-ext2'
  16731. Use (do not use) the MIPS Loongson EXTensions r2 (EXT2)
  16732. instructions.
  16733. '-mlong64'
  16734. Force 'long' types to be 64 bits wide. See '-mlong32' for an
  16735. explanation of the default and the way that the pointer size is
  16736. determined.
  16737. '-mlong32'
  16738. Force 'long', 'int', and pointer types to be 32 bits wide.
  16739. The default size of 'int's, 'long's and pointers depends on the
  16740. ABI. All the supported ABIs use 32-bit 'int's. The n64 ABI uses
  16741. 64-bit 'long's, as does the 64-bit EABI; the others use 32-bit
  16742. 'long's. Pointers are the same size as 'long's, or the same size
  16743. as integer registers, whichever is smaller.
  16744. '-msym32'
  16745. '-mno-sym32'
  16746. Assume (do not assume) that all symbols have 32-bit values,
  16747. regardless of the selected ABI. This option is useful in
  16748. combination with '-mabi=64' and '-mno-abicalls' because it allows
  16749. GCC to generate shorter and faster references to symbolic
  16750. addresses.
  16751. '-G NUM'
  16752. Put definitions of externally-visible data in a small data section
  16753. if that data is no bigger than NUM bytes. GCC can then generate
  16754. more efficient accesses to the data; see '-mgpopt' for details.
  16755. The default '-G' option depends on the configuration.
  16756. '-mlocal-sdata'
  16757. '-mno-local-sdata'
  16758. Extend (do not extend) the '-G' behavior to local data too, such as
  16759. to static variables in C. '-mlocal-sdata' is the default for all
  16760. configurations.
  16761. If the linker complains that an application is using too much small
  16762. data, you might want to try rebuilding the less
  16763. performance-critical parts with '-mno-local-sdata'. You might also
  16764. want to build large libraries with '-mno-local-sdata', so that the
  16765. libraries leave more room for the main program.
  16766. '-mextern-sdata'
  16767. '-mno-extern-sdata'
  16768. Assume (do not assume) that externally-defined data is in a small
  16769. data section if the size of that data is within the '-G' limit.
  16770. '-mextern-sdata' is the default for all configurations.
  16771. If you compile a module MOD with '-mextern-sdata' '-G NUM'
  16772. '-mgpopt', and MOD references a variable VAR that is no bigger than
  16773. NUM bytes, you must make sure that VAR is placed in a small data
  16774. section. If VAR is defined by another module, you must either
  16775. compile that module with a high-enough '-G' setting or attach a
  16776. 'section' attribute to VAR's definition. If VAR is common, you
  16777. must link the application with a high-enough '-G' setting.
  16778. The easiest way of satisfying these restrictions is to compile and
  16779. link every module with the same '-G' option. However, you may wish
  16780. to build a library that supports several different small data
  16781. limits. You can do this by compiling the library with the highest
  16782. supported '-G' setting and additionally using '-mno-extern-sdata'
  16783. to stop the library from making assumptions about
  16784. externally-defined data.
  16785. '-mgpopt'
  16786. '-mno-gpopt'
  16787. Use (do not use) GP-relative accesses for symbols that are known to
  16788. be in a small data section; see '-G', '-mlocal-sdata' and
  16789. '-mextern-sdata'. '-mgpopt' is the default for all configurations.
  16790. '-mno-gpopt' is useful for cases where the '$gp' register might not
  16791. hold the value of '_gp'. For example, if the code is part of a
  16792. library that might be used in a boot monitor, programs that call
  16793. boot monitor routines pass an unknown value in '$gp'. (In such
  16794. situations, the boot monitor itself is usually compiled with
  16795. '-G0'.)
  16796. '-mno-gpopt' implies '-mno-local-sdata' and '-mno-extern-sdata'.
  16797. '-membedded-data'
  16798. '-mno-embedded-data'
  16799. Allocate variables to the read-only data section first if possible,
  16800. then next in the small data section if possible, otherwise in data.
  16801. This gives slightly slower code than the default, but reduces the
  16802. amount of RAM required when executing, and thus may be preferred
  16803. for some embedded systems.
  16804. '-muninit-const-in-rodata'
  16805. '-mno-uninit-const-in-rodata'
  16806. Put uninitialized 'const' variables in the read-only data section.
  16807. This option is only meaningful in conjunction with
  16808. '-membedded-data'.
  16809. '-mcode-readable=SETTING'
  16810. Specify whether GCC may generate code that reads from executable
  16811. sections. There are three possible settings:
  16812. '-mcode-readable=yes'
  16813. Instructions may freely access executable sections. This is
  16814. the default setting.
  16815. '-mcode-readable=pcrel'
  16816. MIPS16 PC-relative load instructions can access executable
  16817. sections, but other instructions must not do so. This option
  16818. is useful on 4KSc and 4KSd processors when the code TLBs have
  16819. the Read Inhibit bit set. It is also useful on processors
  16820. that can be configured to have a dual instruction/data SRAM
  16821. interface and that, like the M4K, automatically redirect
  16822. PC-relative loads to the instruction RAM.
  16823. '-mcode-readable=no'
  16824. Instructions must not access executable sections. This option
  16825. can be useful on targets that are configured to have a dual
  16826. instruction/data SRAM interface but that (unlike the M4K) do
  16827. not automatically redirect PC-relative loads to the
  16828. instruction RAM.
  16829. '-msplit-addresses'
  16830. '-mno-split-addresses'
  16831. Enable (disable) use of the '%hi()' and '%lo()' assembler
  16832. relocation operators. This option has been superseded by
  16833. '-mexplicit-relocs' but is retained for backwards compatibility.
  16834. '-mexplicit-relocs'
  16835. '-mno-explicit-relocs'
  16836. Use (do not use) assembler relocation operators when dealing with
  16837. symbolic addresses. The alternative, selected by
  16838. '-mno-explicit-relocs', is to use assembler macros instead.
  16839. '-mexplicit-relocs' is the default if GCC was configured to use an
  16840. assembler that supports relocation operators.
  16841. '-mcheck-zero-division'
  16842. '-mno-check-zero-division'
  16843. Trap (do not trap) on integer division by zero.
  16844. The default is '-mcheck-zero-division'.
  16845. '-mdivide-traps'
  16846. '-mdivide-breaks'
  16847. MIPS systems check for division by zero by generating either a
  16848. conditional trap or a break instruction. Using traps results in
  16849. smaller code, but is only supported on MIPS II and later. Also,
  16850. some versions of the Linux kernel have a bug that prevents trap
  16851. from generating the proper signal ('SIGFPE'). Use '-mdivide-traps'
  16852. to allow conditional traps on architectures that support them and
  16853. '-mdivide-breaks' to force the use of breaks.
  16854. The default is usually '-mdivide-traps', but this can be overridden
  16855. at configure time using '--with-divide=breaks'. Divide-by-zero
  16856. checks can be completely disabled using '-mno-check-zero-division'.
  16857. '-mload-store-pairs'
  16858. '-mno-load-store-pairs'
  16859. Enable (disable) an optimization that pairs consecutive load or
  16860. store instructions to enable load/store bonding. This option is
  16861. enabled by default but only takes effect when the selected
  16862. architecture is known to support bonding.
  16863. '-mmemcpy'
  16864. '-mno-memcpy'
  16865. Force (do not force) the use of 'memcpy' for non-trivial block
  16866. moves. The default is '-mno-memcpy', which allows GCC to inline
  16867. most constant-sized copies.
  16868. '-mlong-calls'
  16869. '-mno-long-calls'
  16870. Disable (do not disable) use of the 'jal' instruction. Calling
  16871. functions using 'jal' is more efficient but requires the caller and
  16872. callee to be in the same 256 megabyte segment.
  16873. This option has no effect on abicalls code. The default is
  16874. '-mno-long-calls'.
  16875. '-mmad'
  16876. '-mno-mad'
  16877. Enable (disable) use of the 'mad', 'madu' and 'mul' instructions,
  16878. as provided by the R4650 ISA.
  16879. '-mimadd'
  16880. '-mno-imadd'
  16881. Enable (disable) use of the 'madd' and 'msub' integer instructions.
  16882. The default is '-mimadd' on architectures that support 'madd' and
  16883. 'msub' except for the 74k architecture where it was found to
  16884. generate slower code.
  16885. '-mfused-madd'
  16886. '-mno-fused-madd'
  16887. Enable (disable) use of the floating-point multiply-accumulate
  16888. instructions, when they are available. The default is
  16889. '-mfused-madd'.
  16890. On the R8000 CPU when multiply-accumulate instructions are used,
  16891. the intermediate product is calculated to infinite precision and is
  16892. not subject to the FCSR Flush to Zero bit. This may be undesirable
  16893. in some circumstances. On other processors the result is
  16894. numerically identical to the equivalent computation using separate
  16895. multiply, add, subtract and negate instructions.
  16896. '-nocpp'
  16897. Tell the MIPS assembler to not run its preprocessor over user
  16898. assembler files (with a '.s' suffix) when assembling them.
  16899. '-mfix-24k'
  16900. '-mno-fix-24k'
  16901. Work around the 24K E48 (lost data on stores during refill) errata.
  16902. The workarounds are implemented by the assembler rather than by
  16903. GCC.
  16904. '-mfix-r4000'
  16905. '-mno-fix-r4000'
  16906. Work around certain R4000 CPU errata:
  16907. - A double-word or a variable shift may give an incorrect result
  16908. if executed immediately after starting an integer division.
  16909. - A double-word or a variable shift may give an incorrect result
  16910. if executed while an integer multiplication is in progress.
  16911. - An integer division may give an incorrect result if started in
  16912. a delay slot of a taken branch or a jump.
  16913. '-mfix-r4400'
  16914. '-mno-fix-r4400'
  16915. Work around certain R4400 CPU errata:
  16916. - A double-word or a variable shift may give an incorrect result
  16917. if executed immediately after starting an integer division.
  16918. '-mfix-r10000'
  16919. '-mno-fix-r10000'
  16920. Work around certain R10000 errata:
  16921. - 'll'/'sc' sequences may not behave atomically on revisions
  16922. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  16923. This option can only be used if the target architecture supports
  16924. branch-likely instructions. '-mfix-r10000' is the default when
  16925. '-march=r10000' is used; '-mno-fix-r10000' is the default
  16926. otherwise.
  16927. '-mfix-r5900'
  16928. '-mno-fix-r5900'
  16929. Do not attempt to schedule the preceding instruction into the delay
  16930. slot of a branch instruction placed at the end of a short loop of
  16931. six instructions or fewer and always schedule a 'nop' instruction
  16932. there instead. The short loop bug under certain conditions causes
  16933. loops to execute only once or twice, due to a hardware bug in the
  16934. R5900 chip. The workaround is implemented by the assembler rather
  16935. than by GCC.
  16936. '-mfix-rm7000'
  16937. '-mno-fix-rm7000'
  16938. Work around the RM7000 'dmult'/'dmultu' errata. The workarounds
  16939. are implemented by the assembler rather than by GCC.
  16940. '-mfix-vr4120'
  16941. '-mno-fix-vr4120'
  16942. Work around certain VR4120 errata:
  16943. - 'dmultu' does not always produce the correct result.
  16944. - 'div' and 'ddiv' do not always produce the correct result if
  16945. one of the operands is negative.
  16946. The workarounds for the division errata rely on special functions
  16947. in 'libgcc.a'. At present, these functions are only provided by
  16948. the 'mips64vr*-elf' configurations.
  16949. Other VR4120 errata require a NOP to be inserted between certain
  16950. pairs of instructions. These errata are handled by the assembler,
  16951. not by GCC itself.
  16952. '-mfix-vr4130'
  16953. Work around the VR4130 'mflo'/'mfhi' errata. The workarounds are
  16954. implemented by the assembler rather than by GCC, although GCC
  16955. avoids using 'mflo' and 'mfhi' if the VR4130 'macc', 'macchi',
  16956. 'dmacc' and 'dmacchi' instructions are available instead.
  16957. '-mfix-sb1'
  16958. '-mno-fix-sb1'
  16959. Work around certain SB-1 CPU core errata. (This flag currently
  16960. works around the SB-1 revision 2 "F1" and "F2" floating-point
  16961. errata.)
  16962. '-mr10k-cache-barrier=SETTING'
  16963. Specify whether GCC should insert cache barriers to avoid the side
  16964. effects of speculation on R10K processors.
  16965. In common with many processors, the R10K tries to predict the
  16966. outcome of a conditional branch and speculatively executes
  16967. instructions from the "taken" branch. It later aborts these
  16968. instructions if the predicted outcome is wrong. However, on the
  16969. R10K, even aborted instructions can have side effects.
  16970. This problem only affects kernel stores and, depending on the
  16971. system, kernel loads. As an example, a speculatively-executed
  16972. store may load the target memory into cache and mark the cache line
  16973. as dirty, even if the store itself is later aborted. If a DMA
  16974. operation writes to the same area of memory before the "dirty" line
  16975. is flushed, the cached data overwrites the DMA-ed data. See the
  16976. R10K processor manual for a full description, including other
  16977. potential problems.
  16978. One workaround is to insert cache barrier instructions before every
  16979. memory access that might be speculatively executed and that might
  16980. have side effects even if aborted. '-mr10k-cache-barrier=SETTING'
  16981. controls GCC's implementation of this workaround. It assumes that
  16982. aborted accesses to any byte in the following regions does not have
  16983. side effects:
  16984. 1. the memory occupied by the current function's stack frame;
  16985. 2. the memory occupied by an incoming stack argument;
  16986. 3. the memory occupied by an object with a link-time-constant
  16987. address.
  16988. It is the kernel's responsibility to ensure that speculative
  16989. accesses to these regions are indeed safe.
  16990. If the input program contains a function declaration such as:
  16991. void foo (void);
  16992. then the implementation of 'foo' must allow 'j foo' and 'jal foo'
  16993. to be executed speculatively. GCC honors this restriction for
  16994. functions it compiles itself. It expects non-GCC functions (such
  16995. as hand-written assembly code) to do the same.
  16996. The option has three forms:
  16997. '-mr10k-cache-barrier=load-store'
  16998. Insert a cache barrier before a load or store that might be
  16999. speculatively executed and that might have side effects even
  17000. if aborted.
  17001. '-mr10k-cache-barrier=store'
  17002. Insert a cache barrier before a store that might be
  17003. speculatively executed and that might have side effects even
  17004. if aborted.
  17005. '-mr10k-cache-barrier=none'
  17006. Disable the insertion of cache barriers. This is the default
  17007. setting.
  17008. '-mflush-func=FUNC'
  17009. '-mno-flush-func'
  17010. Specifies the function to call to flush the I and D caches, or to
  17011. not call any such function. If called, the function must take the
  17012. same arguments as the common '_flush_func', that is, the address of
  17013. the memory range for which the cache is being flushed, the size of
  17014. the memory range, and the number 3 (to flush both caches). The
  17015. default depends on the target GCC was configured for, but commonly
  17016. is either '_flush_func' or '__cpu_flush'.
  17017. 'mbranch-cost=NUM'
  17018. Set the cost of branches to roughly NUM "simple" instructions.
  17019. This cost is only a heuristic and is not guaranteed to produce
  17020. consistent results across releases. A zero cost redundantly
  17021. selects the default, which is based on the '-mtune' setting.
  17022. '-mbranch-likely'
  17023. '-mno-branch-likely'
  17024. Enable or disable use of Branch Likely instructions, regardless of
  17025. the default for the selected architecture. By default, Branch
  17026. Likely instructions may be generated if they are supported by the
  17027. selected architecture. An exception is for the MIPS32 and MIPS64
  17028. architectures and processors that implement those architectures;
  17029. for those, Branch Likely instructions are not be generated by
  17030. default because the MIPS32 and MIPS64 architectures specifically
  17031. deprecate their use.
  17032. '-mcompact-branches=never'
  17033. '-mcompact-branches=optimal'
  17034. '-mcompact-branches=always'
  17035. These options control which form of branches will be generated.
  17036. The default is '-mcompact-branches=optimal'.
  17037. The '-mcompact-branches=never' option ensures that compact branch
  17038. instructions will never be generated.
  17039. The '-mcompact-branches=always' option ensures that a compact
  17040. branch instruction will be generated if available. If a compact
  17041. branch instruction is not available, a delay slot form of the
  17042. branch will be used instead.
  17043. This option is supported from MIPS Release 6 onwards.
  17044. The '-mcompact-branches=optimal' option will cause a delay slot
  17045. branch to be used if one is available in the current ISA and the
  17046. delay slot is successfully filled. If the delay slot is not
  17047. filled, a compact branch will be chosen if one is available.
  17048. '-mfp-exceptions'
  17049. '-mno-fp-exceptions'
  17050. Specifies whether FP exceptions are enabled. This affects how FP
  17051. instructions are scheduled for some processors. The default is
  17052. that FP exceptions are enabled.
  17053. For instance, on the SB-1, if FP exceptions are disabled, and we
  17054. are emitting 64-bit code, then we can use both FP pipes.
  17055. Otherwise, we can only use one FP pipe.
  17056. '-mvr4130-align'
  17057. '-mno-vr4130-align'
  17058. The VR4130 pipeline is two-way superscalar, but can only issue two
  17059. instructions together if the first one is 8-byte aligned. When
  17060. this option is enabled, GCC aligns pairs of instructions that it
  17061. thinks should execute in parallel.
  17062. This option only has an effect when optimizing for the VR4130. It
  17063. normally makes code faster, but at the expense of making it bigger.
  17064. It is enabled by default at optimization level '-O3'.
  17065. '-msynci'
  17066. '-mno-synci'
  17067. Enable (disable) generation of 'synci' instructions on
  17068. architectures that support it. The 'synci' instructions (if
  17069. enabled) are generated when '__builtin___clear_cache' is compiled.
  17070. This option defaults to '-mno-synci', but the default can be
  17071. overridden by configuring GCC with '--with-synci'.
  17072. When compiling code for single processor systems, it is generally
  17073. safe to use 'synci'. However, on many multi-core (SMP) systems, it
  17074. does not invalidate the instruction caches on all cores and may
  17075. lead to undefined behavior.
  17076. '-mrelax-pic-calls'
  17077. '-mno-relax-pic-calls'
  17078. Try to turn PIC calls that are normally dispatched via register
  17079. '$25' into direct calls. This is only possible if the linker can
  17080. resolve the destination at link time and if the destination is
  17081. within range for a direct call.
  17082. '-mrelax-pic-calls' is the default if GCC was configured to use an
  17083. assembler and a linker that support the '.reloc' assembly directive
  17084. and '-mexplicit-relocs' is in effect. With '-mno-explicit-relocs',
  17085. this optimization can be performed by the assembler and the linker
  17086. alone without help from the compiler.
  17087. '-mmcount-ra-address'
  17088. '-mno-mcount-ra-address'
  17089. Emit (do not emit) code that allows '_mcount' to modify the calling
  17090. function's return address. When enabled, this option extends the
  17091. usual '_mcount' interface with a new RA-ADDRESS parameter, which
  17092. has type 'intptr_t *' and is passed in register '$12'. '_mcount'
  17093. can then modify the return address by doing both of the following:
  17094. * Returning the new address in register '$31'.
  17095. * Storing the new address in '*RA-ADDRESS', if RA-ADDRESS is
  17096. nonnull.
  17097. The default is '-mno-mcount-ra-address'.
  17098. '-mframe-header-opt'
  17099. '-mno-frame-header-opt'
  17100. Enable (disable) frame header optimization in the o32 ABI. When
  17101. using the o32 ABI, calling functions will allocate 16 bytes on the
  17102. stack for the called function to write out register arguments.
  17103. When enabled, this optimization will suppress the allocation of the
  17104. frame header if it can be determined that it is unused.
  17105. This optimization is off by default at all optimization levels.
  17106. '-mlxc1-sxc1'
  17107. '-mno-lxc1-sxc1'
  17108. When applicable, enable (disable) the generation of 'lwxc1',
  17109. 'swxc1', 'ldxc1', 'sdxc1' instructions. Enabled by default.
  17110. '-mmadd4'
  17111. '-mno-madd4'
  17112. When applicable, enable (disable) the generation of 4-operand
  17113. 'madd.s', 'madd.d' and related instructions. Enabled by default.
  17114. 
  17115. File: gcc.info, Node: MMIX Options, Next: MN10300 Options, Prev: MIPS Options, Up: Submodel Options
  17116. 3.18.29 MMIX Options
  17117. --------------------
  17118. These options are defined for the MMIX:
  17119. '-mlibfuncs'
  17120. '-mno-libfuncs'
  17121. Specify that intrinsic library functions are being compiled,
  17122. passing all values in registers, no matter the size.
  17123. '-mepsilon'
  17124. '-mno-epsilon'
  17125. Generate floating-point comparison instructions that compare with
  17126. respect to the 'rE' epsilon register.
  17127. '-mabi=mmixware'
  17128. '-mabi=gnu'
  17129. Generate code that passes function parameters and return values
  17130. that (in the called function) are seen as registers '$0' and up, as
  17131. opposed to the GNU ABI which uses global registers '$231' and up.
  17132. '-mzero-extend'
  17133. '-mno-zero-extend'
  17134. When reading data from memory in sizes shorter than 64 bits, use
  17135. (do not use) zero-extending load instructions by default, rather
  17136. than sign-extending ones.
  17137. '-mknuthdiv'
  17138. '-mno-knuthdiv'
  17139. Make the result of a division yielding a remainder have the same
  17140. sign as the divisor. With the default, '-mno-knuthdiv', the sign
  17141. of the remainder follows the sign of the dividend. Both methods
  17142. are arithmetically valid, the latter being almost exclusively used.
  17143. '-mtoplevel-symbols'
  17144. '-mno-toplevel-symbols'
  17145. Prepend (do not prepend) a ':' to all global symbols, so the
  17146. assembly code can be used with the 'PREFIX' assembly directive.
  17147. '-melf'
  17148. Generate an executable in the ELF format, rather than the default
  17149. 'mmo' format used by the 'mmix' simulator.
  17150. '-mbranch-predict'
  17151. '-mno-branch-predict'
  17152. Use (do not use) the probable-branch instructions, when static
  17153. branch prediction indicates a probable branch.
  17154. '-mbase-addresses'
  17155. '-mno-base-addresses'
  17156. Generate (do not generate) code that uses _base addresses_. Using
  17157. a base address automatically generates a request (handled by the
  17158. assembler and the linker) for a constant to be set up in a global
  17159. register. The register is used for one or more base address
  17160. requests within the range 0 to 255 from the value held in the
  17161. register. The generally leads to short and fast code, but the
  17162. number of different data items that can be addressed is limited.
  17163. This means that a program that uses lots of static data may require
  17164. '-mno-base-addresses'.
  17165. '-msingle-exit'
  17166. '-mno-single-exit'
  17167. Force (do not force) generated code to have a single exit point in
  17168. each function.
  17169. 
  17170. File: gcc.info, Node: MN10300 Options, Next: Moxie Options, Prev: MMIX Options, Up: Submodel Options
  17171. 3.18.30 MN10300 Options
  17172. -----------------------
  17173. These '-m' options are defined for Matsushita MN10300 architectures:
  17174. '-mmult-bug'
  17175. Generate code to avoid bugs in the multiply instructions for the
  17176. MN10300 processors. This is the default.
  17177. '-mno-mult-bug'
  17178. Do not generate code to avoid bugs in the multiply instructions for
  17179. the MN10300 processors.
  17180. '-mam33'
  17181. Generate code using features specific to the AM33 processor.
  17182. '-mno-am33'
  17183. Do not generate code using features specific to the AM33 processor.
  17184. This is the default.
  17185. '-mam33-2'
  17186. Generate code using features specific to the AM33/2.0 processor.
  17187. '-mam34'
  17188. Generate code using features specific to the AM34 processor.
  17189. '-mtune=CPU-TYPE'
  17190. Use the timing characteristics of the indicated CPU type when
  17191. scheduling instructions. This does not change the targeted
  17192. processor type. The CPU type must be one of 'mn10300', 'am33',
  17193. 'am33-2' or 'am34'.
  17194. '-mreturn-pointer-on-d0'
  17195. When generating a function that returns a pointer, return the
  17196. pointer in both 'a0' and 'd0'. Otherwise, the pointer is returned
  17197. only in 'a0', and attempts to call such functions without a
  17198. prototype result in errors. Note that this option is on by
  17199. default; use '-mno-return-pointer-on-d0' to disable it.
  17200. '-mno-crt0'
  17201. Do not link in the C run-time initialization object file.
  17202. '-mrelax'
  17203. Indicate to the linker that it should perform a relaxation
  17204. optimization pass to shorten branches, calls and absolute memory
  17205. addresses. This option only has an effect when used on the command
  17206. line for the final link step.
  17207. This option makes symbolic debugging impossible.
  17208. '-mliw'
  17209. Allow the compiler to generate _Long Instruction Word_ instructions
  17210. if the target is the 'AM33' or later. This is the default. This
  17211. option defines the preprocessor macro '__LIW__'.
  17212. '-mno-liw'
  17213. Do not allow the compiler to generate _Long Instruction Word_
  17214. instructions. This option defines the preprocessor macro
  17215. '__NO_LIW__'.
  17216. '-msetlb'
  17217. Allow the compiler to generate the _SETLB_ and _Lcc_ instructions
  17218. if the target is the 'AM33' or later. This is the default. This
  17219. option defines the preprocessor macro '__SETLB__'.
  17220. '-mno-setlb'
  17221. Do not allow the compiler to generate _SETLB_ or _Lcc_
  17222. instructions. This option defines the preprocessor macro
  17223. '__NO_SETLB__'.
  17224. 
  17225. File: gcc.info, Node: Moxie Options, Next: MSP430 Options, Prev: MN10300 Options, Up: Submodel Options
  17226. 3.18.31 Moxie Options
  17227. ---------------------
  17228. '-meb'
  17229. Generate big-endian code. This is the default for 'moxie-*-*'
  17230. configurations.
  17231. '-mel'
  17232. Generate little-endian code.
  17233. '-mmul.x'
  17234. Generate mul.x and umul.x instructions. This is the default for
  17235. 'moxiebox-*-*' configurations.
  17236. '-mno-crt0'
  17237. Do not link in the C run-time initialization object file.
  17238. 
  17239. File: gcc.info, Node: MSP430 Options, Next: NDS32 Options, Prev: Moxie Options, Up: Submodel Options
  17240. 3.18.32 MSP430 Options
  17241. ----------------------
  17242. These options are defined for the MSP430:
  17243. '-masm-hex'
  17244. Force assembly output to always use hex constants. Normally such
  17245. constants are signed decimals, but this option is available for
  17246. testsuite and/or aesthetic purposes.
  17247. '-mmcu='
  17248. Select the MCU to target. This is used to create a C preprocessor
  17249. symbol based upon the MCU name, converted to upper case and pre-
  17250. and post-fixed with '__'. This in turn is used by the 'msp430.h'
  17251. header file to select an MCU-specific supplementary header file.
  17252. The option also sets the ISA to use. If the MCU name is one that
  17253. is known to only support the 430 ISA then that is selected,
  17254. otherwise the 430X ISA is selected. A generic MCU name of 'msp430'
  17255. can also be used to select the 430 ISA. Similarly the generic
  17256. 'msp430x' MCU name selects the 430X ISA.
  17257. In addition an MCU-specific linker script is added to the linker
  17258. command line. The script's name is the name of the MCU with '.ld'
  17259. appended. Thus specifying '-mmcu=xxx' on the 'gcc' command line
  17260. defines the C preprocessor symbol '__XXX__' and cause the linker to
  17261. search for a script called 'xxx.ld'.
  17262. This option is also passed on to the assembler.
  17263. '-mwarn-mcu'
  17264. '-mno-warn-mcu'
  17265. This option enables or disables warnings about conflicts between
  17266. the MCU name specified by the '-mmcu' option and the ISA set by the
  17267. '-mcpu' option and/or the hardware multiply support set by the
  17268. '-mhwmult' option. It also toggles warnings about unrecognized MCU
  17269. names. This option is on by default.
  17270. '-mcpu='
  17271. Specifies the ISA to use. Accepted values are 'msp430', 'msp430x'
  17272. and 'msp430xv2'. This option is deprecated. The '-mmcu=' option
  17273. should be used to select the ISA.
  17274. '-msim'
  17275. Link to the simulator runtime libraries and linker script.
  17276. Overrides any scripts that would be selected by the '-mmcu='
  17277. option.
  17278. '-mlarge'
  17279. Use large-model addressing (20-bit pointers, 32-bit 'size_t').
  17280. '-msmall'
  17281. Use small-model addressing (16-bit pointers, 16-bit 'size_t').
  17282. '-mrelax'
  17283. This option is passed to the assembler and linker, and allows the
  17284. linker to perform certain optimizations that cannot be done until
  17285. the final link.
  17286. 'mhwmult='
  17287. Describes the type of hardware multiply supported by the target.
  17288. Accepted values are 'none' for no hardware multiply, '16bit' for
  17289. the original 16-bit-only multiply supported by early MCUs. '32bit'
  17290. for the 16/32-bit multiply supported by later MCUs and 'f5series'
  17291. for the 16/32-bit multiply supported by F5-series MCUs. A value of
  17292. 'auto' can also be given. This tells GCC to deduce the hardware
  17293. multiply support based upon the MCU name provided by the '-mmcu'
  17294. option. If no '-mmcu' option is specified or if the MCU name is
  17295. not recognized then no hardware multiply support is assumed.
  17296. 'auto' is the default setting.
  17297. Hardware multiplies are normally performed by calling a library
  17298. routine. This saves space in the generated code. When compiling
  17299. at '-O3' or higher however the hardware multiplier is invoked
  17300. inline. This makes for bigger, but faster code.
  17301. The hardware multiply routines disable interrupts whilst running
  17302. and restore the previous interrupt state when they finish. This
  17303. makes them safe to use inside interrupt handlers as well as in
  17304. normal code.
  17305. '-minrt'
  17306. Enable the use of a minimum runtime environment - no static
  17307. initializers or constructors. This is intended for
  17308. memory-constrained devices. The compiler includes special symbols
  17309. in some objects that tell the linker and runtime which code
  17310. fragments are required.
  17311. '-mcode-region='
  17312. '-mdata-region='
  17313. These options tell the compiler where to place functions and data
  17314. that do not have one of the 'lower', 'upper', 'either' or 'section'
  17315. attributes. Possible values are 'lower', 'upper', 'either' or
  17316. 'any'. The first three behave like the corresponding attribute.
  17317. The fourth possible value - 'any' - is the default. It leaves
  17318. placement entirely up to the linker script and how it assigns the
  17319. standard sections ('.text', '.data', etc) to the memory regions.
  17320. '-msilicon-errata='
  17321. This option passes on a request to assembler to enable the fixes
  17322. for the named silicon errata.
  17323. '-msilicon-errata-warn='
  17324. This option passes on a request to the assembler to enable warning
  17325. messages when a silicon errata might need to be applied.
  17326. 
  17327. File: gcc.info, Node: NDS32 Options, Next: Nios II Options, Prev: MSP430 Options, Up: Submodel Options
  17328. 3.18.33 NDS32 Options
  17329. ---------------------
  17330. These options are defined for NDS32 implementations:
  17331. '-mbig-endian'
  17332. Generate code in big-endian mode.
  17333. '-mlittle-endian'
  17334. Generate code in little-endian mode.
  17335. '-mreduced-regs'
  17336. Use reduced-set registers for register allocation.
  17337. '-mfull-regs'
  17338. Use full-set registers for register allocation.
  17339. '-mcmov'
  17340. Generate conditional move instructions.
  17341. '-mno-cmov'
  17342. Do not generate conditional move instructions.
  17343. '-mext-perf'
  17344. Generate performance extension instructions.
  17345. '-mno-ext-perf'
  17346. Do not generate performance extension instructions.
  17347. '-mext-perf2'
  17348. Generate performance extension 2 instructions.
  17349. '-mno-ext-perf2'
  17350. Do not generate performance extension 2 instructions.
  17351. '-mext-string'
  17352. Generate string extension instructions.
  17353. '-mno-ext-string'
  17354. Do not generate string extension instructions.
  17355. '-mv3push'
  17356. Generate v3 push25/pop25 instructions.
  17357. '-mno-v3push'
  17358. Do not generate v3 push25/pop25 instructions.
  17359. '-m16-bit'
  17360. Generate 16-bit instructions.
  17361. '-mno-16-bit'
  17362. Do not generate 16-bit instructions.
  17363. '-misr-vector-size=NUM'
  17364. Specify the size of each interrupt vector, which must be 4 or 16.
  17365. '-mcache-block-size=NUM'
  17366. Specify the size of each cache block, which must be a power of 2
  17367. between 4 and 512.
  17368. '-march=ARCH'
  17369. Specify the name of the target architecture.
  17370. '-mcmodel=CODE-MODEL'
  17371. Set the code model to one of
  17372. 'small'
  17373. All the data and read-only data segments must be within 512KB
  17374. addressing space. The text segment must be within 16MB
  17375. addressing space.
  17376. 'medium'
  17377. The data segment must be within 512KB while the read-only data
  17378. segment can be within 4GB addressing space. The text segment
  17379. should be still within 16MB addressing space.
  17380. 'large'
  17381. All the text and data segments can be within 4GB addressing
  17382. space.
  17383. '-mctor-dtor'
  17384. Enable constructor/destructor feature.
  17385. '-mrelax'
  17386. Guide linker to relax instructions.
  17387. 
  17388. File: gcc.info, Node: Nios II Options, Next: Nvidia PTX Options, Prev: NDS32 Options, Up: Submodel Options
  17389. 3.18.34 Nios II Options
  17390. -----------------------
  17391. These are the options defined for the Altera Nios II processor.
  17392. '-G NUM'
  17393. Put global and static objects less than or equal to NUM bytes into
  17394. the small data or BSS sections instead of the normal data or BSS
  17395. sections. The default value of NUM is 8.
  17396. '-mgpopt=OPTION'
  17397. '-mgpopt'
  17398. '-mno-gpopt'
  17399. Generate (do not generate) GP-relative accesses. The following
  17400. OPTION names are recognized:
  17401. 'none'
  17402. Do not generate GP-relative accesses.
  17403. 'local'
  17404. Generate GP-relative accesses for small data objects that are
  17405. not external, weak, or uninitialized common symbols. Also use
  17406. GP-relative addressing for objects that have been explicitly
  17407. placed in a small data section via a 'section' attribute.
  17408. 'global'
  17409. As for 'local', but also generate GP-relative accesses for
  17410. small data objects that are external, weak, or common. If you
  17411. use this option, you must ensure that all parts of your
  17412. program (including libraries) are compiled with the same '-G'
  17413. setting.
  17414. 'data'
  17415. Generate GP-relative accesses for all data objects in the
  17416. program. If you use this option, the entire data and BSS
  17417. segments of your program must fit in 64K of memory and you
  17418. must use an appropriate linker script to allocate them within
  17419. the addressable range of the global pointer.
  17420. 'all'
  17421. Generate GP-relative addresses for function pointers as well
  17422. as data pointers. If you use this option, the entire text,
  17423. data, and BSS segments of your program must fit in 64K of
  17424. memory and you must use an appropriate linker script to
  17425. allocate them within the addressable range of the global
  17426. pointer.
  17427. '-mgpopt' is equivalent to '-mgpopt=local', and '-mno-gpopt' is
  17428. equivalent to '-mgpopt=none'.
  17429. The default is '-mgpopt' except when '-fpic' or '-fPIC' is
  17430. specified to generate position-independent code. Note that the
  17431. Nios II ABI does not permit GP-relative accesses from shared
  17432. libraries.
  17433. You may need to specify '-mno-gpopt' explicitly when building
  17434. programs that include large amounts of small data, including large
  17435. GOT data sections. In this case, the 16-bit offset for GP-relative
  17436. addressing may not be large enough to allow access to the entire
  17437. small data section.
  17438. '-mgprel-sec=REGEXP'
  17439. This option specifies additional section names that can be accessed
  17440. via GP-relative addressing. It is most useful in conjunction with
  17441. 'section' attributes on variable declarations (*note Common
  17442. Variable Attributes::) and a custom linker script. The REGEXP is a
  17443. POSIX Extended Regular Expression.
  17444. This option does not affect the behavior of the '-G' option, and
  17445. the specified sections are in addition to the standard '.sdata' and
  17446. '.sbss' small-data sections that are recognized by '-mgpopt'.
  17447. '-mr0rel-sec=REGEXP'
  17448. This option specifies names of sections that can be accessed via a
  17449. 16-bit offset from 'r0'; that is, in the low 32K or high 32K of the
  17450. 32-bit address space. It is most useful in conjunction with
  17451. 'section' attributes on variable declarations (*note Common
  17452. Variable Attributes::) and a custom linker script. The REGEXP is a
  17453. POSIX Extended Regular Expression.
  17454. In contrast to the use of GP-relative addressing for small data,
  17455. zero-based addressing is never generated by default and there are
  17456. no conventional section names used in standard linker scripts for
  17457. sections in the low or high areas of memory.
  17458. '-mel'
  17459. '-meb'
  17460. Generate little-endian (default) or big-endian (experimental) code,
  17461. respectively.
  17462. '-march=ARCH'
  17463. This specifies the name of the target Nios II architecture. GCC
  17464. uses this name to determine what kind of instructions it can emit
  17465. when generating assembly code. Permissible names are: 'r1', 'r2'.
  17466. The preprocessor macro '__nios2_arch__' is available to programs,
  17467. with value 1 or 2, indicating the targeted ISA level.
  17468. '-mbypass-cache'
  17469. '-mno-bypass-cache'
  17470. Force all load and store instructions to always bypass cache by
  17471. using I/O variants of the instructions. The default is not to
  17472. bypass the cache.
  17473. '-mno-cache-volatile'
  17474. '-mcache-volatile'
  17475. Volatile memory access bypass the cache using the I/O variants of
  17476. the load and store instructions. The default is not to bypass the
  17477. cache.
  17478. '-mno-fast-sw-div'
  17479. '-mfast-sw-div'
  17480. Do not use table-based fast divide for small numbers. The default
  17481. is to use the fast divide at '-O3' and above.
  17482. '-mno-hw-mul'
  17483. '-mhw-mul'
  17484. '-mno-hw-mulx'
  17485. '-mhw-mulx'
  17486. '-mno-hw-div'
  17487. '-mhw-div'
  17488. Enable or disable emitting 'mul', 'mulx' and 'div' family of
  17489. instructions by the compiler. The default is to emit 'mul' and not
  17490. emit 'div' and 'mulx'.
  17491. '-mbmx'
  17492. '-mno-bmx'
  17493. '-mcdx'
  17494. '-mno-cdx'
  17495. Enable or disable generation of Nios II R2 BMX (bit manipulation)
  17496. and CDX (code density) instructions. Enabling these instructions
  17497. also requires '-march=r2'. Since these instructions are optional
  17498. extensions to the R2 architecture, the default is not to emit them.
  17499. '-mcustom-INSN=N'
  17500. '-mno-custom-INSN'
  17501. Each '-mcustom-INSN=N' option enables use of a custom instruction
  17502. with encoding N when generating code that uses INSN. For example,
  17503. '-mcustom-fadds=253' generates custom instruction 253 for
  17504. single-precision floating-point add operations instead of the
  17505. default behavior of using a library call.
  17506. The following values of INSN are supported. Except as otherwise
  17507. noted, floating-point operations are expected to be implemented
  17508. with normal IEEE 754 semantics and correspond directly to the C
  17509. operators or the equivalent GCC built-in functions (*note Other
  17510. Builtins::).
  17511. Single-precision floating point:
  17512. 'fadds', 'fsubs', 'fdivs', 'fmuls'
  17513. Binary arithmetic operations.
  17514. 'fnegs'
  17515. Unary negation.
  17516. 'fabss'
  17517. Unary absolute value.
  17518. 'fcmpeqs', 'fcmpges', 'fcmpgts', 'fcmples', 'fcmplts', 'fcmpnes'
  17519. Comparison operations.
  17520. 'fmins', 'fmaxs'
  17521. Floating-point minimum and maximum. These instructions are
  17522. only generated if '-ffinite-math-only' is specified.
  17523. 'fsqrts'
  17524. Unary square root operation.
  17525. 'fcoss', 'fsins', 'ftans', 'fatans', 'fexps', 'flogs'
  17526. Floating-point trigonometric and exponential functions. These
  17527. instructions are only generated if
  17528. '-funsafe-math-optimizations' is also specified.
  17529. Double-precision floating point:
  17530. 'faddd', 'fsubd', 'fdivd', 'fmuld'
  17531. Binary arithmetic operations.
  17532. 'fnegd'
  17533. Unary negation.
  17534. 'fabsd'
  17535. Unary absolute value.
  17536. 'fcmpeqd', 'fcmpged', 'fcmpgtd', 'fcmpled', 'fcmpltd', 'fcmpned'
  17537. Comparison operations.
  17538. 'fmind', 'fmaxd'
  17539. Double-precision minimum and maximum. These instructions are
  17540. only generated if '-ffinite-math-only' is specified.
  17541. 'fsqrtd'
  17542. Unary square root operation.
  17543. 'fcosd', 'fsind', 'ftand', 'fatand', 'fexpd', 'flogd'
  17544. Double-precision trigonometric and exponential functions.
  17545. These instructions are only generated if
  17546. '-funsafe-math-optimizations' is also specified.
  17547. Conversions:
  17548. 'fextsd'
  17549. Conversion from single precision to double precision.
  17550. 'ftruncds'
  17551. Conversion from double precision to single precision.
  17552. 'fixsi', 'fixsu', 'fixdi', 'fixdu'
  17553. Conversion from floating point to signed or unsigned integer
  17554. types, with truncation towards zero.
  17555. 'round'
  17556. Conversion from single-precision floating point to signed
  17557. integer, rounding to the nearest integer and ties away from
  17558. zero. This corresponds to the '__builtin_lroundf' function
  17559. when '-fno-math-errno' is used.
  17560. 'floatis', 'floatus', 'floatid', 'floatud'
  17561. Conversion from signed or unsigned integer types to
  17562. floating-point types.
  17563. In addition, all of the following transfer instructions for
  17564. internal registers X and Y must be provided to use any of the
  17565. double-precision floating-point instructions. Custom instructions
  17566. taking two double-precision source operands expect the first
  17567. operand in the 64-bit register X. The other operand (or only
  17568. operand of a unary operation) is given to the custom arithmetic
  17569. instruction with the least significant half in source register SRC1
  17570. and the most significant half in SRC2. A custom instruction that
  17571. returns a double-precision result returns the most significant 32
  17572. bits in the destination register and the other half in 32-bit
  17573. register Y. GCC automatically generates the necessary code
  17574. sequences to write register X and/or read register Y when
  17575. double-precision floating-point instructions are used.
  17576. 'fwrx'
  17577. Write SRC1 into the least significant half of X and SRC2 into
  17578. the most significant half of X.
  17579. 'fwry'
  17580. Write SRC1 into Y.
  17581. 'frdxhi', 'frdxlo'
  17582. Read the most or least (respectively) significant half of X
  17583. and store it in DEST.
  17584. 'frdy'
  17585. Read the value of Y and store it into DEST.
  17586. Note that you can gain more local control over generation of Nios
  17587. II custom instructions by using the 'target("custom-INSN=N")' and
  17588. 'target("no-custom-INSN")' function attributes (*note Function
  17589. Attributes::) or pragmas (*note Function Specific Option
  17590. Pragmas::).
  17591. '-mcustom-fpu-cfg=NAME'
  17592. This option enables a predefined, named set of custom instruction
  17593. encodings (see '-mcustom-INSN' above). Currently, the following
  17594. sets are defined:
  17595. '-mcustom-fpu-cfg=60-1' is equivalent to:
  17596. -mcustom-fmuls=252
  17597. -mcustom-fadds=253
  17598. -mcustom-fsubs=254
  17599. -fsingle-precision-constant
  17600. '-mcustom-fpu-cfg=60-2' is equivalent to:
  17601. -mcustom-fmuls=252
  17602. -mcustom-fadds=253
  17603. -mcustom-fsubs=254
  17604. -mcustom-fdivs=255
  17605. -fsingle-precision-constant
  17606. '-mcustom-fpu-cfg=72-3' is equivalent to:
  17607. -mcustom-floatus=243
  17608. -mcustom-fixsi=244
  17609. -mcustom-floatis=245
  17610. -mcustom-fcmpgts=246
  17611. -mcustom-fcmples=249
  17612. -mcustom-fcmpeqs=250
  17613. -mcustom-fcmpnes=251
  17614. -mcustom-fmuls=252
  17615. -mcustom-fadds=253
  17616. -mcustom-fsubs=254
  17617. -mcustom-fdivs=255
  17618. -fsingle-precision-constant
  17619. Custom instruction assignments given by individual '-mcustom-INSN='
  17620. options override those given by '-mcustom-fpu-cfg=', regardless of
  17621. the order of the options on the command line.
  17622. Note that you can gain more local control over selection of a FPU
  17623. configuration by using the 'target("custom-fpu-cfg=NAME")' function
  17624. attribute (*note Function Attributes::) or pragma (*note Function
  17625. Specific Option Pragmas::).
  17626. These additional '-m' options are available for the Altera Nios II ELF
  17627. (bare-metal) target:
  17628. '-mhal'
  17629. Link with HAL BSP. This suppresses linking with the GCC-provided C
  17630. runtime startup and termination code, and is typically used in
  17631. conjunction with '-msys-crt0=' to specify the location of the
  17632. alternate startup code provided by the HAL BSP.
  17633. '-msmallc'
  17634. Link with a limited version of the C library, '-lsmallc', rather
  17635. than Newlib.
  17636. '-msys-crt0=STARTFILE'
  17637. STARTFILE is the file name of the startfile (crt0) to use when
  17638. linking. This option is only useful in conjunction with '-mhal'.
  17639. '-msys-lib=SYSTEMLIB'
  17640. SYSTEMLIB is the library name of the library that provides
  17641. low-level system calls required by the C library, e.g. 'read' and
  17642. 'write'. This option is typically used to link with a library
  17643. provided by a HAL BSP.
  17644. 
  17645. File: gcc.info, Node: Nvidia PTX Options, Next: OpenRISC Options, Prev: Nios II Options, Up: Submodel Options
  17646. 3.18.35 Nvidia PTX Options
  17647. --------------------------
  17648. These options are defined for Nvidia PTX:
  17649. '-m32'
  17650. '-m64'
  17651. Generate code for 32-bit or 64-bit ABI.
  17652. '-misa=ISA-STRING'
  17653. Generate code for given the specified PTX ISA (e.g. 'sm_35'). ISA
  17654. strings must be lower-case. Valid ISA strings include 'sm_30' and
  17655. 'sm_35'. The default ISA is sm_30.
  17656. '-mmainkernel'
  17657. Link in code for a __main kernel. This is for stand-alone instead
  17658. of offloading execution.
  17659. '-moptimize'
  17660. Apply partitioned execution optimizations. This is the default
  17661. when any level of optimization is selected.
  17662. '-msoft-stack'
  17663. Generate code that does not use '.local' memory directly for stack
  17664. storage. Instead, a per-warp stack pointer is maintained
  17665. explicitly. This enables variable-length stack allocation (with
  17666. variable-length arrays or 'alloca'), and when global memory is used
  17667. for underlying storage, makes it possible to access automatic
  17668. variables from other threads, or with atomic instructions. This
  17669. code generation variant is used for OpenMP offloading, but the
  17670. option is exposed on its own for the purpose of testing the
  17671. compiler; to generate code suitable for linking into programs using
  17672. OpenMP offloading, use option '-mgomp'.
  17673. '-muniform-simt'
  17674. Switch to code generation variant that allows to execute all
  17675. threads in each warp, while maintaining memory state and side
  17676. effects as if only one thread in each warp was active outside of
  17677. OpenMP SIMD regions. All atomic operations and calls to runtime
  17678. (malloc, free, vprintf) are conditionally executed (iff current
  17679. lane index equals the master lane index), and the register being
  17680. assigned is copied via a shuffle instruction from the master lane.
  17681. Outside of SIMD regions lane 0 is the master; inside, each thread
  17682. sees itself as the master. Shared memory array 'int __nvptx_uni[]'
  17683. stores all-zeros or all-ones bitmasks for each warp, indicating
  17684. current mode (0 outside of SIMD regions). Each thread can
  17685. bitwise-and the bitmask at position 'tid.y' with current lane index
  17686. to compute the master lane index.
  17687. '-mgomp'
  17688. Generate code for use in OpenMP offloading: enables '-msoft-stack'
  17689. and '-muniform-simt' options, and selects corresponding multilib
  17690. variant.
  17691. 
  17692. File: gcc.info, Node: OpenRISC Options, Next: PDP-11 Options, Prev: Nvidia PTX Options, Up: Submodel Options
  17693. 3.18.36 OpenRISC Options
  17694. ------------------------
  17695. These options are defined for OpenRISC:
  17696. '-mboard=NAME'
  17697. Configure a board specific runtime. This will be passed to the
  17698. linker for newlib board library linking. The default is 'or1ksim'.
  17699. '-mnewlib'
  17700. For compatibility, it's always newlib for elf now.
  17701. '-mhard-div'
  17702. Generate code for hardware which supports divide instructions.
  17703. This is the default.
  17704. '-mhard-mul'
  17705. Generate code for hardware which supports multiply instructions.
  17706. This is the default.
  17707. '-mcmov'
  17708. Generate code for hardware which supports the conditional move
  17709. ('l.cmov') instruction.
  17710. '-mror'
  17711. Generate code for hardware which supports rotate right
  17712. instructions.
  17713. '-msext'
  17714. Generate code for hardware which supports sign-extension
  17715. instructions.
  17716. '-msfimm'
  17717. Generate code for hardware which supports set flag immediate
  17718. ('l.sf*i') instructions.
  17719. '-mshftimm'
  17720. Generate code for hardware which supports shift immediate related
  17721. instructions (i.e. 'l.srai', 'l.srli', 'l.slli', '1.rori'). Note,
  17722. to enable generation of the 'l.rori' instruction the '-mror' flag
  17723. must also be specified.
  17724. '-msoft-div'
  17725. Generate code for hardware which requires divide instruction
  17726. emulation.
  17727. '-msoft-mul'
  17728. Generate code for hardware which requires multiply instruction
  17729. emulation.
  17730. 
  17731. File: gcc.info, Node: PDP-11 Options, Next: picoChip Options, Prev: OpenRISC Options, Up: Submodel Options
  17732. 3.18.37 PDP-11 Options
  17733. ----------------------
  17734. These options are defined for the PDP-11:
  17735. '-mfpu'
  17736. Use hardware FPP floating point. This is the default. (FIS
  17737. floating point on the PDP-11/40 is not supported.) Implies -m45.
  17738. '-msoft-float'
  17739. Do not use hardware floating point.
  17740. '-mac0'
  17741. Return floating-point results in ac0 (fr0 in Unix assembler
  17742. syntax).
  17743. '-mno-ac0'
  17744. Return floating-point results in memory. This is the default.
  17745. '-m40'
  17746. Generate code for a PDP-11/40. Implies -msoft-float -mno-split.
  17747. '-m45'
  17748. Generate code for a PDP-11/45. This is the default.
  17749. '-m10'
  17750. Generate code for a PDP-11/10. Implies -msoft-float -mno-split.
  17751. '-mint16'
  17752. '-mno-int32'
  17753. Use 16-bit 'int'. This is the default.
  17754. '-mint32'
  17755. '-mno-int16'
  17756. Use 32-bit 'int'.
  17757. '-msplit'
  17758. Target has split instruction and data space. Implies -m45.
  17759. '-munix-asm'
  17760. Use Unix assembler syntax.
  17761. '-mdec-asm'
  17762. Use DEC assembler syntax.
  17763. '-mgnu-asm'
  17764. Use GNU assembler syntax. This is the default.
  17765. '-mlra'
  17766. Use the new LRA register allocator. By default, the old "reload"
  17767. allocator is used.
  17768. 
  17769. File: gcc.info, Node: picoChip Options, Next: PowerPC Options, Prev: PDP-11 Options, Up: Submodel Options
  17770. 3.18.38 picoChip Options
  17771. ------------------------
  17772. These '-m' options are defined for picoChip implementations:
  17773. '-mae=AE_TYPE'
  17774. Set the instruction set, register set, and instruction scheduling
  17775. parameters for array element type AE_TYPE. Supported values for
  17776. AE_TYPE are 'ANY', 'MUL', and 'MAC'.
  17777. '-mae=ANY' selects a completely generic AE type. Code generated
  17778. with this option runs on any of the other AE types. The code is
  17779. not as efficient as it would be if compiled for a specific AE type,
  17780. and some types of operation (e.g., multiplication) do not work
  17781. properly on all types of AE.
  17782. '-mae=MUL' selects a MUL AE type. This is the most useful AE type
  17783. for compiled code, and is the default.
  17784. '-mae=MAC' selects a DSP-style MAC AE. Code compiled with this
  17785. option may suffer from poor performance of byte (char)
  17786. manipulation, since the DSP AE does not provide hardware support
  17787. for byte load/stores.
  17788. '-msymbol-as-address'
  17789. Enable the compiler to directly use a symbol name as an address in
  17790. a load/store instruction, without first loading it into a register.
  17791. Typically, the use of this option generates larger programs, which
  17792. run faster than when the option isn't used. However, the results
  17793. vary from program to program, so it is left as a user option,
  17794. rather than being permanently enabled.
  17795. '-mno-inefficient-warnings'
  17796. Disables warnings about the generation of inefficient code. These
  17797. warnings can be generated, for example, when compiling code that
  17798. performs byte-level memory operations on the MAC AE type. The MAC
  17799. AE has no hardware support for byte-level memory operations, so all
  17800. byte load/stores must be synthesized from word load/store
  17801. operations. This is inefficient and a warning is generated to
  17802. indicate that you should rewrite the code to avoid byte operations,
  17803. or to target an AE type that has the necessary hardware support.
  17804. This option disables these warnings.
  17805. 
  17806. File: gcc.info, Node: PowerPC Options, Next: RISC-V Options, Prev: picoChip Options, Up: Submodel Options
  17807. 3.18.39 PowerPC Options
  17808. -----------------------
  17809. These are listed under *Note RS/6000 and PowerPC Options::.
  17810. 
  17811. File: gcc.info, Node: RISC-V Options, Next: RL78 Options, Prev: PowerPC Options, Up: Submodel Options
  17812. 3.18.40 RISC-V Options
  17813. ----------------------
  17814. These command-line options are defined for RISC-V targets:
  17815. '-mbranch-cost=N'
  17816. Set the cost of branches to roughly N instructions.
  17817. '-mplt'
  17818. '-mno-plt'
  17819. When generating PIC code, do or don't allow the use of PLTs.
  17820. Ignored for non-PIC. The default is '-mplt'.
  17821. '-mabi=ABI-STRING'
  17822. Specify integer and floating-point calling convention. ABI-STRING
  17823. contains two parts: the size of integer types and the registers
  17824. used for floating-point types. For example '-march=rv64ifd
  17825. -mabi=lp64d' means that 'long' and pointers are 64-bit (implicitly
  17826. defining 'int' to be 32-bit), and that floating-point values up to
  17827. 64 bits wide are passed in F registers. Contrast this with
  17828. '-march=rv64ifd -mabi=lp64f', which still allows the compiler to
  17829. generate code that uses the F and D extensions but only allows
  17830. floating-point values up to 32 bits long to be passed in registers;
  17831. or '-march=rv64ifd -mabi=lp64', in which no floating-point
  17832. arguments will be passed in registers.
  17833. The default for this argument is system dependent, users who want a
  17834. specific calling convention should specify one explicitly. The
  17835. valid calling conventions are: 'ilp32', 'ilp32f', 'ilp32d', 'lp64',
  17836. 'lp64f', and 'lp64d'. Some calling conventions are impossible to
  17837. implement on some ISAs: for example, '-march=rv32if -mabi=ilp32d'
  17838. is invalid because the ABI requires 64-bit values be passed in F
  17839. registers, but F registers are only 32 bits wide. There is also
  17840. the 'ilp32e' ABI that can only be used with the 'rv32e'
  17841. architecture. This ABI is not well specified at present, and is
  17842. subject to change.
  17843. '-mfdiv'
  17844. '-mno-fdiv'
  17845. Do or don't use hardware floating-point divide and square root
  17846. instructions. This requires the F or D extensions for
  17847. floating-point registers. The default is to use them if the
  17848. specified architecture has these instructions.
  17849. '-mdiv'
  17850. '-mno-div'
  17851. Do or don't use hardware instructions for integer division. This
  17852. requires the M extension. The default is to use them if the
  17853. specified architecture has these instructions.
  17854. '-march=ISA-STRING'
  17855. Generate code for given RISC-V ISA (e.g. 'rv64im'). ISA strings
  17856. must be lower-case. Examples include 'rv64i', 'rv32g', 'rv32e',
  17857. and 'rv32imaf'.
  17858. '-mtune=PROCESSOR-STRING'
  17859. Optimize the output for the given processor, specified by
  17860. microarchitecture name. Permissible values for this option are:
  17861. 'rocket', 'sifive-3-series', 'sifive-5-series', 'sifive-7-series',
  17862. and 'size'.
  17863. When '-mtune=' is not specified, the default is 'rocket'.
  17864. The 'size' choice is not intended for use by end-users. This is
  17865. used when '-Os' is specified. It overrides the instruction cost
  17866. info provided by '-mtune=', but does not override the pipeline
  17867. info. This helps reduce code size while still giving good
  17868. performance.
  17869. '-mpreferred-stack-boundary=NUM'
  17870. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  17871. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  17872. the default is 4 (16 bytes or 128-bits).
  17873. *Warning:* If you use this switch, then you must build all modules
  17874. with the same value, including any libraries. This includes the
  17875. system libraries and startup modules.
  17876. '-msmall-data-limit=N'
  17877. Put global and static data smaller than N bytes into a special
  17878. section (on some targets).
  17879. '-msave-restore'
  17880. '-mno-save-restore'
  17881. Do or don't use smaller but slower prologue and epilogue code that
  17882. uses library function calls. The default is to use fast inline
  17883. prologues and epilogues.
  17884. '-mstrict-align'
  17885. '-mno-strict-align'
  17886. Do not or do generate unaligned memory accesses. The default is
  17887. set depending on whether the processor we are optimizing for
  17888. supports fast unaligned access or not.
  17889. '-mcmodel=medlow'
  17890. Generate code for the medium-low code model. The program and its
  17891. statically defined symbols must lie within a single 2 GiB address
  17892. range and must lie between absolute addresses -2 GiB and +2 GiB.
  17893. Programs can be statically or dynamically linked. This is the
  17894. default code model.
  17895. '-mcmodel=medany'
  17896. Generate code for the medium-any code model. The program and its
  17897. statically defined symbols must be within any single 2 GiB address
  17898. range. Programs can be statically or dynamically linked.
  17899. '-mexplicit-relocs'
  17900. '-mno-exlicit-relocs'
  17901. Use or do not use assembler relocation operators when dealing with
  17902. symbolic addresses. The alternative is to use assembler macros
  17903. instead, which may limit optimization.
  17904. '-mrelax'
  17905. '-mno-relax'
  17906. Take advantage of linker relaxations to reduce the number of
  17907. instructions required to materialize symbol addresses. The default
  17908. is to take advantage of linker relaxations.
  17909. '-memit-attribute'
  17910. '-mno-emit-attribute'
  17911. Emit (do not emit) RISC-V attribute to record extra information
  17912. into ELF objects. This feature requires at least binutils 2.32.
  17913. 
  17914. File: gcc.info, Node: RL78 Options, Next: RS/6000 and PowerPC Options, Prev: RISC-V Options, Up: Submodel Options
  17915. 3.18.41 RL78 Options
  17916. --------------------
  17917. '-msim'
  17918. Links in additional target libraries to support operation within a
  17919. simulator.
  17920. '-mmul=none'
  17921. '-mmul=g10'
  17922. '-mmul=g13'
  17923. '-mmul=g14'
  17924. '-mmul=rl78'
  17925. Specifies the type of hardware multiplication and division support
  17926. to be used. The simplest is 'none', which uses software for both
  17927. multiplication and division. This is the default. The 'g13' value
  17928. is for the hardware multiply/divide peripheral found on the
  17929. RL78/G13 (S2 core) targets. The 'g14' value selects the use of the
  17930. multiplication and division instructions supported by the RL78/G14
  17931. (S3 core) parts. The value 'rl78' is an alias for 'g14' and the
  17932. value 'mg10' is an alias for 'none'.
  17933. In addition a C preprocessor macro is defined, based upon the
  17934. setting of this option. Possible values are: '__RL78_MUL_NONE__',
  17935. '__RL78_MUL_G13__' or '__RL78_MUL_G14__'.
  17936. '-mcpu=g10'
  17937. '-mcpu=g13'
  17938. '-mcpu=g14'
  17939. '-mcpu=rl78'
  17940. Specifies the RL78 core to target. The default is the G14 core,
  17941. also known as an S3 core or just RL78. The G13 or S2 core does not
  17942. have multiply or divide instructions, instead it uses a hardware
  17943. peripheral for these operations. The G10 or S1 core does not have
  17944. register banks, so it uses a different calling convention.
  17945. If this option is set it also selects the type of hardware multiply
  17946. support to use, unless this is overridden by an explicit
  17947. '-mmul=none' option on the command line. Thus specifying
  17948. '-mcpu=g13' enables the use of the G13 hardware multiply peripheral
  17949. and specifying '-mcpu=g10' disables the use of hardware
  17950. multiplications altogether.
  17951. Note, although the RL78/G14 core is the default target, specifying
  17952. '-mcpu=g14' or '-mcpu=rl78' on the command line does change the
  17953. behavior of the toolchain since it also enables G14 hardware
  17954. multiply support. If these options are not specified on the
  17955. command line then software multiplication routines will be used
  17956. even though the code targets the RL78 core. This is for backwards
  17957. compatibility with older toolchains which did not have hardware
  17958. multiply and divide support.
  17959. In addition a C preprocessor macro is defined, based upon the
  17960. setting of this option. Possible values are: '__RL78_G10__',
  17961. '__RL78_G13__' or '__RL78_G14__'.
  17962. '-mg10'
  17963. '-mg13'
  17964. '-mg14'
  17965. '-mrl78'
  17966. These are aliases for the corresponding '-mcpu=' option. They are
  17967. provided for backwards compatibility.
  17968. '-mallregs'
  17969. Allow the compiler to use all of the available registers. By
  17970. default registers 'r24..r31' are reserved for use in interrupt
  17971. handlers. With this option enabled these registers can be used in
  17972. ordinary functions as well.
  17973. '-m64bit-doubles'
  17974. '-m32bit-doubles'
  17975. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  17976. bits ('-m32bit-doubles') in size. The default is
  17977. '-m32bit-doubles'.
  17978. '-msave-mduc-in-interrupts'
  17979. '-mno-save-mduc-in-interrupts'
  17980. Specifies that interrupt handler functions should preserve the MDUC
  17981. registers. This is only necessary if normal code might use the
  17982. MDUC registers, for example because it performs multiplication and
  17983. division operations. The default is to ignore the MDUC registers
  17984. as this makes the interrupt handlers faster. The target option
  17985. -mg13 needs to be passed for this to work as this feature is only
  17986. available on the G13 target (S2 core). The MDUC registers will
  17987. only be saved if the interrupt handler performs a multiplication or
  17988. division operation or it calls another function.
  17989. 
  17990. File: gcc.info, Node: RS/6000 and PowerPC Options, Next: RX Options, Prev: RL78 Options, Up: Submodel Options
  17991. 3.18.42 IBM RS/6000 and PowerPC Options
  17992. ---------------------------------------
  17993. These '-m' options are defined for the IBM RS/6000 and PowerPC:
  17994. '-mpowerpc-gpopt'
  17995. '-mno-powerpc-gpopt'
  17996. '-mpowerpc-gfxopt'
  17997. '-mno-powerpc-gfxopt'
  17998. '-mpowerpc64'
  17999. '-mno-powerpc64'
  18000. '-mmfcrf'
  18001. '-mno-mfcrf'
  18002. '-mpopcntb'
  18003. '-mno-popcntb'
  18004. '-mpopcntd'
  18005. '-mno-popcntd'
  18006. '-mfprnd'
  18007. '-mno-fprnd'
  18008. '-mcmpb'
  18009. '-mno-cmpb'
  18010. '-mmfpgpr'
  18011. '-mno-mfpgpr'
  18012. '-mhard-dfp'
  18013. '-mno-hard-dfp'
  18014. You use these options to specify which instructions are available
  18015. on the processor you are using. The default value of these options
  18016. is determined when configuring GCC. Specifying the
  18017. '-mcpu=CPU_TYPE' overrides the specification of these options. We
  18018. recommend you use the '-mcpu=CPU_TYPE' option rather than the
  18019. options listed above.
  18020. Specifying '-mpowerpc-gpopt' allows GCC to use the optional PowerPC
  18021. architecture instructions in the General Purpose group, including
  18022. floating-point square root. Specifying '-mpowerpc-gfxopt' allows
  18023. GCC to use the optional PowerPC architecture instructions in the
  18024. Graphics group, including floating-point select.
  18025. The '-mmfcrf' option allows GCC to generate the move from condition
  18026. register field instruction implemented on the POWER4 processor and
  18027. other processors that support the PowerPC V2.01 architecture. The
  18028. '-mpopcntb' option allows GCC to generate the popcount and
  18029. double-precision FP reciprocal estimate instruction implemented on
  18030. the POWER5 processor and other processors that support the PowerPC
  18031. V2.02 architecture. The '-mpopcntd' option allows GCC to generate
  18032. the popcount instruction implemented on the POWER7 processor and
  18033. other processors that support the PowerPC V2.06 architecture. The
  18034. '-mfprnd' option allows GCC to generate the FP round to integer
  18035. instructions implemented on the POWER5+ processor and other
  18036. processors that support the PowerPC V2.03 architecture. The
  18037. '-mcmpb' option allows GCC to generate the compare bytes
  18038. instruction implemented on the POWER6 processor and other
  18039. processors that support the PowerPC V2.05 architecture. The
  18040. '-mmfpgpr' option allows GCC to generate the FP move to/from
  18041. general-purpose register instructions implemented on the POWER6X
  18042. processor and other processors that support the extended PowerPC
  18043. V2.05 architecture. The '-mhard-dfp' option allows GCC to generate
  18044. the decimal floating-point instructions implemented on some POWER
  18045. processors.
  18046. The '-mpowerpc64' option allows GCC to generate the additional
  18047. 64-bit instructions that are found in the full PowerPC64
  18048. architecture and to treat GPRs as 64-bit, doubleword quantities.
  18049. GCC defaults to '-mno-powerpc64'.
  18050. '-mcpu=CPU_TYPE'
  18051. Set architecture type, register usage, and instruction scheduling
  18052. parameters for machine type CPU_TYPE. Supported values for
  18053. CPU_TYPE are '401', '403', '405', '405fp', '440', '440fp', '464',
  18054. '464fp', '476', '476fp', '505', '601', '602', '603', '603e', '604',
  18055. '604e', '620', '630', '740', '7400', '7450', '750', '801', '821',
  18056. '823', '860', '970', '8540', 'a2', 'e300c2', 'e300c3', 'e500mc',
  18057. 'e500mc64', 'e5500', 'e6500', 'ec603e', 'G3', 'G4', 'G5', 'titan',
  18058. 'power3', 'power4', 'power5', 'power5+', 'power6', 'power6x',
  18059. 'power7', 'power8', 'power9', 'powerpc', 'powerpc64',
  18060. 'powerpc64le', 'rs64', and 'native'.
  18061. '-mcpu=powerpc', '-mcpu=powerpc64', and '-mcpu=powerpc64le' specify
  18062. pure 32-bit PowerPC (either endian), 64-bit big endian PowerPC and
  18063. 64-bit little endian PowerPC architecture machine types, with an
  18064. appropriate, generic processor model assumed for scheduling
  18065. purposes.
  18066. Specifying 'native' as cpu type detects and selects the
  18067. architecture option that corresponds to the host processor of the
  18068. system performing the compilation. '-mcpu=native' has no effect if
  18069. GCC does not recognize the processor.
  18070. The other options specify a specific processor. Code generated
  18071. under those options runs best on that processor, and may not run at
  18072. all on others.
  18073. The '-mcpu' options automatically enable or disable the following
  18074. options:
  18075. -maltivec -mfprnd -mhard-float -mmfcrf -mmultiple
  18076. -mpopcntb -mpopcntd -mpowerpc64
  18077. -mpowerpc-gpopt -mpowerpc-gfxopt
  18078. -mmulhw -mdlmzb -mmfpgpr -mvsx
  18079. -mcrypto -mhtm -mpower8-fusion -mpower8-vector
  18080. -mquad-memory -mquad-memory-atomic -mfloat128 -mfloat128-hardware
  18081. The particular options set for any particular CPU varies between
  18082. compiler versions, depending on what setting seems to produce
  18083. optimal code for that CPU; it doesn't necessarily reflect the
  18084. actual hardware's capabilities. If you wish to set an individual
  18085. option to a particular value, you may specify it after the '-mcpu'
  18086. option, like '-mcpu=970 -mno-altivec'.
  18087. On AIX, the '-maltivec' and '-mpowerpc64' options are not enabled
  18088. or disabled by the '-mcpu' option at present because AIX does not
  18089. have full support for these options. You may still enable or
  18090. disable them individually if you're sure it'll work in your
  18091. environment.
  18092. '-mtune=CPU_TYPE'
  18093. Set the instruction scheduling parameters for machine type
  18094. CPU_TYPE, but do not set the architecture type or register usage,
  18095. as '-mcpu=CPU_TYPE' does. The same values for CPU_TYPE are used
  18096. for '-mtune' as for '-mcpu'. If both are specified, the code
  18097. generated uses the architecture and registers set by '-mcpu', but
  18098. the scheduling parameters set by '-mtune'.
  18099. '-mcmodel=small'
  18100. Generate PowerPC64 code for the small model: The TOC is limited to
  18101. 64k.
  18102. '-mcmodel=medium'
  18103. Generate PowerPC64 code for the medium model: The TOC and other
  18104. static data may be up to a total of 4G in size. This is the
  18105. default for 64-bit Linux.
  18106. '-mcmodel=large'
  18107. Generate PowerPC64 code for the large model: The TOC may be up to
  18108. 4G in size. Other data and code is only limited by the 64-bit
  18109. address space.
  18110. '-maltivec'
  18111. '-mno-altivec'
  18112. Generate code that uses (does not use) AltiVec instructions, and
  18113. also enable the use of built-in functions that allow more direct
  18114. access to the AltiVec instruction set. You may also need to set
  18115. '-mabi=altivec' to adjust the current ABI with AltiVec ABI
  18116. enhancements.
  18117. When '-maltivec' is used, the element order for AltiVec intrinsics
  18118. such as 'vec_splat', 'vec_extract', and 'vec_insert' match array
  18119. element order corresponding to the endianness of the target. That
  18120. is, element zero identifies the leftmost element in a vector
  18121. register when targeting a big-endian platform, and identifies the
  18122. rightmost element in a vector register when targeting a
  18123. little-endian platform.
  18124. '-mvrsave'
  18125. '-mno-vrsave'
  18126. Generate VRSAVE instructions when generating AltiVec code.
  18127. '-msecure-plt'
  18128. Generate code that allows 'ld' and 'ld.so' to build executables and
  18129. shared libraries with non-executable '.plt' and '.got' sections.
  18130. This is a PowerPC 32-bit SYSV ABI option.
  18131. '-mbss-plt'
  18132. Generate code that uses a BSS '.plt' section that 'ld.so' fills in,
  18133. and requires '.plt' and '.got' sections that are both writable and
  18134. executable. This is a PowerPC 32-bit SYSV ABI option.
  18135. '-misel'
  18136. '-mno-isel'
  18137. This switch enables or disables the generation of ISEL
  18138. instructions.
  18139. '-mvsx'
  18140. '-mno-vsx'
  18141. Generate code that uses (does not use) vector/scalar (VSX)
  18142. instructions, and also enable the use of built-in functions that
  18143. allow more direct access to the VSX instruction set.
  18144. '-mcrypto'
  18145. '-mno-crypto'
  18146. Enable the use (disable) of the built-in functions that allow
  18147. direct access to the cryptographic instructions that were added in
  18148. version 2.07 of the PowerPC ISA.
  18149. '-mhtm'
  18150. '-mno-htm'
  18151. Enable (disable) the use of the built-in functions that allow
  18152. direct access to the Hardware Transactional Memory (HTM)
  18153. instructions that were added in version 2.07 of the PowerPC ISA.
  18154. '-mpower8-fusion'
  18155. '-mno-power8-fusion'
  18156. Generate code that keeps (does not keeps) some integer operations
  18157. adjacent so that the instructions can be fused together on power8
  18158. and later processors.
  18159. '-mpower8-vector'
  18160. '-mno-power8-vector'
  18161. Generate code that uses (does not use) the vector and scalar
  18162. instructions that were added in version 2.07 of the PowerPC ISA.
  18163. Also enable the use of built-in functions that allow more direct
  18164. access to the vector instructions.
  18165. '-mquad-memory'
  18166. '-mno-quad-memory'
  18167. Generate code that uses (does not use) the non-atomic quad word
  18168. memory instructions. The '-mquad-memory' option requires use of
  18169. 64-bit mode.
  18170. '-mquad-memory-atomic'
  18171. '-mno-quad-memory-atomic'
  18172. Generate code that uses (does not use) the atomic quad word memory
  18173. instructions. The '-mquad-memory-atomic' option requires use of
  18174. 64-bit mode.
  18175. '-mfloat128'
  18176. '-mno-float128'
  18177. Enable/disable the __FLOAT128 keyword for IEEE 128-bit floating
  18178. point and use either software emulation for IEEE 128-bit floating
  18179. point or hardware instructions.
  18180. The VSX instruction set ('-mvsx', '-mcpu=power7', '-mcpu=power8'),
  18181. or '-mcpu=power9' must be enabled to use the IEEE 128-bit floating
  18182. point support. The IEEE 128-bit floating point support only works
  18183. on PowerPC Linux systems.
  18184. The default for '-mfloat128' is enabled on PowerPC Linux systems
  18185. using the VSX instruction set, and disabled on other systems.
  18186. If you use the ISA 3.0 instruction set ('-mpower9-vector' or
  18187. '-mcpu=power9') on a 64-bit system, the IEEE 128-bit floating point
  18188. support will also enable the generation of ISA 3.0 IEEE 128-bit
  18189. floating point instructions. Otherwise, if you do not specify to
  18190. generate ISA 3.0 instructions or you are targeting a 32-bit big
  18191. endian system, IEEE 128-bit floating point will be done with
  18192. software emulation.
  18193. '-mfloat128-hardware'
  18194. '-mno-float128-hardware'
  18195. Enable/disable using ISA 3.0 hardware instructions to support the
  18196. __FLOAT128 data type.
  18197. The default for '-mfloat128-hardware' is enabled on PowerPC Linux
  18198. systems using the ISA 3.0 instruction set, and disabled on other
  18199. systems.
  18200. '-m32'
  18201. '-m64'
  18202. Generate code for 32-bit or 64-bit environments of Darwin and SVR4
  18203. targets (including GNU/Linux). The 32-bit environment sets int,
  18204. long and pointer to 32 bits and generates code that runs on any
  18205. PowerPC variant. The 64-bit environment sets int to 32 bits and
  18206. long and pointer to 64 bits, and generates code for PowerPC64, as
  18207. for '-mpowerpc64'.
  18208. '-mfull-toc'
  18209. '-mno-fp-in-toc'
  18210. '-mno-sum-in-toc'
  18211. '-mminimal-toc'
  18212. Modify generation of the TOC (Table Of Contents), which is created
  18213. for every executable file. The '-mfull-toc' option is selected by
  18214. default. In that case, GCC allocates at least one TOC entry for
  18215. each unique non-automatic variable reference in your program. GCC
  18216. also places floating-point constants in the TOC. However, only
  18217. 16,384 entries are available in the TOC.
  18218. If you receive a linker error message that saying you have
  18219. overflowed the available TOC space, you can reduce the amount of
  18220. TOC space used with the '-mno-fp-in-toc' and '-mno-sum-in-toc'
  18221. options. '-mno-fp-in-toc' prevents GCC from putting floating-point
  18222. constants in the TOC and '-mno-sum-in-toc' forces GCC to generate
  18223. code to calculate the sum of an address and a constant at run time
  18224. instead of putting that sum into the TOC. You may specify one or
  18225. both of these options. Each causes GCC to produce very slightly
  18226. slower and larger code at the expense of conserving TOC space.
  18227. If you still run out of space in the TOC even when you specify both
  18228. of these options, specify '-mminimal-toc' instead. This option
  18229. causes GCC to make only one TOC entry for every file. When you
  18230. specify this option, GCC produces code that is slower and larger
  18231. but which uses extremely little TOC space. You may wish to use
  18232. this option only on files that contain less frequently-executed
  18233. code.
  18234. '-maix64'
  18235. '-maix32'
  18236. Enable 64-bit AIX ABI and calling convention: 64-bit pointers,
  18237. 64-bit 'long' type, and the infrastructure needed to support them.
  18238. Specifying '-maix64' implies '-mpowerpc64', while '-maix32'
  18239. disables the 64-bit ABI and implies '-mno-powerpc64'. GCC defaults
  18240. to '-maix32'.
  18241. '-mxl-compat'
  18242. '-mno-xl-compat'
  18243. Produce code that conforms more closely to IBM XL compiler
  18244. semantics when using AIX-compatible ABI. Pass floating-point
  18245. arguments to prototyped functions beyond the register save area
  18246. (RSA) on the stack in addition to argument FPRs. Do not assume
  18247. that most significant double in 128-bit long double value is
  18248. properly rounded when comparing values and converting to double.
  18249. Use XL symbol names for long double support routines.
  18250. The AIX calling convention was extended but not initially
  18251. documented to handle an obscure K&R C case of calling a function
  18252. that takes the address of its arguments with fewer arguments than
  18253. declared. IBM XL compilers access floating-point arguments that do
  18254. not fit in the RSA from the stack when a subroutine is compiled
  18255. without optimization. Because always storing floating-point
  18256. arguments on the stack is inefficient and rarely needed, this
  18257. option is not enabled by default and only is necessary when calling
  18258. subroutines compiled by IBM XL compilers without optimization.
  18259. '-mpe'
  18260. Support "IBM RS/6000 SP" "Parallel Environment" (PE). Link an
  18261. application written to use message passing with special startup
  18262. code to enable the application to run. The system must have PE
  18263. installed in the standard location ('/usr/lpp/ppe.poe/'), or the
  18264. 'specs' file must be overridden with the '-specs=' option to
  18265. specify the appropriate directory location. The Parallel
  18266. Environment does not support threads, so the '-mpe' option and the
  18267. '-pthread' option are incompatible.
  18268. '-malign-natural'
  18269. '-malign-power'
  18270. On AIX, 32-bit Darwin, and 64-bit PowerPC GNU/Linux, the option
  18271. '-malign-natural' overrides the ABI-defined alignment of larger
  18272. types, such as floating-point doubles, on their natural size-based
  18273. boundary. The option '-malign-power' instructs GCC to follow the
  18274. ABI-specified alignment rules. GCC defaults to the standard
  18275. alignment defined in the ABI.
  18276. On 64-bit Darwin, natural alignment is the default, and
  18277. '-malign-power' is not supported.
  18278. '-msoft-float'
  18279. '-mhard-float'
  18280. Generate code that does not use (uses) the floating-point register
  18281. set. Software floating-point emulation is provided if you use the
  18282. '-msoft-float' option, and pass the option to GCC when linking.
  18283. '-mmultiple'
  18284. '-mno-multiple'
  18285. Generate code that uses (does not use) the load multiple word
  18286. instructions and the store multiple word instructions. These
  18287. instructions are generated by default on POWER systems, and not
  18288. generated on PowerPC systems. Do not use '-mmultiple' on
  18289. little-endian PowerPC systems, since those instructions do not work
  18290. when the processor is in little-endian mode. The exceptions are
  18291. PPC740 and PPC750 which permit these instructions in little-endian
  18292. mode.
  18293. '-mupdate'
  18294. '-mno-update'
  18295. Generate code that uses (does not use) the load or store
  18296. instructions that update the base register to the address of the
  18297. calculated memory location. These instructions are generated by
  18298. default. If you use '-mno-update', there is a small window between
  18299. the time that the stack pointer is updated and the address of the
  18300. previous frame is stored, which means code that walks the stack
  18301. frame across interrupts or signals may get corrupted data.
  18302. '-mavoid-indexed-addresses'
  18303. '-mno-avoid-indexed-addresses'
  18304. Generate code that tries to avoid (not avoid) the use of indexed
  18305. load or store instructions. These instructions can incur a
  18306. performance penalty on Power6 processors in certain situations,
  18307. such as when stepping through large arrays that cross a 16M
  18308. boundary. This option is enabled by default when targeting Power6
  18309. and disabled otherwise.
  18310. '-mfused-madd'
  18311. '-mno-fused-madd'
  18312. Generate code that uses (does not use) the floating-point multiply
  18313. and accumulate instructions. These instructions are generated by
  18314. default if hardware floating point is used. The machine-dependent
  18315. '-mfused-madd' option is now mapped to the machine-independent
  18316. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  18317. '-ffp-contract=off'.
  18318. '-mmulhw'
  18319. '-mno-mulhw'
  18320. Generate code that uses (does not use) the half-word multiply and
  18321. multiply-accumulate instructions on the IBM 405, 440, 464 and 476
  18322. processors. These instructions are generated by default when
  18323. targeting those processors.
  18324. '-mdlmzb'
  18325. '-mno-dlmzb'
  18326. Generate code that uses (does not use) the string-search 'dlmzb'
  18327. instruction on the IBM 405, 440, 464 and 476 processors. This
  18328. instruction is generated by default when targeting those
  18329. processors.
  18330. '-mno-bit-align'
  18331. '-mbit-align'
  18332. On System V.4 and embedded PowerPC systems do not (do) force
  18333. structures and unions that contain bit-fields to be aligned to the
  18334. base type of the bit-field.
  18335. For example, by default a structure containing nothing but 8
  18336. 'unsigned' bit-fields of length 1 is aligned to a 4-byte boundary
  18337. and has a size of 4 bytes. By using '-mno-bit-align', the
  18338. structure is aligned to a 1-byte boundary and is 1 byte in size.
  18339. '-mno-strict-align'
  18340. '-mstrict-align'
  18341. On System V.4 and embedded PowerPC systems do not (do) assume that
  18342. unaligned memory references are handled by the system.
  18343. '-mrelocatable'
  18344. '-mno-relocatable'
  18345. Generate code that allows (does not allow) a static executable to
  18346. be relocated to a different address at run time. A simple embedded
  18347. PowerPC system loader should relocate the entire contents of
  18348. '.got2' and 4-byte locations listed in the '.fixup' section, a
  18349. table of 32-bit addresses generated by this option. For this to
  18350. work, all objects linked together must be compiled with
  18351. '-mrelocatable' or '-mrelocatable-lib'. '-mrelocatable' code
  18352. aligns the stack to an 8-byte boundary.
  18353. '-mrelocatable-lib'
  18354. '-mno-relocatable-lib'
  18355. Like '-mrelocatable', '-mrelocatable-lib' generates a '.fixup'
  18356. section to allow static executables to be relocated at run time,
  18357. but '-mrelocatable-lib' does not use the smaller stack alignment of
  18358. '-mrelocatable'. Objects compiled with '-mrelocatable-lib' may be
  18359. linked with objects compiled with any combination of the
  18360. '-mrelocatable' options.
  18361. '-mno-toc'
  18362. '-mtoc'
  18363. On System V.4 and embedded PowerPC systems do not (do) assume that
  18364. register 2 contains a pointer to a global area pointing to the
  18365. addresses used in the program.
  18366. '-mlittle'
  18367. '-mlittle-endian'
  18368. On System V.4 and embedded PowerPC systems compile code for the
  18369. processor in little-endian mode. The '-mlittle-endian' option is
  18370. the same as '-mlittle'.
  18371. '-mbig'
  18372. '-mbig-endian'
  18373. On System V.4 and embedded PowerPC systems compile code for the
  18374. processor in big-endian mode. The '-mbig-endian' option is the
  18375. same as '-mbig'.
  18376. '-mdynamic-no-pic'
  18377. On Darwin and Mac OS X systems, compile code so that it is not
  18378. relocatable, but that its external references are relocatable. The
  18379. resulting code is suitable for applications, but not shared
  18380. libraries.
  18381. '-msingle-pic-base'
  18382. Treat the register used for PIC addressing as read-only, rather
  18383. than loading it in the prologue for each function. The runtime
  18384. system is responsible for initializing this register with an
  18385. appropriate value before execution begins.
  18386. '-mprioritize-restricted-insns=PRIORITY'
  18387. This option controls the priority that is assigned to dispatch-slot
  18388. restricted instructions during the second scheduling pass. The
  18389. argument PRIORITY takes the value '0', '1', or '2' to assign no,
  18390. highest, or second-highest (respectively) priority to dispatch-slot
  18391. restricted instructions.
  18392. '-msched-costly-dep=DEPENDENCE_TYPE'
  18393. This option controls which dependences are considered costly by the
  18394. target during instruction scheduling. The argument DEPENDENCE_TYPE
  18395. takes one of the following values:
  18396. 'no'
  18397. No dependence is costly.
  18398. 'all'
  18399. All dependences are costly.
  18400. 'true_store_to_load'
  18401. A true dependence from store to load is costly.
  18402. 'store_to_load'
  18403. Any dependence from store to load is costly.
  18404. NUMBER
  18405. Any dependence for which the latency is greater than or equal
  18406. to NUMBER is costly.
  18407. '-minsert-sched-nops=SCHEME'
  18408. This option controls which NOP insertion scheme is used during the
  18409. second scheduling pass. The argument SCHEME takes one of the
  18410. following values:
  18411. 'no'
  18412. Don't insert NOPs.
  18413. 'pad'
  18414. Pad with NOPs any dispatch group that has vacant issue slots,
  18415. according to the scheduler's grouping.
  18416. 'regroup_exact'
  18417. Insert NOPs to force costly dependent insns into separate
  18418. groups. Insert exactly as many NOPs as needed to force an
  18419. insn to a new group, according to the estimated processor
  18420. grouping.
  18421. NUMBER
  18422. Insert NOPs to force costly dependent insns into separate
  18423. groups. Insert NUMBER NOPs to force an insn to a new group.
  18424. '-mcall-sysv'
  18425. On System V.4 and embedded PowerPC systems compile code using
  18426. calling conventions that adhere to the March 1995 draft of the
  18427. System V Application Binary Interface, PowerPC processor
  18428. supplement. This is the default unless you configured GCC using
  18429. 'powerpc-*-eabiaix'.
  18430. '-mcall-sysv-eabi'
  18431. '-mcall-eabi'
  18432. Specify both '-mcall-sysv' and '-meabi' options.
  18433. '-mcall-sysv-noeabi'
  18434. Specify both '-mcall-sysv' and '-mno-eabi' options.
  18435. '-mcall-aixdesc'
  18436. On System V.4 and embedded PowerPC systems compile code for the AIX
  18437. operating system.
  18438. '-mcall-linux'
  18439. On System V.4 and embedded PowerPC systems compile code for the
  18440. Linux-based GNU system.
  18441. '-mcall-freebsd'
  18442. On System V.4 and embedded PowerPC systems compile code for the
  18443. FreeBSD operating system.
  18444. '-mcall-netbsd'
  18445. On System V.4 and embedded PowerPC systems compile code for the
  18446. NetBSD operating system.
  18447. '-mcall-openbsd'
  18448. On System V.4 and embedded PowerPC systems compile code for the
  18449. OpenBSD operating system.
  18450. '-mtraceback=TRACEBACK_TYPE'
  18451. Select the type of traceback table. Valid values for
  18452. TRACEBACK_TYPE are 'full', 'part', and 'no'.
  18453. '-maix-struct-return'
  18454. Return all structures in memory (as specified by the AIX ABI).
  18455. '-msvr4-struct-return'
  18456. Return structures smaller than 8 bytes in registers (as specified
  18457. by the SVR4 ABI).
  18458. '-mabi=ABI-TYPE'
  18459. Extend the current ABI with a particular extension, or remove such
  18460. extension. Valid values are 'altivec', 'no-altivec',
  18461. 'ibmlongdouble', 'ieeelongdouble', 'elfv1', 'elfv2'.
  18462. '-mabi=ibmlongdouble'
  18463. Change the current ABI to use IBM extended-precision long double.
  18464. This is not likely to work if your system defaults to using IEEE
  18465. extended-precision long double. If you change the long double type
  18466. from IEEE extended-precision, the compiler will issue a warning
  18467. unless you use the '-Wno-psabi' option. Requires
  18468. '-mlong-double-128' to be enabled.
  18469. '-mabi=ieeelongdouble'
  18470. Change the current ABI to use IEEE extended-precision long double.
  18471. This is not likely to work if your system defaults to using IBM
  18472. extended-precision long double. If you change the long double type
  18473. from IBM extended-precision, the compiler will issue a warning
  18474. unless you use the '-Wno-psabi' option. Requires
  18475. '-mlong-double-128' to be enabled.
  18476. '-mabi=elfv1'
  18477. Change the current ABI to use the ELFv1 ABI. This is the default
  18478. ABI for big-endian PowerPC 64-bit Linux. Overriding the default
  18479. ABI requires special system support and is likely to fail in
  18480. spectacular ways.
  18481. '-mabi=elfv2'
  18482. Change the current ABI to use the ELFv2 ABI. This is the default
  18483. ABI for little-endian PowerPC 64-bit Linux. Overriding the default
  18484. ABI requires special system support and is likely to fail in
  18485. spectacular ways.
  18486. '-mgnu-attribute'
  18487. '-mno-gnu-attribute'
  18488. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  18489. .gnu.attributes section that specify ABI variations in function
  18490. parameters or return values.
  18491. '-mprototype'
  18492. '-mno-prototype'
  18493. On System V.4 and embedded PowerPC systems assume that all calls to
  18494. variable argument functions are properly prototyped. Otherwise,
  18495. the compiler must insert an instruction before every non-prototyped
  18496. call to set or clear bit 6 of the condition code register ('CR') to
  18497. indicate whether floating-point values are passed in the
  18498. floating-point registers in case the function takes variable
  18499. arguments. With '-mprototype', only calls to prototyped variable
  18500. argument functions set or clear the bit.
  18501. '-msim'
  18502. On embedded PowerPC systems, assume that the startup module is
  18503. called 'sim-crt0.o' and that the standard C libraries are
  18504. 'libsim.a' and 'libc.a'. This is the default for
  18505. 'powerpc-*-eabisim' configurations.
  18506. '-mmvme'
  18507. On embedded PowerPC systems, assume that the startup module is
  18508. called 'crt0.o' and the standard C libraries are 'libmvme.a' and
  18509. 'libc.a'.
  18510. '-mads'
  18511. On embedded PowerPC systems, assume that the startup module is
  18512. called 'crt0.o' and the standard C libraries are 'libads.a' and
  18513. 'libc.a'.
  18514. '-myellowknife'
  18515. On embedded PowerPC systems, assume that the startup module is
  18516. called 'crt0.o' and the standard C libraries are 'libyk.a' and
  18517. 'libc.a'.
  18518. '-mvxworks'
  18519. On System V.4 and embedded PowerPC systems, specify that you are
  18520. compiling for a VxWorks system.
  18521. '-memb'
  18522. On embedded PowerPC systems, set the 'PPC_EMB' bit in the ELF flags
  18523. header to indicate that 'eabi' extended relocations are used.
  18524. '-meabi'
  18525. '-mno-eabi'
  18526. On System V.4 and embedded PowerPC systems do (do not) adhere to
  18527. the Embedded Applications Binary Interface (EABI), which is a set
  18528. of modifications to the System V.4 specifications. Selecting
  18529. '-meabi' means that the stack is aligned to an 8-byte boundary, a
  18530. function '__eabi' is called from 'main' to set up the EABI
  18531. environment, and the '-msdata' option can use both 'r2' and 'r13'
  18532. to point to two separate small data areas. Selecting '-mno-eabi'
  18533. means that the stack is aligned to a 16-byte boundary, no EABI
  18534. initialization function is called from 'main', and the '-msdata'
  18535. option only uses 'r13' to point to a single small data area. The
  18536. '-meabi' option is on by default if you configured GCC using one of
  18537. the 'powerpc*-*-eabi*' options.
  18538. '-msdata=eabi'
  18539. On System V.4 and embedded PowerPC systems, put small initialized
  18540. 'const' global and static data in the '.sdata2' section, which is
  18541. pointed to by register 'r2'. Put small initialized non-'const'
  18542. global and static data in the '.sdata' section, which is pointed to
  18543. by register 'r13'. Put small uninitialized global and static data
  18544. in the '.sbss' section, which is adjacent to the '.sdata' section.
  18545. The '-msdata=eabi' option is incompatible with the '-mrelocatable'
  18546. option. The '-msdata=eabi' option also sets the '-memb' option.
  18547. '-msdata=sysv'
  18548. On System V.4 and embedded PowerPC systems, put small global and
  18549. static data in the '.sdata' section, which is pointed to by
  18550. register 'r13'. Put small uninitialized global and static data in
  18551. the '.sbss' section, which is adjacent to the '.sdata' section.
  18552. The '-msdata=sysv' option is incompatible with the '-mrelocatable'
  18553. option.
  18554. '-msdata=default'
  18555. '-msdata'
  18556. On System V.4 and embedded PowerPC systems, if '-meabi' is used,
  18557. compile code the same as '-msdata=eabi', otherwise compile code the
  18558. same as '-msdata=sysv'.
  18559. '-msdata=data'
  18560. On System V.4 and embedded PowerPC systems, put small global data
  18561. in the '.sdata' section. Put small uninitialized global data in
  18562. the '.sbss' section. Do not use register 'r13' to address small
  18563. data however. This is the default behavior unless other '-msdata'
  18564. options are used.
  18565. '-msdata=none'
  18566. '-mno-sdata'
  18567. On embedded PowerPC systems, put all initialized global and static
  18568. data in the '.data' section, and all uninitialized data in the
  18569. '.bss' section.
  18570. '-mreadonly-in-sdata'
  18571. Put read-only objects in the '.sdata' section as well. This is the
  18572. default.
  18573. '-mblock-move-inline-limit=NUM'
  18574. Inline all block moves (such as calls to 'memcpy' or structure
  18575. copies) less than or equal to NUM bytes. The minimum value for NUM
  18576. is 32 bytes on 32-bit targets and 64 bytes on 64-bit targets. The
  18577. default value is target-specific.
  18578. '-mblock-compare-inline-limit=NUM'
  18579. Generate non-looping inline code for all block compares (such as
  18580. calls to 'memcmp' or structure compares) less than or equal to NUM
  18581. bytes. If NUM is 0, all inline expansion (non-loop and loop) of
  18582. block compare is disabled. The default value is target-specific.
  18583. '-mblock-compare-inline-loop-limit=NUM'
  18584. Generate an inline expansion using loop code for all block compares
  18585. that are less than or equal to NUM bytes, but greater than the
  18586. limit for non-loop inline block compare expansion. If the block
  18587. length is not constant, at most NUM bytes will be compared before
  18588. 'memcmp' is called to compare the remainder of the block. The
  18589. default value is target-specific.
  18590. '-mstring-compare-inline-limit=NUM'
  18591. Compare at most NUM string bytes with inline code. If the
  18592. difference or end of string is not found at the end of the inline
  18593. compare a call to 'strcmp' or 'strncmp' will take care of the rest
  18594. of the comparison. The default is 64 bytes.
  18595. '-G NUM'
  18596. On embedded PowerPC systems, put global and static items less than
  18597. or equal to NUM bytes into the small data or BSS sections instead
  18598. of the normal data or BSS section. By default, NUM is 8. The '-G
  18599. NUM' switch is also passed to the linker. All modules should be
  18600. compiled with the same '-G NUM' value.
  18601. '-mregnames'
  18602. '-mno-regnames'
  18603. On System V.4 and embedded PowerPC systems do (do not) emit
  18604. register names in the assembly language output using symbolic
  18605. forms.
  18606. '-mlongcall'
  18607. '-mno-longcall'
  18608. By default assume that all calls are far away so that a longer and
  18609. more expensive calling sequence is required. This is required for
  18610. calls farther than 32 megabytes (33,554,432 bytes) from the current
  18611. location. A short call is generated if the compiler knows the call
  18612. cannot be that far away. This setting can be overridden by the
  18613. 'shortcall' function attribute, or by '#pragma longcall(0)'.
  18614. Some linkers are capable of detecting out-of-range calls and
  18615. generating glue code on the fly. On these systems, long calls are
  18616. unnecessary and generate slower code. As of this writing, the AIX
  18617. linker can do this, as can the GNU linker for PowerPC/64. It is
  18618. planned to add this feature to the GNU linker for 32-bit PowerPC
  18619. systems as well.
  18620. On PowerPC64 ELFv2 and 32-bit PowerPC systems with newer GNU
  18621. linkers, GCC can generate long calls using an inline PLT call
  18622. sequence (see '-mpltseq'). PowerPC with '-mbss-plt' and PowerPC64
  18623. ELFv1 (big-endian) do not support inline PLT calls.
  18624. On Darwin/PPC systems, '#pragma longcall' generates 'jbsr callee,
  18625. L42', plus a "branch island" (glue code). The two target addresses
  18626. represent the callee and the branch island. The Darwin/PPC linker
  18627. prefers the first address and generates a 'bl callee' if the PPC
  18628. 'bl' instruction reaches the callee directly; otherwise, the linker
  18629. generates 'bl L42' to call the branch island. The branch island is
  18630. appended to the body of the calling function; it computes the full
  18631. 32-bit address of the callee and jumps to it.
  18632. On Mach-O (Darwin) systems, this option directs the compiler emit
  18633. to the glue for every direct call, and the Darwin linker decides
  18634. whether to use or discard it.
  18635. In the future, GCC may ignore all longcall specifications when the
  18636. linker is known to generate glue.
  18637. '-mpltseq'
  18638. '-mno-pltseq'
  18639. Implement (do not implement) -fno-plt and long calls using an
  18640. inline PLT call sequence that supports lazy linking and long calls
  18641. to functions in dlopen'd shared libraries. Inline PLT calls are
  18642. only supported on PowerPC64 ELFv2 and 32-bit PowerPC systems with
  18643. newer GNU linkers, and are enabled by default if the support is
  18644. detected when configuring GCC, and, in the case of 32-bit PowerPC,
  18645. if GCC is configured with '--enable-secureplt'. '-mpltseq' code
  18646. and '-mbss-plt' 32-bit PowerPC relocatable objects may not be
  18647. linked together.
  18648. '-mtls-markers'
  18649. '-mno-tls-markers'
  18650. Mark (do not mark) calls to '__tls_get_addr' with a relocation
  18651. specifying the function argument. The relocation allows the linker
  18652. to reliably associate function call with argument setup
  18653. instructions for TLS optimization, which in turn allows GCC to
  18654. better schedule the sequence.
  18655. '-mrecip'
  18656. '-mno-recip'
  18657. This option enables use of the reciprocal estimate and reciprocal
  18658. square root estimate instructions with additional Newton-Raphson
  18659. steps to increase precision instead of doing a divide or square
  18660. root and divide for floating-point arguments. You should use the
  18661. '-ffast-math' option when using '-mrecip' (or at least
  18662. '-funsafe-math-optimizations', '-ffinite-math-only',
  18663. '-freciprocal-math' and '-fno-trapping-math'). Note that while the
  18664. throughput of the sequence is generally higher than the throughput
  18665. of the non-reciprocal instruction, the precision of the sequence
  18666. can be decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  18667. 0.99999994) for reciprocal square roots.
  18668. '-mrecip=OPT'
  18669. This option controls which reciprocal estimate instructions may be
  18670. used. OPT is a comma-separated list of options, which may be
  18671. preceded by a '!' to invert the option:
  18672. 'all'
  18673. Enable all estimate instructions.
  18674. 'default'
  18675. Enable the default instructions, equivalent to '-mrecip'.
  18676. 'none'
  18677. Disable all estimate instructions, equivalent to '-mno-recip'.
  18678. 'div'
  18679. Enable the reciprocal approximation instructions for both
  18680. single and double precision.
  18681. 'divf'
  18682. Enable the single-precision reciprocal approximation
  18683. instructions.
  18684. 'divd'
  18685. Enable the double-precision reciprocal approximation
  18686. instructions.
  18687. 'rsqrt'
  18688. Enable the reciprocal square root approximation instructions
  18689. for both single and double precision.
  18690. 'rsqrtf'
  18691. Enable the single-precision reciprocal square root
  18692. approximation instructions.
  18693. 'rsqrtd'
  18694. Enable the double-precision reciprocal square root
  18695. approximation instructions.
  18696. So, for example, '-mrecip=all,!rsqrtd' enables all of the
  18697. reciprocal estimate instructions, except for the 'FRSQRTE',
  18698. 'XSRSQRTEDP', and 'XVRSQRTEDP' instructions which handle the
  18699. double-precision reciprocal square root calculations.
  18700. '-mrecip-precision'
  18701. '-mno-recip-precision'
  18702. Assume (do not assume) that the reciprocal estimate instructions
  18703. provide higher-precision estimates than is mandated by the PowerPC
  18704. ABI. Selecting '-mcpu=power6', '-mcpu=power7' or '-mcpu=power8'
  18705. automatically selects '-mrecip-precision'. The double-precision
  18706. square root estimate instructions are not generated by default on
  18707. low-precision machines, since they do not provide an estimate that
  18708. converges after three steps.
  18709. '-mveclibabi=TYPE'
  18710. Specifies the ABI type to use for vectorizing intrinsics using an
  18711. external library. The only type supported at present is 'mass',
  18712. which specifies to use IBM's Mathematical Acceleration Subsystem
  18713. (MASS) libraries for vectorizing intrinsics using external
  18714. libraries. GCC currently emits calls to 'acosd2', 'acosf4',
  18715. 'acoshd2', 'acoshf4', 'asind2', 'asinf4', 'asinhd2', 'asinhf4',
  18716. 'atan2d2', 'atan2f4', 'atand2', 'atanf4', 'atanhd2', 'atanhf4',
  18717. 'cbrtd2', 'cbrtf4', 'cosd2', 'cosf4', 'coshd2', 'coshf4', 'erfcd2',
  18718. 'erfcf4', 'erfd2', 'erff4', 'exp2d2', 'exp2f4', 'expd2', 'expf4',
  18719. 'expm1d2', 'expm1f4', 'hypotd2', 'hypotf4', 'lgammad2', 'lgammaf4',
  18720. 'log10d2', 'log10f4', 'log1pd2', 'log1pf4', 'log2d2', 'log2f4',
  18721. 'logd2', 'logf4', 'powd2', 'powf4', 'sind2', 'sinf4', 'sinhd2',
  18722. 'sinhf4', 'sqrtd2', 'sqrtf4', 'tand2', 'tanf4', 'tanhd2', and
  18723. 'tanhf4' when generating code for power7. Both '-ftree-vectorize'
  18724. and '-funsafe-math-optimizations' must also be enabled. The MASS
  18725. libraries must be specified at link time.
  18726. '-mfriz'
  18727. '-mno-friz'
  18728. Generate (do not generate) the 'friz' instruction when the
  18729. '-funsafe-math-optimizations' option is used to optimize rounding
  18730. of floating-point values to 64-bit integer and back to floating
  18731. point. The 'friz' instruction does not return the same value if
  18732. the floating-point number is too large to fit in an integer.
  18733. '-mpointers-to-nested-functions'
  18734. '-mno-pointers-to-nested-functions'
  18735. Generate (do not generate) code to load up the static chain
  18736. register ('r11') when calling through a pointer on AIX and 64-bit
  18737. Linux systems where a function pointer points to a 3-word
  18738. descriptor giving the function address, TOC value to be loaded in
  18739. register 'r2', and static chain value to be loaded in register
  18740. 'r11'. The '-mpointers-to-nested-functions' is on by default. You
  18741. cannot call through pointers to nested functions or pointers to
  18742. functions compiled in other languages that use the static chain if
  18743. you use '-mno-pointers-to-nested-functions'.
  18744. '-msave-toc-indirect'
  18745. '-mno-save-toc-indirect'
  18746. Generate (do not generate) code to save the TOC value in the
  18747. reserved stack location in the function prologue if the function
  18748. calls through a pointer on AIX and 64-bit Linux systems. If the
  18749. TOC value is not saved in the prologue, it is saved just before the
  18750. call through the pointer. The '-mno-save-toc-indirect' option is
  18751. the default.
  18752. '-mcompat-align-parm'
  18753. '-mno-compat-align-parm'
  18754. Generate (do not generate) code to pass structure parameters with a
  18755. maximum alignment of 64 bits, for compatibility with older versions
  18756. of GCC.
  18757. Older versions of GCC (prior to 4.9.0) incorrectly did not align a
  18758. structure parameter on a 128-bit boundary when that structure
  18759. contained a member requiring 128-bit alignment. This is corrected
  18760. in more recent versions of GCC. This option may be used to generate
  18761. code that is compatible with functions compiled with older versions
  18762. of GCC.
  18763. The '-mno-compat-align-parm' option is the default.
  18764. '-mstack-protector-guard=GUARD'
  18765. '-mstack-protector-guard-reg=REG'
  18766. '-mstack-protector-guard-offset=OFFSET'
  18767. '-mstack-protector-guard-symbol=SYMBOL'
  18768. Generate stack protection code using canary at GUARD. Supported
  18769. locations are 'global' for global canary or 'tls' for per-thread
  18770. canary in the TLS block (the default with GNU libc version 2.4 or
  18771. later).
  18772. With the latter choice the options
  18773. '-mstack-protector-guard-reg=REG' and
  18774. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  18775. register to use as base register for reading the canary, and from
  18776. what offset from that base register. The default for those is as
  18777. specified in the relevant ABI.
  18778. '-mstack-protector-guard-symbol=SYMBOL' overrides the offset with a
  18779. symbol reference to a canary in the TLS block.
  18780. 
  18781. File: gcc.info, Node: RX Options, Next: S/390 and zSeries Options, Prev: RS/6000 and PowerPC Options, Up: Submodel Options
  18782. 3.18.43 RX Options
  18783. ------------------
  18784. These command-line options are defined for RX targets:
  18785. '-m64bit-doubles'
  18786. '-m32bit-doubles'
  18787. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  18788. bits ('-m32bit-doubles') in size. The default is
  18789. '-m32bit-doubles'. _Note_ RX floating-point hardware only works on
  18790. 32-bit values, which is why the default is '-m32bit-doubles'.
  18791. '-fpu'
  18792. '-nofpu'
  18793. Enables ('-fpu') or disables ('-nofpu') the use of RX
  18794. floating-point hardware. The default is enabled for the RX600
  18795. series and disabled for the RX200 series.
  18796. Floating-point instructions are only generated for 32-bit
  18797. floating-point values, however, so the FPU hardware is not used for
  18798. doubles if the '-m64bit-doubles' option is used.
  18799. _Note_ If the '-fpu' option is enabled then
  18800. '-funsafe-math-optimizations' is also enabled automatically. This
  18801. is because the RX FPU instructions are themselves unsafe.
  18802. '-mcpu=NAME'
  18803. Selects the type of RX CPU to be targeted. Currently three types
  18804. are supported, the generic 'RX600' and 'RX200' series hardware and
  18805. the specific 'RX610' CPU. The default is 'RX600'.
  18806. The only difference between 'RX600' and 'RX610' is that the 'RX610'
  18807. does not support the 'MVTIPL' instruction.
  18808. The 'RX200' series does not have a hardware floating-point unit and
  18809. so '-nofpu' is enabled by default when this type is selected.
  18810. '-mbig-endian-data'
  18811. '-mlittle-endian-data'
  18812. Store data (but not code) in the big-endian format. The default is
  18813. '-mlittle-endian-data', i.e. to store data in the little-endian
  18814. format.
  18815. '-msmall-data-limit=N'
  18816. Specifies the maximum size in bytes of global and static variables
  18817. which can be placed into the small data area. Using the small data
  18818. area can lead to smaller and faster code, but the size of area is
  18819. limited and it is up to the programmer to ensure that the area does
  18820. not overflow. Also when the small data area is used one of the
  18821. RX's registers (usually 'r13') is reserved for use pointing to this
  18822. area, so it is no longer available for use by the compiler. This
  18823. could result in slower and/or larger code if variables are pushed
  18824. onto the stack instead of being held in this register.
  18825. Note, common variables (variables that have not been initialized)
  18826. and constants are not placed into the small data area as they are
  18827. assigned to other sections in the output executable.
  18828. The default value is zero, which disables this feature. Note, this
  18829. feature is not enabled by default with higher optimization levels
  18830. ('-O2' etc) because of the potentially detrimental effects of
  18831. reserving a register. It is up to the programmer to experiment and
  18832. discover whether this feature is of benefit to their program. See
  18833. the description of the '-mpid' option for a description of how the
  18834. actual register to hold the small data area pointer is chosen.
  18835. '-msim'
  18836. '-mno-sim'
  18837. Use the simulator runtime. The default is to use the libgloss
  18838. board-specific runtime.
  18839. '-mas100-syntax'
  18840. '-mno-as100-syntax'
  18841. When generating assembler output use a syntax that is compatible
  18842. with Renesas's AS100 assembler. This syntax can also be handled by
  18843. the GAS assembler, but it has some restrictions so it is not
  18844. generated by default.
  18845. '-mmax-constant-size=N'
  18846. Specifies the maximum size, in bytes, of a constant that can be
  18847. used as an operand in a RX instruction. Although the RX
  18848. instruction set does allow constants of up to 4 bytes in length to
  18849. be used in instructions, a longer value equates to a longer
  18850. instruction. Thus in some circumstances it can be beneficial to
  18851. restrict the size of constants that are used in instructions.
  18852. Constants that are too big are instead placed into a constant pool
  18853. and referenced via register indirection.
  18854. The value N can be between 0 and 4. A value of 0 (the default) or
  18855. 4 means that constants of any size are allowed.
  18856. '-mrelax'
  18857. Enable linker relaxation. Linker relaxation is a process whereby
  18858. the linker attempts to reduce the size of a program by finding
  18859. shorter versions of various instructions. Disabled by default.
  18860. '-mint-register=N'
  18861. Specify the number of registers to reserve for fast interrupt
  18862. handler functions. The value N can be between 0 and 4. A value of
  18863. 1 means that register 'r13' is reserved for the exclusive use of
  18864. fast interrupt handlers. A value of 2 reserves 'r13' and 'r12'. A
  18865. value of 3 reserves 'r13', 'r12' and 'r11', and a value of 4
  18866. reserves 'r13' through 'r10'. A value of 0, the default, does not
  18867. reserve any registers.
  18868. '-msave-acc-in-interrupts'
  18869. Specifies that interrupt handler functions should preserve the
  18870. accumulator register. This is only necessary if normal code might
  18871. use the accumulator register, for example because it performs
  18872. 64-bit multiplications. The default is to ignore the accumulator
  18873. as this makes the interrupt handlers faster.
  18874. '-mpid'
  18875. '-mno-pid'
  18876. Enables the generation of position independent data. When enabled
  18877. any access to constant data is done via an offset from a base
  18878. address held in a register. This allows the location of constant
  18879. data to be determined at run time without requiring the executable
  18880. to be relocated, which is a benefit to embedded applications with
  18881. tight memory constraints. Data that can be modified is not
  18882. affected by this option.
  18883. Note, using this feature reserves a register, usually 'r13', for
  18884. the constant data base address. This can result in slower and/or
  18885. larger code, especially in complicated functions.
  18886. The actual register chosen to hold the constant data base address
  18887. depends upon whether the '-msmall-data-limit' and/or the
  18888. '-mint-register' command-line options are enabled. Starting with
  18889. register 'r13' and proceeding downwards, registers are allocated
  18890. first to satisfy the requirements of '-mint-register', then '-mpid'
  18891. and finally '-msmall-data-limit'. Thus it is possible for the
  18892. small data area register to be 'r8' if both '-mint-register=4' and
  18893. '-mpid' are specified on the command line.
  18894. By default this feature is not enabled. The default can be
  18895. restored via the '-mno-pid' command-line option.
  18896. '-mno-warn-multiple-fast-interrupts'
  18897. '-mwarn-multiple-fast-interrupts'
  18898. Prevents GCC from issuing a warning message if it finds more than
  18899. one fast interrupt handler when it is compiling a file. The
  18900. default is to issue a warning for each extra fast interrupt handler
  18901. found, as the RX only supports one such interrupt.
  18902. '-mallow-string-insns'
  18903. '-mno-allow-string-insns'
  18904. Enables or disables the use of the string manipulation instructions
  18905. 'SMOVF', 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' and also the
  18906. 'RMPA' instruction. These instructions may prefetch data, which is
  18907. not safe to do if accessing an I/O register. (See section 12.2.7
  18908. of the RX62N Group User's Manual for more information).
  18909. The default is to allow these instructions, but it is not possible
  18910. for GCC to reliably detect all circumstances where a string
  18911. instruction might be used to access an I/O register, so their use
  18912. cannot be disabled automatically. Instead it is reliant upon the
  18913. programmer to use the '-mno-allow-string-insns' option if their
  18914. program accesses I/O space.
  18915. When the instructions are enabled GCC defines the C preprocessor
  18916. symbol '__RX_ALLOW_STRING_INSNS__', otherwise it defines the symbol
  18917. '__RX_DISALLOW_STRING_INSNS__'.
  18918. '-mjsr'
  18919. '-mno-jsr'
  18920. Use only (or not only) 'JSR' instructions to access functions.
  18921. This option can be used when code size exceeds the range of 'BSR'
  18922. instructions. Note that '-mno-jsr' does not mean to not use 'JSR'
  18923. but instead means that any type of branch may be used.
  18924. _Note:_ The generic GCC command-line option '-ffixed-REG' has special
  18925. significance to the RX port when used with the 'interrupt' function
  18926. attribute. This attribute indicates a function intended to process fast
  18927. interrupts. GCC ensures that it only uses the registers 'r10', 'r11',
  18928. 'r12' and/or 'r13' and only provided that the normal use of the
  18929. corresponding registers have been restricted via the '-ffixed-REG' or
  18930. '-mint-register' command-line options.
  18931. 
  18932. File: gcc.info, Node: S/390 and zSeries Options, Next: Score Options, Prev: RX Options, Up: Submodel Options
  18933. 3.18.44 S/390 and zSeries Options
  18934. ---------------------------------
  18935. These are the '-m' options defined for the S/390 and zSeries
  18936. architecture.
  18937. '-mhard-float'
  18938. '-msoft-float'
  18939. Use (do not use) the hardware floating-point instructions and
  18940. registers for floating-point operations. When '-msoft-float' is
  18941. specified, functions in 'libgcc.a' are used to perform
  18942. floating-point operations. When '-mhard-float' is specified, the
  18943. compiler generates IEEE floating-point instructions. This is the
  18944. default.
  18945. '-mhard-dfp'
  18946. '-mno-hard-dfp'
  18947. Use (do not use) the hardware decimal-floating-point instructions
  18948. for decimal-floating-point operations. When '-mno-hard-dfp' is
  18949. specified, functions in 'libgcc.a' are used to perform
  18950. decimal-floating-point operations. When '-mhard-dfp' is specified,
  18951. the compiler generates decimal-floating-point hardware
  18952. instructions. This is the default for '-march=z9-ec' or higher.
  18953. '-mlong-double-64'
  18954. '-mlong-double-128'
  18955. These switches control the size of 'long double' type. A size of
  18956. 64 bits makes the 'long double' type equivalent to the 'double'
  18957. type. This is the default.
  18958. '-mbackchain'
  18959. '-mno-backchain'
  18960. Store (do not store) the address of the caller's frame as backchain
  18961. pointer into the callee's stack frame. A backchain may be needed
  18962. to allow debugging using tools that do not understand DWARF call
  18963. frame information. When '-mno-packed-stack' is in effect, the
  18964. backchain pointer is stored at the bottom of the stack frame; when
  18965. '-mpacked-stack' is in effect, the backchain is placed into the
  18966. topmost word of the 96/160 byte register save area.
  18967. In general, code compiled with '-mbackchain' is call-compatible
  18968. with code compiled with '-mmo-backchain'; however, use of the
  18969. backchain for debugging purposes usually requires that the whole
  18970. binary is built with '-mbackchain'. Note that the combination of
  18971. '-mbackchain', '-mpacked-stack' and '-mhard-float' is not
  18972. supported. In order to build a linux kernel use '-msoft-float'.
  18973. The default is to not maintain the backchain.
  18974. '-mpacked-stack'
  18975. '-mno-packed-stack'
  18976. Use (do not use) the packed stack layout. When '-mno-packed-stack'
  18977. is specified, the compiler uses the all fields of the 96/160 byte
  18978. register save area only for their default purpose; unused fields
  18979. still take up stack space. When '-mpacked-stack' is specified,
  18980. register save slots are densely packed at the top of the register
  18981. save area; unused space is reused for other purposes, allowing for
  18982. more efficient use of the available stack space. However, when
  18983. '-mbackchain' is also in effect, the topmost word of the save area
  18984. is always used to store the backchain, and the return address
  18985. register is always saved two words below the backchain.
  18986. As long as the stack frame backchain is not used, code generated
  18987. with '-mpacked-stack' is call-compatible with code generated with
  18988. '-mno-packed-stack'. Note that some non-FSF releases of GCC 2.95
  18989. for S/390 or zSeries generated code that uses the stack frame
  18990. backchain at run time, not just for debugging purposes. Such code
  18991. is not call-compatible with code compiled with '-mpacked-stack'.
  18992. Also, note that the combination of '-mbackchain', '-mpacked-stack'
  18993. and '-mhard-float' is not supported. In order to build a linux
  18994. kernel use '-msoft-float'.
  18995. The default is to not use the packed stack layout.
  18996. '-msmall-exec'
  18997. '-mno-small-exec'
  18998. Generate (or do not generate) code using the 'bras' instruction to
  18999. do subroutine calls. This only works reliably if the total
  19000. executable size does not exceed 64k. The default is to use the
  19001. 'basr' instruction instead, which does not have this limitation.
  19002. '-m64'
  19003. '-m31'
  19004. When '-m31' is specified, generate code compliant to the GNU/Linux
  19005. for S/390 ABI. When '-m64' is specified, generate code compliant
  19006. to the GNU/Linux for zSeries ABI. This allows GCC in particular to
  19007. generate 64-bit instructions. For the 's390' targets, the default
  19008. is '-m31', while the 's390x' targets default to '-m64'.
  19009. '-mzarch'
  19010. '-mesa'
  19011. When '-mzarch' is specified, generate code using the instructions
  19012. available on z/Architecture. When '-mesa' is specified, generate
  19013. code using the instructions available on ESA/390. Note that
  19014. '-mesa' is not possible with '-m64'. When generating code
  19015. compliant to the GNU/Linux for S/390 ABI, the default is '-mesa'.
  19016. When generating code compliant to the GNU/Linux for zSeries ABI,
  19017. the default is '-mzarch'.
  19018. '-mhtm'
  19019. '-mno-htm'
  19020. The '-mhtm' option enables a set of builtins making use of
  19021. instructions available with the transactional execution facility
  19022. introduced with the IBM zEnterprise EC12 machine generation *note
  19023. S/390 System z Built-in Functions::. '-mhtm' is enabled by default
  19024. when using '-march=zEC12'.
  19025. '-mvx'
  19026. '-mno-vx'
  19027. When '-mvx' is specified, generate code using the instructions
  19028. available with the vector extension facility introduced with the
  19029. IBM z13 machine generation. This option changes the ABI for some
  19030. vector type values with regard to alignment and calling
  19031. conventions. In case vector type values are being used in an
  19032. ABI-relevant context a GAS '.gnu_attribute' command will be added
  19033. to mark the resulting binary with the ABI used. '-mvx' is enabled
  19034. by default when using '-march=z13'.
  19035. '-mzvector'
  19036. '-mno-zvector'
  19037. The '-mzvector' option enables vector language extensions and
  19038. builtins using instructions available with the vector extension
  19039. facility introduced with the IBM z13 machine generation. This
  19040. option adds support for 'vector' to be used as a keyword to define
  19041. vector type variables and arguments. 'vector' is only available
  19042. when GNU extensions are enabled. It will not be expanded when
  19043. requesting strict standard compliance e.g. with '-std=c99'. In
  19044. addition to the GCC low-level builtins '-mzvector' enables a set of
  19045. builtins added for compatibility with AltiVec-style implementations
  19046. like Power and Cell. In order to make use of these builtins the
  19047. header file 'vecintrin.h' needs to be included. '-mzvector' is
  19048. disabled by default.
  19049. '-mmvcle'
  19050. '-mno-mvcle'
  19051. Generate (or do not generate) code using the 'mvcle' instruction to
  19052. perform block moves. When '-mno-mvcle' is specified, use a 'mvc'
  19053. loop instead. This is the default unless optimizing for size.
  19054. '-mdebug'
  19055. '-mno-debug'
  19056. Print (or do not print) additional debug information when
  19057. compiling. The default is to not print debug information.
  19058. '-march=CPU-TYPE'
  19059. Generate code that runs on CPU-TYPE, which is the name of a system
  19060. representing a certain processor type. Possible values for
  19061. CPU-TYPE are 'z900'/'arch5', 'z990'/'arch6', 'z9-109',
  19062. 'z9-ec'/'arch7', 'z10'/'arch8', 'z196'/'arch9', 'zEC12',
  19063. 'z13'/'arch11', 'z14'/'arch12', and 'native'.
  19064. The default is '-march=z900'.
  19065. Specifying 'native' as cpu type can be used to select the best
  19066. architecture option for the host processor. '-march=native' has no
  19067. effect if GCC does not recognize the processor.
  19068. '-mtune=CPU-TYPE'
  19069. Tune to CPU-TYPE everything applicable about the generated code,
  19070. except for the ABI and the set of available instructions. The list
  19071. of CPU-TYPE values is the same as for '-march'. The default is the
  19072. value used for '-march'.
  19073. '-mtpf-trace'
  19074. '-mno-tpf-trace'
  19075. Generate code that adds (does not add) in TPF OS specific branches
  19076. to trace routines in the operating system. This option is off by
  19077. default, even when compiling for the TPF OS.
  19078. '-mfused-madd'
  19079. '-mno-fused-madd'
  19080. Generate code that uses (does not use) the floating-point multiply
  19081. and accumulate instructions. These instructions are generated by
  19082. default if hardware floating point is used.
  19083. '-mwarn-framesize=FRAMESIZE'
  19084. Emit a warning if the current function exceeds the given frame
  19085. size. Because this is a compile-time check it doesn't need to be a
  19086. real problem when the program runs. It is intended to identify
  19087. functions that most probably cause a stack overflow. It is useful
  19088. to be used in an environment with limited stack size e.g. the linux
  19089. kernel.
  19090. '-mwarn-dynamicstack'
  19091. Emit a warning if the function calls 'alloca' or uses
  19092. dynamically-sized arrays. This is generally a bad idea with a
  19093. limited stack size.
  19094. '-mstack-guard=STACK-GUARD'
  19095. '-mstack-size=STACK-SIZE'
  19096. If these options are provided the S/390 back end emits additional
  19097. instructions in the function prologue that trigger a trap if the
  19098. stack size is STACK-GUARD bytes above the STACK-SIZE (remember that
  19099. the stack on S/390 grows downward). If the STACK-GUARD option is
  19100. omitted the smallest power of 2 larger than the frame size of the
  19101. compiled function is chosen. These options are intended to be used
  19102. to help debugging stack overflow problems. The additionally
  19103. emitted code causes only little overhead and hence can also be used
  19104. in production-like systems without greater performance degradation.
  19105. The given values have to be exact powers of 2 and STACK-SIZE has to
  19106. be greater than STACK-GUARD without exceeding 64k. In order to be
  19107. efficient the extra code makes the assumption that the stack starts
  19108. at an address aligned to the value given by STACK-SIZE. The
  19109. STACK-GUARD option can only be used in conjunction with STACK-SIZE.
  19110. '-mhotpatch=PRE-HALFWORDS,POST-HALFWORDS'
  19111. If the hotpatch option is enabled, a "hot-patching" function
  19112. prologue is generated for all functions in the compilation unit.
  19113. The funtion label is prepended with the given number of two-byte
  19114. NOP instructions (PRE-HALFWORDS, maximum 1000000). After the
  19115. label, 2 * POST-HALFWORDS bytes are appended, using the largest NOP
  19116. like instructions the architecture allows (maximum 1000000).
  19117. If both arguments are zero, hotpatching is disabled.
  19118. This option can be overridden for individual functions with the
  19119. 'hotpatch' attribute.
  19120. 
  19121. File: gcc.info, Node: Score Options, Next: SH Options, Prev: S/390 and zSeries Options, Up: Submodel Options
  19122. 3.18.45 Score Options
  19123. ---------------------
  19124. These options are defined for Score implementations:
  19125. '-meb'
  19126. Compile code for big-endian mode. This is the default.
  19127. '-mel'
  19128. Compile code for little-endian mode.
  19129. '-mnhwloop'
  19130. Disable generation of 'bcnz' instructions.
  19131. '-muls'
  19132. Enable generation of unaligned load and store instructions.
  19133. '-mmac'
  19134. Enable the use of multiply-accumulate instructions. Disabled by
  19135. default.
  19136. '-mscore5'
  19137. Specify the SCORE5 as the target architecture.
  19138. '-mscore5u'
  19139. Specify the SCORE5U of the target architecture.
  19140. '-mscore7'
  19141. Specify the SCORE7 as the target architecture. This is the
  19142. default.
  19143. '-mscore7d'
  19144. Specify the SCORE7D as the target architecture.
  19145. 
  19146. File: gcc.info, Node: SH Options, Next: Solaris 2 Options, Prev: Score Options, Up: Submodel Options
  19147. 3.18.46 SH Options
  19148. ------------------
  19149. These '-m' options are defined for the SH implementations:
  19150. '-m1'
  19151. Generate code for the SH1.
  19152. '-m2'
  19153. Generate code for the SH2.
  19154. '-m2e'
  19155. Generate code for the SH2e.
  19156. '-m2a-nofpu'
  19157. Generate code for the SH2a without FPU, or for a SH2a-FPU in such a
  19158. way that the floating-point unit is not used.
  19159. '-m2a-single-only'
  19160. Generate code for the SH2a-FPU, in such a way that no
  19161. double-precision floating-point operations are used.
  19162. '-m2a-single'
  19163. Generate code for the SH2a-FPU assuming the floating-point unit is
  19164. in single-precision mode by default.
  19165. '-m2a'
  19166. Generate code for the SH2a-FPU assuming the floating-point unit is
  19167. in double-precision mode by default.
  19168. '-m3'
  19169. Generate code for the SH3.
  19170. '-m3e'
  19171. Generate code for the SH3e.
  19172. '-m4-nofpu'
  19173. Generate code for the SH4 without a floating-point unit.
  19174. '-m4-single-only'
  19175. Generate code for the SH4 with a floating-point unit that only
  19176. supports single-precision arithmetic.
  19177. '-m4-single'
  19178. Generate code for the SH4 assuming the floating-point unit is in
  19179. single-precision mode by default.
  19180. '-m4'
  19181. Generate code for the SH4.
  19182. '-m4-100'
  19183. Generate code for SH4-100.
  19184. '-m4-100-nofpu'
  19185. Generate code for SH4-100 in such a way that the floating-point
  19186. unit is not used.
  19187. '-m4-100-single'
  19188. Generate code for SH4-100 assuming the floating-point unit is in
  19189. single-precision mode by default.
  19190. '-m4-100-single-only'
  19191. Generate code for SH4-100 in such a way that no double-precision
  19192. floating-point operations are used.
  19193. '-m4-200'
  19194. Generate code for SH4-200.
  19195. '-m4-200-nofpu'
  19196. Generate code for SH4-200 without in such a way that the
  19197. floating-point unit is not used.
  19198. '-m4-200-single'
  19199. Generate code for SH4-200 assuming the floating-point unit is in
  19200. single-precision mode by default.
  19201. '-m4-200-single-only'
  19202. Generate code for SH4-200 in such a way that no double-precision
  19203. floating-point operations are used.
  19204. '-m4-300'
  19205. Generate code for SH4-300.
  19206. '-m4-300-nofpu'
  19207. Generate code for SH4-300 without in such a way that the
  19208. floating-point unit is not used.
  19209. '-m4-300-single'
  19210. Generate code for SH4-300 in such a way that no double-precision
  19211. floating-point operations are used.
  19212. '-m4-300-single-only'
  19213. Generate code for SH4-300 in such a way that no double-precision
  19214. floating-point operations are used.
  19215. '-m4-340'
  19216. Generate code for SH4-340 (no MMU, no FPU).
  19217. '-m4-500'
  19218. Generate code for SH4-500 (no FPU). Passes '-isa=sh4-nofpu' to the
  19219. assembler.
  19220. '-m4a-nofpu'
  19221. Generate code for the SH4al-dsp, or for a SH4a in such a way that
  19222. the floating-point unit is not used.
  19223. '-m4a-single-only'
  19224. Generate code for the SH4a, in such a way that no double-precision
  19225. floating-point operations are used.
  19226. '-m4a-single'
  19227. Generate code for the SH4a assuming the floating-point unit is in
  19228. single-precision mode by default.
  19229. '-m4a'
  19230. Generate code for the SH4a.
  19231. '-m4al'
  19232. Same as '-m4a-nofpu', except that it implicitly passes '-dsp' to
  19233. the assembler. GCC doesn't generate any DSP instructions at the
  19234. moment.
  19235. '-mb'
  19236. Compile code for the processor in big-endian mode.
  19237. '-ml'
  19238. Compile code for the processor in little-endian mode.
  19239. '-mdalign'
  19240. Align doubles at 64-bit boundaries. Note that this changes the
  19241. calling conventions, and thus some functions from the standard C
  19242. library do not work unless you recompile it first with '-mdalign'.
  19243. '-mrelax'
  19244. Shorten some address references at link time, when possible; uses
  19245. the linker option '-relax'.
  19246. '-mbigtable'
  19247. Use 32-bit offsets in 'switch' tables. The default is to use
  19248. 16-bit offsets.
  19249. '-mbitops'
  19250. Enable the use of bit manipulation instructions on SH2A.
  19251. '-mfmovd'
  19252. Enable the use of the instruction 'fmovd'. Check '-mdalign' for
  19253. alignment constraints.
  19254. '-mrenesas'
  19255. Comply with the calling conventions defined by Renesas.
  19256. '-mno-renesas'
  19257. Comply with the calling conventions defined for GCC before the
  19258. Renesas conventions were available. This option is the default for
  19259. all targets of the SH toolchain.
  19260. '-mnomacsave'
  19261. Mark the 'MAC' register as call-clobbered, even if '-mrenesas' is
  19262. given.
  19263. '-mieee'
  19264. '-mno-ieee'
  19265. Control the IEEE compliance of floating-point comparisons, which
  19266. affects the handling of cases where the result of a comparison is
  19267. unordered. By default '-mieee' is implicitly enabled. If
  19268. '-ffinite-math-only' is enabled '-mno-ieee' is implicitly set,
  19269. which results in faster floating-point greater-equal and less-equal
  19270. comparisons. The implicit settings can be overridden by specifying
  19271. either '-mieee' or '-mno-ieee'.
  19272. '-minline-ic_invalidate'
  19273. Inline code to invalidate instruction cache entries after setting
  19274. up nested function trampolines. This option has no effect if
  19275. '-musermode' is in effect and the selected code generation option
  19276. (e.g. '-m4') does not allow the use of the 'icbi' instruction. If
  19277. the selected code generation option does not allow the use of the
  19278. 'icbi' instruction, and '-musermode' is not in effect, the inlined
  19279. code manipulates the instruction cache address array directly with
  19280. an associative write. This not only requires privileged mode at
  19281. run time, but it also fails if the cache line had been mapped via
  19282. the TLB and has become unmapped.
  19283. '-misize'
  19284. Dump instruction size and location in the assembly code.
  19285. '-mpadstruct'
  19286. This option is deprecated. It pads structures to multiple of 4
  19287. bytes, which is incompatible with the SH ABI.
  19288. '-matomic-model=MODEL'
  19289. Sets the model of atomic operations and additional parameters as a
  19290. comma separated list. For details on the atomic built-in functions
  19291. see *note __atomic Builtins::. The following models and parameters
  19292. are supported:
  19293. 'none'
  19294. Disable compiler generated atomic sequences and emit library
  19295. calls for atomic operations. This is the default if the
  19296. target is not 'sh*-*-linux*'.
  19297. 'soft-gusa'
  19298. Generate GNU/Linux compatible gUSA software atomic sequences
  19299. for the atomic built-in functions. The generated atomic
  19300. sequences require additional support from the
  19301. interrupt/exception handling code of the system and are only
  19302. suitable for SH3* and SH4* single-core systems. This option
  19303. is enabled by default when the target is 'sh*-*-linux*' and
  19304. SH3* or SH4*. When the target is SH4A, this option also
  19305. partially utilizes the hardware atomic instructions 'movli.l'
  19306. and 'movco.l' to create more efficient code, unless 'strict'
  19307. is specified.
  19308. 'soft-tcb'
  19309. Generate software atomic sequences that use a variable in the
  19310. thread control block. This is a variation of the gUSA
  19311. sequences which can also be used on SH1* and SH2* targets.
  19312. The generated atomic sequences require additional support from
  19313. the interrupt/exception handling code of the system and are
  19314. only suitable for single-core systems. When using this model,
  19315. the 'gbr-offset=' parameter has to be specified as well.
  19316. 'soft-imask'
  19317. Generate software atomic sequences that temporarily disable
  19318. interrupts by setting 'SR.IMASK = 1111'. This model works
  19319. only when the program runs in privileged mode and is only
  19320. suitable for single-core systems. Additional support from the
  19321. interrupt/exception handling code of the system is not
  19322. required. This model is enabled by default when the target is
  19323. 'sh*-*-linux*' and SH1* or SH2*.
  19324. 'hard-llcs'
  19325. Generate hardware atomic sequences using the 'movli.l' and
  19326. 'movco.l' instructions only. This is only available on SH4A
  19327. and is suitable for multi-core systems. Since the hardware
  19328. instructions support only 32 bit atomic variables access to 8
  19329. or 16 bit variables is emulated with 32 bit accesses. Code
  19330. compiled with this option is also compatible with other
  19331. software atomic model interrupt/exception handling systems if
  19332. executed on an SH4A system. Additional support from the
  19333. interrupt/exception handling code of the system is not
  19334. required for this model.
  19335. 'gbr-offset='
  19336. This parameter specifies the offset in bytes of the variable
  19337. in the thread control block structure that should be used by
  19338. the generated atomic sequences when the 'soft-tcb' model has
  19339. been selected. For other models this parameter is ignored.
  19340. The specified value must be an integer multiple of four and in
  19341. the range 0-1020.
  19342. 'strict'
  19343. This parameter prevents mixed usage of multiple atomic models,
  19344. even if they are compatible, and makes the compiler generate
  19345. atomic sequences of the specified model only.
  19346. '-mtas'
  19347. Generate the 'tas.b' opcode for '__atomic_test_and_set'. Notice
  19348. that depending on the particular hardware and software
  19349. configuration this can degrade overall performance due to the
  19350. operand cache line flushes that are implied by the 'tas.b'
  19351. instruction. On multi-core SH4A processors the 'tas.b' instruction
  19352. must be used with caution since it can result in data corruption
  19353. for certain cache configurations.
  19354. '-mprefergot'
  19355. When generating position-independent code, emit function calls
  19356. using the Global Offset Table instead of the Procedure Linkage
  19357. Table.
  19358. '-musermode'
  19359. '-mno-usermode'
  19360. Don't allow (allow) the compiler generating privileged mode code.
  19361. Specifying '-musermode' also implies '-mno-inline-ic_invalidate' if
  19362. the inlined code would not work in user mode. '-musermode' is the
  19363. default when the target is 'sh*-*-linux*'. If the target is SH1*
  19364. or SH2* '-musermode' has no effect, since there is no user mode.
  19365. '-multcost=NUMBER'
  19366. Set the cost to assume for a multiply insn.
  19367. '-mdiv=STRATEGY'
  19368. Set the division strategy to be used for integer division
  19369. operations. STRATEGY can be one of:
  19370. 'call-div1'
  19371. Calls a library function that uses the single-step division
  19372. instruction 'div1' to perform the operation. Division by zero
  19373. calculates an unspecified result and does not trap. This is
  19374. the default except for SH4, SH2A and SHcompact.
  19375. 'call-fp'
  19376. Calls a library function that performs the operation in double
  19377. precision floating point. Division by zero causes a
  19378. floating-point exception. This is the default for SHcompact
  19379. with FPU. Specifying this for targets that do not have a
  19380. double precision FPU defaults to 'call-div1'.
  19381. 'call-table'
  19382. Calls a library function that uses a lookup table for small
  19383. divisors and the 'div1' instruction with case distinction for
  19384. larger divisors. Division by zero calculates an unspecified
  19385. result and does not trap. This is the default for SH4.
  19386. Specifying this for targets that do not have dynamic shift
  19387. instructions defaults to 'call-div1'.
  19388. When a division strategy has not been specified the default
  19389. strategy is selected based on the current target. For SH2A the
  19390. default strategy is to use the 'divs' and 'divu' instructions
  19391. instead of library function calls.
  19392. '-maccumulate-outgoing-args'
  19393. Reserve space once for outgoing arguments in the function prologue
  19394. rather than around each call. Generally beneficial for performance
  19395. and size. Also needed for unwinding to avoid changing the stack
  19396. frame around conditional code.
  19397. '-mdivsi3_libfunc=NAME'
  19398. Set the name of the library function used for 32-bit signed
  19399. division to NAME. This only affects the name used in the 'call'
  19400. division strategies, and the compiler still expects the same sets
  19401. of input/output/clobbered registers as if this option were not
  19402. present.
  19403. '-mfixed-range=REGISTER-RANGE'
  19404. Generate code treating the given register range as fixed registers.
  19405. A fixed register is one that the register allocator cannot use.
  19406. This is useful when compiling kernel code. A register range is
  19407. specified as two registers separated by a dash. Multiple register
  19408. ranges can be specified separated by a comma.
  19409. '-mbranch-cost=NUM'
  19410. Assume NUM to be the cost for a branch instruction. Higher numbers
  19411. make the compiler try to generate more branch-free code if
  19412. possible. If not specified the value is selected depending on the
  19413. processor type that is being compiled for.
  19414. '-mzdcbranch'
  19415. '-mno-zdcbranch'
  19416. Assume (do not assume) that zero displacement conditional branch
  19417. instructions 'bt' and 'bf' are fast. If '-mzdcbranch' is
  19418. specified, the compiler prefers zero displacement branch code
  19419. sequences. This is enabled by default when generating code for SH4
  19420. and SH4A. It can be explicitly disabled by specifying
  19421. '-mno-zdcbranch'.
  19422. '-mcbranch-force-delay-slot'
  19423. Force the usage of delay slots for conditional branches, which
  19424. stuffs the delay slot with a 'nop' if a suitable instruction cannot
  19425. be found. By default this option is disabled. It can be enabled
  19426. to work around hardware bugs as found in the original SH7055.
  19427. '-mfused-madd'
  19428. '-mno-fused-madd'
  19429. Generate code that uses (does not use) the floating-point multiply
  19430. and accumulate instructions. These instructions are generated by
  19431. default if hardware floating point is used. The machine-dependent
  19432. '-mfused-madd' option is now mapped to the machine-independent
  19433. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  19434. '-ffp-contract=off'.
  19435. '-mfsca'
  19436. '-mno-fsca'
  19437. Allow or disallow the compiler to emit the 'fsca' instruction for
  19438. sine and cosine approximations. The option '-mfsca' must be used
  19439. in combination with '-funsafe-math-optimizations'. It is enabled
  19440. by default when generating code for SH4A. Using '-mno-fsca'
  19441. disables sine and cosine approximations even if
  19442. '-funsafe-math-optimizations' is in effect.
  19443. '-mfsrra'
  19444. '-mno-fsrra'
  19445. Allow or disallow the compiler to emit the 'fsrra' instruction for
  19446. reciprocal square root approximations. The option '-mfsrra' must
  19447. be used in combination with '-funsafe-math-optimizations' and
  19448. '-ffinite-math-only'. It is enabled by default when generating
  19449. code for SH4A. Using '-mno-fsrra' disables reciprocal square root
  19450. approximations even if '-funsafe-math-optimizations' and
  19451. '-ffinite-math-only' are in effect.
  19452. '-mpretend-cmove'
  19453. Prefer zero-displacement conditional branches for conditional move
  19454. instruction patterns. This can result in faster code on the SH4
  19455. processor.
  19456. '-mfdpic'
  19457. Generate code using the FDPIC ABI.
  19458. 
  19459. File: gcc.info, Node: Solaris 2 Options, Next: SPARC Options, Prev: SH Options, Up: Submodel Options
  19460. 3.18.47 Solaris 2 Options
  19461. -------------------------
  19462. These '-m' options are supported on Solaris 2:
  19463. '-mclear-hwcap'
  19464. '-mclear-hwcap' tells the compiler to remove the hardware
  19465. capabilities generated by the Solaris assembler. This is only
  19466. necessary when object files use ISA extensions not supported by the
  19467. current machine, but check at runtime whether or not to use them.
  19468. '-mimpure-text'
  19469. '-mimpure-text', used in addition to '-shared', tells the compiler
  19470. to not pass '-z text' to the linker when linking a shared object.
  19471. Using this option, you can link position-dependent code into a
  19472. shared object.
  19473. '-mimpure-text' suppresses the "relocations remain against
  19474. allocatable but non-writable sections" linker error message.
  19475. However, the necessary relocations trigger copy-on-write, and the
  19476. shared object is not actually shared across processes. Instead of
  19477. using '-mimpure-text', you should compile all source code with
  19478. '-fpic' or '-fPIC'.
  19479. These switches are supported in addition to the above on Solaris 2:
  19480. '-pthreads'
  19481. This is a synonym for '-pthread'.
  19482. 
  19483. File: gcc.info, Node: SPARC Options, Next: SPU Options, Prev: Solaris 2 Options, Up: Submodel Options
  19484. 3.18.48 SPARC Options
  19485. ---------------------
  19486. These '-m' options are supported on the SPARC:
  19487. '-mno-app-regs'
  19488. '-mapp-regs'
  19489. Specify '-mapp-regs' to generate output using the global registers
  19490. 2 through 4, which the SPARC SVR4 ABI reserves for applications.
  19491. Like the global register 1, each global register 2 through 4 is
  19492. then treated as an allocable register that is clobbered by function
  19493. calls. This is the default.
  19494. To be fully SVR4 ABI-compliant at the cost of some performance
  19495. loss, specify '-mno-app-regs'. You should compile libraries and
  19496. system software with this option.
  19497. '-mflat'
  19498. '-mno-flat'
  19499. With '-mflat', the compiler does not generate save/restore
  19500. instructions and uses a "flat" or single register window model.
  19501. This model is compatible with the regular register window model.
  19502. The local registers and the input registers (0-5) are still treated
  19503. as "call-saved" registers and are saved on the stack as needed.
  19504. With '-mno-flat' (the default), the compiler generates save/restore
  19505. instructions (except for leaf functions). This is the normal
  19506. operating mode.
  19507. '-mfpu'
  19508. '-mhard-float'
  19509. Generate output containing floating-point instructions. This is
  19510. the default.
  19511. '-mno-fpu'
  19512. '-msoft-float'
  19513. Generate output containing library calls for floating point.
  19514. *Warning:* the requisite libraries are not available for all SPARC
  19515. targets. Normally the facilities of the machine's usual C compiler
  19516. are used, but this cannot be done directly in cross-compilation.
  19517. You must make your own arrangements to provide suitable library
  19518. functions for cross-compilation. The embedded targets
  19519. 'sparc-*-aout' and 'sparclite-*-*' do provide software
  19520. floating-point support.
  19521. '-msoft-float' changes the calling convention in the output file;
  19522. therefore, it is only useful if you compile _all_ of a program with
  19523. this option. In particular, you need to compile 'libgcc.a', the
  19524. library that comes with GCC, with '-msoft-float' in order for this
  19525. to work.
  19526. '-mhard-quad-float'
  19527. Generate output containing quad-word (long double) floating-point
  19528. instructions.
  19529. '-msoft-quad-float'
  19530. Generate output containing library calls for quad-word (long
  19531. double) floating-point instructions. The functions called are
  19532. those specified in the SPARC ABI. This is the default.
  19533. As of this writing, there are no SPARC implementations that have
  19534. hardware support for the quad-word floating-point instructions.
  19535. They all invoke a trap handler for one of these instructions, and
  19536. then the trap handler emulates the effect of the instruction.
  19537. Because of the trap handler overhead, this is much slower than
  19538. calling the ABI library routines. Thus the '-msoft-quad-float'
  19539. option is the default.
  19540. '-mno-unaligned-doubles'
  19541. '-munaligned-doubles'
  19542. Assume that doubles have 8-byte alignment. This is the default.
  19543. With '-munaligned-doubles', GCC assumes that doubles have 8-byte
  19544. alignment only if they are contained in another type, or if they
  19545. have an absolute address. Otherwise, it assumes they have 4-byte
  19546. alignment. Specifying this option avoids some rare compatibility
  19547. problems with code generated by other compilers. It is not the
  19548. default because it results in a performance loss, especially for
  19549. floating-point code.
  19550. '-muser-mode'
  19551. '-mno-user-mode'
  19552. Do not generate code that can only run in supervisor mode. This is
  19553. relevant only for the 'casa' instruction emitted for the LEON3
  19554. processor. This is the default.
  19555. '-mfaster-structs'
  19556. '-mno-faster-structs'
  19557. With '-mfaster-structs', the compiler assumes that structures
  19558. should have 8-byte alignment. This enables the use of pairs of
  19559. 'ldd' and 'std' instructions for copies in structure assignment, in
  19560. place of twice as many 'ld' and 'st' pairs. However, the use of
  19561. this changed alignment directly violates the SPARC ABI. Thus, it's
  19562. intended only for use on targets where the developer acknowledges
  19563. that their resulting code is not directly in line with the rules of
  19564. the ABI.
  19565. '-mstd-struct-return'
  19566. '-mno-std-struct-return'
  19567. With '-mstd-struct-return', the compiler generates checking code in
  19568. functions returning structures or unions to detect size mismatches
  19569. between the two sides of function calls, as per the 32-bit ABI.
  19570. The default is '-mno-std-struct-return'. This option has no effect
  19571. in 64-bit mode.
  19572. '-mlra'
  19573. '-mno-lra'
  19574. Enable Local Register Allocation. This is the default for SPARC
  19575. since GCC 7 so '-mno-lra' needs to be passed to get old Reload.
  19576. '-mcpu=CPU_TYPE'
  19577. Set the instruction set, register set, and instruction scheduling
  19578. parameters for machine type CPU_TYPE. Supported values for
  19579. CPU_TYPE are 'v7', 'cypress', 'v8', 'supersparc', 'hypersparc',
  19580. 'leon', 'leon3', 'leon3v7', 'sparclite', 'f930', 'f934',
  19581. 'sparclite86x', 'sparclet', 'tsc701', 'v9', 'ultrasparc',
  19582. 'ultrasparc3', 'niagara', 'niagara2', 'niagara3', 'niagara4',
  19583. 'niagara7' and 'm8'.
  19584. Native Solaris and GNU/Linux toolchains also support the value
  19585. 'native', which selects the best architecture option for the host
  19586. processor. '-mcpu=native' has no effect if GCC does not recognize
  19587. the processor.
  19588. Default instruction scheduling parameters are used for values that
  19589. select an architecture and not an implementation. These are 'v7',
  19590. 'v8', 'sparclite', 'sparclet', 'v9'.
  19591. Here is a list of each supported architecture and their supported
  19592. implementations.
  19593. v7
  19594. cypress, leon3v7
  19595. v8
  19596. supersparc, hypersparc, leon, leon3
  19597. sparclite
  19598. f930, f934, sparclite86x
  19599. sparclet
  19600. tsc701
  19601. v9
  19602. ultrasparc, ultrasparc3, niagara, niagara2, niagara3,
  19603. niagara4, niagara7, m8
  19604. By default (unless configured otherwise), GCC generates code for
  19605. the V7 variant of the SPARC architecture. With '-mcpu=cypress',
  19606. the compiler additionally optimizes it for the Cypress CY7C602
  19607. chip, as used in the SPARCStation/SPARCServer 3xx series. This is
  19608. also appropriate for the older SPARCStation 1, 2, IPX etc.
  19609. With '-mcpu=v8', GCC generates code for the V8 variant of the SPARC
  19610. architecture. The only difference from V7 code is that the
  19611. compiler emits the integer multiply and integer divide instructions
  19612. which exist in SPARC-V8 but not in SPARC-V7. With
  19613. '-mcpu=supersparc', the compiler additionally optimizes it for the
  19614. SuperSPARC chip, as used in the SPARCStation 10, 1000 and 2000
  19615. series.
  19616. With '-mcpu=sparclite', GCC generates code for the SPARClite
  19617. variant of the SPARC architecture. This adds the integer multiply,
  19618. integer divide step and scan ('ffs') instructions which exist in
  19619. SPARClite but not in SPARC-V7. With '-mcpu=f930', the compiler
  19620. additionally optimizes it for the Fujitsu MB86930 chip, which is
  19621. the original SPARClite, with no FPU. With '-mcpu=f934', the
  19622. compiler additionally optimizes it for the Fujitsu MB86934 chip,
  19623. which is the more recent SPARClite with FPU.
  19624. With '-mcpu=sparclet', GCC generates code for the SPARClet variant
  19625. of the SPARC architecture. This adds the integer multiply,
  19626. multiply/accumulate, integer divide step and scan ('ffs')
  19627. instructions which exist in SPARClet but not in SPARC-V7. With
  19628. '-mcpu=tsc701', the compiler additionally optimizes it for the
  19629. TEMIC SPARClet chip.
  19630. With '-mcpu=v9', GCC generates code for the V9 variant of the SPARC
  19631. architecture. This adds 64-bit integer and floating-point move
  19632. instructions, 3 additional floating-point condition code registers
  19633. and conditional move instructions. With '-mcpu=ultrasparc', the
  19634. compiler additionally optimizes it for the Sun UltraSPARC I/II/IIi
  19635. chips. With '-mcpu=ultrasparc3', the compiler additionally
  19636. optimizes it for the Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+
  19637. chips. With '-mcpu=niagara', the compiler additionally optimizes
  19638. it for Sun UltraSPARC T1 chips. With '-mcpu=niagara2', the
  19639. compiler additionally optimizes it for Sun UltraSPARC T2 chips.
  19640. With '-mcpu=niagara3', the compiler additionally optimizes it for
  19641. Sun UltraSPARC T3 chips. With '-mcpu=niagara4', the compiler
  19642. additionally optimizes it for Sun UltraSPARC T4 chips. With
  19643. '-mcpu=niagara7', the compiler additionally optimizes it for Oracle
  19644. SPARC M7 chips. With '-mcpu=m8', the compiler additionally
  19645. optimizes it for Oracle M8 chips.
  19646. '-mtune=CPU_TYPE'
  19647. Set the instruction scheduling parameters for machine type
  19648. CPU_TYPE, but do not set the instruction set or register set that
  19649. the option '-mcpu=CPU_TYPE' does.
  19650. The same values for '-mcpu=CPU_TYPE' can be used for
  19651. '-mtune=CPU_TYPE', but the only useful values are those that select
  19652. a particular CPU implementation. Those are 'cypress',
  19653. 'supersparc', 'hypersparc', 'leon', 'leon3', 'leon3v7', 'f930',
  19654. 'f934', 'sparclite86x', 'tsc701', 'ultrasparc', 'ultrasparc3',
  19655. 'niagara', 'niagara2', 'niagara3', 'niagara4', 'niagara7' and 'm8'.
  19656. With native Solaris and GNU/Linux toolchains, 'native' can also be
  19657. used.
  19658. '-mv8plus'
  19659. '-mno-v8plus'
  19660. With '-mv8plus', GCC generates code for the SPARC-V8+ ABI. The
  19661. difference from the V8 ABI is that the global and out registers are
  19662. considered 64 bits wide. This is enabled by default on Solaris in
  19663. 32-bit mode for all SPARC-V9 processors.
  19664. '-mvis'
  19665. '-mno-vis'
  19666. With '-mvis', GCC generates code that takes advantage of the
  19667. UltraSPARC Visual Instruction Set extensions. The default is
  19668. '-mno-vis'.
  19669. '-mvis2'
  19670. '-mno-vis2'
  19671. With '-mvis2', GCC generates code that takes advantage of version
  19672. 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  19673. default is '-mvis2' when targeting a cpu that supports such
  19674. instructions, such as UltraSPARC-III and later. Setting '-mvis2'
  19675. also sets '-mvis'.
  19676. '-mvis3'
  19677. '-mno-vis3'
  19678. With '-mvis3', GCC generates code that takes advantage of version
  19679. 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  19680. default is '-mvis3' when targeting a cpu that supports such
  19681. instructions, such as niagara-3 and later. Setting '-mvis3' also
  19682. sets '-mvis2' and '-mvis'.
  19683. '-mvis4'
  19684. '-mno-vis4'
  19685. With '-mvis4', GCC generates code that takes advantage of version
  19686. 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  19687. default is '-mvis4' when targeting a cpu that supports such
  19688. instructions, such as niagara-7 and later. Setting '-mvis4' also
  19689. sets '-mvis3', '-mvis2' and '-mvis'.
  19690. '-mvis4b'
  19691. '-mno-vis4b'
  19692. With '-mvis4b', GCC generates code that takes advantage of version
  19693. 4.0 of the UltraSPARC Visual Instruction Set extensions, plus the
  19694. additional VIS instructions introduced in the Oracle SPARC
  19695. Architecture 2017. The default is '-mvis4b' when targeting a cpu
  19696. that supports such instructions, such as m8 and later. Setting
  19697. '-mvis4b' also sets '-mvis4', '-mvis3', '-mvis2' and '-mvis'.
  19698. '-mcbcond'
  19699. '-mno-cbcond'
  19700. With '-mcbcond', GCC generates code that takes advantage of the
  19701. UltraSPARC Compare-and-Branch-on-Condition instructions. The
  19702. default is '-mcbcond' when targeting a CPU that supports such
  19703. instructions, such as Niagara-4 and later.
  19704. '-mfmaf'
  19705. '-mno-fmaf'
  19706. With '-mfmaf', GCC generates code that takes advantage of the
  19707. UltraSPARC Fused Multiply-Add Floating-point instructions. The
  19708. default is '-mfmaf' when targeting a CPU that supports such
  19709. instructions, such as Niagara-3 and later.
  19710. '-mfsmuld'
  19711. '-mno-fsmuld'
  19712. With '-mfsmuld', GCC generates code that takes advantage of the
  19713. Floating-point Multiply Single to Double (FsMULd) instruction. The
  19714. default is '-mfsmuld' when targeting a CPU supporting the
  19715. architecture versions V8 or V9 with FPU except '-mcpu=leon'.
  19716. '-mpopc'
  19717. '-mno-popc'
  19718. With '-mpopc', GCC generates code that takes advantage of the
  19719. UltraSPARC Population Count instruction. The default is '-mpopc'
  19720. when targeting a CPU that supports such an instruction, such as
  19721. Niagara-2 and later.
  19722. '-msubxc'
  19723. '-mno-subxc'
  19724. With '-msubxc', GCC generates code that takes advantage of the
  19725. UltraSPARC Subtract-Extended-with-Carry instruction. The default
  19726. is '-msubxc' when targeting a CPU that supports such an
  19727. instruction, such as Niagara-7 and later.
  19728. '-mfix-at697f'
  19729. Enable the documented workaround for the single erratum of the
  19730. Atmel AT697F processor (which corresponds to erratum #13 of the
  19731. AT697E processor).
  19732. '-mfix-ut699'
  19733. Enable the documented workarounds for the floating-point errata and
  19734. the data cache nullify errata of the UT699 processor.
  19735. '-mfix-ut700'
  19736. Enable the documented workaround for the back-to-back store errata
  19737. of the UT699E/UT700 processor.
  19738. '-mfix-gr712rc'
  19739. Enable the documented workaround for the back-to-back store errata
  19740. of the GR712RC processor.
  19741. These '-m' options are supported in addition to the above on SPARC-V9
  19742. processors in 64-bit environments:
  19743. '-m32'
  19744. '-m64'
  19745. Generate code for a 32-bit or 64-bit environment. The 32-bit
  19746. environment sets int, long and pointer to 32 bits. The 64-bit
  19747. environment sets int to 32 bits and long and pointer to 64 bits.
  19748. '-mcmodel=WHICH'
  19749. Set the code model to one of
  19750. 'medlow'
  19751. The Medium/Low code model: 64-bit addresses, programs must be
  19752. linked in the low 32 bits of memory. Programs can be
  19753. statically or dynamically linked.
  19754. 'medmid'
  19755. The Medium/Middle code model: 64-bit addresses, programs must
  19756. be linked in the low 44 bits of memory, the text and data
  19757. segments must be less than 2GB in size and the data segment
  19758. must be located within 2GB of the text segment.
  19759. 'medany'
  19760. The Medium/Anywhere code model: 64-bit addresses, programs may
  19761. be linked anywhere in memory, the text and data segments must
  19762. be less than 2GB in size and the data segment must be located
  19763. within 2GB of the text segment.
  19764. 'embmedany'
  19765. The Medium/Anywhere code model for embedded systems: 64-bit
  19766. addresses, the text and data segments must be less than 2GB in
  19767. size, both starting anywhere in memory (determined at link
  19768. time). The global register %g4 points to the base of the data
  19769. segment. Programs are statically linked and PIC is not
  19770. supported.
  19771. '-mmemory-model=MEM-MODEL'
  19772. Set the memory model in force on the processor to one of
  19773. 'default'
  19774. The default memory model for the processor and operating
  19775. system.
  19776. 'rmo'
  19777. Relaxed Memory Order
  19778. 'pso'
  19779. Partial Store Order
  19780. 'tso'
  19781. Total Store Order
  19782. 'sc'
  19783. Sequential Consistency
  19784. These memory models are formally defined in Appendix D of the
  19785. SPARC-V9 architecture manual, as set in the processor's 'PSTATE.MM'
  19786. field.
  19787. '-mstack-bias'
  19788. '-mno-stack-bias'
  19789. With '-mstack-bias', GCC assumes that the stack pointer, and frame
  19790. pointer if present, are offset by -2047 which must be added back
  19791. when making stack frame references. This is the default in 64-bit
  19792. mode. Otherwise, assume no such offset is present.
  19793. 
  19794. File: gcc.info, Node: SPU Options, Next: System V Options, Prev: SPARC Options, Up: Submodel Options
  19795. 3.18.49 SPU Options
  19796. -------------------
  19797. These '-m' options are supported on the SPU:
  19798. '-mwarn-reloc'
  19799. '-merror-reloc'
  19800. The loader for SPU does not handle dynamic relocations. By
  19801. default, GCC gives an error when it generates code that requires a
  19802. dynamic relocation. '-mno-error-reloc' disables the error,
  19803. '-mwarn-reloc' generates a warning instead.
  19804. '-msafe-dma'
  19805. '-munsafe-dma'
  19806. Instructions that initiate or test completion of DMA must not be
  19807. reordered with respect to loads and stores of the memory that is
  19808. being accessed. With '-munsafe-dma' you must use the 'volatile'
  19809. keyword to protect memory accesses, but that can lead to
  19810. inefficient code in places where the memory is known to not change.
  19811. Rather than mark the memory as volatile, you can use '-msafe-dma'
  19812. to tell the compiler to treat the DMA instructions as potentially
  19813. affecting all memory.
  19814. '-mbranch-hints'
  19815. By default, GCC generates a branch hint instruction to avoid
  19816. pipeline stalls for always-taken or probably-taken branches. A
  19817. hint is not generated closer than 8 instructions away from its
  19818. branch. There is little reason to disable them, except for
  19819. debugging purposes, or to make an object a little bit smaller.
  19820. '-msmall-mem'
  19821. '-mlarge-mem'
  19822. By default, GCC generates code assuming that addresses are never
  19823. larger than 18 bits. With '-mlarge-mem' code is generated that
  19824. assumes a full 32-bit address.
  19825. '-mstdmain'
  19826. By default, GCC links against startup code that assumes the
  19827. SPU-style main function interface (which has an unconventional
  19828. parameter list). With '-mstdmain', GCC links your program against
  19829. startup code that assumes a C99-style interface to 'main',
  19830. including a local copy of 'argv' strings.
  19831. '-mfixed-range=REGISTER-RANGE'
  19832. Generate code treating the given register range as fixed registers.
  19833. A fixed register is one that the register allocator cannot use.
  19834. This is useful when compiling kernel code. A register range is
  19835. specified as two registers separated by a dash. Multiple register
  19836. ranges can be specified separated by a comma.
  19837. '-mea32'
  19838. '-mea64'
  19839. Compile code assuming that pointers to the PPU address space
  19840. accessed via the '__ea' named address space qualifier are either 32
  19841. or 64 bits wide. The default is 32 bits. As this is an
  19842. ABI-changing option, all object code in an executable must be
  19843. compiled with the same setting.
  19844. '-maddress-space-conversion'
  19845. '-mno-address-space-conversion'
  19846. Allow/disallow treating the '__ea' address space as superset of the
  19847. generic address space. This enables explicit type casts between
  19848. '__ea' and generic pointer as well as implicit conversions of
  19849. generic pointers to '__ea' pointers. The default is to allow
  19850. address space pointer conversions.
  19851. '-mcache-size=CACHE-SIZE'
  19852. This option controls the version of libgcc that the compiler links
  19853. to an executable and selects a software-managed cache for accessing
  19854. variables in the '__ea' address space with a particular cache size.
  19855. Possible options for CACHE-SIZE are '8', '16', '32', '64' and
  19856. '128'. The default cache size is 64KB.
  19857. '-matomic-updates'
  19858. '-mno-atomic-updates'
  19859. This option controls the version of libgcc that the compiler links
  19860. to an executable and selects whether atomic updates to the
  19861. software-managed cache of PPU-side variables are used. If you use
  19862. atomic updates, changes to a PPU variable from SPU code using the
  19863. '__ea' named address space qualifier do not interfere with changes
  19864. to other PPU variables residing in the same cache line from PPU
  19865. code. If you do not use atomic updates, such interference may
  19866. occur; however, writing back cache lines is more efficient. The
  19867. default behavior is to use atomic updates.
  19868. '-mdual-nops'
  19869. '-mdual-nops=N'
  19870. By default, GCC inserts NOPs to increase dual issue when it expects
  19871. it to increase performance. N can be a value from 0 to 10. A
  19872. smaller N inserts fewer NOPs. 10 is the default, 0 is the same as
  19873. '-mno-dual-nops'. Disabled with '-Os'.
  19874. '-mhint-max-nops=N'
  19875. Maximum number of NOPs to insert for a branch hint. A branch hint
  19876. must be at least 8 instructions away from the branch it is
  19877. affecting. GCC inserts up to N NOPs to enforce this, otherwise it
  19878. does not generate the branch hint.
  19879. '-mhint-max-distance=N'
  19880. The encoding of the branch hint instruction limits the hint to be
  19881. within 256 instructions of the branch it is affecting. By default,
  19882. GCC makes sure it is within 125.
  19883. '-msafe-hints'
  19884. Work around a hardware bug that causes the SPU to stall
  19885. indefinitely. By default, GCC inserts the 'hbrp' instruction to
  19886. make sure this stall won't happen.
  19887. 
  19888. File: gcc.info, Node: System V Options, Next: TILE-Gx Options, Prev: SPU Options, Up: Submodel Options
  19889. 3.18.50 Options for System V
  19890. ----------------------------
  19891. These additional options are available on System V Release 4 for
  19892. compatibility with other compilers on those systems:
  19893. '-G'
  19894. Create a shared object. It is recommended that '-symbolic' or
  19895. '-shared' be used instead.
  19896. '-Qy'
  19897. Identify the versions of each tool used by the compiler, in a
  19898. '.ident' assembler directive in the output.
  19899. '-Qn'
  19900. Refrain from adding '.ident' directives to the output file (this is
  19901. the default).
  19902. '-YP,DIRS'
  19903. Search the directories DIRS, and no others, for libraries specified
  19904. with '-l'.
  19905. '-Ym,DIR'
  19906. Look in the directory DIR to find the M4 preprocessor. The
  19907. assembler uses this option.
  19908. 
  19909. File: gcc.info, Node: TILE-Gx Options, Next: TILEPro Options, Prev: System V Options, Up: Submodel Options
  19910. 3.18.51 TILE-Gx Options
  19911. -----------------------
  19912. These '-m' options are supported on the TILE-Gx:
  19913. '-mcmodel=small'
  19914. Generate code for the small model. The distance for direct calls
  19915. is limited to 500M in either direction. PC-relative addresses are
  19916. 32 bits. Absolute addresses support the full address range.
  19917. '-mcmodel=large'
  19918. Generate code for the large model. There is no limitation on call
  19919. distance, pc-relative addresses, or absolute addresses.
  19920. '-mcpu=NAME'
  19921. Selects the type of CPU to be targeted. Currently the only
  19922. supported type is 'tilegx'.
  19923. '-m32'
  19924. '-m64'
  19925. Generate code for a 32-bit or 64-bit environment. The 32-bit
  19926. environment sets int, long, and pointer to 32 bits. The 64-bit
  19927. environment sets int to 32 bits and long and pointer to 64 bits.
  19928. '-mbig-endian'
  19929. '-mlittle-endian'
  19930. Generate code in big/little endian mode, respectively.
  19931. 
  19932. File: gcc.info, Node: TILEPro Options, Next: V850 Options, Prev: TILE-Gx Options, Up: Submodel Options
  19933. 3.18.52 TILEPro Options
  19934. -----------------------
  19935. These '-m' options are supported on the TILEPro:
  19936. '-mcpu=NAME'
  19937. Selects the type of CPU to be targeted. Currently the only
  19938. supported type is 'tilepro'.
  19939. '-m32'
  19940. Generate code for a 32-bit environment, which sets int, long, and
  19941. pointer to 32 bits. This is the only supported behavior so the
  19942. flag is essentially ignored.
  19943. 
  19944. File: gcc.info, Node: V850 Options, Next: VAX Options, Prev: TILEPro Options, Up: Submodel Options
  19945. 3.18.53 V850 Options
  19946. --------------------
  19947. These '-m' options are defined for V850 implementations:
  19948. '-mlong-calls'
  19949. '-mno-long-calls'
  19950. Treat all calls as being far away (near). If calls are assumed to
  19951. be far away, the compiler always loads the function's address into
  19952. a register, and calls indirect through the pointer.
  19953. '-mno-ep'
  19954. '-mep'
  19955. Do not optimize (do optimize) basic blocks that use the same index
  19956. pointer 4 or more times to copy pointer into the 'ep' register, and
  19957. use the shorter 'sld' and 'sst' instructions. The '-mep' option is
  19958. on by default if you optimize.
  19959. '-mno-prolog-function'
  19960. '-mprolog-function'
  19961. Do not use (do use) external functions to save and restore
  19962. registers at the prologue and epilogue of a function. The external
  19963. functions are slower, but use less code space if more than one
  19964. function saves the same number of registers. The
  19965. '-mprolog-function' option is on by default if you optimize.
  19966. '-mspace'
  19967. Try to make the code as small as possible. At present, this just
  19968. turns on the '-mep' and '-mprolog-function' options.
  19969. '-mtda=N'
  19970. Put static or global variables whose size is N bytes or less into
  19971. the tiny data area that register 'ep' points to. The tiny data
  19972. area can hold up to 256 bytes in total (128 bytes for byte
  19973. references).
  19974. '-msda=N'
  19975. Put static or global variables whose size is N bytes or less into
  19976. the small data area that register 'gp' points to. The small data
  19977. area can hold up to 64 kilobytes.
  19978. '-mzda=N'
  19979. Put static or global variables whose size is N bytes or less into
  19980. the first 32 kilobytes of memory.
  19981. '-mv850'
  19982. Specify that the target processor is the V850.
  19983. '-mv850e3v5'
  19984. Specify that the target processor is the V850E3V5. The
  19985. preprocessor constant '__v850e3v5__' is defined if this option is
  19986. used.
  19987. '-mv850e2v4'
  19988. Specify that the target processor is the V850E3V5. This is an
  19989. alias for the '-mv850e3v5' option.
  19990. '-mv850e2v3'
  19991. Specify that the target processor is the V850E2V3. The
  19992. preprocessor constant '__v850e2v3__' is defined if this option is
  19993. used.
  19994. '-mv850e2'
  19995. Specify that the target processor is the V850E2. The preprocessor
  19996. constant '__v850e2__' is defined if this option is used.
  19997. '-mv850e1'
  19998. Specify that the target processor is the V850E1. The preprocessor
  19999. constants '__v850e1__' and '__v850e__' are defined if this option
  20000. is used.
  20001. '-mv850es'
  20002. Specify that the target processor is the V850ES. This is an alias
  20003. for the '-mv850e1' option.
  20004. '-mv850e'
  20005. Specify that the target processor is the V850E. The preprocessor
  20006. constant '__v850e__' is defined if this option is used.
  20007. If neither '-mv850' nor '-mv850e' nor '-mv850e1' nor '-mv850e2' nor
  20008. '-mv850e2v3' nor '-mv850e3v5' are defined then a default target
  20009. processor is chosen and the relevant '__v850*__' preprocessor
  20010. constant is defined.
  20011. The preprocessor constants '__v850' and '__v851__' are always
  20012. defined, regardless of which processor variant is the target.
  20013. '-mdisable-callt'
  20014. '-mno-disable-callt'
  20015. This option suppresses generation of the 'CALLT' instruction for
  20016. the v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the
  20017. v850 architecture.
  20018. This option is enabled by default when the RH850 ABI is in use (see
  20019. '-mrh850-abi'), and disabled by default when the GCC ABI is in use.
  20020. If 'CALLT' instructions are being generated then the C preprocessor
  20021. symbol '__V850_CALLT__' is defined.
  20022. '-mrelax'
  20023. '-mno-relax'
  20024. Pass on (or do not pass on) the '-mrelax' command-line option to
  20025. the assembler.
  20026. '-mlong-jumps'
  20027. '-mno-long-jumps'
  20028. Disable (or re-enable) the generation of PC-relative jump
  20029. instructions.
  20030. '-msoft-float'
  20031. '-mhard-float'
  20032. Disable (or re-enable) the generation of hardware floating point
  20033. instructions. This option is only significant when the target
  20034. architecture is 'V850E2V3' or higher. If hardware floating point
  20035. instructions are being generated then the C preprocessor symbol
  20036. '__FPU_OK__' is defined, otherwise the symbol '__NO_FPU__' is
  20037. defined.
  20038. '-mloop'
  20039. Enables the use of the e3v5 LOOP instruction. The use of this
  20040. instruction is not enabled by default when the e3v5 architecture is
  20041. selected because its use is still experimental.
  20042. '-mrh850-abi'
  20043. '-mghs'
  20044. Enables support for the RH850 version of the V850 ABI. This is the
  20045. default. With this version of the ABI the following rules apply:
  20046. * Integer sized structures and unions are returned via a memory
  20047. pointer rather than a register.
  20048. * Large structures and unions (more than 8 bytes in size) are
  20049. passed by value.
  20050. * Functions are aligned to 16-bit boundaries.
  20051. * The '-m8byte-align' command-line option is supported.
  20052. * The '-mdisable-callt' command-line option is enabled by
  20053. default. The '-mno-disable-callt' command-line option is not
  20054. supported.
  20055. When this version of the ABI is enabled the C preprocessor symbol
  20056. '__V850_RH850_ABI__' is defined.
  20057. '-mgcc-abi'
  20058. Enables support for the old GCC version of the V850 ABI. With this
  20059. version of the ABI the following rules apply:
  20060. * Integer sized structures and unions are returned in register
  20061. 'r10'.
  20062. * Large structures and unions (more than 8 bytes in size) are
  20063. passed by reference.
  20064. * Functions are aligned to 32-bit boundaries, unless optimizing
  20065. for size.
  20066. * The '-m8byte-align' command-line option is not supported.
  20067. * The '-mdisable-callt' command-line option is supported but not
  20068. enabled by default.
  20069. When this version of the ABI is enabled the C preprocessor symbol
  20070. '__V850_GCC_ABI__' is defined.
  20071. '-m8byte-align'
  20072. '-mno-8byte-align'
  20073. Enables support for 'double' and 'long long' types to be aligned on
  20074. 8-byte boundaries. The default is to restrict the alignment of all
  20075. objects to at most 4-bytes. When '-m8byte-align' is in effect the
  20076. C preprocessor symbol '__V850_8BYTE_ALIGN__' is defined.
  20077. '-mbig-switch'
  20078. Generate code suitable for big switch tables. Use this option only
  20079. if the assembler/linker complain about out of range branches within
  20080. a switch table.
  20081. '-mapp-regs'
  20082. This option causes r2 and r5 to be used in the code generated by
  20083. the compiler. This setting is the default.
  20084. '-mno-app-regs'
  20085. This option causes r2 and r5 to be treated as fixed registers.
  20086. 
  20087. File: gcc.info, Node: VAX Options, Next: Visium Options, Prev: V850 Options, Up: Submodel Options
  20088. 3.18.54 VAX Options
  20089. -------------------
  20090. These '-m' options are defined for the VAX:
  20091. '-munix'
  20092. Do not output certain jump instructions ('aobleq' and so on) that
  20093. the Unix assembler for the VAX cannot handle across long ranges.
  20094. '-mgnu'
  20095. Do output those jump instructions, on the assumption that the GNU
  20096. assembler is being used.
  20097. '-mg'
  20098. Output code for G-format floating-point numbers instead of
  20099. D-format.
  20100. 
  20101. File: gcc.info, Node: Visium Options, Next: VMS Options, Prev: VAX Options, Up: Submodel Options
  20102. 3.18.55 Visium Options
  20103. ----------------------
  20104. '-mdebug'
  20105. A program which performs file I/O and is destined to run on an MCM
  20106. target should be linked with this option. It causes the libraries
  20107. libc.a and libdebug.a to be linked. The program should be run on
  20108. the target under the control of the GDB remote debugging stub.
  20109. '-msim'
  20110. A program which performs file I/O and is destined to run on the
  20111. simulator should be linked with option. This causes libraries
  20112. libc.a and libsim.a to be linked.
  20113. '-mfpu'
  20114. '-mhard-float'
  20115. Generate code containing floating-point instructions. This is the
  20116. default.
  20117. '-mno-fpu'
  20118. '-msoft-float'
  20119. Generate code containing library calls for floating-point.
  20120. '-msoft-float' changes the calling convention in the output file;
  20121. therefore, it is only useful if you compile _all_ of a program with
  20122. this option. In particular, you need to compile 'libgcc.a', the
  20123. library that comes with GCC, with '-msoft-float' in order for this
  20124. to work.
  20125. '-mcpu=CPU_TYPE'
  20126. Set the instruction set, register set, and instruction scheduling
  20127. parameters for machine type CPU_TYPE. Supported values for
  20128. CPU_TYPE are 'mcm', 'gr5' and 'gr6'.
  20129. 'mcm' is a synonym of 'gr5' present for backward compatibility.
  20130. By default (unless configured otherwise), GCC generates code for
  20131. the GR5 variant of the Visium architecture.
  20132. With '-mcpu=gr6', GCC generates code for the GR6 variant of the
  20133. Visium architecture. The only difference from GR5 code is that the
  20134. compiler will generate block move instructions.
  20135. '-mtune=CPU_TYPE'
  20136. Set the instruction scheduling parameters for machine type
  20137. CPU_TYPE, but do not set the instruction set or register set that
  20138. the option '-mcpu=CPU_TYPE' would.
  20139. '-msv-mode'
  20140. Generate code for the supervisor mode, where there are no
  20141. restrictions on the access to general registers. This is the
  20142. default.
  20143. '-muser-mode'
  20144. Generate code for the user mode, where the access to some general
  20145. registers is forbidden: on the GR5, registers r24 to r31 cannot be
  20146. accessed in this mode; on the GR6, only registers r29 to r31 are
  20147. affected.
  20148. 
  20149. File: gcc.info, Node: VMS Options, Next: VxWorks Options, Prev: Visium Options, Up: Submodel Options
  20150. 3.18.56 VMS Options
  20151. -------------------
  20152. These '-m' options are defined for the VMS implementations:
  20153. '-mvms-return-codes'
  20154. Return VMS condition codes from 'main'. The default is to return
  20155. POSIX-style condition (e.g. error) codes.
  20156. '-mdebug-main=PREFIX'
  20157. Flag the first routine whose name starts with PREFIX as the main
  20158. routine for the debugger.
  20159. '-mmalloc64'
  20160. Default to 64-bit memory allocation routines.
  20161. '-mpointer-size=SIZE'
  20162. Set the default size of pointers. Possible options for SIZE are
  20163. '32' or 'short' for 32 bit pointers, '64' or 'long' for 64 bit
  20164. pointers, and 'no' for supporting only 32 bit pointers. The later
  20165. option disables 'pragma pointer_size'.
  20166. 
  20167. File: gcc.info, Node: VxWorks Options, Next: x86 Options, Prev: VMS Options, Up: Submodel Options
  20168. 3.18.57 VxWorks Options
  20169. -----------------------
  20170. The options in this section are defined for all VxWorks targets.
  20171. Options specific to the target hardware are listed with the other
  20172. options for that target.
  20173. '-mrtp'
  20174. GCC can generate code for both VxWorks kernels and real time
  20175. processes (RTPs). This option switches from the former to the
  20176. latter. It also defines the preprocessor macro '__RTP__'.
  20177. '-non-static'
  20178. Link an RTP executable against shared libraries rather than static
  20179. libraries. The options '-static' and '-shared' can also be used
  20180. for RTPs (*note Link Options::); '-static' is the default.
  20181. '-Bstatic'
  20182. '-Bdynamic'
  20183. These options are passed down to the linker. They are defined for
  20184. compatibility with Diab.
  20185. '-Xbind-lazy'
  20186. Enable lazy binding of function calls. This option is equivalent
  20187. to '-Wl,-z,now' and is defined for compatibility with Diab.
  20188. '-Xbind-now'
  20189. Disable lazy binding of function calls. This option is the default
  20190. and is defined for compatibility with Diab.
  20191. 
  20192. File: gcc.info, Node: x86 Options, Next: x86 Windows Options, Prev: VxWorks Options, Up: Submodel Options
  20193. 3.18.58 x86 Options
  20194. -------------------
  20195. These '-m' options are defined for the x86 family of computers.
  20196. '-march=CPU-TYPE'
  20197. Generate instructions for the machine type CPU-TYPE. In contrast
  20198. to '-mtune=CPU-TYPE', which merely tunes the generated code for the
  20199. specified CPU-TYPE, '-march=CPU-TYPE' allows GCC to generate code
  20200. that may not run at all on processors other than the one indicated.
  20201. Specifying '-march=CPU-TYPE' implies '-mtune=CPU-TYPE'.
  20202. The choices for CPU-TYPE are:
  20203. 'native'
  20204. This selects the CPU to generate code for at compilation time
  20205. by determining the processor type of the compiling machine.
  20206. Using '-march=native' enables all instruction subsets
  20207. supported by the local machine (hence the result might not run
  20208. on different machines). Using '-mtune=native' produces code
  20209. optimized for the local machine under the constraints of the
  20210. selected instruction set.
  20211. 'x86-64'
  20212. A generic CPU with 64-bit extensions.
  20213. 'i386'
  20214. Original Intel i386 CPU.
  20215. 'i486'
  20216. Intel i486 CPU. (No scheduling is implemented for this chip.)
  20217. 'i586'
  20218. 'pentium'
  20219. Intel Pentium CPU with no MMX support.
  20220. 'lakemont'
  20221. Intel Lakemont MCU, based on Intel Pentium CPU.
  20222. 'pentium-mmx'
  20223. Intel Pentium MMX CPU, based on Pentium core with MMX
  20224. instruction set support.
  20225. 'pentiumpro'
  20226. Intel Pentium Pro CPU.
  20227. 'i686'
  20228. When used with '-march', the Pentium Pro instruction set is
  20229. used, so the code runs on all i686 family chips. When used
  20230. with '-mtune', it has the same meaning as 'generic'.
  20231. 'pentium2'
  20232. Intel Pentium II CPU, based on Pentium Pro core with MMX
  20233. instruction set support.
  20234. 'pentium3'
  20235. 'pentium3m'
  20236. Intel Pentium III CPU, based on Pentium Pro core with MMX and
  20237. SSE instruction set support.
  20238. 'pentium-m'
  20239. Intel Pentium M; low-power version of Intel Pentium III CPU
  20240. with MMX, SSE and SSE2 instruction set support. Used by
  20241. Centrino notebooks.
  20242. 'pentium4'
  20243. 'pentium4m'
  20244. Intel Pentium 4 CPU with MMX, SSE and SSE2 instruction set
  20245. support.
  20246. 'prescott'
  20247. Improved version of Intel Pentium 4 CPU with MMX, SSE, SSE2
  20248. and SSE3 instruction set support.
  20249. 'nocona'
  20250. Improved version of Intel Pentium 4 CPU with 64-bit
  20251. extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
  20252. 'core2'
  20253. Intel Core 2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3
  20254. and SSSE3 instruction set support.
  20255. 'nehalem'
  20256. Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2,
  20257. SSE3, SSSE3, SSE4.1, SSE4.2 and POPCNT instruction set
  20258. support.
  20259. 'westmere'
  20260. Intel Westmere CPU with 64-bit extensions, MMX, SSE, SSE2,
  20261. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES and PCLMUL
  20262. instruction set support.
  20263. 'sandybridge'
  20264. Intel Sandy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  20265. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL
  20266. instruction set support.
  20267. 'ivybridge'
  20268. Intel Ivy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  20269. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL,
  20270. FSGSBASE, RDRND and F16C instruction set support.
  20271. 'haswell'
  20272. Intel Haswell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  20273. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  20274. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2 and F16C instruction
  20275. set support.
  20276. 'broadwell'
  20277. Intel Broadwell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  20278. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  20279. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX
  20280. and PREFETCHW instruction set support.
  20281. 'skylake'
  20282. Intel Skylake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  20283. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  20284. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX,
  20285. PREFETCHW, CLFLUSHOPT, XSAVEC and XSAVES instruction set
  20286. support.
  20287. 'bonnell'
  20288. Intel Bonnell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  20289. SSE2, SSE3 and SSSE3 instruction set support.
  20290. 'silvermont'
  20291. Intel Silvermont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  20292. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL and
  20293. RDRND instruction set support.
  20294. 'goldmont'
  20295. Intel Goldmont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  20296. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL, RDRND,
  20297. XSAVE, XSAVEOPT and FSGSBASE instruction set support.
  20298. 'goldmont-plus'
  20299. Intel Goldmont Plus CPU with 64-bit extensions, MOVBE, MMX,
  20300. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL,
  20301. RDRND, XSAVE, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX and UMIP
  20302. instruction set support.
  20303. 'tremont'
  20304. Intel Tremont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  20305. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL, RDRND,
  20306. XSAVE, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, UMIP,
  20307. GFNI-SSE, CLWB and ENCLV instruction set support.
  20308. 'knl'
  20309. Intel Knight's Landing CPU with 64-bit extensions, MOVBE, MMX,
  20310. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  20311. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  20312. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER and AVX512CD
  20313. instruction set support.
  20314. 'knm'
  20315. Intel Knights Mill CPU with 64-bit extensions, MOVBE, MMX,
  20316. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  20317. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  20318. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER, AVX512CD,
  20319. AVX5124VNNIW, AVX5124FMAPS and AVX512VPOPCNTDQ instruction set
  20320. support.
  20321. 'skylake-avx512'
  20322. Intel Skylake Server CPU with 64-bit extensions, MOVBE, MMX,
  20323. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  20324. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  20325. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  20326. CLWB, AVX512VL, AVX512BW, AVX512DQ and AVX512CD instruction
  20327. set support.
  20328. 'cannonlake'
  20329. Intel Cannonlake Server CPU with 64-bit extensions, MOVBE,
  20330. MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  20331. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  20332. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  20333. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  20334. AVX512IFMA, SHA and UMIP instruction set support.
  20335. 'icelake-client'
  20336. Intel Icelake Client CPU with 64-bit extensions, MOVBE, MMX,
  20337. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  20338. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  20339. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  20340. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  20341. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  20342. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES
  20343. instruction set support.
  20344. 'icelake-server'
  20345. Intel Icelake Server CPU with 64-bit extensions, MOVBE, MMX,
  20346. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  20347. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  20348. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  20349. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  20350. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  20351. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES,
  20352. PCONFIG and WBNOINVD instruction set support.
  20353. 'cascadelake'
  20354. Intel Cascadelake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  20355. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2,
  20356. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  20357. ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F, CLWB,
  20358. AVX512VL, AVX512BW, AVX512DQ, AVX512CD and AVX512VNNI
  20359. instruction set support.
  20360. 'k6'
  20361. AMD K6 CPU with MMX instruction set support.
  20362. 'k6-2'
  20363. 'k6-3'
  20364. Improved versions of AMD K6 CPU with MMX and 3DNow!
  20365. instruction set support.
  20366. 'athlon'
  20367. 'athlon-tbird'
  20368. AMD Athlon CPU with MMX, 3dNOW!, enhanced 3DNow! and SSE
  20369. prefetch instructions support.
  20370. 'athlon-4'
  20371. 'athlon-xp'
  20372. 'athlon-mp'
  20373. Improved AMD Athlon CPU with MMX, 3DNow!, enhanced 3DNow! and
  20374. full SSE instruction set support.
  20375. 'k8'
  20376. 'opteron'
  20377. 'athlon64'
  20378. 'athlon-fx'
  20379. Processors based on the AMD K8 core with x86-64 instruction
  20380. set support, including the AMD Opteron, Athlon 64, and Athlon
  20381. 64 FX processors. (This supersets MMX, SSE, SSE2, 3DNow!,
  20382. enhanced 3DNow! and 64-bit instruction set extensions.)
  20383. 'k8-sse3'
  20384. 'opteron-sse3'
  20385. 'athlon64-sse3'
  20386. Improved versions of AMD K8 cores with SSE3 instruction set
  20387. support.
  20388. 'amdfam10'
  20389. 'barcelona'
  20390. CPUs based on AMD Family 10h cores with x86-64 instruction set
  20391. support. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!,
  20392. enhanced 3DNow!, ABM and 64-bit instruction set extensions.)
  20393. 'bdver1'
  20394. CPUs based on AMD Family 15h cores with x86-64 instruction set
  20395. support. (This supersets FMA4, AVX, XOP, LWP, AES, PCL_MUL,
  20396. CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM
  20397. and 64-bit instruction set extensions.)
  20398. 'bdver2'
  20399. AMD Family 15h core based CPUs with x86-64 instruction set
  20400. support. (This supersets BMI, TBM, F16C, FMA, FMA4, AVX, XOP,
  20401. LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  20402. SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions.)
  20403. 'bdver3'
  20404. AMD Family 15h core based CPUs with x86-64 instruction set
  20405. support. (This supersets BMI, TBM, F16C, FMA, FMA4, FSGSBASE,
  20406. AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3,
  20407. SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit instruction set
  20408. extensions.
  20409. 'bdver4'
  20410. AMD Family 15h core based CPUs with x86-64 instruction set
  20411. support. (This supersets BMI, BMI2, TBM, F16C, FMA, FMA4,
  20412. FSGSBASE, AVX, AVX2, XOP, LWP, AES, PCL_MUL, CX16, MOVBE, MMX,
  20413. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit
  20414. instruction set extensions.
  20415. 'znver1'
  20416. AMD Family 17h core based CPUs with x86-64 instruction set
  20417. support. (This supersets BMI, BMI2, F16C, FMA, FSGSBASE, AVX,
  20418. AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES, PCL_MUL, CX16,
  20419. MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2,
  20420. ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, and 64-bit
  20421. instruction set extensions.
  20422. 'znver2'
  20423. AMD Family 17h core based CPUs with x86-64 instruction set
  20424. support. (This supersets BMI, BMI2, ,CLWB, F16C, FMA,
  20425. FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES,
  20426. PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  20427. SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, and
  20428. 64-bit instruction set extensions.)
  20429. 'btver1'
  20430. CPUs based on AMD Family 14h cores with x86-64 instruction set
  20431. support. (This supersets MMX, SSE, SSE2, SSE3, SSSE3, SSE4A,
  20432. CX16, ABM and 64-bit instruction set extensions.)
  20433. 'btver2'
  20434. CPUs based on AMD Family 16h cores with x86-64 instruction set
  20435. support. This includes MOVBE, F16C, BMI, AVX, PCL_MUL, AES,
  20436. SSE4.2, SSE4.1, CX16, ABM, SSE4A, SSSE3, SSE3, SSE2, SSE, MMX
  20437. and 64-bit instruction set extensions.
  20438. 'winchip-c6'
  20439. IDT WinChip C6 CPU, dealt in same way as i486 with additional
  20440. MMX instruction set support.
  20441. 'winchip2'
  20442. IDT WinChip 2 CPU, dealt in same way as i486 with additional
  20443. MMX and 3DNow! instruction set support.
  20444. 'c3'
  20445. VIA C3 CPU with MMX and 3DNow! instruction set support. (No
  20446. scheduling is implemented for this chip.)
  20447. 'c3-2'
  20448. VIA C3-2 (Nehemiah/C5XL) CPU with MMX and SSE instruction set
  20449. support. (No scheduling is implemented for this chip.)
  20450. 'c7'
  20451. VIA C7 (Esther) CPU with MMX, SSE, SSE2 and SSE3 instruction
  20452. set support. (No scheduling is implemented for this chip.)
  20453. 'samuel-2'
  20454. VIA Eden Samuel 2 CPU with MMX and 3DNow! instruction set
  20455. support. (No scheduling is implemented for this chip.)
  20456. 'nehemiah'
  20457. VIA Eden Nehemiah CPU with MMX and SSE instruction set
  20458. support. (No scheduling is implemented for this chip.)
  20459. 'esther'
  20460. VIA Eden Esther CPU with MMX, SSE, SSE2 and SSE3 instruction
  20461. set support. (No scheduling is implemented for this chip.)
  20462. 'eden-x2'
  20463. VIA Eden X2 CPU with x86-64, MMX, SSE, SSE2 and SSE3
  20464. instruction set support. (No scheduling is implemented for
  20465. this chip.)
  20466. 'eden-x4'
  20467. VIA Eden X4 CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3,
  20468. SSE4.1, SSE4.2, AVX and AVX2 instruction set support. (No
  20469. scheduling is implemented for this chip.)
  20470. 'nano'
  20471. Generic VIA Nano CPU with x86-64, MMX, SSE, SSE2, SSE3 and
  20472. SSSE3 instruction set support. (No scheduling is implemented
  20473. for this chip.)
  20474. 'nano-1000'
  20475. VIA Nano 1xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  20476. instruction set support. (No scheduling is implemented for
  20477. this chip.)
  20478. 'nano-2000'
  20479. VIA Nano 2xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  20480. instruction set support. (No scheduling is implemented for
  20481. this chip.)
  20482. 'nano-3000'
  20483. VIA Nano 3xxx CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3 and
  20484. SSE4.1 instruction set support. (No scheduling is implemented
  20485. for this chip.)
  20486. 'nano-x2'
  20487. VIA Nano Dual Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  20488. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  20489. implemented for this chip.)
  20490. 'nano-x4'
  20491. VIA Nano Quad Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  20492. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  20493. implemented for this chip.)
  20494. 'geode'
  20495. AMD Geode embedded processor with MMX and 3DNow! instruction
  20496. set support.
  20497. '-mtune=CPU-TYPE'
  20498. Tune to CPU-TYPE everything applicable about the generated code,
  20499. except for the ABI and the set of available instructions. While
  20500. picking a specific CPU-TYPE schedules things appropriately for that
  20501. particular chip, the compiler does not generate any code that
  20502. cannot run on the default machine type unless you use a
  20503. '-march=CPU-TYPE' option. For example, if GCC is configured for
  20504. i686-pc-linux-gnu then '-mtune=pentium4' generates code that is
  20505. tuned for Pentium 4 but still runs on i686 machines.
  20506. The choices for CPU-TYPE are the same as for '-march'. In
  20507. addition, '-mtune' supports 2 extra choices for CPU-TYPE:
  20508. 'generic'
  20509. Produce code optimized for the most common IA32/AMD64/EM64T
  20510. processors. If you know the CPU on which your code will run,
  20511. then you should use the corresponding '-mtune' or '-march'
  20512. option instead of '-mtune=generic'. But, if you do not know
  20513. exactly what CPU users of your application will have, then you
  20514. should use this option.
  20515. As new processors are deployed in the marketplace, the
  20516. behavior of this option will change. Therefore, if you
  20517. upgrade to a newer version of GCC, code generation controlled
  20518. by this option will change to reflect the processors that are
  20519. most common at the time that version of GCC is released.
  20520. There is no '-march=generic' option because '-march' indicates
  20521. the instruction set the compiler can use, and there is no
  20522. generic instruction set applicable to all processors. In
  20523. contrast, '-mtune' indicates the processor (or, in this case,
  20524. collection of processors) for which the code is optimized.
  20525. 'intel'
  20526. Produce code optimized for the most current Intel processors,
  20527. which are Haswell and Silvermont for this version of GCC. If
  20528. you know the CPU on which your code will run, then you should
  20529. use the corresponding '-mtune' or '-march' option instead of
  20530. '-mtune=intel'. But, if you want your application performs
  20531. better on both Haswell and Silvermont, then you should use
  20532. this option.
  20533. As new Intel processors are deployed in the marketplace, the
  20534. behavior of this option will change. Therefore, if you
  20535. upgrade to a newer version of GCC, code generation controlled
  20536. by this option will change to reflect the most current Intel
  20537. processors at the time that version of GCC is released.
  20538. There is no '-march=intel' option because '-march' indicates
  20539. the instruction set the compiler can use, and there is no
  20540. common instruction set applicable to all processors. In
  20541. contrast, '-mtune' indicates the processor (or, in this case,
  20542. collection of processors) for which the code is optimized.
  20543. '-mcpu=CPU-TYPE'
  20544. A deprecated synonym for '-mtune'.
  20545. '-mfpmath=UNIT'
  20546. Generate floating-point arithmetic for selected unit UNIT. The
  20547. choices for UNIT are:
  20548. '387'
  20549. Use the standard 387 floating-point coprocessor present on the
  20550. majority of chips and emulated otherwise. Code compiled with
  20551. this option runs almost everywhere. The temporary results are
  20552. computed in 80-bit precision instead of the precision
  20553. specified by the type, resulting in slightly different results
  20554. compared to most of other chips. See '-ffloat-store' for more
  20555. detailed description.
  20556. This is the default choice for non-Darwin x86-32 targets.
  20557. 'sse'
  20558. Use scalar floating-point instructions present in the SSE
  20559. instruction set. This instruction set is supported by Pentium
  20560. III and newer chips, and in the AMD line by Athlon-4, Athlon
  20561. XP and Athlon MP chips. The earlier version of the SSE
  20562. instruction set supports only single-precision arithmetic,
  20563. thus the double and extended-precision arithmetic are still
  20564. done using 387. A later version, present only in Pentium 4
  20565. and AMD x86-64 chips, supports double-precision arithmetic
  20566. too.
  20567. For the x86-32 compiler, you must use '-march=CPU-TYPE',
  20568. '-msse' or '-msse2' switches to enable SSE extensions and make
  20569. this option effective. For the x86-64 compiler, these
  20570. extensions are enabled by default.
  20571. The resulting code should be considerably faster in the
  20572. majority of cases and avoid the numerical instability problems
  20573. of 387 code, but may break some existing code that expects
  20574. temporaries to be 80 bits.
  20575. This is the default choice for the x86-64 compiler, Darwin
  20576. x86-32 targets, and the default choice for x86-32 targets with
  20577. the SSE2 instruction set when '-ffast-math' is enabled.
  20578. 'sse,387'
  20579. 'sse+387'
  20580. 'both'
  20581. Attempt to utilize both instruction sets at once. This
  20582. effectively doubles the amount of available registers, and on
  20583. chips with separate execution units for 387 and SSE the
  20584. execution resources too. Use this option with care, as it is
  20585. still experimental, because the GCC register allocator does
  20586. not model separate functional units well, resulting in
  20587. unstable performance.
  20588. '-masm=DIALECT'
  20589. Output assembly instructions using selected DIALECT. Also affects
  20590. which dialect is used for basic 'asm' (*note Basic Asm::) and
  20591. extended 'asm' (*note Extended Asm::). Supported choices (in
  20592. dialect order) are 'att' or 'intel'. The default is 'att'. Darwin
  20593. does not support 'intel'.
  20594. '-mieee-fp'
  20595. '-mno-ieee-fp'
  20596. Control whether or not the compiler uses IEEE floating-point
  20597. comparisons. These correctly handle the case where the result of a
  20598. comparison is unordered.
  20599. '-m80387'
  20600. '-mhard-float'
  20601. Generate output containing 80387 instructions for floating point.
  20602. '-mno-80387'
  20603. '-msoft-float'
  20604. Generate output containing library calls for floating point.
  20605. *Warning:* the requisite libraries are not part of GCC. Normally
  20606. the facilities of the machine's usual C compiler are used, but this
  20607. cannot be done directly in cross-compilation. You must make your
  20608. own arrangements to provide suitable library functions for
  20609. cross-compilation.
  20610. On machines where a function returns floating-point results in the
  20611. 80387 register stack, some floating-point opcodes may be emitted
  20612. even if '-msoft-float' is used.
  20613. '-mno-fp-ret-in-387'
  20614. Do not use the FPU registers for return values of functions.
  20615. The usual calling convention has functions return values of types
  20616. 'float' and 'double' in an FPU register, even if there is no FPU.
  20617. The idea is that the operating system should emulate an FPU.
  20618. The option '-mno-fp-ret-in-387' causes such values to be returned
  20619. in ordinary CPU registers instead.
  20620. '-mno-fancy-math-387'
  20621. Some 387 emulators do not support the 'sin', 'cos' and 'sqrt'
  20622. instructions for the 387. Specify this option to avoid generating
  20623. those instructions. This option is overridden when '-march'
  20624. indicates that the target CPU always has an FPU and so the
  20625. instruction does not need emulation. These instructions are not
  20626. generated unless you also use the '-funsafe-math-optimizations'
  20627. switch.
  20628. '-malign-double'
  20629. '-mno-align-double'
  20630. Control whether GCC aligns 'double', 'long double', and 'long long'
  20631. variables on a two-word boundary or a one-word boundary. Aligning
  20632. 'double' variables on a two-word boundary produces code that runs
  20633. somewhat faster on a Pentium at the expense of more memory.
  20634. On x86-64, '-malign-double' is enabled by default.
  20635. *Warning:* if you use the '-malign-double' switch, structures
  20636. containing the above types are aligned differently than the
  20637. published application binary interface specifications for the
  20638. x86-32 and are not binary compatible with structures in code
  20639. compiled without that switch.
  20640. '-m96bit-long-double'
  20641. '-m128bit-long-double'
  20642. These switches control the size of 'long double' type. The x86-32
  20643. application binary interface specifies the size to be 96 bits, so
  20644. '-m96bit-long-double' is the default in 32-bit mode.
  20645. Modern architectures (Pentium and newer) prefer 'long double' to be
  20646. aligned to an 8- or 16-byte boundary. In arrays or structures
  20647. conforming to the ABI, this is not possible. So specifying
  20648. '-m128bit-long-double' aligns 'long double' to a 16-byte boundary
  20649. by padding the 'long double' with an additional 32-bit zero.
  20650. In the x86-64 compiler, '-m128bit-long-double' is the default
  20651. choice as its ABI specifies that 'long double' is aligned on
  20652. 16-byte boundary.
  20653. Notice that neither of these options enable any extra precision
  20654. over the x87 standard of 80 bits for a 'long double'.
  20655. *Warning:* if you override the default value for your target ABI,
  20656. this changes the size of structures and arrays containing 'long
  20657. double' variables, as well as modifying the function calling
  20658. convention for functions taking 'long double'. Hence they are not
  20659. binary-compatible with code compiled without that switch.
  20660. '-mlong-double-64'
  20661. '-mlong-double-80'
  20662. '-mlong-double-128'
  20663. These switches control the size of 'long double' type. A size of
  20664. 64 bits makes the 'long double' type equivalent to the 'double'
  20665. type. This is the default for 32-bit Bionic C library. A size of
  20666. 128 bits makes the 'long double' type equivalent to the
  20667. '__float128' type. This is the default for 64-bit Bionic C
  20668. library.
  20669. *Warning:* if you override the default value for your target ABI,
  20670. this changes the size of structures and arrays containing 'long
  20671. double' variables, as well as modifying the function calling
  20672. convention for functions taking 'long double'. Hence they are not
  20673. binary-compatible with code compiled without that switch.
  20674. '-malign-data=TYPE'
  20675. Control how GCC aligns variables. Supported values for TYPE are
  20676. 'compat' uses increased alignment value compatible uses GCC 4.8 and
  20677. earlier, 'abi' uses alignment value as specified by the psABI, and
  20678. 'cacheline' uses increased alignment value to match the cache line
  20679. size. 'compat' is the default.
  20680. '-mlarge-data-threshold=THRESHOLD'
  20681. When '-mcmodel=medium' is specified, data objects larger than
  20682. THRESHOLD are placed in the large data section. This value must be
  20683. the same across all objects linked into the binary, and defaults to
  20684. 65535.
  20685. '-mrtd'
  20686. Use a different function-calling convention, in which functions
  20687. that take a fixed number of arguments return with the 'ret NUM'
  20688. instruction, which pops their arguments while returning. This
  20689. saves one instruction in the caller since there is no need to pop
  20690. the arguments there.
  20691. You can specify that an individual function is called with this
  20692. calling sequence with the function attribute 'stdcall'. You can
  20693. also override the '-mrtd' option by using the function attribute
  20694. 'cdecl'. *Note Function Attributes::.
  20695. *Warning:* this calling convention is incompatible with the one
  20696. normally used on Unix, so you cannot use it if you need to call
  20697. libraries compiled with the Unix compiler.
  20698. Also, you must provide function prototypes for all functions that
  20699. take variable numbers of arguments (including 'printf'); otherwise
  20700. incorrect code is generated for calls to those functions.
  20701. In addition, seriously incorrect code results if you call a
  20702. function with too many arguments. (Normally, extra arguments are
  20703. harmlessly ignored.)
  20704. '-mregparm=NUM'
  20705. Control how many registers are used to pass integer arguments. By
  20706. default, no registers are used to pass arguments, and at most 3
  20707. registers can be used. You can control this behavior for a
  20708. specific function by using the function attribute 'regparm'. *Note
  20709. Function Attributes::.
  20710. *Warning:* if you use this switch, and NUM is nonzero, then you
  20711. must build all modules with the same value, including any
  20712. libraries. This includes the system libraries and startup modules.
  20713. '-msseregparm'
  20714. Use SSE register passing conventions for float and double arguments
  20715. and return values. You can control this behavior for a specific
  20716. function by using the function attribute 'sseregparm'. *Note
  20717. Function Attributes::.
  20718. *Warning:* if you use this switch then you must build all modules
  20719. with the same value, including any libraries. This includes the
  20720. system libraries and startup modules.
  20721. '-mvect8-ret-in-mem'
  20722. Return 8-byte vectors in memory instead of MMX registers. This is
  20723. the default on Solaris 8 and 9 and VxWorks to match the ABI of the
  20724. Sun Studio compilers until version 12. Later compiler versions
  20725. (starting with Studio 12 Update 1) follow the ABI used by other x86
  20726. targets, which is the default on Solaris 10 and later. _Only_ use
  20727. this option if you need to remain compatible with existing code
  20728. produced by those previous compiler versions or older versions of
  20729. GCC.
  20730. '-mpc32'
  20731. '-mpc64'
  20732. '-mpc80'
  20733. Set 80387 floating-point precision to 32, 64 or 80 bits. When
  20734. '-mpc32' is specified, the significands of results of
  20735. floating-point operations are rounded to 24 bits (single
  20736. precision); '-mpc64' rounds the significands of results of
  20737. floating-point operations to 53 bits (double precision) and
  20738. '-mpc80' rounds the significands of results of floating-point
  20739. operations to 64 bits (extended double precision), which is the
  20740. default. When this option is used, floating-point operations in
  20741. higher precisions are not available to the programmer without
  20742. setting the FPU control word explicitly.
  20743. Setting the rounding of floating-point operations to less than the
  20744. default 80 bits can speed some programs by 2% or more. Note that
  20745. some mathematical libraries assume that extended-precision (80-bit)
  20746. floating-point operations are enabled by default; routines in such
  20747. libraries could suffer significant loss of accuracy, typically
  20748. through so-called "catastrophic cancellation", when this option is
  20749. used to set the precision to less than extended precision.
  20750. '-mstackrealign'
  20751. Realign the stack at entry. On the x86, the '-mstackrealign'
  20752. option generates an alternate prologue and epilogue that realigns
  20753. the run-time stack if necessary. This supports mixing legacy codes
  20754. that keep 4-byte stack alignment with modern codes that keep
  20755. 16-byte stack alignment for SSE compatibility. See also the
  20756. attribute 'force_align_arg_pointer', applicable to individual
  20757. functions.
  20758. '-mpreferred-stack-boundary=NUM'
  20759. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  20760. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  20761. the default is 4 (16 bytes or 128 bits).
  20762. *Warning:* When generating code for the x86-64 architecture with
  20763. SSE extensions disabled, '-mpreferred-stack-boundary=3' can be used
  20764. to keep the stack boundary aligned to 8 byte boundary. Since
  20765. x86-64 ABI require 16 byte stack alignment, this is ABI
  20766. incompatible and intended to be used in controlled environment
  20767. where stack space is important limitation. This option leads to
  20768. wrong code when functions compiled with 16 byte stack alignment
  20769. (such as functions from a standard library) are called with
  20770. misaligned stack. In this case, SSE instructions may lead to
  20771. misaligned memory access traps. In addition, variable arguments
  20772. are handled incorrectly for 16 byte aligned objects (including x87
  20773. long double and __int128), leading to wrong results. You must
  20774. build all modules with '-mpreferred-stack-boundary=3', including
  20775. any libraries. This includes the system libraries and startup
  20776. modules.
  20777. '-mincoming-stack-boundary=NUM'
  20778. Assume the incoming stack is aligned to a 2 raised to NUM byte
  20779. boundary. If '-mincoming-stack-boundary' is not specified, the one
  20780. specified by '-mpreferred-stack-boundary' is used.
  20781. On Pentium and Pentium Pro, 'double' and 'long double' values
  20782. should be aligned to an 8-byte boundary (see '-malign-double') or
  20783. suffer significant run time performance penalties. On Pentium III,
  20784. the Streaming SIMD Extension (SSE) data type '__m128' may not work
  20785. properly if it is not 16-byte aligned.
  20786. To ensure proper alignment of this values on the stack, the stack
  20787. boundary must be as aligned as that required by any value stored on
  20788. the stack. Further, every function must be generated such that it
  20789. keeps the stack aligned. Thus calling a function compiled with a
  20790. higher preferred stack boundary from a function compiled with a
  20791. lower preferred stack boundary most likely misaligns the stack. It
  20792. is recommended that libraries that use callbacks always use the
  20793. default setting.
  20794. This extra alignment does consume extra stack space, and generally
  20795. increases code size. Code that is sensitive to stack space usage,
  20796. such as embedded systems and operating system kernels, may want to
  20797. reduce the preferred alignment to '-mpreferred-stack-boundary=2'.
  20798. '-mmmx'
  20799. '-msse'
  20800. '-msse2'
  20801. '-msse3'
  20802. '-mssse3'
  20803. '-msse4'
  20804. '-msse4a'
  20805. '-msse4.1'
  20806. '-msse4.2'
  20807. '-mavx'
  20808. '-mavx2'
  20809. '-mavx512f'
  20810. '-mavx512pf'
  20811. '-mavx512er'
  20812. '-mavx512cd'
  20813. '-mavx512vl'
  20814. '-mavx512bw'
  20815. '-mavx512dq'
  20816. '-mavx512ifma'
  20817. '-mavx512vbmi'
  20818. '-msha'
  20819. '-maes'
  20820. '-mpclmul'
  20821. '-mclflushopt'
  20822. '-mclwb'
  20823. '-mfsgsbase'
  20824. '-mptwrite'
  20825. '-mrdrnd'
  20826. '-mf16c'
  20827. '-mfma'
  20828. '-mpconfig'
  20829. '-mwbnoinvd'
  20830. '-mfma4'
  20831. '-mprfchw'
  20832. '-mrdpid'
  20833. '-mprefetchwt1'
  20834. '-mrdseed'
  20835. '-msgx'
  20836. '-mxop'
  20837. '-mlwp'
  20838. '-m3dnow'
  20839. '-m3dnowa'
  20840. '-mpopcnt'
  20841. '-mabm'
  20842. '-madx'
  20843. '-mbmi'
  20844. '-mbmi2'
  20845. '-mlzcnt'
  20846. '-mfxsr'
  20847. '-mxsave'
  20848. '-mxsaveopt'
  20849. '-mxsavec'
  20850. '-mxsaves'
  20851. '-mrtm'
  20852. '-mhle'
  20853. '-mtbm'
  20854. '-mmwaitx'
  20855. '-mclzero'
  20856. '-mpku'
  20857. '-mavx512vbmi2'
  20858. '-mgfni'
  20859. '-mvaes'
  20860. '-mwaitpkg'
  20861. '-mvpclmulqdq'
  20862. '-mavx512bitalg'
  20863. '-mmovdiri'
  20864. '-mmovdir64b'
  20865. '-mavx512vpopcntdq'
  20866. '-mavx5124fmaps'
  20867. '-mavx512vnni'
  20868. '-mavx5124vnniw'
  20869. '-mcldemote'
  20870. These switches enable the use of instructions in the MMX, SSE,
  20871. SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F,
  20872. AVX512PF, AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ,
  20873. AVX512IFMA, AVX512VBMI, SHA, AES, PCLMUL, CLFLUSHOPT, CLWB,
  20874. FSGSBASE, PTWRITE, RDRND, F16C, FMA, PCONFIG, WBNOINVD, FMA4,
  20875. PREFETCHW, RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP, 3DNow!,
  20876. enhanced 3DNow!, POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE,
  20877. XSAVEOPT, XSAVEC, XSAVES, RTM, HLE, TBM, MWAITX, CLZERO, PKU,
  20878. AVX512VBMI2, GFNI, VAES, WAITPKG, VPCLMULQDQ, AVX512BITALG,
  20879. MOVDIRI, MOVDIR64B, AVX512VPOPCNTDQ, AVX5124FMAPS, AVX512VNNI,
  20880. AVX5124VNNIW, or CLDEMOTE extended instruction sets. Each has a
  20881. corresponding '-mno-' option to disable use of these instructions.
  20882. These extensions are also available as built-in functions: see
  20883. *note x86 Built-in Functions::, for details of the functions
  20884. enabled and disabled by these switches.
  20885. To generate SSE/SSE2 instructions automatically from floating-point
  20886. code (as opposed to 387 instructions), see '-mfpmath=sse'.
  20887. GCC depresses SSEx instructions when '-mavx' is used. Instead, it
  20888. generates new AVX instructions or AVX equivalence for all SSEx
  20889. instructions when needed.
  20890. These options enable GCC to use these extended instructions in
  20891. generated code, even without '-mfpmath=sse'. Applications that
  20892. perform run-time CPU detection must compile separate files for each
  20893. supported architecture, using the appropriate flags. In
  20894. particular, the file containing the CPU detection code should be
  20895. compiled without these options.
  20896. '-mdump-tune-features'
  20897. This option instructs GCC to dump the names of the x86 performance
  20898. tuning features and default settings. The names can be used in
  20899. '-mtune-ctrl=FEATURE-LIST'.
  20900. '-mtune-ctrl=FEATURE-LIST'
  20901. This option is used to do fine grain control of x86 code generation
  20902. features. FEATURE-LIST is a comma separated list of FEATURE names.
  20903. See also '-mdump-tune-features'. When specified, the FEATURE is
  20904. turned on if it is not preceded with '^', otherwise, it is turned
  20905. off. '-mtune-ctrl=FEATURE-LIST' is intended to be used by GCC
  20906. developers. Using it may lead to code paths not covered by testing
  20907. and can potentially result in compiler ICEs or runtime errors.
  20908. '-mno-default'
  20909. This option instructs GCC to turn off all tunable features. See
  20910. also '-mtune-ctrl=FEATURE-LIST' and '-mdump-tune-features'.
  20911. '-mcld'
  20912. This option instructs GCC to emit a 'cld' instruction in the
  20913. prologue of functions that use string instructions. String
  20914. instructions depend on the DF flag to select between autoincrement
  20915. or autodecrement mode. While the ABI specifies the DF flag to be
  20916. cleared on function entry, some operating systems violate this
  20917. specification by not clearing the DF flag in their exception
  20918. dispatchers. The exception handler can be invoked with the DF flag
  20919. set, which leads to wrong direction mode when string instructions
  20920. are used. This option can be enabled by default on 32-bit x86
  20921. targets by configuring GCC with the '--enable-cld' configure
  20922. option. Generation of 'cld' instructions can be suppressed with
  20923. the '-mno-cld' compiler option in this case.
  20924. '-mvzeroupper'
  20925. This option instructs GCC to emit a 'vzeroupper' instruction before
  20926. a transfer of control flow out of the function to minimize the AVX
  20927. to SSE transition penalty as well as remove unnecessary 'zeroupper'
  20928. intrinsics.
  20929. '-mprefer-avx128'
  20930. This option instructs GCC to use 128-bit AVX instructions instead
  20931. of 256-bit AVX instructions in the auto-vectorizer.
  20932. '-mprefer-vector-width=OPT'
  20933. This option instructs GCC to use OPT-bit vector width in
  20934. instructions instead of default on the selected platform.
  20935. 'none'
  20936. No extra limitations applied to GCC other than defined by the
  20937. selected platform.
  20938. '128'
  20939. Prefer 128-bit vector width for instructions.
  20940. '256'
  20941. Prefer 256-bit vector width for instructions.
  20942. '512'
  20943. Prefer 512-bit vector width for instructions.
  20944. '-mcx16'
  20945. This option enables GCC to generate 'CMPXCHG16B' instructions in
  20946. 64-bit code to implement compare-and-exchange operations on 16-byte
  20947. aligned 128-bit objects. This is useful for atomic updates of data
  20948. structures exceeding one machine word in size. The compiler uses
  20949. this instruction to implement *note __sync Builtins::. However,
  20950. for *note __atomic Builtins:: operating on 128-bit integers, a
  20951. library call is always used.
  20952. '-msahf'
  20953. This option enables generation of 'SAHF' instructions in 64-bit
  20954. code. Early Intel Pentium 4 CPUs with Intel 64 support, prior to
  20955. the introduction of Pentium 4 G1 step in December 2005, lacked the
  20956. 'LAHF' and 'SAHF' instructions which are supported by AMD64. These
  20957. are load and store instructions, respectively, for certain status
  20958. flags. In 64-bit mode, the 'SAHF' instruction is used to optimize
  20959. 'fmod', 'drem', and 'remainder' built-in functions; see *note Other
  20960. Builtins:: for details.
  20961. '-mmovbe'
  20962. This option enables use of the 'movbe' instruction to implement
  20963. '__builtin_bswap32' and '__builtin_bswap64'.
  20964. '-mshstk'
  20965. The '-mshstk' option enables shadow stack built-in functions from
  20966. x86 Control-flow Enforcement Technology (CET).
  20967. '-mcrc32'
  20968. This option enables built-in functions '__builtin_ia32_crc32qi',
  20969. '__builtin_ia32_crc32hi', '__builtin_ia32_crc32si' and
  20970. '__builtin_ia32_crc32di' to generate the 'crc32' machine
  20971. instruction.
  20972. '-mrecip'
  20973. This option enables use of 'RCPSS' and 'RSQRTSS' instructions (and
  20974. their vectorized variants 'RCPPS' and 'RSQRTPS') with an additional
  20975. Newton-Raphson step to increase precision instead of 'DIVSS' and
  20976. 'SQRTSS' (and their vectorized variants) for single-precision
  20977. floating-point arguments. These instructions are generated only
  20978. when '-funsafe-math-optimizations' is enabled together with
  20979. '-ffinite-math-only' and '-fno-trapping-math'. Note that while the
  20980. throughput of the sequence is higher than the throughput of the
  20981. non-reciprocal instruction, the precision of the sequence can be
  20982. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  20983. 0.99999994).
  20984. Note that GCC implements '1.0f/sqrtf(X)' in terms of 'RSQRTSS' (or
  20985. 'RSQRTPS') already with '-ffast-math' (or the above option
  20986. combination), and doesn't need '-mrecip'.
  20987. Also note that GCC emits the above sequence with additional
  20988. Newton-Raphson step for vectorized single-float division and
  20989. vectorized 'sqrtf(X)' already with '-ffast-math' (or the above
  20990. option combination), and doesn't need '-mrecip'.
  20991. '-mrecip=OPT'
  20992. This option controls which reciprocal estimate instructions may be
  20993. used. OPT is a comma-separated list of options, which may be
  20994. preceded by a '!' to invert the option:
  20995. 'all'
  20996. Enable all estimate instructions.
  20997. 'default'
  20998. Enable the default instructions, equivalent to '-mrecip'.
  20999. 'none'
  21000. Disable all estimate instructions, equivalent to '-mno-recip'.
  21001. 'div'
  21002. Enable the approximation for scalar division.
  21003. 'vec-div'
  21004. Enable the approximation for vectorized division.
  21005. 'sqrt'
  21006. Enable the approximation for scalar square root.
  21007. 'vec-sqrt'
  21008. Enable the approximation for vectorized square root.
  21009. So, for example, '-mrecip=all,!sqrt' enables all of the reciprocal
  21010. approximations, except for square root.
  21011. '-mveclibabi=TYPE'
  21012. Specifies the ABI type to use for vectorizing intrinsics using an
  21013. external library. Supported values for TYPE are 'svml' for the
  21014. Intel short vector math library and 'acml' for the AMD math core
  21015. library. To use this option, both '-ftree-vectorize' and
  21016. '-funsafe-math-optimizations' have to be enabled, and an SVML or
  21017. ACML ABI-compatible library must be specified at link time.
  21018. GCC currently emits calls to 'vmldExp2', 'vmldLn2', 'vmldLog102',
  21019. 'vmldPow2', 'vmldTanh2', 'vmldTan2', 'vmldAtan2', 'vmldAtanh2',
  21020. 'vmldCbrt2', 'vmldSinh2', 'vmldSin2', 'vmldAsinh2', 'vmldAsin2',
  21021. 'vmldCosh2', 'vmldCos2', 'vmldAcosh2', 'vmldAcos2', 'vmlsExp4',
  21022. 'vmlsLn4', 'vmlsLog104', 'vmlsPow4', 'vmlsTanh4', 'vmlsTan4',
  21023. 'vmlsAtan4', 'vmlsAtanh4', 'vmlsCbrt4', 'vmlsSinh4', 'vmlsSin4',
  21024. 'vmlsAsinh4', 'vmlsAsin4', 'vmlsCosh4', 'vmlsCos4', 'vmlsAcosh4'
  21025. and 'vmlsAcos4' for corresponding function type when
  21026. '-mveclibabi=svml' is used, and '__vrd2_sin', '__vrd2_cos',
  21027. '__vrd2_exp', '__vrd2_log', '__vrd2_log2', '__vrd2_log10',
  21028. '__vrs4_sinf', '__vrs4_cosf', '__vrs4_expf', '__vrs4_logf',
  21029. '__vrs4_log2f', '__vrs4_log10f' and '__vrs4_powf' for the
  21030. corresponding function type when '-mveclibabi=acml' is used.
  21031. '-mabi=NAME'
  21032. Generate code for the specified calling convention. Permissible
  21033. values are 'sysv' for the ABI used on GNU/Linux and other systems,
  21034. and 'ms' for the Microsoft ABI. The default is to use the Microsoft
  21035. ABI when targeting Microsoft Windows and the SysV ABI on all other
  21036. systems. You can control this behavior for specific functions by
  21037. using the function attributes 'ms_abi' and 'sysv_abi'. *Note
  21038. Function Attributes::.
  21039. '-mforce-indirect-call'
  21040. Force all calls to functions to be indirect. This is useful when
  21041. using Intel Processor Trace where it generates more precise timing
  21042. information for function calls.
  21043. '-mmanual-endbr'
  21044. Insert ENDBR instruction at function entry only via the 'cf_check'
  21045. function attribute. This is useful when used with the option
  21046. '-fcf-protection=branch' to control ENDBR insertion at the function
  21047. entry.
  21048. '-mcall-ms2sysv-xlogues'
  21049. Due to differences in 64-bit ABIs, any Microsoft ABI function that
  21050. calls a System V ABI function must consider RSI, RDI and XMM6-15 as
  21051. clobbered. By default, the code for saving and restoring these
  21052. registers is emitted inline, resulting in fairly lengthy prologues
  21053. and epilogues. Using '-mcall-ms2sysv-xlogues' emits prologues and
  21054. epilogues that use stubs in the static portion of libgcc to perform
  21055. these saves and restores, thus reducing function size at the cost
  21056. of a few extra instructions.
  21057. '-mtls-dialect=TYPE'
  21058. Generate code to access thread-local storage using the 'gnu' or
  21059. 'gnu2' conventions. 'gnu' is the conservative default; 'gnu2' is
  21060. more efficient, but it may add compile- and run-time requirements
  21061. that cannot be satisfied on all systems.
  21062. '-mpush-args'
  21063. '-mno-push-args'
  21064. Use PUSH operations to store outgoing parameters. This method is
  21065. shorter and usually equally fast as method using SUB/MOV operations
  21066. and is enabled by default. In some cases disabling it may improve
  21067. performance because of improved scheduling and reduced
  21068. dependencies.
  21069. '-maccumulate-outgoing-args'
  21070. If enabled, the maximum amount of space required for outgoing
  21071. arguments is computed in the function prologue. This is faster on
  21072. most modern CPUs because of reduced dependencies, improved
  21073. scheduling and reduced stack usage when the preferred stack
  21074. boundary is not equal to 2. The drawback is a notable increase in
  21075. code size. This switch implies '-mno-push-args'.
  21076. '-mthreads'
  21077. Support thread-safe exception handling on MinGW. Programs that rely
  21078. on thread-safe exception handling must compile and link all code
  21079. with the '-mthreads' option. When compiling, '-mthreads' defines
  21080. '-D_MT'; when linking, it links in a special thread helper library
  21081. '-lmingwthrd' which cleans up per-thread exception-handling data.
  21082. '-mms-bitfields'
  21083. '-mno-ms-bitfields'
  21084. Enable/disable bit-field layout compatible with the native
  21085. Microsoft Windows compiler.
  21086. If 'packed' is used on a structure, or if bit-fields are used, it
  21087. may be that the Microsoft ABI lays out the structure differently
  21088. than the way GCC normally does. Particularly when moving packed
  21089. data between functions compiled with GCC and the native Microsoft
  21090. compiler (either via function call or as data in a file), it may be
  21091. necessary to access either format.
  21092. This option is enabled by default for Microsoft Windows targets.
  21093. This behavior can also be controlled locally by use of variable or
  21094. type attributes. For more information, see *note x86 Variable
  21095. Attributes:: and *note x86 Type Attributes::.
  21096. The Microsoft structure layout algorithm is fairly simple with the
  21097. exception of the bit-field packing. The padding and alignment of
  21098. members of structures and whether a bit-field can straddle a
  21099. storage-unit boundary are determine by these rules:
  21100. 1. Structure members are stored sequentially in the order in
  21101. which they are declared: the first member has the lowest
  21102. memory address and the last member the highest.
  21103. 2. Every data object has an alignment requirement. The alignment
  21104. requirement for all data except structures, unions, and arrays
  21105. is either the size of the object or the current packing size
  21106. (specified with either the 'aligned' attribute or the 'pack'
  21107. pragma), whichever is less. For structures, unions, and
  21108. arrays, the alignment requirement is the largest alignment
  21109. requirement of its members. Every object is allocated an
  21110. offset so that:
  21111. offset % alignment_requirement == 0
  21112. 3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte
  21113. allocation unit if the integral types are the same size and if
  21114. the next bit-field fits into the current allocation unit
  21115. without crossing the boundary imposed by the common alignment
  21116. requirements of the bit-fields.
  21117. MSVC interprets zero-length bit-fields in the following ways:
  21118. 1. If a zero-length bit-field is inserted between two bit-fields
  21119. that are normally coalesced, the bit-fields are not coalesced.
  21120. For example:
  21121. struct
  21122. {
  21123. unsigned long bf_1 : 12;
  21124. unsigned long : 0;
  21125. unsigned long bf_2 : 12;
  21126. } t1;
  21127. The size of 't1' is 8 bytes with the zero-length bit-field.
  21128. If the zero-length bit-field were removed, 't1''s size would
  21129. be 4 bytes.
  21130. 2. If a zero-length bit-field is inserted after a bit-field,
  21131. 'foo', and the alignment of the zero-length bit-field is
  21132. greater than the member that follows it, 'bar', 'bar' is
  21133. aligned as the type of the zero-length bit-field.
  21134. For example:
  21135. struct
  21136. {
  21137. char foo : 4;
  21138. short : 0;
  21139. char bar;
  21140. } t2;
  21141. struct
  21142. {
  21143. char foo : 4;
  21144. short : 0;
  21145. double bar;
  21146. } t3;
  21147. For 't2', 'bar' is placed at offset 2, rather than offset 1.
  21148. Accordingly, the size of 't2' is 4. For 't3', the zero-length
  21149. bit-field does not affect the alignment of 'bar' or, as a
  21150. result, the size of the structure.
  21151. Taking this into account, it is important to note the
  21152. following:
  21153. 1. If a zero-length bit-field follows a normal bit-field,
  21154. the type of the zero-length bit-field may affect the
  21155. alignment of the structure as whole. For example, 't2'
  21156. has a size of 4 bytes, since the zero-length bit-field
  21157. follows a normal bit-field, and is of type short.
  21158. 2. Even if a zero-length bit-field is not followed by a
  21159. normal bit-field, it may still affect the alignment of
  21160. the structure:
  21161. struct
  21162. {
  21163. char foo : 6;
  21164. long : 0;
  21165. } t4;
  21166. Here, 't4' takes up 4 bytes.
  21167. 3. Zero-length bit-fields following non-bit-field members are
  21168. ignored:
  21169. struct
  21170. {
  21171. char foo;
  21172. long : 0;
  21173. char bar;
  21174. } t5;
  21175. Here, 't5' takes up 2 bytes.
  21176. '-mno-align-stringops'
  21177. Do not align the destination of inlined string operations. This
  21178. switch reduces code size and improves performance in case the
  21179. destination is already aligned, but GCC doesn't know about it.
  21180. '-minline-all-stringops'
  21181. By default GCC inlines string operations only when the destination
  21182. is known to be aligned to least a 4-byte boundary. This enables
  21183. more inlining and increases code size, but may improve performance
  21184. of code that depends on fast 'memcpy', 'strlen', and 'memset' for
  21185. short lengths.
  21186. '-minline-stringops-dynamically'
  21187. For string operations of unknown size, use run-time checks with
  21188. inline code for small blocks and a library call for large blocks.
  21189. '-mstringop-strategy=ALG'
  21190. Override the internal decision heuristic for the particular
  21191. algorithm to use for inlining string operations. The allowed
  21192. values for ALG are:
  21193. 'rep_byte'
  21194. 'rep_4byte'
  21195. 'rep_8byte'
  21196. Expand using i386 'rep' prefix of the specified size.
  21197. 'byte_loop'
  21198. 'loop'
  21199. 'unrolled_loop'
  21200. Expand into an inline loop.
  21201. 'libcall'
  21202. Always use a library call.
  21203. '-mmemcpy-strategy=STRATEGY'
  21204. Override the internal decision heuristic to decide if
  21205. '__builtin_memcpy' should be inlined and what inline algorithm to
  21206. use when the expected size of the copy operation is known.
  21207. STRATEGY is a comma-separated list of ALG:MAX_SIZE:DEST_ALIGN
  21208. triplets. ALG is specified in '-mstringop-strategy', MAX_SIZE
  21209. specifies the max byte size with which inline algorithm ALG is
  21210. allowed. For the last triplet, the MAX_SIZE must be '-1'. The
  21211. MAX_SIZE of the triplets in the list must be specified in
  21212. increasing order. The minimal byte size for ALG is '0' for the
  21213. first triplet and 'MAX_SIZE + 1' of the preceding range.
  21214. '-mmemset-strategy=STRATEGY'
  21215. The option is similar to '-mmemcpy-strategy=' except that it is to
  21216. control '__builtin_memset' expansion.
  21217. '-momit-leaf-frame-pointer'
  21218. Don't keep the frame pointer in a register for leaf functions.
  21219. This avoids the instructions to save, set up, and restore frame
  21220. pointers and makes an extra register available in leaf functions.
  21221. The option '-fomit-leaf-frame-pointer' removes the frame pointer
  21222. for leaf functions, which might make debugging harder.
  21223. '-mtls-direct-seg-refs'
  21224. '-mno-tls-direct-seg-refs'
  21225. Controls whether TLS variables may be accessed with offsets from
  21226. the TLS segment register ('%gs' for 32-bit, '%fs' for 64-bit), or
  21227. whether the thread base pointer must be added. Whether or not this
  21228. is valid depends on the operating system, and whether it maps the
  21229. segment to cover the entire TLS area.
  21230. For systems that use the GNU C Library, the default is on.
  21231. '-msse2avx'
  21232. '-mno-sse2avx'
  21233. Specify that the assembler should encode SSE instructions with VEX
  21234. prefix. The option '-mavx' turns this on by default.
  21235. '-mfentry'
  21236. '-mno-fentry'
  21237. If profiling is active ('-pg'), put the profiling counter call
  21238. before the prologue. Note: On x86 architectures the attribute
  21239. 'ms_hook_prologue' isn't possible at the moment for '-mfentry' and
  21240. '-pg'.
  21241. '-mrecord-mcount'
  21242. '-mno-record-mcount'
  21243. If profiling is active ('-pg'), generate a __mcount_loc section
  21244. that contains pointers to each profiling call. This is useful for
  21245. automatically patching and out calls.
  21246. '-mnop-mcount'
  21247. '-mno-nop-mcount'
  21248. If profiling is active ('-pg'), generate the calls to the profiling
  21249. functions as NOPs. This is useful when they should be patched in
  21250. later dynamically. This is likely only useful together with
  21251. '-mrecord-mcount'.
  21252. '-minstrument-return=TYPE'
  21253. Instrument function exit in -pg -mfentry instrumented functions
  21254. with call to specified function. This only instruments true
  21255. returns ending with ret, but not sibling calls ending with jump.
  21256. Valid types are NONE to not instrument, CALL to generate a call to
  21257. __return__, or NOP5 to generate a 5 byte nop.
  21258. '-mrecord-return'
  21259. '-mno-record-return'
  21260. Generate a __return_loc section pointing to all return
  21261. instrumentation code.
  21262. '-mfentry-name=NAME'
  21263. Set name of __fentry__ symbol called at function entry for -pg
  21264. -mfentry functions.
  21265. '-mfentry-section=NAME'
  21266. Set name of section to record -mrecord-mcount calls (default
  21267. __mcount_loc).
  21268. '-mskip-rax-setup'
  21269. '-mno-skip-rax-setup'
  21270. When generating code for the x86-64 architecture with SSE
  21271. extensions disabled, '-mskip-rax-setup' can be used to skip setting
  21272. up RAX register when there are no variable arguments passed in
  21273. vector registers.
  21274. *Warning:* Since RAX register is used to avoid unnecessarily saving
  21275. vector registers on stack when passing variable arguments, the
  21276. impacts of this option are callees may waste some stack space,
  21277. misbehave or jump to a random location. GCC 4.4 or newer don't
  21278. have those issues, regardless the RAX register value.
  21279. '-m8bit-idiv'
  21280. '-mno-8bit-idiv'
  21281. On some processors, like Intel Atom, 8-bit unsigned integer divide
  21282. is much faster than 32-bit/64-bit integer divide. This option
  21283. generates a run-time check. If both dividend and divisor are
  21284. within range of 0 to 255, 8-bit unsigned integer divide is used
  21285. instead of 32-bit/64-bit integer divide.
  21286. '-mavx256-split-unaligned-load'
  21287. '-mavx256-split-unaligned-store'
  21288. Split 32-byte AVX unaligned load and store.
  21289. '-mstack-protector-guard=GUARD'
  21290. '-mstack-protector-guard-reg=REG'
  21291. '-mstack-protector-guard-offset=OFFSET'
  21292. Generate stack protection code using canary at GUARD. Supported
  21293. locations are 'global' for global canary or 'tls' for per-thread
  21294. canary in the TLS block (the default). This option has effect only
  21295. when '-fstack-protector' or '-fstack-protector-all' is specified.
  21296. With the latter choice the options
  21297. '-mstack-protector-guard-reg=REG' and
  21298. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  21299. segment register ('%fs' or '%gs') to use as base register for
  21300. reading the canary, and from what offset from that base register.
  21301. The default for those is as specified in the relevant ABI.
  21302. '-mgeneral-regs-only'
  21303. Generate code that uses only the general-purpose registers. This
  21304. prevents the compiler from using floating-point, vector, mask and
  21305. bound registers.
  21306. '-mindirect-branch=CHOICE'
  21307. Convert indirect call and jump with CHOICE. The default is 'keep',
  21308. which keeps indirect call and jump unmodified. 'thunk' converts
  21309. indirect call and jump to call and return thunk. 'thunk-inline'
  21310. converts indirect call and jump to inlined call and return thunk.
  21311. 'thunk-extern' converts indirect call and jump to external call and
  21312. return thunk provided in a separate object file. You can control
  21313. this behavior for a specific function by using the function
  21314. attribute 'indirect_branch'. *Note Function Attributes::.
  21315. Note that '-mcmodel=large' is incompatible with
  21316. '-mindirect-branch=thunk' and '-mindirect-branch=thunk-extern'
  21317. since the thunk function may not be reachable in the large code
  21318. model.
  21319. Note that '-mindirect-branch=thunk-extern' is incompatible with
  21320. '-fcf-protection=branch' since the external thunk cannot be
  21321. modified to disable control-flow check.
  21322. '-mfunction-return=CHOICE'
  21323. Convert function return with CHOICE. The default is 'keep', which
  21324. keeps function return unmodified. 'thunk' converts function return
  21325. to call and return thunk. 'thunk-inline' converts function return
  21326. to inlined call and return thunk. 'thunk-extern' converts function
  21327. return to external call and return thunk provided in a separate
  21328. object file. You can control this behavior for a specific function
  21329. by using the function attribute 'function_return'. *Note Function
  21330. Attributes::.
  21331. Note that '-mcmodel=large' is incompatible with
  21332. '-mfunction-return=thunk' and '-mfunction-return=thunk-extern'
  21333. since the thunk function may not be reachable in the large code
  21334. model.
  21335. '-mindirect-branch-register'
  21336. Force indirect call and jump via register.
  21337. These '-m' switches are supported in addition to the above on x86-64
  21338. processors in 64-bit environments.
  21339. '-m32'
  21340. '-m64'
  21341. '-mx32'
  21342. '-m16'
  21343. '-miamcu'
  21344. Generate code for a 16-bit, 32-bit or 64-bit environment. The
  21345. '-m32' option sets 'int', 'long', and pointer types to 32 bits, and
  21346. generates code that runs on any i386 system.
  21347. The '-m64' option sets 'int' to 32 bits and 'long' and pointer
  21348. types to 64 bits, and generates code for the x86-64 architecture.
  21349. For Darwin only the '-m64' option also turns off the '-fno-pic' and
  21350. '-mdynamic-no-pic' options.
  21351. The '-mx32' option sets 'int', 'long', and pointer types to 32
  21352. bits, and generates code for the x86-64 architecture.
  21353. The '-m16' option is the same as '-m32', except for that it outputs
  21354. the '.code16gcc' assembly directive at the beginning of the
  21355. assembly output so that the binary can run in 16-bit mode.
  21356. The '-miamcu' option generates code which conforms to Intel MCU
  21357. psABI. It requires the '-m32' option to be turned on.
  21358. '-mno-red-zone'
  21359. Do not use a so-called "red zone" for x86-64 code. The red zone is
  21360. mandated by the x86-64 ABI; it is a 128-byte area beyond the
  21361. location of the stack pointer that is not modified by signal or
  21362. interrupt handlers and therefore can be used for temporary data
  21363. without adjusting the stack pointer. The flag '-mno-red-zone'
  21364. disables this red zone.
  21365. '-mcmodel=small'
  21366. Generate code for the small code model: the program and its symbols
  21367. must be linked in the lower 2 GB of the address space. Pointers
  21368. are 64 bits. Programs can be statically or dynamically linked.
  21369. This is the default code model.
  21370. '-mcmodel=kernel'
  21371. Generate code for the kernel code model. The kernel runs in the
  21372. negative 2 GB of the address space. This model has to be used for
  21373. Linux kernel code.
  21374. '-mcmodel=medium'
  21375. Generate code for the medium model: the program is linked in the
  21376. lower 2 GB of the address space. Small symbols are also placed
  21377. there. Symbols with sizes larger than '-mlarge-data-threshold' are
  21378. put into large data or BSS sections and can be located above 2GB.
  21379. Programs can be statically or dynamically linked.
  21380. '-mcmodel=large'
  21381. Generate code for the large model. This model makes no assumptions
  21382. about addresses and sizes of sections.
  21383. '-maddress-mode=long'
  21384. Generate code for long address mode. This is only supported for
  21385. 64-bit and x32 environments. It is the default address mode for
  21386. 64-bit environments.
  21387. '-maddress-mode=short'
  21388. Generate code for short address mode. This is only supported for
  21389. 32-bit and x32 environments. It is the default address mode for
  21390. 32-bit and x32 environments.
  21391. 
  21392. File: gcc.info, Node: x86 Windows Options, Next: Xstormy16 Options, Prev: x86 Options, Up: Submodel Options
  21393. 3.18.59 x86 Windows Options
  21394. ---------------------------
  21395. These additional options are available for Microsoft Windows targets:
  21396. '-mconsole'
  21397. This option specifies that a console application is to be
  21398. generated, by instructing the linker to set the PE header subsystem
  21399. type required for console applications. This option is available
  21400. for Cygwin and MinGW targets and is enabled by default on those
  21401. targets.
  21402. '-mdll'
  21403. This option is available for Cygwin and MinGW targets. It
  21404. specifies that a DLL--a dynamic link library--is to be generated,
  21405. enabling the selection of the required runtime startup object and
  21406. entry point.
  21407. '-mnop-fun-dllimport'
  21408. This option is available for Cygwin and MinGW targets. It
  21409. specifies that the 'dllimport' attribute should be ignored.
  21410. '-mthread'
  21411. This option is available for MinGW targets. It specifies that
  21412. MinGW-specific thread support is to be used.
  21413. '-municode'
  21414. This option is available for MinGW-w64 targets. It causes the
  21415. 'UNICODE' preprocessor macro to be predefined, and chooses
  21416. Unicode-capable runtime startup code.
  21417. '-mwin32'
  21418. This option is available for Cygwin and MinGW targets. It
  21419. specifies that the typical Microsoft Windows predefined macros are
  21420. to be set in the pre-processor, but does not influence the choice
  21421. of runtime library/startup code.
  21422. '-mwindows'
  21423. This option is available for Cygwin and MinGW targets. It
  21424. specifies that a GUI application is to be generated by instructing
  21425. the linker to set the PE header subsystem type appropriately.
  21426. '-fno-set-stack-executable'
  21427. This option is available for MinGW targets. It specifies that the
  21428. executable flag for the stack used by nested functions isn't set.
  21429. This is necessary for binaries running in kernel mode of Microsoft
  21430. Windows, as there the User32 API, which is used to set executable
  21431. privileges, isn't available.
  21432. '-fwritable-relocated-rdata'
  21433. This option is available for MinGW and Cygwin targets. It
  21434. specifies that relocated-data in read-only section is put into the
  21435. '.data' section. This is a necessary for older runtimes not
  21436. supporting modification of '.rdata' sections for pseudo-relocation.
  21437. '-mpe-aligned-commons'
  21438. This option is available for Cygwin and MinGW targets. It
  21439. specifies that the GNU extension to the PE file format that permits
  21440. the correct alignment of COMMON variables should be used when
  21441. generating code. It is enabled by default if GCC detects that the
  21442. target assembler found during configuration supports the feature.
  21443. See also under *note x86 Options:: for standard options.
  21444. 
  21445. File: gcc.info, Node: Xstormy16 Options, Next: Xtensa Options, Prev: x86 Windows Options, Up: Submodel Options
  21446. 3.18.60 Xstormy16 Options
  21447. -------------------------
  21448. These options are defined for Xstormy16:
  21449. '-msim'
  21450. Choose startup files and linker script suitable for the simulator.
  21451. 
  21452. File: gcc.info, Node: Xtensa Options, Next: zSeries Options, Prev: Xstormy16 Options, Up: Submodel Options
  21453. 3.18.61 Xtensa Options
  21454. ----------------------
  21455. These options are supported for Xtensa targets:
  21456. '-mconst16'
  21457. '-mno-const16'
  21458. Enable or disable use of 'CONST16' instructions for loading
  21459. constant values. The 'CONST16' instruction is currently not a
  21460. standard option from Tensilica. When enabled, 'CONST16'
  21461. instructions are always used in place of the standard 'L32R'
  21462. instructions. The use of 'CONST16' is enabled by default only if
  21463. the 'L32R' instruction is not available.
  21464. '-mfused-madd'
  21465. '-mno-fused-madd'
  21466. Enable or disable use of fused multiply/add and multiply/subtract
  21467. instructions in the floating-point option. This has no effect if
  21468. the floating-point option is not also enabled. Disabling fused
  21469. multiply/add and multiply/subtract instructions forces the compiler
  21470. to use separate instructions for the multiply and add/subtract
  21471. operations. This may be desirable in some cases where strict IEEE
  21472. 754-compliant results are required: the fused multiply add/subtract
  21473. instructions do not round the intermediate result, thereby
  21474. producing results with _more_ bits of precision than specified by
  21475. the IEEE standard. Disabling fused multiply add/subtract
  21476. instructions also ensures that the program output is not sensitive
  21477. to the compiler's ability to combine multiply and add/subtract
  21478. operations.
  21479. '-mserialize-volatile'
  21480. '-mno-serialize-volatile'
  21481. When this option is enabled, GCC inserts 'MEMW' instructions before
  21482. 'volatile' memory references to guarantee sequential consistency.
  21483. The default is '-mserialize-volatile'. Use
  21484. '-mno-serialize-volatile' to omit the 'MEMW' instructions.
  21485. '-mforce-no-pic'
  21486. For targets, like GNU/Linux, where all user-mode Xtensa code must
  21487. be position-independent code (PIC), this option disables PIC for
  21488. compiling kernel code.
  21489. '-mtext-section-literals'
  21490. '-mno-text-section-literals'
  21491. These options control the treatment of literal pools. The default
  21492. is '-mno-text-section-literals', which places literals in a
  21493. separate section in the output file. This allows the literal pool
  21494. to be placed in a data RAM/ROM, and it also allows the linker to
  21495. combine literal pools from separate object files to remove
  21496. redundant literals and improve code size. With
  21497. '-mtext-section-literals', the literals are interspersed in the
  21498. text section in order to keep them as close as possible to their
  21499. references. This may be necessary for large assembly files.
  21500. Literals for each function are placed right before that function.
  21501. '-mauto-litpools'
  21502. '-mno-auto-litpools'
  21503. These options control the treatment of literal pools. The default
  21504. is '-mno-auto-litpools', which places literals in a separate
  21505. section in the output file unless '-mtext-section-literals' is
  21506. used. With '-mauto-litpools' the literals are interspersed in the
  21507. text section by the assembler. Compiler does not produce explicit
  21508. '.literal' directives and loads literals into registers with 'MOVI'
  21509. instructions instead of 'L32R' to let the assembler do relaxation
  21510. and place literals as necessary. This option allows assembler to
  21511. create several literal pools per function and assemble very big
  21512. functions, which may not be possible with
  21513. '-mtext-section-literals'.
  21514. '-mtarget-align'
  21515. '-mno-target-align'
  21516. When this option is enabled, GCC instructs the assembler to
  21517. automatically align instructions to reduce branch penalties at the
  21518. expense of some code density. The assembler attempts to widen
  21519. density instructions to align branch targets and the instructions
  21520. following call instructions. If there are not enough preceding
  21521. safe density instructions to align a target, no widening is
  21522. performed. The default is '-mtarget-align'. These options do not
  21523. affect the treatment of auto-aligned instructions like 'LOOP',
  21524. which the assembler always aligns, either by widening density
  21525. instructions or by inserting NOP instructions.
  21526. '-mlongcalls'
  21527. '-mno-longcalls'
  21528. When this option is enabled, GCC instructs the assembler to
  21529. translate direct calls to indirect calls unless it can determine
  21530. that the target of a direct call is in the range allowed by the
  21531. call instruction. This translation typically occurs for calls to
  21532. functions in other source files. Specifically, the assembler
  21533. translates a direct 'CALL' instruction into an 'L32R' followed by a
  21534. 'CALLX' instruction. The default is '-mno-longcalls'. This option
  21535. should be used in programs where the call target can potentially be
  21536. out of range. This option is implemented in the assembler, not the
  21537. compiler, so the assembly code generated by GCC still shows direct
  21538. call instructions--look at the disassembled object code to see the
  21539. actual instructions. Note that the assembler uses an indirect call
  21540. for every cross-file call, not just those that really are out of
  21541. range.
  21542. 
  21543. File: gcc.info, Node: zSeries Options, Prev: Xtensa Options, Up: Submodel Options
  21544. 3.18.62 zSeries Options
  21545. -----------------------
  21546. These are listed under *Note S/390 and zSeries Options::.
  21547. 
  21548. File: gcc.info, Node: Spec Files, Next: Environment Variables, Prev: Submodel Options, Up: Invoking GCC
  21549. 3.19 Specifying Subprocesses and the Switches to Pass to Them
  21550. =============================================================
  21551. 'gcc' is a driver program. It performs its job by invoking a sequence
  21552. of other programs to do the work of compiling, assembling and linking.
  21553. GCC interprets its command-line parameters and uses these to deduce
  21554. which programs it should invoke, and which command-line options it ought
  21555. to place on their command lines. This behavior is controlled by "spec
  21556. strings". In most cases there is one spec string for each program that
  21557. GCC can invoke, but a few programs have multiple spec strings to control
  21558. their behavior. The spec strings built into GCC can be overridden by
  21559. using the '-specs=' command-line switch to specify a spec file.
  21560. "Spec files" are plain-text files that are used to construct spec
  21561. strings. They consist of a sequence of directives separated by blank
  21562. lines. The type of directive is determined by the first non-whitespace
  21563. character on the line, which can be one of the following:
  21564. '%COMMAND'
  21565. Issues a COMMAND to the spec file processor. The commands that can
  21566. appear here are:
  21567. '%include <FILE>'
  21568. Search for FILE and insert its text at the current point in
  21569. the specs file.
  21570. '%include_noerr <FILE>'
  21571. Just like '%include', but do not generate an error message if
  21572. the include file cannot be found.
  21573. '%rename OLD_NAME NEW_NAME'
  21574. Rename the spec string OLD_NAME to NEW_NAME.
  21575. '*[SPEC_NAME]:'
  21576. This tells the compiler to create, override or delete the named
  21577. spec string. All lines after this directive up to the next
  21578. directive or blank line are considered to be the text for the spec
  21579. string. If this results in an empty string then the spec is
  21580. deleted. (Or, if the spec did not exist, then nothing happens.)
  21581. Otherwise, if the spec does not currently exist a new spec is
  21582. created. If the spec does exist then its contents are overridden
  21583. by the text of this directive, unless the first character of that
  21584. text is the '+' character, in which case the text is appended to
  21585. the spec.
  21586. '[SUFFIX]:'
  21587. Creates a new '[SUFFIX] spec' pair. All lines after this directive
  21588. and up to the next directive or blank line are considered to make
  21589. up the spec string for the indicated suffix. When the compiler
  21590. encounters an input file with the named suffix, it processes the
  21591. spec string in order to work out how to compile that file. For
  21592. example:
  21593. .ZZ:
  21594. z-compile -input %i
  21595. This says that any input file whose name ends in '.ZZ' should be
  21596. passed to the program 'z-compile', which should be invoked with the
  21597. command-line switch '-input' and with the result of performing the
  21598. '%i' substitution. (See below.)
  21599. As an alternative to providing a spec string, the text following a
  21600. suffix directive can be one of the following:
  21601. '@LANGUAGE'
  21602. This says that the suffix is an alias for a known LANGUAGE.
  21603. This is similar to using the '-x' command-line switch to GCC
  21604. to specify a language explicitly. For example:
  21605. .ZZ:
  21606. @c++
  21607. Says that .ZZ files are, in fact, C++ source files.
  21608. '#NAME'
  21609. This causes an error messages saying:
  21610. NAME compiler not installed on this system.
  21611. GCC already has an extensive list of suffixes built into it. This
  21612. directive adds an entry to the end of the list of suffixes, but
  21613. since the list is searched from the end backwards, it is
  21614. effectively possible to override earlier entries using this
  21615. technique.
  21616. GCC has the following spec strings built into it. Spec files can
  21617. override these strings or create their own. Note that individual
  21618. targets can also add their own spec strings to this list.
  21619. asm Options to pass to the assembler
  21620. asm_final Options to pass to the assembler post-processor
  21621. cpp Options to pass to the C preprocessor
  21622. cc1 Options to pass to the C compiler
  21623. cc1plus Options to pass to the C++ compiler
  21624. endfile Object files to include at the end of the link
  21625. link Options to pass to the linker
  21626. lib Libraries to include on the command line to the linker
  21627. libgcc Decides which GCC support library to pass to the linker
  21628. linker Sets the name of the linker
  21629. predefines Defines to be passed to the C preprocessor
  21630. signed_char Defines to pass to CPP to say whether char is signed
  21631. by default
  21632. startfile Object files to include at the start of the link
  21633. Here is a small example of a spec file:
  21634. %rename lib old_lib
  21635. *lib:
  21636. --start-group -lgcc -lc -leval1 --end-group %(old_lib)
  21637. This example renames the spec called 'lib' to 'old_lib' and then
  21638. overrides the previous definition of 'lib' with a new one. The new
  21639. definition adds in some extra command-line options before including the
  21640. text of the old definition.
  21641. "Spec strings" are a list of command-line options to be passed to their
  21642. corresponding program. In addition, the spec strings can contain
  21643. '%'-prefixed sequences to substitute variable text or to conditionally
  21644. insert text into the command line. Using these constructs it is
  21645. possible to generate quite complex command lines.
  21646. Here is a table of all defined '%'-sequences for spec strings. Note
  21647. that spaces are not generated automatically around the results of
  21648. expanding these sequences. Therefore you can concatenate them together
  21649. or combine them with constant text in a single argument.
  21650. '%%'
  21651. Substitute one '%' into the program name or argument.
  21652. '%i'
  21653. Substitute the name of the input file being processed.
  21654. '%b'
  21655. Substitute the basename of the input file being processed. This is
  21656. the substring up to (and not including) the last period and not
  21657. including the directory.
  21658. '%B'
  21659. This is the same as '%b', but include the file suffix (text after
  21660. the last period).
  21661. '%d'
  21662. Marks the argument containing or following the '%d' as a temporary
  21663. file name, so that that file is deleted if GCC exits successfully.
  21664. Unlike '%g', this contributes no text to the argument.
  21665. '%gSUFFIX'
  21666. Substitute a file name that has suffix SUFFIX and is chosen once
  21667. per compilation, and mark the argument in the same way as '%d'. To
  21668. reduce exposure to denial-of-service attacks, the file name is now
  21669. chosen in a way that is hard to predict even when previously chosen
  21670. file names are known. For example, '%g.s ... %g.o ... %g.s' might
  21671. turn into 'ccUVUUAU.s ccXYAXZ12.o ccUVUUAU.s'. SUFFIX matches the
  21672. regexp '[.A-Za-z]*' or the special string '%O', which is treated
  21673. exactly as if '%O' had been preprocessed. Previously, '%g' was
  21674. simply substituted with a file name chosen once per compilation,
  21675. without regard to any appended suffix (which was therefore treated
  21676. just like ordinary text), making such attacks more likely to
  21677. succeed.
  21678. '%uSUFFIX'
  21679. Like '%g', but generates a new temporary file name each time it
  21680. appears instead of once per compilation.
  21681. '%USUFFIX'
  21682. Substitutes the last file name generated with '%uSUFFIX',
  21683. generating a new one if there is no such last file name. In the
  21684. absence of any '%uSUFFIX', this is just like '%gSUFFIX', except
  21685. they don't share the same suffix _space_, so '%g.s ... %U.s ...
  21686. %g.s ... %U.s' involves the generation of two distinct file names,
  21687. one for each '%g.s' and another for each '%U.s'. Previously, '%U'
  21688. was simply substituted with a file name chosen for the previous
  21689. '%u', without regard to any appended suffix.
  21690. '%jSUFFIX'
  21691. Substitutes the name of the 'HOST_BIT_BUCKET', if any, and if it is
  21692. writable, and if '-save-temps' is not used; otherwise, substitute
  21693. the name of a temporary file, just like '%u'. This temporary file
  21694. is not meant for communication between processes, but rather as a
  21695. junk disposal mechanism.
  21696. '%|SUFFIX'
  21697. '%mSUFFIX'
  21698. Like '%g', except if '-pipe' is in effect. In that case '%|'
  21699. substitutes a single dash and '%m' substitutes nothing at all.
  21700. These are the two most common ways to instruct a program that it
  21701. should read from standard input or write to standard output. If
  21702. you need something more elaborate you can use an '%{pipe:'X'}'
  21703. construct: see for example 'f/lang-specs.h'.
  21704. '%.SUFFIX'
  21705. Substitutes .SUFFIX for the suffixes of a matched switch's args
  21706. when it is subsequently output with '%*'. SUFFIX is terminated by
  21707. the next space or %.
  21708. '%w'
  21709. Marks the argument containing or following the '%w' as the
  21710. designated output file of this compilation. This puts the argument
  21711. into the sequence of arguments that '%o' substitutes.
  21712. '%o'
  21713. Substitutes the names of all the output files, with spaces
  21714. automatically placed around them. You should write spaces around
  21715. the '%o' as well or the results are undefined. '%o' is for use in
  21716. the specs for running the linker. Input files whose names have no
  21717. recognized suffix are not compiled at all, but they are included
  21718. among the output files, so they are linked.
  21719. '%O'
  21720. Substitutes the suffix for object files. Note that this is handled
  21721. specially when it immediately follows '%g, %u, or %U', because of
  21722. the need for those to form complete file names. The handling is
  21723. such that '%O' is treated exactly as if it had already been
  21724. substituted, except that '%g, %u, and %U' do not currently support
  21725. additional SUFFIX characters following '%O' as they do following,
  21726. for example, '.o'.
  21727. '%p'
  21728. Substitutes the standard macro predefinitions for the current
  21729. target machine. Use this when running 'cpp'.
  21730. '%P'
  21731. Like '%p', but puts '__' before and after the name of each
  21732. predefined macro, except for macros that start with '__' or with
  21733. '_L', where L is an uppercase letter. This is for ISO C.
  21734. '%I'
  21735. Substitute any of '-iprefix' (made from 'GCC_EXEC_PREFIX'),
  21736. '-isysroot' (made from 'TARGET_SYSTEM_ROOT'), '-isystem' (made from
  21737. 'COMPILER_PATH' and '-B' options) and '-imultilib' as necessary.
  21738. '%s'
  21739. Current argument is the name of a library or startup file of some
  21740. sort. Search for that file in a standard list of directories and
  21741. substitute the full name found. The current working directory is
  21742. included in the list of directories scanned.
  21743. '%T'
  21744. Current argument is the name of a linker script. Search for that
  21745. file in the current list of directories to scan for libraries. If
  21746. the file is located insert a '--script' option into the command
  21747. line followed by the full path name found. If the file is not
  21748. found then generate an error message. Note: the current working
  21749. directory is not searched.
  21750. '%eSTR'
  21751. Print STR as an error message. STR is terminated by a newline.
  21752. Use this when inconsistent options are detected.
  21753. '%(NAME)'
  21754. Substitute the contents of spec string NAME at this point.
  21755. '%x{OPTION}'
  21756. Accumulate an option for '%X'.
  21757. '%X'
  21758. Output the accumulated linker options specified by '-Wl' or a '%x'
  21759. spec string.
  21760. '%Y'
  21761. Output the accumulated assembler options specified by '-Wa'.
  21762. '%Z'
  21763. Output the accumulated preprocessor options specified by '-Wp'.
  21764. '%a'
  21765. Process the 'asm' spec. This is used to compute the switches to be
  21766. passed to the assembler.
  21767. '%A'
  21768. Process the 'asm_final' spec. This is a spec string for passing
  21769. switches to an assembler post-processor, if such a program is
  21770. needed.
  21771. '%l'
  21772. Process the 'link' spec. This is the spec for computing the
  21773. command line passed to the linker. Typically it makes use of the
  21774. '%L %G %S %D and %E' sequences.
  21775. '%D'
  21776. Dump out a '-L' option for each directory that GCC believes might
  21777. contain startup files. If the target supports multilibs then the
  21778. current multilib directory is prepended to each of these paths.
  21779. '%L'
  21780. Process the 'lib' spec. This is a spec string for deciding which
  21781. libraries are included on the command line to the linker.
  21782. '%G'
  21783. Process the 'libgcc' spec. This is a spec string for deciding
  21784. which GCC support library is included on the command line to the
  21785. linker.
  21786. '%S'
  21787. Process the 'startfile' spec. This is a spec for deciding which
  21788. object files are the first ones passed to the linker. Typically
  21789. this might be a file named 'crt0.o'.
  21790. '%E'
  21791. Process the 'endfile' spec. This is a spec string that specifies
  21792. the last object files that are passed to the linker.
  21793. '%C'
  21794. Process the 'cpp' spec. This is used to construct the arguments to
  21795. be passed to the C preprocessor.
  21796. '%1'
  21797. Process the 'cc1' spec. This is used to construct the options to
  21798. be passed to the actual C compiler ('cc1').
  21799. '%2'
  21800. Process the 'cc1plus' spec. This is used to construct the options
  21801. to be passed to the actual C++ compiler ('cc1plus').
  21802. '%*'
  21803. Substitute the variable part of a matched option. See below. Note
  21804. that each comma in the substituted string is replaced by a single
  21805. space.
  21806. '%<S'
  21807. Remove all occurrences of '-S' from the command line. Note--this
  21808. command is position dependent. '%' commands in the spec string
  21809. before this one see '-S', '%' commands in the spec string after
  21810. this one do not.
  21811. '%:FUNCTION(ARGS)'
  21812. Call the named function FUNCTION, passing it ARGS. ARGS is first
  21813. processed as a nested spec string, then split into an argument
  21814. vector in the usual fashion. The function returns a string which
  21815. is processed as if it had appeared literally as part of the current
  21816. spec.
  21817. The following built-in spec functions are provided:
  21818. 'getenv'
  21819. The 'getenv' spec function takes two arguments: an environment
  21820. variable name and a string. If the environment variable is
  21821. not defined, a fatal error is issued. Otherwise, the return
  21822. value is the value of the environment variable concatenated
  21823. with the string. For example, if 'TOPDIR' is defined as
  21824. '/path/to/top', then:
  21825. %:getenv(TOPDIR /include)
  21826. expands to '/path/to/top/include'.
  21827. 'if-exists'
  21828. The 'if-exists' spec function takes one argument, an absolute
  21829. pathname to a file. If the file exists, 'if-exists' returns
  21830. the pathname. Here is a small example of its usage:
  21831. *startfile:
  21832. crt0%O%s %:if-exists(crti%O%s) crtbegin%O%s
  21833. 'if-exists-else'
  21834. The 'if-exists-else' spec function is similar to the
  21835. 'if-exists' spec function, except that it takes two arguments.
  21836. The first argument is an absolute pathname to a file. If the
  21837. file exists, 'if-exists-else' returns the pathname. If it
  21838. does not exist, it returns the second argument. This way,
  21839. 'if-exists-else' can be used to select one file or another,
  21840. based on the existence of the first. Here is a small example
  21841. of its usage:
  21842. *startfile:
  21843. crt0%O%s %:if-exists(crti%O%s) \
  21844. %:if-exists-else(crtbeginT%O%s crtbegin%O%s)
  21845. 'replace-outfile'
  21846. The 'replace-outfile' spec function takes two arguments. It
  21847. looks for the first argument in the outfiles array and
  21848. replaces it with the second argument. Here is a small example
  21849. of its usage:
  21850. %{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}
  21851. 'remove-outfile'
  21852. The 'remove-outfile' spec function takes one argument. It
  21853. looks for the first argument in the outfiles array and removes
  21854. it. Here is a small example its usage:
  21855. %:remove-outfile(-lm)
  21856. 'pass-through-libs'
  21857. The 'pass-through-libs' spec function takes any number of
  21858. arguments. It finds any '-l' options and any non-options
  21859. ending in '.a' (which it assumes are the names of linker input
  21860. library archive files) and returns a result containing all the
  21861. found arguments each prepended by '-plugin-opt=-pass-through='
  21862. and joined by spaces. This list is intended to be passed to
  21863. the LTO linker plugin.
  21864. %:pass-through-libs(%G %L %G)
  21865. 'print-asm-header'
  21866. The 'print-asm-header' function takes no arguments and simply
  21867. prints a banner like:
  21868. Assembler options
  21869. =================
  21870. Use "-Wa,OPTION" to pass "OPTION" to the assembler.
  21871. It is used to separate compiler options from assembler options
  21872. in the '--target-help' output.
  21873. '%{S}'
  21874. Substitutes the '-S' switch, if that switch is given to GCC. If
  21875. that switch is not specified, this substitutes nothing. Note that
  21876. the leading dash is omitted when specifying this option, and it is
  21877. automatically inserted if the substitution is performed. Thus the
  21878. spec string '%{foo}' matches the command-line option '-foo' and
  21879. outputs the command-line option '-foo'.
  21880. '%W{S}'
  21881. Like %{'S'} but mark last argument supplied within as a file to be
  21882. deleted on failure.
  21883. '%{S*}'
  21884. Substitutes all the switches specified to GCC whose names start
  21885. with '-S', but which also take an argument. This is used for
  21886. switches like '-o', '-D', '-I', etc. GCC considers '-o foo' as
  21887. being one switch whose name starts with 'o'. %{o*} substitutes
  21888. this text, including the space. Thus two arguments are generated.
  21889. '%{S*&T*}'
  21890. Like %{'S'*}, but preserve order of 'S' and 'T' options (the order
  21891. of 'S' and 'T' in the spec is not significant). There can be any
  21892. number of ampersand-separated variables; for each the wild card is
  21893. optional. Useful for CPP as '%{D*&U*&A*}'.
  21894. '%{S:X}'
  21895. Substitutes 'X', if the '-S' switch is given to GCC.
  21896. '%{!S:X}'
  21897. Substitutes 'X', if the '-S' switch is _not_ given to GCC.
  21898. '%{S*:X}'
  21899. Substitutes 'X' if one or more switches whose names start with '-S'
  21900. are specified to GCC. Normally 'X' is substituted only once, no
  21901. matter how many such switches appeared. However, if '%*' appears
  21902. somewhere in 'X', then 'X' is substituted once for each matching
  21903. switch, with the '%*' replaced by the part of that switch matching
  21904. the '*'.
  21905. If '%*' appears as the last part of a spec sequence then a space is
  21906. added after the end of the last substitution. If there is more
  21907. text in the sequence, however, then a space is not generated. This
  21908. allows the '%*' substitution to be used as part of a larger string.
  21909. For example, a spec string like this:
  21910. %{mcu=*:--script=%*/memory.ld}
  21911. when matching an option like '-mcu=newchip' produces:
  21912. --script=newchip/memory.ld
  21913. '%{.S:X}'
  21914. Substitutes 'X', if processing a file with suffix 'S'.
  21915. '%{!.S:X}'
  21916. Substitutes 'X', if _not_ processing a file with suffix 'S'.
  21917. '%{,S:X}'
  21918. Substitutes 'X', if processing a file for language 'S'.
  21919. '%{!,S:X}'
  21920. Substitutes 'X', if not processing a file for language 'S'.
  21921. '%{S|P:X}'
  21922. Substitutes 'X' if either '-S' or '-P' is given to GCC. This may
  21923. be combined with '!', '.', ',', and '*' sequences as well, although
  21924. they have a stronger binding than the '|'. If '%*' appears in 'X',
  21925. all of the alternatives must be starred, and only the first
  21926. matching alternative is substituted.
  21927. For example, a spec string like this:
  21928. %{.c:-foo} %{!.c:-bar} %{.c|d:-baz} %{!.c|d:-boggle}
  21929. outputs the following command-line options from the following input
  21930. command-line options:
  21931. fred.c -foo -baz
  21932. jim.d -bar -boggle
  21933. -d fred.c -foo -baz -boggle
  21934. -d jim.d -bar -baz -boggle
  21935. '%{S:X; T:Y; :D}'
  21936. If 'S' is given to GCC, substitutes 'X'; else if 'T' is given to
  21937. GCC, substitutes 'Y'; else substitutes 'D'. There can be as many
  21938. clauses as you need. This may be combined with '.', ',', '!', '|',
  21939. and '*' as needed.
  21940. The switch matching text 'S' in a '%{S}', '%{S:X}' or similar construct
  21941. can use a backslash to ignore the special meaning of the character
  21942. following it, thus allowing literal matching of a character that is
  21943. otherwise specially treated. For example, '%{std=iso9899\:1999:X}'
  21944. substitutes 'X' if the '-std=iso9899:1999' option is given.
  21945. The conditional text 'X' in a '%{S:X}' or similar construct may contain
  21946. other nested '%' constructs or spaces, or even newlines. They are
  21947. processed as usual, as described above. Trailing white space in 'X' is
  21948. ignored. White space may also appear anywhere on the left side of the
  21949. colon in these constructs, except between '.' or '*' and the
  21950. corresponding word.
  21951. The '-O', '-f', '-m', and '-W' switches are handled specifically in
  21952. these constructs. If another value of '-O' or the negated form of a
  21953. '-f', '-m', or '-W' switch is found later in the command line, the
  21954. earlier switch value is ignored, except with {'S'*} where 'S' is just
  21955. one letter, which passes all matching options.
  21956. The character '|' at the beginning of the predicate text is used to
  21957. indicate that a command should be piped to the following command, but
  21958. only if '-pipe' is specified.
  21959. It is built into GCC which switches take arguments and which do not.
  21960. (You might think it would be useful to generalize this to allow each
  21961. compiler's spec to say which switches take arguments. But this cannot
  21962. be done in a consistent fashion. GCC cannot even decide which input
  21963. files have been specified without knowing which switches take arguments,
  21964. and it must know which input files to compile in order to tell which
  21965. compilers to run).
  21966. GCC also knows implicitly that arguments starting in '-l' are to be
  21967. treated as compiler output files, and passed to the linker in their
  21968. proper position among the other output files.
  21969. 
  21970. File: gcc.info, Node: Environment Variables, Next: Precompiled Headers, Prev: Spec Files, Up: Invoking GCC
  21971. 3.20 Environment Variables Affecting GCC
  21972. ========================================
  21973. This section describes several environment variables that affect how GCC
  21974. operates. Some of them work by specifying directories or prefixes to
  21975. use when searching for various kinds of files. Some are used to specify
  21976. other aspects of the compilation environment.
  21977. Note that you can also specify places to search using options such as
  21978. '-B', '-I' and '-L' (*note Directory Options::). These take precedence
  21979. over places specified using environment variables, which in turn take
  21980. precedence over those specified by the configuration of GCC. *Note
  21981. Controlling the Compilation Driver 'gcc': (gccint)Driver.
  21982. 'LANG'
  21983. 'LC_CTYPE'
  21984. 'LC_MESSAGES'
  21985. 'LC_ALL'
  21986. These environment variables control the way that GCC uses
  21987. localization information which allows GCC to work with different
  21988. national conventions. GCC inspects the locale categories
  21989. 'LC_CTYPE' and 'LC_MESSAGES' if it has been configured to do so.
  21990. These locale categories can be set to any value supported by your
  21991. installation. A typical value is 'en_GB.UTF-8' for English in the
  21992. United Kingdom encoded in UTF-8.
  21993. The 'LC_CTYPE' environment variable specifies character
  21994. classification. GCC uses it to determine the character boundaries
  21995. in a string; this is needed for some multibyte encodings that
  21996. contain quote and escape characters that are otherwise interpreted
  21997. as a string end or escape.
  21998. The 'LC_MESSAGES' environment variable specifies the language to
  21999. use in diagnostic messages.
  22000. If the 'LC_ALL' environment variable is set, it overrides the value
  22001. of 'LC_CTYPE' and 'LC_MESSAGES'; otherwise, 'LC_CTYPE' and
  22002. 'LC_MESSAGES' default to the value of the 'LANG' environment
  22003. variable. If none of these variables are set, GCC defaults to
  22004. traditional C English behavior.
  22005. 'TMPDIR'
  22006. If 'TMPDIR' is set, it specifies the directory to use for temporary
  22007. files. GCC uses temporary files to hold the output of one stage of
  22008. compilation which is to be used as input to the next stage: for
  22009. example, the output of the preprocessor, which is the input to the
  22010. compiler proper.
  22011. 'GCC_COMPARE_DEBUG'
  22012. Setting 'GCC_COMPARE_DEBUG' is nearly equivalent to passing
  22013. '-fcompare-debug' to the compiler driver. See the documentation of
  22014. this option for more details.
  22015. 'GCC_EXEC_PREFIX'
  22016. If 'GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  22017. names of the subprograms executed by the compiler. No slash is
  22018. added when this prefix is combined with the name of a subprogram,
  22019. but you can specify a prefix that ends with a slash if you wish.
  22020. If 'GCC_EXEC_PREFIX' is not set, GCC attempts to figure out an
  22021. appropriate prefix to use based on the pathname it is invoked with.
  22022. If GCC cannot find the subprogram using the specified prefix, it
  22023. tries looking in the usual places for the subprogram.
  22024. The default value of 'GCC_EXEC_PREFIX' is 'PREFIX/lib/gcc/' where
  22025. PREFIX is the prefix to the installed compiler. In many cases
  22026. PREFIX is the value of 'prefix' when you ran the 'configure'
  22027. script.
  22028. Other prefixes specified with '-B' take precedence over this
  22029. prefix.
  22030. This prefix is also used for finding files such as 'crt0.o' that
  22031. are used for linking.
  22032. In addition, the prefix is used in an unusual way in finding the
  22033. directories to search for header files. For each of the standard
  22034. directories whose name normally begins with '/usr/local/lib/gcc'
  22035. (more precisely, with the value of 'GCC_INCLUDE_DIR'), GCC tries
  22036. replacing that beginning with the specified prefix to produce an
  22037. alternate directory name. Thus, with '-Bfoo/', GCC searches
  22038. 'foo/bar' just before it searches the standard directory
  22039. '/usr/local/lib/bar'. If a standard directory begins with the
  22040. configured PREFIX then the value of PREFIX is replaced by
  22041. 'GCC_EXEC_PREFIX' when looking for header files.
  22042. 'COMPILER_PATH'
  22043. The value of 'COMPILER_PATH' is a colon-separated list of
  22044. directories, much like 'PATH'. GCC tries the directories thus
  22045. specified when searching for subprograms, if it cannot find the
  22046. subprograms using 'GCC_EXEC_PREFIX'.
  22047. 'LIBRARY_PATH'
  22048. The value of 'LIBRARY_PATH' is a colon-separated list of
  22049. directories, much like 'PATH'. When configured as a native
  22050. compiler, GCC tries the directories thus specified when searching
  22051. for special linker files, if it cannot find them using
  22052. 'GCC_EXEC_PREFIX'. Linking using GCC also uses these directories
  22053. when searching for ordinary libraries for the '-l' option (but
  22054. directories specified with '-L' come first).
  22055. 'LANG'
  22056. This variable is used to pass locale information to the compiler.
  22057. One way in which this information is used is to determine the
  22058. character set to be used when character literals, string literals
  22059. and comments are parsed in C and C++. When the compiler is
  22060. configured to allow multibyte characters, the following values for
  22061. 'LANG' are recognized:
  22062. 'C-JIS'
  22063. Recognize JIS characters.
  22064. 'C-SJIS'
  22065. Recognize SJIS characters.
  22066. 'C-EUCJP'
  22067. Recognize EUCJP characters.
  22068. If 'LANG' is not defined, or if it has some other value, then the
  22069. compiler uses 'mblen' and 'mbtowc' as defined by the default locale
  22070. to recognize and translate multibyte characters.
  22071. Some additional environment variables affect the behavior of the
  22072. preprocessor.
  22073. 'CPATH'
  22074. 'C_INCLUDE_PATH'
  22075. 'CPLUS_INCLUDE_PATH'
  22076. 'OBJC_INCLUDE_PATH'
  22077. Each variable's value is a list of directories separated by a
  22078. special character, much like 'PATH', in which to look for header
  22079. files. The special character, 'PATH_SEPARATOR', is
  22080. target-dependent and determined at GCC build time. For Microsoft
  22081. Windows-based targets it is a semicolon, and for almost all other
  22082. targets it is a colon.
  22083. 'CPATH' specifies a list of directories to be searched as if
  22084. specified with '-I', but after any paths given with '-I' options on
  22085. the command line. This environment variable is used regardless of
  22086. which language is being preprocessed.
  22087. The remaining environment variables apply only when preprocessing
  22088. the particular language indicated. Each specifies a list of
  22089. directories to be searched as if specified with '-isystem', but
  22090. after any paths given with '-isystem' options on the command line.
  22091. In all these variables, an empty element instructs the compiler to
  22092. search its current working directory. Empty elements can appear at
  22093. the beginning or end of a path. For instance, if the value of
  22094. 'CPATH' is ':/special/include', that has the same effect as
  22095. '-I. -I/special/include'.
  22096. 'DEPENDENCIES_OUTPUT'
  22097. If this variable is set, its value specifies how to output
  22098. dependencies for Make based on the non-system header files
  22099. processed by the compiler. System header files are ignored in the
  22100. dependency output.
  22101. The value of 'DEPENDENCIES_OUTPUT' can be just a file name, in
  22102. which case the Make rules are written to that file, guessing the
  22103. target name from the source file name. Or the value can have the
  22104. form 'FILE TARGET', in which case the rules are written to file
  22105. FILE using TARGET as the target name.
  22106. In other words, this environment variable is equivalent to
  22107. combining the options '-MM' and '-MF' (*note Preprocessor
  22108. Options::), with an optional '-MT' switch too.
  22109. 'SUNPRO_DEPENDENCIES'
  22110. This variable is the same as 'DEPENDENCIES_OUTPUT' (see above),
  22111. except that system header files are not ignored, so it implies '-M'
  22112. rather than '-MM'. However, the dependence on the main input file
  22113. is omitted. *Note Preprocessor Options::.
  22114. 'SOURCE_DATE_EPOCH'
  22115. If this variable is set, its value specifies a UNIX timestamp to be
  22116. used in replacement of the current date and time in the '__DATE__'
  22117. and '__TIME__' macros, so that the embedded timestamps become
  22118. reproducible.
  22119. The value of 'SOURCE_DATE_EPOCH' must be a UNIX timestamp, defined
  22120. as the number of seconds (excluding leap seconds) since 01 Jan 1970
  22121. 00:00:00 represented in ASCII; identical to the output of ''date
  22122. +%s'' on GNU/Linux and other systems that support the '%s'
  22123. extension in the 'date' command.
  22124. The value should be a known timestamp such as the last modification
  22125. time of the source or package and it should be set by the build
  22126. process.
  22127. 
  22128. File: gcc.info, Node: Precompiled Headers, Prev: Environment Variables, Up: Invoking GCC
  22129. 3.21 Using Precompiled Headers
  22130. ==============================
  22131. Often large projects have many header files that are included in every
  22132. source file. The time the compiler takes to process these header files
  22133. over and over again can account for nearly all of the time required to
  22134. build the project. To make builds faster, GCC allows you to
  22135. "precompile" a header file.
  22136. To create a precompiled header file, simply compile it as you would any
  22137. other file, if necessary using the '-x' option to make the driver treat
  22138. it as a C or C++ header file. You may want to use a tool like 'make' to
  22139. keep the precompiled header up-to-date when the headers it contains
  22140. change.
  22141. A precompiled header file is searched for when '#include' is seen in
  22142. the compilation. As it searches for the included file (*note Search
  22143. Path: (cpp)Search Path.) the compiler looks for a precompiled header in
  22144. each directory just before it looks for the include file in that
  22145. directory. The name searched for is the name specified in the
  22146. '#include' with '.gch' appended. If the precompiled header file cannot
  22147. be used, it is ignored.
  22148. For instance, if you have '#include "all.h"', and you have 'all.h.gch'
  22149. in the same directory as 'all.h', then the precompiled header file is
  22150. used if possible, and the original header is used otherwise.
  22151. Alternatively, you might decide to put the precompiled header file in a
  22152. directory and use '-I' to ensure that directory is searched before (or
  22153. instead of) the directory containing the original header. Then, if you
  22154. want to check that the precompiled header file is always used, you can
  22155. put a file of the same name as the original header in this directory
  22156. containing an '#error' command.
  22157. This also works with '-include'. So yet another way to use precompiled
  22158. headers, good for projects not designed with precompiled header files in
  22159. mind, is to simply take most of the header files used by a project,
  22160. include them from another header file, precompile that header file, and
  22161. '-include' the precompiled header. If the header files have guards
  22162. against multiple inclusion, they are skipped because they've already
  22163. been included (in the precompiled header).
  22164. If you need to precompile the same header file for different languages,
  22165. targets, or compiler options, you can instead make a _directory_ named
  22166. like 'all.h.gch', and put each precompiled header in the directory,
  22167. perhaps using '-o'. It doesn't matter what you call the files in the
  22168. directory; every precompiled header in the directory is considered. The
  22169. first precompiled header encountered in the directory that is valid for
  22170. this compilation is used; they're searched in no particular order.
  22171. There are many other possibilities, limited only by your imagination,
  22172. good sense, and the constraints of your build system.
  22173. A precompiled header file can be used only when these conditions apply:
  22174. * Only one precompiled header can be used in a particular
  22175. compilation.
  22176. * A precompiled header cannot be used once the first C token is seen.
  22177. You can have preprocessor directives before a precompiled header;
  22178. you cannot include a precompiled header from inside another header.
  22179. * The precompiled header file must be produced for the same language
  22180. as the current compilation. You cannot use a C precompiled header
  22181. for a C++ compilation.
  22182. * The precompiled header file must have been produced by the same
  22183. compiler binary as the current compilation is using.
  22184. * Any macros defined before the precompiled header is included must
  22185. either be defined in the same way as when the precompiled header
  22186. was generated, or must not affect the precompiled header, which
  22187. usually means that they don't appear in the precompiled header at
  22188. all.
  22189. The '-D' option is one way to define a macro before a precompiled
  22190. header is included; using a '#define' can also do it. There are
  22191. also some options that define macros implicitly, like '-O' and
  22192. '-Wdeprecated'; the same rule applies to macros defined this way.
  22193. * If debugging information is output when using the precompiled
  22194. header, using '-g' or similar, the same kind of debugging
  22195. information must have been output when building the precompiled
  22196. header. However, a precompiled header built using '-g' can be used
  22197. in a compilation when no debugging information is being output.
  22198. * The same '-m' options must generally be used when building and
  22199. using the precompiled header. *Note Submodel Options::, for any
  22200. cases where this rule is relaxed.
  22201. * Each of the following options must be the same when building and
  22202. using the precompiled header:
  22203. -fexceptions
  22204. * Some other command-line options starting with '-f', '-p', or '-O'
  22205. must be defined in the same way as when the precompiled header was
  22206. generated. At present, it's not clear which options are safe to
  22207. change and which are not; the safest choice is to use exactly the
  22208. same options when generating and using the precompiled header. The
  22209. following are known to be safe:
  22210. -fmessage-length= -fpreprocessed -fsched-interblock
  22211. -fsched-spec -fsched-spec-load -fsched-spec-load-dangerous
  22212. -fsched-verbose=NUMBER -fschedule-insns -fvisibility=
  22213. -pedantic-errors
  22214. For all of these except the last, the compiler automatically ignores
  22215. the precompiled header if the conditions aren't met. If you find an
  22216. option combination that doesn't work and doesn't cause the precompiled
  22217. header to be ignored, please consider filing a bug report, see *note
  22218. Bugs::.
  22219. If you do use differing options when generating and using the
  22220. precompiled header, the actual behavior is a mixture of the behavior for
  22221. the options. For instance, if you use '-g' to generate the precompiled
  22222. header but not when using it, you may or may not get debugging
  22223. information for routines in the precompiled header.
  22224. 
  22225. File: gcc.info, Node: C Implementation, Next: C++ Implementation, Prev: Invoking GCC, Up: Top
  22226. 4 C Implementation-Defined Behavior
  22227. ***********************************
  22228. A conforming implementation of ISO C is required to document its choice
  22229. of behavior in each of the areas that are designated "implementation
  22230. defined". The following lists all such areas, along with the section
  22231. numbers from the ISO/IEC 9899:1990, ISO/IEC 9899:1999 and ISO/IEC
  22232. 9899:2011 standards. Some areas are only implementation-defined in one
  22233. version of the standard.
  22234. Some choices depend on the externally determined ABI for the platform
  22235. (including standard character encodings) which GCC follows; these are
  22236. listed as "determined by ABI" below. *Note Binary Compatibility:
  22237. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  22238. documented in the preprocessor manual. *Note Implementation-defined
  22239. behavior: (cpp)Implementation-defined behavior. Some choices are made
  22240. by the library and operating system (or other environment when compiling
  22241. for a freestanding environment); refer to their documentation for
  22242. details.
  22243. * Menu:
  22244. * Translation implementation::
  22245. * Environment implementation::
  22246. * Identifiers implementation::
  22247. * Characters implementation::
  22248. * Integers implementation::
  22249. * Floating point implementation::
  22250. * Arrays and pointers implementation::
  22251. * Hints implementation::
  22252. * Structures unions enumerations and bit-fields implementation::
  22253. * Qualifiers implementation::
  22254. * Declarators implementation::
  22255. * Statements implementation::
  22256. * Preprocessing directives implementation::
  22257. * Library functions implementation::
  22258. * Architecture implementation::
  22259. * Locale-specific behavior implementation::
  22260. 
  22261. File: gcc.info, Node: Translation implementation, Next: Environment implementation, Up: C Implementation
  22262. 4.1 Translation
  22263. ===============
  22264. * 'How a diagnostic is identified (C90 3.7, C99 and C11 3.10, C90,
  22265. C99 and C11 5.1.1.3).'
  22266. Diagnostics consist of all the output sent to stderr by GCC.
  22267. * 'Whether each nonempty sequence of white-space characters other
  22268. than new-line is retained or replaced by one space character in
  22269. translation phase 3 (C90, C99 and C11 5.1.1.2).'
  22270. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22271. behavior.
  22272. 
  22273. File: gcc.info, Node: Environment implementation, Next: Identifiers implementation, Prev: Translation implementation, Up: C Implementation
  22274. 4.2 Environment
  22275. ===============
  22276. The behavior of most of these points are dependent on the implementation
  22277. of the C library, and are not defined by GCC itself.
  22278. * 'The mapping between physical source file multibyte characters and
  22279. the source character set in translation phase 1 (C90, C99 and C11
  22280. 5.1.1.2).'
  22281. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22282. behavior.
  22283. 
  22284. File: gcc.info, Node: Identifiers implementation, Next: Characters implementation, Prev: Environment implementation, Up: C Implementation
  22285. 4.3 Identifiers
  22286. ===============
  22287. * 'Which additional multibyte characters may appear in identifiers
  22288. and their correspondence to universal character names (C99 and C11
  22289. 6.4.2).'
  22290. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22291. behavior.
  22292. * 'The number of significant initial characters in an identifier (C90
  22293. 6.1.2, C90, C99 and C11 5.2.4.1, C99 and C11 6.4.2).'
  22294. For internal names, all characters are significant. For external
  22295. names, the number of significant characters are defined by the
  22296. linker; for almost all targets, all characters are significant.
  22297. * 'Whether case distinctions are significant in an identifier with
  22298. external linkage (C90 6.1.2).'
  22299. This is a property of the linker. C99 and C11 require that case
  22300. distinctions are always significant in identifiers with external
  22301. linkage and systems without this property are not supported by GCC.
  22302. 
  22303. File: gcc.info, Node: Characters implementation, Next: Integers implementation, Prev: Identifiers implementation, Up: C Implementation
  22304. 4.4 Characters
  22305. ==============
  22306. * 'The number of bits in a byte (C90 3.4, C99 and C11 3.6).'
  22307. Determined by ABI.
  22308. * 'The values of the members of the execution character set (C90, C99
  22309. and C11 5.2.1).'
  22310. Determined by ABI.
  22311. * 'The unique value of the member of the execution character set
  22312. produced for each of the standard alphabetic escape sequences (C90,
  22313. C99 and C11 5.2.2).'
  22314. Determined by ABI.
  22315. * 'The value of a 'char' object into which has been stored any
  22316. character other than a member of the basic execution character set
  22317. (C90 6.1.2.5, C99 and C11 6.2.5).'
  22318. Determined by ABI.
  22319. * 'Which of 'signed char' or 'unsigned char' has the same range,
  22320. representation, and behavior as "plain" 'char' (C90 6.1.2.5, C90
  22321. 6.2.1.1, C99 and C11 6.2.5, C99 and C11 6.3.1.1).'
  22322. Determined by ABI. The options '-funsigned-char' and
  22323. '-fsigned-char' change the default. *Note Options Controlling C
  22324. Dialect: C Dialect Options.
  22325. * 'The mapping of members of the source character set (in character
  22326. constants and string literals) to members of the execution
  22327. character set (C90 6.1.3.4, C99 and C11 6.4.4.4, C90, C99 and C11
  22328. 5.1.1.2).'
  22329. Determined by ABI.
  22330. * 'The value of an integer character constant containing more than
  22331. one character or containing a character or escape sequence that
  22332. does not map to a single-byte execution character (C90 6.1.3.4, C99
  22333. and C11 6.4.4.4).'
  22334. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22335. behavior.
  22336. * 'The value of a wide character constant containing more than one
  22337. multibyte character or a single multibyte character that maps to
  22338. multiple members of the extended execution character set, or
  22339. containing a multibyte character or escape sequence not represented
  22340. in the extended execution character set (C90 6.1.3.4, C99 and C11
  22341. 6.4.4.4).'
  22342. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22343. behavior.
  22344. * 'The current locale used to convert a wide character constant
  22345. consisting of a single multibyte character that maps to a member of
  22346. the extended execution character set into a corresponding wide
  22347. character code (C90 6.1.3.4, C99 and C11 6.4.4.4).'
  22348. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22349. behavior.
  22350. * 'Whether differently-prefixed wide string literal tokens can be
  22351. concatenated and, if so, the treatment of the resulting multibyte
  22352. character sequence (C11 6.4.5).'
  22353. Such tokens may not be concatenated.
  22354. * 'The current locale used to convert a wide string literal into
  22355. corresponding wide character codes (C90 6.1.4, C99 and C11 6.4.5).'
  22356. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22357. behavior.
  22358. * 'The value of a string literal containing a multibyte character or
  22359. escape sequence not represented in the execution character set (C90
  22360. 6.1.4, C99 and C11 6.4.5).'
  22361. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22362. behavior.
  22363. * 'The encoding of any of 'wchar_t', 'char16_t', and 'char32_t' where
  22364. the corresponding standard encoding macro ('__STDC_ISO_10646__',
  22365. '__STDC_UTF_16__', or '__STDC_UTF_32__') is not defined (C11
  22366. 6.10.8.2).'
  22367. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22368. behavior. 'char16_t' and 'char32_t' literals are always encoded in
  22369. UTF-16 and UTF-32 respectively.
  22370. 
  22371. File: gcc.info, Node: Integers implementation, Next: Floating point implementation, Prev: Characters implementation, Up: C Implementation
  22372. 4.5 Integers
  22373. ============
  22374. * 'Any extended integer types that exist in the implementation (C99
  22375. and C11 6.2.5).'
  22376. GCC does not support any extended integer types.
  22377. * 'Whether signed integer types are represented using sign and
  22378. magnitude, two's complement, or one's complement, and whether the
  22379. extraordinary value is a trap representation or an ordinary value
  22380. (C99 and C11 6.2.6.2).'
  22381. GCC supports only two's complement integer types, and all bit
  22382. patterns are ordinary values.
  22383. * 'The rank of any extended integer type relative to another extended
  22384. integer type with the same precision (C99 and C11 6.3.1.1).'
  22385. GCC does not support any extended integer types.
  22386. * 'The result of, or the signal raised by, converting an integer to a
  22387. signed integer type when the value cannot be represented in an
  22388. object of that type (C90 6.2.1.2, C99 and C11 6.3.1.3).'
  22389. For conversion to a type of width N, the value is reduced modulo
  22390. 2^N to be within range of the type; no signal is raised.
  22391. * 'The results of some bitwise operations on signed integers (C90
  22392. 6.3, C99 and C11 6.5).'
  22393. Bitwise operators act on the representation of the value including
  22394. both the sign and value bits, where the sign bit is considered
  22395. immediately above the highest-value value bit. Signed '>>' acts on
  22396. negative numbers by sign extension.
  22397. As an extension to the C language, GCC does not use the latitude
  22398. given in C99 and C11 only to treat certain aspects of signed '<<'
  22399. as undefined. However, '-fsanitize=shift' (and
  22400. '-fsanitize=undefined') will diagnose such cases. They are also
  22401. diagnosed where constant expressions are required.
  22402. * 'The sign of the remainder on integer division (C90 6.3.5).'
  22403. GCC always follows the C99 and C11 requirement that the result of
  22404. division is truncated towards zero.
  22405. 
  22406. File: gcc.info, Node: Floating point implementation, Next: Arrays and pointers implementation, Prev: Integers implementation, Up: C Implementation
  22407. 4.6 Floating Point
  22408. ==================
  22409. * 'The accuracy of the floating-point operations and of the library
  22410. functions in '<math.h>' and '<complex.h>' that return
  22411. floating-point results (C90, C99 and C11 5.2.4.2.2).'
  22412. The accuracy is unknown.
  22413. * 'The rounding behaviors characterized by non-standard values of
  22414. 'FLT_ROUNDS' (C90, C99 and C11 5.2.4.2.2).'
  22415. GCC does not use such values.
  22416. * 'The evaluation methods characterized by non-standard negative
  22417. values of 'FLT_EVAL_METHOD' (C99 and C11 5.2.4.2.2).'
  22418. GCC does not use such values.
  22419. * 'The direction of rounding when an integer is converted to a
  22420. floating-point number that cannot exactly represent the original
  22421. value (C90 6.2.1.3, C99 and C11 6.3.1.4).'
  22422. C99 Annex F is followed.
  22423. * 'The direction of rounding when a floating-point number is
  22424. converted to a narrower floating-point number (C90 6.2.1.4, C99 and
  22425. C11 6.3.1.5).'
  22426. C99 Annex F is followed.
  22427. * 'How the nearest representable value or the larger or smaller
  22428. representable value immediately adjacent to the nearest
  22429. representable value is chosen for certain floating constants (C90
  22430. 6.1.3.1, C99 and C11 6.4.4.2).'
  22431. C99 Annex F is followed.
  22432. * 'Whether and how floating expressions are contracted when not
  22433. disallowed by the 'FP_CONTRACT' pragma (C99 and C11 6.5).'
  22434. Expressions are currently only contracted if '-ffp-contract=fast',
  22435. '-funsafe-math-optimizations' or '-ffast-math' are used. This is
  22436. subject to change.
  22437. * 'The default state for the 'FENV_ACCESS' pragma (C99 and C11
  22438. 7.6.1).'
  22439. This pragma is not implemented, but the default is to "off" unless
  22440. '-frounding-math' is used in which case it is "on".
  22441. * 'Additional floating-point exceptions, rounding modes,
  22442. environments, and classifications, and their macro names (C99 and
  22443. C11 7.6, C99 and C11 7.12).'
  22444. This is dependent on the implementation of the C library, and is
  22445. not defined by GCC itself.
  22446. * 'The default state for the 'FP_CONTRACT' pragma (C99 and C11
  22447. 7.12.2).'
  22448. This pragma is not implemented. Expressions are currently only
  22449. contracted if '-ffp-contract=fast', '-funsafe-math-optimizations'
  22450. or '-ffast-math' are used. This is subject to change.
  22451. * 'Whether the "inexact" floating-point exception can be raised when
  22452. the rounded result actually does equal the mathematical result in
  22453. an IEC 60559 conformant implementation (C99 F.9).'
  22454. This is dependent on the implementation of the C library, and is
  22455. not defined by GCC itself.
  22456. * 'Whether the "underflow" (and "inexact") floating-point exception
  22457. can be raised when a result is tiny but not inexact in an IEC 60559
  22458. conformant implementation (C99 F.9).'
  22459. This is dependent on the implementation of the C library, and is
  22460. not defined by GCC itself.
  22461. 
  22462. File: gcc.info, Node: Arrays and pointers implementation, Next: Hints implementation, Prev: Floating point implementation, Up: C Implementation
  22463. 4.7 Arrays and Pointers
  22464. =======================
  22465. * 'The result of converting a pointer to an integer or vice versa
  22466. (C90 6.3.4, C99 and C11 6.3.2.3).'
  22467. A cast from pointer to integer discards most-significant bits if
  22468. the pointer representation is larger than the integer type,
  22469. sign-extends(1) if the pointer representation is smaller than the
  22470. integer type, otherwise the bits are unchanged.
  22471. A cast from integer to pointer discards most-significant bits if
  22472. the pointer representation is smaller than the integer type,
  22473. extends according to the signedness of the integer type if the
  22474. pointer representation is larger than the integer type, otherwise
  22475. the bits are unchanged.
  22476. When casting from pointer to integer and back again, the resulting
  22477. pointer must reference the same object as the original pointer,
  22478. otherwise the behavior is undefined. That is, one may not use
  22479. integer arithmetic to avoid the undefined behavior of pointer
  22480. arithmetic as proscribed in C99 and C11 6.5.6/8.
  22481. * 'The size of the result of subtracting two pointers to elements of
  22482. the same array (C90 6.3.6, C99 and C11 6.5.6).'
  22483. The value is as specified in the standard and the type is
  22484. determined by the ABI.
  22485. ---------- Footnotes ----------
  22486. (1) Future versions of GCC may zero-extend, or use a target-defined
  22487. 'ptr_extend' pattern. Do not rely on sign extension.
  22488. 
  22489. File: gcc.info, Node: Hints implementation, Next: Structures unions enumerations and bit-fields implementation, Prev: Arrays and pointers implementation, Up: C Implementation
  22490. 4.8 Hints
  22491. =========
  22492. * 'The extent to which suggestions made by using the 'register'
  22493. storage-class specifier are effective (C90 6.5.1, C99 and C11
  22494. 6.7.1).'
  22495. The 'register' specifier affects code generation only in these
  22496. ways:
  22497. * When used as part of the register variable extension, see
  22498. *note Explicit Register Variables::.
  22499. * When '-O0' is in use, the compiler allocates distinct stack
  22500. memory for all variables that do not have the 'register'
  22501. storage-class specifier; if 'register' is specified, the
  22502. variable may have a shorter lifespan than the code would
  22503. indicate and may never be placed in memory.
  22504. * On some rare x86 targets, 'setjmp' doesn't save the registers
  22505. in all circumstances. In those cases, GCC doesn't allocate
  22506. any variables in registers unless they are marked 'register'.
  22507. * 'The extent to which suggestions made by using the inline function
  22508. specifier are effective (C99 and C11 6.7.4).'
  22509. GCC will not inline any functions if the '-fno-inline' option is
  22510. used or if '-O0' is used. Otherwise, GCC may still be unable to
  22511. inline a function for many reasons; the '-Winline' option may be
  22512. used to determine if a function has not been inlined and why not.
  22513. 
  22514. File: gcc.info, Node: Structures unions enumerations and bit-fields implementation, Next: Qualifiers implementation, Prev: Hints implementation, Up: C Implementation
  22515. 4.9 Structures, Unions, Enumerations, and Bit-Fields
  22516. ====================================================
  22517. * 'A member of a union object is accessed using a member of a
  22518. different type (C90 6.3.2.3).'
  22519. The relevant bytes of the representation of the object are treated
  22520. as an object of the type used for the access. *Note
  22521. Type-punning::. This may be a trap representation.
  22522. * 'Whether a "plain" 'int' bit-field is treated as a 'signed int'
  22523. bit-field or as an 'unsigned int' bit-field (C90 6.5.2, C90
  22524. 6.5.2.1, C99 and C11 6.7.2, C99 and C11 6.7.2.1).'
  22525. By default it is treated as 'signed int' but this may be changed by
  22526. the '-funsigned-bitfields' option.
  22527. * 'Allowable bit-field types other than '_Bool', 'signed int', and
  22528. 'unsigned int' (C99 and C11 6.7.2.1).'
  22529. Other integer types, such as 'long int', and enumerated types are
  22530. permitted even in strictly conforming mode.
  22531. * 'Whether atomic types are permitted for bit-fields (C11 6.7.2.1).'
  22532. Atomic types are not permitted for bit-fields.
  22533. * 'Whether a bit-field can straddle a storage-unit boundary (C90
  22534. 6.5.2.1, C99 and C11 6.7.2.1).'
  22535. Determined by ABI.
  22536. * 'The order of allocation of bit-fields within a unit (C90 6.5.2.1,
  22537. C99 and C11 6.7.2.1).'
  22538. Determined by ABI.
  22539. * 'The alignment of non-bit-field members of structures (C90 6.5.2.1,
  22540. C99 and C11 6.7.2.1).'
  22541. Determined by ABI.
  22542. * 'The integer type compatible with each enumerated type (C90
  22543. 6.5.2.2, C99 and C11 6.7.2.2).'
  22544. Normally, the type is 'unsigned int' if there are no negative
  22545. values in the enumeration, otherwise 'int'. If '-fshort-enums' is
  22546. specified, then if there are negative values it is the first of
  22547. 'signed char', 'short' and 'int' that can represent all the values,
  22548. otherwise it is the first of 'unsigned char', 'unsigned short' and
  22549. 'unsigned int' that can represent all the values.
  22550. On some targets, '-fshort-enums' is the default; this is determined
  22551. by the ABI.
  22552. 
  22553. File: gcc.info, Node: Qualifiers implementation, Next: Declarators implementation, Prev: Structures unions enumerations and bit-fields implementation, Up: C Implementation
  22554. 4.10 Qualifiers
  22555. ===============
  22556. * 'What constitutes an access to an object that has
  22557. volatile-qualified type (C90 6.5.3, C99 and C11 6.7.3).'
  22558. Such an object is normally accessed by pointers and used for
  22559. accessing hardware. In most expressions, it is intuitively obvious
  22560. what is a read and what is a write. For example
  22561. volatile int *dst = SOMEVALUE;
  22562. volatile int *src = SOMEOTHERVALUE;
  22563. *dst = *src;
  22564. will cause a read of the volatile object pointed to by SRC and
  22565. store the value into the volatile object pointed to by DST. There
  22566. is no guarantee that these reads and writes are atomic, especially
  22567. for objects larger than 'int'.
  22568. However, if the volatile storage is not being modified, and the
  22569. value of the volatile storage is not used, then the situation is
  22570. less obvious. For example
  22571. volatile int *src = SOMEVALUE;
  22572. *src;
  22573. According to the C standard, such an expression is an rvalue whose
  22574. type is the unqualified version of its original type, i.e. 'int'.
  22575. Whether GCC interprets this as a read of the volatile object being
  22576. pointed to or only as a request to evaluate the expression for its
  22577. side effects depends on this type.
  22578. If it is a scalar type, or on most targets an aggregate type whose
  22579. only member object is of a scalar type, or a union type whose
  22580. member objects are of scalar types, the expression is interpreted
  22581. by GCC as a read of the volatile object; in the other cases, the
  22582. expression is only evaluated for its side effects.
  22583. 
  22584. File: gcc.info, Node: Declarators implementation, Next: Statements implementation, Prev: Qualifiers implementation, Up: C Implementation
  22585. 4.11 Declarators
  22586. ================
  22587. * 'The maximum number of declarators that may modify an arithmetic,
  22588. structure or union type (C90 6.5.4).'
  22589. GCC is only limited by available memory.
  22590. 
  22591. File: gcc.info, Node: Statements implementation, Next: Preprocessing directives implementation, Prev: Declarators implementation, Up: C Implementation
  22592. 4.12 Statements
  22593. ===============
  22594. * 'The maximum number of 'case' values in a 'switch' statement (C90
  22595. 6.6.4.2).'
  22596. GCC is only limited by available memory.
  22597. 
  22598. File: gcc.info, Node: Preprocessing directives implementation, Next: Library functions implementation, Prev: Statements implementation, Up: C Implementation
  22599. 4.13 Preprocessing Directives
  22600. =============================
  22601. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22602. behavior, for details of these aspects of implementation-defined
  22603. behavior.
  22604. * 'The locations within '#pragma' directives where header name
  22605. preprocessing tokens are recognized (C11 6.4, C11 6.4.7).'
  22606. * 'How sequences in both forms of header names are mapped to headers
  22607. or external source file names (C90 6.1.7, C99 and C11 6.4.7).'
  22608. * 'Whether the value of a character constant in a constant expression
  22609. that controls conditional inclusion matches the value of the same
  22610. character constant in the execution character set (C90 6.8.1, C99
  22611. and C11 6.10.1).'
  22612. * 'Whether the value of a single-character character constant in a
  22613. constant expression that controls conditional inclusion may have a
  22614. negative value (C90 6.8.1, C99 and C11 6.10.1).'
  22615. * 'The places that are searched for an included '<>' delimited
  22616. header, and how the places are specified or the header is
  22617. identified (C90 6.8.2, C99 and C11 6.10.2).'
  22618. * 'How the named source file is searched for in an included '""'
  22619. delimited header (C90 6.8.2, C99 and C11 6.10.2).'
  22620. * 'The method by which preprocessing tokens (possibly resulting from
  22621. macro expansion) in a '#include' directive are combined into a
  22622. header name (C90 6.8.2, C99 and C11 6.10.2).'
  22623. * 'The nesting limit for '#include' processing (C90 6.8.2, C99 and
  22624. C11 6.10.2).'
  22625. * 'Whether the '#' operator inserts a '\' character before the '\'
  22626. character that begins a universal character name in a character
  22627. constant or string literal (C99 and C11 6.10.3.2).'
  22628. * 'The behavior on each recognized non-'STDC #pragma' directive (C90
  22629. 6.8.6, C99 and C11 6.10.6).'
  22630. *Note Pragmas: (cpp)Pragmas, for details of pragmas accepted by GCC
  22631. on all targets. *Note Pragmas Accepted by GCC: Pragmas, for
  22632. details of target-specific pragmas.
  22633. * 'The definitions for '__DATE__' and '__TIME__' when respectively,
  22634. the date and time of translation are not available (C90 6.8.8, C99
  22635. 6.10.8, C11 6.10.8.1).'
  22636. 
  22637. File: gcc.info, Node: Library functions implementation, Next: Architecture implementation, Prev: Preprocessing directives implementation, Up: C Implementation
  22638. 4.14 Library Functions
  22639. ======================
  22640. The behavior of most of these points are dependent on the implementation
  22641. of the C library, and are not defined by GCC itself.
  22642. * 'The null pointer constant to which the macro 'NULL' expands (C90
  22643. 7.1.6, C99 7.17, C11 7.19).'
  22644. In '<stddef.h>', 'NULL' expands to '((void *)0)'. GCC does not
  22645. provide the other headers which define 'NULL' and some library
  22646. implementations may use other definitions in those headers.
  22647. 
  22648. File: gcc.info, Node: Architecture implementation, Next: Locale-specific behavior implementation, Prev: Library functions implementation, Up: C Implementation
  22649. 4.15 Architecture
  22650. =================
  22651. * 'The values or expressions assigned to the macros specified in the
  22652. headers '<float.h>', '<limits.h>', and '<stdint.h>' (C90, C99 and
  22653. C11 5.2.4.2, C99 7.18.2, C99 7.18.3, C11 7.20.2, C11 7.20.3).'
  22654. Determined by ABI.
  22655. * 'The result of attempting to indirectly access an object with
  22656. automatic or thread storage duration from a thread other than the
  22657. one with which it is associated (C11 6.2.4).'
  22658. Such accesses are supported, subject to the same requirements for
  22659. synchronization for concurrent accesses as for concurrent accesses
  22660. to any object.
  22661. * 'The number, order, and encoding of bytes in any object (when not
  22662. explicitly specified in this International Standard) (C99 and C11
  22663. 6.2.6.1).'
  22664. Determined by ABI.
  22665. * 'Whether any extended alignments are supported and the contexts in
  22666. which they are supported (C11 6.2.8).'
  22667. Extended alignments up to 2^{28} (bytes) are supported for objects
  22668. of automatic storage duration. Alignments supported for objects of
  22669. static and thread storage duration are determined by the ABI.
  22670. * 'Valid alignment values other than those returned by an _Alignof
  22671. expression for fundamental types, if any (C11 6.2.8).'
  22672. Valid alignments are powers of 2 up to and including 2^{28}.
  22673. * 'The value of the result of the 'sizeof' and '_Alignof' operators
  22674. (C90 6.3.3.4, C99 and C11 6.5.3.4).'
  22675. Determined by ABI.
  22676. 
  22677. File: gcc.info, Node: Locale-specific behavior implementation, Prev: Architecture implementation, Up: C Implementation
  22678. 4.16 Locale-Specific Behavior
  22679. =============================
  22680. The behavior of these points are dependent on the implementation of the
  22681. C library, and are not defined by GCC itself.
  22682. 
  22683. File: gcc.info, Node: C++ Implementation, Next: C Extensions, Prev: C Implementation, Up: Top
  22684. 5 C++ Implementation-Defined Behavior
  22685. *************************************
  22686. A conforming implementation of ISO C++ is required to document its
  22687. choice of behavior in each of the areas that are designated
  22688. "implementation defined". The following lists all such areas, along
  22689. with the section numbers from the ISO/IEC 14882:1998 and ISO/IEC
  22690. 14882:2003 standards. Some areas are only implementation-defined in one
  22691. version of the standard.
  22692. Some choices depend on the externally determined ABI for the platform
  22693. (including standard character encodings) which GCC follows; these are
  22694. listed as "determined by ABI" below. *Note Binary Compatibility:
  22695. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  22696. documented in the preprocessor manual. *Note Implementation-defined
  22697. behavior: (cpp)Implementation-defined behavior. Some choices are
  22698. documented in the corresponding document for the C language. *Note C
  22699. Implementation::. Some choices are made by the library and operating
  22700. system (or other environment when compiling for a freestanding
  22701. environment); refer to their documentation for details.
  22702. * Menu:
  22703. * Conditionally-supported behavior::
  22704. * Exception handling::
  22705. 
  22706. File: gcc.info, Node: Conditionally-supported behavior, Next: Exception handling, Up: C++ Implementation
  22707. 5.1 Conditionally-Supported Behavior
  22708. ====================================
  22709. 'Each implementation shall include documentation that identifies all
  22710. conditionally-supported constructs that it does not support (C++0x
  22711. 1.4).'
  22712. * 'Whether an argument of class type with a non-trivial copy
  22713. constructor or destructor can be passed to ... (C++0x 5.2.2).'
  22714. Such argument passing is supported, using the same
  22715. pass-by-invisible-reference approach used for normal function
  22716. arguments of such types.
  22717. 
  22718. File: gcc.info, Node: Exception handling, Prev: Conditionally-supported behavior, Up: C++ Implementation
  22719. 5.2 Exception Handling
  22720. ======================
  22721. * 'In the situation where no matching handler is found, it is
  22722. implementation-defined whether or not the stack is unwound before
  22723. std::terminate() is called (C++98 15.5.1).'
  22724. The stack is not unwound before std::terminate is called.
  22725. c Copyright (C) 1988-2019 Free Software Foundation, Inc.
  22726. 
  22727. File: gcc.info, Node: C Extensions, Next: C++ Extensions, Prev: C++ Implementation, Up: Top
  22728. 6 Extensions to the C Language Family
  22729. *************************************
  22730. GNU C provides several language features not found in ISO standard C.
  22731. (The '-pedantic' option directs GCC to print a warning message if any of
  22732. these features is used.) To test for the availability of these features
  22733. in conditional compilation, check for a predefined macro '__GNUC__',
  22734. which is always defined under GCC.
  22735. These extensions are available in C and Objective-C. Most of them are
  22736. also available in C++. *Note Extensions to the C++ Language: C++
  22737. Extensions, for extensions that apply _only_ to C++.
  22738. Some features that are in ISO C99 but not C90 or C++ are also, as
  22739. extensions, accepted by GCC in C90 mode and in C++.
  22740. * Menu:
  22741. * Statement Exprs:: Putting statements and declarations inside expressions.
  22742. * Local Labels:: Labels local to a block.
  22743. * Labels as Values:: Getting pointers to labels, and computed gotos.
  22744. * Nested Functions:: Nested function in GNU C.
  22745. * Nonlocal Gotos:: Nonlocal gotos.
  22746. * Constructing Calls:: Dispatching a call to another function.
  22747. * Typeof:: 'typeof': referring to the type of an expression.
  22748. * Conditionals:: Omitting the middle operand of a '?:' expression.
  22749. * __int128:: 128-bit integers--'__int128'.
  22750. * Long Long:: Double-word integers--'long long int'.
  22751. * Complex:: Data types for complex numbers.
  22752. * Floating Types:: Additional Floating Types.
  22753. * Half-Precision:: Half-Precision Floating Point.
  22754. * Decimal Float:: Decimal Floating Types.
  22755. * Hex Floats:: Hexadecimal floating-point constants.
  22756. * Fixed-Point:: Fixed-Point Types.
  22757. * Named Address Spaces::Named address spaces.
  22758. * Zero Length:: Zero-length arrays.
  22759. * Empty Structures:: Structures with no members.
  22760. * Variable Length:: Arrays whose length is computed at run time.
  22761. * Variadic Macros:: Macros with a variable number of arguments.
  22762. * Escaped Newlines:: Slightly looser rules for escaped newlines.
  22763. * Subscripting:: Any array can be subscripted, even if not an lvalue.
  22764. * Pointer Arith:: Arithmetic on 'void'-pointers and function pointers.
  22765. * Variadic Pointer Args:: Pointer arguments to variadic functions.
  22766. * Pointers to Arrays:: Pointers to arrays with qualifiers work as expected.
  22767. * Initializers:: Non-constant initializers.
  22768. * Compound Literals:: Compound literals give structures, unions
  22769. or arrays as values.
  22770. * Designated Inits:: Labeling elements of initializers.
  22771. * Case Ranges:: 'case 1 ... 9' and such.
  22772. * Cast to Union:: Casting to union type from any member of the union.
  22773. * Mixed Declarations:: Mixing declarations and code.
  22774. * Function Attributes:: Declaring that functions have no side effects,
  22775. or that they can never return.
  22776. * Variable Attributes:: Specifying attributes of variables.
  22777. * Type Attributes:: Specifying attributes of types.
  22778. * Label Attributes:: Specifying attributes on labels.
  22779. * Enumerator Attributes:: Specifying attributes on enumerators.
  22780. * Statement Attributes:: Specifying attributes on statements.
  22781. * Attribute Syntax:: Formal syntax for attributes.
  22782. * Function Prototypes:: Prototype declarations and old-style definitions.
  22783. * C++ Comments:: C++ comments are recognized.
  22784. * Dollar Signs:: Dollar sign is allowed in identifiers.
  22785. * Character Escapes:: '\e' stands for the character <ESC>.
  22786. * Alignment:: Determining the alignment of a function, type or variable.
  22787. * Inline:: Defining inline functions (as fast as macros).
  22788. * Volatiles:: What constitutes an access to a volatile object.
  22789. * Using Assembly Language with C:: Instructions and extensions for interfacing C with assembler.
  22790. * Alternate Keywords:: '__const__', '__asm__', etc., for header files.
  22791. * Incomplete Enums:: 'enum foo;', with details to follow.
  22792. * Function Names:: Printable strings which are the name of the current
  22793. function.
  22794. * Return Address:: Getting the return or frame address of a function.
  22795. * Vector Extensions:: Using vector instructions through built-in functions.
  22796. * Offsetof:: Special syntax for implementing 'offsetof'.
  22797. * __sync Builtins:: Legacy built-in functions for atomic memory access.
  22798. * __atomic Builtins:: Atomic built-in functions with memory model.
  22799. * Integer Overflow Builtins:: Built-in functions to perform arithmetics and
  22800. arithmetic overflow checking.
  22801. * x86 specific memory model extensions for transactional memory:: x86 memory models.
  22802. * Object Size Checking:: Built-in functions for limited buffer overflow
  22803. checking.
  22804. * Other Builtins:: Other built-in functions.
  22805. * Target Builtins:: Built-in functions specific to particular targets.
  22806. * Target Format Checks:: Format checks specific to particular targets.
  22807. * Pragmas:: Pragmas accepted by GCC.
  22808. * Unnamed Fields:: Unnamed struct/union fields within structs/unions.
  22809. * Thread-Local:: Per-thread variables.
  22810. * Binary constants:: Binary constants using the '0b' prefix.
  22811. 
  22812. File: gcc.info, Node: Statement Exprs, Next: Local Labels, Up: C Extensions
  22813. 6.1 Statements and Declarations in Expressions
  22814. ==============================================
  22815. A compound statement enclosed in parentheses may appear as an expression
  22816. in GNU C. This allows you to use loops, switches, and local variables
  22817. within an expression.
  22818. Recall that a compound statement is a sequence of statements surrounded
  22819. by braces; in this construct, parentheses go around the braces. For
  22820. example:
  22821. ({ int y = foo (); int z;
  22822. if (y > 0) z = y;
  22823. else z = - y;
  22824. z; })
  22825. is a valid (though slightly more complex than necessary) expression for
  22826. the absolute value of 'foo ()'.
  22827. The last thing in the compound statement should be an expression
  22828. followed by a semicolon; the value of this subexpression serves as the
  22829. value of the entire construct. (If you use some other kind of statement
  22830. last within the braces, the construct has type 'void', and thus
  22831. effectively no value.)
  22832. This feature is especially useful in making macro definitions "safe"
  22833. (so that they evaluate each operand exactly once). For example, the
  22834. "maximum" function is commonly defined as a macro in standard C as
  22835. follows:
  22836. #define max(a,b) ((a) > (b) ? (a) : (b))
  22837. But this definition computes either A or B twice, with bad results if
  22838. the operand has side effects. In GNU C, if you know the type of the
  22839. operands (here taken as 'int'), you can avoid this problem by defining
  22840. the macro as follows:
  22841. #define maxint(a,b) \
  22842. ({int _a = (a), _b = (b); _a > _b ? _a : _b; })
  22843. Note that introducing variable declarations (as we do in 'maxint') can
  22844. cause variable shadowing, so while this example using the 'max' macro
  22845. produces correct results:
  22846. int _a = 1, _b = 2, c;
  22847. c = max (_a, _b);
  22848. this example using maxint will not:
  22849. int _a = 1, _b = 2, c;
  22850. c = maxint (_a, _b);
  22851. This problem may for instance occur when we use this pattern
  22852. recursively, like so:
  22853. #define maxint3(a, b, c) \
  22854. ({int _a = (a), _b = (b), _c = (c); maxint (maxint (_a, _b), _c); })
  22855. Embedded statements are not allowed in constant expressions, such as
  22856. the value of an enumeration constant, the width of a bit-field, or the
  22857. initial value of a static variable.
  22858. If you don't know the type of the operand, you can still do this, but
  22859. you must use 'typeof' or '__auto_type' (*note Typeof::).
  22860. In G++, the result value of a statement expression undergoes array and
  22861. function pointer decay, and is returned by value to the enclosing
  22862. expression. For instance, if 'A' is a class, then
  22863. A a;
  22864. ({a;}).Foo ()
  22865. constructs a temporary 'A' object to hold the result of the statement
  22866. expression, and that is used to invoke 'Foo'. Therefore the 'this'
  22867. pointer observed by 'Foo' is not the address of 'a'.
  22868. In a statement expression, any temporaries created within a statement
  22869. are destroyed at that statement's end. This makes statement expressions
  22870. inside macros slightly different from function calls. In the latter
  22871. case temporaries introduced during argument evaluation are destroyed at
  22872. the end of the statement that includes the function call. In the
  22873. statement expression case they are destroyed during the statement
  22874. expression. For instance,
  22875. #define macro(a) ({__typeof__(a) b = (a); b + 3; })
  22876. template<typename T> T function(T a) { T b = a; return b + 3; }
  22877. void foo ()
  22878. {
  22879. macro (X ());
  22880. function (X ());
  22881. }
  22882. has different places where temporaries are destroyed. For the 'macro'
  22883. case, the temporary 'X' is destroyed just after the initialization of
  22884. 'b'. In the 'function' case that temporary is destroyed when the
  22885. function returns.
  22886. These considerations mean that it is probably a bad idea to use
  22887. statement expressions of this form in header files that are designed to
  22888. work with C++. (Note that some versions of the GNU C Library contained
  22889. header files using statement expressions that lead to precisely this
  22890. bug.)
  22891. Jumping into a statement expression with 'goto' or using a 'switch'
  22892. statement outside the statement expression with a 'case' or 'default'
  22893. label inside the statement expression is not permitted. Jumping into a
  22894. statement expression with a computed 'goto' (*note Labels as Values::)
  22895. has undefined behavior. Jumping out of a statement expression is
  22896. permitted, but if the statement expression is part of a larger
  22897. expression then it is unspecified which other subexpressions of that
  22898. expression have been evaluated except where the language definition
  22899. requires certain subexpressions to be evaluated before or after the
  22900. statement expression. A 'break' or 'continue' statement inside of a
  22901. statement expression used in 'while', 'do' or 'for' loop or 'switch'
  22902. statement condition or 'for' statement init or increment expressions
  22903. jumps to an outer loop or 'switch' statement if any (otherwise it is an
  22904. error), rather than to the loop or 'switch' statement in whose condition
  22905. or init or increment expression it appears. In any case, as with a
  22906. function call, the evaluation of a statement expression is not
  22907. interleaved with the evaluation of other parts of the containing
  22908. expression. For example,
  22909. foo (), (({ bar1 (); goto a; 0; }) + bar2 ()), baz();
  22910. calls 'foo' and 'bar1' and does not call 'baz' but may or may not call
  22911. 'bar2'. If 'bar2' is called, it is called after 'foo' and before
  22912. 'bar1'.
  22913. 
  22914. File: gcc.info, Node: Local Labels, Next: Labels as Values, Prev: Statement Exprs, Up: C Extensions
  22915. 6.2 Locally Declared Labels
  22916. ===========================
  22917. GCC allows you to declare "local labels" in any nested block scope. A
  22918. local label is just like an ordinary label, but you can only reference
  22919. it (with a 'goto' statement, or by taking its address) within the block
  22920. in which it is declared.
  22921. A local label declaration looks like this:
  22922. __label__ LABEL;
  22923. or
  22924. __label__ LABEL1, LABEL2, /* ... */;
  22925. Local label declarations must come at the beginning of the block,
  22926. before any ordinary declarations or statements.
  22927. The label declaration defines the label _name_, but does not define the
  22928. label itself. You must do this in the usual way, with 'LABEL:', within
  22929. the statements of the statement expression.
  22930. The local label feature is useful for complex macros. If a macro
  22931. contains nested loops, a 'goto' can be useful for breaking out of them.
  22932. However, an ordinary label whose scope is the whole function cannot be
  22933. used: if the macro can be expanded several times in one function, the
  22934. label is multiply defined in that function. A local label avoids this
  22935. problem. For example:
  22936. #define SEARCH(value, array, target) \
  22937. do { \
  22938. __label__ found; \
  22939. typeof (target) _SEARCH_target = (target); \
  22940. typeof (*(array)) *_SEARCH_array = (array); \
  22941. int i, j; \
  22942. int value; \
  22943. for (i = 0; i < max; i++) \
  22944. for (j = 0; j < max; j++) \
  22945. if (_SEARCH_array[i][j] == _SEARCH_target) \
  22946. { (value) = i; goto found; } \
  22947. (value) = -1; \
  22948. found:; \
  22949. } while (0)
  22950. This could also be written using a statement expression:
  22951. #define SEARCH(array, target) \
  22952. ({ \
  22953. __label__ found; \
  22954. typeof (target) _SEARCH_target = (target); \
  22955. typeof (*(array)) *_SEARCH_array = (array); \
  22956. int i, j; \
  22957. int value; \
  22958. for (i = 0; i < max; i++) \
  22959. for (j = 0; j < max; j++) \
  22960. if (_SEARCH_array[i][j] == _SEARCH_target) \
  22961. { value = i; goto found; } \
  22962. value = -1; \
  22963. found: \
  22964. value; \
  22965. })
  22966. Local label declarations also make the labels they declare visible to
  22967. nested functions, if there are any. *Note Nested Functions::, for
  22968. details.
  22969. 
  22970. File: gcc.info, Node: Labels as Values, Next: Nested Functions, Prev: Local Labels, Up: C Extensions
  22971. 6.3 Labels as Values
  22972. ====================
  22973. You can get the address of a label defined in the current function (or a
  22974. containing function) with the unary operator '&&'. The value has type
  22975. 'void *'. This value is a constant and can be used wherever a constant
  22976. of that type is valid. For example:
  22977. void *ptr;
  22978. /* ... */
  22979. ptr = &&foo;
  22980. To use these values, you need to be able to jump to one. This is done
  22981. with the computed goto statement(1), 'goto *EXP;'. For example,
  22982. goto *ptr;
  22983. Any expression of type 'void *' is allowed.
  22984. One way of using these constants is in initializing a static array that
  22985. serves as a jump table:
  22986. static void *array[] = { &&foo, &&bar, &&hack };
  22987. Then you can select a label with indexing, like this:
  22988. goto *array[i];
  22989. Note that this does not check whether the subscript is in bounds--array
  22990. indexing in C never does that.
  22991. Such an array of label values serves a purpose much like that of the
  22992. 'switch' statement. The 'switch' statement is cleaner, so use that
  22993. rather than an array unless the problem does not fit a 'switch'
  22994. statement very well.
  22995. Another use of label values is in an interpreter for threaded code.
  22996. The labels within the interpreter function can be stored in the threaded
  22997. code for super-fast dispatching.
  22998. You may not use this mechanism to jump to code in a different function.
  22999. If you do that, totally unpredictable things happen. The best way to
  23000. avoid this is to store the label address only in automatic variables and
  23001. never pass it as an argument.
  23002. An alternate way to write the above example is
  23003. static const int array[] = { &&foo - &&foo, &&bar - &&foo,
  23004. &&hack - &&foo };
  23005. goto *(&&foo + array[i]);
  23006. This is more friendly to code living in shared libraries, as it reduces
  23007. the number of dynamic relocations that are needed, and by consequence,
  23008. allows the data to be read-only. This alternative with label
  23009. differences is not supported for the AVR target, please use the first
  23010. approach for AVR programs.
  23011. The '&&foo' expressions for the same label might have different values
  23012. if the containing function is inlined or cloned. If a program relies on
  23013. them being always the same, '__attribute__((__noinline__,__noclone__))'
  23014. should be used to prevent inlining and cloning. If '&&foo' is used in a
  23015. static variable initializer, inlining and cloning is forbidden.
  23016. ---------- Footnotes ----------
  23017. (1) The analogous feature in Fortran is called an assigned goto, but
  23018. that name seems inappropriate in C, where one can do more than simply
  23019. store label addresses in label variables.
  23020. 
  23021. File: gcc.info, Node: Nested Functions, Next: Nonlocal Gotos, Prev: Labels as Values, Up: C Extensions
  23022. 6.4 Nested Functions
  23023. ====================
  23024. A "nested function" is a function defined inside another function.
  23025. Nested functions are supported as an extension in GNU C, but are not
  23026. supported by GNU C++.
  23027. The nested function's name is local to the block where it is defined.
  23028. For example, here we define a nested function named 'square', and call
  23029. it twice:
  23030. foo (double a, double b)
  23031. {
  23032. double square (double z) { return z * z; }
  23033. return square (a) + square (b);
  23034. }
  23035. The nested function can access all the variables of the containing
  23036. function that are visible at the point of its definition. This is
  23037. called "lexical scoping". For example, here we show a nested function
  23038. which uses an inherited variable named 'offset':
  23039. bar (int *array, int offset, int size)
  23040. {
  23041. int access (int *array, int index)
  23042. { return array[index + offset]; }
  23043. int i;
  23044. /* ... */
  23045. for (i = 0; i < size; i++)
  23046. /* ... */ access (array, i) /* ... */
  23047. }
  23048. Nested function definitions are permitted within functions in the
  23049. places where variable definitions are allowed; that is, in any block,
  23050. mixed with the other declarations and statements in the block.
  23051. It is possible to call the nested function from outside the scope of
  23052. its name by storing its address or passing the address to another
  23053. function:
  23054. hack (int *array, int size)
  23055. {
  23056. void store (int index, int value)
  23057. { array[index] = value; }
  23058. intermediate (store, size);
  23059. }
  23060. Here, the function 'intermediate' receives the address of 'store' as an
  23061. argument. If 'intermediate' calls 'store', the arguments given to
  23062. 'store' are used to store into 'array'. But this technique works only
  23063. so long as the containing function ('hack', in this example) does not
  23064. exit.
  23065. If you try to call the nested function through its address after the
  23066. containing function exits, all hell breaks loose. If you try to call it
  23067. after a containing scope level exits, and if it refers to some of the
  23068. variables that are no longer in scope, you may be lucky, but it's not
  23069. wise to take the risk. If, however, the nested function does not refer
  23070. to anything that has gone out of scope, you should be safe.
  23071. GCC implements taking the address of a nested function using a
  23072. technique called "trampolines". This technique was described in
  23073. 'Lexical Closures for C++' (Thomas M. Breuel, USENIX C++ Conference
  23074. Proceedings, October 17-21, 1988).
  23075. A nested function can jump to a label inherited from a containing
  23076. function, provided the label is explicitly declared in the containing
  23077. function (*note Local Labels::). Such a jump returns instantly to the
  23078. containing function, exiting the nested function that did the 'goto' and
  23079. any intermediate functions as well. Here is an example:
  23080. bar (int *array, int offset, int size)
  23081. {
  23082. __label__ failure;
  23083. int access (int *array, int index)
  23084. {
  23085. if (index > size)
  23086. goto failure;
  23087. return array[index + offset];
  23088. }
  23089. int i;
  23090. /* ... */
  23091. for (i = 0; i < size; i++)
  23092. /* ... */ access (array, i) /* ... */
  23093. /* ... */
  23094. return 0;
  23095. /* Control comes here from 'access'
  23096. if it detects an error. */
  23097. failure:
  23098. return -1;
  23099. }
  23100. A nested function always has no linkage. Declaring one with 'extern'
  23101. or 'static' is erroneous. If you need to declare the nested function
  23102. before its definition, use 'auto' (which is otherwise meaningless for
  23103. function declarations).
  23104. bar (int *array, int offset, int size)
  23105. {
  23106. __label__ failure;
  23107. auto int access (int *, int);
  23108. /* ... */
  23109. int access (int *array, int index)
  23110. {
  23111. if (index > size)
  23112. goto failure;
  23113. return array[index + offset];
  23114. }
  23115. /* ... */
  23116. }
  23117. 
  23118. File: gcc.info, Node: Nonlocal Gotos, Next: Constructing Calls, Prev: Nested Functions, Up: C Extensions
  23119. 6.5 Nonlocal Gotos
  23120. ==================
  23121. GCC provides the built-in functions '__builtin_setjmp' and
  23122. '__builtin_longjmp' which are similar to, but not interchangeable with,
  23123. the C library functions 'setjmp' and 'longjmp'. The built-in versions
  23124. are used internally by GCC's libraries to implement exception handling
  23125. on some targets. You should use the standard C library functions
  23126. declared in '<setjmp.h>' in user code instead of the builtins.
  23127. The built-in versions of these functions use GCC's normal mechanisms to
  23128. save and restore registers using the stack on function entry and exit.
  23129. The jump buffer argument BUF holds only the information needed to
  23130. restore the stack frame, rather than the entire set of saved register
  23131. values.
  23132. An important caveat is that GCC arranges to save and restore only those
  23133. registers known to the specific architecture variant being compiled for.
  23134. This can make '__builtin_setjmp' and '__builtin_longjmp' more efficient
  23135. than their library counterparts in some cases, but it can also cause
  23136. incorrect and mysterious behavior when mixing with code that uses the
  23137. full register set.
  23138. You should declare the jump buffer argument BUF to the built-in
  23139. functions as:
  23140. #include <stdint.h>
  23141. intptr_t BUF[5];
  23142. -- Built-in Function: int __builtin_setjmp (intptr_t *BUF)
  23143. This function saves the current stack context in BUF.
  23144. '__builtin_setjmp' returns 0 when returning directly, and 1 when
  23145. returning from '__builtin_longjmp' using the same BUF.
  23146. -- Built-in Function: void __builtin_longjmp (intptr_t *BUF, int VAL)
  23147. This function restores the stack context in BUF, saved by a
  23148. previous call to '__builtin_setjmp'. After '__builtin_longjmp' is
  23149. finished, the program resumes execution as if the matching
  23150. '__builtin_setjmp' returns the value VAL, which must be 1.
  23151. Because '__builtin_longjmp' depends on the function return
  23152. mechanism to restore the stack context, it cannot be called from
  23153. the same function calling '__builtin_setjmp' to initialize BUF. It
  23154. can only be called from a function called (directly or indirectly)
  23155. from the function calling '__builtin_setjmp'.
  23156. 
  23157. File: gcc.info, Node: Constructing Calls, Next: Typeof, Prev: Nonlocal Gotos, Up: C Extensions
  23158. 6.6 Constructing Function Calls
  23159. ===============================
  23160. Using the built-in functions described below, you can record the
  23161. arguments a function received, and call another function with the same
  23162. arguments, without knowing the number or types of the arguments.
  23163. You can also record the return value of that function call, and later
  23164. return that value, without knowing what data type the function tried to
  23165. return (as long as your caller expects that data type).
  23166. However, these built-in functions may interact badly with some
  23167. sophisticated features or other extensions of the language. It is,
  23168. therefore, not recommended to use them outside very simple functions
  23169. acting as mere forwarders for their arguments.
  23170. -- Built-in Function: void * __builtin_apply_args ()
  23171. This built-in function returns a pointer to data describing how to
  23172. perform a call with the same arguments as are passed to the current
  23173. function.
  23174. The function saves the arg pointer register, structure value
  23175. address, and all registers that might be used to pass arguments to
  23176. a function into a block of memory allocated on the stack. Then it
  23177. returns the address of that block.
  23178. -- Built-in Function: void * __builtin_apply (void (*FUNCTION)(), void
  23179. *ARGUMENTS, size_t SIZE)
  23180. This built-in function invokes FUNCTION with a copy of the
  23181. parameters described by ARGUMENTS and SIZE.
  23182. The value of ARGUMENTS should be the value returned by
  23183. '__builtin_apply_args'. The argument SIZE specifies the size of
  23184. the stack argument data, in bytes.
  23185. This function returns a pointer to data describing how to return
  23186. whatever value is returned by FUNCTION. The data is saved in a
  23187. block of memory allocated on the stack.
  23188. It is not always simple to compute the proper value for SIZE. The
  23189. value is used by '__builtin_apply' to compute the amount of data
  23190. that should be pushed on the stack and copied from the incoming
  23191. argument area.
  23192. -- Built-in Function: void __builtin_return (void *RESULT)
  23193. This built-in function returns the value described by RESULT from
  23194. the containing function. You should specify, for RESULT, a value
  23195. returned by '__builtin_apply'.
  23196. -- Built-in Function: __builtin_va_arg_pack ()
  23197. This built-in function represents all anonymous arguments of an
  23198. inline function. It can be used only in inline functions that are
  23199. always inlined, never compiled as a separate function, such as
  23200. those using '__attribute__ ((__always_inline__))' or '__attribute__
  23201. ((__gnu_inline__))' extern inline functions. It must be only
  23202. passed as last argument to some other function with variable
  23203. arguments. This is useful for writing small wrapper inlines for
  23204. variable argument functions, when using preprocessor macros is
  23205. undesirable. For example:
  23206. extern int myprintf (FILE *f, const char *format, ...);
  23207. extern inline __attribute__ ((__gnu_inline__)) int
  23208. myprintf (FILE *f, const char *format, ...)
  23209. {
  23210. int r = fprintf (f, "myprintf: ");
  23211. if (r < 0)
  23212. return r;
  23213. int s = fprintf (f, format, __builtin_va_arg_pack ());
  23214. if (s < 0)
  23215. return s;
  23216. return r + s;
  23217. }
  23218. -- Built-in Function: size_t __builtin_va_arg_pack_len ()
  23219. This built-in function returns the number of anonymous arguments of
  23220. an inline function. It can be used only in inline functions that
  23221. are always inlined, never compiled as a separate function, such as
  23222. those using '__attribute__ ((__always_inline__))' or '__attribute__
  23223. ((__gnu_inline__))' extern inline functions. For example following
  23224. does link- or run-time checking of open arguments for optimized
  23225. code:
  23226. #ifdef __OPTIMIZE__
  23227. extern inline __attribute__((__gnu_inline__)) int
  23228. myopen (const char *path, int oflag, ...)
  23229. {
  23230. if (__builtin_va_arg_pack_len () > 1)
  23231. warn_open_too_many_arguments ();
  23232. if (__builtin_constant_p (oflag))
  23233. {
  23234. if ((oflag & O_CREAT) != 0 && __builtin_va_arg_pack_len () < 1)
  23235. {
  23236. warn_open_missing_mode ();
  23237. return __open_2 (path, oflag);
  23238. }
  23239. return open (path, oflag, __builtin_va_arg_pack ());
  23240. }
  23241. if (__builtin_va_arg_pack_len () < 1)
  23242. return __open_2 (path, oflag);
  23243. return open (path, oflag, __builtin_va_arg_pack ());
  23244. }
  23245. #endif
  23246. 
  23247. File: gcc.info, Node: Typeof, Next: Conditionals, Prev: Constructing Calls, Up: C Extensions
  23248. 6.7 Referring to a Type with 'typeof'
  23249. =====================================
  23250. Another way to refer to the type of an expression is with 'typeof'. The
  23251. syntax of using of this keyword looks like 'sizeof', but the construct
  23252. acts semantically like a type name defined with 'typedef'.
  23253. There are two ways of writing the argument to 'typeof': with an
  23254. expression or with a type. Here is an example with an expression:
  23255. typeof (x[0](1))
  23256. This assumes that 'x' is an array of pointers to functions; the type
  23257. described is that of the values of the functions.
  23258. Here is an example with a typename as the argument:
  23259. typeof (int *)
  23260. Here the type described is that of pointers to 'int'.
  23261. If you are writing a header file that must work when included in ISO C
  23262. programs, write '__typeof__' instead of 'typeof'. *Note Alternate
  23263. Keywords::.
  23264. A 'typeof' construct can be used anywhere a typedef name can be used.
  23265. For example, you can use it in a declaration, in a cast, or inside of
  23266. 'sizeof' or 'typeof'.
  23267. The operand of 'typeof' is evaluated for its side effects if and only
  23268. if it is an expression of variably modified type or the name of such a
  23269. type.
  23270. 'typeof' is often useful in conjunction with statement expressions
  23271. (*note Statement Exprs::). Here is how the two together can be used to
  23272. define a safe "maximum" macro which operates on any arithmetic type and
  23273. evaluates each of its arguments exactly once:
  23274. #define max(a,b) \
  23275. ({ typeof (a) _a = (a); \
  23276. typeof (b) _b = (b); \
  23277. _a > _b ? _a : _b; })
  23278. The reason for using names that start with underscores for the local
  23279. variables is to avoid conflicts with variable names that occur within
  23280. the expressions that are substituted for 'a' and 'b'. Eventually we
  23281. hope to design a new form of declaration syntax that allows you to
  23282. declare variables whose scopes start only after their initializers; this
  23283. will be a more reliable way to prevent such conflicts.
  23284. Some more examples of the use of 'typeof':
  23285. * This declares 'y' with the type of what 'x' points to.
  23286. typeof (*x) y;
  23287. * This declares 'y' as an array of such values.
  23288. typeof (*x) y[4];
  23289. * This declares 'y' as an array of pointers to characters:
  23290. typeof (typeof (char *)[4]) y;
  23291. It is equivalent to the following traditional C declaration:
  23292. char *y[4];
  23293. To see the meaning of the declaration using 'typeof', and why it
  23294. might be a useful way to write, rewrite it with these macros:
  23295. #define pointer(T) typeof(T *)
  23296. #define array(T, N) typeof(T [N])
  23297. Now the declaration can be rewritten this way:
  23298. array (pointer (char), 4) y;
  23299. Thus, 'array (pointer (char), 4)' is the type of arrays of 4
  23300. pointers to 'char'.
  23301. In GNU C, but not GNU C++, you may also declare the type of a variable
  23302. as '__auto_type'. In that case, the declaration must declare only one
  23303. variable, whose declarator must just be an identifier, the declaration
  23304. must be initialized, and the type of the variable is determined by the
  23305. initializer; the name of the variable is not in scope until after the
  23306. initializer. (In C++, you should use C++11 'auto' for this purpose.)
  23307. Using '__auto_type', the "maximum" macro above could be written as:
  23308. #define max(a,b) \
  23309. ({ __auto_type _a = (a); \
  23310. __auto_type _b = (b); \
  23311. _a > _b ? _a : _b; })
  23312. Using '__auto_type' instead of 'typeof' has two advantages:
  23313. * Each argument to the macro appears only once in the expansion of
  23314. the macro. This prevents the size of the macro expansion growing
  23315. exponentially when calls to such macros are nested inside arguments
  23316. of such macros.
  23317. * If the argument to the macro has variably modified type, it is
  23318. evaluated only once when using '__auto_type', but twice if 'typeof'
  23319. is used.
  23320. 
  23321. File: gcc.info, Node: Conditionals, Next: __int128, Prev: Typeof, Up: C Extensions
  23322. 6.8 Conditionals with Omitted Operands
  23323. ======================================
  23324. The middle operand in a conditional expression may be omitted. Then if
  23325. the first operand is nonzero, its value is the value of the conditional
  23326. expression.
  23327. Therefore, the expression
  23328. x ? : y
  23329. has the value of 'x' if that is nonzero; otherwise, the value of 'y'.
  23330. This example is perfectly equivalent to
  23331. x ? x : y
  23332. In this simple case, the ability to omit the middle operand is not
  23333. especially useful. When it becomes useful is when the first operand
  23334. does, or may (if it is a macro argument), contain a side effect. Then
  23335. repeating the operand in the middle would perform the side effect twice.
  23336. Omitting the middle operand uses the value already computed without the
  23337. undesirable effects of recomputing it.
  23338. 
  23339. File: gcc.info, Node: __int128, Next: Long Long, Prev: Conditionals, Up: C Extensions
  23340. 6.9 128-bit Integers
  23341. ====================
  23342. As an extension the integer scalar type '__int128' is supported for
  23343. targets which have an integer mode wide enough to hold 128 bits. Simply
  23344. write '__int128' for a signed 128-bit integer, or 'unsigned __int128'
  23345. for an unsigned 128-bit integer. There is no support in GCC for
  23346. expressing an integer constant of type '__int128' for targets with 'long
  23347. long' integer less than 128 bits wide.
  23348. 
  23349. File: gcc.info, Node: Long Long, Next: Complex, Prev: __int128, Up: C Extensions
  23350. 6.10 Double-Word Integers
  23351. =========================
  23352. ISO C99 and ISO C++11 support data types for integers that are at least
  23353. 64 bits wide, and as an extension GCC supports them in C90 and C++98
  23354. modes. Simply write 'long long int' for a signed integer, or 'unsigned
  23355. long long int' for an unsigned integer. To make an integer constant of
  23356. type 'long long int', add the suffix 'LL' to the integer. To make an
  23357. integer constant of type 'unsigned long long int', add the suffix 'ULL'
  23358. to the integer.
  23359. You can use these types in arithmetic like any other integer types.
  23360. Addition, subtraction, and bitwise boolean operations on these types are
  23361. open-coded on all types of machines. Multiplication is open-coded if
  23362. the machine supports a fullword-to-doubleword widening multiply
  23363. instruction. Division and shifts are open-coded only on machines that
  23364. provide special support. The operations that are not open-coded use
  23365. special library routines that come with GCC.
  23366. There may be pitfalls when you use 'long long' types for function
  23367. arguments without function prototypes. If a function expects type 'int'
  23368. for its argument, and you pass a value of type 'long long int',
  23369. confusion results because the caller and the subroutine disagree about
  23370. the number of bytes for the argument. Likewise, if the function expects
  23371. 'long long int' and you pass 'int'. The best way to avoid such problems
  23372. is to use prototypes.
  23373. 
  23374. File: gcc.info, Node: Complex, Next: Floating Types, Prev: Long Long, Up: C Extensions
  23375. 6.11 Complex Numbers
  23376. ====================
  23377. ISO C99 supports complex floating data types, and as an extension GCC
  23378. supports them in C90 mode and in C++. GCC also supports complex integer
  23379. data types which are not part of ISO C99. You can declare complex types
  23380. using the keyword '_Complex'. As an extension, the older GNU keyword
  23381. '__complex__' is also supported.
  23382. For example, '_Complex double x;' declares 'x' as a variable whose real
  23383. part and imaginary part are both of type 'double'. '_Complex short int
  23384. y;' declares 'y' to have real and imaginary parts of type 'short int';
  23385. this is not likely to be useful, but it shows that the set of complex
  23386. types is complete.
  23387. To write a constant with a complex data type, use the suffix 'i' or 'j'
  23388. (either one; they are equivalent). For example, '2.5fi' has type
  23389. '_Complex float' and '3i' has type '_Complex int'. Such a constant
  23390. always has a pure imaginary value, but you can form any complex value
  23391. you like by adding one to a real constant. This is a GNU extension; if
  23392. you have an ISO C99 conforming C library (such as the GNU C Library),
  23393. and want to construct complex constants of floating type, you should
  23394. include '<complex.h>' and use the macros 'I' or '_Complex_I' instead.
  23395. The ISO C++14 library also defines the 'i' suffix, so C++14 code that
  23396. includes the '<complex>' header cannot use 'i' for the GNU extension.
  23397. The 'j' suffix still has the GNU meaning.
  23398. To extract the real part of a complex-valued expression EXP, write
  23399. '__real__ EXP'. Likewise, use '__imag__' to extract the imaginary part.
  23400. This is a GNU extension; for values of floating type, you should use the
  23401. ISO C99 functions 'crealf', 'creal', 'creall', 'cimagf', 'cimag' and
  23402. 'cimagl', declared in '<complex.h>' and also provided as built-in
  23403. functions by GCC.
  23404. The operator '~' performs complex conjugation when used on a value with
  23405. a complex type. This is a GNU extension; for values of floating type,
  23406. you should use the ISO C99 functions 'conjf', 'conj' and 'conjl',
  23407. declared in '<complex.h>' and also provided as built-in functions by
  23408. GCC.
  23409. GCC can allocate complex automatic variables in a noncontiguous
  23410. fashion; it's even possible for the real part to be in a register while
  23411. the imaginary part is on the stack (or vice versa). Only the DWARF
  23412. debug info format can represent this, so use of DWARF is recommended.
  23413. If you are using the stabs debug info format, GCC describes a
  23414. noncontiguous complex variable as if it were two separate variables of
  23415. noncomplex type. If the variable's actual name is 'foo', the two
  23416. fictitious variables are named 'foo$real' and 'foo$imag'. You can
  23417. examine and set these two fictitious variables with your debugger.
  23418. 
  23419. File: gcc.info, Node: Floating Types, Next: Half-Precision, Prev: Complex, Up: C Extensions
  23420. 6.12 Additional Floating Types
  23421. ==============================
  23422. ISO/IEC TS 18661-3:2015 defines C support for additional floating types
  23423. '_FloatN' and '_FloatNx', and GCC supports these type names; the set of
  23424. types supported depends on the target architecture. These types are not
  23425. supported when compiling C++. Constants with these types use suffixes
  23426. 'fN' or 'FN' and 'fNx' or 'FNx'. These type names can be used together
  23427. with '_Complex' to declare complex types.
  23428. As an extension, GNU C and GNU C++ support additional floating types,
  23429. which are not supported by all targets.
  23430. * '__float128' is available on i386, x86_64, IA-64, and hppa HP-UX,
  23431. as well as on PowerPC GNU/Linux targets that enable the vector
  23432. scalar (VSX) instruction set. '__float128' supports the 128-bit
  23433. floating type. On i386, x86_64, PowerPC, and IA-64 other than
  23434. HP-UX, '__float128' is an alias for '_Float128'. On hppa and IA-64
  23435. HP-UX, '__float128' is an alias for 'long double'.
  23436. * '__float80' is available on the i386, x86_64, and IA-64 targets,
  23437. and supports the 80-bit ('XFmode') floating type. It is an alias
  23438. for the type name '_Float64x' on these targets.
  23439. * '__ibm128' is available on PowerPC targets, and provides access to
  23440. the IBM extended double format which is the current format used for
  23441. 'long double'. When 'long double' transitions to '__float128' on
  23442. PowerPC in the future, '__ibm128' will remain for use in
  23443. conversions between the two types.
  23444. Support for these additional types includes the arithmetic operators:
  23445. add, subtract, multiply, divide; unary arithmetic operators; relational
  23446. operators; equality operators; and conversions to and from integer and
  23447. other floating types. Use a suffix 'w' or 'W' in a literal constant of
  23448. type '__float80' or type '__ibm128'. Use a suffix 'q' or 'Q' for
  23449. '_float128'.
  23450. In order to use '_Float128', '__float128', and '__ibm128' on PowerPC
  23451. Linux systems, you must use the '-mfloat128' option. It is expected in
  23452. future versions of GCC that '_Float128' and '__float128' will be enabled
  23453. automatically.
  23454. The '_Float128' type is supported on all systems where '__float128' is
  23455. supported or where 'long double' has the IEEE binary128 format. The
  23456. '_Float64x' type is supported on all systems where '__float128' is
  23457. supported. The '_Float32' type is supported on all systems supporting
  23458. IEEE binary32; the '_Float64' and '_Float32x' types are supported on all
  23459. systems supporting IEEE binary64. The '_Float16' type is supported on
  23460. AArch64 systems by default, and on ARM systems when the IEEE format for
  23461. 16-bit floating-point types is selected with '-mfp16-format=ieee'. GCC
  23462. does not currently support '_Float128x' on any systems.
  23463. On the i386, x86_64, IA-64, and HP-UX targets, you can declare complex
  23464. types using the corresponding internal complex type, 'XCmode' for
  23465. '__float80' type and 'TCmode' for '__float128' type:
  23466. typedef _Complex float __attribute__((mode(TC))) _Complex128;
  23467. typedef _Complex float __attribute__((mode(XC))) _Complex80;
  23468. On the PowerPC Linux VSX targets, you can declare complex types using
  23469. the corresponding internal complex type, 'KCmode' for '__float128' type
  23470. and 'ICmode' for '__ibm128' type:
  23471. typedef _Complex float __attribute__((mode(KC))) _Complex_float128;
  23472. typedef _Complex float __attribute__((mode(IC))) _Complex_ibm128;
  23473. 
  23474. File: gcc.info, Node: Half-Precision, Next: Decimal Float, Prev: Floating Types, Up: C Extensions
  23475. 6.13 Half-Precision Floating Point
  23476. ==================================
  23477. On ARM and AArch64 targets, GCC supports half-precision (16-bit)
  23478. floating point via the '__fp16' type defined in the ARM C Language
  23479. Extensions. On ARM systems, you must enable this type explicitly with
  23480. the '-mfp16-format' command-line option in order to use it.
  23481. ARM targets support two incompatible representations for half-precision
  23482. floating-point values. You must choose one of the representations and
  23483. use it consistently in your program.
  23484. Specifying '-mfp16-format=ieee' selects the IEEE 754-2008 format. This
  23485. format can represent normalized values in the range of 2^{-14} to 65504.
  23486. There are 11 bits of significand precision, approximately 3 decimal
  23487. digits.
  23488. Specifying '-mfp16-format=alternative' selects the ARM alternative
  23489. format. This representation is similar to the IEEE format, but does not
  23490. support infinities or NaNs. Instead, the range of exponents is
  23491. extended, so that this format can represent normalized values in the
  23492. range of 2^{-14} to 131008.
  23493. The GCC port for AArch64 only supports the IEEE 754-2008 format, and
  23494. does not require use of the '-mfp16-format' command-line option.
  23495. The '__fp16' type may only be used as an argument to intrinsics defined
  23496. in '<arm_fp16.h>', or as a storage format. For purposes of arithmetic
  23497. and other operations, '__fp16' values in C or C++ expressions are
  23498. automatically promoted to 'float'.
  23499. The ARM target provides hardware support for conversions between
  23500. '__fp16' and 'float' values as an extension to VFP and NEON (Advanced
  23501. SIMD), and from ARMv8-A provides hardware support for conversions
  23502. between '__fp16' and 'double' values. GCC generates code using these
  23503. hardware instructions if you compile with options to select an FPU that
  23504. provides them; for example, '-mfpu=neon-fp16 -mfloat-abi=softfp', in
  23505. addition to the '-mfp16-format' option to select a half-precision
  23506. format.
  23507. Language-level support for the '__fp16' data type is independent of
  23508. whether GCC generates code using hardware floating-point instructions.
  23509. In cases where hardware support is not specified, GCC implements
  23510. conversions between '__fp16' and other types as library calls.
  23511. It is recommended that portable code use the '_Float16' type defined by
  23512. ISO/IEC TS 18661-3:2015. *Note Floating Types::.
  23513. 
  23514. File: gcc.info, Node: Decimal Float, Next: Hex Floats, Prev: Half-Precision, Up: C Extensions
  23515. 6.14 Decimal Floating Types
  23516. ===========================
  23517. As an extension, GNU C supports decimal floating types as defined in the
  23518. N1312 draft of ISO/IEC WDTR24732. Support for decimal floating types in
  23519. GCC will evolve as the draft technical report changes. Calling
  23520. conventions for any target might also change. Not all targets support
  23521. decimal floating types.
  23522. The decimal floating types are '_Decimal32', '_Decimal64', and
  23523. '_Decimal128'. They use a radix of ten, unlike the floating types
  23524. 'float', 'double', and 'long double' whose radix is not specified by the
  23525. C standard but is usually two.
  23526. Support for decimal floating types includes the arithmetic operators
  23527. add, subtract, multiply, divide; unary arithmetic operators; relational
  23528. operators; equality operators; and conversions to and from integer and
  23529. other floating types. Use a suffix 'df' or 'DF' in a literal constant
  23530. of type '_Decimal32', 'dd' or 'DD' for '_Decimal64', and 'dl' or 'DL'
  23531. for '_Decimal128'.
  23532. GCC support of decimal float as specified by the draft technical report
  23533. is incomplete:
  23534. * When the value of a decimal floating type cannot be represented in
  23535. the integer type to which it is being converted, the result is
  23536. undefined rather than the result value specified by the draft
  23537. technical report.
  23538. * GCC does not provide the C library functionality associated with
  23539. 'math.h', 'fenv.h', 'stdio.h', 'stdlib.h', and 'wchar.h', which
  23540. must come from a separate C library implementation. Because of
  23541. this the GNU C compiler does not define macro '__STDC_DEC_FP__' to
  23542. indicate that the implementation conforms to the technical report.
  23543. Types '_Decimal32', '_Decimal64', and '_Decimal128' are supported by
  23544. the DWARF debug information format.
  23545. 
  23546. File: gcc.info, Node: Hex Floats, Next: Fixed-Point, Prev: Decimal Float, Up: C Extensions
  23547. 6.15 Hex Floats
  23548. ===============
  23549. ISO C99 and ISO C++17 support floating-point numbers written not only in
  23550. the usual decimal notation, such as '1.55e1', but also numbers such as
  23551. '0x1.fp3' written in hexadecimal format. As a GNU extension, GCC
  23552. supports this in C90 mode (except in some cases when strictly
  23553. conforming) and in C++98, C++11 and C++14 modes. In that format the
  23554. '0x' hex introducer and the 'p' or 'P' exponent field are mandatory.
  23555. The exponent is a decimal number that indicates the power of 2 by which
  23556. the significant part is multiplied. Thus '0x1.f' is 1 15/16, 'p3'
  23557. multiplies it by 8, and the value of '0x1.fp3' is the same as '1.55e1'.
  23558. Unlike for floating-point numbers in the decimal notation the exponent
  23559. is always required in the hexadecimal notation. Otherwise the compiler
  23560. would not be able to resolve the ambiguity of, e.g., '0x1.f'. This
  23561. could mean '1.0f' or '1.9375' since 'f' is also the extension for
  23562. floating-point constants of type 'float'.
  23563. 
  23564. File: gcc.info, Node: Fixed-Point, Next: Named Address Spaces, Prev: Hex Floats, Up: C Extensions
  23565. 6.16 Fixed-Point Types
  23566. ======================
  23567. As an extension, GNU C supports fixed-point types as defined in the
  23568. N1169 draft of ISO/IEC DTR 18037. Support for fixed-point types in GCC
  23569. will evolve as the draft technical report changes. Calling conventions
  23570. for any target might also change. Not all targets support fixed-point
  23571. types.
  23572. The fixed-point types are 'short _Fract', '_Fract', 'long _Fract',
  23573. 'long long _Fract', 'unsigned short _Fract', 'unsigned _Fract',
  23574. 'unsigned long _Fract', 'unsigned long long _Fract', '_Sat short
  23575. _Fract', '_Sat _Fract', '_Sat long _Fract', '_Sat long long _Fract',
  23576. '_Sat unsigned short _Fract', '_Sat unsigned _Fract', '_Sat unsigned
  23577. long _Fract', '_Sat unsigned long long _Fract', 'short _Accum',
  23578. '_Accum', 'long _Accum', 'long long _Accum', 'unsigned short _Accum',
  23579. 'unsigned _Accum', 'unsigned long _Accum', 'unsigned long long _Accum',
  23580. '_Sat short _Accum', '_Sat _Accum', '_Sat long _Accum', '_Sat long long
  23581. _Accum', '_Sat unsigned short _Accum', '_Sat unsigned _Accum', '_Sat
  23582. unsigned long _Accum', '_Sat unsigned long long _Accum'.
  23583. Fixed-point data values contain fractional and optional integral parts.
  23584. The format of fixed-point data varies and depends on the target machine.
  23585. Support for fixed-point types includes:
  23586. * prefix and postfix increment and decrement operators ('++', '--')
  23587. * unary arithmetic operators ('+', '-', '!')
  23588. * binary arithmetic operators ('+', '-', '*', '/')
  23589. * binary shift operators ('<<', '>>')
  23590. * relational operators ('<', '<=', '>=', '>')
  23591. * equality operators ('==', '!=')
  23592. * assignment operators ('+=', '-=', '*=', '/=', '<<=', '>>=')
  23593. * conversions to and from integer, floating-point, or fixed-point
  23594. types
  23595. Use a suffix in a fixed-point literal constant:
  23596. * 'hr' or 'HR' for 'short _Fract' and '_Sat short _Fract'
  23597. * 'r' or 'R' for '_Fract' and '_Sat _Fract'
  23598. * 'lr' or 'LR' for 'long _Fract' and '_Sat long _Fract'
  23599. * 'llr' or 'LLR' for 'long long _Fract' and '_Sat long long _Fract'
  23600. * 'uhr' or 'UHR' for 'unsigned short _Fract' and '_Sat unsigned short
  23601. _Fract'
  23602. * 'ur' or 'UR' for 'unsigned _Fract' and '_Sat unsigned _Fract'
  23603. * 'ulr' or 'ULR' for 'unsigned long _Fract' and '_Sat unsigned long
  23604. _Fract'
  23605. * 'ullr' or 'ULLR' for 'unsigned long long _Fract' and '_Sat unsigned
  23606. long long _Fract'
  23607. * 'hk' or 'HK' for 'short _Accum' and '_Sat short _Accum'
  23608. * 'k' or 'K' for '_Accum' and '_Sat _Accum'
  23609. * 'lk' or 'LK' for 'long _Accum' and '_Sat long _Accum'
  23610. * 'llk' or 'LLK' for 'long long _Accum' and '_Sat long long _Accum'
  23611. * 'uhk' or 'UHK' for 'unsigned short _Accum' and '_Sat unsigned short
  23612. _Accum'
  23613. * 'uk' or 'UK' for 'unsigned _Accum' and '_Sat unsigned _Accum'
  23614. * 'ulk' or 'ULK' for 'unsigned long _Accum' and '_Sat unsigned long
  23615. _Accum'
  23616. * 'ullk' or 'ULLK' for 'unsigned long long _Accum' and '_Sat unsigned
  23617. long long _Accum'
  23618. GCC support of fixed-point types as specified by the draft technical
  23619. report is incomplete:
  23620. * Pragmas to control overflow and rounding behaviors are not
  23621. implemented.
  23622. Fixed-point types are supported by the DWARF debug information format.
  23623. 
  23624. File: gcc.info, Node: Named Address Spaces, Next: Zero Length, Prev: Fixed-Point, Up: C Extensions
  23625. 6.17 Named Address Spaces
  23626. =========================
  23627. As an extension, GNU C supports named address spaces as defined in the
  23628. N1275 draft of ISO/IEC DTR 18037. Support for named address spaces in
  23629. GCC will evolve as the draft technical report changes. Calling
  23630. conventions for any target might also change. At present, only the AVR,
  23631. SPU, M32C, RL78, and x86 targets support address spaces other than the
  23632. generic address space.
  23633. Address space identifiers may be used exactly like any other C type
  23634. qualifier (e.g., 'const' or 'volatile'). See the N1275 document for
  23635. more details.
  23636. 6.17.1 AVR Named Address Spaces
  23637. -------------------------------
  23638. On the AVR target, there are several address spaces that can be used in
  23639. order to put read-only data into the flash memory and access that data
  23640. by means of the special instructions 'LPM' or 'ELPM' needed to read from
  23641. flash.
  23642. Devices belonging to 'avrtiny' and 'avrxmega3' can access flash memory
  23643. by means of 'LD*' instructions because the flash memory is mapped into
  23644. the RAM address space. There is _no need_ for language extensions like
  23645. '__flash' or attribute *note 'progmem': AVR Variable Attributes. The
  23646. default linker description files for these devices cater for that
  23647. feature and '.rodata' stays in flash: The compiler just generates 'LD*'
  23648. instructions, and the linker script adds core specific offsets to all
  23649. '.rodata' symbols: '0x4000' in the case of 'avrtiny' and '0x8000' in the
  23650. case of 'avrxmega3'. See *note AVR Options:: for a list of respective
  23651. devices.
  23652. For devices not in 'avrtiny' or 'avrxmega3', any data including
  23653. read-only data is located in RAM (the generic address space) because
  23654. flash memory is not visible in the RAM address space. In order to
  23655. locate read-only data in flash memory _and_ to generate the right
  23656. instructions to access this data without using (inline) assembler code,
  23657. special address spaces are needed.
  23658. '__flash'
  23659. The '__flash' qualifier locates data in the '.progmem.data'
  23660. section. Data is read using the 'LPM' instruction. Pointers to
  23661. this address space are 16 bits wide.
  23662. '__flash1'
  23663. '__flash2'
  23664. '__flash3'
  23665. '__flash4'
  23666. '__flash5'
  23667. These are 16-bit address spaces locating data in section
  23668. '.progmemN.data' where N refers to address space '__flashN'. The
  23669. compiler sets the 'RAMPZ' segment register appropriately before
  23670. reading data by means of the 'ELPM' instruction.
  23671. '__memx'
  23672. This is a 24-bit address space that linearizes flash and RAM: If
  23673. the high bit of the address is set, data is read from RAM using the
  23674. lower two bytes as RAM address. If the high bit of the address is
  23675. clear, data is read from flash with 'RAMPZ' set according to the
  23676. high byte of the address. *Note '__builtin_avr_flash_segment': AVR
  23677. Built-in Functions.
  23678. Objects in this address space are located in '.progmemx.data'.
  23679. Example
  23680. char my_read (const __flash char ** p)
  23681. {
  23682. /* p is a pointer to RAM that points to a pointer to flash.
  23683. The first indirection of p reads that flash pointer
  23684. from RAM and the second indirection reads a char from this
  23685. flash address. */
  23686. return **p;
  23687. }
  23688. /* Locate array[] in flash memory */
  23689. const __flash int array[] = { 3, 5, 7, 11, 13, 17, 19 };
  23690. int i = 1;
  23691. int main (void)
  23692. {
  23693. /* Return 17 by reading from flash memory */
  23694. return array[array[i]];
  23695. }
  23696. For each named address space supported by avr-gcc there is an equally
  23697. named but uppercase built-in macro defined. The purpose is to
  23698. facilitate testing if respective address space support is available or
  23699. not:
  23700. #ifdef __FLASH
  23701. const __flash int var = 1;
  23702. int read_var (void)
  23703. {
  23704. return var;
  23705. }
  23706. #else
  23707. #include <avr/pgmspace.h> /* From AVR-LibC */
  23708. const int var PROGMEM = 1;
  23709. int read_var (void)
  23710. {
  23711. return (int) pgm_read_word (&var);
  23712. }
  23713. #endif /* __FLASH */
  23714. Notice that attribute *note 'progmem': AVR Variable Attributes. locates
  23715. data in flash but accesses to these data read from generic address
  23716. space, i.e. from RAM, so that you need special accessors like
  23717. 'pgm_read_byte' from AVR-LibC (http://nongnu.org/avr-libc/user-manual/)
  23718. together with attribute 'progmem'.
  23719. Limitations and caveats
  23720. * Reading across the 64 KiB section boundary of the '__flash' or
  23721. '__flashN' address spaces shows undefined behavior. The only
  23722. address space that supports reading across the 64 KiB flash segment
  23723. boundaries is '__memx'.
  23724. * If you use one of the '__flashN' address spaces you must arrange
  23725. your linker script to locate the '.progmemN.data' sections
  23726. according to your needs.
  23727. * Any data or pointers to the non-generic address spaces must be
  23728. qualified as 'const', i.e. as read-only data. This still applies
  23729. if the data in one of these address spaces like software version
  23730. number or calibration lookup table are intended to be changed after
  23731. load time by, say, a boot loader. In this case the right
  23732. qualification is 'const' 'volatile' so that the compiler must not
  23733. optimize away known values or insert them as immediates into
  23734. operands of instructions.
  23735. * The following code initializes a variable 'pfoo' located in static
  23736. storage with a 24-bit address:
  23737. extern const __memx char foo;
  23738. const __memx void *pfoo = &foo;
  23739. * On the reduced Tiny devices like ATtiny40, no address spaces are
  23740. supported. Just use vanilla C / C++ code without overhead as
  23741. outlined above. Attribute 'progmem' is supported but works
  23742. differently, see *note AVR Variable Attributes::.
  23743. 6.17.2 M32C Named Address Spaces
  23744. --------------------------------
  23745. On the M32C target, with the R8C and M16C CPU variants, variables
  23746. qualified with '__far' are accessed using 32-bit addresses in order to
  23747. access memory beyond the first 64 Ki bytes. If '__far' is used with the
  23748. M32CM or M32C CPU variants, it has no effect.
  23749. 6.17.3 RL78 Named Address Spaces
  23750. --------------------------------
  23751. On the RL78 target, variables qualified with '__far' are accessed with
  23752. 32-bit pointers (20-bit addresses) rather than the default 16-bit
  23753. addresses. Non-far variables are assumed to appear in the topmost
  23754. 64 KiB of the address space.
  23755. 6.17.4 SPU Named Address Spaces
  23756. -------------------------------
  23757. On the SPU target variables may be declared as belonging to another
  23758. address space by qualifying the type with the '__ea' address space
  23759. identifier:
  23760. extern int __ea i;
  23761. The compiler generates special code to access the variable 'i'. It may
  23762. use runtime library support, or generate special machine instructions to
  23763. access that address space.
  23764. 6.17.5 x86 Named Address Spaces
  23765. -------------------------------
  23766. On the x86 target, variables may be declared as being relative to the
  23767. '%fs' or '%gs' segments.
  23768. '__seg_fs'
  23769. '__seg_gs'
  23770. The object is accessed with the respective segment override prefix.
  23771. The respective segment base must be set via some method specific to
  23772. the operating system. Rather than require an expensive system call
  23773. to retrieve the segment base, these address spaces are not
  23774. considered to be subspaces of the generic (flat) address space.
  23775. This means that explicit casts are required to convert pointers
  23776. between these address spaces and the generic address space. In
  23777. practice the application should cast to 'uintptr_t' and apply the
  23778. segment base offset that it installed previously.
  23779. The preprocessor symbols '__SEG_FS' and '__SEG_GS' are defined when
  23780. these address spaces are supported.
  23781. 
  23782. File: gcc.info, Node: Zero Length, Next: Empty Structures, Prev: Named Address Spaces, Up: C Extensions
  23783. 6.18 Arrays of Length Zero
  23784. ==========================
  23785. Declaring zero-length arrays is allowed in GNU C as an extension. A
  23786. zero-length array can be useful as the last element of a structure that
  23787. is really a header for a variable-length object:
  23788. struct line {
  23789. int length;
  23790. char contents[0];
  23791. };
  23792. struct line *thisline = (struct line *)
  23793. malloc (sizeof (struct line) + this_length);
  23794. thisline->length = this_length;
  23795. Although the size of a zero-length array is zero, an array member of
  23796. this kind may increase the size of the enclosing type as a result of
  23797. tail padding. The offset of a zero-length array member from the
  23798. beginning of the enclosing structure is the same as the offset of an
  23799. array with one or more elements of the same type. The alignment of a
  23800. zero-length array is the same as the alignment of its elements.
  23801. Declaring zero-length arrays in other contexts, including as interior
  23802. members of structure objects or as non-member objects, is discouraged.
  23803. Accessing elements of zero-length arrays declared in such contexts is
  23804. undefined and may be diagnosed.
  23805. In the absence of the zero-length array extension, in ISO C90 the
  23806. 'contents' array in the example above would typically be declared to
  23807. have a single element. Unlike a zero-length array which only
  23808. contributes to the size of the enclosing structure for the purposes of
  23809. alignment, a one-element array always occupies at least as much space as
  23810. a single object of the type. Although using one-element arrays this way
  23811. is discouraged, GCC handles accesses to trailing one-element array
  23812. members analogously to zero-length arrays.
  23813. The preferred mechanism to declare variable-length types like 'struct
  23814. line' above is the ISO C99 "flexible array member", with slightly
  23815. different syntax and semantics:
  23816. * Flexible array members are written as 'contents[]' without the '0'.
  23817. * Flexible array members have incomplete type, and so the 'sizeof'
  23818. operator may not be applied. As a quirk of the original
  23819. implementation of zero-length arrays, 'sizeof' evaluates to zero.
  23820. * Flexible array members may only appear as the last member of a
  23821. 'struct' that is otherwise non-empty.
  23822. * A structure containing a flexible array member, or a union
  23823. containing such a structure (possibly recursively), may not be a
  23824. member of a structure or an element of an array. (However, these
  23825. uses are permitted by GCC as extensions.)
  23826. Non-empty initialization of zero-length arrays is treated like any case
  23827. where there are more initializer elements than the array holds, in that
  23828. a suitable warning about "excess elements in array" is given, and the
  23829. excess elements (all of them, in this case) are ignored.
  23830. GCC allows static initialization of flexible array members. This is
  23831. equivalent to defining a new structure containing the original structure
  23832. followed by an array of sufficient size to contain the data. E.g. in
  23833. the following, 'f1' is constructed as if it were declared like 'f2'.
  23834. struct f1 {
  23835. int x; int y[];
  23836. } f1 = { 1, { 2, 3, 4 } };
  23837. struct f2 {
  23838. struct f1 f1; int data[3];
  23839. } f2 = { { 1 }, { 2, 3, 4 } };
  23840. The convenience of this extension is that 'f1' has the desired type,
  23841. eliminating the need to consistently refer to 'f2.f1'.
  23842. This has symmetry with normal static arrays, in that an array of
  23843. unknown size is also written with '[]'.
  23844. Of course, this extension only makes sense if the extra data comes at
  23845. the end of a top-level object, as otherwise we would be overwriting data
  23846. at subsequent offsets. To avoid undue complication and confusion with
  23847. initialization of deeply nested arrays, we simply disallow any non-empty
  23848. initialization except when the structure is the top-level object. For
  23849. example:
  23850. struct foo { int x; int y[]; };
  23851. struct bar { struct foo z; };
  23852. struct foo a = { 1, { 2, 3, 4 } }; // Valid.
  23853. struct bar b = { { 1, { 2, 3, 4 } } }; // Invalid.
  23854. struct bar c = { { 1, { } } }; // Valid.
  23855. struct foo d[1] = { { 1, { 2, 3, 4 } } }; // Invalid.
  23856. 
  23857. File: gcc.info, Node: Empty Structures, Next: Variable Length, Prev: Zero Length, Up: C Extensions
  23858. 6.19 Structures with No Members
  23859. ===============================
  23860. GCC permits a C structure to have no members:
  23861. struct empty {
  23862. };
  23863. The structure has size zero. In C++, empty structures are part of the
  23864. language. G++ treats empty structures as if they had a single member of
  23865. type 'char'.
  23866. 
  23867. File: gcc.info, Node: Variable Length, Next: Variadic Macros, Prev: Empty Structures, Up: C Extensions
  23868. 6.20 Arrays of Variable Length
  23869. ==============================
  23870. Variable-length automatic arrays are allowed in ISO C99, and as an
  23871. extension GCC accepts them in C90 mode and in C++. These arrays are
  23872. declared like any other automatic arrays, but with a length that is not
  23873. a constant expression. The storage is allocated at the point of
  23874. declaration and deallocated when the block scope containing the
  23875. declaration exits. For example:
  23876. FILE *
  23877. concat_fopen (char *s1, char *s2, char *mode)
  23878. {
  23879. char str[strlen (s1) + strlen (s2) + 1];
  23880. strcpy (str, s1);
  23881. strcat (str, s2);
  23882. return fopen (str, mode);
  23883. }
  23884. Jumping or breaking out of the scope of the array name deallocates the
  23885. storage. Jumping into the scope is not allowed; you get an error
  23886. message for it.
  23887. As an extension, GCC accepts variable-length arrays as a member of a
  23888. structure or a union. For example:
  23889. void
  23890. foo (int n)
  23891. {
  23892. struct S { int x[n]; };
  23893. }
  23894. You can use the function 'alloca' to get an effect much like
  23895. variable-length arrays. The function 'alloca' is available in many
  23896. other C implementations (but not in all). On the other hand,
  23897. variable-length arrays are more elegant.
  23898. There are other differences between these two methods. Space allocated
  23899. with 'alloca' exists until the containing _function_ returns. The space
  23900. for a variable-length array is deallocated as soon as the array name's
  23901. scope ends, unless you also use 'alloca' in this scope.
  23902. You can also use variable-length arrays as arguments to functions:
  23903. struct entry
  23904. tester (int len, char data[len][len])
  23905. {
  23906. /* ... */
  23907. }
  23908. The length of an array is computed once when the storage is allocated
  23909. and is remembered for the scope of the array in case you access it with
  23910. 'sizeof'.
  23911. If you want to pass the array first and the length afterward, you can
  23912. use a forward declaration in the parameter list--another GNU extension.
  23913. struct entry
  23914. tester (int len; char data[len][len], int len)
  23915. {
  23916. /* ... */
  23917. }
  23918. The 'int len' before the semicolon is a "parameter forward
  23919. declaration", and it serves the purpose of making the name 'len' known
  23920. when the declaration of 'data' is parsed.
  23921. You can write any number of such parameter forward declarations in the
  23922. parameter list. They can be separated by commas or semicolons, but the
  23923. last one must end with a semicolon, which is followed by the "real"
  23924. parameter declarations. Each forward declaration must match a "real"
  23925. declaration in parameter name and data type. ISO C99 does not support
  23926. parameter forward declarations.
  23927. 
  23928. File: gcc.info, Node: Variadic Macros, Next: Escaped Newlines, Prev: Variable Length, Up: C Extensions
  23929. 6.21 Macros with a Variable Number of Arguments.
  23930. ================================================
  23931. In the ISO C standard of 1999, a macro can be declared to accept a
  23932. variable number of arguments much as a function can. The syntax for
  23933. defining the macro is similar to that of a function. Here is an
  23934. example:
  23935. #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
  23936. Here '...' is a "variable argument". In the invocation of such a macro,
  23937. it represents the zero or more tokens until the closing parenthesis that
  23938. ends the invocation, including any commas. This set of tokens replaces
  23939. the identifier '__VA_ARGS__' in the macro body wherever it appears. See
  23940. the CPP manual for more information.
  23941. GCC has long supported variadic macros, and used a different syntax
  23942. that allowed you to give a name to the variable arguments just like any
  23943. other argument. Here is an example:
  23944. #define debug(format, args...) fprintf (stderr, format, args)
  23945. This is in all ways equivalent to the ISO C example above, but arguably
  23946. more readable and descriptive.
  23947. GNU CPP has two further variadic macro extensions, and permits them to
  23948. be used with either of the above forms of macro definition.
  23949. In standard C, you are not allowed to leave the variable argument out
  23950. entirely; but you are allowed to pass an empty argument. For example,
  23951. this invocation is invalid in ISO C, because there is no comma after the
  23952. string:
  23953. debug ("A message")
  23954. GNU CPP permits you to completely omit the variable arguments in this
  23955. way. In the above examples, the compiler would complain, though since
  23956. the expansion of the macro still has the extra comma after the format
  23957. string.
  23958. To help solve this problem, CPP behaves specially for variable
  23959. arguments used with the token paste operator, '##'. If instead you
  23960. write
  23961. #define debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
  23962. and if the variable arguments are omitted or empty, the '##' operator
  23963. causes the preprocessor to remove the comma before it. If you do
  23964. provide some variable arguments in your macro invocation, GNU CPP does
  23965. not complain about the paste operation and instead places the variable
  23966. arguments after the comma. Just like any other pasted macro argument,
  23967. these arguments are not macro expanded.
  23968. 
  23969. File: gcc.info, Node: Escaped Newlines, Next: Subscripting, Prev: Variadic Macros, Up: C Extensions
  23970. 6.22 Slightly Looser Rules for Escaped Newlines
  23971. ===============================================
  23972. The preprocessor treatment of escaped newlines is more relaxed than that
  23973. specified by the C90 standard, which requires the newline to immediately
  23974. follow a backslash. GCC's implementation allows whitespace in the form
  23975. of spaces, horizontal and vertical tabs, and form feeds between the
  23976. backslash and the subsequent newline. The preprocessor issues a
  23977. warning, but treats it as a valid escaped newline and combines the two
  23978. lines to form a single logical line. This works within comments and
  23979. tokens, as well as between tokens. Comments are _not_ treated as
  23980. whitespace for the purposes of this relaxation, since they have not yet
  23981. been replaced with spaces.
  23982. 
  23983. File: gcc.info, Node: Subscripting, Next: Pointer Arith, Prev: Escaped Newlines, Up: C Extensions
  23984. 6.23 Non-Lvalue Arrays May Have Subscripts
  23985. ==========================================
  23986. In ISO C99, arrays that are not lvalues still decay to pointers, and may
  23987. be subscripted, although they may not be modified or used after the next
  23988. sequence point and the unary '&' operator may not be applied to them.
  23989. As an extension, GNU C allows such arrays to be subscripted in C90 mode,
  23990. though otherwise they do not decay to pointers outside C99 mode. For
  23991. example, this is valid in GNU C though not valid in C90:
  23992. struct foo {int a[4];};
  23993. struct foo f();
  23994. bar (int index)
  23995. {
  23996. return f().a[index];
  23997. }
  23998. 
  23999. File: gcc.info, Node: Pointer Arith, Next: Variadic Pointer Args, Prev: Subscripting, Up: C Extensions
  24000. 6.24 Arithmetic on 'void'- and Function-Pointers
  24001. ================================================
  24002. In GNU C, addition and subtraction operations are supported on pointers
  24003. to 'void' and on pointers to functions. This is done by treating the
  24004. size of a 'void' or of a function as 1.
  24005. A consequence of this is that 'sizeof' is also allowed on 'void' and on
  24006. function types, and returns 1.
  24007. The option '-Wpointer-arith' requests a warning if these extensions are
  24008. used.
  24009. 
  24010. File: gcc.info, Node: Variadic Pointer Args, Next: Pointers to Arrays, Prev: Pointer Arith, Up: C Extensions
  24011. 6.25 Pointer Arguments in Variadic Functions
  24012. ============================================
  24013. Standard C requires that pointer types used with 'va_arg' in functions
  24014. with variable argument lists either must be compatible with that of the
  24015. actual argument, or that one type must be a pointer to 'void' and the
  24016. other a pointer to a character type. GNU C implements the POSIX XSI
  24017. extension that additionally permits the use of 'va_arg' with a pointer
  24018. type to receive arguments of any other pointer type.
  24019. In particular, in GNU C 'va_arg (ap, void *)' can safely be used to
  24020. consume an argument of any pointer type.
  24021. 
  24022. File: gcc.info, Node: Pointers to Arrays, Next: Initializers, Prev: Variadic Pointer Args, Up: C Extensions
  24023. 6.26 Pointers to Arrays with Qualifiers Work as Expected
  24024. ========================================================
  24025. In GNU C, pointers to arrays with qualifiers work similar to pointers to
  24026. other qualified types. For example, a value of type 'int (*)[5]' can be
  24027. used to initialize a variable of type 'const int (*)[5]'. These types
  24028. are incompatible in ISO C because the 'const' qualifier is formally
  24029. attached to the element type of the array and not the array itself.
  24030. extern void
  24031. transpose (int N, int M, double out[M][N], const double in[N][M]);
  24032. double x[3][2];
  24033. double y[2][3];
  24034. ...
  24035. transpose(3, 2, y, x);
  24036. 
  24037. File: gcc.info, Node: Initializers, Next: Compound Literals, Prev: Pointers to Arrays, Up: C Extensions
  24038. 6.27 Non-Constant Initializers
  24039. ==============================
  24040. As in standard C++ and ISO C99, the elements of an aggregate initializer
  24041. for an automatic variable are not required to be constant expressions in
  24042. GNU C. Here is an example of an initializer with run-time varying
  24043. elements:
  24044. foo (float f, float g)
  24045. {
  24046. float beat_freqs[2] = { f-g, f+g };
  24047. /* ... */
  24048. }
  24049. 
  24050. File: gcc.info, Node: Compound Literals, Next: Designated Inits, Prev: Initializers, Up: C Extensions
  24051. 6.28 Compound Literals
  24052. ======================
  24053. A compound literal looks like a cast of a brace-enclosed aggregate
  24054. initializer list. Its value is an object of the type specified in the
  24055. cast, containing the elements specified in the initializer. Unlike the
  24056. result of a cast, a compound literal is an lvalue. ISO C99 and later
  24057. support compound literals. As an extension, GCC supports compound
  24058. literals also in C90 mode and in C++, although as explained below, the
  24059. C++ semantics are somewhat different.
  24060. Usually, the specified type of a compound literal is a structure.
  24061. Assume that 'struct foo' and 'structure' are declared as shown:
  24062. struct foo {int a; char b[2];} structure;
  24063. Here is an example of constructing a 'struct foo' with a compound
  24064. literal:
  24065. structure = ((struct foo) {x + y, 'a', 0});
  24066. This is equivalent to writing the following:
  24067. {
  24068. struct foo temp = {x + y, 'a', 0};
  24069. structure = temp;
  24070. }
  24071. You can also construct an array, though this is dangerous in C++, as
  24072. explained below. If all the elements of the compound literal are (made
  24073. up of) simple constant expressions suitable for use in initializers of
  24074. objects of static storage duration, then the compound literal can be
  24075. coerced to a pointer to its first element and used in such an
  24076. initializer, as shown here:
  24077. char **foo = (char *[]) { "x", "y", "z" };
  24078. Compound literals for scalar types and union types are also allowed.
  24079. In the following example the variable 'i' is initialized to the value
  24080. '2', the result of incrementing the unnamed object created by the
  24081. compound literal.
  24082. int i = ++(int) { 1 };
  24083. As a GNU extension, GCC allows initialization of objects with static
  24084. storage duration by compound literals (which is not possible in ISO C99
  24085. because the initializer is not a constant). It is handled as if the
  24086. object were initialized only with the brace-enclosed list if the types
  24087. of the compound literal and the object match. The elements of the
  24088. compound literal must be constant. If the object being initialized has
  24089. array type of unknown size, the size is determined by the size of the
  24090. compound literal.
  24091. static struct foo x = (struct foo) {1, 'a', 'b'};
  24092. static int y[] = (int []) {1, 2, 3};
  24093. static int z[] = (int [3]) {1};
  24094. The above lines are equivalent to the following:
  24095. static struct foo x = {1, 'a', 'b'};
  24096. static int y[] = {1, 2, 3};
  24097. static int z[] = {1, 0, 0};
  24098. In C, a compound literal designates an unnamed object with static or
  24099. automatic storage duration. In C++, a compound literal designates a
  24100. temporary object that only lives until the end of its full-expression.
  24101. As a result, well-defined C code that takes the address of a subobject
  24102. of a compound literal can be undefined in C++, so G++ rejects the
  24103. conversion of a temporary array to a pointer. For instance, if the
  24104. array compound literal example above appeared inside a function, any
  24105. subsequent use of 'foo' in C++ would have undefined behavior because the
  24106. lifetime of the array ends after the declaration of 'foo'.
  24107. As an optimization, G++ sometimes gives array compound literals longer
  24108. lifetimes: when the array either appears outside a function or has a
  24109. 'const'-qualified type. If 'foo' and its initializer had elements of
  24110. type 'char *const' rather than 'char *', or if 'foo' were a global
  24111. variable, the array would have static storage duration. But it is
  24112. probably safest just to avoid the use of array compound literals in C++
  24113. code.
  24114. 
  24115. File: gcc.info, Node: Designated Inits, Next: Case Ranges, Prev: Compound Literals, Up: C Extensions
  24116. 6.29 Designated Initializers
  24117. ============================
  24118. Standard C90 requires the elements of an initializer to appear in a
  24119. fixed order, the same as the order of the elements in the array or
  24120. structure being initialized.
  24121. In ISO C99 you can give the elements in any order, specifying the array
  24122. indices or structure field names they apply to, and GNU C allows this as
  24123. an extension in C90 mode as well. This extension is not implemented in
  24124. GNU C++.
  24125. To specify an array index, write '[INDEX] =' before the element value.
  24126. For example,
  24127. int a[6] = { [4] = 29, [2] = 15 };
  24128. is equivalent to
  24129. int a[6] = { 0, 0, 15, 0, 29, 0 };
  24130. The index values must be constant expressions, even if the array being
  24131. initialized is automatic.
  24132. An alternative syntax for this that has been obsolete since GCC 2.5 but
  24133. GCC still accepts is to write '[INDEX]' before the element value, with
  24134. no '='.
  24135. To initialize a range of elements to the same value, write '[FIRST ...
  24136. LAST] = VALUE'. This is a GNU extension. For example,
  24137. int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 };
  24138. If the value in it has side effects, the side effects happen only once,
  24139. not for each initialized field by the range initializer.
  24140. Note that the length of the array is the highest value specified plus
  24141. one.
  24142. In a structure initializer, specify the name of a field to initialize
  24143. with '.FIELDNAME =' before the element value. For example, given the
  24144. following structure,
  24145. struct point { int x, y; };
  24146. the following initialization
  24147. struct point p = { .y = yvalue, .x = xvalue };
  24148. is equivalent to
  24149. struct point p = { xvalue, yvalue };
  24150. Another syntax that has the same meaning, obsolete since GCC 2.5, is
  24151. 'FIELDNAME:', as shown here:
  24152. struct point p = { y: yvalue, x: xvalue };
  24153. Omitted fields are implicitly initialized the same as for objects that
  24154. have static storage duration.
  24155. The '[INDEX]' or '.FIELDNAME' is known as a "designator". You can also
  24156. use a designator (or the obsolete colon syntax) when initializing a
  24157. union, to specify which element of the union should be used. For
  24158. example,
  24159. union foo { int i; double d; };
  24160. union foo f = { .d = 4 };
  24161. converts 4 to a 'double' to store it in the union using the second
  24162. element. By contrast, casting 4 to type 'union foo' stores it into the
  24163. union as the integer 'i', since it is an integer. *Note Cast to
  24164. Union::.
  24165. You can combine this technique of naming elements with ordinary C
  24166. initialization of successive elements. Each initializer element that
  24167. does not have a designator applies to the next consecutive element of
  24168. the array or structure. For example,
  24169. int a[6] = { [1] = v1, v2, [4] = v4 };
  24170. is equivalent to
  24171. int a[6] = { 0, v1, v2, 0, v4, 0 };
  24172. Labeling the elements of an array initializer is especially useful when
  24173. the indices are characters or belong to an 'enum' type. For example:
  24174. int whitespace[256]
  24175. = { [' '] = 1, ['\t'] = 1, ['\h'] = 1,
  24176. ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 };
  24177. You can also write a series of '.FIELDNAME' and '[INDEX]' designators
  24178. before an '=' to specify a nested subobject to initialize; the list is
  24179. taken relative to the subobject corresponding to the closest surrounding
  24180. brace pair. For example, with the 'struct point' declaration above:
  24181. struct point ptarray[10] = { [2].y = yv2, [2].x = xv2, [0].x = xv0 };
  24182. If the same field is initialized multiple times, or overlapping fields
  24183. of a union are initialized, the value from the last initialization is
  24184. used. When a field of a union is itself a structure, the entire
  24185. structure from the last field initialized is used. If any previous
  24186. initializer has side effect, it is unspecified whether the side effect
  24187. happens or not. Currently, GCC discards the side-effecting initializer
  24188. expressions and issues a warning.
  24189. 
  24190. File: gcc.info, Node: Case Ranges, Next: Cast to Union, Prev: Designated Inits, Up: C Extensions
  24191. 6.30 Case Ranges
  24192. ================
  24193. You can specify a range of consecutive values in a single 'case' label,
  24194. like this:
  24195. case LOW ... HIGH:
  24196. This has the same effect as the proper number of individual 'case'
  24197. labels, one for each integer value from LOW to HIGH, inclusive.
  24198. This feature is especially useful for ranges of ASCII character codes:
  24199. case 'A' ... 'Z':
  24200. *Be careful:* Write spaces around the '...', for otherwise it may be
  24201. parsed wrong when you use it with integer values. For example, write
  24202. this:
  24203. case 1 ... 5:
  24204. rather than this:
  24205. case 1...5:
  24206. 
  24207. File: gcc.info, Node: Cast to Union, Next: Mixed Declarations, Prev: Case Ranges, Up: C Extensions
  24208. 6.31 Cast to a Union Type
  24209. =========================
  24210. A cast to a union type is a C extension not available in C++. It looks
  24211. just like ordinary casts with the constraint that the type specified is
  24212. a union type. You can specify the type either with the 'union' keyword
  24213. or with a 'typedef' name that refers to a union. The result of a cast
  24214. to a union is a temporary rvalue of the union type with a member whose
  24215. type matches that of the operand initialized to the value of the
  24216. operand. The effect of a cast to a union is similar to a compound
  24217. literal except that it yields an rvalue like standard casts do. *Note
  24218. Compound Literals::.
  24219. Expressions that may be cast to the union type are those whose type
  24220. matches at least one of the members of the union. Thus, given the
  24221. following union and variables:
  24222. union foo { int i; double d; };
  24223. int x;
  24224. double y;
  24225. union foo z;
  24226. both 'x' and 'y' can be cast to type 'union foo' and the following
  24227. assignments
  24228. z = (union foo) x;
  24229. z = (union foo) y;
  24230. are shorthand equivalents of these
  24231. z = (union foo) { .i = x };
  24232. z = (union foo) { .d = y };
  24233. However, '(union foo) FLT_MAX;' is not a valid cast because the union
  24234. has no member of type 'float'.
  24235. Using the cast as the right-hand side of an assignment to a variable of
  24236. union type is equivalent to storing in a member of the union with the
  24237. same type
  24238. union foo u;
  24239. /* ... */
  24240. u = (union foo) x == u.i = x
  24241. u = (union foo) y == u.d = y
  24242. You can also use the union cast as a function argument:
  24243. void hack (union foo);
  24244. /* ... */
  24245. hack ((union foo) x);
  24246. 
  24247. File: gcc.info, Node: Mixed Declarations, Next: Function Attributes, Prev: Cast to Union, Up: C Extensions
  24248. 6.32 Mixed Declarations and Code
  24249. ================================
  24250. ISO C99 and ISO C++ allow declarations and code to be freely mixed
  24251. within compound statements. As an extension, GNU C also allows this in
  24252. C90 mode. For example, you could do:
  24253. int i;
  24254. /* ... */
  24255. i++;
  24256. int j = i + 2;
  24257. Each identifier is visible from where it is declared until the end of
  24258. the enclosing block.
  24259. 
  24260. File: gcc.info, Node: Function Attributes, Next: Variable Attributes, Prev: Mixed Declarations, Up: C Extensions
  24261. 6.33 Declaring Attributes of Functions
  24262. ======================================
  24263. In GNU C and C++, you can use function attributes to specify certain
  24264. function properties that may help the compiler optimize calls or check
  24265. code more carefully for correctness. For example, you can use
  24266. attributes to specify that a function never returns ('noreturn'),
  24267. returns a value depending only on the values of its arguments ('const'),
  24268. or has 'printf'-style arguments ('format').
  24269. You can also use attributes to control memory placement, code
  24270. generation options or call/return conventions within the function being
  24271. annotated. Many of these attributes are target-specific. For example,
  24272. many targets support attributes for defining interrupt handler
  24273. functions, which typically must follow special register usage and return
  24274. conventions. Such attributes are described in the subsection for each
  24275. target. However, a considerable number of attributes are supported by
  24276. most, if not all targets. Those are described in the *note Common
  24277. Function Attributes:: section.
  24278. Function attributes are introduced by the '__attribute__' keyword in
  24279. the declaration of a function, followed by an attribute specification
  24280. enclosed in double parentheses. You can specify multiple attributes in
  24281. a declaration by separating them by commas within the double parentheses
  24282. or by immediately following one attribute specification with another.
  24283. *Note Attribute Syntax::, for the exact rules on attribute syntax and
  24284. placement. Compatible attribute specifications on distinct declarations
  24285. of the same function are merged. An attribute specification that is not
  24286. compatible with attributes already applied to a declaration of the same
  24287. function is ignored with a warning.
  24288. Some function attributes take one or more arguments that refer to the
  24289. function's parameters by their positions within the function parameter
  24290. list. Such attribute arguments are referred to as "positional
  24291. arguments". Unless specified otherwise, positional arguments that
  24292. specify properties of parameters with pointer types can also specify the
  24293. same properties of the implicit C++ 'this' argument in non-static member
  24294. functions, and of parameters of reference to a pointer type. For
  24295. ordinary functions, position one refers to the first parameter on the
  24296. list. In C++ non-static member functions, position one refers to the
  24297. implicit 'this' pointer. The same restrictions and effects apply to
  24298. function attributes used with ordinary functions or C++ member
  24299. functions.
  24300. GCC also supports attributes on variable declarations (*note Variable
  24301. Attributes::), labels (*note Label Attributes::), enumerators (*note
  24302. Enumerator Attributes::), statements (*note Statement Attributes::), and
  24303. types (*note Type Attributes::).
  24304. There is some overlap between the purposes of attributes and pragmas
  24305. (*note Pragmas Accepted by GCC: Pragmas.). It has been found convenient
  24306. to use '__attribute__' to achieve a natural attachment of attributes to
  24307. their corresponding declarations, whereas '#pragma' is of use for
  24308. compatibility with other compilers or constructs that do not naturally
  24309. form part of the grammar.
  24310. In addition to the attributes documented here, GCC plugins may provide
  24311. their own attributes.
  24312. * Menu:
  24313. * Common Function Attributes::
  24314. * AArch64 Function Attributes::
  24315. * AMD GCN Function Attributes::
  24316. * ARC Function Attributes::
  24317. * ARM Function Attributes::
  24318. * AVR Function Attributes::
  24319. * Blackfin Function Attributes::
  24320. * CR16 Function Attributes::
  24321. * C-SKY Function Attributes::
  24322. * Epiphany Function Attributes::
  24323. * H8/300 Function Attributes::
  24324. * IA-64 Function Attributes::
  24325. * M32C Function Attributes::
  24326. * M32R/D Function Attributes::
  24327. * m68k Function Attributes::
  24328. * MCORE Function Attributes::
  24329. * MeP Function Attributes::
  24330. * MicroBlaze Function Attributes::
  24331. * Microsoft Windows Function Attributes::
  24332. * MIPS Function Attributes::
  24333. * MSP430 Function Attributes::
  24334. * NDS32 Function Attributes::
  24335. * Nios II Function Attributes::
  24336. * Nvidia PTX Function Attributes::
  24337. * PowerPC Function Attributes::
  24338. * RISC-V Function Attributes::
  24339. * RL78 Function Attributes::
  24340. * RX Function Attributes::
  24341. * S/390 Function Attributes::
  24342. * SH Function Attributes::
  24343. * SPU Function Attributes::
  24344. * Symbian OS Function Attributes::
  24345. * V850 Function Attributes::
  24346. * Visium Function Attributes::
  24347. * x86 Function Attributes::
  24348. * Xstormy16 Function Attributes::
  24349. 
  24350. File: gcc.info, Node: Common Function Attributes, Next: AArch64 Function Attributes, Up: Function Attributes
  24351. 6.33.1 Common Function Attributes
  24352. ---------------------------------
  24353. The following attributes are supported on most targets.
  24354. 'alias ("TARGET")'
  24355. The 'alias' attribute causes the declaration to be emitted as an
  24356. alias for another symbol, which must be specified. For instance,
  24357. void __f () { /* Do something. */; }
  24358. void f () __attribute__ ((weak, alias ("__f")));
  24359. defines 'f' to be a weak alias for '__f'. In C++, the mangled name
  24360. for the target must be used. It is an error if '__f' is not
  24361. defined in the same translation unit.
  24362. This attribute requires assembler and object file support, and may
  24363. not be available on all targets.
  24364. 'aligned'
  24365. 'aligned (ALIGNMENT)'
  24366. The 'aligned' attribute specifies a minimum alignment for the first
  24367. instruction of the function, measured in bytes. When specified,
  24368. ALIGNMENT must be an integer constant power of 2. Specifying no
  24369. ALIGNMENT argument implies the ideal alignment for the target. The
  24370. '__alignof__' operator can be used to determine what that is (*note
  24371. Alignment::). The attribute has no effect when a definition for
  24372. the function is not provided in the same translation unit.
  24373. The attribute cannot be used to decrease the alignment of a
  24374. function previously declared with a more restrictive alignment;
  24375. only to increase it. Attempts to do otherwise are diagnosed. Some
  24376. targets specify a minimum default alignment for functions that is
  24377. greater than 1. On such targets, specifying a less restrictive
  24378. alignment is silently ignored. Using the attribute overrides the
  24379. effect of the '-falign-functions' (*note Optimize Options::) option
  24380. for this function.
  24381. Note that the effectiveness of 'aligned' attributes may be limited
  24382. by inherent limitations in the system linker and/or object file
  24383. format. On some systems, the linker is only able to arrange for
  24384. functions to be aligned up to a certain maximum alignment. (For
  24385. some linkers, the maximum supported alignment may be very very
  24386. small.) See your linker documentation for further information.
  24387. The 'aligned' attribute can also be used for variables and fields
  24388. (*note Variable Attributes::.)
  24389. 'alloc_align (POSITION)'
  24390. The 'alloc_align' attribute may be applied to a function that
  24391. returns a pointer and takes at least one argument of an integer or
  24392. enumerated type. It indicates that the returned pointer is aligned
  24393. on a boundary given by the function argument at POSITION.
  24394. Meaningful alignments are powers of 2 greater than one. GCC uses
  24395. this information to improve pointer alignment analysis.
  24396. The function parameter denoting the allocated alignment is
  24397. specified by one constant integer argument whose number is the
  24398. argument of the attribute. Argument numbering starts at one.
  24399. For instance,
  24400. void* my_memalign (size_t, size_t) __attribute__ ((alloc_align (1)));
  24401. declares that 'my_memalign' returns memory with minimum alignment
  24402. given by parameter 1.
  24403. 'alloc_size (POSITION)'
  24404. 'alloc_size (POSITION-1, POSITION-2)'
  24405. The 'alloc_size' attribute may be applied to a function that
  24406. returns a pointer and takes at least one argument of an integer or
  24407. enumerated type. It indicates that the returned pointer points to
  24408. memory whose size is given by the function argument at POSITION-1,
  24409. or by the product of the arguments at POSITION-1 and POSITION-2.
  24410. Meaningful sizes are positive values less than 'PTRDIFF_MAX'. GCC
  24411. uses this information to improve the results of
  24412. '__builtin_object_size'.
  24413. The function parameter(s) denoting the allocated size are specified
  24414. by one or two integer arguments supplied to the attribute. The
  24415. allocated size is either the value of the single function argument
  24416. specified or the product of the two function arguments specified.
  24417. Argument numbering starts at one for ordinary functions, and at two
  24418. for C++ non-static member functions.
  24419. For instance,
  24420. void* my_calloc (size_t, size_t) __attribute__ ((alloc_size (1, 2)));
  24421. void* my_realloc (void*, size_t) __attribute__ ((alloc_size (2)));
  24422. declares that 'my_calloc' returns memory of the size given by the
  24423. product of parameter 1 and 2 and that 'my_realloc' returns memory
  24424. of the size given by parameter 2.
  24425. 'always_inline'
  24426. Generally, functions are not inlined unless optimization is
  24427. specified. For functions declared inline, this attribute inlines
  24428. the function independent of any restrictions that otherwise apply
  24429. to inlining. Failure to inline such a function is diagnosed as an
  24430. error. Note that if such a function is called indirectly the
  24431. compiler may or may not inline it depending on optimization level
  24432. and a failure to inline an indirect call may or may not be
  24433. diagnosed.
  24434. 'artificial'
  24435. This attribute is useful for small inline wrappers that if possible
  24436. should appear during debugging as a unit. Depending on the debug
  24437. info format it either means marking the function as artificial or
  24438. using the caller location for all instructions within the inlined
  24439. body.
  24440. 'assume_aligned (ALIGNMENT)'
  24441. 'assume_aligned (ALIGNMENT, OFFSET)'
  24442. The 'assume_aligned' attribute may be applied to a function that
  24443. returns a pointer. It indicates that the returned pointer is
  24444. aligned on a boundary given by ALIGNMENT. If the attribute has two
  24445. arguments, the second argument is misalignment OFFSET. Meaningful
  24446. values of ALIGNMENT are powers of 2 greater than one. Meaningful
  24447. values of OFFSET are greater than zero and less than ALIGNMENT.
  24448. For instance
  24449. void* my_alloc1 (size_t) __attribute__((assume_aligned (16)));
  24450. void* my_alloc2 (size_t) __attribute__((assume_aligned (32, 8)));
  24451. declares that 'my_alloc1' returns 16-byte aligned pointers and that
  24452. 'my_alloc2' returns a pointer whose value modulo 32 is equal to 8.
  24453. 'cold'
  24454. The 'cold' attribute on functions is used to inform the compiler
  24455. that the function is unlikely to be executed. The function is
  24456. optimized for size rather than speed and on many targets it is
  24457. placed into a special subsection of the text section so all cold
  24458. functions appear close together, improving code locality of
  24459. non-cold parts of program. The paths leading to calls of cold
  24460. functions within code are marked as unlikely by the branch
  24461. prediction mechanism. It is thus useful to mark functions used to
  24462. handle unlikely conditions, such as 'perror', as cold to improve
  24463. optimization of hot functions that do call marked functions in rare
  24464. occasions.
  24465. When profile feedback is available, via '-fprofile-use', cold
  24466. functions are automatically detected and this attribute is ignored.
  24467. 'const'
  24468. Calls to functions whose return value is not affected by changes to
  24469. the observable state of the program and that have no observable
  24470. effects on such state other than to return a value may lend
  24471. themselves to optimizations such as common subexpression
  24472. elimination. Declaring such functions with the 'const' attribute
  24473. allows GCC to avoid emitting some calls in repeated invocations of
  24474. the function with the same argument values.
  24475. For example,
  24476. int square (int) __attribute__ ((const));
  24477. tells GCC that subsequent calls to function 'square' with the same
  24478. argument value can be replaced by the result of the first call
  24479. regardless of the statements in between.
  24480. The 'const' attribute prohibits a function from reading objects
  24481. that affect its return value between successive invocations.
  24482. However, functions declared with the attribute can safely read
  24483. objects that do not change their return value, such as non-volatile
  24484. constants.
  24485. The 'const' attribute imposes greater restrictions on a function's
  24486. definition than the similar 'pure' attribute. Declaring the same
  24487. function with both the 'const' and the 'pure' attribute is
  24488. diagnosed. Because a const function cannot have any observable
  24489. side effects it does not make sense for it to return 'void'.
  24490. Declaring such a function is diagnosed.
  24491. Note that a function that has pointer arguments and examines the
  24492. data pointed to must _not_ be declared 'const' if the pointed-to
  24493. data might change between successive invocations of the function.
  24494. In general, since a function cannot distinguish data that might
  24495. change from data that cannot, const functions should never take
  24496. pointer or, in C++, reference arguments. Likewise, a function that
  24497. calls a non-const function usually must not be const itself.
  24498. 'constructor'
  24499. 'destructor'
  24500. 'constructor (PRIORITY)'
  24501. 'destructor (PRIORITY)'
  24502. The 'constructor' attribute causes the function to be called
  24503. automatically before execution enters 'main ()'. Similarly, the
  24504. 'destructor' attribute causes the function to be called
  24505. automatically after 'main ()' completes or 'exit ()' is called.
  24506. Functions with these attributes are useful for initializing data
  24507. that is used implicitly during the execution of the program.
  24508. On some targets the attributes also accept an integer argument to
  24509. specify a priority to control the order in which constructor and
  24510. destructor functions are run. A constructor with a smaller
  24511. priority number runs before a constructor with a larger priority
  24512. number; the opposite relationship holds for destructors. So, if
  24513. you have a constructor that allocates a resource and a destructor
  24514. that deallocates the same resource, both functions typically have
  24515. the same priority. The priorities for constructor and destructor
  24516. functions are the same as those specified for namespace-scope C++
  24517. objects (*note C++ Attributes::). However, at present, the order
  24518. in which constructors for C++ objects with static storage duration
  24519. and functions decorated with attribute 'constructor' are invoked is
  24520. unspecified. In mixed declarations, attribute 'init_priority' can
  24521. be used to impose a specific ordering.
  24522. Using the argument forms of the 'constructor' and 'destructor'
  24523. attributes on targets where the feature is not supported is
  24524. rejected with an error.
  24525. 'copy'
  24526. 'copy (FUNCTION)'
  24527. The 'copy' attribute applies the set of attributes with which
  24528. FUNCTION has been declared to the declaration of the function to
  24529. which the attribute is applied. The attribute is designed for
  24530. libraries that define aliases or function resolvers that are
  24531. expected to specify the same set of attributes as their targets.
  24532. The 'copy' attribute can be used with functions, variables, or
  24533. types. However, the kind of symbol to which the attribute is
  24534. applied (either function or variable) must match the kind of symbol
  24535. to which the argument refers. The 'copy' attribute copies only
  24536. syntactic and semantic attributes but not attributes that affect a
  24537. symbol's linkage or visibility such as 'alias', 'visibility', or
  24538. 'weak'. The 'deprecated' attribute is also not copied. *Note
  24539. Common Type Attributes::. *Note Common Variable Attributes::.
  24540. For example, the STRONGALIAS macro below makes use of the 'alias'
  24541. and 'copy' attributes to define an alias named ALLOC for function
  24542. ALLOCATE declared with attributes ALLOC_SIZE, MALLOC, and NOTHROW.
  24543. Thanks to the '__typeof__' operator the alias has the same type as
  24544. the target function. As a result of the 'copy' attribute the alias
  24545. also shares the same attributes as the target.
  24546. #define StrongAlias(TagetFunc, AliasDecl) \
  24547. extern __typeof__ (TargetFunc) AliasDecl \
  24548. __attribute__ ((alias (#TargetFunc), copy (TargetFunc)));
  24549. extern __attribute__ ((alloc_size (1), malloc, nothrow))
  24550. void* allocate (size_t);
  24551. StrongAlias (allocate, alloc);
  24552. 'deprecated'
  24553. 'deprecated (MSG)'
  24554. The 'deprecated' attribute results in a warning if the function is
  24555. used anywhere in the source file. This is useful when identifying
  24556. functions that are expected to be removed in a future version of a
  24557. program. The warning also includes the location of the declaration
  24558. of the deprecated function, to enable users to easily find further
  24559. information about why the function is deprecated, or what they
  24560. should do instead. Note that the warnings only occurs for uses:
  24561. int old_fn () __attribute__ ((deprecated));
  24562. int old_fn ();
  24563. int (*fn_ptr)() = old_fn;
  24564. results in a warning on line 3 but not line 2. The optional MSG
  24565. argument, which must be a string, is printed in the warning if
  24566. present.
  24567. The 'deprecated' attribute can also be used for variables and types
  24568. (*note Variable Attributes::, *note Type Attributes::.)
  24569. The message attached to the attribute is affected by the setting of
  24570. the '-fmessage-length' option.
  24571. 'error ("MESSAGE")'
  24572. 'warning ("MESSAGE")'
  24573. If the 'error' or 'warning' attribute is used on a function
  24574. declaration and a call to such a function is not eliminated through
  24575. dead code elimination or other optimizations, an error or warning
  24576. (respectively) that includes MESSAGE is diagnosed. This is useful
  24577. for compile-time checking, especially together with
  24578. '__builtin_constant_p' and inline functions where checking the
  24579. inline function arguments is not possible through 'extern char
  24580. [(condition) ? 1 : -1];' tricks.
  24581. While it is possible to leave the function undefined and thus
  24582. invoke a link failure (to define the function with a message in
  24583. '.gnu.warning*' section), when using these attributes the problem
  24584. is diagnosed earlier and with exact location of the call even in
  24585. presence of inline functions or when not emitting debugging
  24586. information.
  24587. 'externally_visible'
  24588. This attribute, attached to a global variable or function,
  24589. nullifies the effect of the '-fwhole-program' command-line option,
  24590. so the object remains visible outside the current compilation unit.
  24591. If '-fwhole-program' is used together with '-flto' and 'gold' is
  24592. used as the linker plugin, 'externally_visible' attributes are
  24593. automatically added to functions (not variable yet due to a current
  24594. 'gold' issue) that are accessed outside of LTO objects according to
  24595. resolution file produced by 'gold'. For other linkers that cannot
  24596. generate resolution file, explicit 'externally_visible' attributes
  24597. are still necessary.
  24598. 'flatten'
  24599. Generally, inlining into a function is limited. For a function
  24600. marked with this attribute, every call inside this function is
  24601. inlined, if possible. Functions declared with attribute 'noinline'
  24602. and similar are not inlined. Whether the function itself is
  24603. considered for inlining depends on its size and the current
  24604. inlining parameters.
  24605. 'format (ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)'
  24606. The 'format' attribute specifies that a function takes 'printf',
  24607. 'scanf', 'strftime' or 'strfmon' style arguments that should be
  24608. type-checked against a format string. For example, the
  24609. declaration:
  24610. extern int
  24611. my_printf (void *my_object, const char *my_format, ...)
  24612. __attribute__ ((format (printf, 2, 3)));
  24613. causes the compiler to check the arguments in calls to 'my_printf'
  24614. for consistency with the 'printf' style format string argument
  24615. 'my_format'.
  24616. The parameter ARCHETYPE determines how the format string is
  24617. interpreted, and should be 'printf', 'scanf', 'strftime',
  24618. 'gnu_printf', 'gnu_scanf', 'gnu_strftime' or 'strfmon'. (You can
  24619. also use '__printf__', '__scanf__', '__strftime__' or
  24620. '__strfmon__'.) On MinGW targets, 'ms_printf', 'ms_scanf', and
  24621. 'ms_strftime' are also present. ARCHETYPE values such as 'printf'
  24622. refer to the formats accepted by the system's C runtime library,
  24623. while values prefixed with 'gnu_' always refer to the formats
  24624. accepted by the GNU C Library. On Microsoft Windows targets,
  24625. values prefixed with 'ms_' refer to the formats accepted by the
  24626. 'msvcrt.dll' library. The parameter STRING-INDEX specifies which
  24627. argument is the format string argument (starting from 1), while
  24628. FIRST-TO-CHECK is the number of the first argument to check against
  24629. the format string. For functions where the arguments are not
  24630. available to be checked (such as 'vprintf'), specify the third
  24631. parameter as zero. In this case the compiler only checks the
  24632. format string for consistency. For 'strftime' formats, the third
  24633. parameter is required to be zero. Since non-static C++ methods
  24634. have an implicit 'this' argument, the arguments of such methods
  24635. should be counted from two, not one, when giving values for
  24636. STRING-INDEX and FIRST-TO-CHECK.
  24637. In the example above, the format string ('my_format') is the second
  24638. argument of the function 'my_print', and the arguments to check
  24639. start with the third argument, so the correct parameters for the
  24640. format attribute are 2 and 3.
  24641. The 'format' attribute allows you to identify your own functions
  24642. that take format strings as arguments, so that GCC can check the
  24643. calls to these functions for errors. The compiler always (unless
  24644. '-ffreestanding' or '-fno-builtin' is used) checks formats for the
  24645. standard library functions 'printf', 'fprintf', 'sprintf', 'scanf',
  24646. 'fscanf', 'sscanf', 'strftime', 'vprintf', 'vfprintf' and
  24647. 'vsprintf' whenever such warnings are requested (using '-Wformat'),
  24648. so there is no need to modify the header file 'stdio.h'. In C99
  24649. mode, the functions 'snprintf', 'vsnprintf', 'vscanf', 'vfscanf'
  24650. and 'vsscanf' are also checked. Except in strictly conforming C
  24651. standard modes, the X/Open function 'strfmon' is also checked as
  24652. are 'printf_unlocked' and 'fprintf_unlocked'. *Note Options
  24653. Controlling C Dialect: C Dialect Options.
  24654. For Objective-C dialects, 'NSString' (or '__NSString__') is
  24655. recognized in the same context. Declarations including these
  24656. format attributes are parsed for correct syntax, however the result
  24657. of checking of such format strings is not yet defined, and is not
  24658. carried out by this version of the compiler.
  24659. The target may also provide additional types of format checks.
  24660. *Note Format Checks Specific to Particular Target Machines: Target
  24661. Format Checks.
  24662. 'format_arg (STRING-INDEX)'
  24663. The 'format_arg' attribute specifies that a function takes one or
  24664. more format strings for a 'printf', 'scanf', 'strftime' or
  24665. 'strfmon' style function and modifies it (for example, to translate
  24666. it into another language), so the result can be passed to a
  24667. 'printf', 'scanf', 'strftime' or 'strfmon' style function (with the
  24668. remaining arguments to the format function the same as they would
  24669. have been for the unmodified string). Multiple 'format_arg'
  24670. attributes may be applied to the same function, each designating a
  24671. distinct parameter as a format string. For example, the
  24672. declaration:
  24673. extern char *
  24674. my_dgettext (char *my_domain, const char *my_format)
  24675. __attribute__ ((format_arg (2)));
  24676. causes the compiler to check the arguments in calls to a 'printf',
  24677. 'scanf', 'strftime' or 'strfmon' type function, whose format string
  24678. argument is a call to the 'my_dgettext' function, for consistency
  24679. with the format string argument 'my_format'. If the 'format_arg'
  24680. attribute had not been specified, all the compiler could tell in
  24681. such calls to format functions would be that the format string
  24682. argument is not constant; this would generate a warning when
  24683. '-Wformat-nonliteral' is used, but the calls could not be checked
  24684. without the attribute.
  24685. In calls to a function declared with more than one 'format_arg'
  24686. attribute, each with a distinct argument value, the corresponding
  24687. actual function arguments are checked against all format strings
  24688. designated by the attributes. This capability is designed to
  24689. support the GNU 'ngettext' family of functions.
  24690. The parameter STRING-INDEX specifies which argument is the format
  24691. string argument (starting from one). Since non-static C++ methods
  24692. have an implicit 'this' argument, the arguments of such methods
  24693. should be counted from two.
  24694. The 'format_arg' attribute allows you to identify your own
  24695. functions that modify format strings, so that GCC can check the
  24696. calls to 'printf', 'scanf', 'strftime' or 'strfmon' type function
  24697. whose operands are a call to one of your own function. The
  24698. compiler always treats 'gettext', 'dgettext', and 'dcgettext' in
  24699. this manner except when strict ISO C support is requested by
  24700. '-ansi' or an appropriate '-std' option, or '-ffreestanding' or
  24701. '-fno-builtin' is used. *Note Options Controlling C Dialect: C
  24702. Dialect Options.
  24703. For Objective-C dialects, the 'format-arg' attribute may refer to
  24704. an 'NSString' reference for compatibility with the 'format'
  24705. attribute above.
  24706. The target may also allow additional types in 'format-arg'
  24707. attributes. *Note Format Checks Specific to Particular Target
  24708. Machines: Target Format Checks.
  24709. 'gnu_inline'
  24710. This attribute should be used with a function that is also declared
  24711. with the 'inline' keyword. It directs GCC to treat the function as
  24712. if it were defined in gnu90 mode even when compiling in C99 or
  24713. gnu99 mode.
  24714. If the function is declared 'extern', then this definition of the
  24715. function is used only for inlining. In no case is the function
  24716. compiled as a standalone function, not even if you take its address
  24717. explicitly. Such an address becomes an external reference, as if
  24718. you had only declared the function, and had not defined it. This
  24719. has almost the effect of a macro. The way to use this is to put a
  24720. function definition in a header file with this attribute, and put
  24721. another copy of the function, without 'extern', in a library file.
  24722. The definition in the header file causes most calls to the function
  24723. to be inlined. If any uses of the function remain, they refer to
  24724. the single copy in the library. Note that the two definitions of
  24725. the functions need not be precisely the same, although if they do
  24726. not have the same effect your program may behave oddly.
  24727. In C, if the function is neither 'extern' nor 'static', then the
  24728. function is compiled as a standalone function, as well as being
  24729. inlined where possible.
  24730. This is how GCC traditionally handled functions declared 'inline'.
  24731. Since ISO C99 specifies a different semantics for 'inline', this
  24732. function attribute is provided as a transition measure and as a
  24733. useful feature in its own right. This attribute is available in
  24734. GCC 4.1.3 and later. It is available if either of the preprocessor
  24735. macros '__GNUC_GNU_INLINE__' or '__GNUC_STDC_INLINE__' are defined.
  24736. *Note An Inline Function is As Fast As a Macro: Inline.
  24737. In C++, this attribute does not depend on 'extern' in any way, but
  24738. it still requires the 'inline' keyword to enable its special
  24739. behavior.
  24740. 'hot'
  24741. The 'hot' attribute on a function is used to inform the compiler
  24742. that the function is a hot spot of the compiled program. The
  24743. function is optimized more aggressively and on many targets it is
  24744. placed into a special subsection of the text section so all hot
  24745. functions appear close together, improving locality.
  24746. When profile feedback is available, via '-fprofile-use', hot
  24747. functions are automatically detected and this attribute is ignored.
  24748. 'ifunc ("RESOLVER")'
  24749. The 'ifunc' attribute is used to mark a function as an indirect
  24750. function using the STT_GNU_IFUNC symbol type extension to the ELF
  24751. standard. This allows the resolution of the symbol value to be
  24752. determined dynamically at load time, and an optimized version of
  24753. the routine to be selected for the particular processor or other
  24754. system characteristics determined then. To use this attribute,
  24755. first define the implementation functions available, and a resolver
  24756. function that returns a pointer to the selected implementation
  24757. function. The implementation functions' declarations must match
  24758. the API of the function being implemented. The resolver should be
  24759. declared to be a function taking no arguments and returning a
  24760. pointer to a function of the same type as the implementation. For
  24761. example:
  24762. void *my_memcpy (void *dst, const void *src, size_t len)
  24763. {
  24764. ...
  24765. return dst;
  24766. }
  24767. static void * (*resolve_memcpy (void))(void *, const void *, size_t)
  24768. {
  24769. return my_memcpy; // we will just always select this routine
  24770. }
  24771. The exported header file declaring the function the user calls
  24772. would contain:
  24773. extern void *memcpy (void *, const void *, size_t);
  24774. allowing the user to call 'memcpy' as a regular function, unaware
  24775. of the actual implementation. Finally, the indirect function needs
  24776. to be defined in the same translation unit as the resolver
  24777. function:
  24778. void *memcpy (void *, const void *, size_t)
  24779. __attribute__ ((ifunc ("resolve_memcpy")));
  24780. In C++, the 'ifunc' attribute takes a string that is the mangled
  24781. name of the resolver function. A C++ resolver for a non-static
  24782. member function of class 'C' should be declared to return a pointer
  24783. to a non-member function taking pointer to 'C' as the first
  24784. argument, followed by the same arguments as of the implementation
  24785. function. G++ checks the signatures of the two functions and
  24786. issues a '-Wattribute-alias' warning for mismatches. To suppress a
  24787. warning for the necessary cast from a pointer to the implementation
  24788. member function to the type of the corresponding non-member
  24789. function use the '-Wno-pmf-conversions' option. For example:
  24790. class S
  24791. {
  24792. private:
  24793. int debug_impl (int);
  24794. int optimized_impl (int);
  24795. typedef int Func (S*, int);
  24796. static Func* resolver ();
  24797. public:
  24798. int interface (int);
  24799. };
  24800. int S::debug_impl (int) { /* ... */ }
  24801. int S::optimized_impl (int) { /* ... */ }
  24802. S::Func* S::resolver ()
  24803. {
  24804. int (S::*pimpl) (int)
  24805. = getenv ("DEBUG") ? &S::debug_impl : &S::optimized_impl;
  24806. // Cast triggers -Wno-pmf-conversions.
  24807. return reinterpret_cast<Func*>(pimpl);
  24808. }
  24809. int S::interface (int) __attribute__ ((ifunc ("_ZN1S8resolverEv")));
  24810. Indirect functions cannot be weak. Binutils version 2.20.1 or
  24811. higher and GNU C Library version 2.11.1 are required to use this
  24812. feature.
  24813. 'interrupt'
  24814. 'interrupt_handler'
  24815. Many GCC back ends support attributes to indicate that a function
  24816. is an interrupt handler, which tells the compiler to generate
  24817. function entry and exit sequences that differ from those from
  24818. regular functions. The exact syntax and behavior are
  24819. target-specific; refer to the following subsections for details.
  24820. 'leaf'
  24821. Calls to external functions with this attribute must return to the
  24822. current compilation unit only by return or by exception handling.
  24823. In particular, a leaf function is not allowed to invoke callback
  24824. functions passed to it from the current compilation unit, directly
  24825. call functions exported by the unit, or 'longjmp' into the unit.
  24826. Leaf functions might still call functions from other compilation
  24827. units and thus they are not necessarily leaf in the sense that they
  24828. contain no function calls at all.
  24829. The attribute is intended for library functions to improve dataflow
  24830. analysis. The compiler takes the hint that any data not escaping
  24831. the current compilation unit cannot be used or modified by the leaf
  24832. function. For example, the 'sin' function is a leaf function, but
  24833. 'qsort' is not.
  24834. Note that leaf functions might indirectly run a signal handler
  24835. defined in the current compilation unit that uses static variables.
  24836. Similarly, when lazy symbol resolution is in effect, leaf functions
  24837. might invoke indirect functions whose resolver function or
  24838. implementation function is defined in the current compilation unit
  24839. and uses static variables. There is no standard-compliant way to
  24840. write such a signal handler, resolver function, or implementation
  24841. function, and the best that you can do is to remove the 'leaf'
  24842. attribute or mark all such static variables 'volatile'. Lastly,
  24843. for ELF-based systems that support symbol interposition, care
  24844. should be taken that functions defined in the current compilation
  24845. unit do not unexpectedly interpose other symbols based on the
  24846. defined standards mode and defined feature test macros; otherwise
  24847. an inadvertent callback would be added.
  24848. The attribute has no effect on functions defined within the current
  24849. compilation unit. This is to allow easy merging of multiple
  24850. compilation units into one, for example, by using the link-time
  24851. optimization. For this reason the attribute is not allowed on
  24852. types to annotate indirect calls.
  24853. 'malloc'
  24854. This tells the compiler that a function is 'malloc'-like, i.e.,
  24855. that the pointer P returned by the function cannot alias any other
  24856. pointer valid when the function returns, and moreover no pointers
  24857. to valid objects occur in any storage addressed by P.
  24858. Using this attribute can improve optimization. Compiler predicts
  24859. that a function with the attribute returns non-null in most cases.
  24860. Functions like 'malloc' and 'calloc' have this property because
  24861. they return a pointer to uninitialized or zeroed-out storage.
  24862. However, functions like 'realloc' do not have this property, as
  24863. they can return a pointer to storage containing pointers.
  24864. 'no_icf'
  24865. This function attribute prevents a functions from being merged with
  24866. another semantically equivalent function.
  24867. 'no_instrument_function'
  24868. If any of '-finstrument-functions', '-p', or '-pg' are given,
  24869. profiling function calls are generated at entry and exit of most
  24870. user-compiled functions. Functions with this attribute are not so
  24871. instrumented.
  24872. 'no_profile_instrument_function'
  24873. The 'no_profile_instrument_function' attribute on functions is used
  24874. to inform the compiler that it should not process any profile
  24875. feedback based optimization code instrumentation.
  24876. 'no_reorder'
  24877. Do not reorder functions or variables marked 'no_reorder' against
  24878. each other or top level assembler statements the executable. The
  24879. actual order in the program will depend on the linker command line.
  24880. Static variables marked like this are also not removed. This has a
  24881. similar effect as the '-fno-toplevel-reorder' option, but only
  24882. applies to the marked symbols.
  24883. 'no_sanitize ("SANITIZE_OPTION")'
  24884. The 'no_sanitize' attribute on functions is used to inform the
  24885. compiler that it should not do sanitization of all options
  24886. mentioned in SANITIZE_OPTION. A list of values acceptable by
  24887. '-fsanitize' option can be provided.
  24888. void __attribute__ ((no_sanitize ("alignment", "object-size")))
  24889. f () { /* Do something. */; }
  24890. void __attribute__ ((no_sanitize ("alignment,object-size")))
  24891. g () { /* Do something. */; }
  24892. 'no_sanitize_address'
  24893. 'no_address_safety_analysis'
  24894. The 'no_sanitize_address' attribute on functions is used to inform
  24895. the compiler that it should not instrument memory accesses in the
  24896. function when compiling with the '-fsanitize=address' option. The
  24897. 'no_address_safety_analysis' is a deprecated alias of the
  24898. 'no_sanitize_address' attribute, new code should use
  24899. 'no_sanitize_address'.
  24900. 'no_sanitize_thread'
  24901. The 'no_sanitize_thread' attribute on functions is used to inform
  24902. the compiler that it should not instrument memory accesses in the
  24903. function when compiling with the '-fsanitize=thread' option.
  24904. 'no_sanitize_undefined'
  24905. The 'no_sanitize_undefined' attribute on functions is used to
  24906. inform the compiler that it should not check for undefined behavior
  24907. in the function when compiling with the '-fsanitize=undefined'
  24908. option.
  24909. 'no_split_stack'
  24910. If '-fsplit-stack' is given, functions have a small prologue which
  24911. decides whether to split the stack. Functions with the
  24912. 'no_split_stack' attribute do not have that prologue, and thus may
  24913. run with only a small amount of stack space available.
  24914. 'no_stack_limit'
  24915. This attribute locally overrides the '-fstack-limit-register' and
  24916. '-fstack-limit-symbol' command-line options; it has the effect of
  24917. disabling stack limit checking in the function it applies to.
  24918. 'noclone'
  24919. This function attribute prevents a function from being considered
  24920. for cloning--a mechanism that produces specialized copies of
  24921. functions and which is (currently) performed by interprocedural
  24922. constant propagation.
  24923. 'noinline'
  24924. This function attribute prevents a function from being considered
  24925. for inlining. If the function does not have side effects, there
  24926. are optimizations other than inlining that cause function calls to
  24927. be optimized away, although the function call is live. To keep
  24928. such calls from being optimized away, put
  24929. asm ("");
  24930. (*note Extended Asm::) in the called function, to serve as a
  24931. special side effect.
  24932. 'noipa'
  24933. Disable interprocedural optimizations between the function with
  24934. this attribute and its callers, as if the body of the function is
  24935. not available when optimizing callers and the callers are
  24936. unavailable when optimizing the body. This attribute implies
  24937. 'noinline', 'noclone' and 'no_icf' attributes. However, this
  24938. attribute is not equivalent to a combination of other attributes,
  24939. because its purpose is to suppress existing and future
  24940. optimizations employing interprocedural analysis, including those
  24941. that do not have an attribute suitable for disabling them
  24942. individually. This attribute is supported mainly for the purpose
  24943. of testing the compiler.
  24944. 'nonnull'
  24945. 'nonnull (ARG-INDEX, ...)'
  24946. The 'nonnull' attribute may be applied to a function that takes at
  24947. least one argument of a pointer type. It indicates that the
  24948. referenced arguments must be non-null pointers. For instance, the
  24949. declaration:
  24950. extern void *
  24951. my_memcpy (void *dest, const void *src, size_t len)
  24952. __attribute__((nonnull (1, 2)));
  24953. causes the compiler to check that, in calls to 'my_memcpy',
  24954. arguments DEST and SRC are non-null. If the compiler determines
  24955. that a null pointer is passed in an argument slot marked as
  24956. non-null, and the '-Wnonnull' option is enabled, a warning is
  24957. issued. *Note Warning Options::. Unless disabled by the
  24958. '-fno-delete-null-pointer-checks' option the compiler may also
  24959. perform optimizations based on the knowledge that certain function
  24960. arguments cannot be null. In addition, the
  24961. '-fisolate-erroneous-paths-attribute' option can be specified to
  24962. have GCC transform calls with null arguments to non-null functions
  24963. into traps. *Note Optimize Options::.
  24964. If no ARG-INDEX is given to the 'nonnull' attribute, all pointer
  24965. arguments are marked as non-null. To illustrate, the following
  24966. declaration is equivalent to the previous example:
  24967. extern void *
  24968. my_memcpy (void *dest, const void *src, size_t len)
  24969. __attribute__((nonnull));
  24970. 'noplt'
  24971. The 'noplt' attribute is the counterpart to option '-fno-plt'.
  24972. Calls to functions marked with this attribute in
  24973. position-independent code do not use the PLT.
  24974. /* Externally defined function foo. */
  24975. int foo () __attribute__ ((noplt));
  24976. int
  24977. main (/* ... */)
  24978. {
  24979. /* ... */
  24980. foo ();
  24981. /* ... */
  24982. }
  24983. The 'noplt' attribute on function 'foo' tells the compiler to
  24984. assume that the function 'foo' is externally defined and that the
  24985. call to 'foo' must avoid the PLT in position-independent code.
  24986. In position-dependent code, a few targets also convert calls to
  24987. functions that are marked to not use the PLT to use the GOT
  24988. instead.
  24989. 'noreturn'
  24990. A few standard library functions, such as 'abort' and 'exit',
  24991. cannot return. GCC knows this automatically. Some programs define
  24992. their own functions that never return. You can declare them
  24993. 'noreturn' to tell the compiler this fact. For example,
  24994. void fatal () __attribute__ ((noreturn));
  24995. void
  24996. fatal (/* ... */)
  24997. {
  24998. /* ... */ /* Print error message. */ /* ... */
  24999. exit (1);
  25000. }
  25001. The 'noreturn' keyword tells the compiler to assume that 'fatal'
  25002. cannot return. It can then optimize without regard to what would
  25003. happen if 'fatal' ever did return. This makes slightly better
  25004. code. More importantly, it helps avoid spurious warnings of
  25005. uninitialized variables.
  25006. The 'noreturn' keyword does not affect the exceptional path when
  25007. that applies: a 'noreturn'-marked function may still return to the
  25008. caller by throwing an exception or calling 'longjmp'.
  25009. In order to preserve backtraces, GCC will never turn calls to
  25010. 'noreturn' functions into tail calls.
  25011. Do not assume that registers saved by the calling function are
  25012. restored before calling the 'noreturn' function.
  25013. It does not make sense for a 'noreturn' function to have a return
  25014. type other than 'void'.
  25015. 'nothrow'
  25016. The 'nothrow' attribute is used to inform the compiler that a
  25017. function cannot throw an exception. For example, most functions in
  25018. the standard C library can be guaranteed not to throw an exception
  25019. with the notable exceptions of 'qsort' and 'bsearch' that take
  25020. function pointer arguments.
  25021. 'optimize (LEVEL, ...)'
  25022. 'optimize (STRING, ...)'
  25023. The 'optimize' attribute is used to specify that a function is to
  25024. be compiled with different optimization options than specified on
  25025. the command line. Valid arguments are constant non-negative
  25026. integers and strings. Each numeric argument specifies an
  25027. optimization LEVEL. Each STRING argument consists of one or more
  25028. comma-separated substrings. Each substring that begins with the
  25029. letter 'O' refers to an optimization option such as '-O0' or '-Os'.
  25030. Other substrings are taken as suffixes to the '-f' prefix jointly
  25031. forming the name of an optimization option. *Note Optimize
  25032. Options::.
  25033. '#pragma GCC optimize' can be used to set optimization options for
  25034. more than one function. *Note Function Specific Option Pragmas::,
  25035. for details about the pragma.
  25036. Providing multiple strings as arguments separated by commas to
  25037. specify multiple options is equivalent to separating the option
  25038. suffixes with a comma (',') within a single string. Spaces are not
  25039. permitted within the strings.
  25040. Not every optimization option that starts with the -F prefix
  25041. specified by the attribute necessarily has an effect on the
  25042. function. The 'optimize' attribute should be used for debugging
  25043. purposes only. It is not suitable in production code.
  25044. 'patchable_function_entry'
  25045. In case the target's text segment can be made writable at run time
  25046. by any means, padding the function entry with a number of NOPs can
  25047. be used to provide a universal tool for instrumentation.
  25048. The 'patchable_function_entry' function attribute can be used to
  25049. change the number of NOPs to any desired value. The two-value
  25050. syntax is the same as for the command-line switch
  25051. '-fpatchable-function-entry=N,M', generating N NOPs, with the
  25052. function entry point before the Mth NOP instruction. M defaults to
  25053. 0 if omitted e.g. function entry point is before the first NOP.
  25054. If patchable function entries are enabled globally using the
  25055. command-line option '-fpatchable-function-entry=N,M', then you must
  25056. disable instrumentation on all functions that are part of the
  25057. instrumentation framework with the attribute
  25058. 'patchable_function_entry (0)' to prevent recursion.
  25059. 'pure'
  25060. Calls to functions that have no observable effects on the state of
  25061. the program other than to return a value may lend themselves to
  25062. optimizations such as common subexpression elimination. Declaring
  25063. such functions with the 'pure' attribute allows GCC to avoid
  25064. emitting some calls in repeated invocations of the function with
  25065. the same argument values.
  25066. The 'pure' attribute prohibits a function from modifying the state
  25067. of the program that is observable by means other than inspecting
  25068. the function's return value. However, functions declared with the
  25069. 'pure' attribute can safely read any non-volatile objects, and
  25070. modify the value of objects in a way that does not affect their
  25071. return value or the observable state of the program.
  25072. For example,
  25073. int hash (char *) __attribute__ ((pure));
  25074. tells GCC that subsequent calls to the function 'hash' with the
  25075. same string can be replaced by the result of the first call
  25076. provided the state of the program observable by 'hash', including
  25077. the contents of the array itself, does not change in between. Even
  25078. though 'hash' takes a non-const pointer argument it must not modify
  25079. the array it points to, or any other object whose value the rest of
  25080. the program may depend on. However, the caller may safely change
  25081. the contents of the array between successive calls to the function
  25082. (doing so disables the optimization). The restriction also applies
  25083. to member objects referenced by the 'this' pointer in C++
  25084. non-static member functions.
  25085. Some common examples of pure functions are 'strlen' or 'memcmp'.
  25086. Interesting non-pure functions are functions with infinite loops or
  25087. those depending on volatile memory or other system resource, that
  25088. may change between consecutive calls (such as the standard C 'feof'
  25089. function in a multithreading environment).
  25090. The 'pure' attribute imposes similar but looser restrictions on a
  25091. function's definition than the 'const' attribute: 'pure' allows the
  25092. function to read any non-volatile memory, even if it changes in
  25093. between successive invocations of the function. Declaring the same
  25094. function with both the 'pure' and the 'const' attribute is
  25095. diagnosed. Because a pure function cannot have any observable side
  25096. effects it does not make sense for such a function to return
  25097. 'void'. Declaring such a function is diagnosed.
  25098. 'returns_nonnull'
  25099. The 'returns_nonnull' attribute specifies that the function return
  25100. value should be a non-null pointer. For instance, the declaration:
  25101. extern void *
  25102. mymalloc (size_t len) __attribute__((returns_nonnull));
  25103. lets the compiler optimize callers based on the knowledge that the
  25104. return value will never be null.
  25105. 'returns_twice'
  25106. The 'returns_twice' attribute tells the compiler that a function
  25107. may return more than one time. The compiler ensures that all
  25108. registers are dead before calling such a function and emits a
  25109. warning about the variables that may be clobbered after the second
  25110. return from the function. Examples of such functions are 'setjmp'
  25111. and 'vfork'. The 'longjmp'-like counterpart of such function, if
  25112. any, might need to be marked with the 'noreturn' attribute.
  25113. 'section ("SECTION-NAME")'
  25114. Normally, the compiler places the code it generates in the 'text'
  25115. section. Sometimes, however, you need additional sections, or you
  25116. need certain particular functions to appear in special sections.
  25117. The 'section' attribute specifies that a function lives in a
  25118. particular section. For example, the declaration:
  25119. extern void foobar (void) __attribute__ ((section ("bar")));
  25120. puts the function 'foobar' in the 'bar' section.
  25121. Some file formats do not support arbitrary sections so the
  25122. 'section' attribute is not available on all platforms. If you need
  25123. to map the entire contents of a module to a particular section,
  25124. consider using the facilities of the linker instead.
  25125. 'sentinel'
  25126. 'sentinel (POSITION)'
  25127. This function attribute indicates that an argument in a call to the
  25128. function is expected to be an explicit 'NULL'. The attribute is
  25129. only valid on variadic functions. By default, the sentinel is
  25130. expected to be the last argument of the function call. If the
  25131. optional POSITION argument is specified to the attribute, the
  25132. sentinel must be located at POSITION counting backwards from the
  25133. end of the argument list.
  25134. __attribute__ ((sentinel))
  25135. is equivalent to
  25136. __attribute__ ((sentinel(0)))
  25137. The attribute is automatically set with a position of 0 for the
  25138. built-in functions 'execl' and 'execlp'. The built-in function
  25139. 'execle' has the attribute set with a position of 1.
  25140. A valid 'NULL' in this context is defined as zero with any object
  25141. pointer type. If your system defines the 'NULL' macro with an
  25142. integer type then you need to add an explicit cast. During
  25143. installation GCC replaces the system '<stddef.h>' header with a
  25144. copy that redefines NULL appropriately.
  25145. The warnings for missing or incorrect sentinels are enabled with
  25146. '-Wformat'.
  25147. 'simd'
  25148. 'simd("MASK")'
  25149. This attribute enables creation of one or more function versions
  25150. that can process multiple arguments using SIMD instructions from a
  25151. single invocation. Specifying this attribute allows compiler to
  25152. assume that such versions are available at link time (provided in
  25153. the same or another translation unit). Generated versions are
  25154. target-dependent and described in the corresponding Vector ABI
  25155. document. For x86_64 target this document can be found
  25156. here (https://sourceware.org/glibc/wiki/libmvec?action=AttachFile&do=view&target=VectorABI.txt).
  25157. The optional argument MASK may have the value 'notinbranch' or
  25158. 'inbranch', and instructs the compiler to generate non-masked or
  25159. masked clones correspondingly. By default, all clones are
  25160. generated.
  25161. If the attribute is specified and '#pragma omp declare simd' is
  25162. present on a declaration and the '-fopenmp' or '-fopenmp-simd'
  25163. switch is specified, then the attribute is ignored.
  25164. 'stack_protect'
  25165. This attribute adds stack protection code to the function if flags
  25166. '-fstack-protector', '-fstack-protector-strong' or
  25167. '-fstack-protector-explicit' are set.
  25168. 'target (STRING, ...)'
  25169. Multiple target back ends implement the 'target' attribute to
  25170. specify that a function is to be compiled with different target
  25171. options than specified on the command line. One or more strings
  25172. can be provided as arguments. Each string consists of one or more
  25173. comma-separated suffixes to the '-m' prefix jointly forming the
  25174. name of a machine-dependent option. *Note Machine-Dependent
  25175. Options: Submodel Options.
  25176. The 'target' attribute can be used for instance to have a function
  25177. compiled with a different ISA (instruction set architecture) than
  25178. the default. '#pragma GCC target' can be used to specify
  25179. target-specific options for more than one function. *Note Function
  25180. Specific Option Pragmas::, for details about the pragma.
  25181. For instance, on an x86, you could declare one function with the
  25182. 'target("sse4.1,arch=core2")' attribute and another with
  25183. 'target("sse4a,arch=amdfam10")'. This is equivalent to compiling
  25184. the first function with '-msse4.1' and '-march=core2' options, and
  25185. the second function with '-msse4a' and '-march=amdfam10' options.
  25186. It is up to you to make sure that a function is only invoked on a
  25187. machine that supports the particular ISA it is compiled for (for
  25188. example by using 'cpuid' on x86 to determine what feature bits and
  25189. architecture family are used).
  25190. int core2_func (void) __attribute__ ((__target__ ("arch=core2")));
  25191. int sse3_func (void) __attribute__ ((__target__ ("sse3")));
  25192. Providing multiple strings as arguments separated by commas to
  25193. specify multiple options is equivalent to separating the option
  25194. suffixes with a comma (',') within a single string. Spaces are not
  25195. permitted within the strings.
  25196. The options supported are specific to each target; refer to *note
  25197. x86 Function Attributes::, *note PowerPC Function Attributes::,
  25198. *note ARM Function Attributes::, *note AArch64 Function
  25199. Attributes::, *note Nios II Function Attributes::, and *note S/390
  25200. Function Attributes:: for details.
  25201. 'target_clones (OPTIONS)'
  25202. The 'target_clones' attribute is used to specify that a function be
  25203. cloned into multiple versions compiled with different target
  25204. options than specified on the command line. The supported options
  25205. and restrictions are the same as for 'target' attribute.
  25206. For instance, on an x86, you could compile a function with
  25207. 'target_clones("sse4.1,avx")'. GCC creates two function clones,
  25208. one compiled with '-msse4.1' and another with '-mavx'.
  25209. On a PowerPC, you can compile a function with
  25210. 'target_clones("cpu=power9,default")'. GCC will create two
  25211. function clones, one compiled with '-mcpu=power9' and another with
  25212. the default options. GCC must be configured to use GLIBC 2.23 or
  25213. newer in order to use the 'target_clones' attribute.
  25214. It also creates a resolver function (see the 'ifunc' attribute
  25215. above) that dynamically selects a clone suitable for current
  25216. architecture. The resolver is created only if there is a usage of
  25217. a function with 'target_clones' attribute.
  25218. 'unused'
  25219. This attribute, attached to a function, means that the function is
  25220. meant to be possibly unused. GCC does not produce a warning for
  25221. this function.
  25222. 'used'
  25223. This attribute, attached to a function, means that code must be
  25224. emitted for the function even if it appears that the function is
  25225. not referenced. This is useful, for example, when the function is
  25226. referenced only in inline assembly.
  25227. When applied to a member function of a C++ class template, the
  25228. attribute also means that the function is instantiated if the class
  25229. itself is instantiated.
  25230. 'visibility ("VISIBILITY_TYPE")'
  25231. This attribute affects the linkage of the declaration to which it
  25232. is attached. It can be applied to variables (*note Common Variable
  25233. Attributes::) and types (*note Common Type Attributes::) as well as
  25234. functions.
  25235. There are four supported VISIBILITY_TYPE values: default, hidden,
  25236. protected or internal visibility.
  25237. void __attribute__ ((visibility ("protected")))
  25238. f () { /* Do something. */; }
  25239. int i __attribute__ ((visibility ("hidden")));
  25240. The possible values of VISIBILITY_TYPE correspond to the visibility
  25241. settings in the ELF gABI.
  25242. 'default'
  25243. Default visibility is the normal case for the object file
  25244. format. This value is available for the visibility attribute
  25245. to override other options that may change the assumed
  25246. visibility of entities.
  25247. On ELF, default visibility means that the declaration is
  25248. visible to other modules and, in shared libraries, means that
  25249. the declared entity may be overridden.
  25250. On Darwin, default visibility means that the declaration is
  25251. visible to other modules.
  25252. Default visibility corresponds to "external linkage" in the
  25253. language.
  25254. 'hidden'
  25255. Hidden visibility indicates that the entity declared has a new
  25256. form of linkage, which we call "hidden linkage". Two
  25257. declarations of an object with hidden linkage refer to the
  25258. same object if they are in the same shared object.
  25259. 'internal'
  25260. Internal visibility is like hidden visibility, but with
  25261. additional processor specific semantics. Unless otherwise
  25262. specified by the psABI, GCC defines internal visibility to
  25263. mean that a function is _never_ called from another module.
  25264. Compare this with hidden functions which, while they cannot be
  25265. referenced directly by other modules, can be referenced
  25266. indirectly via function pointers. By indicating that a
  25267. function cannot be called from outside the module, GCC may for
  25268. instance omit the load of a PIC register since it is known
  25269. that the calling function loaded the correct value.
  25270. 'protected'
  25271. Protected visibility is like default visibility except that it
  25272. indicates that references within the defining module bind to
  25273. the definition in that module. That is, the declared entity
  25274. cannot be overridden by another module.
  25275. All visibilities are supported on many, but not all, ELF targets
  25276. (supported when the assembler supports the '.visibility'
  25277. pseudo-op). Default visibility is supported everywhere. Hidden
  25278. visibility is supported on Darwin targets.
  25279. The visibility attribute should be applied only to declarations
  25280. that would otherwise have external linkage. The attribute should
  25281. be applied consistently, so that the same entity should not be
  25282. declared with different settings of the attribute.
  25283. In C++, the visibility attribute applies to types as well as
  25284. functions and objects, because in C++ types have linkage. A class
  25285. must not have greater visibility than its non-static data member
  25286. types and bases, and class members default to the visibility of
  25287. their class. Also, a declaration without explicit visibility is
  25288. limited to the visibility of its type.
  25289. In C++, you can mark member functions and static member variables
  25290. of a class with the visibility attribute. This is useful if you
  25291. know a particular method or static member variable should only be
  25292. used from one shared object; then you can mark it hidden while the
  25293. rest of the class has default visibility. Care must be taken to
  25294. avoid breaking the One Definition Rule; for example, it is usually
  25295. not useful to mark an inline method as hidden without marking the
  25296. whole class as hidden.
  25297. A C++ namespace declaration can also have the visibility attribute.
  25298. namespace nspace1 __attribute__ ((visibility ("protected")))
  25299. { /* Do something. */; }
  25300. This attribute applies only to the particular namespace body, not
  25301. to other definitions of the same namespace; it is equivalent to
  25302. using '#pragma GCC visibility' before and after the namespace
  25303. definition (*note Visibility Pragmas::).
  25304. In C++, if a template argument has limited visibility, this
  25305. restriction is implicitly propagated to the template instantiation.
  25306. Otherwise, template instantiations and specializations default to
  25307. the visibility of their template.
  25308. If both the template and enclosing class have explicit visibility,
  25309. the visibility from the template is used.
  25310. 'warn_unused_result'
  25311. The 'warn_unused_result' attribute causes a warning to be emitted
  25312. if a caller of the function with this attribute does not use its
  25313. return value. This is useful for functions where not checking the
  25314. result is either a security problem or always a bug, such as
  25315. 'realloc'.
  25316. int fn () __attribute__ ((warn_unused_result));
  25317. int foo ()
  25318. {
  25319. if (fn () < 0) return -1;
  25320. fn ();
  25321. return 0;
  25322. }
  25323. results in warning on line 5.
  25324. 'weak'
  25325. The 'weak' attribute causes the declaration to be emitted as a weak
  25326. symbol rather than a global. This is primarily useful in defining
  25327. library functions that can be overridden in user code, though it
  25328. can also be used with non-function declarations. Weak symbols are
  25329. supported for ELF targets, and also for a.out targets when using
  25330. the GNU assembler and linker.
  25331. 'weakref'
  25332. 'weakref ("TARGET")'
  25333. The 'weakref' attribute marks a declaration as a weak reference.
  25334. Without arguments, it should be accompanied by an 'alias' attribute
  25335. naming the target symbol. Optionally, the TARGET may be given as
  25336. an argument to 'weakref' itself. In either case, 'weakref'
  25337. implicitly marks the declaration as 'weak'. Without a TARGET,
  25338. given as an argument to 'weakref' or to 'alias', 'weakref' is
  25339. equivalent to 'weak'.
  25340. static int x() __attribute__ ((weakref ("y")));
  25341. /* is equivalent to... */
  25342. static int x() __attribute__ ((weak, weakref, alias ("y")));
  25343. /* and to... */
  25344. static int x() __attribute__ ((weakref));
  25345. static int x() __attribute__ ((alias ("y")));
  25346. A weak reference is an alias that does not by itself require a
  25347. definition to be given for the target symbol. If the target symbol
  25348. is only referenced through weak references, then it becomes a
  25349. 'weak' undefined symbol. If it is directly referenced, however,
  25350. then such strong references prevail, and a definition is required
  25351. for the symbol, not necessarily in the same translation unit.
  25352. The effect is equivalent to moving all references to the alias to a
  25353. separate translation unit, renaming the alias to the aliased
  25354. symbol, declaring it as weak, compiling the two separate
  25355. translation units and performing a link with relocatable output
  25356. (ie: 'ld -r') on them.
  25357. At present, a declaration to which 'weakref' is attached can only
  25358. be 'static'.
  25359. 
  25360. File: gcc.info, Node: AArch64 Function Attributes, Next: AMD GCN Function Attributes, Prev: Common Function Attributes, Up: Function Attributes
  25361. 6.33.2 AArch64 Function Attributes
  25362. ----------------------------------
  25363. The following target-specific function attributes are available for the
  25364. AArch64 target. For the most part, these options mirror the behavior of
  25365. similar command-line options (*note AArch64 Options::), but on a
  25366. per-function basis.
  25367. 'general-regs-only'
  25368. Indicates that no floating-point or Advanced SIMD registers should
  25369. be used when generating code for this function. If the function
  25370. explicitly uses floating-point code, then the compiler gives an
  25371. error. This is the same behavior as that of the command-line
  25372. option '-mgeneral-regs-only'.
  25373. 'fix-cortex-a53-835769'
  25374. Indicates that the workaround for the Cortex-A53 erratum 835769
  25375. should be applied to this function. To explicitly disable the
  25376. workaround for this function specify the negated form:
  25377. 'no-fix-cortex-a53-835769'. This corresponds to the behavior of
  25378. the command line options '-mfix-cortex-a53-835769' and
  25379. '-mno-fix-cortex-a53-835769'.
  25380. 'cmodel='
  25381. Indicates that code should be generated for a particular code model
  25382. for this function. The behavior and permissible arguments are the
  25383. same as for the command line option '-mcmodel='.
  25384. 'strict-align'
  25385. 'no-strict-align'
  25386. 'strict-align' indicates that the compiler should not assume that
  25387. unaligned memory references are handled by the system. To allow
  25388. the compiler to assume that aligned memory references are handled
  25389. by the system, the inverse attribute 'no-strict-align' can be
  25390. specified. The behavior is same as for the command-line option
  25391. '-mstrict-align' and '-mno-strict-align'.
  25392. 'omit-leaf-frame-pointer'
  25393. Indicates that the frame pointer should be omitted for a leaf
  25394. function call. To keep the frame pointer, the inverse attribute
  25395. 'no-omit-leaf-frame-pointer' can be specified. These attributes
  25396. have the same behavior as the command-line options
  25397. '-momit-leaf-frame-pointer' and '-mno-omit-leaf-frame-pointer'.
  25398. 'tls-dialect='
  25399. Specifies the TLS dialect to use for this function. The behavior
  25400. and permissible arguments are the same as for the command-line
  25401. option '-mtls-dialect='.
  25402. 'arch='
  25403. Specifies the architecture version and architectural extensions to
  25404. use for this function. The behavior and permissible arguments are
  25405. the same as for the '-march=' command-line option.
  25406. 'tune='
  25407. Specifies the core for which to tune the performance of this
  25408. function. The behavior and permissible arguments are the same as
  25409. for the '-mtune=' command-line option.
  25410. 'cpu='
  25411. Specifies the core for which to tune the performance of this
  25412. function and also whose architectural features to use. The
  25413. behavior and valid arguments are the same as for the '-mcpu='
  25414. command-line option.
  25415. 'sign-return-address'
  25416. Select the function scope on which return address signing will be
  25417. applied. The behavior and permissible arguments are the same as
  25418. for the command-line option '-msign-return-address='. The default
  25419. value is 'none'. This attribute is deprecated. The
  25420. 'branch-protection' attribute should be used instead.
  25421. 'branch-protection'
  25422. Select the function scope on which branch protection will be
  25423. applied. The behavior and permissible arguments are the same as
  25424. for the command-line option '-mbranch-protection='. The default
  25425. value is 'none'.
  25426. The above target attributes can be specified as follows:
  25427. __attribute__((target("ATTR-STRING")))
  25428. int
  25429. f (int a)
  25430. {
  25431. return a + 5;
  25432. }
  25433. where 'ATTR-STRING' is one of the attribute strings specified above.
  25434. Additionally, the architectural extension string may be specified on
  25435. its own. This can be used to turn on and off particular architectural
  25436. extensions without having to specify a particular architecture version
  25437. or core. Example:
  25438. __attribute__((target("+crc+nocrypto")))
  25439. int
  25440. foo (int a)
  25441. {
  25442. return a + 5;
  25443. }
  25444. In this example 'target("+crc+nocrypto")' enables the 'crc' extension
  25445. and disables the 'crypto' extension for the function 'foo' without
  25446. modifying an existing '-march=' or '-mcpu' option.
  25447. Multiple target function attributes can be specified by separating them
  25448. with a comma. For example:
  25449. __attribute__((target("arch=armv8-a+crc+crypto,tune=cortex-a53")))
  25450. int
  25451. foo (int a)
  25452. {
  25453. return a + 5;
  25454. }
  25455. is valid and compiles function 'foo' for ARMv8-A with 'crc' and
  25456. 'crypto' extensions and tunes it for 'cortex-a53'.
  25457. 6.33.2.1 Inlining rules
  25458. .......................
  25459. Specifying target attributes on individual functions or performing
  25460. link-time optimization across translation units compiled with different
  25461. target options can affect function inlining rules:
  25462. In particular, a caller function can inline a callee function only if
  25463. the architectural features available to the callee are a subset of the
  25464. features available to the caller. For example: A function 'foo'
  25465. compiled with '-march=armv8-a+crc', or tagged with the equivalent
  25466. 'arch=armv8-a+crc' attribute, can inline a function 'bar' compiled with
  25467. '-march=armv8-a+nocrc' because the all the architectural features that
  25468. function 'bar' requires are available to function 'foo'. Conversely,
  25469. function 'bar' cannot inline function 'foo'.
  25470. Additionally inlining a function compiled with '-mstrict-align' into a
  25471. function compiled without '-mstrict-align' is not allowed. However,
  25472. inlining a function compiled without '-mstrict-align' into a function
  25473. compiled with '-mstrict-align' is allowed.
  25474. Note that CPU tuning options and attributes such as the '-mcpu=',
  25475. '-mtune=' do not inhibit inlining unless the CPU specified by the
  25476. '-mcpu=' option or the 'cpu=' attribute conflicts with the architectural
  25477. feature rules specified above.
  25478. 
  25479. File: gcc.info, Node: AMD GCN Function Attributes, Next: ARC Function Attributes, Prev: AArch64 Function Attributes, Up: Function Attributes
  25480. 6.33.3 AMD GCN Function Attributes
  25481. ----------------------------------
  25482. These function attributes are supported by the AMD GCN back end:
  25483. 'amdgpu_hsa_kernel'
  25484. This attribute indicates that the corresponding function should be
  25485. compiled as a kernel function, that is an entry point that can be
  25486. invoked from the host via the HSA runtime library. By default
  25487. functions are only callable only from other GCN functions.
  25488. This attribute is implicitly applied to any function named 'main',
  25489. using default parameters.
  25490. Kernel functions may return an integer value, which will be written
  25491. to a conventional place within the HSA "kernargs" region.
  25492. The attribute parameters configure what values are passed into the
  25493. kernel function by the GPU drivers, via the initial register state.
  25494. Some values are used by the compiler, and therefore forced on.
  25495. Enabling other options may break assumptions in the compiler and/or
  25496. run-time libraries.
  25497. 'private_segment_buffer'
  25498. Set 'enable_sgpr_private_segment_buffer' flag. Always on
  25499. (required to locate the stack).
  25500. 'dispatch_ptr'
  25501. Set 'enable_sgpr_dispatch_ptr' flag. Always on (required to
  25502. locate the launch dimensions).
  25503. 'queue_ptr'
  25504. Set 'enable_sgpr_queue_ptr' flag. Always on (required to
  25505. convert address spaces).
  25506. 'kernarg_segment_ptr'
  25507. Set 'enable_sgpr_kernarg_segment_ptr' flag. Always on
  25508. (required to locate the kernel arguments, "kernargs").
  25509. 'dispatch_id'
  25510. Set 'enable_sgpr_dispatch_id' flag.
  25511. 'flat_scratch_init'
  25512. Set 'enable_sgpr_flat_scratch_init' flag.
  25513. 'private_segment_size'
  25514. Set 'enable_sgpr_private_segment_size' flag.
  25515. 'grid_workgroup_count_X'
  25516. Set 'enable_sgpr_grid_workgroup_count_x' flag. Always on
  25517. (required to use OpenACC/OpenMP).
  25518. 'grid_workgroup_count_Y'
  25519. Set 'enable_sgpr_grid_workgroup_count_y' flag.
  25520. 'grid_workgroup_count_Z'
  25521. Set 'enable_sgpr_grid_workgroup_count_z' flag.
  25522. 'workgroup_id_X'
  25523. Set 'enable_sgpr_workgroup_id_x' flag.
  25524. 'workgroup_id_Y'
  25525. Set 'enable_sgpr_workgroup_id_y' flag.
  25526. 'workgroup_id_Z'
  25527. Set 'enable_sgpr_workgroup_id_z' flag.
  25528. 'workgroup_info'
  25529. Set 'enable_sgpr_workgroup_info' flag.
  25530. 'private_segment_wave_offset'
  25531. Set 'enable_sgpr_private_segment_wave_byte_offset' flag.
  25532. Always on (required to locate the stack).
  25533. 'work_item_id_X'
  25534. Set 'enable_vgpr_workitem_id' parameter. Always on (can't be
  25535. disabled).
  25536. 'work_item_id_Y'
  25537. Set 'enable_vgpr_workitem_id' parameter. Always on (required
  25538. to enable vectorization.)
  25539. 'work_item_id_Z'
  25540. Set 'enable_vgpr_workitem_id' parameter. Always on (required
  25541. to use OpenACC/OpenMP).
  25542. 
  25543. File: gcc.info, Node: ARC Function Attributes, Next: ARM Function Attributes, Prev: AMD GCN Function Attributes, Up: Function Attributes
  25544. 6.33.4 ARC Function Attributes
  25545. ------------------------------
  25546. These function attributes are supported by the ARC back end:
  25547. 'interrupt'
  25548. Use this attribute to indicate that the specified function is an
  25549. interrupt handler. The compiler generates function entry and exit
  25550. sequences suitable for use in an interrupt handler when this
  25551. attribute is present.
  25552. On the ARC, you must specify the kind of interrupt to be handled in
  25553. a parameter to the interrupt attribute like this:
  25554. void f () __attribute__ ((interrupt ("ilink1")));
  25555. Permissible values for this parameter are: 'ilink1' and 'ilink2'.
  25556. 'long_call'
  25557. 'medium_call'
  25558. 'short_call'
  25559. These attributes specify how a particular function is called.
  25560. These attributes override the '-mlong-calls' and '-mmedium-calls'
  25561. (*note ARC Options::) command-line switches and '#pragma
  25562. long_calls' settings.
  25563. For ARC, a function marked with the 'long_call' attribute is always
  25564. called using register-indirect jump-and-link instructions, thereby
  25565. enabling the called function to be placed anywhere within the
  25566. 32-bit address space. A function marked with the 'medium_call'
  25567. attribute will always be close enough to be called with an
  25568. unconditional branch-and-link instruction, which has a 25-bit
  25569. offset from the call site. A function marked with the 'short_call'
  25570. attribute will always be close enough to be called with a
  25571. conditional branch-and-link instruction, which has a 21-bit offset
  25572. from the call site.
  25573. 'jli_always'
  25574. Forces a particular function to be called using 'jli' instruction.
  25575. The 'jli' instruction makes use of a table stored into '.jlitab'
  25576. section, which holds the location of the functions which are
  25577. addressed using this instruction.
  25578. 'jli_fixed'
  25579. Identical like the above one, but the location of the function in
  25580. the 'jli' table is known and given as an attribute parameter.
  25581. 'secure_call'
  25582. This attribute allows one to mark secure-code functions that are
  25583. callable from normal mode. The location of the secure call
  25584. function into the 'sjli' table needs to be passed as argument.
  25585. 
  25586. File: gcc.info, Node: ARM Function Attributes, Next: AVR Function Attributes, Prev: ARC Function Attributes, Up: Function Attributes
  25587. 6.33.5 ARM Function Attributes
  25588. ------------------------------
  25589. These function attributes are supported for ARM targets:
  25590. 'general-regs-only'
  25591. Indicates that no floating-point or Advanced SIMD registers should
  25592. be used when generating code for this function. If the function
  25593. explicitly uses floating-point code, then the compiler gives an
  25594. error. This is the same behavior as that of the command-line
  25595. option '-mgeneral-regs-only'.
  25596. 'interrupt'
  25597. Use this attribute to indicate that the specified function is an
  25598. interrupt handler. The compiler generates function entry and exit
  25599. sequences suitable for use in an interrupt handler when this
  25600. attribute is present.
  25601. You can specify the kind of interrupt to be handled by adding an
  25602. optional parameter to the interrupt attribute like this:
  25603. void f () __attribute__ ((interrupt ("IRQ")));
  25604. Permissible values for this parameter are: 'IRQ', 'FIQ', 'SWI',
  25605. 'ABORT' and 'UNDEF'.
  25606. On ARMv7-M the interrupt type is ignored, and the attribute means
  25607. the function may be called with a word-aligned stack pointer.
  25608. 'isr'
  25609. Use this attribute on ARM to write Interrupt Service Routines.
  25610. This is an alias to the 'interrupt' attribute above.
  25611. 'long_call'
  25612. 'short_call'
  25613. These attributes specify how a particular function is called.
  25614. These attributes override the '-mlong-calls' (*note ARM Options::)
  25615. command-line switch and '#pragma long_calls' settings. For ARM,
  25616. the 'long_call' attribute indicates that the function might be far
  25617. away from the call site and require a different (more expensive)
  25618. calling sequence. The 'short_call' attribute always places the
  25619. offset to the function from the call site into the 'BL' instruction
  25620. directly.
  25621. 'naked'
  25622. This attribute allows the compiler to construct the requisite
  25623. function declaration, while allowing the body of the function to be
  25624. assembly code. The specified function will not have
  25625. prologue/epilogue sequences generated by the compiler. Only basic
  25626. 'asm' statements can safely be included in naked functions (*note
  25627. Basic Asm::). While using extended 'asm' or a mixture of basic
  25628. 'asm' and C code may appear to work, they cannot be depended upon
  25629. to work reliably and are not supported.
  25630. 'pcs'
  25631. The 'pcs' attribute can be used to control the calling convention
  25632. used for a function on ARM. The attribute takes an argument that
  25633. specifies the calling convention to use.
  25634. When compiling using the AAPCS ABI (or a variant of it) then valid
  25635. values for the argument are '"aapcs"' and '"aapcs-vfp"'. In order
  25636. to use a variant other than '"aapcs"' then the compiler must be
  25637. permitted to use the appropriate co-processor registers (i.e., the
  25638. VFP registers must be available in order to use '"aapcs-vfp"').
  25639. For example,
  25640. /* Argument passed in r0, and result returned in r0+r1. */
  25641. double f2d (float) __attribute__((pcs("aapcs")));
  25642. Variadic functions always use the '"aapcs"' calling convention and
  25643. the compiler rejects attempts to specify an alternative.
  25644. 'target (OPTIONS)'
  25645. As discussed in *note Common Function Attributes::, this attribute
  25646. allows specification of target-specific compilation options.
  25647. On ARM, the following options are allowed:
  25648. 'thumb'
  25649. Force code generation in the Thumb (T16/T32) ISA, depending on
  25650. the architecture level.
  25651. 'arm'
  25652. Force code generation in the ARM (A32) ISA.
  25653. Functions from different modes can be inlined in the caller's
  25654. mode.
  25655. 'fpu='
  25656. Specifies the fpu for which to tune the performance of this
  25657. function. The behavior and permissible arguments are the same
  25658. as for the '-mfpu=' command-line option.
  25659. 'arch='
  25660. Specifies the architecture version and architectural
  25661. extensions to use for this function. The behavior and
  25662. permissible arguments are the same as for the '-march='
  25663. command-line option.
  25664. The above target attributes can be specified as follows:
  25665. __attribute__((target("arch=armv8-a+crc")))
  25666. int
  25667. f (int a)
  25668. {
  25669. return a + 5;
  25670. }
  25671. Additionally, the architectural extension string may be
  25672. specified on its own. This can be used to turn on and off
  25673. particular architectural extensions without having to specify
  25674. a particular architecture version or core. Example:
  25675. __attribute__((target("+crc+nocrypto")))
  25676. int
  25677. foo (int a)
  25678. {
  25679. return a + 5;
  25680. }
  25681. In this example 'target("+crc+nocrypto")' enables the 'crc'
  25682. extension and disables the 'crypto' extension for the function
  25683. 'foo' without modifying an existing '-march=' or '-mcpu'
  25684. option.
  25685. 
  25686. File: gcc.info, Node: AVR Function Attributes, Next: Blackfin Function Attributes, Prev: ARM Function Attributes, Up: Function Attributes
  25687. 6.33.6 AVR Function Attributes
  25688. ------------------------------
  25689. These function attributes are supported by the AVR back end:
  25690. 'interrupt'
  25691. Use this attribute to indicate that the specified function is an
  25692. interrupt handler. The compiler generates function entry and exit
  25693. sequences suitable for use in an interrupt handler when this
  25694. attribute is present.
  25695. On the AVR, the hardware globally disables interrupts when an
  25696. interrupt is executed. The first instruction of an interrupt
  25697. handler declared with this attribute is a 'SEI' instruction to
  25698. re-enable interrupts. See also the 'signal' function attribute
  25699. that does not insert a 'SEI' instruction. If both 'signal' and
  25700. 'interrupt' are specified for the same function, 'signal' is
  25701. silently ignored.
  25702. 'naked'
  25703. This attribute allows the compiler to construct the requisite
  25704. function declaration, while allowing the body of the function to be
  25705. assembly code. The specified function will not have
  25706. prologue/epilogue sequences generated by the compiler. Only basic
  25707. 'asm' statements can safely be included in naked functions (*note
  25708. Basic Asm::). While using extended 'asm' or a mixture of basic
  25709. 'asm' and C code may appear to work, they cannot be depended upon
  25710. to work reliably and are not supported.
  25711. 'no_gccisr'
  25712. Do not use '__gcc_isr' pseudo instructions in a function with the
  25713. 'interrupt' or 'signal' attribute aka. interrupt service routine
  25714. (ISR). Use this attribute if the preamble of the ISR prologue
  25715. should always read
  25716. push __zero_reg__
  25717. push __tmp_reg__
  25718. in __tmp_reg__, __SREG__
  25719. push __tmp_reg__
  25720. clr __zero_reg__
  25721. and accordingly for the postamble of the epilogue -- no matter
  25722. whether the mentioned registers are actually used in the ISR or
  25723. not. Situations where you might want to use this attribute
  25724. include:
  25725. * Code that (effectively) clobbers bits of 'SREG' other than the
  25726. 'I'-flag by writing to the memory location of 'SREG'.
  25727. * Code that uses inline assembler to jump to a different
  25728. function which expects (parts of) the prologue code as
  25729. outlined above to be present.
  25730. To disable '__gcc_isr' generation for the whole compilation unit,
  25731. there is option '-mno-gas-isr-prologues', *note AVR Options::.
  25732. 'OS_main'
  25733. 'OS_task'
  25734. On AVR, functions with the 'OS_main' or 'OS_task' attribute do not
  25735. save/restore any call-saved register in their prologue/epilogue.
  25736. The 'OS_main' attribute can be used when there _is guarantee_ that
  25737. interrupts are disabled at the time when the function is entered.
  25738. This saves resources when the stack pointer has to be changed to
  25739. set up a frame for local variables.
  25740. The 'OS_task' attribute can be used when there is _no guarantee_
  25741. that interrupts are disabled at that time when the function is
  25742. entered like for, e.g. task functions in a multi-threading
  25743. operating system. In that case, changing the stack pointer
  25744. register is guarded by save/clear/restore of the global interrupt
  25745. enable flag.
  25746. The differences to the 'naked' function attribute are:
  25747. * 'naked' functions do not have a return instruction whereas
  25748. 'OS_main' and 'OS_task' functions have a 'RET' or 'RETI'
  25749. return instruction.
  25750. * 'naked' functions do not set up a frame for local variables or
  25751. a frame pointer whereas 'OS_main' and 'OS_task' do this as
  25752. needed.
  25753. 'signal'
  25754. Use this attribute on the AVR to indicate that the specified
  25755. function is an interrupt handler. The compiler generates function
  25756. entry and exit sequences suitable for use in an interrupt handler
  25757. when this attribute is present.
  25758. See also the 'interrupt' function attribute.
  25759. The AVR hardware globally disables interrupts when an interrupt is
  25760. executed. Interrupt handler functions defined with the 'signal'
  25761. attribute do not re-enable interrupts. It is save to enable
  25762. interrupts in a 'signal' handler. This "save" only applies to the
  25763. code generated by the compiler and not to the IRQ layout of the
  25764. application which is responsibility of the application.
  25765. If both 'signal' and 'interrupt' are specified for the same
  25766. function, 'signal' is silently ignored.
  25767. 
  25768. File: gcc.info, Node: Blackfin Function Attributes, Next: CR16 Function Attributes, Prev: AVR Function Attributes, Up: Function Attributes
  25769. 6.33.7 Blackfin Function Attributes
  25770. -----------------------------------
  25771. These function attributes are supported by the Blackfin back end:
  25772. 'exception_handler'
  25773. Use this attribute on the Blackfin to indicate that the specified
  25774. function is an exception handler. The compiler generates function
  25775. entry and exit sequences suitable for use in an exception handler
  25776. when this attribute is present.
  25777. 'interrupt_handler'
  25778. Use this attribute to indicate that the specified function is an
  25779. interrupt handler. The compiler generates function entry and exit
  25780. sequences suitable for use in an interrupt handler when this
  25781. attribute is present.
  25782. 'kspisusp'
  25783. When used together with 'interrupt_handler', 'exception_handler' or
  25784. 'nmi_handler', code is generated to load the stack pointer from the
  25785. USP register in the function prologue.
  25786. 'l1_text'
  25787. This attribute specifies a function to be placed into L1
  25788. Instruction SRAM. The function is put into a specific section
  25789. named '.l1.text'. With '-mfdpic', function calls with a such
  25790. function as the callee or caller uses inlined PLT.
  25791. 'l2'
  25792. This attribute specifies a function to be placed into L2 SRAM. The
  25793. function is put into a specific section named '.l2.text'. With
  25794. '-mfdpic', callers of such functions use an inlined PLT.
  25795. 'longcall'
  25796. 'shortcall'
  25797. The 'longcall' attribute indicates that the function might be far
  25798. away from the call site and require a different (more expensive)
  25799. calling sequence. The 'shortcall' attribute indicates that the
  25800. function is always close enough for the shorter calling sequence to
  25801. be used. These attributes override the '-mlongcall' switch.
  25802. 'nesting'
  25803. Use this attribute together with 'interrupt_handler',
  25804. 'exception_handler' or 'nmi_handler' to indicate that the function
  25805. entry code should enable nested interrupts or exceptions.
  25806. 'nmi_handler'
  25807. Use this attribute on the Blackfin to indicate that the specified
  25808. function is an NMI handler. The compiler generates function entry
  25809. and exit sequences suitable for use in an NMI handler when this
  25810. attribute is present.
  25811. 'saveall'
  25812. Use this attribute to indicate that all registers except the stack
  25813. pointer should be saved in the prologue regardless of whether they
  25814. are used or not.
  25815. 
  25816. File: gcc.info, Node: CR16 Function Attributes, Next: C-SKY Function Attributes, Prev: Blackfin Function Attributes, Up: Function Attributes
  25817. 6.33.8 CR16 Function Attributes
  25818. -------------------------------
  25819. These function attributes are supported by the CR16 back end:
  25820. 'interrupt'
  25821. Use this attribute to indicate that the specified function is an
  25822. interrupt handler. The compiler generates function entry and exit
  25823. sequences suitable for use in an interrupt handler when this
  25824. attribute is present.
  25825. 
  25826. File: gcc.info, Node: C-SKY Function Attributes, Next: Epiphany Function Attributes, Prev: CR16 Function Attributes, Up: Function Attributes
  25827. 6.33.9 C-SKY Function Attributes
  25828. --------------------------------
  25829. These function attributes are supported by the C-SKY back end:
  25830. 'interrupt'
  25831. 'isr'
  25832. Use these attributes to indicate that the specified function is an
  25833. interrupt handler. The compiler generates function entry and exit
  25834. sequences suitable for use in an interrupt handler when either of
  25835. these attributes are present.
  25836. Use of these options requires the '-mistack' command-line option to
  25837. enable support for the necessary interrupt stack instructions.
  25838. They are ignored with a warning otherwise. *Note C-SKY Options::.
  25839. 'naked'
  25840. This attribute allows the compiler to construct the requisite
  25841. function declaration, while allowing the body of the function to be
  25842. assembly code. The specified function will not have
  25843. prologue/epilogue sequences generated by the compiler. Only basic
  25844. 'asm' statements can safely be included in naked functions (*note
  25845. Basic Asm::). While using extended 'asm' or a mixture of basic
  25846. 'asm' and C code may appear to work, they cannot be depended upon
  25847. to work reliably and are not supported.
  25848. 
  25849. File: gcc.info, Node: Epiphany Function Attributes, Next: H8/300 Function Attributes, Prev: C-SKY Function Attributes, Up: Function Attributes
  25850. 6.33.10 Epiphany Function Attributes
  25851. ------------------------------------
  25852. These function attributes are supported by the Epiphany back end:
  25853. 'disinterrupt'
  25854. This attribute causes the compiler to emit instructions to disable
  25855. interrupts for the duration of the given function.
  25856. 'forwarder_section'
  25857. This attribute modifies the behavior of an interrupt handler. The
  25858. interrupt handler may be in external memory which cannot be reached
  25859. by a branch instruction, so generate a local memory trampoline to
  25860. transfer control. The single parameter identifies the section
  25861. where the trampoline is placed.
  25862. 'interrupt'
  25863. Use this attribute to indicate that the specified function is an
  25864. interrupt handler. The compiler generates function entry and exit
  25865. sequences suitable for use in an interrupt handler when this
  25866. attribute is present. It may also generate a special section with
  25867. code to initialize the interrupt vector table.
  25868. On Epiphany targets one or more optional parameters can be added
  25869. like this:
  25870. void __attribute__ ((interrupt ("dma0, dma1"))) universal_dma_handler ();
  25871. Permissible values for these parameters are: 'reset',
  25872. 'software_exception', 'page_miss', 'timer0', 'timer1', 'message',
  25873. 'dma0', 'dma1', 'wand' and 'swi'. Multiple parameters indicate
  25874. that multiple entries in the interrupt vector table should be
  25875. initialized for this function, i.e. for each parameter NAME, a jump
  25876. to the function is emitted in the section ivt_entry_NAME. The
  25877. parameter(s) may be omitted entirely, in which case no interrupt
  25878. vector table entry is provided.
  25879. Note that interrupts are enabled inside the function unless the
  25880. 'disinterrupt' attribute is also specified.
  25881. The following examples are all valid uses of these attributes on
  25882. Epiphany targets:
  25883. void __attribute__ ((interrupt)) universal_handler ();
  25884. void __attribute__ ((interrupt ("dma1"))) dma1_handler ();
  25885. void __attribute__ ((interrupt ("dma0, dma1")))
  25886. universal_dma_handler ();
  25887. void __attribute__ ((interrupt ("timer0"), disinterrupt))
  25888. fast_timer_handler ();
  25889. void __attribute__ ((interrupt ("dma0, dma1"),
  25890. forwarder_section ("tramp")))
  25891. external_dma_handler ();
  25892. 'long_call'
  25893. 'short_call'
  25894. These attributes specify how a particular function is called.
  25895. These attributes override the '-mlong-calls' (*note Adapteva
  25896. Epiphany Options::) command-line switch and '#pragma long_calls'
  25897. settings.
  25898. 
  25899. File: gcc.info, Node: H8/300 Function Attributes, Next: IA-64 Function Attributes, Prev: Epiphany Function Attributes, Up: Function Attributes
  25900. 6.33.11 H8/300 Function Attributes
  25901. ----------------------------------
  25902. These function attributes are available for H8/300 targets:
  25903. 'function_vector'
  25904. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  25905. the specified function should be called through the function
  25906. vector. Calling a function through the function vector reduces
  25907. code size; however, the function vector has a limited size (maximum
  25908. 128 entries on the H8/300 and 64 entries on the H8/300H and H8S)
  25909. and shares space with the interrupt vector.
  25910. 'interrupt_handler'
  25911. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  25912. the specified function is an interrupt handler. The compiler
  25913. generates function entry and exit sequences suitable for use in an
  25914. interrupt handler when this attribute is present.
  25915. 'saveall'
  25916. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  25917. all registers except the stack pointer should be saved in the
  25918. prologue regardless of whether they are used or not.
  25919. 
  25920. File: gcc.info, Node: IA-64 Function Attributes, Next: M32C Function Attributes, Prev: H8/300 Function Attributes, Up: Function Attributes
  25921. 6.33.12 IA-64 Function Attributes
  25922. ---------------------------------
  25923. These function attributes are supported on IA-64 targets:
  25924. 'syscall_linkage'
  25925. This attribute is used to modify the IA-64 calling convention by
  25926. marking all input registers as live at all function exits. This
  25927. makes it possible to restart a system call after an interrupt
  25928. without having to save/restore the input registers. This also
  25929. prevents kernel data from leaking into application code.
  25930. 'version_id'
  25931. This IA-64 HP-UX attribute, attached to a global variable or
  25932. function, renames a symbol to contain a version string, thus
  25933. allowing for function level versioning. HP-UX system header files
  25934. may use function level versioning for some system calls.
  25935. extern int foo () __attribute__((version_id ("20040821")));
  25936. Calls to 'foo' are mapped to calls to 'foo{20040821}'.
  25937. 
  25938. File: gcc.info, Node: M32C Function Attributes, Next: M32R/D Function Attributes, Prev: IA-64 Function Attributes, Up: Function Attributes
  25939. 6.33.13 M32C Function Attributes
  25940. --------------------------------
  25941. These function attributes are supported by the M32C back end:
  25942. 'bank_switch'
  25943. When added to an interrupt handler with the M32C port, causes the
  25944. prologue and epilogue to use bank switching to preserve the
  25945. registers rather than saving them on the stack.
  25946. 'fast_interrupt'
  25947. Use this attribute on the M32C port to indicate that the specified
  25948. function is a fast interrupt handler. This is just like the
  25949. 'interrupt' attribute, except that 'freit' is used to return
  25950. instead of 'reit'.
  25951. 'function_vector'
  25952. On M16C/M32C targets, the 'function_vector' attribute declares a
  25953. special page subroutine call function. Use of this attribute
  25954. reduces the code size by 2 bytes for each call generated to the
  25955. subroutine. The argument to the attribute is the vector number
  25956. entry from the special page vector table which contains the 16
  25957. low-order bits of the subroutine's entry address. Each vector
  25958. table has special page number (18 to 255) that is used in 'jsrs'
  25959. instructions. Jump addresses of the routines are generated by
  25960. adding 0x0F0000 (in case of M16C targets) or 0xFF0000 (in case of
  25961. M32C targets), to the 2-byte addresses set in the vector table.
  25962. Therefore you need to ensure that all the special page vector
  25963. routines should get mapped within the address range 0x0F0000 to
  25964. 0x0FFFFF (for M16C) and 0xFF0000 to 0xFFFFFF (for M32C).
  25965. In the following example 2 bytes are saved for each call to
  25966. function 'foo'.
  25967. void foo (void) __attribute__((function_vector(0x18)));
  25968. void foo (void)
  25969. {
  25970. }
  25971. void bar (void)
  25972. {
  25973. foo();
  25974. }
  25975. If functions are defined in one file and are called in another
  25976. file, then be sure to write this declaration in both files.
  25977. This attribute is ignored for R8C target.
  25978. 'interrupt'
  25979. Use this attribute to indicate that the specified function is an
  25980. interrupt handler. The compiler generates function entry and exit
  25981. sequences suitable for use in an interrupt handler when this
  25982. attribute is present.
  25983. 
  25984. File: gcc.info, Node: M32R/D Function Attributes, Next: m68k Function Attributes, Prev: M32C Function Attributes, Up: Function Attributes
  25985. 6.33.14 M32R/D Function Attributes
  25986. ----------------------------------
  25987. These function attributes are supported by the M32R/D back end:
  25988. 'interrupt'
  25989. Use this attribute to indicate that the specified function is an
  25990. interrupt handler. The compiler generates function entry and exit
  25991. sequences suitable for use in an interrupt handler when this
  25992. attribute is present.
  25993. 'model (MODEL-NAME)'
  25994. On the M32R/D, use this attribute to set the addressability of an
  25995. object, and of the code generated for a function. The identifier
  25996. MODEL-NAME is one of 'small', 'medium', or 'large', representing
  25997. each of the code models.
  25998. Small model objects live in the lower 16MB of memory (so that their
  25999. addresses can be loaded with the 'ld24' instruction), and are
  26000. callable with the 'bl' instruction.
  26001. Medium model objects may live anywhere in the 32-bit address space
  26002. (the compiler generates 'seth/add3' instructions to load their
  26003. addresses), and are callable with the 'bl' instruction.
  26004. Large model objects may live anywhere in the 32-bit address space
  26005. (the compiler generates 'seth/add3' instructions to load their
  26006. addresses), and may not be reachable with the 'bl' instruction (the
  26007. compiler generates the much slower 'seth/add3/jl' instruction
  26008. sequence).
  26009. 
  26010. File: gcc.info, Node: m68k Function Attributes, Next: MCORE Function Attributes, Prev: M32R/D Function Attributes, Up: Function Attributes
  26011. 6.33.15 m68k Function Attributes
  26012. --------------------------------
  26013. These function attributes are supported by the m68k back end:
  26014. 'interrupt'
  26015. 'interrupt_handler'
  26016. Use this attribute to indicate that the specified function is an
  26017. interrupt handler. The compiler generates function entry and exit
  26018. sequences suitable for use in an interrupt handler when this
  26019. attribute is present. Either name may be used.
  26020. 'interrupt_thread'
  26021. Use this attribute on fido, a subarchitecture of the m68k, to
  26022. indicate that the specified function is an interrupt handler that
  26023. is designed to run as a thread. The compiler omits generate
  26024. prologue/epilogue sequences and replaces the return instruction
  26025. with a 'sleep' instruction. This attribute is available only on
  26026. fido.
  26027. 
  26028. File: gcc.info, Node: MCORE Function Attributes, Next: MeP Function Attributes, Prev: m68k Function Attributes, Up: Function Attributes
  26029. 6.33.16 MCORE Function Attributes
  26030. ---------------------------------
  26031. These function attributes are supported by the MCORE back end:
  26032. 'naked'
  26033. This attribute allows the compiler to construct the requisite
  26034. function declaration, while allowing the body of the function to be
  26035. assembly code. The specified function will not have
  26036. prologue/epilogue sequences generated by the compiler. Only basic
  26037. 'asm' statements can safely be included in naked functions (*note
  26038. Basic Asm::). While using extended 'asm' or a mixture of basic
  26039. 'asm' and C code may appear to work, they cannot be depended upon
  26040. to work reliably and are not supported.
  26041. 
  26042. File: gcc.info, Node: MeP Function Attributes, Next: MicroBlaze Function Attributes, Prev: MCORE Function Attributes, Up: Function Attributes
  26043. 6.33.17 MeP Function Attributes
  26044. -------------------------------
  26045. These function attributes are supported by the MeP back end:
  26046. 'disinterrupt'
  26047. On MeP targets, this attribute causes the compiler to emit
  26048. instructions to disable interrupts for the duration of the given
  26049. function.
  26050. 'interrupt'
  26051. Use this attribute to indicate that the specified function is an
  26052. interrupt handler. The compiler generates function entry and exit
  26053. sequences suitable for use in an interrupt handler when this
  26054. attribute is present.
  26055. 'near'
  26056. This attribute causes the compiler to assume the called function is
  26057. close enough to use the normal calling convention, overriding the
  26058. '-mtf' command-line option.
  26059. 'far'
  26060. On MeP targets this causes the compiler to use a calling convention
  26061. that assumes the called function is too far away for the built-in
  26062. addressing modes.
  26063. 'vliw'
  26064. The 'vliw' attribute tells the compiler to emit instructions in
  26065. VLIW mode instead of core mode. Note that this attribute is not
  26066. allowed unless a VLIW coprocessor has been configured and enabled
  26067. through command-line options.
  26068. 
  26069. File: gcc.info, Node: MicroBlaze Function Attributes, Next: Microsoft Windows Function Attributes, Prev: MeP Function Attributes, Up: Function Attributes
  26070. 6.33.18 MicroBlaze Function Attributes
  26071. --------------------------------------
  26072. These function attributes are supported on MicroBlaze targets:
  26073. 'save_volatiles'
  26074. Use this attribute to indicate that the function is an interrupt
  26075. handler. All volatile registers (in addition to non-volatile
  26076. registers) are saved in the function prologue. If the function is
  26077. a leaf function, only volatiles used by the function are saved. A
  26078. normal function return is generated instead of a return from
  26079. interrupt.
  26080. 'break_handler'
  26081. Use this attribute to indicate that the specified function is a
  26082. break handler. The compiler generates function entry and exit
  26083. sequences suitable for use in an break handler when this attribute
  26084. is present. The return from 'break_handler' is done through the
  26085. 'rtbd' instead of 'rtsd'.
  26086. void f () __attribute__ ((break_handler));
  26087. 'interrupt_handler'
  26088. 'fast_interrupt'
  26089. These attributes indicate that the specified function is an
  26090. interrupt handler. Use the 'fast_interrupt' attribute to indicate
  26091. handlers used in low-latency interrupt mode, and
  26092. 'interrupt_handler' for interrupts that do not use low-latency
  26093. handlers. In both cases, GCC emits appropriate prologue code and
  26094. generates a return from the handler using 'rtid' instead of 'rtsd'.
  26095. 
  26096. File: gcc.info, Node: Microsoft Windows Function Attributes, Next: MIPS Function Attributes, Prev: MicroBlaze Function Attributes, Up: Function Attributes
  26097. 6.33.19 Microsoft Windows Function Attributes
  26098. ---------------------------------------------
  26099. The following attributes are available on Microsoft Windows and Symbian
  26100. OS targets.
  26101. 'dllexport'
  26102. On Microsoft Windows targets and Symbian OS targets the 'dllexport'
  26103. attribute causes the compiler to provide a global pointer to a
  26104. pointer in a DLL, so that it can be referenced with the 'dllimport'
  26105. attribute. On Microsoft Windows targets, the pointer name is
  26106. formed by combining '_imp__' and the function or variable name.
  26107. You can use '__declspec(dllexport)' as a synonym for '__attribute__
  26108. ((dllexport))' for compatibility with other compilers.
  26109. On systems that support the 'visibility' attribute, this attribute
  26110. also implies "default" visibility. It is an error to explicitly
  26111. specify any other visibility.
  26112. GCC's default behavior is to emit all inline functions with the
  26113. 'dllexport' attribute. Since this can cause object file-size
  26114. bloat, you can use '-fno-keep-inline-dllexport', which tells GCC to
  26115. ignore the attribute for inlined functions unless the
  26116. '-fkeep-inline-functions' flag is used instead.
  26117. The attribute is ignored for undefined symbols.
  26118. When applied to C++ classes, the attribute marks defined
  26119. non-inlined member functions and static data members as exports.
  26120. Static consts initialized in-class are not marked unless they are
  26121. also defined out-of-class.
  26122. For Microsoft Windows targets there are alternative methods for
  26123. including the symbol in the DLL's export table such as using a
  26124. '.def' file with an 'EXPORTS' section or, with GNU ld, using the
  26125. '--export-all' linker flag.
  26126. 'dllimport'
  26127. On Microsoft Windows and Symbian OS targets, the 'dllimport'
  26128. attribute causes the compiler to reference a function or variable
  26129. via a global pointer to a pointer that is set up by the DLL
  26130. exporting the symbol. The attribute implies 'extern'. On
  26131. Microsoft Windows targets, the pointer name is formed by combining
  26132. '_imp__' and the function or variable name.
  26133. You can use '__declspec(dllimport)' as a synonym for '__attribute__
  26134. ((dllimport))' for compatibility with other compilers.
  26135. On systems that support the 'visibility' attribute, this attribute
  26136. also implies "default" visibility. It is an error to explicitly
  26137. specify any other visibility.
  26138. Currently, the attribute is ignored for inlined functions. If the
  26139. attribute is applied to a symbol _definition_, an error is
  26140. reported. If a symbol previously declared 'dllimport' is later
  26141. defined, the attribute is ignored in subsequent references, and a
  26142. warning is emitted. The attribute is also overridden by a
  26143. subsequent declaration as 'dllexport'.
  26144. When applied to C++ classes, the attribute marks non-inlined member
  26145. functions and static data members as imports. However, the
  26146. attribute is ignored for virtual methods to allow creation of
  26147. vtables using thunks.
  26148. On the SH Symbian OS target the 'dllimport' attribute also has
  26149. another affect--it can cause the vtable and run-time type
  26150. information for a class to be exported. This happens when the
  26151. class has a dllimported constructor or a non-inline, non-pure
  26152. virtual function and, for either of those two conditions, the class
  26153. also has an inline constructor or destructor and has a key function
  26154. that is defined in the current translation unit.
  26155. For Microsoft Windows targets the use of the 'dllimport' attribute
  26156. on functions is not necessary, but provides a small performance
  26157. benefit by eliminating a thunk in the DLL. The use of the
  26158. 'dllimport' attribute on imported variables can be avoided by
  26159. passing the '--enable-auto-import' switch to the GNU linker. As
  26160. with functions, using the attribute for a variable eliminates a
  26161. thunk in the DLL.
  26162. One drawback to using this attribute is that a pointer to a
  26163. _variable_ marked as 'dllimport' cannot be used as a constant
  26164. address. However, a pointer to a _function_ with the 'dllimport'
  26165. attribute can be used as a constant initializer; in this case, the
  26166. address of a stub function in the import lib is referenced. On
  26167. Microsoft Windows targets, the attribute can be disabled for
  26168. functions by setting the '-mnop-fun-dllimport' flag.
  26169. 
  26170. File: gcc.info, Node: MIPS Function Attributes, Next: MSP430 Function Attributes, Prev: Microsoft Windows Function Attributes, Up: Function Attributes
  26171. 6.33.20 MIPS Function Attributes
  26172. --------------------------------
  26173. These function attributes are supported by the MIPS back end:
  26174. 'interrupt'
  26175. Use this attribute to indicate that the specified function is an
  26176. interrupt handler. The compiler generates function entry and exit
  26177. sequences suitable for use in an interrupt handler when this
  26178. attribute is present. An optional argument is supported for the
  26179. interrupt attribute which allows the interrupt mode to be
  26180. described. By default GCC assumes the external interrupt
  26181. controller (EIC) mode is in use, this can be explicitly set using
  26182. 'eic'. When interrupts are non-masked then the requested Interrupt
  26183. Priority Level (IPL) is copied to the current IPL which has the
  26184. effect of only enabling higher priority interrupts. To use
  26185. vectored interrupt mode use the argument
  26186. 'vector=[sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5]', this will change the
  26187. behavior of the non-masked interrupt support and GCC will arrange
  26188. to mask all interrupts from sw0 up to and including the specified
  26189. interrupt vector.
  26190. You can use the following attributes to modify the behavior of an
  26191. interrupt handler:
  26192. 'use_shadow_register_set'
  26193. Assume that the handler uses a shadow register set, instead of
  26194. the main general-purpose registers. An optional argument
  26195. 'intstack' is supported to indicate that the shadow register
  26196. set contains a valid stack pointer.
  26197. 'keep_interrupts_masked'
  26198. Keep interrupts masked for the whole function. Without this
  26199. attribute, GCC tries to reenable interrupts for as much of the
  26200. function as it can.
  26201. 'use_debug_exception_return'
  26202. Return using the 'deret' instruction. Interrupt handlers that
  26203. don't have this attribute return using 'eret' instead.
  26204. You can use any combination of these attributes, as shown below:
  26205. void __attribute__ ((interrupt)) v0 ();
  26206. void __attribute__ ((interrupt, use_shadow_register_set)) v1 ();
  26207. void __attribute__ ((interrupt, keep_interrupts_masked)) v2 ();
  26208. void __attribute__ ((interrupt, use_debug_exception_return)) v3 ();
  26209. void __attribute__ ((interrupt, use_shadow_register_set,
  26210. keep_interrupts_masked)) v4 ();
  26211. void __attribute__ ((interrupt, use_shadow_register_set,
  26212. use_debug_exception_return)) v5 ();
  26213. void __attribute__ ((interrupt, keep_interrupts_masked,
  26214. use_debug_exception_return)) v6 ();
  26215. void __attribute__ ((interrupt, use_shadow_register_set,
  26216. keep_interrupts_masked,
  26217. use_debug_exception_return)) v7 ();
  26218. void __attribute__ ((interrupt("eic"))) v8 ();
  26219. void __attribute__ ((interrupt("vector=hw3"))) v9 ();
  26220. 'long_call'
  26221. 'short_call'
  26222. 'near'
  26223. 'far'
  26224. These attributes specify how a particular function is called on
  26225. MIPS. The attributes override the '-mlong-calls' (*note MIPS
  26226. Options::) command-line switch. The 'long_call' and 'far'
  26227. attributes are synonyms, and cause the compiler to always call the
  26228. function by first loading its address into a register, and then
  26229. using the contents of that register. The 'short_call' and 'near'
  26230. attributes are synonyms, and have the opposite effect; they specify
  26231. that non-PIC calls should be made using the more efficient 'jal'
  26232. instruction.
  26233. 'mips16'
  26234. 'nomips16'
  26235. On MIPS targets, you can use the 'mips16' and 'nomips16' function
  26236. attributes to locally select or turn off MIPS16 code generation. A
  26237. function with the 'mips16' attribute is emitted as MIPS16 code,
  26238. while MIPS16 code generation is disabled for functions with the
  26239. 'nomips16' attribute. These attributes override the '-mips16' and
  26240. '-mno-mips16' options on the command line (*note MIPS Options::).
  26241. When compiling files containing mixed MIPS16 and non-MIPS16 code,
  26242. the preprocessor symbol '__mips16' reflects the setting on the
  26243. command line, not that within individual functions. Mixed MIPS16
  26244. and non-MIPS16 code may interact badly with some GCC extensions
  26245. such as '__builtin_apply' (*note Constructing Calls::).
  26246. 'micromips, MIPS'
  26247. 'nomicromips, MIPS'
  26248. On MIPS targets, you can use the 'micromips' and 'nomicromips'
  26249. function attributes to locally select or turn off microMIPS code
  26250. generation. A function with the 'micromips' attribute is emitted
  26251. as microMIPS code, while microMIPS code generation is disabled for
  26252. functions with the 'nomicromips' attribute. These attributes
  26253. override the '-mmicromips' and '-mno-micromips' options on the
  26254. command line (*note MIPS Options::).
  26255. When compiling files containing mixed microMIPS and non-microMIPS
  26256. code, the preprocessor symbol '__mips_micromips' reflects the
  26257. setting on the command line, not that within individual functions.
  26258. Mixed microMIPS and non-microMIPS code may interact badly with some
  26259. GCC extensions such as '__builtin_apply' (*note Constructing
  26260. Calls::).
  26261. 'nocompression'
  26262. On MIPS targets, you can use the 'nocompression' function attribute
  26263. to locally turn off MIPS16 and microMIPS code generation. This
  26264. attribute overrides the '-mips16' and '-mmicromips' options on the
  26265. command line (*note MIPS Options::).
  26266. 
  26267. File: gcc.info, Node: MSP430 Function Attributes, Next: NDS32 Function Attributes, Prev: MIPS Function Attributes, Up: Function Attributes
  26268. 6.33.21 MSP430 Function Attributes
  26269. ----------------------------------
  26270. These function attributes are supported by the MSP430 back end:
  26271. 'critical'
  26272. Critical functions disable interrupts upon entry and restore the
  26273. previous interrupt state upon exit. Critical functions cannot also
  26274. have the 'naked', 'reentrant' or 'interrupt' attributes.
  26275. The MSP430 hardware ensures that interrupts are disabled on entry
  26276. to 'interrupt' functions, and restores the previous interrupt state
  26277. on exit. The 'critical' attribute is therefore redundant on
  26278. 'interrupt' functions.
  26279. 'interrupt'
  26280. Use this attribute to indicate that the specified function is an
  26281. interrupt handler. The compiler generates function entry and exit
  26282. sequences suitable for use in an interrupt handler when this
  26283. attribute is present.
  26284. You can provide an argument to the interrupt attribute which
  26285. specifies a name or number. If the argument is a number it
  26286. indicates the slot in the interrupt vector table (0 - 31) to which
  26287. this handler should be assigned. If the argument is a name it is
  26288. treated as a symbolic name for the vector slot. These names should
  26289. match up with appropriate entries in the linker script. By default
  26290. the names 'watchdog' for vector 26, 'nmi' for vector 30 and 'reset'
  26291. for vector 31 are recognized.
  26292. 'naked'
  26293. This attribute allows the compiler to construct the requisite
  26294. function declaration, while allowing the body of the function to be
  26295. assembly code. The specified function will not have
  26296. prologue/epilogue sequences generated by the compiler. Only basic
  26297. 'asm' statements can safely be included in naked functions (*note
  26298. Basic Asm::). While using extended 'asm' or a mixture of basic
  26299. 'asm' and C code may appear to work, they cannot be depended upon
  26300. to work reliably and are not supported.
  26301. 'reentrant'
  26302. Reentrant functions disable interrupts upon entry and enable them
  26303. upon exit. Reentrant functions cannot also have the 'naked' or
  26304. 'critical' attributes. They can have the 'interrupt' attribute.
  26305. 'wakeup'
  26306. This attribute only applies to interrupt functions. It is silently
  26307. ignored if applied to a non-interrupt function. A wakeup interrupt
  26308. function will rouse the processor from any low-power state that it
  26309. might be in when the function exits.
  26310. 'lower'
  26311. 'upper'
  26312. 'either'
  26313. On the MSP430 target these attributes can be used to specify
  26314. whether the function or variable should be placed into low memory,
  26315. high memory, or the placement should be left to the linker to
  26316. decide. The attributes are only significant if compiling for the
  26317. MSP430X architecture.
  26318. The attributes work in conjunction with a linker script that has
  26319. been augmented to specify where to place sections with a '.lower'
  26320. and a '.upper' prefix. So, for example, as well as placing the
  26321. '.data' section, the script also specifies the placement of a
  26322. '.lower.data' and a '.upper.data' section. The intention is that
  26323. 'lower' sections are placed into a small but easier to access
  26324. memory region and the upper sections are placed into a larger, but
  26325. slower to access, region.
  26326. The 'either' attribute is special. It tells the linker to place
  26327. the object into the corresponding 'lower' section if there is room
  26328. for it. If there is insufficient room then the object is placed
  26329. into the corresponding 'upper' section instead. Note that the
  26330. placement algorithm is not very sophisticated. It does not attempt
  26331. to find an optimal packing of the 'lower' sections. It just makes
  26332. one pass over the objects and does the best that it can. Using the
  26333. '-ffunction-sections' and '-fdata-sections' command-line options
  26334. can help the packing, however, since they produce smaller, easier
  26335. to pack regions.
  26336. 
  26337. File: gcc.info, Node: NDS32 Function Attributes, Next: Nios II Function Attributes, Prev: MSP430 Function Attributes, Up: Function Attributes
  26338. 6.33.22 NDS32 Function Attributes
  26339. ---------------------------------
  26340. These function attributes are supported by the NDS32 back end:
  26341. 'exception'
  26342. Use this attribute on the NDS32 target to indicate that the
  26343. specified function is an exception handler. The compiler will
  26344. generate corresponding sections for use in an exception handler.
  26345. 'interrupt'
  26346. On NDS32 target, this attribute indicates that the specified
  26347. function is an interrupt handler. The compiler generates
  26348. corresponding sections for use in an interrupt handler. You can
  26349. use the following attributes to modify the behavior:
  26350. 'nested'
  26351. This interrupt service routine is interruptible.
  26352. 'not_nested'
  26353. This interrupt service routine is not interruptible.
  26354. 'nested_ready'
  26355. This interrupt service routine is interruptible after
  26356. 'PSW.GIE' (global interrupt enable) is set. This allows
  26357. interrupt service routine to finish some short critical code
  26358. before enabling interrupts.
  26359. 'save_all'
  26360. The system will help save all registers into stack before
  26361. entering interrupt handler.
  26362. 'partial_save'
  26363. The system will help save caller registers into stack before
  26364. entering interrupt handler.
  26365. 'naked'
  26366. This attribute allows the compiler to construct the requisite
  26367. function declaration, while allowing the body of the function to be
  26368. assembly code. The specified function will not have
  26369. prologue/epilogue sequences generated by the compiler. Only basic
  26370. 'asm' statements can safely be included in naked functions (*note
  26371. Basic Asm::). While using extended 'asm' or a mixture of basic
  26372. 'asm' and C code may appear to work, they cannot be depended upon
  26373. to work reliably and are not supported.
  26374. 'reset'
  26375. Use this attribute on the NDS32 target to indicate that the
  26376. specified function is a reset handler. The compiler will generate
  26377. corresponding sections for use in a reset handler. You can use the
  26378. following attributes to provide extra exception handling:
  26379. 'nmi'
  26380. Provide a user-defined function to handle NMI exception.
  26381. 'warm'
  26382. Provide a user-defined function to handle warm reset
  26383. exception.
  26384. 
  26385. File: gcc.info, Node: Nios II Function Attributes, Next: Nvidia PTX Function Attributes, Prev: NDS32 Function Attributes, Up: Function Attributes
  26386. 6.33.23 Nios II Function Attributes
  26387. -----------------------------------
  26388. These function attributes are supported by the Nios II back end:
  26389. 'target (OPTIONS)'
  26390. As discussed in *note Common Function Attributes::, this attribute
  26391. allows specification of target-specific compilation options.
  26392. When compiling for Nios II, the following options are allowed:
  26393. 'custom-INSN=N'
  26394. 'no-custom-INSN'
  26395. Each 'custom-INSN=N' attribute locally enables use of a custom
  26396. instruction with encoding N when generating code that uses
  26397. INSN. Similarly, 'no-custom-INSN' locally inhibits use of the
  26398. custom instruction INSN. These target attributes correspond
  26399. to the '-mcustom-INSN=N' and '-mno-custom-INSN' command-line
  26400. options, and support the same set of INSN keywords. *Note
  26401. Nios II Options::, for more information.
  26402. 'custom-fpu-cfg=NAME'
  26403. This attribute corresponds to the '-mcustom-fpu-cfg=NAME'
  26404. command-line option, to select a predefined set of custom
  26405. instructions named NAME. *Note Nios II Options::, for more
  26406. information.
  26407. 
  26408. File: gcc.info, Node: Nvidia PTX Function Attributes, Next: PowerPC Function Attributes, Prev: Nios II Function Attributes, Up: Function Attributes
  26409. 6.33.24 Nvidia PTX Function Attributes
  26410. --------------------------------------
  26411. These function attributes are supported by the Nvidia PTX back end:
  26412. 'kernel'
  26413. This attribute indicates that the corresponding function should be
  26414. compiled as a kernel function, which can be invoked from the host
  26415. via the CUDA RT library. By default functions are only callable
  26416. only from other PTX functions.
  26417. Kernel functions must have 'void' return type.
  26418. 
  26419. File: gcc.info, Node: PowerPC Function Attributes, Next: RISC-V Function Attributes, Prev: Nvidia PTX Function Attributes, Up: Function Attributes
  26420. 6.33.25 PowerPC Function Attributes
  26421. -----------------------------------
  26422. These function attributes are supported by the PowerPC back end:
  26423. 'longcall'
  26424. 'shortcall'
  26425. The 'longcall' attribute indicates that the function might be far
  26426. away from the call site and require a different (more expensive)
  26427. calling sequence. The 'shortcall' attribute indicates that the
  26428. function is always close enough for the shorter calling sequence to
  26429. be used. These attributes override both the '-mlongcall' switch
  26430. and the '#pragma longcall' setting.
  26431. *Note RS/6000 and PowerPC Options::, for more information on
  26432. whether long calls are necessary.
  26433. 'target (OPTIONS)'
  26434. As discussed in *note Common Function Attributes::, this attribute
  26435. allows specification of target-specific compilation options.
  26436. On the PowerPC, the following options are allowed:
  26437. 'altivec'
  26438. 'no-altivec'
  26439. Generate code that uses (does not use) AltiVec instructions.
  26440. In 32-bit code, you cannot enable AltiVec instructions unless
  26441. '-mabi=altivec' is used on the command line.
  26442. 'cmpb'
  26443. 'no-cmpb'
  26444. Generate code that uses (does not use) the compare bytes
  26445. instruction implemented on the POWER6 processor and other
  26446. processors that support the PowerPC V2.05 architecture.
  26447. 'dlmzb'
  26448. 'no-dlmzb'
  26449. Generate code that uses (does not use) the string-search
  26450. 'dlmzb' instruction on the IBM 405, 440, 464 and 476
  26451. processors. This instruction is generated by default when
  26452. targeting those processors.
  26453. 'fprnd'
  26454. 'no-fprnd'
  26455. Generate code that uses (does not use) the FP round to integer
  26456. instructions implemented on the POWER5+ processor and other
  26457. processors that support the PowerPC V2.03 architecture.
  26458. 'hard-dfp'
  26459. 'no-hard-dfp'
  26460. Generate code that uses (does not use) the decimal
  26461. floating-point instructions implemented on some POWER
  26462. processors.
  26463. 'isel'
  26464. 'no-isel'
  26465. Generate code that uses (does not use) ISEL instruction.
  26466. 'mfcrf'
  26467. 'no-mfcrf'
  26468. Generate code that uses (does not use) the move from condition
  26469. register field instruction implemented on the POWER4 processor
  26470. and other processors that support the PowerPC V2.01
  26471. architecture.
  26472. 'mfpgpr'
  26473. 'no-mfpgpr'
  26474. Generate code that uses (does not use) the FP move to/from
  26475. general purpose register instructions implemented on the
  26476. POWER6X processor and other processors that support the
  26477. extended PowerPC V2.05 architecture.
  26478. 'mulhw'
  26479. 'no-mulhw'
  26480. Generate code that uses (does not use) the half-word multiply
  26481. and multiply-accumulate instructions on the IBM 405, 440, 464
  26482. and 476 processors. These instructions are generated by
  26483. default when targeting those processors.
  26484. 'multiple'
  26485. 'no-multiple'
  26486. Generate code that uses (does not use) the load multiple word
  26487. instructions and the store multiple word instructions.
  26488. 'update'
  26489. 'no-update'
  26490. Generate code that uses (does not use) the load or store
  26491. instructions that update the base register to the address of
  26492. the calculated memory location.
  26493. 'popcntb'
  26494. 'no-popcntb'
  26495. Generate code that uses (does not use) the popcount and
  26496. double-precision FP reciprocal estimate instruction
  26497. implemented on the POWER5 processor and other processors that
  26498. support the PowerPC V2.02 architecture.
  26499. 'popcntd'
  26500. 'no-popcntd'
  26501. Generate code that uses (does not use) the popcount
  26502. instruction implemented on the POWER7 processor and other
  26503. processors that support the PowerPC V2.06 architecture.
  26504. 'powerpc-gfxopt'
  26505. 'no-powerpc-gfxopt'
  26506. Generate code that uses (does not use) the optional PowerPC
  26507. architecture instructions in the Graphics group, including
  26508. floating-point select.
  26509. 'powerpc-gpopt'
  26510. 'no-powerpc-gpopt'
  26511. Generate code that uses (does not use) the optional PowerPC
  26512. architecture instructions in the General Purpose group,
  26513. including floating-point square root.
  26514. 'recip-precision'
  26515. 'no-recip-precision'
  26516. Assume (do not assume) that the reciprocal estimate
  26517. instructions provide higher-precision estimates than is
  26518. mandated by the PowerPC ABI.
  26519. 'string'
  26520. 'no-string'
  26521. Generate code that uses (does not use) the load string
  26522. instructions and the store string word instructions to save
  26523. multiple registers and do small block moves.
  26524. 'vsx'
  26525. 'no-vsx'
  26526. Generate code that uses (does not use) vector/scalar (VSX)
  26527. instructions, and also enable the use of built-in functions
  26528. that allow more direct access to the VSX instruction set. In
  26529. 32-bit code, you cannot enable VSX or AltiVec instructions
  26530. unless '-mabi=altivec' is used on the command line.
  26531. 'friz'
  26532. 'no-friz'
  26533. Generate (do not generate) the 'friz' instruction when the
  26534. '-funsafe-math-optimizations' option is used to optimize
  26535. rounding a floating-point value to 64-bit integer and back to
  26536. floating point. The 'friz' instruction does not return the
  26537. same value if the floating-point number is too large to fit in
  26538. an integer.
  26539. 'avoid-indexed-addresses'
  26540. 'no-avoid-indexed-addresses'
  26541. Generate code that tries to avoid (not avoid) the use of
  26542. indexed load or store instructions.
  26543. 'paired'
  26544. 'no-paired'
  26545. Generate code that uses (does not use) the generation of
  26546. PAIRED simd instructions.
  26547. 'longcall'
  26548. 'no-longcall'
  26549. Generate code that assumes (does not assume) that all calls
  26550. are far away so that a longer more expensive calling sequence
  26551. is required.
  26552. 'cpu=CPU'
  26553. Specify the architecture to generate code for when compiling
  26554. the function. If you select the 'target("cpu=power7")'
  26555. attribute when generating 32-bit code, VSX and AltiVec
  26556. instructions are not generated unless you use the
  26557. '-mabi=altivec' option on the command line.
  26558. 'tune=TUNE'
  26559. Specify the architecture to tune for when compiling the
  26560. function. If you do not specify the 'target("tune=TUNE")'
  26561. attribute and you do specify the 'target("cpu=CPU")'
  26562. attribute, compilation tunes for the CPU architecture, and not
  26563. the default tuning specified on the command line.
  26564. On the PowerPC, the inliner does not inline a function that has
  26565. different target options than the caller, unless the callee has a
  26566. subset of the target options of the caller.
  26567. 
  26568. File: gcc.info, Node: RISC-V Function Attributes, Next: RL78 Function Attributes, Prev: PowerPC Function Attributes, Up: Function Attributes
  26569. 6.33.26 RISC-V Function Attributes
  26570. ----------------------------------
  26571. These function attributes are supported by the RISC-V back end:
  26572. 'naked'
  26573. This attribute allows the compiler to construct the requisite
  26574. function declaration, while allowing the body of the function to be
  26575. assembly code. The specified function will not have
  26576. prologue/epilogue sequences generated by the compiler. Only basic
  26577. 'asm' statements can safely be included in naked functions (*note
  26578. Basic Asm::). While using extended 'asm' or a mixture of basic
  26579. 'asm' and C code may appear to work, they cannot be depended upon
  26580. to work reliably and are not supported.
  26581. 'interrupt'
  26582. Use this attribute to indicate that the specified function is an
  26583. interrupt handler. The compiler generates function entry and exit
  26584. sequences suitable for use in an interrupt handler when this
  26585. attribute is present.
  26586. You can specify the kind of interrupt to be handled by adding an
  26587. optional parameter to the interrupt attribute like this:
  26588. void f (void) __attribute__ ((interrupt ("user")));
  26589. Permissible values for this parameter are 'user', 'supervisor', and
  26590. 'machine'. If there is no parameter, then it defaults to
  26591. 'machine'.
  26592. 
  26593. File: gcc.info, Node: RL78 Function Attributes, Next: RX Function Attributes, Prev: RISC-V Function Attributes, Up: Function Attributes
  26594. 6.33.27 RL78 Function Attributes
  26595. --------------------------------
  26596. These function attributes are supported by the RL78 back end:
  26597. 'interrupt'
  26598. 'brk_interrupt'
  26599. These attributes indicate that the specified function is an
  26600. interrupt handler. The compiler generates function entry and exit
  26601. sequences suitable for use in an interrupt handler when this
  26602. attribute is present.
  26603. Use 'brk_interrupt' instead of 'interrupt' for handlers intended to
  26604. be used with the 'BRK' opcode (i.e. those that must end with 'RETB'
  26605. instead of 'RETI').
  26606. 'naked'
  26607. This attribute allows the compiler to construct the requisite
  26608. function declaration, while allowing the body of the function to be
  26609. assembly code. The specified function will not have
  26610. prologue/epilogue sequences generated by the compiler. Only basic
  26611. 'asm' statements can safely be included in naked functions (*note
  26612. Basic Asm::). While using extended 'asm' or a mixture of basic
  26613. 'asm' and C code may appear to work, they cannot be depended upon
  26614. to work reliably and are not supported.
  26615. 
  26616. File: gcc.info, Node: RX Function Attributes, Next: S/390 Function Attributes, Prev: RL78 Function Attributes, Up: Function Attributes
  26617. 6.33.28 RX Function Attributes
  26618. ------------------------------
  26619. These function attributes are supported by the RX back end:
  26620. 'fast_interrupt'
  26621. Use this attribute on the RX port to indicate that the specified
  26622. function is a fast interrupt handler. This is just like the
  26623. 'interrupt' attribute, except that 'freit' is used to return
  26624. instead of 'reit'.
  26625. 'interrupt'
  26626. Use this attribute to indicate that the specified function is an
  26627. interrupt handler. The compiler generates function entry and exit
  26628. sequences suitable for use in an interrupt handler when this
  26629. attribute is present.
  26630. On RX and RL78 targets, you may specify one or more vector numbers
  26631. as arguments to the attribute, as well as naming an alternate table
  26632. name. Parameters are handled sequentially, so one handler can be
  26633. assigned to multiple entries in multiple tables. One may also pass
  26634. the magic string '"$default"' which causes the function to be used
  26635. for any unfilled slots in the current table.
  26636. This example shows a simple assignment of a function to one vector
  26637. in the default table (note that preprocessor macros may be used for
  26638. chip-specific symbolic vector names):
  26639. void __attribute__ ((interrupt (5))) txd1_handler ();
  26640. This example assigns a function to two slots in the default table
  26641. (using preprocessor macros defined elsewhere) and makes it the
  26642. default for the 'dct' table:
  26643. void __attribute__ ((interrupt (RXD1_VECT,RXD2_VECT,"dct","$default")))
  26644. txd1_handler ();
  26645. 'naked'
  26646. This attribute allows the compiler to construct the requisite
  26647. function declaration, while allowing the body of the function to be
  26648. assembly code. The specified function will not have
  26649. prologue/epilogue sequences generated by the compiler. Only basic
  26650. 'asm' statements can safely be included in naked functions (*note
  26651. Basic Asm::). While using extended 'asm' or a mixture of basic
  26652. 'asm' and C code may appear to work, they cannot be depended upon
  26653. to work reliably and are not supported.
  26654. 'vector'
  26655. This RX attribute is similar to the 'interrupt' attribute,
  26656. including its parameters, but does not make the function an
  26657. interrupt-handler type function (i.e. it retains the normal C
  26658. function calling ABI). See the 'interrupt' attribute for a
  26659. description of its arguments.
  26660. 
  26661. File: gcc.info, Node: S/390 Function Attributes, Next: SH Function Attributes, Prev: RX Function Attributes, Up: Function Attributes
  26662. 6.33.29 S/390 Function Attributes
  26663. ---------------------------------
  26664. These function attributes are supported on the S/390:
  26665. 'hotpatch (HALFWORDS-BEFORE-FUNCTION-LABEL,HALFWORDS-AFTER-FUNCTION-LABEL)'
  26666. On S/390 System z targets, you can use this function attribute to
  26667. make GCC generate a "hot-patching" function prologue. If the
  26668. '-mhotpatch=' command-line option is used at the same time, the
  26669. 'hotpatch' attribute takes precedence. The first of the two
  26670. arguments specifies the number of halfwords to be added before the
  26671. function label. A second argument can be used to specify the
  26672. number of halfwords to be added after the function label. For both
  26673. arguments the maximum allowed value is 1000000.
  26674. If both arguments are zero, hotpatching is disabled.
  26675. 'target (OPTIONS)'
  26676. As discussed in *note Common Function Attributes::, this attribute
  26677. allows specification of target-specific compilation options.
  26678. On S/390, the following options are supported:
  26679. 'arch='
  26680. 'tune='
  26681. 'stack-guard='
  26682. 'stack-size='
  26683. 'branch-cost='
  26684. 'warn-framesize='
  26685. 'backchain'
  26686. 'no-backchain'
  26687. 'hard-dfp'
  26688. 'no-hard-dfp'
  26689. 'hard-float'
  26690. 'soft-float'
  26691. 'htm'
  26692. 'no-htm'
  26693. 'vx'
  26694. 'no-vx'
  26695. 'packed-stack'
  26696. 'no-packed-stack'
  26697. 'small-exec'
  26698. 'no-small-exec'
  26699. 'mvcle'
  26700. 'no-mvcle'
  26701. 'warn-dynamicstack'
  26702. 'no-warn-dynamicstack'
  26703. The options work exactly like the S/390 specific command line
  26704. options (without the prefix '-m') except that they do not change
  26705. any feature macros. For example,
  26706. target("no-vx")
  26707. does not undefine the '__VEC__' macro.
  26708. 
  26709. File: gcc.info, Node: SH Function Attributes, Next: SPU Function Attributes, Prev: S/390 Function Attributes, Up: Function Attributes
  26710. 6.33.30 SH Function Attributes
  26711. ------------------------------
  26712. These function attributes are supported on the SH family of processors:
  26713. 'function_vector'
  26714. On SH2A targets, this attribute declares a function to be called
  26715. using the TBR relative addressing mode. The argument to this
  26716. attribute is the entry number of the same function in a vector
  26717. table containing all the TBR relative addressable functions. For
  26718. correct operation the TBR must be setup accordingly to point to the
  26719. start of the vector table before any functions with this attribute
  26720. are invoked. Usually a good place to do the initialization is the
  26721. startup routine. The TBR relative vector table can have at max 256
  26722. function entries. The jumps to these functions are generated using
  26723. a SH2A specific, non delayed branch instruction JSR/N @(disp8,TBR).
  26724. You must use GAS and GLD from GNU binutils version 2.7 or later for
  26725. this attribute to work correctly.
  26726. In an application, for a function being called once, this attribute
  26727. saves at least 8 bytes of code; and if other successive calls are
  26728. being made to the same function, it saves 2 bytes of code per each
  26729. of these calls.
  26730. 'interrupt_handler'
  26731. Use this attribute to indicate that the specified function is an
  26732. interrupt handler. The compiler generates function entry and exit
  26733. sequences suitable for use in an interrupt handler when this
  26734. attribute is present.
  26735. 'nosave_low_regs'
  26736. Use this attribute on SH targets to indicate that an
  26737. 'interrupt_handler' function should not save and restore registers
  26738. R0..R7. This can be used on SH3* and SH4* targets that have a
  26739. second R0..R7 register bank for non-reentrant interrupt handlers.
  26740. 'renesas'
  26741. On SH targets this attribute specifies that the function or struct
  26742. follows the Renesas ABI.
  26743. 'resbank'
  26744. On the SH2A target, this attribute enables the high-speed register
  26745. saving and restoration using a register bank for
  26746. 'interrupt_handler' routines. Saving to the bank is performed
  26747. automatically after the CPU accepts an interrupt that uses a
  26748. register bank.
  26749. The nineteen 32-bit registers comprising general register R0 to
  26750. R14, control register GBR, and system registers MACH, MACL, and PR
  26751. and the vector table address offset are saved into a register bank.
  26752. Register banks are stacked in first-in last-out (FILO) sequence.
  26753. Restoration from the bank is executed by issuing a RESBANK
  26754. instruction.
  26755. 'sp_switch'
  26756. Use this attribute on the SH to indicate an 'interrupt_handler'
  26757. function should switch to an alternate stack. It expects a string
  26758. argument that names a global variable holding the address of the
  26759. alternate stack.
  26760. void *alt_stack;
  26761. void f () __attribute__ ((interrupt_handler,
  26762. sp_switch ("alt_stack")));
  26763. 'trap_exit'
  26764. Use this attribute on the SH for an 'interrupt_handler' to return
  26765. using 'trapa' instead of 'rte'. This attribute expects an integer
  26766. argument specifying the trap number to be used.
  26767. 'trapa_handler'
  26768. On SH targets this function attribute is similar to
  26769. 'interrupt_handler' but it does not save and restore all registers.
  26770. 
  26771. File: gcc.info, Node: SPU Function Attributes, Next: Symbian OS Function Attributes, Prev: SH Function Attributes, Up: Function Attributes
  26772. 6.33.31 SPU Function Attributes
  26773. -------------------------------
  26774. These function attributes are supported by the SPU back end:
  26775. 'naked'
  26776. This attribute allows the compiler to construct the requisite
  26777. function declaration, while allowing the body of the function to be
  26778. assembly code. The specified function will not have
  26779. prologue/epilogue sequences generated by the compiler. Only basic
  26780. 'asm' statements can safely be included in naked functions (*note
  26781. Basic Asm::). While using extended 'asm' or a mixture of basic
  26782. 'asm' and C code may appear to work, they cannot be depended upon
  26783. to work reliably and are not supported.
  26784. 
  26785. File: gcc.info, Node: Symbian OS Function Attributes, Next: V850 Function Attributes, Prev: SPU Function Attributes, Up: Function Attributes
  26786. 6.33.32 Symbian OS Function Attributes
  26787. --------------------------------------
  26788. *Note Microsoft Windows Function Attributes::, for discussion of the
  26789. 'dllexport' and 'dllimport' attributes.
  26790. 
  26791. File: gcc.info, Node: V850 Function Attributes, Next: Visium Function Attributes, Prev: Symbian OS Function Attributes, Up: Function Attributes
  26792. 6.33.33 V850 Function Attributes
  26793. --------------------------------
  26794. The V850 back end supports these function attributes:
  26795. 'interrupt'
  26796. 'interrupt_handler'
  26797. Use these attributes to indicate that the specified function is an
  26798. interrupt handler. The compiler generates function entry and exit
  26799. sequences suitable for use in an interrupt handler when either
  26800. attribute is present.
  26801. 
  26802. File: gcc.info, Node: Visium Function Attributes, Next: x86 Function Attributes, Prev: V850 Function Attributes, Up: Function Attributes
  26803. 6.33.34 Visium Function Attributes
  26804. ----------------------------------
  26805. These function attributes are supported by the Visium back end:
  26806. 'interrupt'
  26807. Use this attribute to indicate that the specified function is an
  26808. interrupt handler. The compiler generates function entry and exit
  26809. sequences suitable for use in an interrupt handler when this
  26810. attribute is present.
  26811. 
  26812. File: gcc.info, Node: x86 Function Attributes, Next: Xstormy16 Function Attributes, Prev: Visium Function Attributes, Up: Function Attributes
  26813. 6.33.35 x86 Function Attributes
  26814. -------------------------------
  26815. These function attributes are supported by the x86 back end:
  26816. 'cdecl'
  26817. On the x86-32 targets, the 'cdecl' attribute causes the compiler to
  26818. assume that the calling function pops off the stack space used to
  26819. pass arguments. This is useful to override the effects of the
  26820. '-mrtd' switch.
  26821. 'fastcall'
  26822. On x86-32 targets, the 'fastcall' attribute causes the compiler to
  26823. pass the first argument (if of integral type) in the register ECX
  26824. and the second argument (if of integral type) in the register EDX.
  26825. Subsequent and other typed arguments are passed on the stack. The
  26826. called function pops the arguments off the stack. If the number of
  26827. arguments is variable all arguments are pushed on the stack.
  26828. 'thiscall'
  26829. On x86-32 targets, the 'thiscall' attribute causes the compiler to
  26830. pass the first argument (if of integral type) in the register ECX.
  26831. Subsequent and other typed arguments are passed on the stack. The
  26832. called function pops the arguments off the stack. If the number of
  26833. arguments is variable all arguments are pushed on the stack. The
  26834. 'thiscall' attribute is intended for C++ non-static member
  26835. functions. As a GCC extension, this calling convention can be used
  26836. for C functions and for static member methods.
  26837. 'ms_abi'
  26838. 'sysv_abi'
  26839. On 32-bit and 64-bit x86 targets, you can use an ABI attribute to
  26840. indicate which calling convention should be used for a function.
  26841. The 'ms_abi' attribute tells the compiler to use the Microsoft ABI,
  26842. while the 'sysv_abi' attribute tells the compiler to use the ABI
  26843. used on GNU/Linux and other systems. The default is to use the
  26844. Microsoft ABI when targeting Windows. On all other systems, the
  26845. default is the x86/AMD ABI.
  26846. Note, the 'ms_abi' attribute for Microsoft Windows 64-bit targets
  26847. currently requires the '-maccumulate-outgoing-args' option.
  26848. 'callee_pop_aggregate_return (NUMBER)'
  26849. On x86-32 targets, you can use this attribute to control how
  26850. aggregates are returned in memory. If the caller is responsible
  26851. for popping the hidden pointer together with the rest of the
  26852. arguments, specify NUMBER equal to zero. If callee is responsible
  26853. for popping the hidden pointer, specify NUMBER equal to one.
  26854. The default x86-32 ABI assumes that the callee pops the stack for
  26855. hidden pointer. However, on x86-32 Microsoft Windows targets, the
  26856. compiler assumes that the caller pops the stack for hidden pointer.
  26857. 'ms_hook_prologue'
  26858. On 32-bit and 64-bit x86 targets, you can use this function
  26859. attribute to make GCC generate the "hot-patching" function prologue
  26860. used in Win32 API functions in Microsoft Windows XP Service Pack 2
  26861. and newer.
  26862. 'naked'
  26863. This attribute allows the compiler to construct the requisite
  26864. function declaration, while allowing the body of the function to be
  26865. assembly code. The specified function will not have
  26866. prologue/epilogue sequences generated by the compiler. Only basic
  26867. 'asm' statements can safely be included in naked functions (*note
  26868. Basic Asm::). While using extended 'asm' or a mixture of basic
  26869. 'asm' and C code may appear to work, they cannot be depended upon
  26870. to work reliably and are not supported.
  26871. 'regparm (NUMBER)'
  26872. On x86-32 targets, the 'regparm' attribute causes the compiler to
  26873. pass arguments number one to NUMBER if they are of integral type in
  26874. registers EAX, EDX, and ECX instead of on the stack. Functions
  26875. that take a variable number of arguments continue to be passed all
  26876. of their arguments on the stack.
  26877. Beware that on some ELF systems this attribute is unsuitable for
  26878. global functions in shared libraries with lazy binding (which is
  26879. the default). Lazy binding sends the first call via resolving code
  26880. in the loader, which might assume EAX, EDX and ECX can be
  26881. clobbered, as per the standard calling conventions. Solaris 8 is
  26882. affected by this. Systems with the GNU C Library version 2.1 or
  26883. higher and FreeBSD are believed to be safe since the loaders there
  26884. save EAX, EDX and ECX. (Lazy binding can be disabled with the
  26885. linker or the loader if desired, to avoid the problem.)
  26886. 'sseregparm'
  26887. On x86-32 targets with SSE support, the 'sseregparm' attribute
  26888. causes the compiler to pass up to 3 floating-point arguments in SSE
  26889. registers instead of on the stack. Functions that take a variable
  26890. number of arguments continue to pass all of their floating-point
  26891. arguments on the stack.
  26892. 'force_align_arg_pointer'
  26893. On x86 targets, the 'force_align_arg_pointer' attribute may be
  26894. applied to individual function definitions, generating an alternate
  26895. prologue and epilogue that realigns the run-time stack if
  26896. necessary. This supports mixing legacy codes that run with a
  26897. 4-byte aligned stack with modern codes that keep a 16-byte stack
  26898. for SSE compatibility.
  26899. 'stdcall'
  26900. On x86-32 targets, the 'stdcall' attribute causes the compiler to
  26901. assume that the called function pops off the stack space used to
  26902. pass arguments, unless it takes a variable number of arguments.
  26903. 'no_caller_saved_registers'
  26904. Use this attribute to indicate that the specified function has no
  26905. caller-saved registers. That is, all registers are callee-saved.
  26906. For example, this attribute can be used for a function called from
  26907. an interrupt handler. The compiler generates proper function entry
  26908. and exit sequences to save and restore any modified registers,
  26909. except for the EFLAGS register. Since GCC doesn't preserve SSE,
  26910. MMX nor x87 states, the GCC option '-mgeneral-regs-only' should be
  26911. used to compile functions with 'no_caller_saved_registers'
  26912. attribute.
  26913. 'interrupt'
  26914. Use this attribute to indicate that the specified function is an
  26915. interrupt handler or an exception handler (depending on parameters
  26916. passed to the function, explained further). The compiler generates
  26917. function entry and exit sequences suitable for use in an interrupt
  26918. handler when this attribute is present. The 'IRET' instruction,
  26919. instead of the 'RET' instruction, is used to return from interrupt
  26920. handlers. All registers, except for the EFLAGS register which is
  26921. restored by the 'IRET' instruction, are preserved by the compiler.
  26922. Since GCC doesn't preserve SSE, MMX nor x87 states, the GCC option
  26923. '-mgeneral-regs-only' should be used to compile interrupt and
  26924. exception handlers.
  26925. Any interruptible-without-stack-switch code must be compiled with
  26926. '-mno-red-zone' since interrupt handlers can and will, because of
  26927. the hardware design, touch the red zone.
  26928. An interrupt handler must be declared with a mandatory pointer
  26929. argument:
  26930. struct interrupt_frame;
  26931. __attribute__ ((interrupt))
  26932. void
  26933. f (struct interrupt_frame *frame)
  26934. {
  26935. }
  26936. and you must define 'struct interrupt_frame' as described in the
  26937. processor's manual.
  26938. Exception handlers differ from interrupt handlers because the
  26939. system pushes an error code on the stack. An exception handler
  26940. declaration is similar to that for an interrupt handler, but with a
  26941. different mandatory function signature. The compiler arranges to
  26942. pop the error code off the stack before the 'IRET' instruction.
  26943. #ifdef __x86_64__
  26944. typedef unsigned long long int uword_t;
  26945. #else
  26946. typedef unsigned int uword_t;
  26947. #endif
  26948. struct interrupt_frame;
  26949. __attribute__ ((interrupt))
  26950. void
  26951. f (struct interrupt_frame *frame, uword_t error_code)
  26952. {
  26953. ...
  26954. }
  26955. Exception handlers should only be used for exceptions that push an
  26956. error code; you should use an interrupt handler in other cases.
  26957. The system will crash if the wrong kind of handler is used.
  26958. 'target (OPTIONS)'
  26959. As discussed in *note Common Function Attributes::, this attribute
  26960. allows specification of target-specific compilation options.
  26961. On the x86, the following options are allowed:
  26962. '3dnow'
  26963. 'no-3dnow'
  26964. Enable/disable the generation of the 3DNow! instructions.
  26965. '3dnowa'
  26966. 'no-3dnowa'
  26967. Enable/disable the generation of the enhanced 3DNow!
  26968. instructions.
  26969. 'abm'
  26970. 'no-abm'
  26971. Enable/disable the generation of the advanced bit
  26972. instructions.
  26973. 'adx'
  26974. 'no-adx'
  26975. Enable/disable the generation of the ADX instructions.
  26976. 'aes'
  26977. 'no-aes'
  26978. Enable/disable the generation of the AES instructions.
  26979. 'avx'
  26980. 'no-avx'
  26981. Enable/disable the generation of the AVX instructions.
  26982. 'avx2'
  26983. 'no-avx2'
  26984. Enable/disable the generation of the AVX2 instructions.
  26985. 'avx5124fmaps'
  26986. 'no-avx5124fmaps'
  26987. Enable/disable the generation of the AVX5124FMAPS
  26988. instructions.
  26989. 'avx5124vnniw'
  26990. 'no-avx5124vnniw'
  26991. Enable/disable the generation of the AVX5124VNNIW
  26992. instructions.
  26993. 'avx512bitalg'
  26994. 'no-avx512bitalg'
  26995. Enable/disable the generation of the AVX512BITALG
  26996. instructions.
  26997. 'avx512bw'
  26998. 'no-avx512bw'
  26999. Enable/disable the generation of the AVX512BW instructions.
  27000. 'avx512cd'
  27001. 'no-avx512cd'
  27002. Enable/disable the generation of the AVX512CD instructions.
  27003. 'avx512dq'
  27004. 'no-avx512dq'
  27005. Enable/disable the generation of the AVX512DQ instructions.
  27006. 'avx512er'
  27007. 'no-avx512er'
  27008. Enable/disable the generation of the AVX512ER instructions.
  27009. 'avx512f'
  27010. 'no-avx512f'
  27011. Enable/disable the generation of the AVX512F instructions.
  27012. 'avx512ifma'
  27013. 'no-avx512ifma'
  27014. Enable/disable the generation of the AVX512IFMA instructions.
  27015. 'avx512pf'
  27016. 'no-avx512pf'
  27017. Enable/disable the generation of the AVX512PF instructions.
  27018. 'avx512vbmi'
  27019. 'no-avx512vbmi'
  27020. Enable/disable the generation of the AVX512VBMI instructions.
  27021. 'avx512vbmi2'
  27022. 'no-avx512vbmi2'
  27023. Enable/disable the generation of the AVX512VBMI2 instructions.
  27024. 'avx512vl'
  27025. 'no-avx512vl'
  27026. Enable/disable the generation of the AVX512VL instructions.
  27027. 'avx512vnni'
  27028. 'no-avx512vnni'
  27029. Enable/disable the generation of the AVX512VNNI instructions.
  27030. 'avx512vpopcntdq'
  27031. 'no-avx512vpopcntdq'
  27032. Enable/disable the generation of the AVX512VPOPCNTDQ
  27033. instructions.
  27034. 'bmi'
  27035. 'no-bmi'
  27036. Enable/disable the generation of the BMI instructions.
  27037. 'bmi2'
  27038. 'no-bmi2'
  27039. Enable/disable the generation of the BMI2 instructions.
  27040. 'cldemote'
  27041. 'no-cldemote'
  27042. Enable/disable the generation of the CLDEMOTE instructions.
  27043. 'clflushopt'
  27044. 'no-clflushopt'
  27045. Enable/disable the generation of the CLFLUSHOPT instructions.
  27046. 'clwb'
  27047. 'no-clwb'
  27048. Enable/disable the generation of the CLWB instructions.
  27049. 'clzero'
  27050. 'no-clzero'
  27051. Enable/disable the generation of the CLZERO instructions.
  27052. 'crc32'
  27053. 'no-crc32'
  27054. Enable/disable the generation of the CRC32 instructions.
  27055. 'cx16'
  27056. 'no-cx16'
  27057. Enable/disable the generation of the CMPXCHG16B instructions.
  27058. 'default'
  27059. *Note Function Multiversioning::, where it is used to specify
  27060. the default function version.
  27061. 'f16c'
  27062. 'no-f16c'
  27063. Enable/disable the generation of the F16C instructions.
  27064. 'fma'
  27065. 'no-fma'
  27066. Enable/disable the generation of the FMA instructions.
  27067. 'fma4'
  27068. 'no-fma4'
  27069. Enable/disable the generation of the FMA4 instructions.
  27070. 'fsgsbase'
  27071. 'no-fsgsbase'
  27072. Enable/disable the generation of the FSGSBASE instructions.
  27073. 'fxsr'
  27074. 'no-fxsr'
  27075. Enable/disable the generation of the FXSR instructions.
  27076. 'gfni'
  27077. 'no-gfni'
  27078. Enable/disable the generation of the GFNI instructions.
  27079. 'hle'
  27080. 'no-hle'
  27081. Enable/disable the generation of the HLE instruction prefixes.
  27082. 'lwp'
  27083. 'no-lwp'
  27084. Enable/disable the generation of the LWP instructions.
  27085. 'lzcnt'
  27086. 'no-lzcnt'
  27087. Enable/disable the generation of the LZCNT instructions.
  27088. 'mmx'
  27089. 'no-mmx'
  27090. Enable/disable the generation of the MMX instructions.
  27091. 'movbe'
  27092. 'no-movbe'
  27093. Enable/disable the generation of the MOVBE instructions.
  27094. 'movdir64b'
  27095. 'no-movdir64b'
  27096. Enable/disable the generation of the MOVDIR64B instructions.
  27097. 'movdiri'
  27098. 'no-movdiri'
  27099. Enable/disable the generation of the MOVDIRI instructions.
  27100. 'mwaitx'
  27101. 'no-mwaitx'
  27102. Enable/disable the generation of the MWAITX instructions.
  27103. 'pclmul'
  27104. 'no-pclmul'
  27105. Enable/disable the generation of the PCLMUL instructions.
  27106. 'pconfig'
  27107. 'no-pconfig'
  27108. Enable/disable the generation of the PCONFIG instructions.
  27109. 'pku'
  27110. 'no-pku'
  27111. Enable/disable the generation of the PKU instructions.
  27112. 'popcnt'
  27113. 'no-popcnt'
  27114. Enable/disable the generation of the POPCNT instruction.
  27115. 'prefetchwt1'
  27116. 'no-prefetchwt1'
  27117. Enable/disable the generation of the PREFETCHWT1 instructions.
  27118. 'prfchw'
  27119. 'no-prfchw'
  27120. Enable/disable the generation of the PREFETCHW instruction.
  27121. 'ptwrite'
  27122. 'no-ptwrite'
  27123. Enable/disable the generation of the PTWRITE instructions.
  27124. 'rdpid'
  27125. 'no-rdpid'
  27126. Enable/disable the generation of the RDPID instructions.
  27127. 'rdrnd'
  27128. 'no-rdrnd'
  27129. Enable/disable the generation of the RDRND instructions.
  27130. 'rdseed'
  27131. 'no-rdseed'
  27132. Enable/disable the generation of the RDSEED instructions.
  27133. 'rtm'
  27134. 'no-rtm'
  27135. Enable/disable the generation of the RTM instructions.
  27136. 'sahf'
  27137. 'no-sahf'
  27138. Enable/disable the generation of the SAHF instructions.
  27139. 'sgx'
  27140. 'no-sgx'
  27141. Enable/disable the generation of the SGX instructions.
  27142. 'sha'
  27143. 'no-sha'
  27144. Enable/disable the generation of the SHA instructions.
  27145. 'shstk'
  27146. 'no-shstk'
  27147. Enable/disable the shadow stack built-in functions from CET.
  27148. 'sse'
  27149. 'no-sse'
  27150. Enable/disable the generation of the SSE instructions.
  27151. 'sse2'
  27152. 'no-sse2'
  27153. Enable/disable the generation of the SSE2 instructions.
  27154. 'sse3'
  27155. 'no-sse3'
  27156. Enable/disable the generation of the SSE3 instructions.
  27157. 'sse4'
  27158. 'no-sse4'
  27159. Enable/disable the generation of the SSE4 instructions (both
  27160. SSE4.1 and SSE4.2).
  27161. 'sse4.1'
  27162. 'no-sse4.1'
  27163. Enable/disable the generation of the sse4.1 instructions.
  27164. 'sse4.2'
  27165. 'no-sse4.2'
  27166. Enable/disable the generation of the sse4.2 instructions.
  27167. 'sse4a'
  27168. 'no-sse4a'
  27169. Enable/disable the generation of the SSE4A instructions.
  27170. 'ssse3'
  27171. 'no-ssse3'
  27172. Enable/disable the generation of the SSSE3 instructions.
  27173. 'tbm'
  27174. 'no-tbm'
  27175. Enable/disable the generation of the TBM instructions.
  27176. 'vaes'
  27177. 'no-vaes'
  27178. Enable/disable the generation of the VAES instructions.
  27179. 'vpclmulqdq'
  27180. 'no-vpclmulqdq'
  27181. Enable/disable the generation of the VPCLMULQDQ instructions.
  27182. 'waitpkg'
  27183. 'no-waitpkg'
  27184. Enable/disable the generation of the WAITPKG instructions.
  27185. 'wbnoinvd'
  27186. 'no-wbnoinvd'
  27187. Enable/disable the generation of the WBNOINVD instructions.
  27188. 'xop'
  27189. 'no-xop'
  27190. Enable/disable the generation of the XOP instructions.
  27191. 'xsave'
  27192. 'no-xsave'
  27193. Enable/disable the generation of the XSAVE instructions.
  27194. 'xsavec'
  27195. 'no-xsavec'
  27196. Enable/disable the generation of the XSAVEC instructions.
  27197. 'xsaveopt'
  27198. 'no-xsaveopt'
  27199. Enable/disable the generation of the XSAVEOPT instructions.
  27200. 'xsaves'
  27201. 'no-xsaves'
  27202. Enable/disable the generation of the XSAVES instructions.
  27203. 'cld'
  27204. 'no-cld'
  27205. Enable/disable the generation of the CLD before string moves.
  27206. 'fancy-math-387'
  27207. 'no-fancy-math-387'
  27208. Enable/disable the generation of the 'sin', 'cos', and 'sqrt'
  27209. instructions on the 387 floating-point unit.
  27210. 'ieee-fp'
  27211. 'no-ieee-fp'
  27212. Enable/disable the generation of floating point that depends
  27213. on IEEE arithmetic.
  27214. 'inline-all-stringops'
  27215. 'no-inline-all-stringops'
  27216. Enable/disable inlining of string operations.
  27217. 'inline-stringops-dynamically'
  27218. 'no-inline-stringops-dynamically'
  27219. Enable/disable the generation of the inline code to do small
  27220. string operations and calling the library routines for large
  27221. operations.
  27222. 'align-stringops'
  27223. 'no-align-stringops'
  27224. Do/do not align destination of inlined string operations.
  27225. 'recip'
  27226. 'no-recip'
  27227. Enable/disable the generation of RCPSS, RCPPS, RSQRTSS and
  27228. RSQRTPS instructions followed an additional Newton-Raphson
  27229. step instead of doing a floating-point division.
  27230. 'arch=ARCH'
  27231. Specify the architecture to generate code for in compiling the
  27232. function.
  27233. 'tune=TUNE'
  27234. Specify the architecture to tune for in compiling the
  27235. function.
  27236. 'fpmath=FPMATH'
  27237. Specify which floating-point unit to use. You must specify
  27238. the 'target("fpmath=sse,387")' option as
  27239. 'target("fpmath=sse+387")' because the comma would separate
  27240. different options.
  27241. 'indirect_branch("CHOICE")'
  27242. On x86 targets, the 'indirect_branch' attribute causes the
  27243. compiler to convert indirect call and jump with CHOICE.
  27244. 'keep' keeps indirect call and jump unmodified. 'thunk'
  27245. converts indirect call and jump to call and return thunk.
  27246. 'thunk-inline' converts indirect call and jump to inlined call
  27247. and return thunk. 'thunk-extern' converts indirect call and
  27248. jump to external call and return thunk provided in a separate
  27249. object file.
  27250. 'function_return("CHOICE")'
  27251. On x86 targets, the 'function_return' attribute causes the
  27252. compiler to convert function return with CHOICE. 'keep' keeps
  27253. function return unmodified. 'thunk' converts function return
  27254. to call and return thunk. 'thunk-inline' converts function
  27255. return to inlined call and return thunk. 'thunk-extern'
  27256. converts function return to external call and return thunk
  27257. provided in a separate object file.
  27258. 'nocf_check'
  27259. The 'nocf_check' attribute on a function is used to inform the
  27260. compiler that the function's prologue should not be
  27261. instrumented when compiled with the '-fcf-protection=branch'
  27262. option. The compiler assumes that the function's address is a
  27263. valid target for a control-flow transfer.
  27264. The 'nocf_check' attribute on a type of pointer to function is
  27265. used to inform the compiler that a call through the pointer
  27266. should not be instrumented when compiled with the
  27267. '-fcf-protection=branch' option. The compiler assumes that
  27268. the function's address from the pointer is a valid target for
  27269. a control-flow transfer. A direct function call through a
  27270. function name is assumed to be a safe call thus direct calls
  27271. are not instrumented by the compiler.
  27272. The 'nocf_check' attribute is applied to an object's type. In
  27273. case of assignment of a function address or a function pointer
  27274. to another pointer, the attribute is not carried over from the
  27275. right-hand object's type; the type of left-hand object stays
  27276. unchanged. The compiler checks for 'nocf_check' attribute
  27277. mismatch and reports a warning in case of mismatch.
  27278. {
  27279. int foo (void) __attribute__(nocf_check);
  27280. void (*foo1)(void) __attribute__(nocf_check);
  27281. void (*foo2)(void);
  27282. /* foo's address is assumed to be valid. */
  27283. int
  27284. foo (void)
  27285. /* This call site is not checked for control-flow
  27286. validity. */
  27287. (*foo1)();
  27288. /* A warning is issued about attribute mismatch. */
  27289. foo1 = foo2;
  27290. /* This call site is still not checked. */
  27291. (*foo1)();
  27292. /* This call site is checked. */
  27293. (*foo2)();
  27294. /* A warning is issued about attribute mismatch. */
  27295. foo2 = foo1;
  27296. /* This call site is still checked. */
  27297. (*foo2)();
  27298. return 0;
  27299. }
  27300. 'cf_check'
  27301. The 'cf_check' attribute on a function is used to inform the
  27302. compiler that ENDBR instruction should be placed at the
  27303. function entry when '-fcf-protection=branch' is enabled.
  27304. 'indirect_return'
  27305. The 'indirect_return' attribute can be applied to a function,
  27306. as well as variable or type of function pointer to inform the
  27307. compiler that the function may return via indirect branch.
  27308. 'fentry_name("NAME")'
  27309. On x86 targets, the 'fentry_name' attribute sets the function
  27310. to call on function entry when function instrumentation is
  27311. enabled with '-pg -mfentry'. When NAME is nop then a 5 byte
  27312. nop sequence is generated.
  27313. 'fentry_section("NAME")'
  27314. On x86 targets, the 'fentry_section' attribute sets the name
  27315. of the section to record function entry instrumentation calls
  27316. in when enabled with '-pg -mrecord-mcount'
  27317. On the x86, the inliner does not inline a function that has
  27318. different target options than the caller, unless the callee has a
  27319. subset of the target options of the caller. For example a function
  27320. declared with 'target("sse3")' can inline a function with
  27321. 'target("sse2")', since '-msse3' implies '-msse2'.
  27322. 
  27323. File: gcc.info, Node: Xstormy16 Function Attributes, Prev: x86 Function Attributes, Up: Function Attributes
  27324. 6.33.36 Xstormy16 Function Attributes
  27325. -------------------------------------
  27326. These function attributes are supported by the Xstormy16 back end:
  27327. 'interrupt'
  27328. Use this attribute to indicate that the specified function is an
  27329. interrupt handler. The compiler generates function entry and exit
  27330. sequences suitable for use in an interrupt handler when this
  27331. attribute is present.
  27332. 
  27333. File: gcc.info, Node: Variable Attributes, Next: Type Attributes, Prev: Function Attributes, Up: C Extensions
  27334. 6.34 Specifying Attributes of Variables
  27335. =======================================
  27336. The keyword '__attribute__' allows you to specify special properties of
  27337. variables, function parameters, or structure, union, and, in C++, class
  27338. members. This '__attribute__' keyword is followed by an attribute
  27339. specification enclosed in double parentheses. Some attributes are
  27340. currently defined generically for variables. Other attributes are
  27341. defined for variables on particular target systems. Other attributes
  27342. are available for functions (*note Function Attributes::), labels (*note
  27343. Label Attributes::), enumerators (*note Enumerator Attributes::),
  27344. statements (*note Statement Attributes::), and for types (*note Type
  27345. Attributes::). Other front ends might define more attributes (*note
  27346. Extensions to the C++ Language: C++ Extensions.).
  27347. *Note Attribute Syntax::, for details of the exact syntax for using
  27348. attributes.
  27349. * Menu:
  27350. * Common Variable Attributes::
  27351. * ARC Variable Attributes::
  27352. * AVR Variable Attributes::
  27353. * Blackfin Variable Attributes::
  27354. * H8/300 Variable Attributes::
  27355. * IA-64 Variable Attributes::
  27356. * M32R/D Variable Attributes::
  27357. * MeP Variable Attributes::
  27358. * Microsoft Windows Variable Attributes::
  27359. * MSP430 Variable Attributes::
  27360. * Nvidia PTX Variable Attributes::
  27361. * PowerPC Variable Attributes::
  27362. * RL78 Variable Attributes::
  27363. * SPU Variable Attributes::
  27364. * V850 Variable Attributes::
  27365. * x86 Variable Attributes::
  27366. * Xstormy16 Variable Attributes::
  27367. 
  27368. File: gcc.info, Node: Common Variable Attributes, Next: ARC Variable Attributes, Up: Variable Attributes
  27369. 6.34.1 Common Variable Attributes
  27370. ---------------------------------
  27371. The following attributes are supported on most targets.
  27372. 'alias ("TARGET")'
  27373. The 'alias' variable attribute causes the declaration to be emitted
  27374. as an alias for another symbol known as an "alias target". Except
  27375. for top-level qualifiers the alias target must have the same type
  27376. as the alias. For instance, the following
  27377. int var_target;
  27378. extern int __attribute__ ((alias ("var_target"))) var_alias;
  27379. defines 'var_alias' to be an alias for the 'var_target' variable.
  27380. It is an error if the alias target is not defined in the same
  27381. translation unit as the alias.
  27382. Note that in the absence of the attribute GCC assumes that distinct
  27383. declarations with external linkage denote distinct objects. Using
  27384. both the alias and the alias target to access the same object is
  27385. undefined in a translation unit without a declaration of the alias
  27386. with the attribute.
  27387. This attribute requires assembler and object file support, and may
  27388. not be available on all targets.
  27389. 'aligned'
  27390. 'aligned (ALIGNMENT)'
  27391. The 'aligned' attribute specifies a minimum alignment for the
  27392. variable or structure field, measured in bytes. When specified,
  27393. ALIGNMENT must be an integer constant power of 2. Specifying no
  27394. ALIGNMENT argument implies the maximum alignment for the target,
  27395. which is often, but by no means always, 8 or 16 bytes.
  27396. For example, the declaration:
  27397. int x __attribute__ ((aligned (16))) = 0;
  27398. causes the compiler to allocate the global variable 'x' on a
  27399. 16-byte boundary. On a 68040, this could be used in conjunction
  27400. with an 'asm' expression to access the 'move16' instruction which
  27401. requires 16-byte aligned operands.
  27402. You can also specify the alignment of structure fields. For
  27403. example, to create a double-word aligned 'int' pair, you could
  27404. write:
  27405. struct foo { int x[2] __attribute__ ((aligned (8))); };
  27406. This is an alternative to creating a union with a 'double' member,
  27407. which forces the union to be double-word aligned.
  27408. As in the preceding examples, you can explicitly specify the
  27409. alignment (in bytes) that you wish the compiler to use for a given
  27410. variable or structure field. Alternatively, you can leave out the
  27411. alignment factor and just ask the compiler to align a variable or
  27412. field to the default alignment for the target architecture you are
  27413. compiling for. The default alignment is sufficient for all scalar
  27414. types, but may not be enough for all vector types on a target that
  27415. supports vector operations. The default alignment is fixed for a
  27416. particular target ABI.
  27417. GCC also provides a target specific macro '__BIGGEST_ALIGNMENT__',
  27418. which is the largest alignment ever used for any data type on the
  27419. target machine you are compiling for. For example, you could
  27420. write:
  27421. short array[3] __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)));
  27422. The compiler automatically sets the alignment for the declared
  27423. variable or field to '__BIGGEST_ALIGNMENT__'. Doing this can often
  27424. make copy operations more efficient, because the compiler can use
  27425. whatever instructions copy the biggest chunks of memory when
  27426. performing copies to or from the variables or fields that you have
  27427. aligned this way. Note that the value of '__BIGGEST_ALIGNMENT__'
  27428. may change depending on command-line options.
  27429. When used on a struct, or struct member, the 'aligned' attribute
  27430. can only increase the alignment; in order to decrease it, the
  27431. 'packed' attribute must be specified as well. When used as part of
  27432. a typedef, the 'aligned' attribute can both increase and decrease
  27433. alignment, and specifying the 'packed' attribute generates a
  27434. warning.
  27435. Note that the effectiveness of 'aligned' attributes for static
  27436. variables may be limited by inherent limitations in the system
  27437. linker and/or object file format. On some systems, the linker is
  27438. only able to arrange for variables to be aligned up to a certain
  27439. maximum alignment. (For some linkers, the maximum supported
  27440. alignment may be very very small.) If your linker is only able to
  27441. align variables up to a maximum of 8-byte alignment, then
  27442. specifying 'aligned(16)' in an '__attribute__' still only provides
  27443. you with 8-byte alignment. See your linker documentation for
  27444. further information.
  27445. Stack variables are not affected by linker restrictions; GCC can
  27446. properly align them on any target.
  27447. The 'aligned' attribute can also be used for functions (*note
  27448. Common Function Attributes::.)
  27449. 'warn_if_not_aligned (ALIGNMENT)'
  27450. This attribute specifies a threshold for the structure field,
  27451. measured in bytes. If the structure field is aligned below the
  27452. threshold, a warning will be issued. For example, the declaration:
  27453. struct foo
  27454. {
  27455. int i1;
  27456. int i2;
  27457. unsigned long long x __attribute__ ((warn_if_not_aligned (16)));
  27458. };
  27459. causes the compiler to issue an warning on 'struct foo', like
  27460. 'warning: alignment 8 of 'struct foo' is less than 16'. The
  27461. compiler also issues a warning, like 'warning: 'x' offset 8 in
  27462. 'struct foo' isn't aligned to 16', when the structure field has the
  27463. misaligned offset:
  27464. struct __attribute__ ((aligned (16))) foo
  27465. {
  27466. int i1;
  27467. int i2;
  27468. unsigned long long x __attribute__ ((warn_if_not_aligned (16)));
  27469. };
  27470. This warning can be disabled by '-Wno-if-not-aligned'. The
  27471. 'warn_if_not_aligned' attribute can also be used for types (*note
  27472. Common Type Attributes::.)
  27473. 'alloc_size (POSITION)'
  27474. 'alloc_size (POSITION-1, POSITION-2)'
  27475. The 'alloc_size' variable attribute may be applied to the
  27476. declaration of a pointer to a function that returns a pointer and
  27477. takes at least one argument of an integer type. It indicates that
  27478. the returned pointer points to an object whose size is given by the
  27479. function argument at POSITION-1, or by the product of the arguments
  27480. at POSITION-1 and POSITION-2. Meaningful sizes are positive values
  27481. less than 'PTRDIFF_MAX'. Other sizes are disagnosed when detected.
  27482. GCC uses this information to improve the results of
  27483. '__builtin_object_size'.
  27484. For instance, the following declarations
  27485. typedef __attribute__ ((alloc_size (1, 2))) void*
  27486. (*calloc_ptr) (size_t, size_t);
  27487. typedef __attribute__ ((alloc_size (1))) void*
  27488. (*malloc_ptr) (size_t);
  27489. specify that 'calloc_ptr' is a pointer of a function that, like the
  27490. standard C function 'calloc', returns an object whose size is given
  27491. by the product of arguments 1 and 2, and similarly, that
  27492. 'malloc_ptr', like the standard C function 'malloc', returns an
  27493. object whose size is given by argument 1 to the function.
  27494. 'cleanup (CLEANUP_FUNCTION)'
  27495. The 'cleanup' attribute runs a function when the variable goes out
  27496. of scope. This attribute can only be applied to auto function
  27497. scope variables; it may not be applied to parameters or variables
  27498. with static storage duration. The function must take one
  27499. parameter, a pointer to a type compatible with the variable. The
  27500. return value of the function (if any) is ignored.
  27501. If '-fexceptions' is enabled, then CLEANUP_FUNCTION is run during
  27502. the stack unwinding that happens during the processing of the
  27503. exception. Note that the 'cleanup' attribute does not allow the
  27504. exception to be caught, only to perform an action. It is undefined
  27505. what happens if CLEANUP_FUNCTION does not return normally.
  27506. 'common'
  27507. 'nocommon'
  27508. The 'common' attribute requests GCC to place a variable in "common"
  27509. storage. The 'nocommon' attribute requests the opposite--to
  27510. allocate space for it directly.
  27511. These attributes override the default chosen by the '-fno-common'
  27512. and '-fcommon' flags respectively.
  27513. 'copy'
  27514. 'copy (VARIABLE)'
  27515. The 'copy' attribute applies the set of attributes with which
  27516. VARIABLE has been declared to the declaration of the variable to
  27517. which the attribute is applied. The attribute is designed for
  27518. libraries that define aliases that are expected to specify the same
  27519. set of attributes as the aliased symbols. The 'copy' attribute can
  27520. be used with variables, functions or types. However, the kind of
  27521. symbol to which the attribute is applied (either varible or
  27522. function) must match the kind of symbol to which the argument
  27523. refers. The 'copy' attribute copies only syntactic and semantic
  27524. attributes but not attributes that affect a symbol's linkage or
  27525. visibility such as 'alias', 'visibility', or 'weak'. The
  27526. 'deprecated' attribute is also not copied. *Note Common Function
  27527. Attributes::. *Note Common Type Attributes::.
  27528. 'deprecated'
  27529. 'deprecated (MSG)'
  27530. The 'deprecated' attribute results in a warning if the variable is
  27531. used anywhere in the source file. This is useful when identifying
  27532. variables that are expected to be removed in a future version of a
  27533. program. The warning also includes the location of the declaration
  27534. of the deprecated variable, to enable users to easily find further
  27535. information about why the variable is deprecated, or what they
  27536. should do instead. Note that the warning only occurs for uses:
  27537. extern int old_var __attribute__ ((deprecated));
  27538. extern int old_var;
  27539. int new_fn () { return old_var; }
  27540. results in a warning on line 3 but not line 2. The optional MSG
  27541. argument, which must be a string, is printed in the warning if
  27542. present.
  27543. The 'deprecated' attribute can also be used for functions and types
  27544. (*note Common Function Attributes::, *note Common Type
  27545. Attributes::).
  27546. The message attached to the attribute is affected by the setting of
  27547. the '-fmessage-length' option.
  27548. 'mode (MODE)'
  27549. This attribute specifies the data type for the
  27550. declaration--whichever type corresponds to the mode MODE. This in
  27551. effect lets you request an integer or floating-point type according
  27552. to its width.
  27553. *Note (gccint)Machine Modes::, for a list of the possible keywords
  27554. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  27555. indicate the mode corresponding to a one-byte integer, 'word' or
  27556. '__word__' for the mode of a one-word integer, and 'pointer' or
  27557. '__pointer__' for the mode used to represent pointers.
  27558. 'nonstring'
  27559. The 'nonstring' variable attribute specifies that an object or
  27560. member declaration with type array of 'char', 'signed char', or
  27561. 'unsigned char', or pointer to such a type is intended to store
  27562. character arrays that do not necessarily contain a terminating
  27563. 'NUL'. This is useful in detecting uses of such arrays or pointers
  27564. with functions that expect 'NUL'-terminated strings, and to avoid
  27565. warnings when such an array or pointer is used as an argument to a
  27566. bounded string manipulation function such as 'strncpy'. For
  27567. example, without the attribute, GCC will issue a warning for the
  27568. 'strncpy' call below because it may truncate the copy without
  27569. appending the terminating 'NUL' character. Using the attribute
  27570. makes it possible to suppress the warning. However, when the array
  27571. is declared with the attribute the call to 'strlen' is diagnosed
  27572. because when the array doesn't contain a 'NUL'-terminated string
  27573. the call is undefined. To copy, compare, of search non-string
  27574. character arrays use the 'memcpy', 'memcmp', 'memchr', and other
  27575. functions that operate on arrays of bytes. In addition, calling
  27576. 'strnlen' and 'strndup' with such arrays is safe provided a
  27577. suitable bound is specified, and not diagnosed.
  27578. struct Data
  27579. {
  27580. char name [32] __attribute__ ((nonstring));
  27581. };
  27582. int f (struct Data *pd, const char *s)
  27583. {
  27584. strncpy (pd->name, s, sizeof pd->name);
  27585. ...
  27586. return strlen (pd->name); // unsafe, gets a warning
  27587. }
  27588. 'packed'
  27589. The 'packed' attribute specifies that a structure member should
  27590. have the smallest possible alignment--one bit for a bit-field and
  27591. one byte otherwise, unless a larger value is specified with the
  27592. 'aligned' attribute. The attribute does not apply to non-member
  27593. objects.
  27594. For example in the structure below, the member array 'x' is packed
  27595. so that it immediately follows 'a' with no intervening padding:
  27596. struct foo
  27597. {
  27598. char a;
  27599. int x[2] __attribute__ ((packed));
  27600. };
  27601. _Note:_ The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed'
  27602. attribute on bit-fields of type 'char'. This has been fixed in GCC
  27603. 4.4 but the change can lead to differences in the structure layout.
  27604. See the documentation of '-Wpacked-bitfield-compat' for more
  27605. information.
  27606. 'section ("SECTION-NAME")'
  27607. Normally, the compiler places the objects it generates in sections
  27608. like 'data' and 'bss'. Sometimes, however, you need additional
  27609. sections, or you need certain particular variables to appear in
  27610. special sections, for example to map to special hardware. The
  27611. 'section' attribute specifies that a variable (or function) lives
  27612. in a particular section. For example, this small program uses
  27613. several specific section names:
  27614. struct duart a __attribute__ ((section ("DUART_A"))) = { 0 };
  27615. struct duart b __attribute__ ((section ("DUART_B"))) = { 0 };
  27616. char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };
  27617. int init_data __attribute__ ((section ("INITDATA")));
  27618. main()
  27619. {
  27620. /* Initialize stack pointer */
  27621. init_sp (stack + sizeof (stack));
  27622. /* Initialize initialized data */
  27623. memcpy (&init_data, &data, &edata - &data);
  27624. /* Turn on the serial ports */
  27625. init_duart (&a);
  27626. init_duart (&b);
  27627. }
  27628. Use the 'section' attribute with _global_ variables and not _local_
  27629. variables, as shown in the example.
  27630. You may use the 'section' attribute with initialized or
  27631. uninitialized global variables but the linker requires each object
  27632. be defined once, with the exception that uninitialized variables
  27633. tentatively go in the 'common' (or 'bss') section and can be
  27634. multiply "defined". Using the 'section' attribute changes what
  27635. section the variable goes into and may cause the linker to issue an
  27636. error if an uninitialized variable has multiple definitions. You
  27637. can force a variable to be initialized with the '-fno-common' flag
  27638. or the 'nocommon' attribute.
  27639. Some file formats do not support arbitrary sections so the
  27640. 'section' attribute is not available on all platforms. If you need
  27641. to map the entire contents of a module to a particular section,
  27642. consider using the facilities of the linker instead.
  27643. 'tls_model ("TLS_MODEL")'
  27644. The 'tls_model' attribute sets thread-local storage model (*note
  27645. Thread-Local::) of a particular '__thread' variable, overriding
  27646. '-ftls-model=' command-line switch on a per-variable basis. The
  27647. TLS_MODEL argument should be one of 'global-dynamic',
  27648. 'local-dynamic', 'initial-exec' or 'local-exec'.
  27649. Not all targets support this attribute.
  27650. 'unused'
  27651. This attribute, attached to a variable, means that the variable is
  27652. meant to be possibly unused. GCC does not produce a warning for
  27653. this variable.
  27654. 'used'
  27655. This attribute, attached to a variable with static storage, means
  27656. that the variable must be emitted even if it appears that the
  27657. variable is not referenced.
  27658. When applied to a static data member of a C++ class template, the
  27659. attribute also means that the member is instantiated if the class
  27660. itself is instantiated.
  27661. 'vector_size (BYTES)'
  27662. This attribute specifies the vector size for the type of the
  27663. declared variable, measured in bytes. The type to which it applies
  27664. is known as the "base type". The BYTES argument must be a positive
  27665. power-of-two multiple of the base type size. For example, the
  27666. declaration:
  27667. int foo __attribute__ ((vector_size (16)));
  27668. causes the compiler to set the mode for 'foo', to be 16 bytes,
  27669. divided into 'int' sized units. Assuming a 32-bit 'int', 'foo''s
  27670. type is a vector of four units of four bytes each, and the
  27671. corresponding mode of 'foo' is 'V4SI'. *Note Vector Extensions::
  27672. for details of manipulating vector variables.
  27673. This attribute is only applicable to integral and floating scalars,
  27674. although arrays, pointers, and function return values are allowed
  27675. in conjunction with this construct.
  27676. Aggregates with this attribute are invalid, even if they are of the
  27677. same size as a corresponding scalar. For example, the declaration:
  27678. struct S { int a; };
  27679. struct S __attribute__ ((vector_size (16))) foo;
  27680. is invalid even if the size of the structure is the same as the
  27681. size of the 'int'.
  27682. 'visibility ("VISIBILITY_TYPE")'
  27683. This attribute affects the linkage of the declaration to which it
  27684. is attached. The 'visibility' attribute is described in *note
  27685. Common Function Attributes::.
  27686. 'weak'
  27687. The 'weak' attribute is described in *note Common Function
  27688. Attributes::.
  27689. 
  27690. File: gcc.info, Node: ARC Variable Attributes, Next: AVR Variable Attributes, Prev: Common Variable Attributes, Up: Variable Attributes
  27691. 6.34.2 ARC Variable Attributes
  27692. ------------------------------
  27693. 'aux'
  27694. The 'aux' attribute is used to directly access the ARC's auxiliary
  27695. register space from C. The auxilirary register number is given via
  27696. attribute argument.
  27697. 
  27698. File: gcc.info, Node: AVR Variable Attributes, Next: Blackfin Variable Attributes, Prev: ARC Variable Attributes, Up: Variable Attributes
  27699. 6.34.3 AVR Variable Attributes
  27700. ------------------------------
  27701. 'progmem'
  27702. The 'progmem' attribute is used on the AVR to place read-only data
  27703. in the non-volatile program memory (flash). The 'progmem'
  27704. attribute accomplishes this by putting respective variables into a
  27705. section whose name starts with '.progmem'.
  27706. This attribute works similar to the 'section' attribute but adds
  27707. additional checking.
  27708. * Ordinary AVR cores with 32 general purpose registers:
  27709. 'progmem' affects the location of the data but not how this
  27710. data is accessed. In order to read data located with the
  27711. 'progmem' attribute (inline) assembler must be used.
  27712. /* Use custom macros from AVR-LibC (http://nongnu.org/avr-libc/user-manual/) */
  27713. #include <avr/pgmspace.h>
  27714. /* Locate var in flash memory */
  27715. const int var[2] PROGMEM = { 1, 2 };
  27716. int read_var (int i)
  27717. {
  27718. /* Access var[] by accessor macro from avr/pgmspace.h */
  27719. return (int) pgm_read_word (& var[i]);
  27720. }
  27721. AVR is a Harvard architecture processor and data and read-only
  27722. data normally resides in the data memory (RAM).
  27723. See also the *note AVR Named Address Spaces:: section for an
  27724. alternate way to locate and access data in flash memory.
  27725. * AVR cores with flash memory visible in the RAM address range:
  27726. On such devices, there is no need for attribute 'progmem' or
  27727. *note '__flash': AVR Named Address Spaces. qualifier at all.
  27728. Just use standard C / C++. The compiler will generate 'LD*'
  27729. instructions. As flash memory is visible in the RAM address
  27730. range, and the default linker script does _not_ locate
  27731. '.rodata' in RAM, no special features are needed in order not
  27732. to waste RAM for read-only data or to read from flash. You
  27733. might even get slightly better performance by avoiding
  27734. 'progmem' and '__flash'. This applies to devices from
  27735. families 'avrtiny' and 'avrxmega3', see *note AVR Options::
  27736. for an overview.
  27737. * Reduced AVR Tiny cores like ATtiny40:
  27738. The compiler adds '0x4000' to the addresses of objects and
  27739. declarations in 'progmem' and locates the objects in flash
  27740. memory, namely in section '.progmem.data'. The offset is
  27741. needed because the flash memory is visible in the RAM address
  27742. space starting at address '0x4000'.
  27743. Data in 'progmem' can be accessed by means of ordinary C code,
  27744. no special functions or macros are needed.
  27745. /* var is located in flash memory */
  27746. extern const int var[2] __attribute__((progmem));
  27747. int read_var (int i)
  27748. {
  27749. return var[i];
  27750. }
  27751. Please notice that on these devices, there is no need for
  27752. 'progmem' at all.
  27753. 'io'
  27754. 'io (ADDR)'
  27755. Variables with the 'io' attribute are used to address memory-mapped
  27756. peripherals in the io address range. If an address is specified,
  27757. the variable is assigned that address, and the value is interpreted
  27758. as an address in the data address space. Example:
  27759. volatile int porta __attribute__((io (0x22)));
  27760. The address specified in the address in the data address range.
  27761. Otherwise, the variable it is not assigned an address, but the
  27762. compiler will still use in/out instructions where applicable,
  27763. assuming some other module assigns an address in the io address
  27764. range. Example:
  27765. extern volatile int porta __attribute__((io));
  27766. 'io_low'
  27767. 'io_low (ADDR)'
  27768. This is like the 'io' attribute, but additionally it informs the
  27769. compiler that the object lies in the lower half of the I/O area,
  27770. allowing the use of 'cbi', 'sbi', 'sbic' and 'sbis' instructions.
  27771. 'address'
  27772. 'address (ADDR)'
  27773. Variables with the 'address' attribute are used to address
  27774. memory-mapped peripherals that may lie outside the io address
  27775. range.
  27776. volatile int porta __attribute__((address (0x600)));
  27777. 'absdata'
  27778. Variables in static storage and with the 'absdata' attribute can be
  27779. accessed by the 'LDS' and 'STS' instructions which take absolute
  27780. addresses.
  27781. * This attribute is only supported for the reduced AVR Tiny core
  27782. like ATtiny40.
  27783. * You must make sure that respective data is located in the
  27784. address range '0x40'...'0xbf' accessible by 'LDS' and 'STS'.
  27785. One way to achieve this as an appropriate linker description
  27786. file.
  27787. * If the location does not fit the address range of 'LDS' and
  27788. 'STS', there is currently (Binutils 2.26) just an unspecific
  27789. warning like
  27790. 'module.c:(.text+0x1c): warning: internal error: out of
  27791. range error'
  27792. See also the '-mabsdata' *note command-line option: AVR Options.
  27793. 
  27794. File: gcc.info, Node: Blackfin Variable Attributes, Next: H8/300 Variable Attributes, Prev: AVR Variable Attributes, Up: Variable Attributes
  27795. 6.34.4 Blackfin Variable Attributes
  27796. -----------------------------------
  27797. Three attributes are currently defined for the Blackfin.
  27798. 'l1_data'
  27799. 'l1_data_A'
  27800. 'l1_data_B'
  27801. Use these attributes on the Blackfin to place the variable into L1
  27802. Data SRAM. Variables with 'l1_data' attribute are put into the
  27803. specific section named '.l1.data'. Those with 'l1_data_A'
  27804. attribute are put into the specific section named '.l1.data.A'.
  27805. Those with 'l1_data_B' attribute are put into the specific section
  27806. named '.l1.data.B'.
  27807. 'l2'
  27808. Use this attribute on the Blackfin to place the variable into L2
  27809. SRAM. Variables with 'l2' attribute are put into the specific
  27810. section named '.l2.data'.
  27811. 
  27812. File: gcc.info, Node: H8/300 Variable Attributes, Next: IA-64 Variable Attributes, Prev: Blackfin Variable Attributes, Up: Variable Attributes
  27813. 6.34.5 H8/300 Variable Attributes
  27814. ---------------------------------
  27815. These variable attributes are available for H8/300 targets:
  27816. 'eightbit_data'
  27817. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  27818. the specified variable should be placed into the eight-bit data
  27819. section. The compiler generates more efficient code for certain
  27820. operations on data in the eight-bit data area. Note the eight-bit
  27821. data area is limited to 256 bytes of data.
  27822. You must use GAS and GLD from GNU binutils version 2.7 or later for
  27823. this attribute to work correctly.
  27824. 'tiny_data'
  27825. Use this attribute on the H8/300H and H8S to indicate that the
  27826. specified variable should be placed into the tiny data section.
  27827. The compiler generates more efficient code for loads and stores on
  27828. data in the tiny data section. Note the tiny data area is limited
  27829. to slightly under 32KB of data.
  27830. 
  27831. File: gcc.info, Node: IA-64 Variable Attributes, Next: M32R/D Variable Attributes, Prev: H8/300 Variable Attributes, Up: Variable Attributes
  27832. 6.34.6 IA-64 Variable Attributes
  27833. --------------------------------
  27834. The IA-64 back end supports the following variable attribute:
  27835. 'model (MODEL-NAME)'
  27836. On IA-64, use this attribute to set the addressability of an
  27837. object. At present, the only supported identifier for MODEL-NAME
  27838. is 'small', indicating addressability via "small" (22-bit)
  27839. addresses (so that their addresses can be loaded with the 'addl'
  27840. instruction). Caveat: such addressing is by definition not
  27841. position independent and hence this attribute must not be used for
  27842. objects defined by shared libraries.
  27843. 
  27844. File: gcc.info, Node: M32R/D Variable Attributes, Next: MeP Variable Attributes, Prev: IA-64 Variable Attributes, Up: Variable Attributes
  27845. 6.34.7 M32R/D Variable Attributes
  27846. ---------------------------------
  27847. One attribute is currently defined for the M32R/D.
  27848. 'model (MODEL-NAME)'
  27849. Use this attribute on the M32R/D to set the addressability of an
  27850. object. The identifier MODEL-NAME is one of 'small', 'medium', or
  27851. 'large', representing each of the code models.
  27852. Small model objects live in the lower 16MB of memory (so that their
  27853. addresses can be loaded with the 'ld24' instruction).
  27854. Medium and large model objects may live anywhere in the 32-bit
  27855. address space (the compiler generates 'seth/add3' instructions to
  27856. load their addresses).
  27857. 
  27858. File: gcc.info, Node: MeP Variable Attributes, Next: Microsoft Windows Variable Attributes, Prev: M32R/D Variable Attributes, Up: Variable Attributes
  27859. 6.34.8 MeP Variable Attributes
  27860. ------------------------------
  27861. The MeP target has a number of addressing modes and busses. The 'near'
  27862. space spans the standard memory space's first 16 megabytes (24 bits).
  27863. The 'far' space spans the entire 32-bit memory space. The 'based' space
  27864. is a 128-byte region in the memory space that is addressed relative to
  27865. the '$tp' register. The 'tiny' space is a 65536-byte region relative to
  27866. the '$gp' register. In addition to these memory regions, the MeP target
  27867. has a separate 16-bit control bus which is specified with 'cb'
  27868. attributes.
  27869. 'based'
  27870. Any variable with the 'based' attribute is assigned to the '.based'
  27871. section, and is accessed with relative to the '$tp' register.
  27872. 'tiny'
  27873. Likewise, the 'tiny' attribute assigned variables to the '.tiny'
  27874. section, relative to the '$gp' register.
  27875. 'near'
  27876. Variables with the 'near' attribute are assumed to have addresses
  27877. that fit in a 24-bit addressing mode. This is the default for
  27878. large variables ('-mtiny=4' is the default) but this attribute can
  27879. override '-mtiny=' for small variables, or override '-ml'.
  27880. 'far'
  27881. Variables with the 'far' attribute are addressed using a full
  27882. 32-bit address. Since this covers the entire memory space, this
  27883. allows modules to make no assumptions about where variables might
  27884. be stored.
  27885. 'io'
  27886. 'io (ADDR)'
  27887. Variables with the 'io' attribute are used to address memory-mapped
  27888. peripherals. If an address is specified, the variable is assigned
  27889. that address, else it is not assigned an address (it is assumed
  27890. some other module assigns an address). Example:
  27891. int timer_count __attribute__((io(0x123)));
  27892. 'cb'
  27893. 'cb (ADDR)'
  27894. Variables with the 'cb' attribute are used to access the control
  27895. bus, using special instructions. 'addr' indicates the control bus
  27896. address. Example:
  27897. int cpu_clock __attribute__((cb(0x123)));
  27898. 
  27899. File: gcc.info, Node: Microsoft Windows Variable Attributes, Next: MSP430 Variable Attributes, Prev: MeP Variable Attributes, Up: Variable Attributes
  27900. 6.34.9 Microsoft Windows Variable Attributes
  27901. --------------------------------------------
  27902. You can use these attributes on Microsoft Windows targets. *note x86
  27903. Variable Attributes:: for additional Windows compatibility attributes
  27904. available on all x86 targets.
  27905. 'dllimport'
  27906. 'dllexport'
  27907. The 'dllimport' and 'dllexport' attributes are described in *note
  27908. Microsoft Windows Function Attributes::.
  27909. 'selectany'
  27910. The 'selectany' attribute causes an initialized global variable to
  27911. have link-once semantics. When multiple definitions of the
  27912. variable are encountered by the linker, the first is selected and
  27913. the remainder are discarded. Following usage by the Microsoft
  27914. compiler, the linker is told _not_ to warn about size or content
  27915. differences of the multiple definitions.
  27916. Although the primary usage of this attribute is for POD types, the
  27917. attribute can also be applied to global C++ objects that are
  27918. initialized by a constructor. In this case, the static
  27919. initialization and destruction code for the object is emitted in
  27920. each translation defining the object, but the calls to the
  27921. constructor and destructor are protected by a link-once guard
  27922. variable.
  27923. The 'selectany' attribute is only available on Microsoft Windows
  27924. targets. You can use '__declspec (selectany)' as a synonym for
  27925. '__attribute__ ((selectany))' for compatibility with other
  27926. compilers.
  27927. 'shared'
  27928. On Microsoft Windows, in addition to putting variable definitions
  27929. in a named section, the section can also be shared among all
  27930. running copies of an executable or DLL. For example, this small
  27931. program defines shared data by putting it in a named section
  27932. 'shared' and marking the section shareable:
  27933. int foo __attribute__((section ("shared"), shared)) = 0;
  27934. int
  27935. main()
  27936. {
  27937. /* Read and write foo. All running
  27938. copies see the same value. */
  27939. return 0;
  27940. }
  27941. You may only use the 'shared' attribute along with 'section'
  27942. attribute with a fully-initialized global definition because of the
  27943. way linkers work. See 'section' attribute for more information.
  27944. The 'shared' attribute is only available on Microsoft Windows.
  27945. 
  27946. File: gcc.info, Node: MSP430 Variable Attributes, Next: Nvidia PTX Variable Attributes, Prev: Microsoft Windows Variable Attributes, Up: Variable Attributes
  27947. 6.34.10 MSP430 Variable Attributes
  27948. ----------------------------------
  27949. 'noinit'
  27950. Any data with the 'noinit' attribute will not be initialised by the
  27951. C runtime startup code, or the program loader. Not initialising
  27952. data in this way can reduce program startup times.
  27953. 'persistent'
  27954. Any variable with the 'persistent' attribute will not be
  27955. initialised by the C runtime startup code. Instead its value will
  27956. be set once, when the application is loaded, and then never
  27957. initialised again, even if the processor is reset or the program
  27958. restarts. Persistent data is intended to be placed into FLASH RAM,
  27959. where its value will be retained across resets. The linker script
  27960. being used to create the application should ensure that persistent
  27961. data is correctly placed.
  27962. 'lower'
  27963. 'upper'
  27964. 'either'
  27965. These attributes are the same as the MSP430 function attributes of
  27966. the same name (*note MSP430 Function Attributes::). These
  27967. attributes can be applied to both functions and variables.
  27968. 
  27969. File: gcc.info, Node: Nvidia PTX Variable Attributes, Next: PowerPC Variable Attributes, Prev: MSP430 Variable Attributes, Up: Variable Attributes
  27970. 6.34.11 Nvidia PTX Variable Attributes
  27971. --------------------------------------
  27972. These variable attributes are supported by the Nvidia PTX back end:
  27973. 'shared'
  27974. Use this attribute to place a variable in the '.shared' memory
  27975. space. This memory space is private to each cooperative thread
  27976. array; only threads within one thread block refer to the same
  27977. instance of the variable. The runtime does not initialize
  27978. variables in this memory space.
  27979. 
  27980. File: gcc.info, Node: PowerPC Variable Attributes, Next: RL78 Variable Attributes, Prev: Nvidia PTX Variable Attributes, Up: Variable Attributes
  27981. 6.34.12 PowerPC Variable Attributes
  27982. -----------------------------------
  27983. Three attributes currently are defined for PowerPC configurations:
  27984. 'altivec', 'ms_struct' and 'gcc_struct'.
  27985. For full documentation of the struct attributes please see the
  27986. documentation in *note x86 Variable Attributes::.
  27987. For documentation of 'altivec' attribute please see the documentation
  27988. in *note PowerPC Type Attributes::.
  27989. 
  27990. File: gcc.info, Node: RL78 Variable Attributes, Next: SPU Variable Attributes, Prev: PowerPC Variable Attributes, Up: Variable Attributes
  27991. 6.34.13 RL78 Variable Attributes
  27992. --------------------------------
  27993. The RL78 back end supports the 'saddr' variable attribute. This
  27994. specifies placement of the corresponding variable in the SADDR area,
  27995. which can be accessed more efficiently than the default memory region.
  27996. 
  27997. File: gcc.info, Node: SPU Variable Attributes, Next: V850 Variable Attributes, Prev: RL78 Variable Attributes, Up: Variable Attributes
  27998. 6.34.14 SPU Variable Attributes
  27999. -------------------------------
  28000. The SPU supports the 'spu_vector' attribute for variables. For
  28001. documentation of this attribute please see the documentation in *note
  28002. SPU Type Attributes::.
  28003. 
  28004. File: gcc.info, Node: V850 Variable Attributes, Next: x86 Variable Attributes, Prev: SPU Variable Attributes, Up: Variable Attributes
  28005. 6.34.15 V850 Variable Attributes
  28006. --------------------------------
  28007. These variable attributes are supported by the V850 back end:
  28008. 'sda'
  28009. Use this attribute to explicitly place a variable in the small data
  28010. area, which can hold up to 64 kilobytes.
  28011. 'tda'
  28012. Use this attribute to explicitly place a variable in the tiny data
  28013. area, which can hold up to 256 bytes in total.
  28014. 'zda'
  28015. Use this attribute to explicitly place a variable in the first 32
  28016. kilobytes of memory.
  28017. 
  28018. File: gcc.info, Node: x86 Variable Attributes, Next: Xstormy16 Variable Attributes, Prev: V850 Variable Attributes, Up: Variable Attributes
  28019. 6.34.16 x86 Variable Attributes
  28020. -------------------------------
  28021. Two attributes are currently defined for x86 configurations: 'ms_struct'
  28022. and 'gcc_struct'.
  28023. 'ms_struct'
  28024. 'gcc_struct'
  28025. If 'packed' is used on a structure, or if bit-fields are used, it
  28026. may be that the Microsoft ABI lays out the structure differently
  28027. than the way GCC normally does. Particularly when moving packed
  28028. data between functions compiled with GCC and the native Microsoft
  28029. compiler (either via function call or as data in a file), it may be
  28030. necessary to access either format.
  28031. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  28032. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  28033. respectively; see *note x86 Options::, for details of how structure
  28034. layout is affected. *Note x86 Type Attributes::, for information
  28035. about the corresponding attributes on types.
  28036. 
  28037. File: gcc.info, Node: Xstormy16 Variable Attributes, Prev: x86 Variable Attributes, Up: Variable Attributes
  28038. 6.34.17 Xstormy16 Variable Attributes
  28039. -------------------------------------
  28040. One attribute is currently defined for xstormy16 configurations:
  28041. 'below100'.
  28042. 'below100'
  28043. If a variable has the 'below100' attribute ('BELOW100' is allowed
  28044. also), GCC places the variable in the first 0x100 bytes of memory
  28045. and use special opcodes to access it. Such variables are placed in
  28046. either the '.bss_below100' section or the '.data_below100' section.
  28047. 
  28048. File: gcc.info, Node: Type Attributes, Next: Label Attributes, Prev: Variable Attributes, Up: C Extensions
  28049. 6.35 Specifying Attributes of Types
  28050. ===================================
  28051. The keyword '__attribute__' allows you to specify various special
  28052. properties of types. Some type attributes apply only to structure and
  28053. union types, and in C++, also class types, while others can apply to any
  28054. type defined via a 'typedef' declaration. Unless otherwise specified,
  28055. the same restrictions and effects apply to attributes regardless of
  28056. whether a type is a trivial structure or a C++ class with user-defined
  28057. constructors, destructors, or a copy assignment.
  28058. Other attributes are defined for functions (*note Function
  28059. Attributes::), labels (*note Label Attributes::), enumerators (*note
  28060. Enumerator Attributes::), statements (*note Statement Attributes::), and
  28061. for variables (*note Variable Attributes::).
  28062. The '__attribute__' keyword is followed by an attribute specification
  28063. enclosed in double parentheses.
  28064. You may specify type attributes in an enum, struct or union type
  28065. declaration or definition by placing them immediately after the
  28066. 'struct', 'union' or 'enum' keyword. You can also place them just past
  28067. the closing curly brace of the definition, but this is less preferred
  28068. because logically the type should be fully defined at the closing brace.
  28069. You can also include type attributes in a 'typedef' declaration. *Note
  28070. Attribute Syntax::, for details of the exact syntax for using
  28071. attributes.
  28072. * Menu:
  28073. * Common Type Attributes::
  28074. * ARC Type Attributes::
  28075. * ARM Type Attributes::
  28076. * MeP Type Attributes::
  28077. * PowerPC Type Attributes::
  28078. * SPU Type Attributes::
  28079. * x86 Type Attributes::
  28080. 
  28081. File: gcc.info, Node: Common Type Attributes, Next: ARC Type Attributes, Up: Type Attributes
  28082. 6.35.1 Common Type Attributes
  28083. -----------------------------
  28084. The following type attributes are supported on most targets.
  28085. 'aligned'
  28086. 'aligned (ALIGNMENT)'
  28087. The 'aligned' attribute specifies a minimum alignment (in bytes)
  28088. for variables of the specified type. When specified, ALIGNMENT
  28089. must be a power of 2. Specifying no ALIGNMENT argument implies the
  28090. maximum alignment for the target, which is often, but by no means
  28091. always, 8 or 16 bytes. For example, the declarations:
  28092. struct __attribute__ ((aligned (8))) S { short f[3]; };
  28093. typedef int more_aligned_int __attribute__ ((aligned (8)));
  28094. force the compiler to ensure (as far as it can) that each variable
  28095. whose type is 'struct S' or 'more_aligned_int' is allocated and
  28096. aligned _at least_ on a 8-byte boundary. On a SPARC, having all
  28097. variables of type 'struct S' aligned to 8-byte boundaries allows
  28098. the compiler to use the 'ldd' and 'std' (doubleword load and store)
  28099. instructions when copying one variable of type 'struct S' to
  28100. another, thus improving run-time efficiency.
  28101. Note that the alignment of any given 'struct' or 'union' type is
  28102. required by the ISO C standard to be at least a perfect multiple of
  28103. the lowest common multiple of the alignments of all of the members
  28104. of the 'struct' or 'union' in question. This means that you _can_
  28105. effectively adjust the alignment of a 'struct' or 'union' type by
  28106. attaching an 'aligned' attribute to any one of the members of such
  28107. a type, but the notation illustrated in the example above is a more
  28108. obvious, intuitive, and readable way to request the compiler to
  28109. adjust the alignment of an entire 'struct' or 'union' type.
  28110. As in the preceding example, you can explicitly specify the
  28111. alignment (in bytes) that you wish the compiler to use for a given
  28112. 'struct' or 'union' type. Alternatively, you can leave out the
  28113. alignment factor and just ask the compiler to align a type to the
  28114. maximum useful alignment for the target machine you are compiling
  28115. for. For example, you could write:
  28116. struct __attribute__ ((aligned)) S { short f[3]; };
  28117. Whenever you leave out the alignment factor in an 'aligned'
  28118. attribute specification, the compiler automatically sets the
  28119. alignment for the type to the largest alignment that is ever used
  28120. for any data type on the target machine you are compiling for.
  28121. Doing this can often make copy operations more efficient, because
  28122. the compiler can use whatever instructions copy the biggest chunks
  28123. of memory when performing copies to or from the variables that have
  28124. types that you have aligned this way.
  28125. In the example above, if the size of each 'short' is 2 bytes, then
  28126. the size of the entire 'struct S' type is 6 bytes. The smallest
  28127. power of two that is greater than or equal to that is 8, so the
  28128. compiler sets the alignment for the entire 'struct S' type to 8
  28129. bytes.
  28130. Note that although you can ask the compiler to select a
  28131. time-efficient alignment for a given type and then declare only
  28132. individual stand-alone objects of that type, the compiler's ability
  28133. to select a time-efficient alignment is primarily useful only when
  28134. you plan to create arrays of variables having the relevant
  28135. (efficiently aligned) type. If you declare or use arrays of
  28136. variables of an efficiently-aligned type, then it is likely that
  28137. your program also does pointer arithmetic (or subscripting, which
  28138. amounts to the same thing) on pointers to the relevant type, and
  28139. the code that the compiler generates for these pointer arithmetic
  28140. operations is often more efficient for efficiently-aligned types
  28141. than for other types.
  28142. Note that the effectiveness of 'aligned' attributes may be limited
  28143. by inherent limitations in your linker. On many systems, the
  28144. linker is only able to arrange for variables to be aligned up to a
  28145. certain maximum alignment. (For some linkers, the maximum
  28146. supported alignment may be very very small.) If your linker is
  28147. only able to align variables up to a maximum of 8-byte alignment,
  28148. then specifying 'aligned (16)' in an '__attribute__' still only
  28149. provides you with 8-byte alignment. See your linker documentation
  28150. for further information.
  28151. When used on a struct, or struct member, the 'aligned' attribute
  28152. can only increase the alignment; in order to decrease it, the
  28153. 'packed' attribute must be specified as well. When used as part of
  28154. a typedef, the 'aligned' attribute can both increase and decrease
  28155. alignment, and specifying the 'packed' attribute generates a
  28156. warning.
  28157. 'warn_if_not_aligned (ALIGNMENT)'
  28158. This attribute specifies a threshold for the structure field,
  28159. measured in bytes. If the structure field is aligned below the
  28160. threshold, a warning will be issued. For example, the declaration:
  28161. typedef unsigned long long __u64
  28162. __attribute__((aligned (4), warn_if_not_aligned (8)));
  28163. struct foo
  28164. {
  28165. int i1;
  28166. int i2;
  28167. __u64 x;
  28168. };
  28169. causes the compiler to issue an warning on 'struct foo', like
  28170. 'warning: alignment 4 of 'struct foo' is less than 8'. It is used
  28171. to define 'struct foo' in such a way that 'struct foo' has the same
  28172. layout and the structure field 'x' has the same alignment when
  28173. '__u64' is aligned at either 4 or 8 bytes. Align 'struct foo' to 8
  28174. bytes:
  28175. struct __attribute__ ((aligned (8))) foo
  28176. {
  28177. int i1;
  28178. int i2;
  28179. __u64 x;
  28180. };
  28181. silences the warning. The compiler also issues a warning, like
  28182. 'warning: 'x' offset 12 in 'struct foo' isn't aligned to 8', when
  28183. the structure field has the misaligned offset:
  28184. struct __attribute__ ((aligned (8))) foo
  28185. {
  28186. int i1;
  28187. int i2;
  28188. int i3;
  28189. __u64 x;
  28190. };
  28191. This warning can be disabled by '-Wno-if-not-aligned'.
  28192. 'alloc_size (POSITION)'
  28193. 'alloc_size (POSITION-1, POSITION-2)'
  28194. The 'alloc_size' type attribute may be applied to the definition of
  28195. a type of a function that returns a pointer and takes at least one
  28196. argument of an integer type. It indicates that the returned
  28197. pointer points to an object whose size is given by the function
  28198. argument at POSITION-1, or by the product of the arguments at
  28199. POSITION-1 and POSITION-2. Meaningful sizes are positive values
  28200. less than 'PTRDIFF_MAX'. Other sizes are disagnosed when detected.
  28201. GCC uses this information to improve the results of
  28202. '__builtin_object_size'.
  28203. For instance, the following declarations
  28204. typedef __attribute__ ((alloc_size (1, 2))) void*
  28205. calloc_type (size_t, size_t);
  28206. typedef __attribute__ ((alloc_size (1))) void*
  28207. malloc_type (size_t);
  28208. specify that 'calloc_type' is a type of a function that, like the
  28209. standard C function 'calloc', returns an object whose size is given
  28210. by the product of arguments 1 and 2, and that 'malloc_type', like
  28211. the standard C function 'malloc', returns an object whose size is
  28212. given by argument 1 to the function.
  28213. 'copy'
  28214. 'copy (EXPRESSION)'
  28215. The 'copy' attribute applies the set of attributes with which the
  28216. type of the EXPRESSION has been declared to the declaration of the
  28217. type to which the attribute is applied. The attribute is designed
  28218. for libraries that define aliases that are expected to specify the
  28219. same set of attributes as the aliased symbols. The 'copy'
  28220. attribute can be used with types, variables, or functions.
  28221. However, the kind of symbol to which the attribute is applied
  28222. (either varible or function) must match the kind of symbol to which
  28223. the argument refers. The 'copy' attribute copies only syntactic
  28224. and semantic attributes but not attributes that affect a symbol's
  28225. linkage or visibility such as 'alias', 'visibility', or 'weak'.
  28226. The 'deprecated' attribute is also not copied. *Note Common
  28227. Function Attributes::. *Note Common Variable Attributes::.
  28228. For example, suppose 'struct A' below is defined in some third
  28229. party library header to have the alignment requirement 'N' and to
  28230. force a warning whenever a variable of the type is not so aligned
  28231. due to attribute 'packed'. Specifying the 'copy' attribute on the
  28232. definition on the unrelated 'struct B' has the effect of copying
  28233. all relevant attributes from the type referenced by the pointer
  28234. expression to 'struct B'.
  28235. struct __attribute__ ((aligned (N), warn_if_not_aligned (N)))
  28236. A { /* ... */ };
  28237. struct __attribute__ ((copy ( (struct A *)0)) B { /* ... */ };
  28238. 'deprecated'
  28239. 'deprecated (MSG)'
  28240. The 'deprecated' attribute results in a warning if the type is used
  28241. anywhere in the source file. This is useful when identifying types
  28242. that are expected to be removed in a future version of a program.
  28243. If possible, the warning also includes the location of the
  28244. declaration of the deprecated type, to enable users to easily find
  28245. further information about why the type is deprecated, or what they
  28246. should do instead. Note that the warnings only occur for uses and
  28247. then only if the type is being applied to an identifier that itself
  28248. is not being declared as deprecated.
  28249. typedef int T1 __attribute__ ((deprecated));
  28250. T1 x;
  28251. typedef T1 T2;
  28252. T2 y;
  28253. typedef T1 T3 __attribute__ ((deprecated));
  28254. T3 z __attribute__ ((deprecated));
  28255. results in a warning on line 2 and 3 but not lines 4, 5, or 6. No
  28256. warning is issued for line 4 because T2 is not explicitly
  28257. deprecated. Line 5 has no warning because T3 is explicitly
  28258. deprecated. Similarly for line 6. The optional MSG argument,
  28259. which must be a string, is printed in the warning if present.
  28260. Control characters in the string will be replaced with escape
  28261. sequences, and if the '-fmessage-length' option is set to 0 (its
  28262. default value) then any newline characters will be ignored.
  28263. The 'deprecated' attribute can also be used for functions and
  28264. variables (*note Function Attributes::, *note Variable
  28265. Attributes::.)
  28266. The message attached to the attribute is affected by the setting of
  28267. the '-fmessage-length' option.
  28268. 'designated_init'
  28269. This attribute may only be applied to structure types. It
  28270. indicates that any initialization of an object of this type must
  28271. use designated initializers rather than positional initializers.
  28272. The intent of this attribute is to allow the programmer to indicate
  28273. that a structure's layout may change, and that therefore relying on
  28274. positional initialization will result in future breakage.
  28275. GCC emits warnings based on this attribute by default; use
  28276. '-Wno-designated-init' to suppress them.
  28277. 'may_alias'
  28278. Accesses through pointers to types with this attribute are not
  28279. subject to type-based alias analysis, but are instead assumed to be
  28280. able to alias any other type of objects. In the context of section
  28281. 6.5 paragraph 7 of the C99 standard, an lvalue expression
  28282. dereferencing such a pointer is treated like having a character
  28283. type. See '-fstrict-aliasing' for more information on aliasing
  28284. issues. This extension exists to support some vector APIs, in
  28285. which pointers to one vector type are permitted to alias pointers
  28286. to a different vector type.
  28287. Note that an object of a type with this attribute does not have any
  28288. special semantics.
  28289. Example of use:
  28290. typedef short __attribute__ ((__may_alias__)) short_a;
  28291. int
  28292. main (void)
  28293. {
  28294. int a = 0x12345678;
  28295. short_a *b = (short_a *) &a;
  28296. b[1] = 0;
  28297. if (a == 0x12345678)
  28298. abort();
  28299. exit(0);
  28300. }
  28301. If you replaced 'short_a' with 'short' in the variable declaration,
  28302. the above program would abort when compiled with
  28303. '-fstrict-aliasing', which is on by default at '-O2' or above.
  28304. 'mode (MODE)'
  28305. This attribute specifies the data type for the
  28306. declaration--whichever type corresponds to the mode MODE. This in
  28307. effect lets you request an integer or floating-point type according
  28308. to its width.
  28309. *Note (gccint)Machine Modes::, for a list of the possible keywords
  28310. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  28311. indicate the mode corresponding to a one-byte integer, 'word' or
  28312. '__word__' for the mode of a one-word integer, and 'pointer' or
  28313. '__pointer__' for the mode used to represent pointers.
  28314. 'packed'
  28315. This attribute, attached to a 'struct', 'union', or C++ 'class'
  28316. type definition, specifies that each of its members (other than
  28317. zero-width bit-fields) is placed to minimize the memory required.
  28318. This is equivalent to specifying the 'packed' attribute on each of
  28319. the members.
  28320. When attached to an 'enum' definition, the 'packed' attribute
  28321. indicates that the smallest integral type should be used.
  28322. Specifying the '-fshort-enums' flag on the command line is
  28323. equivalent to specifying the 'packed' attribute on all 'enum'
  28324. definitions.
  28325. In the following example 'struct my_packed_struct''s members are
  28326. packed closely together, but the internal layout of its 's' member
  28327. is not packed--to do that, 'struct my_unpacked_struct' needs to be
  28328. packed too.
  28329. struct my_unpacked_struct
  28330. {
  28331. char c;
  28332. int i;
  28333. };
  28334. struct __attribute__ ((__packed__)) my_packed_struct
  28335. {
  28336. char c;
  28337. int i;
  28338. struct my_unpacked_struct s;
  28339. };
  28340. You may only specify the 'packed' attribute on the definition of an
  28341. 'enum', 'struct', 'union', or 'class', not on a 'typedef' that does
  28342. not also define the enumerated type, structure, union, or class.
  28343. 'scalar_storage_order ("ENDIANNESS")'
  28344. When attached to a 'union' or a 'struct', this attribute sets the
  28345. storage order, aka endianness, of the scalar fields of the type, as
  28346. well as the array fields whose component is scalar. The supported
  28347. endiannesses are 'big-endian' and 'little-endian'. The attribute
  28348. has no effects on fields which are themselves a 'union', a 'struct'
  28349. or an array whose component is a 'union' or a 'struct', and it is
  28350. possible for these fields to have a different scalar storage order
  28351. than the enclosing type.
  28352. This attribute is supported only for targets that use a uniform
  28353. default scalar storage order (fortunately, most of them), i.e.
  28354. targets that store the scalars either all in big-endian or all in
  28355. little-endian.
  28356. Additional restrictions are enforced for types with the reverse
  28357. scalar storage order with regard to the scalar storage order of the
  28358. target:
  28359. * Taking the address of a scalar field of a 'union' or a
  28360. 'struct' with reverse scalar storage order is not permitted
  28361. and yields an error.
  28362. * Taking the address of an array field, whose component is
  28363. scalar, of a 'union' or a 'struct' with reverse scalar storage
  28364. order is permitted but yields a warning, unless
  28365. '-Wno-scalar-storage-order' is specified.
  28366. * Taking the address of a 'union' or a 'struct' with reverse
  28367. scalar storage order is permitted.
  28368. These restrictions exist because the storage order attribute is
  28369. lost when the address of a scalar or the address of an array with
  28370. scalar component is taken, so storing indirectly through this
  28371. address generally does not work. The second case is nevertheless
  28372. allowed to be able to perform a block copy from or to the array.
  28373. Moreover, the use of type punning or aliasing to toggle the storage
  28374. order is not supported; that is to say, a given scalar object
  28375. cannot be accessed through distinct types that assign a different
  28376. storage order to it.
  28377. 'transparent_union'
  28378. This attribute, attached to a 'union' type definition, indicates
  28379. that any function parameter having that union type causes calls to
  28380. that function to be treated in a special way.
  28381. First, the argument corresponding to a transparent union type can
  28382. be of any type in the union; no cast is required. Also, if the
  28383. union contains a pointer type, the corresponding argument can be a
  28384. null pointer constant or a void pointer expression; and if the
  28385. union contains a void pointer type, the corresponding argument can
  28386. be any pointer expression. If the union member type is a pointer,
  28387. qualifiers like 'const' on the referenced type must be respected,
  28388. just as with normal pointer conversions.
  28389. Second, the argument is passed to the function using the calling
  28390. conventions of the first member of the transparent union, not the
  28391. calling conventions of the union itself. All members of the union
  28392. must have the same machine representation; this is necessary for
  28393. this argument passing to work properly.
  28394. Transparent unions are designed for library functions that have
  28395. multiple interfaces for compatibility reasons. For example,
  28396. suppose the 'wait' function must accept either a value of type 'int
  28397. *' to comply with POSIX, or a value of type 'union wait *' to
  28398. comply with the 4.1BSD interface. If 'wait''s parameter were 'void
  28399. *', 'wait' would accept both kinds of arguments, but it would also
  28400. accept any other pointer type and this would make argument type
  28401. checking less useful. Instead, '<sys/wait.h>' might define the
  28402. interface as follows:
  28403. typedef union __attribute__ ((__transparent_union__))
  28404. {
  28405. int *__ip;
  28406. union wait *__up;
  28407. } wait_status_ptr_t;
  28408. pid_t wait (wait_status_ptr_t);
  28409. This interface allows either 'int *' or 'union wait *' arguments to
  28410. be passed, using the 'int *' calling convention. The program can
  28411. call 'wait' with arguments of either type:
  28412. int w1 () { int w; return wait (&w); }
  28413. int w2 () { union wait w; return wait (&w); }
  28414. With this interface, 'wait''s implementation might look like this:
  28415. pid_t wait (wait_status_ptr_t p)
  28416. {
  28417. return waitpid (-1, p.__ip, 0);
  28418. }
  28419. 'unused'
  28420. When attached to a type (including a 'union' or a 'struct'), this
  28421. attribute means that variables of that type are meant to appear
  28422. possibly unused. GCC does not produce a warning for any variables
  28423. of that type, even if the variable appears to do nothing. This is
  28424. often the case with lock or thread classes, which are usually
  28425. defined and then not referenced, but contain constructors and
  28426. destructors that have nontrivial bookkeeping functions.
  28427. 'vector_size (BYTES)'
  28428. This attribute specifies the vector size for the type, measured in
  28429. bytes. The type to which it applies is known as the "base type".
  28430. The BYTES argument must be a positive power-of-two multiple of the
  28431. base type size. For example, the following declarations:
  28432. typedef __attribute__ ((vector_size (32))) int int_vec32_t ;
  28433. typedef __attribute__ ((vector_size (32))) int* int_vec32_ptr_t;
  28434. typedef __attribute__ ((vector_size (32))) int int_vec32_arr3_t[3];
  28435. define 'int_vec32_t' to be a 32-byte vector type composed of 'int'
  28436. sized units. With 'int' having a size of 4 bytes, the type defines
  28437. a vector of eight units, four bytes each. The mode of variables of
  28438. type 'int_vec32_t' is 'V8SI'. 'int_vec32_ptr_t' is then defined to
  28439. be a pointer to such a vector type, and 'int_vec32_arr3_t' to be an
  28440. array of three such vectors. *Note Vector Extensions:: for details
  28441. of manipulating objects of vector types.
  28442. This attribute is only applicable to integral and floating scalar
  28443. types. In function declarations the attribute applies to the
  28444. function return type.
  28445. For example, the following:
  28446. __attribute__ ((vector_size (16))) float get_flt_vec16 (void);
  28447. declares 'get_flt_vec16' to be a function returning a 16-byte
  28448. vector with the base type 'float'.
  28449. 'visibility'
  28450. In C++, attribute visibility (*note Function Attributes::) can also
  28451. be applied to class, struct, union and enum types. Unlike other
  28452. type attributes, the attribute must appear between the initial
  28453. keyword and the name of the type; it cannot appear after the body
  28454. of the type.
  28455. Note that the type visibility is applied to vague linkage entities
  28456. associated with the class (vtable, typeinfo node, etc.). In
  28457. particular, if a class is thrown as an exception in one shared
  28458. object and caught in another, the class must have default
  28459. visibility. Otherwise the two shared objects are unable to use the
  28460. same typeinfo node and exception handling will break.
  28461. To specify multiple attributes, separate them by commas within the
  28462. double parentheses: for example, '__attribute__ ((aligned (16),
  28463. packed))'.
  28464. 
  28465. File: gcc.info, Node: ARC Type Attributes, Next: ARM Type Attributes, Prev: Common Type Attributes, Up: Type Attributes
  28466. 6.35.2 ARC Type Attributes
  28467. --------------------------
  28468. Declaring objects with 'uncached' allows you to exclude data-cache
  28469. participation in load and store operations on those objects without
  28470. involving the additional semantic implications of 'volatile'. The '.di'
  28471. instruction suffix is used for all loads and stores of data declared
  28472. 'uncached'.
  28473. 
  28474. File: gcc.info, Node: ARM Type Attributes, Next: MeP Type Attributes, Prev: ARC Type Attributes, Up: Type Attributes
  28475. 6.35.3 ARM Type Attributes
  28476. --------------------------
  28477. On those ARM targets that support 'dllimport' (such as Symbian OS), you
  28478. can use the 'notshared' attribute to indicate that the virtual table and
  28479. other similar data for a class should not be exported from a DLL. For
  28480. example:
  28481. class __declspec(notshared) C {
  28482. public:
  28483. __declspec(dllimport) C();
  28484. virtual void f();
  28485. }
  28486. __declspec(dllexport)
  28487. C::C() {}
  28488. In this code, 'C::C' is exported from the current DLL, but the virtual
  28489. table for 'C' is not exported. (You can use '__attribute__' instead of
  28490. '__declspec' if you prefer, but most Symbian OS code uses '__declspec'.)
  28491. 
  28492. File: gcc.info, Node: MeP Type Attributes, Next: PowerPC Type Attributes, Prev: ARM Type Attributes, Up: Type Attributes
  28493. 6.35.4 MeP Type Attributes
  28494. --------------------------
  28495. Many of the MeP variable attributes may be applied to types as well.
  28496. Specifically, the 'based', 'tiny', 'near', and 'far' attributes may be
  28497. applied to either. The 'io' and 'cb' attributes may not be applied to
  28498. types.
  28499. 
  28500. File: gcc.info, Node: PowerPC Type Attributes, Next: SPU Type Attributes, Prev: MeP Type Attributes, Up: Type Attributes
  28501. 6.35.5 PowerPC Type Attributes
  28502. ------------------------------
  28503. Three attributes currently are defined for PowerPC configurations:
  28504. 'altivec', 'ms_struct' and 'gcc_struct'.
  28505. For full documentation of the 'ms_struct' and 'gcc_struct' attributes
  28506. please see the documentation in *note x86 Type Attributes::.
  28507. The 'altivec' attribute allows one to declare AltiVec vector data types
  28508. supported by the AltiVec Programming Interface Manual. The attribute
  28509. requires an argument to specify one of three vector types: 'vector__',
  28510. 'pixel__' (always followed by unsigned short), and 'bool__' (always
  28511. followed by unsigned).
  28512. __attribute__((altivec(vector__)))
  28513. __attribute__((altivec(pixel__))) unsigned short
  28514. __attribute__((altivec(bool__))) unsigned
  28515. These attributes mainly are intended to support the '__vector',
  28516. '__pixel', and '__bool' AltiVec keywords.
  28517. 
  28518. File: gcc.info, Node: SPU Type Attributes, Next: x86 Type Attributes, Prev: PowerPC Type Attributes, Up: Type Attributes
  28519. 6.35.6 SPU Type Attributes
  28520. --------------------------
  28521. The SPU supports the 'spu_vector' attribute for types. This attribute
  28522. allows one to declare vector data types supported by the
  28523. Sony/Toshiba/IBM SPU Language Extensions Specification. It is intended
  28524. to support the '__vector' keyword.
  28525. 
  28526. File: gcc.info, Node: x86 Type Attributes, Prev: SPU Type Attributes, Up: Type Attributes
  28527. 6.35.7 x86 Type Attributes
  28528. --------------------------
  28529. Two attributes are currently defined for x86 configurations: 'ms_struct'
  28530. and 'gcc_struct'.
  28531. 'ms_struct'
  28532. 'gcc_struct'
  28533. If 'packed' is used on a structure, or if bit-fields are used it
  28534. may be that the Microsoft ABI packs them differently than GCC
  28535. normally packs them. Particularly when moving packed data between
  28536. functions compiled with GCC and the native Microsoft compiler
  28537. (either via function call or as data in a file), it may be
  28538. necessary to access either format.
  28539. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  28540. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  28541. respectively; see *note x86 Options::, for details of how structure
  28542. layout is affected. *Note x86 Variable Attributes::, for
  28543. information about the corresponding attributes on variables.
  28544. 
  28545. File: gcc.info, Node: Label Attributes, Next: Enumerator Attributes, Prev: Type Attributes, Up: C Extensions
  28546. 6.36 Label Attributes
  28547. =====================
  28548. GCC allows attributes to be set on C labels. *Note Attribute Syntax::,
  28549. for details of the exact syntax for using attributes. Other attributes
  28550. are available for functions (*note Function Attributes::), variables
  28551. (*note Variable Attributes::), enumerators (*note Enumerator
  28552. Attributes::), statements (*note Statement Attributes::), and for types
  28553. (*note Type Attributes::).
  28554. This example uses the 'cold' label attribute to indicate the
  28555. 'ErrorHandling' branch is unlikely to be taken and that the
  28556. 'ErrorHandling' label is unused:
  28557. asm goto ("some asm" : : : : NoError);
  28558. /* This branch (the fall-through from the asm) is less commonly used */
  28559. ErrorHandling:
  28560. __attribute__((cold, unused)); /* Semi-colon is required here */
  28561. printf("error\n");
  28562. return 0;
  28563. NoError:
  28564. printf("no error\n");
  28565. return 1;
  28566. 'unused'
  28567. This feature is intended for program-generated code that may
  28568. contain unused labels, but which is compiled with '-Wall'. It is
  28569. not normally appropriate to use in it human-written code, though it
  28570. could be useful in cases where the code that jumps to the label is
  28571. contained within an '#ifdef' conditional.
  28572. 'hot'
  28573. The 'hot' attribute on a label is used to inform the compiler that
  28574. the path following the label is more likely than paths that are not
  28575. so annotated. This attribute is used in cases where
  28576. '__builtin_expect' cannot be used, for instance with computed goto
  28577. or 'asm goto'.
  28578. 'cold'
  28579. The 'cold' attribute on labels is used to inform the compiler that
  28580. the path following the label is unlikely to be executed. This
  28581. attribute is used in cases where '__builtin_expect' cannot be used,
  28582. for instance with computed goto or 'asm goto'.
  28583. 
  28584. File: gcc.info, Node: Enumerator Attributes, Next: Statement Attributes, Prev: Label Attributes, Up: C Extensions
  28585. 6.37 Enumerator Attributes
  28586. ==========================
  28587. GCC allows attributes to be set on enumerators. *Note Attribute
  28588. Syntax::, for details of the exact syntax for using attributes. Other
  28589. attributes are available for functions (*note Function Attributes::),
  28590. variables (*note Variable Attributes::), labels (*note Label
  28591. Attributes::), statements (*note Statement Attributes::), and for types
  28592. (*note Type Attributes::).
  28593. This example uses the 'deprecated' enumerator attribute to indicate the
  28594. 'oldval' enumerator is deprecated:
  28595. enum E {
  28596. oldval __attribute__((deprecated)),
  28597. newval
  28598. };
  28599. int
  28600. fn (void)
  28601. {
  28602. return oldval;
  28603. }
  28604. 'deprecated'
  28605. The 'deprecated' attribute results in a warning if the enumerator
  28606. is used anywhere in the source file. This is useful when
  28607. identifying enumerators that are expected to be removed in a future
  28608. version of a program. The warning also includes the location of
  28609. the declaration of the deprecated enumerator, to enable users to
  28610. easily find further information about why the enumerator is
  28611. deprecated, or what they should do instead. Note that the warnings
  28612. only occurs for uses.
  28613. 
  28614. File: gcc.info, Node: Statement Attributes, Next: Attribute Syntax, Prev: Enumerator Attributes, Up: C Extensions
  28615. 6.38 Statement Attributes
  28616. =========================
  28617. GCC allows attributes to be set on null statements. *Note Attribute
  28618. Syntax::, for details of the exact syntax for using attributes. Other
  28619. attributes are available for functions (*note Function Attributes::),
  28620. variables (*note Variable Attributes::), labels (*note Label
  28621. Attributes::), enumerators (*note Enumerator Attributes::), and for
  28622. types (*note Type Attributes::).
  28623. This example uses the 'fallthrough' statement attribute to indicate
  28624. that the '-Wimplicit-fallthrough' warning should not be emitted:
  28625. switch (cond)
  28626. {
  28627. case 1:
  28628. bar (1);
  28629. __attribute__((fallthrough));
  28630. case 2:
  28631. ...
  28632. }
  28633. 'fallthrough'
  28634. The 'fallthrough' attribute with a null statement serves as a
  28635. fallthrough statement. It hints to the compiler that a statement
  28636. that falls through to another case label, or user-defined label in
  28637. a switch statement is intentional and thus the
  28638. '-Wimplicit-fallthrough' warning must not trigger. The fallthrough
  28639. attribute may appear at most once in each attribute list, and may
  28640. not be mixed with other attributes. It can only be used in a
  28641. switch statement (the compiler will issue an error otherwise),
  28642. after a preceding statement and before a logically succeeding case
  28643. label, or user-defined label.
  28644. 
  28645. File: gcc.info, Node: Attribute Syntax, Next: Function Prototypes, Prev: Statement Attributes, Up: C Extensions
  28646. 6.39 Attribute Syntax
  28647. =====================
  28648. This section describes the syntax with which '__attribute__' may be
  28649. used, and the constructs to which attribute specifiers bind, for the C
  28650. language. Some details may vary for C++ and Objective-C. Because of
  28651. infelicities in the grammar for attributes, some forms described here
  28652. may not be successfully parsed in all cases.
  28653. There are some problems with the semantics of attributes in C++. For
  28654. example, there are no manglings for attributes, although they may affect
  28655. code generation, so problems may arise when attributed types are used in
  28656. conjunction with templates or overloading. Similarly, 'typeid' does not
  28657. distinguish between types with different attributes. Support for
  28658. attributes in C++ may be restricted in future to attributes on
  28659. declarations only, but not on nested declarators.
  28660. *Note Function Attributes::, for details of the semantics of attributes
  28661. applying to functions. *Note Variable Attributes::, for details of the
  28662. semantics of attributes applying to variables. *Note Type Attributes::,
  28663. for details of the semantics of attributes applying to structure, union
  28664. and enumerated types. *Note Label Attributes::, for details of the
  28665. semantics of attributes applying to labels. *Note Enumerator
  28666. Attributes::, for details of the semantics of attributes applying to
  28667. enumerators. *Note Statement Attributes::, for details of the semantics
  28668. of attributes applying to statements.
  28669. An "attribute specifier" is of the form '__attribute__
  28670. ((ATTRIBUTE-LIST))'. An "attribute list" is a possibly empty
  28671. comma-separated sequence of "attributes", where each attribute is one of
  28672. the following:
  28673. * Empty. Empty attributes are ignored.
  28674. * An attribute name (which may be an identifier such as 'unused', or
  28675. a reserved word such as 'const').
  28676. * An attribute name followed by a parenthesized list of parameters
  28677. for the attribute. These parameters take one of the following
  28678. forms:
  28679. * An identifier. For example, 'mode' attributes use this form.
  28680. * An identifier followed by a comma and a non-empty
  28681. comma-separated list of expressions. For example, 'format'
  28682. attributes use this form.
  28683. * A possibly empty comma-separated list of expressions. For
  28684. example, 'format_arg' attributes use this form with the list
  28685. being a single integer constant expression, and 'alias'
  28686. attributes use this form with the list being a single string
  28687. constant.
  28688. An "attribute specifier list" is a sequence of one or more attribute
  28689. specifiers, not separated by any other tokens.
  28690. You may optionally specify attribute names with '__' preceding and
  28691. following the name. This allows you to use them in header files without
  28692. being concerned about a possible macro of the same name. For example,
  28693. you may use the attribute name '__noreturn__' instead of 'noreturn'.
  28694. Label Attributes
  28695. ................
  28696. In GNU C, an attribute specifier list may appear after the colon
  28697. following a label, other than a 'case' or 'default' label. GNU C++ only
  28698. permits attributes on labels if the attribute specifier is immediately
  28699. followed by a semicolon (i.e., the label applies to an empty statement).
  28700. If the semicolon is missing, C++ label attributes are ambiguous, as it
  28701. is permissible for a declaration, which could begin with an attribute
  28702. list, to be labelled in C++. Declarations cannot be labelled in C90 or
  28703. C99, so the ambiguity does not arise there.
  28704. Enumerator Attributes
  28705. .....................
  28706. In GNU C, an attribute specifier list may appear as part of an
  28707. enumerator. The attribute goes after the enumeration constant, before
  28708. '=', if present. The optional attribute in the enumerator appertains to
  28709. the enumeration constant. It is not possible to place the attribute
  28710. after the constant expression, if present.
  28711. Statement Attributes
  28712. ....................
  28713. In GNU C, an attribute specifier list may appear as part of a null
  28714. statement. The attribute goes before the semicolon.
  28715. Type Attributes
  28716. ...............
  28717. An attribute specifier list may appear as part of a 'struct', 'union' or
  28718. 'enum' specifier. It may go either immediately after the 'struct',
  28719. 'union' or 'enum' keyword, or after the closing brace. The former
  28720. syntax is preferred. Where attribute specifiers follow the closing
  28721. brace, they are considered to relate to the structure, union or
  28722. enumerated type defined, not to any enclosing declaration the type
  28723. specifier appears in, and the type defined is not complete until after
  28724. the attribute specifiers.
  28725. All other attributes
  28726. ....................
  28727. Otherwise, an attribute specifier appears as part of a declaration,
  28728. counting declarations of unnamed parameters and type names, and relates
  28729. to that declaration (which may be nested in another declaration, for
  28730. example in the case of a parameter declaration), or to a particular
  28731. declarator within a declaration. Where an attribute specifier is
  28732. applied to a parameter declared as a function or an array, it should
  28733. apply to the function or array rather than the pointer to which the
  28734. parameter is implicitly converted, but this is not yet correctly
  28735. implemented.
  28736. Any list of specifiers and qualifiers at the start of a declaration may
  28737. contain attribute specifiers, whether or not such a list may in that
  28738. context contain storage class specifiers. (Some attributes, however,
  28739. are essentially in the nature of storage class specifiers, and only make
  28740. sense where storage class specifiers may be used; for example,
  28741. 'section'.) There is one necessary limitation to this syntax: the first
  28742. old-style parameter declaration in a function definition cannot begin
  28743. with an attribute specifier, because such an attribute applies to the
  28744. function instead by syntax described below (which, however, is not yet
  28745. implemented in this case). In some other cases, attribute specifiers
  28746. are permitted by this grammar but not yet supported by the compiler.
  28747. All attribute specifiers in this place relate to the declaration as a
  28748. whole. In the obsolescent usage where a type of 'int' is implied by the
  28749. absence of type specifiers, such a list of specifiers and qualifiers may
  28750. be an attribute specifier list with no other specifiers or qualifiers.
  28751. At present, the first parameter in a function prototype must have some
  28752. type specifier that is not an attribute specifier; this resolves an
  28753. ambiguity in the interpretation of 'void f(int (__attribute__((foo))
  28754. x))', but is subject to change. At present, if the parentheses of a
  28755. function declarator contain only attributes then those attributes are
  28756. ignored, rather than yielding an error or warning or implying a single
  28757. parameter of type int, but this is subject to change.
  28758. An attribute specifier list may appear immediately before a declarator
  28759. (other than the first) in a comma-separated list of declarators in a
  28760. declaration of more than one identifier using a single list of
  28761. specifiers and qualifiers. Such attribute specifiers apply only to the
  28762. identifier before whose declarator they appear. For example, in
  28763. __attribute__((noreturn)) void d0 (void),
  28764. __attribute__((format(printf, 1, 2))) d1 (const char *, ...),
  28765. d2 (void);
  28766. the 'noreturn' attribute applies to all the functions declared; the
  28767. 'format' attribute only applies to 'd1'.
  28768. An attribute specifier list may appear immediately before the comma,
  28769. '=' or semicolon terminating the declaration of an identifier other than
  28770. a function definition. Such attribute specifiers apply to the declared
  28771. object or function. Where an assembler name for an object or function
  28772. is specified (*note Asm Labels::), the attribute must follow the 'asm'
  28773. specification.
  28774. An attribute specifier list may, in future, be permitted to appear
  28775. after the declarator in a function definition (before any old-style
  28776. parameter declarations or the function body).
  28777. Attribute specifiers may be mixed with type qualifiers appearing inside
  28778. the '[]' of a parameter array declarator, in the C99 construct by which
  28779. such qualifiers are applied to the pointer to which the array is
  28780. implicitly converted. Such attribute specifiers apply to the pointer,
  28781. not to the array, but at present this is not implemented and they are
  28782. ignored.
  28783. An attribute specifier list may appear at the start of a nested
  28784. declarator. At present, there are some limitations in this usage: the
  28785. attributes correctly apply to the declarator, but for most individual
  28786. attributes the semantics this implies are not implemented. When
  28787. attribute specifiers follow the '*' of a pointer declarator, they may be
  28788. mixed with any type qualifiers present. The following describes the
  28789. formal semantics of this syntax. It makes the most sense if you are
  28790. familiar with the formal specification of declarators in the ISO C
  28791. standard.
  28792. Consider (as in C99 subclause 6.7.5 paragraph 4) a declaration 'T D1',
  28793. where 'T' contains declaration specifiers that specify a type TYPE (such
  28794. as 'int') and 'D1' is a declarator that contains an identifier IDENT.
  28795. The type specified for IDENT for derived declarators whose type does not
  28796. include an attribute specifier is as in the ISO C standard.
  28797. If 'D1' has the form '( ATTRIBUTE-SPECIFIER-LIST D )', and the
  28798. declaration 'T D' specifies the type "DERIVED-DECLARATOR-TYPE-LIST TYPE"
  28799. for IDENT, then 'T D1' specifies the type "DERIVED-DECLARATOR-TYPE-LIST
  28800. ATTRIBUTE-SPECIFIER-LIST TYPE" for IDENT.
  28801. If 'D1' has the form '* TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST D',
  28802. and the declaration 'T D' specifies the type
  28803. "DERIVED-DECLARATOR-TYPE-LIST TYPE" for IDENT, then 'T D1' specifies the
  28804. type "DERIVED-DECLARATOR-TYPE-LIST
  28805. TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST pointer to TYPE" for IDENT.
  28806. For example,
  28807. void (__attribute__((noreturn)) ****f) (void);
  28808. specifies the type "pointer to pointer to pointer to pointer to
  28809. non-returning function returning 'void'". As another example,
  28810. char *__attribute__((aligned(8))) *f;
  28811. specifies the type "pointer to 8-byte-aligned pointer to 'char'". Note
  28812. again that this does not work with most attributes; for example, the
  28813. usage of 'aligned' and 'noreturn' attributes given above is not yet
  28814. supported.
  28815. For compatibility with existing code written for compiler versions that
  28816. did not implement attributes on nested declarators, some laxity is
  28817. allowed in the placing of attributes. If an attribute that only applies
  28818. to types is applied to a declaration, it is treated as applying to the
  28819. type of that declaration. If an attribute that only applies to
  28820. declarations is applied to the type of a declaration, it is treated as
  28821. applying to that declaration; and, for compatibility with code placing
  28822. the attributes immediately before the identifier declared, such an
  28823. attribute applied to a function return type is treated as applying to
  28824. the function type, and such an attribute applied to an array element
  28825. type is treated as applying to the array type. If an attribute that
  28826. only applies to function types is applied to a pointer-to-function type,
  28827. it is treated as applying to the pointer target type; if such an
  28828. attribute is applied to a function return type that is not a
  28829. pointer-to-function type, it is treated as applying to the function
  28830. type.
  28831. 
  28832. File: gcc.info, Node: Function Prototypes, Next: C++ Comments, Prev: Attribute Syntax, Up: C Extensions
  28833. 6.40 Prototypes and Old-Style Function Definitions
  28834. ==================================================
  28835. GNU C extends ISO C to allow a function prototype to override a later
  28836. old-style non-prototype definition. Consider the following example:
  28837. /* Use prototypes unless the compiler is old-fashioned. */
  28838. #ifdef __STDC__
  28839. #define P(x) x
  28840. #else
  28841. #define P(x) ()
  28842. #endif
  28843. /* Prototype function declaration. */
  28844. int isroot P((uid_t));
  28845. /* Old-style function definition. */
  28846. int
  28847. isroot (x) /* ??? lossage here ??? */
  28848. uid_t x;
  28849. {
  28850. return x == 0;
  28851. }
  28852. Suppose the type 'uid_t' happens to be 'short'. ISO C does not allow
  28853. this example, because subword arguments in old-style non-prototype
  28854. definitions are promoted. Therefore in this example the function
  28855. definition's argument is really an 'int', which does not match the
  28856. prototype argument type of 'short'.
  28857. This restriction of ISO C makes it hard to write code that is portable
  28858. to traditional C compilers, because the programmer does not know whether
  28859. the 'uid_t' type is 'short', 'int', or 'long'. Therefore, in cases like
  28860. these GNU C allows a prototype to override a later old-style definition.
  28861. More precisely, in GNU C, a function prototype argument type overrides
  28862. the argument type specified by a later old-style definition if the
  28863. former type is the same as the latter type before promotion. Thus in
  28864. GNU C the above example is equivalent to the following:
  28865. int isroot (uid_t);
  28866. int
  28867. isroot (uid_t x)
  28868. {
  28869. return x == 0;
  28870. }
  28871. GNU C++ does not support old-style function definitions, so this
  28872. extension is irrelevant.
  28873. 
  28874. File: gcc.info, Node: C++ Comments, Next: Dollar Signs, Prev: Function Prototypes, Up: C Extensions
  28875. 6.41 C++ Style Comments
  28876. =======================
  28877. In GNU C, you may use C++ style comments, which start with '//' and
  28878. continue until the end of the line. Many other C implementations allow
  28879. such comments, and they are included in the 1999 C standard. However,
  28880. C++ style comments are not recognized if you specify an '-std' option
  28881. specifying a version of ISO C before C99, or '-ansi' (equivalent to
  28882. '-std=c90').
  28883. 
  28884. File: gcc.info, Node: Dollar Signs, Next: Character Escapes, Prev: C++ Comments, Up: C Extensions
  28885. 6.42 Dollar Signs in Identifier Names
  28886. =====================================
  28887. In GNU C, you may normally use dollar signs in identifier names. This
  28888. is because many traditional C implementations allow such identifiers.
  28889. However, dollar signs in identifiers are not supported on a few target
  28890. machines, typically because the target assembler does not allow them.
  28891. 
  28892. File: gcc.info, Node: Character Escapes, Next: Alignment, Prev: Dollar Signs, Up: C Extensions
  28893. 6.43 The Character <ESC> in Constants
  28894. =====================================
  28895. You can use the sequence '\e' in a string or character constant to stand
  28896. for the ASCII character <ESC>.
  28897. 
  28898. File: gcc.info, Node: Alignment, Next: Inline, Prev: Character Escapes, Up: C Extensions
  28899. 6.44 Determining the Alignment of Functions, Types or Variables
  28900. ===============================================================
  28901. The keyword '__alignof__' determines the alignment requirement of a
  28902. function, object, or a type, or the minimum alignment usually required
  28903. by a type. Its syntax is just like 'sizeof' and C11 '_Alignof'.
  28904. For example, if the target machine requires a 'double' value to be
  28905. aligned on an 8-byte boundary, then '__alignof__ (double)' is 8. This
  28906. is true on many RISC machines. On more traditional machine designs,
  28907. '__alignof__ (double)' is 4 or even 2.
  28908. Some machines never actually require alignment; they allow references
  28909. to any data type even at an odd address. For these machines,
  28910. '__alignof__' reports the smallest alignment that GCC gives the data
  28911. type, usually as mandated by the target ABI.
  28912. If the operand of '__alignof__' is an lvalue rather than a type, its
  28913. value is the required alignment for its type, taking into account any
  28914. minimum alignment specified by attribute 'aligned' (*note Common
  28915. Variable Attributes::). For example, after this declaration:
  28916. struct foo { int x; char y; } foo1;
  28917. the value of '__alignof__ (foo1.y)' is 1, even though its actual
  28918. alignment is probably 2 or 4, the same as '__alignof__ (int)'. It is an
  28919. error to ask for the alignment of an incomplete type other than 'void'.
  28920. If the operand of the '__alignof__' expression is a function, the
  28921. expression evaluates to the alignment of the function which may be
  28922. specified by attribute 'aligned' (*note Common Function Attributes::).
  28923. 
  28924. File: gcc.info, Node: Inline, Next: Volatiles, Prev: Alignment, Up: C Extensions
  28925. 6.45 An Inline Function is As Fast As a Macro
  28926. =============================================
  28927. By declaring a function inline, you can direct GCC to make calls to that
  28928. function faster. One way GCC can achieve this is to integrate that
  28929. function's code into the code for its callers. This makes execution
  28930. faster by eliminating the function-call overhead; in addition, if any of
  28931. the actual argument values are constant, their known values may permit
  28932. simplifications at compile time so that not all of the inline function's
  28933. code needs to be included. The effect on code size is less predictable;
  28934. object code may be larger or smaller with function inlining, depending
  28935. on the particular case. You can also direct GCC to try to integrate all
  28936. "simple enough" functions into their callers with the option
  28937. '-finline-functions'.
  28938. GCC implements three different semantics of declaring a function
  28939. inline. One is available with '-std=gnu89' or '-fgnu89-inline' or when
  28940. 'gnu_inline' attribute is present on all inline declarations, another
  28941. when '-std=c99', '-std=gnu99' or an option for a later C version is used
  28942. (without '-fgnu89-inline'), and the third is used when compiling C++.
  28943. To declare a function inline, use the 'inline' keyword in its
  28944. declaration, like this:
  28945. static inline int
  28946. inc (int *a)
  28947. {
  28948. return (*a)++;
  28949. }
  28950. If you are writing a header file to be included in ISO C90 programs,
  28951. write '__inline__' instead of 'inline'. *Note Alternate Keywords::.
  28952. The three types of inlining behave similarly in two important cases:
  28953. when the 'inline' keyword is used on a 'static' function, like the
  28954. example above, and when a function is first declared without using the
  28955. 'inline' keyword and then is defined with 'inline', like this:
  28956. extern int inc (int *a);
  28957. inline int
  28958. inc (int *a)
  28959. {
  28960. return (*a)++;
  28961. }
  28962. In both of these common cases, the program behaves the same as if you
  28963. had not used the 'inline' keyword, except for its speed.
  28964. When a function is both inline and 'static', if all calls to the
  28965. function are integrated into the caller, and the function's address is
  28966. never used, then the function's own assembler code is never referenced.
  28967. In this case, GCC does not actually output assembler code for the
  28968. function, unless you specify the option '-fkeep-inline-functions'. If
  28969. there is a nonintegrated call, then the function is compiled to
  28970. assembler code as usual. The function must also be compiled as usual if
  28971. the program refers to its address, because that cannot be inlined.
  28972. Note that certain usages in a function definition can make it
  28973. unsuitable for inline substitution. Among these usages are: variadic
  28974. functions, use of 'alloca', use of computed goto (*note Labels as
  28975. Values::), use of nonlocal goto, use of nested functions, use of
  28976. 'setjmp', use of '__builtin_longjmp' and use of '__builtin_return' or
  28977. '__builtin_apply_args'. Using '-Winline' warns when a function marked
  28978. 'inline' could not be substituted, and gives the reason for the failure.
  28979. As required by ISO C++, GCC considers member functions defined within
  28980. the body of a class to be marked inline even if they are not explicitly
  28981. declared with the 'inline' keyword. You can override this with
  28982. '-fno-default-inline'; *note Options Controlling C++ Dialect: C++
  28983. Dialect Options.
  28984. GCC does not inline any functions when not optimizing unless you
  28985. specify the 'always_inline' attribute for the function, like this:
  28986. /* Prototype. */
  28987. inline void foo (const char) __attribute__((always_inline));
  28988. The remainder of this section is specific to GNU C90 inlining.
  28989. When an inline function is not 'static', then the compiler must assume
  28990. that there may be calls from other source files; since a global symbol
  28991. can be defined only once in any program, the function must not be
  28992. defined in the other source files, so the calls therein cannot be
  28993. integrated. Therefore, a non-'static' inline function is always
  28994. compiled on its own in the usual fashion.
  28995. If you specify both 'inline' and 'extern' in the function definition,
  28996. then the definition is used only for inlining. In no case is the
  28997. function compiled on its own, not even if you refer to its address
  28998. explicitly. Such an address becomes an external reference, as if you
  28999. had only declared the function, and had not defined it.
  29000. This combination of 'inline' and 'extern' has almost the effect of a
  29001. macro. The way to use it is to put a function definition in a header
  29002. file with these keywords, and put another copy of the definition
  29003. (lacking 'inline' and 'extern') in a library file. The definition in
  29004. the header file causes most calls to the function to be inlined. If any
  29005. uses of the function remain, they refer to the single copy in the
  29006. library.
  29007. 
  29008. File: gcc.info, Node: Volatiles, Next: Using Assembly Language with C, Prev: Inline, Up: C Extensions
  29009. 6.46 When is a Volatile Object Accessed?
  29010. ========================================
  29011. C has the concept of volatile objects. These are normally accessed by
  29012. pointers and used for accessing hardware or inter-thread communication.
  29013. The standard encourages compilers to refrain from optimizations
  29014. concerning accesses to volatile objects, but leaves it implementation
  29015. defined as to what constitutes a volatile access. The minimum
  29016. requirement is that at a sequence point all previous accesses to
  29017. volatile objects have stabilized and no subsequent accesses have
  29018. occurred. Thus an implementation is free to reorder and combine
  29019. volatile accesses that occur between sequence points, but cannot do so
  29020. for accesses across a sequence point. The use of volatile does not
  29021. allow you to violate the restriction on updating objects multiple times
  29022. between two sequence points.
  29023. Accesses to non-volatile objects are not ordered with respect to
  29024. volatile accesses. You cannot use a volatile object as a memory barrier
  29025. to order a sequence of writes to non-volatile memory. For instance:
  29026. int *ptr = SOMETHING;
  29027. volatile int vobj;
  29028. *ptr = SOMETHING;
  29029. vobj = 1;
  29030. Unless *PTR and VOBJ can be aliased, it is not guaranteed that the write
  29031. to *PTR occurs by the time the update of VOBJ happens. If you need this
  29032. guarantee, you must use a stronger memory barrier such as:
  29033. int *ptr = SOMETHING;
  29034. volatile int vobj;
  29035. *ptr = SOMETHING;
  29036. asm volatile ("" : : : "memory");
  29037. vobj = 1;
  29038. A scalar volatile object is read when it is accessed in a void context:
  29039. volatile int *src = SOMEVALUE;
  29040. *src;
  29041. Such expressions are rvalues, and GCC implements this as a read of the
  29042. volatile object being pointed to.
  29043. Assignments are also expressions and have an rvalue. However when
  29044. assigning to a scalar volatile, the volatile object is not reread,
  29045. regardless of whether the assignment expression's rvalue is used or not.
  29046. If the assignment's rvalue is used, the value is that assigned to the
  29047. volatile object. For instance, there is no read of VOBJ in all the
  29048. following cases:
  29049. int obj;
  29050. volatile int vobj;
  29051. vobj = SOMETHING;
  29052. obj = vobj = SOMETHING;
  29053. obj ? vobj = ONETHING : vobj = ANOTHERTHING;
  29054. obj = (SOMETHING, vobj = ANOTHERTHING);
  29055. If you need to read the volatile object after an assignment has
  29056. occurred, you must use a separate expression with an intervening
  29057. sequence point.
  29058. As bit-fields are not individually addressable, volatile bit-fields may
  29059. be implicitly read when written to, or when adjacent bit-fields are
  29060. accessed. Bit-field operations may be optimized such that adjacent
  29061. bit-fields are only partially accessed, if they straddle a storage unit
  29062. boundary. For these reasons it is unwise to use volatile bit-fields to
  29063. access hardware.
  29064. 
  29065. File: gcc.info, Node: Using Assembly Language with C, Next: Alternate Keywords, Prev: Volatiles, Up: C Extensions
  29066. 6.47 How to Use Inline Assembly Language in C Code
  29067. ==================================================
  29068. The 'asm' keyword allows you to embed assembler instructions within C
  29069. code. GCC provides two forms of inline 'asm' statements. A "basic
  29070. 'asm'" statement is one with no operands (*note Basic Asm::), while an
  29071. "extended 'asm'" statement (*note Extended Asm::) includes one or more
  29072. operands. The extended form is preferred for mixing C and assembly
  29073. language within a function, but to include assembly language at top
  29074. level you must use basic 'asm'.
  29075. You can also use the 'asm' keyword to override the assembler name for a
  29076. C symbol, or to place a C variable in a specific register.
  29077. * Menu:
  29078. * Basic Asm:: Inline assembler without operands.
  29079. * Extended Asm:: Inline assembler with operands.
  29080. * Constraints:: Constraints for 'asm' operands
  29081. * Asm Labels:: Specifying the assembler name to use for a C symbol.
  29082. * Explicit Register Variables:: Defining variables residing in specified
  29083. registers.
  29084. * Size of an asm:: How GCC calculates the size of an 'asm' block.
  29085. 
  29086. File: gcc.info, Node: Basic Asm, Next: Extended Asm, Up: Using Assembly Language with C
  29087. 6.47.1 Basic Asm -- Assembler Instructions Without Operands
  29088. -----------------------------------------------------------
  29089. A basic 'asm' statement has the following syntax:
  29090. asm ASM-QUALIFIERS ( ASSEMBLERINSTRUCTIONS )
  29091. The 'asm' keyword is a GNU extension. When writing code that can be
  29092. compiled with '-ansi' and the various '-std' options, use '__asm__'
  29093. instead of 'asm' (*note Alternate Keywords::).
  29094. Qualifiers
  29095. ..........
  29096. 'volatile'
  29097. The optional 'volatile' qualifier has no effect. All basic 'asm'
  29098. blocks are implicitly volatile.
  29099. 'inline'
  29100. If you use the 'inline' qualifier, then for inlining purposes the
  29101. size of the 'asm' statement is taken as the smallest size possible
  29102. (*note Size of an asm::).
  29103. Parameters
  29104. ..........
  29105. ASSEMBLERINSTRUCTIONS
  29106. This is a literal string that specifies the assembler code. The
  29107. string can contain any instructions recognized by the assembler,
  29108. including directives. GCC does not parse the assembler
  29109. instructions themselves and does not know what they mean or even
  29110. whether they are valid assembler input.
  29111. You may place multiple assembler instructions together in a single
  29112. 'asm' string, separated by the characters normally used in assembly
  29113. code for the system. A combination that works in most places is a
  29114. newline to break the line, plus a tab character (written as
  29115. '\n\t'). Some assemblers allow semicolons as a line separator.
  29116. However, note that some assembler dialects use semicolons to start
  29117. a comment.
  29118. Remarks
  29119. .......
  29120. Using extended 'asm' (*note Extended Asm::) typically produces smaller,
  29121. safer, and more efficient code, and in most cases it is a better
  29122. solution than basic 'asm'. However, there are two situations where only
  29123. basic 'asm' can be used:
  29124. * Extended 'asm' statements have to be inside a C function, so to
  29125. write inline assembly language at file scope ("top-level"), outside
  29126. of C functions, you must use basic 'asm'. You can use this
  29127. technique to emit assembler directives, define assembly language
  29128. macros that can be invoked elsewhere in the file, or write entire
  29129. functions in assembly language. Basic 'asm' statements outside of
  29130. functions may not use any qualifiers.
  29131. * Functions declared with the 'naked' attribute also require basic
  29132. 'asm' (*note Function Attributes::).
  29133. Safely accessing C data and calling functions from basic 'asm' is more
  29134. complex than it may appear. To access C data, it is better to use
  29135. extended 'asm'.
  29136. Do not expect a sequence of 'asm' statements to remain perfectly
  29137. consecutive after compilation. If certain instructions need to remain
  29138. consecutive in the output, put them in a single multi-instruction 'asm'
  29139. statement. Note that GCC's optimizers can move 'asm' statements
  29140. relative to other code, including across jumps.
  29141. 'asm' statements may not perform jumps into other 'asm' statements.
  29142. GCC does not know about these jumps, and therefore cannot take account
  29143. of them when deciding how to optimize. Jumps from 'asm' to C labels are
  29144. only supported in extended 'asm'.
  29145. Under certain circumstances, GCC may duplicate (or remove duplicates
  29146. of) your assembly code when optimizing. This can lead to unexpected
  29147. duplicate symbol errors during compilation if your assembly code defines
  29148. symbols or labels.
  29149. *Warning:* The C standards do not specify semantics for 'asm', making
  29150. it a potential source of incompatibilities between compilers. These
  29151. incompatibilities may not produce compiler warnings/errors.
  29152. GCC does not parse basic 'asm''s ASSEMBLERINSTRUCTIONS, which means
  29153. there is no way to communicate to the compiler what is happening inside
  29154. them. GCC has no visibility of symbols in the 'asm' and may discard
  29155. them as unreferenced. It also does not know about side effects of the
  29156. assembler code, such as modifications to memory or registers. Unlike
  29157. some compilers, GCC assumes that no changes to general purpose registers
  29158. occur. This assumption may change in a future release.
  29159. To avoid complications from future changes to the semantics and the
  29160. compatibility issues between compilers, consider replacing basic 'asm'
  29161. with extended 'asm'. See How to convert from basic asm to extended asm
  29162. (https://gcc.gnu.org/wiki/ConvertBasicAsmToExtended) for information
  29163. about how to perform this conversion.
  29164. The compiler copies the assembler instructions in a basic 'asm'
  29165. verbatim to the assembly language output file, without processing
  29166. dialects or any of the '%' operators that are available with extended
  29167. 'asm'. This results in minor differences between basic 'asm' strings
  29168. and extended 'asm' templates. For example, to refer to registers you
  29169. might use '%eax' in basic 'asm' and '%%eax' in extended 'asm'.
  29170. On targets such as x86 that support multiple assembler dialects, all
  29171. basic 'asm' blocks use the assembler dialect specified by the '-masm'
  29172. command-line option (*note x86 Options::). Basic 'asm' provides no
  29173. mechanism to provide different assembler strings for different dialects.
  29174. For basic 'asm' with non-empty assembler string GCC assumes the
  29175. assembler block does not change any general purpose registers, but it
  29176. may read or write any globally accessible variable.
  29177. Here is an example of basic 'asm' for i386:
  29178. /* Note that this code will not compile with -masm=intel */
  29179. #define DebugBreak() asm("int $3")
  29180. 
  29181. File: gcc.info, Node: Extended Asm, Next: Constraints, Prev: Basic Asm, Up: Using Assembly Language with C
  29182. 6.47.2 Extended Asm - Assembler Instructions with C Expression Operands
  29183. -----------------------------------------------------------------------
  29184. With extended 'asm' you can read and write C variables from assembler
  29185. and perform jumps from assembler code to C labels. Extended 'asm'
  29186. syntax uses colons (':') to delimit the operand parameters after the
  29187. assembler template:
  29188. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  29189. : OUTPUTOPERANDS
  29190. [ : INPUTOPERANDS
  29191. [ : CLOBBERS ] ])
  29192. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  29193. :
  29194. : INPUTOPERANDS
  29195. : CLOBBERS
  29196. : GOTOLABELS)
  29197. where in the last form, ASM-QUALIFIERS contains 'goto' (and in the
  29198. first form, not).
  29199. The 'asm' keyword is a GNU extension. When writing code that can be
  29200. compiled with '-ansi' and the various '-std' options, use '__asm__'
  29201. instead of 'asm' (*note Alternate Keywords::).
  29202. Qualifiers
  29203. ..........
  29204. 'volatile'
  29205. The typical use of extended 'asm' statements is to manipulate input
  29206. values to produce output values. However, your 'asm' statements
  29207. may also produce side effects. If so, you may need to use the
  29208. 'volatile' qualifier to disable certain optimizations. *Note
  29209. Volatile::.
  29210. 'inline'
  29211. If you use the 'inline' qualifier, then for inlining purposes the
  29212. size of the 'asm' statement is taken as the smallest size possible
  29213. (*note Size of an asm::).
  29214. 'goto'
  29215. This qualifier informs the compiler that the 'asm' statement may
  29216. perform a jump to one of the labels listed in the GOTOLABELS.
  29217. *Note GotoLabels::.
  29218. Parameters
  29219. ..........
  29220. ASSEMBLERTEMPLATE
  29221. This is a literal string that is the template for the assembler
  29222. code. It is a combination of fixed text and tokens that refer to
  29223. the input, output, and goto parameters. *Note AssemblerTemplate::.
  29224. OUTPUTOPERANDS
  29225. A comma-separated list of the C variables modified by the
  29226. instructions in the ASSEMBLERTEMPLATE. An empty list is permitted.
  29227. *Note OutputOperands::.
  29228. INPUTOPERANDS
  29229. A comma-separated list of C expressions read by the instructions in
  29230. the ASSEMBLERTEMPLATE. An empty list is permitted. *Note
  29231. InputOperands::.
  29232. CLOBBERS
  29233. A comma-separated list of registers or other values changed by the
  29234. ASSEMBLERTEMPLATE, beyond those listed as outputs. An empty list
  29235. is permitted. *Note Clobbers and Scratch Registers::.
  29236. GOTOLABELS
  29237. When you are using the 'goto' form of 'asm', this section contains
  29238. the list of all C labels to which the code in the ASSEMBLERTEMPLATE
  29239. may jump. *Note GotoLabels::.
  29240. 'asm' statements may not perform jumps into other 'asm' statements,
  29241. only to the listed GOTOLABELS. GCC's optimizers do not know about
  29242. other jumps; therefore they cannot take account of them when
  29243. deciding how to optimize.
  29244. The total number of input + output + goto operands is limited to 30.
  29245. Remarks
  29246. .......
  29247. The 'asm' statement allows you to include assembly instructions directly
  29248. within C code. This may help you to maximize performance in
  29249. time-sensitive code or to access assembly instructions that are not
  29250. readily available to C programs.
  29251. Note that extended 'asm' statements must be inside a function. Only
  29252. basic 'asm' may be outside functions (*note Basic Asm::). Functions
  29253. declared with the 'naked' attribute also require basic 'asm' (*note
  29254. Function Attributes::).
  29255. While the uses of 'asm' are many and varied, it may help to think of an
  29256. 'asm' statement as a series of low-level instructions that convert input
  29257. parameters to output parameters. So a simple (if not particularly
  29258. useful) example for i386 using 'asm' might look like this:
  29259. int src = 1;
  29260. int dst;
  29261. asm ("mov %1, %0\n\t"
  29262. "add $1, %0"
  29263. : "=r" (dst)
  29264. : "r" (src));
  29265. printf("%d\n", dst);
  29266. This code copies 'src' to 'dst' and add 1 to 'dst'.
  29267. 6.47.2.1 Volatile
  29268. .................
  29269. GCC's optimizers sometimes discard 'asm' statements if they determine
  29270. there is no need for the output variables. Also, the optimizers may
  29271. move code out of loops if they believe that the code will always return
  29272. the same result (i.e. none of its input values change between calls).
  29273. Using the 'volatile' qualifier disables these optimizations. 'asm'
  29274. statements that have no output operands, including 'asm goto'
  29275. statements, are implicitly volatile.
  29276. This i386 code demonstrates a case that does not use (or require) the
  29277. 'volatile' qualifier. If it is performing assertion checking, this code
  29278. uses 'asm' to perform the validation. Otherwise, 'dwRes' is
  29279. unreferenced by any code. As a result, the optimizers can discard the
  29280. 'asm' statement, which in turn removes the need for the entire 'DoCheck'
  29281. routine. By omitting the 'volatile' qualifier when it isn't needed you
  29282. allow the optimizers to produce the most efficient code possible.
  29283. void DoCheck(uint32_t dwSomeValue)
  29284. {
  29285. uint32_t dwRes;
  29286. // Assumes dwSomeValue is not zero.
  29287. asm ("bsfl %1,%0"
  29288. : "=r" (dwRes)
  29289. : "r" (dwSomeValue)
  29290. : "cc");
  29291. assert(dwRes > 3);
  29292. }
  29293. The next example shows a case where the optimizers can recognize that
  29294. the input ('dwSomeValue') never changes during the execution of the
  29295. function and can therefore move the 'asm' outside the loop to produce
  29296. more efficient code. Again, using the 'volatile' qualifier disables
  29297. this type of optimization.
  29298. void do_print(uint32_t dwSomeValue)
  29299. {
  29300. uint32_t dwRes;
  29301. for (uint32_t x=0; x < 5; x++)
  29302. {
  29303. // Assumes dwSomeValue is not zero.
  29304. asm ("bsfl %1,%0"
  29305. : "=r" (dwRes)
  29306. : "r" (dwSomeValue)
  29307. : "cc");
  29308. printf("%u: %u %u\n", x, dwSomeValue, dwRes);
  29309. }
  29310. }
  29311. The following example demonstrates a case where you need to use the
  29312. 'volatile' qualifier. It uses the x86 'rdtsc' instruction, which reads
  29313. the computer's time-stamp counter. Without the 'volatile' qualifier,
  29314. the optimizers might assume that the 'asm' block will always return the
  29315. same value and therefore optimize away the second call.
  29316. uint64_t msr;
  29317. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  29318. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  29319. "or %%rdx, %0" // 'Or' in the lower bits.
  29320. : "=a" (msr)
  29321. :
  29322. : "rdx");
  29323. printf("msr: %llx\n", msr);
  29324. // Do other work...
  29325. // Reprint the timestamp
  29326. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  29327. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  29328. "or %%rdx, %0" // 'Or' in the lower bits.
  29329. : "=a" (msr)
  29330. :
  29331. : "rdx");
  29332. printf("msr: %llx\n", msr);
  29333. GCC's optimizers do not treat this code like the non-volatile code in
  29334. the earlier examples. They do not move it out of loops or omit it on
  29335. the assumption that the result from a previous call is still valid.
  29336. Note that the compiler can move even 'volatile asm' instructions
  29337. relative to other code, including across jump instructions. For
  29338. example, on many targets there is a system register that controls the
  29339. rounding mode of floating-point operations. Setting it with a 'volatile
  29340. asm' statement, as in the following PowerPC example, does not work
  29341. reliably.
  29342. asm volatile("mtfsf 255, %0" : : "f" (fpenv));
  29343. sum = x + y;
  29344. The compiler may move the addition back before the 'volatile asm'
  29345. statement. To make it work as expected, add an artificial dependency to
  29346. the 'asm' by referencing a variable in the subsequent code, for example:
  29347. asm volatile ("mtfsf 255,%1" : "=X" (sum) : "f" (fpenv));
  29348. sum = x + y;
  29349. Under certain circumstances, GCC may duplicate (or remove duplicates
  29350. of) your assembly code when optimizing. This can lead to unexpected
  29351. duplicate symbol errors during compilation if your 'asm' code defines
  29352. symbols or labels. Using '%=' (*note AssemblerTemplate::) may help
  29353. resolve this problem.
  29354. 6.47.2.2 Assembler Template
  29355. ...........................
  29356. An assembler template is a literal string containing assembler
  29357. instructions. The compiler replaces tokens in the template that refer
  29358. to inputs, outputs, and goto labels, and then outputs the resulting
  29359. string to the assembler. The string can contain any instructions
  29360. recognized by the assembler, including directives. GCC does not parse
  29361. the assembler instructions themselves and does not know what they mean
  29362. or even whether they are valid assembler input. However, it does count
  29363. the statements (*note Size of an asm::).
  29364. You may place multiple assembler instructions together in a single
  29365. 'asm' string, separated by the characters normally used in assembly code
  29366. for the system. A combination that works in most places is a newline to
  29367. break the line, plus a tab character to move to the instruction field
  29368. (written as '\n\t'). Some assemblers allow semicolons as a line
  29369. separator. However, note that some assembler dialects use semicolons to
  29370. start a comment.
  29371. Do not expect a sequence of 'asm' statements to remain perfectly
  29372. consecutive after compilation, even when you are using the 'volatile'
  29373. qualifier. If certain instructions need to remain consecutive in the
  29374. output, put them in a single multi-instruction 'asm' statement.
  29375. Accessing data from C programs without using input/output operands
  29376. (such as by using global symbols directly from the assembler template)
  29377. may not work as expected. Similarly, calling functions directly from an
  29378. assembler template requires a detailed understanding of the target
  29379. assembler and ABI.
  29380. Since GCC does not parse the assembler template, it has no visibility
  29381. of any symbols it references. This may result in GCC discarding those
  29382. symbols as unreferenced unless they are also listed as input, output, or
  29383. goto operands.
  29384. Special format strings
  29385. ......................
  29386. In addition to the tokens described by the input, output, and goto
  29387. operands, these tokens have special meanings in the assembler template:
  29388. '%%'
  29389. Outputs a single '%' into the assembler code.
  29390. '%='
  29391. Outputs a number that is unique to each instance of the 'asm'
  29392. statement in the entire compilation. This option is useful when
  29393. creating local labels and referring to them multiple times in a
  29394. single template that generates multiple assembler instructions.
  29395. '%{'
  29396. '%|'
  29397. '%}'
  29398. Outputs '{', '|', and '}' characters (respectively) into the
  29399. assembler code. When unescaped, these characters have special
  29400. meaning to indicate multiple assembler dialects, as described
  29401. below.
  29402. Multiple assembler dialects in 'asm' templates
  29403. ..............................................
  29404. On targets such as x86, GCC supports multiple assembler dialects. The
  29405. '-masm' option controls which dialect GCC uses as its default for inline
  29406. assembler. The target-specific documentation for the '-masm' option
  29407. contains the list of supported dialects, as well as the default dialect
  29408. if the option is not specified. This information may be important to
  29409. understand, since assembler code that works correctly when compiled
  29410. using one dialect will likely fail if compiled using another. *Note x86
  29411. Options::.
  29412. If your code needs to support multiple assembler dialects (for example,
  29413. if you are writing public headers that need to support a variety of
  29414. compilation options), use constructs of this form:
  29415. { dialect0 | dialect1 | dialect2... }
  29416. This construct outputs 'dialect0' when using dialect #0 to compile the
  29417. code, 'dialect1' for dialect #1, etc. If there are fewer alternatives
  29418. within the braces than the number of dialects the compiler supports, the
  29419. construct outputs nothing.
  29420. For example, if an x86 compiler supports two dialects ('att', 'intel'),
  29421. an assembler template such as this:
  29422. "bt{l %[Offset],%[Base] | %[Base],%[Offset]}; jc %l2"
  29423. is equivalent to one of
  29424. "btl %[Offset],%[Base] ; jc %l2" /* att dialect */
  29425. "bt %[Base],%[Offset]; jc %l2" /* intel dialect */
  29426. Using that same compiler, this code:
  29427. "xchg{l}\t{%%}ebx, %1"
  29428. corresponds to either
  29429. "xchgl\t%%ebx, %1" /* att dialect */
  29430. "xchg\tebx, %1" /* intel dialect */
  29431. There is no support for nesting dialect alternatives.
  29432. 6.47.2.3 Output Operands
  29433. ........................
  29434. An 'asm' statement has zero or more output operands indicating the names
  29435. of C variables modified by the assembler code.
  29436. In this i386 example, 'old' (referred to in the template string as
  29437. '%0') and '*Base' (as '%1') are outputs and 'Offset' ('%2') is an input:
  29438. bool old;
  29439. __asm__ ("btsl %2,%1\n\t" // Turn on zero-based bit #Offset in Base.
  29440. "sbb %0,%0" // Use the CF to calculate old.
  29441. : "=r" (old), "+rm" (*Base)
  29442. : "Ir" (Offset)
  29443. : "cc");
  29444. return old;
  29445. Operands are separated by commas. Each operand has this format:
  29446. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CVARIABLENAME)
  29447. ASMSYMBOLICNAME
  29448. Specifies a symbolic name for the operand. Reference the name in
  29449. the assembler template by enclosing it in square brackets (i.e.
  29450. '%[Value]'). The scope of the name is the 'asm' statement that
  29451. contains the definition. Any valid C variable name is acceptable,
  29452. including names already defined in the surrounding code. No two
  29453. operands within the same 'asm' statement can use the same symbolic
  29454. name.
  29455. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  29456. the operand in the list of operands in the assembler template. For
  29457. example if there are three output operands, use '%0' in the
  29458. template to refer to the first, '%1' for the second, and '%2' for
  29459. the third.
  29460. CONSTRAINT
  29461. A string constant specifying constraints on the placement of the
  29462. operand; *Note Constraints::, for details.
  29463. Output constraints must begin with either '=' (a variable
  29464. overwriting an existing value) or '+' (when reading and writing).
  29465. When using '=', do not assume the location contains the existing
  29466. value on entry to the 'asm', except when the operand is tied to an
  29467. input; *note Input Operands: InputOperands.
  29468. After the prefix, there must be one or more additional constraints
  29469. (*note Constraints::) that describe where the value resides.
  29470. Common constraints include 'r' for register and 'm' for memory.
  29471. When you list more than one possible location (for example,
  29472. '"=rm"'), the compiler chooses the most efficient one based on the
  29473. current context. If you list as many alternates as the 'asm'
  29474. statement allows, you permit the optimizers to produce the best
  29475. possible code. If you must use a specific register, but your
  29476. Machine Constraints do not provide sufficient control to select the
  29477. specific register you want, local register variables may provide a
  29478. solution (*note Local Register Variables::).
  29479. CVARIABLENAME
  29480. Specifies a C lvalue expression to hold the output, typically a
  29481. variable name. The enclosing parentheses are a required part of
  29482. the syntax.
  29483. When the compiler selects the registers to use to represent the output
  29484. operands, it does not use any of the clobbered registers (*note Clobbers
  29485. and Scratch Registers::).
  29486. Output operand expressions must be lvalues. The compiler cannot check
  29487. whether the operands have data types that are reasonable for the
  29488. instruction being executed. For output expressions that are not
  29489. directly addressable (for example a bit-field), the constraint must
  29490. allow a register. In that case, GCC uses the register as the output of
  29491. the 'asm', and then stores that register into the output.
  29492. Operands using the '+' constraint modifier count as two operands (that
  29493. is, both as input and output) towards the total maximum of 30 operands
  29494. per 'asm' statement.
  29495. Use the '&' constraint modifier (*note Modifiers::) on all output
  29496. operands that must not overlap an input. Otherwise, GCC may allocate
  29497. the output operand in the same register as an unrelated input operand,
  29498. on the assumption that the assembler code consumes its inputs before
  29499. producing outputs. This assumption may be false if the assembler code
  29500. actually consists of more than one instruction.
  29501. The same problem can occur if one output parameter (A) allows a
  29502. register constraint and another output parameter (B) allows a memory
  29503. constraint. The code generated by GCC to access the memory address in B
  29504. can contain registers which _might_ be shared by A, and GCC considers
  29505. those registers to be inputs to the asm. As above, GCC assumes that
  29506. such input registers are consumed before any outputs are written. This
  29507. assumption may result in incorrect behavior if the 'asm' statement
  29508. writes to A before using B. Combining the '&' modifier with the
  29509. register constraint on A ensures that modifying A does not affect the
  29510. address referenced by B. Otherwise, the location of B is undefined if A
  29511. is modified before using B.
  29512. 'asm' supports operand modifiers on operands (for example '%k2' instead
  29513. of simply '%2'). Typically these qualifiers are hardware dependent.
  29514. The list of supported modifiers for x86 is found at *note x86 Operand
  29515. modifiers: x86Operandmodifiers.
  29516. If the C code that follows the 'asm' makes no use of any of the output
  29517. operands, use 'volatile' for the 'asm' statement to prevent the
  29518. optimizers from discarding the 'asm' statement as unneeded (see *note
  29519. Volatile::).
  29520. This code makes no use of the optional ASMSYMBOLICNAME. Therefore it
  29521. references the first output operand as '%0' (were there a second, it
  29522. would be '%1', etc). The number of the first input operand is one
  29523. greater than that of the last output operand. In this i386 example,
  29524. that makes 'Mask' referenced as '%1':
  29525. uint32_t Mask = 1234;
  29526. uint32_t Index;
  29527. asm ("bsfl %1, %0"
  29528. : "=r" (Index)
  29529. : "r" (Mask)
  29530. : "cc");
  29531. That code overwrites the variable 'Index' ('='), placing the value in a
  29532. register ('r'). Using the generic 'r' constraint instead of a
  29533. constraint for a specific register allows the compiler to pick the
  29534. register to use, which can result in more efficient code. This may not
  29535. be possible if an assembler instruction requires a specific register.
  29536. The following i386 example uses the ASMSYMBOLICNAME syntax. It
  29537. produces the same result as the code above, but some may consider it
  29538. more readable or more maintainable since reordering index numbers is not
  29539. necessary when adding or removing operands. The names 'aIndex' and
  29540. 'aMask' are only used in this example to emphasize which names get used
  29541. where. It is acceptable to reuse the names 'Index' and 'Mask'.
  29542. uint32_t Mask = 1234;
  29543. uint32_t Index;
  29544. asm ("bsfl %[aMask], %[aIndex]"
  29545. : [aIndex] "=r" (Index)
  29546. : [aMask] "r" (Mask)
  29547. : "cc");
  29548. Here are some more examples of output operands.
  29549. uint32_t c = 1;
  29550. uint32_t d;
  29551. uint32_t *e = &c;
  29552. asm ("mov %[e], %[d]"
  29553. : [d] "=rm" (d)
  29554. : [e] "rm" (*e));
  29555. Here, 'd' may either be in a register or in memory. Since the compiler
  29556. might already have the current value of the 'uint32_t' location pointed
  29557. to by 'e' in a register, you can enable it to choose the best location
  29558. for 'd' by specifying both constraints.
  29559. 6.47.2.4 Flag Output Operands
  29560. .............................
  29561. Some targets have a special register that holds the "flags" for the
  29562. result of an operation or comparison. Normally, the contents of that
  29563. register are either unmodifed by the asm, or the 'asm' statement is
  29564. considered to clobber the contents.
  29565. On some targets, a special form of output operand exists by which
  29566. conditions in the flags register may be outputs of the asm. The set of
  29567. conditions supported are target specific, but the general rule is that
  29568. the output variable must be a scalar integer, and the value is boolean.
  29569. When supported, the target defines the preprocessor symbol
  29570. '__GCC_ASM_FLAG_OUTPUTS__'.
  29571. Because of the special nature of the flag output operands, the
  29572. constraint may not include alternatives.
  29573. Most often, the target has only one flags register, and thus is an
  29574. implied operand of many instructions. In this case, the operand should
  29575. not be referenced within the assembler template via '%0' etc, as there's
  29576. no corresponding text in the assembly language.
  29577. x86 family
  29578. The flag output constraints for the x86 family are of the form
  29579. '=@ccCOND' where COND is one of the standard conditions defined in
  29580. the ISA manual for 'jCC' or 'setCC'.
  29581. 'a'
  29582. "above" or unsigned greater than
  29583. 'ae'
  29584. "above or equal" or unsigned greater than or equal
  29585. 'b'
  29586. "below" or unsigned less than
  29587. 'be'
  29588. "below or equal" or unsigned less than or equal
  29589. 'c'
  29590. carry flag set
  29591. 'e'
  29592. 'z'
  29593. "equal" or zero flag set
  29594. 'g'
  29595. signed greater than
  29596. 'ge'
  29597. signed greater than or equal
  29598. 'l'
  29599. signed less than
  29600. 'le'
  29601. signed less than or equal
  29602. 'o'
  29603. overflow flag set
  29604. 'p'
  29605. parity flag set
  29606. 's'
  29607. sign flag set
  29608. 'na'
  29609. 'nae'
  29610. 'nb'
  29611. 'nbe'
  29612. 'nc'
  29613. 'ne'
  29614. 'ng'
  29615. 'nge'
  29616. 'nl'
  29617. 'nle'
  29618. 'no'
  29619. 'np'
  29620. 'ns'
  29621. 'nz'
  29622. "not" FLAG, or inverted versions of those above
  29623. 6.47.2.5 Input Operands
  29624. .......................
  29625. Input operands make values from C variables and expressions available to
  29626. the assembly code.
  29627. Operands are separated by commas. Each operand has this format:
  29628. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CEXPRESSION)
  29629. ASMSYMBOLICNAME
  29630. Specifies a symbolic name for the operand. Reference the name in
  29631. the assembler template by enclosing it in square brackets (i.e.
  29632. '%[Value]'). The scope of the name is the 'asm' statement that
  29633. contains the definition. Any valid C variable name is acceptable,
  29634. including names already defined in the surrounding code. No two
  29635. operands within the same 'asm' statement can use the same symbolic
  29636. name.
  29637. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  29638. the operand in the list of operands in the assembler template. For
  29639. example if there are two output operands and three inputs, use '%2'
  29640. in the template to refer to the first input operand, '%3' for the
  29641. second, and '%4' for the third.
  29642. CONSTRAINT
  29643. A string constant specifying constraints on the placement of the
  29644. operand; *Note Constraints::, for details.
  29645. Input constraint strings may not begin with either '=' or '+'.
  29646. When you list more than one possible location (for example,
  29647. '"irm"'), the compiler chooses the most efficient one based on the
  29648. current context. If you must use a specific register, but your
  29649. Machine Constraints do not provide sufficient control to select the
  29650. specific register you want, local register variables may provide a
  29651. solution (*note Local Register Variables::).
  29652. Input constraints can also be digits (for example, '"0"'). This
  29653. indicates that the specified input must be in the same place as the
  29654. output constraint at the (zero-based) index in the output
  29655. constraint list. When using ASMSYMBOLICNAME syntax for the output
  29656. operands, you may use these names (enclosed in brackets '[]')
  29657. instead of digits.
  29658. CEXPRESSION
  29659. This is the C variable or expression being passed to the 'asm'
  29660. statement as input. The enclosing parentheses are a required part
  29661. of the syntax.
  29662. When the compiler selects the registers to use to represent the input
  29663. operands, it does not use any of the clobbered registers (*note Clobbers
  29664. and Scratch Registers::).
  29665. If there are no output operands but there are input operands, place two
  29666. consecutive colons where the output operands would go:
  29667. __asm__ ("some instructions"
  29668. : /* No outputs. */
  29669. : "r" (Offset / 8));
  29670. *Warning:* Do _not_ modify the contents of input-only operands (except
  29671. for inputs tied to outputs). The compiler assumes that on exit from the
  29672. 'asm' statement these operands contain the same values as they had
  29673. before executing the statement. It is _not_ possible to use clobbers to
  29674. inform the compiler that the values in these inputs are changing. One
  29675. common work-around is to tie the changing input variable to an output
  29676. variable that never gets used. Note, however, that if the code that
  29677. follows the 'asm' statement makes no use of any of the output operands,
  29678. the GCC optimizers may discard the 'asm' statement as unneeded (see
  29679. *note Volatile::).
  29680. 'asm' supports operand modifiers on operands (for example '%k2' instead
  29681. of simply '%2'). Typically these qualifiers are hardware dependent.
  29682. The list of supported modifiers for x86 is found at *note x86 Operand
  29683. modifiers: x86Operandmodifiers.
  29684. In this example using the fictitious 'combine' instruction, the
  29685. constraint '"0"' for input operand 1 says that it must occupy the same
  29686. location as output operand 0. Only input operands may use numbers in
  29687. constraints, and they must each refer to an output operand. Only a
  29688. number (or the symbolic assembler name) in the constraint can guarantee
  29689. that one operand is in the same place as another. The mere fact that
  29690. 'foo' is the value of both operands is not enough to guarantee that they
  29691. are in the same place in the generated assembler code.
  29692. asm ("combine %2, %0"
  29693. : "=r" (foo)
  29694. : "0" (foo), "g" (bar));
  29695. Here is an example using symbolic names.
  29696. asm ("cmoveq %1, %2, %[result]"
  29697. : [result] "=r"(result)
  29698. : "r" (test), "r" (new), "[result]" (old));
  29699. 6.47.2.6 Clobbers and Scratch Registers
  29700. .......................................
  29701. While the compiler is aware of changes to entries listed in the output
  29702. operands, the inline 'asm' code may modify more than just the outputs.
  29703. For example, calculations may require additional registers, or the
  29704. processor may overwrite a register as a side effect of a particular
  29705. assembler instruction. In order to inform the compiler of these
  29706. changes, list them in the clobber list. Clobber list items are either
  29707. register names or the special clobbers (listed below). Each clobber
  29708. list item is a string constant enclosed in double quotes and separated
  29709. by commas.
  29710. Clobber descriptions may not in any way overlap with an input or output
  29711. operand. For example, you may not have an operand describing a register
  29712. class with one member when listing that register in the clobber list.
  29713. Variables declared to live in specific registers (*note Explicit
  29714. Register Variables::) and used as 'asm' input or output operands must
  29715. have no part mentioned in the clobber description. In particular, there
  29716. is no way to specify that input operands get modified without also
  29717. specifying them as output operands.
  29718. When the compiler selects which registers to use to represent input and
  29719. output operands, it does not use any of the clobbered registers. As a
  29720. result, clobbered registers are available for any use in the assembler
  29721. code.
  29722. Another restriction is that the clobber list should not contain the
  29723. stack pointer register. This is because the compiler requires the value
  29724. of the stack pointer to be the same after an 'asm' statement as it was
  29725. on entry to the statement. However, previous versions of GCC did not
  29726. enforce this rule and allowed the stack pointer to appear in the list,
  29727. with unclear semantics. This behavior is deprecated and listing the
  29728. stack pointer may become an error in future versions of GCC.
  29729. Here is a realistic example for the VAX showing the use of clobbered
  29730. registers:
  29731. asm volatile ("movc3 %0, %1, %2"
  29732. : /* No outputs. */
  29733. : "g" (from), "g" (to), "g" (count)
  29734. : "r0", "r1", "r2", "r3", "r4", "r5", "memory");
  29735. Also, there are two special clobber arguments:
  29736. '"cc"'
  29737. The '"cc"' clobber indicates that the assembler code modifies the
  29738. flags register. On some machines, GCC represents the condition
  29739. codes as a specific hardware register; '"cc"' serves to name this
  29740. register. On other machines, condition code handling is different,
  29741. and specifying '"cc"' has no effect. But it is valid no matter
  29742. what the target.
  29743. '"memory"'
  29744. The '"memory"' clobber tells the compiler that the assembly code
  29745. performs memory reads or writes to items other than those listed in
  29746. the input and output operands (for example, accessing the memory
  29747. pointed to by one of the input parameters). To ensure memory
  29748. contains correct values, GCC may need to flush specific register
  29749. values to memory before executing the 'asm'. Further, the compiler
  29750. does not assume that any values read from memory before an 'asm'
  29751. remain unchanged after that 'asm'; it reloads them as needed.
  29752. Using the '"memory"' clobber effectively forms a read/write memory
  29753. barrier for the compiler.
  29754. Note that this clobber does not prevent the _processor_ from doing
  29755. speculative reads past the 'asm' statement. To prevent that, you
  29756. need processor-specific fence instructions.
  29757. Flushing registers to memory has performance implications and may be an
  29758. issue for time-sensitive code. You can provide better information to
  29759. GCC to avoid this, as shown in the following examples. At a minimum,
  29760. aliasing rules allow GCC to know what memory _doesn't_ need to be
  29761. flushed.
  29762. Here is a fictitious sum of squares instruction, that takes two
  29763. pointers to floating point values in memory and produces a floating
  29764. point register output. Notice that 'x', and 'y' both appear twice in
  29765. the 'asm' parameters, once to specify memory accessed, and once to
  29766. specify a base register used by the 'asm'. You won't normally be
  29767. wasting a register by doing this as GCC can use the same register for
  29768. both purposes. However, it would be foolish to use both '%1' and '%3'
  29769. for 'x' in this 'asm' and expect them to be the same. In fact, '%3' may
  29770. well not be a register. It might be a symbolic memory reference to the
  29771. object pointed to by 'x'.
  29772. asm ("sumsq %0, %1, %2"
  29773. : "+f" (result)
  29774. : "r" (x), "r" (y), "m" (*x), "m" (*y));
  29775. Here is a fictitious '*z++ = *x++ * *y++' instruction. Notice that the
  29776. 'x', 'y' and 'z' pointer registers must be specified as input/output
  29777. because the 'asm' modifies them.
  29778. asm ("vecmul %0, %1, %2"
  29779. : "+r" (z), "+r" (x), "+r" (y), "=m" (*z)
  29780. : "m" (*x), "m" (*y));
  29781. An x86 example where the string memory argument is of unknown length.
  29782. asm("repne scasb"
  29783. : "=c" (count), "+D" (p)
  29784. : "m" (*(const char (*)[]) p), "0" (-1), "a" (0));
  29785. If you know the above will only be reading a ten byte array then you
  29786. could instead use a memory input like: '"m" (*(const char (*)[10]) p)'.
  29787. Here is an example of a PowerPC vector scale implemented in assembly,
  29788. complete with vector and condition code clobbers, and some initialized
  29789. offset registers that are unchanged by the 'asm'.
  29790. void
  29791. dscal (size_t n, double *x, double alpha)
  29792. {
  29793. asm ("/* lots of asm here */"
  29794. : "+m" (*(double (*)[n]) x), "+&r" (n), "+b" (x)
  29795. : "d" (alpha), "b" (32), "b" (48), "b" (64),
  29796. "b" (80), "b" (96), "b" (112)
  29797. : "cr0",
  29798. "vs32","vs33","vs34","vs35","vs36","vs37","vs38","vs39",
  29799. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47");
  29800. }
  29801. Rather than allocating fixed registers via clobbers to provide scratch
  29802. registers for an 'asm' statement, an alternative is to define a variable
  29803. and make it an early-clobber output as with 'a2' and 'a3' in the example
  29804. below. This gives the compiler register allocator more freedom. You
  29805. can also define a variable and make it an output tied to an input as
  29806. with 'a0' and 'a1', tied respectively to 'ap' and 'lda'. Of course,
  29807. with tied outputs your 'asm' can't use the input value after modifying
  29808. the output register since they are one and the same register. What's
  29809. more, if you omit the early-clobber on the output, it is possible that
  29810. GCC might allocate the same register to another of the inputs if GCC
  29811. could prove they had the same value on entry to the 'asm'. This is why
  29812. 'a1' has an early-clobber. Its tied input, 'lda' might conceivably be
  29813. known to have the value 16 and without an early-clobber share the same
  29814. register as '%11'. On the other hand, 'ap' can't be the same as any of
  29815. the other inputs, so an early-clobber on 'a0' is not needed. It is also
  29816. not desirable in this case. An early-clobber on 'a0' would cause GCC to
  29817. allocate a separate register for the '"m" (*(const double (*)[]) ap)'
  29818. input. Note that tying an input to an output is the way to set up an
  29819. initialized temporary register modified by an 'asm' statement. An input
  29820. not tied to an output is assumed by GCC to be unchanged, for example
  29821. '"b" (16)' below sets up '%11' to 16, and GCC might use that register in
  29822. following code if the value 16 happened to be needed. You can even use
  29823. a normal 'asm' output for a scratch if all inputs that might share the
  29824. same register are consumed before the scratch is used. The VSX
  29825. registers clobbered by the 'asm' statement could have used this
  29826. technique except for GCC's limit on the number of 'asm' parameters.
  29827. static void
  29828. dgemv_kernel_4x4 (long n, const double *ap, long lda,
  29829. const double *x, double *y, double alpha)
  29830. {
  29831. double *a0;
  29832. double *a1;
  29833. double *a2;
  29834. double *a3;
  29835. __asm__
  29836. (
  29837. /* lots of asm here */
  29838. "#n=%1 ap=%8=%12 lda=%13 x=%7=%10 y=%0=%2 alpha=%9 o16=%11\n"
  29839. "#a0=%3 a1=%4 a2=%5 a3=%6"
  29840. :
  29841. "+m" (*(double (*)[n]) y),
  29842. "+&r" (n), // 1
  29843. "+b" (y), // 2
  29844. "=b" (a0), // 3
  29845. "=&b" (a1), // 4
  29846. "=&b" (a2), // 5
  29847. "=&b" (a3) // 6
  29848. :
  29849. "m" (*(const double (*)[n]) x),
  29850. "m" (*(const double (*)[]) ap),
  29851. "d" (alpha), // 9
  29852. "r" (x), // 10
  29853. "b" (16), // 11
  29854. "3" (ap), // 12
  29855. "4" (lda) // 13
  29856. :
  29857. "cr0",
  29858. "vs32","vs33","vs34","vs35","vs36","vs37",
  29859. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47"
  29860. );
  29861. }
  29862. 6.47.2.7 Goto Labels
  29863. ....................
  29864. 'asm goto' allows assembly code to jump to one or more C labels. The
  29865. GOTOLABELS section in an 'asm goto' statement contains a comma-separated
  29866. list of all C labels to which the assembler code may jump. GCC assumes
  29867. that 'asm' execution falls through to the next statement (if this is not
  29868. the case, consider using the '__builtin_unreachable' intrinsic after the
  29869. 'asm' statement). Optimization of 'asm goto' may be improved by using
  29870. the 'hot' and 'cold' label attributes (*note Label Attributes::).
  29871. An 'asm goto' statement cannot have outputs. This is due to an
  29872. internal restriction of the compiler: control transfer instructions
  29873. cannot have outputs. If the assembler code does modify anything, use
  29874. the '"memory"' clobber to force the optimizers to flush all register
  29875. values to memory and reload them if necessary after the 'asm' statement.
  29876. Also note that an 'asm goto' statement is always implicitly considered
  29877. volatile.
  29878. To reference a label in the assembler template, prefix it with '%l'
  29879. (lowercase 'L') followed by its (zero-based) position in GOTOLABELS plus
  29880. the number of input operands. For example, if the 'asm' has three
  29881. inputs and references two labels, refer to the first label as '%l3' and
  29882. the second as '%l4').
  29883. Alternately, you can reference labels using the actual C label name
  29884. enclosed in brackets. For example, to reference a label named 'carry',
  29885. you can use '%l[carry]'. The label must still be listed in the
  29886. GOTOLABELS section when using this approach.
  29887. Here is an example of 'asm goto' for i386:
  29888. asm goto (
  29889. "btl %1, %0\n\t"
  29890. "jc %l2"
  29891. : /* No outputs. */
  29892. : "r" (p1), "r" (p2)
  29893. : "cc"
  29894. : carry);
  29895. return 0;
  29896. carry:
  29897. return 1;
  29898. The following example shows an 'asm goto' that uses a memory clobber.
  29899. int frob(int x)
  29900. {
  29901. int y;
  29902. asm goto ("frob %%r5, %1; jc %l[error]; mov (%2), %%r5"
  29903. : /* No outputs. */
  29904. : "r"(x), "r"(&y)
  29905. : "r5", "memory"
  29906. : error);
  29907. return y;
  29908. error:
  29909. return -1;
  29910. }
  29911. 6.47.2.8 x86 Operand Modifiers
  29912. ..............................
  29913. References to input, output, and goto operands in the assembler template
  29914. of extended 'asm' statements can use modifiers to affect the way the
  29915. operands are formatted in the code output to the assembler. For
  29916. example, the following code uses the 'h' and 'b' modifiers for x86:
  29917. uint16_t num;
  29918. asm volatile ("xchg %h0, %b0" : "+a" (num) );
  29919. These modifiers generate this assembler code:
  29920. xchg %ah, %al
  29921. The rest of this discussion uses the following code for illustrative
  29922. purposes.
  29923. int main()
  29924. {
  29925. int iInt = 1;
  29926. top:
  29927. asm volatile goto ("some assembler instructions here"
  29928. : /* No outputs. */
  29929. : "q" (iInt), "X" (sizeof(unsigned char) + 1), "i" (42)
  29930. : /* No clobbers. */
  29931. : top);
  29932. }
  29933. With no modifiers, this is what the output from the operands would be
  29934. for the 'att' and 'intel' dialects of assembler:
  29935. Operand 'att' 'intel'
  29936. -----------------------------------
  29937. '%0' '%eax' 'eax'
  29938. '%1' '$2' '2'
  29939. '%3' '$.L3' 'OFFSET
  29940. FLAT:.L3'
  29941. The table below shows the list of supported modifiers and their
  29942. effects.
  29943. Modifier Description Operand 'att' 'intel'
  29944. ------------------------------------------------------------------------------------
  29945. 'a' Print an absolute memory reference. '%A0' '*%rax' 'rax'
  29946. 'b' Print the QImode name of the register. '%b0' '%al' 'al'
  29947. 'c' Require a constant operand and print the '%c1' '2' '2'
  29948. constant expression with no punctuation.
  29949. 'E' Print the address in Double Integer '%E1' '%(rax)''[rax]'
  29950. (DImode) mode (8 bytes) when the target is
  29951. 64-bit. Otherwise mode is unspecified
  29952. (VOIDmode).
  29953. 'h' Print the QImode name for a "high" '%h0' '%ah' 'ah'
  29954. register.
  29955. 'H' Add 8 bytes to an offsettable memory '%H0' '8(%rax)''8[rax]'
  29956. reference. Useful when accessing the high
  29957. 8 bytes of SSE values. For a memref in
  29958. (%rax), it generates
  29959. 'k' Print the SImode name of the register. '%k0' '%eax' 'eax'
  29960. 'l' Print the label name with no punctuation. '%l3' '.L3' '.L3'
  29961. 'p' Print raw symbol name (without '%p2' '42' '42'
  29962. syntax-specific prefixes).
  29963. 'P' If used for a function, print the PLT
  29964. suffix and generate PIC code. For
  29965. example, emit 'foo@PLT' instead of 'foo'
  29966. for the function foo(). If used for a
  29967. constant, drop all syntax-specific
  29968. prefixes and issue the bare constant. See
  29969. 'p' above.
  29970. 'q' Print the DImode name of the register. '%q0' '%rax' 'rax'
  29971. 'w' Print the HImode name of the register. '%w0' '%ax' 'ax'
  29972. 'z' Print the opcode suffix for the size of '%z0' 'l'
  29973. the current integer operand (one of
  29974. 'b'/'w'/'l'/'q').
  29975. 'V' is a special modifier which prints the name of the full integer
  29976. register without '%'.
  29977. 6.47.2.9 x86 Floating-Point 'asm' Operands
  29978. ..........................................
  29979. On x86 targets, there are several rules on the usage of stack-like
  29980. registers in the operands of an 'asm'. These rules apply only to the
  29981. operands that are stack-like registers:
  29982. 1. Given a set of input registers that die in an 'asm', it is
  29983. necessary to know which are implicitly popped by the 'asm', and
  29984. which must be explicitly popped by GCC.
  29985. An input register that is implicitly popped by the 'asm' must be
  29986. explicitly clobbered, unless it is constrained to match an output
  29987. operand.
  29988. 2. For any input register that is implicitly popped by an 'asm', it is
  29989. necessary to know how to adjust the stack to compensate for the
  29990. pop. If any non-popped input is closer to the top of the reg-stack
  29991. than the implicitly popped register, it would not be possible to
  29992. know what the stack looked like--it's not clear how the rest of the
  29993. stack "slides up".
  29994. All implicitly popped input registers must be closer to the top of
  29995. the reg-stack than any input that is not implicitly popped.
  29996. It is possible that if an input dies in an 'asm', the compiler
  29997. might use the input register for an output reload. Consider this
  29998. example:
  29999. asm ("foo" : "=t" (a) : "f" (b));
  30000. This code says that input 'b' is not popped by the 'asm', and that
  30001. the 'asm' pushes a result onto the reg-stack, i.e., the stack is
  30002. one deeper after the 'asm' than it was before. But, it is possible
  30003. that reload may think that it can use the same register for both
  30004. the input and the output.
  30005. To prevent this from happening, if any input operand uses the 'f'
  30006. constraint, all output register constraints must use the '&'
  30007. early-clobber modifier.
  30008. The example above is correctly written as:
  30009. asm ("foo" : "=&t" (a) : "f" (b));
  30010. 3. Some operands need to be in particular places on the stack. All
  30011. output operands fall in this category--GCC has no other way to know
  30012. which registers the outputs appear in unless you indicate this in
  30013. the constraints.
  30014. Output operands must specifically indicate which register an output
  30015. appears in after an 'asm'. '=f' is not allowed: the operand
  30016. constraints must select a class with a single register.
  30017. 4. Output operands may not be "inserted" between existing stack
  30018. registers. Since no 387 opcode uses a read/write operand, all
  30019. output operands are dead before the 'asm', and are pushed by the
  30020. 'asm'. It makes no sense to push anywhere but the top of the
  30021. reg-stack.
  30022. Output operands must start at the top of the reg-stack: output
  30023. operands may not "skip" a register.
  30024. 5. Some 'asm' statements may need extra stack space for internal
  30025. calculations. This can be guaranteed by clobbering stack registers
  30026. unrelated to the inputs and outputs.
  30027. This 'asm' takes one input, which is internally popped, and produces
  30028. two outputs.
  30029. asm ("fsincos" : "=t" (cos), "=u" (sin) : "0" (inp));
  30030. This 'asm' takes two inputs, which are popped by the 'fyl2xp1' opcode,
  30031. and replaces them with one output. The 'st(1)' clobber is necessary for
  30032. the compiler to know that 'fyl2xp1' pops both inputs.
  30033. asm ("fyl2xp1" : "=t" (result) : "0" (x), "u" (y) : "st(1)");
  30034. 
  30035. File: gcc.info, Node: Constraints, Next: Asm Labels, Prev: Extended Asm, Up: Using Assembly Language with C
  30036. 6.47.3 Constraints for 'asm' Operands
  30037. -------------------------------------
  30038. Here are specific details on what constraint letters you can use with
  30039. 'asm' operands. Constraints can say whether an operand may be in a
  30040. register, and which kinds of register; whether the operand can be a
  30041. memory reference, and which kinds of address; whether the operand may be
  30042. an immediate constant, and which possible values it may have.
  30043. Constraints can also require two operands to match. Side-effects aren't
  30044. allowed in operands of inline 'asm', unless '<' or '>' constraints are
  30045. used, because there is no guarantee that the side effects will happen
  30046. exactly once in an instruction that can update the addressing register.
  30047. * Menu:
  30048. * Simple Constraints:: Basic use of constraints.
  30049. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  30050. * Modifiers:: More precise control over effects of constraints.
  30051. * Machine Constraints:: Special constraints for some particular machines.
  30052. 
  30053. File: gcc.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  30054. 6.47.3.1 Simple Constraints
  30055. ...........................
  30056. The simplest kind of constraint is a string full of letters, each of
  30057. which describes one kind of operand that is permitted. Here are the
  30058. letters that are allowed:
  30059. whitespace
  30060. Whitespace characters are ignored and can be inserted at any
  30061. position except the first. This enables each alternative for
  30062. different operands to be visually aligned in the machine
  30063. description even if they have different number of constraints and
  30064. modifiers.
  30065. 'm'
  30066. A memory operand is allowed, with any kind of address that the
  30067. machine supports in general. Note that the letter used for the
  30068. general memory constraint can be re-defined by a back end using the
  30069. 'TARGET_MEM_CONSTRAINT' macro.
  30070. 'o'
  30071. A memory operand is allowed, but only if the address is
  30072. "offsettable". This means that adding a small integer (actually,
  30073. the width in bytes of the operand, as determined by its machine
  30074. mode) may be added to the address and the result is also a valid
  30075. memory address.
  30076. For example, an address which is constant is offsettable; so is an
  30077. address that is the sum of a register and a constant (as long as a
  30078. slightly larger constant is also within the range of
  30079. address-offsets supported by the machine); but an autoincrement or
  30080. autodecrement address is not offsettable. More complicated
  30081. indirect/indexed addresses may or may not be offsettable depending
  30082. on the other addressing modes that the machine supports.
  30083. Note that in an output operand which can be matched by another
  30084. operand, the constraint letter 'o' is valid only when accompanied
  30085. by both '<' (if the target machine has predecrement addressing) and
  30086. '>' (if the target machine has preincrement addressing).
  30087. 'V'
  30088. A memory operand that is not offsettable. In other words, anything
  30089. that would fit the 'm' constraint but not the 'o' constraint.
  30090. '<'
  30091. A memory operand with autodecrement addressing (either predecrement
  30092. or postdecrement) is allowed. In inline 'asm' this constraint is
  30093. only allowed if the operand is used exactly once in an instruction
  30094. that can handle the side effects. Not using an operand with '<' in
  30095. constraint string in the inline 'asm' pattern at all or using it in
  30096. multiple instructions isn't valid, because the side effects
  30097. wouldn't be performed or would be performed more than once.
  30098. Furthermore, on some targets the operand with '<' in constraint
  30099. string must be accompanied by special instruction suffixes like
  30100. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  30101. '>'
  30102. A memory operand with autoincrement addressing (either preincrement
  30103. or postincrement) is allowed. In inline 'asm' the same
  30104. restrictions as for '<' apply.
  30105. 'r'
  30106. A register operand is allowed provided that it is in a general
  30107. register.
  30108. 'i'
  30109. An immediate integer operand (one with constant value) is allowed.
  30110. This includes symbolic constants whose values will be known only at
  30111. assembly time or later.
  30112. 'n'
  30113. An immediate integer operand with a known numeric value is allowed.
  30114. Many systems cannot support assembly-time constants for operands
  30115. less than a word wide. Constraints for these operands should use
  30116. 'n' rather than 'i'.
  30117. 'I', 'J', 'K', ... 'P'
  30118. Other letters in the range 'I' through 'P' may be defined in a
  30119. machine-dependent fashion to permit immediate integer operands with
  30120. explicit integer values in specified ranges. For example, on the
  30121. 68000, 'I' is defined to stand for the range of values 1 to 8.
  30122. This is the range permitted as a shift count in the shift
  30123. instructions.
  30124. 'E'
  30125. An immediate floating operand (expression code 'const_double') is
  30126. allowed, but only if the target floating point format is the same
  30127. as that of the host machine (on which the compiler is running).
  30128. 'F'
  30129. An immediate floating operand (expression code 'const_double' or
  30130. 'const_vector') is allowed.
  30131. 'G', 'H'
  30132. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  30133. immediate floating operands in particular ranges of values.
  30134. 's'
  30135. An immediate integer operand whose value is not an explicit integer
  30136. is allowed.
  30137. This might appear strange; if an insn allows a constant operand
  30138. with a value not known at compile time, it certainly must allow any
  30139. known value. So why use 's' instead of 'i'? Sometimes it allows
  30140. better code to be generated.
  30141. For example, on the 68000 in a fullword instruction it is possible
  30142. to use an immediate operand; but if the immediate value is between
  30143. -128 and 127, better code results from loading the value into a
  30144. register and using the register. This is because the load into the
  30145. register can be done with a 'moveq' instruction. We arrange for
  30146. this to happen by defining the letter 'K' to mean "any integer
  30147. outside the range -128 to 127", and then specifying 'Ks' in the
  30148. operand constraints.
  30149. 'g'
  30150. Any register, memory or immediate integer operand is allowed,
  30151. except for registers that are not general registers.
  30152. 'X'
  30153. Any operand whatsoever is allowed.
  30154. '0', '1', '2', ... '9'
  30155. An operand that matches the specified operand number is allowed.
  30156. If a digit is used together with letters within the same
  30157. alternative, the digit should come last.
  30158. This number is allowed to be more than a single digit. If multiple
  30159. digits are encountered consecutively, they are interpreted as a
  30160. single decimal integer. There is scant chance for ambiguity, since
  30161. to-date it has never been desirable that '10' be interpreted as
  30162. matching either operand 1 _or_ operand 0. Should this be desired,
  30163. one can use multiple alternatives instead.
  30164. This is called a "matching constraint" and what it really means is
  30165. that the assembler has only a single operand that fills two roles
  30166. which 'asm' distinguishes. For example, an add instruction uses
  30167. two input operands and an output operand, but on most CISC machines
  30168. an add instruction really has only two operands, one of them an
  30169. input-output operand:
  30170. addl #35,r12
  30171. Matching constraints are used in these circumstances. More
  30172. precisely, the two operands that match must include one input-only
  30173. operand and one output-only operand. Moreover, the digit must be a
  30174. smaller number than the number of the operand that uses it in the
  30175. constraint.
  30176. 'p'
  30177. An operand that is a valid memory address is allowed. This is for
  30178. "load address" and "push address" instructions.
  30179. 'p' in the constraint must be accompanied by 'address_operand' as
  30180. the predicate in the 'match_operand'. This predicate interprets
  30181. the mode specified in the 'match_operand' as the mode of the memory
  30182. reference for which the address would be valid.
  30183. OTHER-LETTERS
  30184. Other letters can be defined in machine-dependent fashion to stand
  30185. for particular classes of registers or other arbitrary operand
  30186. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  30187. for data, address and floating point registers.
  30188. 
  30189. File: gcc.info, Node: Multi-Alternative, Next: Modifiers, Prev: Simple Constraints, Up: Constraints
  30190. 6.47.3.2 Multiple Alternative Constraints
  30191. .........................................
  30192. Sometimes a single instruction has multiple alternative sets of possible
  30193. operands. For example, on the 68000, a logical-or instruction can
  30194. combine register or an immediate value into memory, or it can combine
  30195. any kind of operand into a register; but it cannot combine one memory
  30196. location into another.
  30197. These constraints are represented as multiple alternatives. An
  30198. alternative can be described by a series of letters for each operand.
  30199. The overall constraint for an operand is made from the letters for this
  30200. operand from the first alternative, a comma, the letters for this
  30201. operand from the second alternative, a comma, and so on until the last
  30202. alternative. All operands for a single instruction must have the same
  30203. number of alternatives.
  30204. So the first alternative for the 68000's logical-or could be written as
  30205. '"+m" (output) : "ir" (input)'. The second could be '"+r" (output):
  30206. "irm" (input)'. However, the fact that two memory locations cannot be
  30207. used in a single instruction prevents simply using '"+rm" (output) :
  30208. "irm" (input)'. Using multi-alternatives, this might be written as
  30209. '"+m,r" (output) : "ir,irm" (input)'. This describes all the available
  30210. alternatives to the compiler, allowing it to choose the most efficient
  30211. one for the current conditions.
  30212. There is no way within the template to determine which alternative was
  30213. chosen. However you may be able to wrap your 'asm' statements with
  30214. builtins such as '__builtin_constant_p' to achieve the desired results.
  30215. 
  30216. File: gcc.info, Node: Modifiers, Next: Machine Constraints, Prev: Multi-Alternative, Up: Constraints
  30217. 6.47.3.3 Constraint Modifier Characters
  30218. .......................................
  30219. Here are constraint modifier characters.
  30220. '='
  30221. Means that this operand is written to by this instruction: the
  30222. previous value is discarded and replaced by new data.
  30223. '+'
  30224. Means that this operand is both read and written by the
  30225. instruction.
  30226. When the compiler fixes up the operands to satisfy the constraints,
  30227. it needs to know which operands are read by the instruction and
  30228. which are written by it. '=' identifies an operand which is only
  30229. written; '+' identifies an operand that is both read and written;
  30230. all other operands are assumed to only be read.
  30231. If you specify '=' or '+' in a constraint, you put it in the first
  30232. character of the constraint string.
  30233. '&'
  30234. Means (in a particular alternative) that this operand is an
  30235. "earlyclobber" operand, which is written before the instruction is
  30236. finished using the input operands. Therefore, this operand may not
  30237. lie in a register that is read by the instruction or as part of any
  30238. memory address.
  30239. '&' applies only to the alternative in which it is written. In
  30240. constraints with multiple alternatives, sometimes one alternative
  30241. requires '&' while others do not. See, for example, the 'movdf'
  30242. insn of the 68000.
  30243. A operand which is read by the instruction can be tied to an
  30244. earlyclobber operand if its only use as an input occurs before the
  30245. early result is written. Adding alternatives of this form often
  30246. allows GCC to produce better code when only some of the read
  30247. operands can be affected by the earlyclobber. See, for example,
  30248. the 'mulsi3' insn of the ARM.
  30249. Furthermore, if the "earlyclobber" operand is also a read/write
  30250. operand, then that operand is written only after it's used.
  30251. '&' does not obviate the need to write '=' or '+'. As
  30252. "earlyclobber" operands are always written, a read-only
  30253. "earlyclobber" operand is ill-formed and will be rejected by the
  30254. compiler.
  30255. '%'
  30256. Declares the instruction to be commutative for this operand and the
  30257. following operand. This means that the compiler may interchange
  30258. the two operands if that is the cheapest way to make all operands
  30259. fit the constraints. '%' applies to all alternatives and must
  30260. appear as the first character in the constraint. Only read-only
  30261. operands can use '%'.
  30262. GCC can only handle one commutative pair in an asm; if you use
  30263. more, the compiler may fail. Note that you need not use the
  30264. modifier if the two alternatives are strictly identical; this would
  30265. only waste time in the reload pass.
  30266. 
  30267. File: gcc.info, Node: Machine Constraints, Prev: Modifiers, Up: Constraints
  30268. 6.47.3.4 Constraints for Particular Machines
  30269. ............................................
  30270. Whenever possible, you should use the general-purpose constraint letters
  30271. in 'asm' arguments, since they will convey meaning more readily to
  30272. people reading your code. Failing that, use the constraint letters that
  30273. usually have very similar meanings across architectures. The most
  30274. commonly used constraints are 'm' and 'r' (for memory and
  30275. general-purpose registers respectively; *note Simple Constraints::), and
  30276. 'I', usually the letter indicating the most common immediate-constant
  30277. format.
  30278. Each architecture defines additional constraints. These constraints
  30279. are used by the compiler itself for instruction generation, as well as
  30280. for 'asm' statements; therefore, some of the constraints are not
  30281. particularly useful for 'asm'. Here is a summary of some of the
  30282. machine-dependent constraints available on some particular machines; it
  30283. includes both constraints that are useful for 'asm' and constraints that
  30284. aren't. The compiler source file mentioned in the table heading for
  30285. each architecture is the definitive reference for the meanings of that
  30286. architecture's constraints.
  30287. _AArch64 family--'config/aarch64/constraints.md'_
  30288. 'k'
  30289. The stack pointer register ('SP')
  30290. 'w'
  30291. Floating point register, Advanced SIMD vector register or SVE
  30292. vector register
  30293. 'Upl'
  30294. One of the low eight SVE predicate registers ('P0' to 'P7')
  30295. 'Upa'
  30296. Any of the SVE predicate registers ('P0' to 'P15')
  30297. 'I'
  30298. Integer constant that is valid as an immediate operand in an
  30299. 'ADD' instruction
  30300. 'J'
  30301. Integer constant that is valid as an immediate operand in a
  30302. 'SUB' instruction (once negated)
  30303. 'K'
  30304. Integer constant that can be used with a 32-bit logical
  30305. instruction
  30306. 'L'
  30307. Integer constant that can be used with a 64-bit logical
  30308. instruction
  30309. 'M'
  30310. Integer constant that is valid as an immediate operand in a
  30311. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  30312. to one of several different machine instructions depending on
  30313. the value
  30314. 'N'
  30315. Integer constant that is valid as an immediate operand in a
  30316. 64-bit 'MOV' pseudo instruction
  30317. 'S'
  30318. An absolute symbolic address or a label reference
  30319. 'Y'
  30320. Floating point constant zero
  30321. 'Z'
  30322. Integer constant zero
  30323. 'Ush'
  30324. The high part (bits 12 and upwards) of the pc-relative address
  30325. of a symbol within 4GB of the instruction
  30326. 'Q'
  30327. A memory address which uses a single base register with no
  30328. offset
  30329. 'Ump'
  30330. A memory address suitable for a load/store pair instruction in
  30331. SI, DI, SF and DF modes
  30332. _AMD GCN --'config/gcn/constraints.md'_
  30333. 'I'
  30334. Immediate integer in the range -16 to 64
  30335. 'J'
  30336. Immediate 16-bit signed integer
  30337. 'Kf'
  30338. Immediate constant -1
  30339. 'L'
  30340. Immediate 15-bit unsigned integer
  30341. 'A'
  30342. Immediate constant that can be inlined in an instruction
  30343. encoding: integer -16..64, or float 0.0, +/-0.5, +/-1.0,
  30344. +/-2.0, +/-4.0, 1.0/(2.0*PI)
  30345. 'B'
  30346. Immediate 32-bit signed integer that can be attached to an
  30347. instruction encoding
  30348. 'C'
  30349. Immediate 32-bit integer in range -16..4294967295 (i.e.
  30350. 32-bit unsigned integer or 'A' constraint)
  30351. 'DA'
  30352. Immediate 64-bit constant that can be split into two 'A'
  30353. constants
  30354. 'DB'
  30355. Immediate 64-bit constant that can be split into two 'B'
  30356. constants
  30357. 'U'
  30358. Any 'unspec'
  30359. 'Y'
  30360. Any 'symbol_ref' or 'label_ref'
  30361. 'v'
  30362. VGPR register
  30363. 'Sg'
  30364. SGPR register
  30365. 'SD'
  30366. SGPR registers valid for instruction destinations, including
  30367. VCC, M0 and EXEC
  30368. 'SS'
  30369. SGPR registers valid for instruction sources, including VCC,
  30370. M0, EXEC and SCC
  30371. 'Sm'
  30372. SGPR registers valid as a source for scalar memory
  30373. instructions (excludes M0 and EXEC)
  30374. 'Sv'
  30375. SGPR registers valid as a source or destination for vector
  30376. instructions (excludes EXEC)
  30377. 'ca'
  30378. All condition registers: SCC, VCCZ, EXECZ
  30379. 'cs'
  30380. Scalar condition register: SCC
  30381. 'cV'
  30382. Vector condition register: VCC, VCC_LO, VCC_HI
  30383. 'e'
  30384. EXEC register (EXEC_LO and EXEC_HI)
  30385. 'RB'
  30386. Memory operand with address space suitable for 'buffer_*'
  30387. instructions
  30388. 'RF'
  30389. Memory operand with address space suitable for 'flat_*'
  30390. instructions
  30391. 'RS'
  30392. Memory operand with address space suitable for 's_*'
  30393. instructions
  30394. 'RL'
  30395. Memory operand with address space suitable for 'ds_*' LDS
  30396. instructions
  30397. 'RG'
  30398. Memory operand with address space suitable for 'ds_*' GDS
  30399. instructions
  30400. 'RD'
  30401. Memory operand with address space suitable for any 'ds_*'
  30402. instructions
  30403. 'RM'
  30404. Memory operand with address space suitable for 'global_*'
  30405. instructions
  30406. _ARC --'config/arc/constraints.md'_
  30407. 'q'
  30408. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  30409. 'r12'-'r15'. This constraint can only match when the '-mq'
  30410. option is in effect.
  30411. 'e'
  30412. Registers usable as base-regs of memory addresses in ARCompact
  30413. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  30414. This constraint can only match when the '-mq' option is in
  30415. effect.
  30416. 'D'
  30417. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  30418. 'I'
  30419. A signed 12-bit integer constant.
  30420. 'Cal'
  30421. constant for arithmetic/logical operations. This might be any
  30422. constant that can be put into a long immediate by the assmbler
  30423. or linker without involving a PIC relocation.
  30424. 'K'
  30425. A 3-bit unsigned integer constant.
  30426. 'L'
  30427. A 6-bit unsigned integer constant.
  30428. 'CnL'
  30429. One's complement of a 6-bit unsigned integer constant.
  30430. 'CmL'
  30431. Two's complement of a 6-bit unsigned integer constant.
  30432. 'M'
  30433. A 5-bit unsigned integer constant.
  30434. 'O'
  30435. A 7-bit unsigned integer constant.
  30436. 'P'
  30437. A 8-bit unsigned integer constant.
  30438. 'H'
  30439. Any const_double value.
  30440. _ARM family--'config/arm/constraints.md'_
  30441. 'h'
  30442. In Thumb state, the core registers 'r8'-'r15'.
  30443. 'k'
  30444. The stack pointer register.
  30445. 'l'
  30446. In Thumb State the core registers 'r0'-'r7'. In ARM state
  30447. this is an alias for the 'r' constraint.
  30448. 't'
  30449. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  30450. values.
  30451. 'w'
  30452. VFP floating-point registers 'd0'-'d31' and the appropriate
  30453. subset 'd0'-'d15' based on command line options. Used for 64
  30454. bit values only. Not valid for Thumb1.
  30455. 'y'
  30456. The iWMMX co-processor registers.
  30457. 'z'
  30458. The iWMMX GR registers.
  30459. 'G'
  30460. The floating-point constant 0.0
  30461. 'I'
  30462. Integer that is valid as an immediate operand in a data
  30463. processing instruction. That is, an integer in the range 0 to
  30464. 255 rotated by a multiple of 2
  30465. 'J'
  30466. Integer in the range -4095 to 4095
  30467. 'K'
  30468. Integer that satisfies constraint 'I' when inverted (ones
  30469. complement)
  30470. 'L'
  30471. Integer that satisfies constraint 'I' when negated (twos
  30472. complement)
  30473. 'M'
  30474. Integer in the range 0 to 32
  30475. 'Q'
  30476. A memory reference where the exact address is in a single
  30477. register (''m'' is preferable for 'asm' statements)
  30478. 'R'
  30479. An item in the constant pool
  30480. 'S'
  30481. A symbol in the text segment of the current file
  30482. 'Uv'
  30483. A memory reference suitable for VFP load/store insns
  30484. (reg+constant offset)
  30485. 'Uy'
  30486. A memory reference suitable for iWMMXt load/store
  30487. instructions.
  30488. 'Uq'
  30489. A memory reference suitable for the ARMv4 ldrsb instruction.
  30490. _AVR family--'config/avr/constraints.md'_
  30491. 'l'
  30492. Registers from r0 to r15
  30493. 'a'
  30494. Registers from r16 to r23
  30495. 'd'
  30496. Registers from r16 to r31
  30497. 'w'
  30498. Registers from r24 to r31. These registers can be used in
  30499. 'adiw' command
  30500. 'e'
  30501. Pointer register (r26-r31)
  30502. 'b'
  30503. Base pointer register (r28-r31)
  30504. 'q'
  30505. Stack pointer register (SPH:SPL)
  30506. 't'
  30507. Temporary register r0
  30508. 'x'
  30509. Register pair X (r27:r26)
  30510. 'y'
  30511. Register pair Y (r29:r28)
  30512. 'z'
  30513. Register pair Z (r31:r30)
  30514. 'I'
  30515. Constant greater than -1, less than 64
  30516. 'J'
  30517. Constant greater than -64, less than 1
  30518. 'K'
  30519. Constant integer 2
  30520. 'L'
  30521. Constant integer 0
  30522. 'M'
  30523. Constant that fits in 8 bits
  30524. 'N'
  30525. Constant integer -1
  30526. 'O'
  30527. Constant integer 8, 16, or 24
  30528. 'P'
  30529. Constant integer 1
  30530. 'G'
  30531. A floating point constant 0.0
  30532. 'Q'
  30533. A memory address based on Y or Z pointer with displacement.
  30534. _Blackfin family--'config/bfin/constraints.md'_
  30535. 'a'
  30536. P register
  30537. 'd'
  30538. D register
  30539. 'z'
  30540. A call clobbered P register.
  30541. 'qN'
  30542. A single register. If N is in the range 0 to 7, the
  30543. corresponding D register. If it is 'A', then the register P0.
  30544. 'D'
  30545. Even-numbered D register
  30546. 'W'
  30547. Odd-numbered D register
  30548. 'e'
  30549. Accumulator register.
  30550. 'A'
  30551. Even-numbered accumulator register.
  30552. 'B'
  30553. Odd-numbered accumulator register.
  30554. 'b'
  30555. I register
  30556. 'v'
  30557. B register
  30558. 'f'
  30559. M register
  30560. 'c'
  30561. Registers used for circular buffering, i.e. I, B, or L
  30562. registers.
  30563. 'C'
  30564. The CC register.
  30565. 't'
  30566. LT0 or LT1.
  30567. 'k'
  30568. LC0 or LC1.
  30569. 'u'
  30570. LB0 or LB1.
  30571. 'x'
  30572. Any D, P, B, M, I or L register.
  30573. 'y'
  30574. Additional registers typically used only in prologues and
  30575. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  30576. USP.
  30577. 'w'
  30578. Any register except accumulators or CC.
  30579. 'Ksh'
  30580. Signed 16 bit integer (in the range -32768 to 32767)
  30581. 'Kuh'
  30582. Unsigned 16 bit integer (in the range 0 to 65535)
  30583. 'Ks7'
  30584. Signed 7 bit integer (in the range -64 to 63)
  30585. 'Ku7'
  30586. Unsigned 7 bit integer (in the range 0 to 127)
  30587. 'Ku5'
  30588. Unsigned 5 bit integer (in the range 0 to 31)
  30589. 'Ks4'
  30590. Signed 4 bit integer (in the range -8 to 7)
  30591. 'Ks3'
  30592. Signed 3 bit integer (in the range -3 to 4)
  30593. 'Ku3'
  30594. Unsigned 3 bit integer (in the range 0 to 7)
  30595. 'PN'
  30596. Constant N, where N is a single-digit constant in the range 0
  30597. to 4.
  30598. 'PA'
  30599. An integer equal to one of the MACFLAG_XXX constants that is
  30600. suitable for use with either accumulator.
  30601. 'PB'
  30602. An integer equal to one of the MACFLAG_XXX constants that is
  30603. suitable for use only with accumulator A1.
  30604. 'M1'
  30605. Constant 255.
  30606. 'M2'
  30607. Constant 65535.
  30608. 'J'
  30609. An integer constant with exactly a single bit set.
  30610. 'L'
  30611. An integer constant with all bits set except exactly one.
  30612. 'H'
  30613. 'Q'
  30614. Any SYMBOL_REF.
  30615. _CR16 Architecture--'config/cr16/cr16.h'_
  30616. 'b'
  30617. Registers from r0 to r14 (registers without stack pointer)
  30618. 't'
  30619. Register from r0 to r11 (all 16-bit registers)
  30620. 'p'
  30621. Register from r12 to r15 (all 32-bit registers)
  30622. 'I'
  30623. Signed constant that fits in 4 bits
  30624. 'J'
  30625. Signed constant that fits in 5 bits
  30626. 'K'
  30627. Signed constant that fits in 6 bits
  30628. 'L'
  30629. Unsigned constant that fits in 4 bits
  30630. 'M'
  30631. Signed constant that fits in 32 bits
  30632. 'N'
  30633. Check for 64 bits wide constants for add/sub instructions
  30634. 'G'
  30635. Floating point constant that is legal for store immediate
  30636. _C-SKY--'config/csky/constraints.md'_
  30637. 'a'
  30638. The mini registers r0 - r7.
  30639. 'b'
  30640. The low registers r0 - r15.
  30641. 'c'
  30642. C register.
  30643. 'y'
  30644. HI and LO registers.
  30645. 'l'
  30646. LO register.
  30647. 'h'
  30648. HI register.
  30649. 'v'
  30650. Vector registers.
  30651. 'z'
  30652. Stack pointer register (SP).
  30653. _Epiphany--'config/epiphany/constraints.md'_
  30654. 'U16'
  30655. An unsigned 16-bit constant.
  30656. 'K'
  30657. An unsigned 5-bit constant.
  30658. 'L'
  30659. A signed 11-bit constant.
  30660. 'Cm1'
  30661. A signed 11-bit constant added to -1. Can only match when the
  30662. '-m1reg-REG' option is active.
  30663. 'Cl1'
  30664. Left-shift of -1, i.e., a bit mask with a block of leading
  30665. ones, the rest being a block of trailing zeroes. Can only
  30666. match when the '-m1reg-REG' option is active.
  30667. 'Cr1'
  30668. Right-shift of -1, i.e., a bit mask with a trailing block of
  30669. ones, the rest being zeroes. Or to put it another way, one
  30670. less than a power of two. Can only match when the
  30671. '-m1reg-REG' option is active.
  30672. 'Cal'
  30673. Constant for arithmetic/logical operations. This is like 'i',
  30674. except that for position independent code, no symbols /
  30675. expressions needing relocations are allowed.
  30676. 'Csy'
  30677. Symbolic constant for call/jump instruction.
  30678. 'Rcs'
  30679. The register class usable in short insns. This is a register
  30680. class constraint, and can thus drive register allocation.
  30681. This constraint won't match unless '-mprefer-short-insn-regs'
  30682. is in effect.
  30683. 'Rsc'
  30684. The the register class of registers that can be used to hold a
  30685. sibcall call address. I.e., a caller-saved register.
  30686. 'Rct'
  30687. Core control register class.
  30688. 'Rgs'
  30689. The register group usable in short insns. This constraint
  30690. does not use a register class, so that it only passively
  30691. matches suitable registers, and doesn't drive register
  30692. allocation.
  30693. 'Rra'
  30694. Matches the return address if it can be replaced with the link
  30695. register.
  30696. 'Rcc'
  30697. Matches the integer condition code register.
  30698. 'Sra'
  30699. Matches the return address if it is in a stack slot.
  30700. 'Cfm'
  30701. Matches control register values to switch fp mode, which are
  30702. encapsulated in 'UNSPEC_FP_MODE'.
  30703. _FRV--'config/frv/frv.h'_
  30704. 'a'
  30705. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  30706. 'b'
  30707. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  30708. 'c'
  30709. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  30710. to 'icc3').
  30711. 'd'
  30712. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  30713. 'e'
  30714. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  30715. registers are excluded not in the class but through the use of
  30716. a machine mode larger than 4 bytes.
  30717. 'f'
  30718. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  30719. 'h'
  30720. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  30721. registers are excluded not in the class but through the use of
  30722. a machine mode larger than 4 bytes.
  30723. 'l'
  30724. Register in the class 'LR_REG' (the 'lr' register).
  30725. 'q'
  30726. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  30727. numbers not divisible by 4 are excluded not in the class but
  30728. through the use of a machine mode larger than 8 bytes.
  30729. 't'
  30730. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  30731. 'u'
  30732. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  30733. 'v'
  30734. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  30735. 'w'
  30736. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  30737. 'x'
  30738. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  30739. Register numbers not divisible by 4 are excluded not in the
  30740. class but through the use of a machine mode larger than 8
  30741. bytes.
  30742. 'z'
  30743. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  30744. 'A'
  30745. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  30746. 'B'
  30747. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  30748. 'C'
  30749. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  30750. 'G'
  30751. Floating point constant zero
  30752. 'I'
  30753. 6-bit signed integer constant
  30754. 'J'
  30755. 10-bit signed integer constant
  30756. 'L'
  30757. 16-bit signed integer constant
  30758. 'M'
  30759. 16-bit unsigned integer constant
  30760. 'N'
  30761. 12-bit signed integer constant that is negative--i.e. in the
  30762. range of -2048 to -1
  30763. 'O'
  30764. Constant zero
  30765. 'P'
  30766. 12-bit signed integer constant that is greater than zero--i.e.
  30767. in the range of 1 to 2047.
  30768. _FT32--'config/ft32/constraints.md'_
  30769. 'A'
  30770. An absolute address
  30771. 'B'
  30772. An offset address
  30773. 'W'
  30774. A register indirect memory operand
  30775. 'e'
  30776. An offset address.
  30777. 'f'
  30778. An offset address.
  30779. 'O'
  30780. The constant zero or one
  30781. 'I'
  30782. A 16-bit signed constant (-32768 ... 32767)
  30783. 'w'
  30784. A bitfield mask suitable for bext or bins
  30785. 'x'
  30786. An inverted bitfield mask suitable for bext or bins
  30787. 'L'
  30788. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  30789. 'S'
  30790. A 20-bit signed constant (-524288 ... 524287)
  30791. 'b'
  30792. A constant for a bitfield width (1 ... 16)
  30793. 'KA'
  30794. A 10-bit signed constant (-512 ... 511)
  30795. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  30796. 'a'
  30797. General register 1
  30798. 'f'
  30799. Floating point register
  30800. 'q'
  30801. Shift amount register
  30802. 'x'
  30803. Floating point register (deprecated)
  30804. 'y'
  30805. Upper floating point register (32-bit), floating point
  30806. register (64-bit)
  30807. 'Z'
  30808. Any register
  30809. 'I'
  30810. Signed 11-bit integer constant
  30811. 'J'
  30812. Signed 14-bit integer constant
  30813. 'K'
  30814. Integer constant that can be deposited with a 'zdepi'
  30815. instruction
  30816. 'L'
  30817. Signed 5-bit integer constant
  30818. 'M'
  30819. Integer constant 0
  30820. 'N'
  30821. Integer constant that can be loaded with a 'ldil' instruction
  30822. 'O'
  30823. Integer constant whose value plus one is a power of 2
  30824. 'P'
  30825. Integer constant that can be used for 'and' operations in
  30826. 'depi' and 'extru' instructions
  30827. 'S'
  30828. Integer constant 31
  30829. 'U'
  30830. Integer constant 63
  30831. 'G'
  30832. Floating-point constant 0.0
  30833. 'A'
  30834. A 'lo_sum' data-linkage-table memory operand
  30835. 'Q'
  30836. A memory operand that can be used as the destination operand
  30837. of an integer store instruction
  30838. 'R'
  30839. A scaled or unscaled indexed memory operand
  30840. 'T'
  30841. A memory operand for floating-point loads and stores
  30842. 'W'
  30843. A register indirect memory operand
  30844. _Intel IA-64--'config/ia64/ia64.h'_
  30845. 'a'
  30846. General register 'r0' to 'r3' for 'addl' instruction
  30847. 'b'
  30848. Branch register
  30849. 'c'
  30850. Predicate register ('c' as in "conditional")
  30851. 'd'
  30852. Application register residing in M-unit
  30853. 'e'
  30854. Application register residing in I-unit
  30855. 'f'
  30856. Floating-point register
  30857. 'm'
  30858. Memory operand. If used together with '<' or '>', the operand
  30859. can have postincrement and postdecrement which require
  30860. printing with '%Pn' on IA-64.
  30861. 'G'
  30862. Floating-point constant 0.0 or 1.0
  30863. 'I'
  30864. 14-bit signed integer constant
  30865. 'J'
  30866. 22-bit signed integer constant
  30867. 'K'
  30868. 8-bit signed integer constant for logical instructions
  30869. 'L'
  30870. 8-bit adjusted signed integer constant for compare pseudo-ops
  30871. 'M'
  30872. 6-bit unsigned integer constant for shift counts
  30873. 'N'
  30874. 9-bit signed integer constant for load and store
  30875. postincrements
  30876. 'O'
  30877. The constant zero
  30878. 'P'
  30879. 0 or -1 for 'dep' instruction
  30880. 'Q'
  30881. Non-volatile memory for floating-point loads and stores
  30882. 'R'
  30883. Integer constant in the range 1 to 4 for 'shladd' instruction
  30884. 'S'
  30885. Memory operand except postincrement and postdecrement. This
  30886. is now roughly the same as 'm' when not used together with '<'
  30887. or '>'.
  30888. _M32C--'config/m32c/m32c.c'_
  30889. 'Rsp'
  30890. 'Rfb'
  30891. 'Rsb'
  30892. '$sp', '$fb', '$sb'.
  30893. 'Rcr'
  30894. Any control register, when they're 16 bits wide (nothing if
  30895. control registers are 24 bits wide)
  30896. 'Rcl'
  30897. Any control register, when they're 24 bits wide.
  30898. 'R0w'
  30899. 'R1w'
  30900. 'R2w'
  30901. 'R3w'
  30902. $r0, $r1, $r2, $r3.
  30903. 'R02'
  30904. $r0 or $r2, or $r2r0 for 32 bit values.
  30905. 'R13'
  30906. $r1 or $r3, or $r3r1 for 32 bit values.
  30907. 'Rdi'
  30908. A register that can hold a 64 bit value.
  30909. 'Rhl'
  30910. $r0 or $r1 (registers with addressable high/low bytes)
  30911. 'R23'
  30912. $r2 or $r3
  30913. 'Raa'
  30914. Address registers
  30915. 'Raw'
  30916. Address registers when they're 16 bits wide.
  30917. 'Ral'
  30918. Address registers when they're 24 bits wide.
  30919. 'Rqi'
  30920. Registers that can hold QI values.
  30921. 'Rad'
  30922. Registers that can be used with displacements ($a0, $a1, $sb).
  30923. 'Rsi'
  30924. Registers that can hold 32 bit values.
  30925. 'Rhi'
  30926. Registers that can hold 16 bit values.
  30927. 'Rhc'
  30928. Registers chat can hold 16 bit values, including all control
  30929. registers.
  30930. 'Rra'
  30931. $r0 through R1, plus $a0 and $a1.
  30932. 'Rfl'
  30933. The flags register.
  30934. 'Rmm'
  30935. The memory-based pseudo-registers $mem0 through $mem15.
  30936. 'Rpi'
  30937. Registers that can hold pointers (16 bit registers for r8c,
  30938. m16c; 24 bit registers for m32cm, m32c).
  30939. 'Rpa'
  30940. Matches multiple registers in a PARALLEL to form a larger
  30941. register. Used to match function return values.
  30942. 'Is3'
  30943. -8 ... 7
  30944. 'IS1'
  30945. -128 ... 127
  30946. 'IS2'
  30947. -32768 ... 32767
  30948. 'IU2'
  30949. 0 ... 65535
  30950. 'In4'
  30951. -8 ... -1 or 1 ... 8
  30952. 'In5'
  30953. -16 ... -1 or 1 ... 16
  30954. 'In6'
  30955. -32 ... -1 or 1 ... 32
  30956. 'IM2'
  30957. -65536 ... -1
  30958. 'Ilb'
  30959. An 8 bit value with exactly one bit set.
  30960. 'Ilw'
  30961. A 16 bit value with exactly one bit set.
  30962. 'Sd'
  30963. The common src/dest memory addressing modes.
  30964. 'Sa'
  30965. Memory addressed using $a0 or $a1.
  30966. 'Si'
  30967. Memory addressed with immediate addresses.
  30968. 'Ss'
  30969. Memory addressed using the stack pointer ($sp).
  30970. 'Sf'
  30971. Memory addressed using the frame base register ($fb).
  30972. 'Ss'
  30973. Memory addressed using the small base register ($sb).
  30974. 'S1'
  30975. $r1h
  30976. _MicroBlaze--'config/microblaze/constraints.md'_
  30977. 'd'
  30978. A general register ('r0' to 'r31').
  30979. 'z'
  30980. A status register ('rmsr', '$fcc1' to '$fcc7').
  30981. _MIPS--'config/mips/constraints.md'_
  30982. 'd'
  30983. A general-purpose register. This is equivalent to 'r' unless
  30984. generating MIPS16 code, in which case the MIPS16 register set
  30985. is used.
  30986. 'f'
  30987. A floating-point register (if available).
  30988. 'h'
  30989. Formerly the 'hi' register. This constraint is no longer
  30990. supported.
  30991. 'l'
  30992. The 'lo' register. Use this register to store values that are
  30993. no bigger than a word.
  30994. 'x'
  30995. The concatenated 'hi' and 'lo' registers. Use this register
  30996. to store doubleword values.
  30997. 'c'
  30998. A register suitable for use in an indirect jump. This will
  30999. always be '$25' for '-mabicalls'.
  31000. 'v'
  31001. Register '$3'. Do not use this constraint in new code; it is
  31002. retained only for compatibility with glibc.
  31003. 'y'
  31004. Equivalent to 'r'; retained for backwards compatibility.
  31005. 'z'
  31006. A floating-point condition code register.
  31007. 'I'
  31008. A signed 16-bit constant (for arithmetic instructions).
  31009. 'J'
  31010. Integer zero.
  31011. 'K'
  31012. An unsigned 16-bit constant (for logic instructions).
  31013. 'L'
  31014. A signed 32-bit constant in which the lower 16 bits are zero.
  31015. Such constants can be loaded using 'lui'.
  31016. 'M'
  31017. A constant that cannot be loaded using 'lui', 'addiu' or
  31018. 'ori'.
  31019. 'N'
  31020. A constant in the range -65535 to -1 (inclusive).
  31021. 'O'
  31022. A signed 15-bit constant.
  31023. 'P'
  31024. A constant in the range 1 to 65535 (inclusive).
  31025. 'G'
  31026. Floating-point zero.
  31027. 'R'
  31028. An address that can be used in a non-macro load or store.
  31029. 'ZC'
  31030. A memory operand whose address is formed by a base register
  31031. and offset that is suitable for use in instructions with the
  31032. same addressing mode as 'll' and 'sc'.
  31033. 'ZD'
  31034. An address suitable for a 'prefetch' instruction, or for any
  31035. other instruction with the same addressing mode as 'prefetch'.
  31036. _Motorola 680x0--'config/m68k/constraints.md'_
  31037. 'a'
  31038. Address register
  31039. 'd'
  31040. Data register
  31041. 'f'
  31042. 68881 floating-point register, if available
  31043. 'I'
  31044. Integer in the range 1 to 8
  31045. 'J'
  31046. 16-bit signed number
  31047. 'K'
  31048. Signed number whose magnitude is greater than 0x80
  31049. 'L'
  31050. Integer in the range -8 to -1
  31051. 'M'
  31052. Signed number whose magnitude is greater than 0x100
  31053. 'N'
  31054. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  31055. 'O'
  31056. 16 (for rotate using swap)
  31057. 'P'
  31058. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  31059. 'R'
  31060. Numbers that mov3q can handle
  31061. 'G'
  31062. Floating point constant that is not a 68881 constant
  31063. 'S'
  31064. Operands that satisfy 'm' when -mpcrel is in effect
  31065. 'T'
  31066. Operands that satisfy 's' when -mpcrel is not in effect
  31067. 'Q'
  31068. Address register indirect addressing mode
  31069. 'U'
  31070. Register offset addressing
  31071. 'W'
  31072. const_call_operand
  31073. 'Cs'
  31074. symbol_ref or const
  31075. 'Ci'
  31076. const_int
  31077. 'C0'
  31078. const_int 0
  31079. 'Cj'
  31080. Range of signed numbers that don't fit in 16 bits
  31081. 'Cmvq'
  31082. Integers valid for mvq
  31083. 'Capsw'
  31084. Integers valid for a moveq followed by a swap
  31085. 'Cmvz'
  31086. Integers valid for mvz
  31087. 'Cmvs'
  31088. Integers valid for mvs
  31089. 'Ap'
  31090. push_operand
  31091. 'Ac'
  31092. Non-register operands allowed in clr
  31093. _Moxie--'config/moxie/constraints.md'_
  31094. 'A'
  31095. An absolute address
  31096. 'B'
  31097. An offset address
  31098. 'W'
  31099. A register indirect memory operand
  31100. 'I'
  31101. A constant in the range of 0 to 255.
  31102. 'N'
  31103. A constant in the range of 0 to -255.
  31104. _MSP430-'config/msp430/constraints.md'_
  31105. 'R12'
  31106. Register R12.
  31107. 'R13'
  31108. Register R13.
  31109. 'K'
  31110. Integer constant 1.
  31111. 'L'
  31112. Integer constant -1^20..1^19.
  31113. 'M'
  31114. Integer constant 1-4.
  31115. 'Ya'
  31116. Memory references which do not require an extended MOVX
  31117. instruction.
  31118. 'Yl'
  31119. Memory reference, labels only.
  31120. 'Ys'
  31121. Memory reference, stack only.
  31122. _NDS32--'config/nds32/constraints.md'_
  31123. 'w'
  31124. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  31125. 'l'
  31126. LOW register class $r0 to $r7.
  31127. 'd'
  31128. MIDDLE register class $r0 to $r11, $r16 to $r19.
  31129. 'h'
  31130. HIGH register class $r12 to $r14, $r20 to $r31.
  31131. 't'
  31132. Temporary assist register $ta (i.e. $r15).
  31133. 'k'
  31134. Stack register $sp.
  31135. 'Iu03'
  31136. Unsigned immediate 3-bit value.
  31137. 'In03'
  31138. Negative immediate 3-bit value in the range of -7-0.
  31139. 'Iu04'
  31140. Unsigned immediate 4-bit value.
  31141. 'Is05'
  31142. Signed immediate 5-bit value.
  31143. 'Iu05'
  31144. Unsigned immediate 5-bit value.
  31145. 'In05'
  31146. Negative immediate 5-bit value in the range of -31-0.
  31147. 'Ip05'
  31148. Unsigned immediate 5-bit value for movpi45 instruction with
  31149. range 16-47.
  31150. 'Iu06'
  31151. Unsigned immediate 6-bit value constraint for addri36.sp
  31152. instruction.
  31153. 'Iu08'
  31154. Unsigned immediate 8-bit value.
  31155. 'Iu09'
  31156. Unsigned immediate 9-bit value.
  31157. 'Is10'
  31158. Signed immediate 10-bit value.
  31159. 'Is11'
  31160. Signed immediate 11-bit value.
  31161. 'Is15'
  31162. Signed immediate 15-bit value.
  31163. 'Iu15'
  31164. Unsigned immediate 15-bit value.
  31165. 'Ic15'
  31166. A constant which is not in the range of imm15u but ok for bclr
  31167. instruction.
  31168. 'Ie15'
  31169. A constant which is not in the range of imm15u but ok for bset
  31170. instruction.
  31171. 'It15'
  31172. A constant which is not in the range of imm15u but ok for btgl
  31173. instruction.
  31174. 'Ii15'
  31175. A constant whose compliment value is in the range of imm15u
  31176. and ok for bitci instruction.
  31177. 'Is16'
  31178. Signed immediate 16-bit value.
  31179. 'Is17'
  31180. Signed immediate 17-bit value.
  31181. 'Is19'
  31182. Signed immediate 19-bit value.
  31183. 'Is20'
  31184. Signed immediate 20-bit value.
  31185. 'Ihig'
  31186. The immediate value that can be simply set high 20-bit.
  31187. 'Izeb'
  31188. The immediate value 0xff.
  31189. 'Izeh'
  31190. The immediate value 0xffff.
  31191. 'Ixls'
  31192. The immediate value 0x01.
  31193. 'Ix11'
  31194. The immediate value 0x7ff.
  31195. 'Ibms'
  31196. The immediate value with power of 2.
  31197. 'Ifex'
  31198. The immediate value with power of 2 minus 1.
  31199. 'U33'
  31200. Memory constraint for 333 format.
  31201. 'U45'
  31202. Memory constraint for 45 format.
  31203. 'U37'
  31204. Memory constraint for 37 format.
  31205. _Nios II family--'config/nios2/constraints.md'_
  31206. 'I'
  31207. Integer that is valid as an immediate operand in an
  31208. instruction taking a signed 16-bit number. Range -32768 to
  31209. 32767.
  31210. 'J'
  31211. Integer that is valid as an immediate operand in an
  31212. instruction taking an unsigned 16-bit number. Range 0 to
  31213. 65535.
  31214. 'K'
  31215. Integer that is valid as an immediate operand in an
  31216. instruction taking only the upper 16-bits of a 32-bit number.
  31217. Range 32-bit numbers with the lower 16-bits being 0.
  31218. 'L'
  31219. Integer that is valid as an immediate operand for a shift
  31220. instruction. Range 0 to 31.
  31221. 'M'
  31222. Integer that is valid as an immediate operand for only the
  31223. value 0. Can be used in conjunction with the format modifier
  31224. 'z' to use 'r0' instead of '0' in the assembly output.
  31225. 'N'
  31226. Integer that is valid as an immediate operand for a custom
  31227. instruction opcode. Range 0 to 255.
  31228. 'P'
  31229. An immediate operand for R2 andchi/andci instructions.
  31230. 'S'
  31231. Matches immediates which are addresses in the small data
  31232. section and therefore can be added to 'gp' as a 16-bit
  31233. immediate to re-create their 32-bit value.
  31234. 'U'
  31235. Matches constants suitable as an operand for the rdprs and
  31236. cache instructions.
  31237. 'v'
  31238. A memory operand suitable for Nios II R2 load/store exclusive
  31239. instructions.
  31240. 'w'
  31241. A memory operand suitable for load/store IO and cache
  31242. instructions.
  31243. _OpenRISC--'config/or1k/constraints.md'_
  31244. 'I'
  31245. Integer that is valid as an immediate operand in an
  31246. instruction taking a signed 16-bit number. Range -32768 to
  31247. 32767.
  31248. 'K'
  31249. Integer that is valid as an immediate operand in an
  31250. instruction taking an unsigned 16-bit number. Range 0 to
  31251. 65535.
  31252. 'M'
  31253. Signed 16-bit constant shifted left 16 bits. (Used with
  31254. 'l.movhi')
  31255. 'O'
  31256. Zero
  31257. _PDP-11--'config/pdp11/constraints.md'_
  31258. 'a'
  31259. Floating point registers AC0 through AC3. These can be loaded
  31260. from/to memory with a single instruction.
  31261. 'd'
  31262. Odd numbered general registers (R1, R3, R5). These are used
  31263. for 16-bit multiply operations.
  31264. 'D'
  31265. A memory reference that is encoded within the opcode, but not
  31266. auto-increment or auto-decrement.
  31267. 'f'
  31268. Any of the floating point registers (AC0 through AC5).
  31269. 'G'
  31270. Floating point constant 0.
  31271. 'h'
  31272. Floating point registers AC4 and AC5. These cannot be loaded
  31273. from/to memory with a single instruction.
  31274. 'I'
  31275. An integer constant that fits in 16 bits.
  31276. 'J'
  31277. An integer constant whose low order 16 bits are zero.
  31278. 'K'
  31279. An integer constant that does not meet the constraints for
  31280. codes 'I' or 'J'.
  31281. 'L'
  31282. The integer constant 1.
  31283. 'M'
  31284. The integer constant -1.
  31285. 'N'
  31286. The integer constant 0.
  31287. 'O'
  31288. Integer constants 0 through 3; shifts by these amounts are
  31289. handled as multiple single-bit shifts rather than a single
  31290. variable-length shift.
  31291. 'Q'
  31292. A memory reference which requires an additional word (address
  31293. or offset) after the opcode.
  31294. 'R'
  31295. A memory reference that is encoded within the opcode.
  31296. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  31297. 'b'
  31298. Address base register
  31299. 'd'
  31300. Floating point register (containing 64-bit value)
  31301. 'f'
  31302. Floating point register (containing 32-bit value)
  31303. 'v'
  31304. Altivec vector register
  31305. 'wa'
  31306. Any VSX register if the '-mvsx' option was used or NO_REGS.
  31307. When using any of the register constraints ('wa', 'wd', 'wf',
  31308. 'wg', 'wh', 'wi', 'wj', 'wk', 'wl', 'wm', 'wo', 'wp', 'wq',
  31309. 'ws', 'wt', 'wu', 'wv', 'ww', or 'wy') that take VSX
  31310. registers, you must use '%x<n>' in the template so that the
  31311. correct register is used. Otherwise the register number
  31312. output in the assembly file will be incorrect if an Altivec
  31313. register is an operand of a VSX instruction that expects VSX
  31314. register numbering.
  31315. asm ("xvadddp %x0,%x1,%x2"
  31316. : "=wa" (v1)
  31317. : "wa" (v2), "wa" (v3));
  31318. is correct, but:
  31319. asm ("xvadddp %0,%1,%2"
  31320. : "=wa" (v1)
  31321. : "wa" (v2), "wa" (v3));
  31322. is not correct.
  31323. If an instruction only takes Altivec registers, you do not
  31324. want to use '%x<n>'.
  31325. asm ("xsaddqp %0,%1,%2"
  31326. : "=v" (v1)
  31327. : "v" (v2), "v" (v3));
  31328. is correct because the 'xsaddqp' instruction only takes
  31329. Altivec registers, while:
  31330. asm ("xsaddqp %x0,%x1,%x2"
  31331. : "=v" (v1)
  31332. : "v" (v2), "v" (v3));
  31333. is incorrect.
  31334. 'wb'
  31335. Altivec register if '-mcpu=power9' is used or NO_REGS.
  31336. 'wd'
  31337. VSX vector register to hold vector double data or NO_REGS.
  31338. 'we'
  31339. VSX register if the '-mcpu=power9' and '-m64' options were
  31340. used or NO_REGS.
  31341. 'wf'
  31342. VSX vector register to hold vector float data or NO_REGS.
  31343. 'wg'
  31344. If '-mmfpgpr' was used, a floating point register or NO_REGS.
  31345. 'wh'
  31346. Floating point register if direct moves are available, or
  31347. NO_REGS.
  31348. 'wi'
  31349. FP or VSX register to hold 64-bit integers for VSX insns or
  31350. NO_REGS.
  31351. 'wj'
  31352. FP or VSX register to hold 64-bit integers for direct moves or
  31353. NO_REGS.
  31354. 'wk'
  31355. FP or VSX register to hold 64-bit doubles for direct moves or
  31356. NO_REGS.
  31357. 'wl'
  31358. Floating point register if the LFIWAX instruction is enabled
  31359. or NO_REGS.
  31360. 'wm'
  31361. VSX register if direct move instructions are enabled, or
  31362. NO_REGS.
  31363. 'wn'
  31364. No register (NO_REGS).
  31365. 'wo'
  31366. VSX register to use for ISA 3.0 vector instructions, or
  31367. NO_REGS.
  31368. 'wp'
  31369. VSX register to use for IEEE 128-bit floating point TFmode, or
  31370. NO_REGS.
  31371. 'wq'
  31372. VSX register to use for IEEE 128-bit floating point, or
  31373. NO_REGS.
  31374. 'wr'
  31375. General purpose register if 64-bit instructions are enabled or
  31376. NO_REGS.
  31377. 'ws'
  31378. VSX vector register to hold scalar double values or NO_REGS.
  31379. 'wt'
  31380. VSX vector register to hold 128 bit integer or NO_REGS.
  31381. 'wu'
  31382. Altivec register to use for float/32-bit int loads/stores or
  31383. NO_REGS.
  31384. 'wv'
  31385. Altivec register to use for double loads/stores or NO_REGS.
  31386. 'ww'
  31387. FP or VSX register to perform float operations under '-mvsx'
  31388. or NO_REGS.
  31389. 'wx'
  31390. Floating point register if the STFIWX instruction is enabled
  31391. or NO_REGS.
  31392. 'wy'
  31393. FP or VSX register to perform ISA 2.07 float ops or NO_REGS.
  31394. 'wz'
  31395. Floating point register if the LFIWZX instruction is enabled
  31396. or NO_REGS.
  31397. 'wA'
  31398. Address base register if 64-bit instructions are enabled or
  31399. NO_REGS.
  31400. 'wB'
  31401. Signed 5-bit constant integer that can be loaded into an
  31402. altivec register.
  31403. 'wD'
  31404. Int constant that is the element number of the 64-bit scalar
  31405. in a vector.
  31406. 'wE'
  31407. Vector constant that can be loaded with the XXSPLTIB
  31408. instruction.
  31409. 'wF'
  31410. Memory operand suitable for power8 GPR load fusion
  31411. 'wG'
  31412. Memory operand suitable for TOC fusion memory references.
  31413. 'wH'
  31414. Altivec register if '-mvsx-small-integer'.
  31415. 'wI'
  31416. Floating point register if '-mvsx-small-integer'.
  31417. 'wJ'
  31418. FP register if '-mvsx-small-integer' and '-mpower9-vector'.
  31419. 'wK'
  31420. Altivec register if '-mvsx-small-integer' and
  31421. '-mpower9-vector'.
  31422. 'wL'
  31423. Int constant that is the element number that the MFVSRLD
  31424. instruction. targets.
  31425. 'wM'
  31426. Match vector constant with all 1's if the XXLORC instruction
  31427. is available.
  31428. 'wO'
  31429. A memory operand suitable for the ISA 3.0 vector d-form
  31430. instructions.
  31431. 'wQ'
  31432. A memory address that will work with the 'lq' and 'stq'
  31433. instructions.
  31434. 'wS'
  31435. Vector constant that can be loaded with XXSPLTIB & sign
  31436. extension.
  31437. 'h'
  31438. 'VRSAVE', 'CTR', or 'LINK' register
  31439. 'c'
  31440. 'CTR' register
  31441. 'l'
  31442. 'LINK' register
  31443. 'x'
  31444. 'CR' register (condition register) number 0
  31445. 'y'
  31446. 'CR' register (condition register)
  31447. 'z'
  31448. 'XER[CA]' carry bit (part of the XER register)
  31449. 'I'
  31450. Signed 16-bit constant
  31451. 'J'
  31452. Unsigned 16-bit constant shifted left 16 bits (use 'L' instead
  31453. for 'SImode' constants)
  31454. 'K'
  31455. Unsigned 16-bit constant
  31456. 'L'
  31457. Signed 16-bit constant shifted left 16 bits
  31458. 'M'
  31459. Constant larger than 31
  31460. 'N'
  31461. Exact power of 2
  31462. 'O'
  31463. Zero
  31464. 'P'
  31465. Constant whose negation is a signed 16-bit constant
  31466. 'G'
  31467. Floating point constant that can be loaded into a register
  31468. with one instruction per word
  31469. 'H'
  31470. Integer/Floating point constant that can be loaded into a
  31471. register using three instructions
  31472. 'm'
  31473. Memory operand. Normally, 'm' does not allow addresses that
  31474. update the base register. If '<' or '>' constraint is also
  31475. used, they are allowed and therefore on PowerPC targets in
  31476. that case it is only safe to use 'm<>' in an 'asm' statement
  31477. if that 'asm' statement accesses the operand exactly once.
  31478. The 'asm' statement must also use '%U<OPNO>' as a placeholder
  31479. for the "update" flag in the corresponding load or store
  31480. instruction. For example:
  31481. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  31482. is correct but:
  31483. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  31484. is not.
  31485. 'es'
  31486. A "stable" memory operand; that is, one which does not include
  31487. any automodification of the base register. This used to be
  31488. useful when 'm' allowed automodification of the base register,
  31489. but as those are now only allowed when '<' or '>' is used,
  31490. 'es' is basically the same as 'm' without '<' and '>'.
  31491. 'Q'
  31492. Memory operand that is an offset from a register (it is
  31493. usually better to use 'm' or 'es' in 'asm' statements)
  31494. 'Z'
  31495. Memory operand that is an indexed or indirect from a register
  31496. (it is usually better to use 'm' or 'es' in 'asm' statements)
  31497. 'R'
  31498. AIX TOC entry
  31499. 'a'
  31500. Address operand that is an indexed or indirect from a register
  31501. ('p' is preferable for 'asm' statements)
  31502. 'U'
  31503. System V Release 4 small data area reference
  31504. 'W'
  31505. Vector constant that does not require memory
  31506. 'j'
  31507. Vector constant that is all zeros.
  31508. _RL78--'config/rl78/constraints.md'_
  31509. 'Int3'
  31510. An integer constant in the range 1 ... 7.
  31511. 'Int8'
  31512. An integer constant in the range 0 ... 255.
  31513. 'J'
  31514. An integer constant in the range -255 ... 0
  31515. 'K'
  31516. The integer constant 1.
  31517. 'L'
  31518. The integer constant -1.
  31519. 'M'
  31520. The integer constant 0.
  31521. 'N'
  31522. The integer constant 2.
  31523. 'O'
  31524. The integer constant -2.
  31525. 'P'
  31526. An integer constant in the range 1 ... 15.
  31527. 'Qbi'
  31528. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  31529. 'Qsc'
  31530. The synthetic compare types-gt, lt, ge, and le.
  31531. 'Wab'
  31532. A memory reference with an absolute address.
  31533. 'Wbc'
  31534. A memory reference using 'BC' as a base register, with an
  31535. optional offset.
  31536. 'Wca'
  31537. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  31538. address, for calls.
  31539. 'Wcv'
  31540. A memory reference using any 16-bit register pair for the
  31541. address, for calls.
  31542. 'Wd2'
  31543. A memory reference using 'DE' as a base register, with an
  31544. optional offset.
  31545. 'Wde'
  31546. A memory reference using 'DE' as a base register, without any
  31547. offset.
  31548. 'Wfr'
  31549. Any memory reference to an address in the far address space.
  31550. 'Wh1'
  31551. A memory reference using 'HL' as a base register, with an
  31552. optional one-byte offset.
  31553. 'Whb'
  31554. A memory reference using 'HL' as a base register, with 'B' or
  31555. 'C' as the index register.
  31556. 'Whl'
  31557. A memory reference using 'HL' as a base register, without any
  31558. offset.
  31559. 'Ws1'
  31560. A memory reference using 'SP' as a base register, with an
  31561. optional one-byte offset.
  31562. 'Y'
  31563. Any memory reference to an address in the near address space.
  31564. 'A'
  31565. The 'AX' register.
  31566. 'B'
  31567. The 'BC' register.
  31568. 'D'
  31569. The 'DE' register.
  31570. 'R'
  31571. 'A' through 'L' registers.
  31572. 'S'
  31573. The 'SP' register.
  31574. 'T'
  31575. The 'HL' register.
  31576. 'Z08W'
  31577. The 16-bit 'R8' register.
  31578. 'Z10W'
  31579. The 16-bit 'R10' register.
  31580. 'Zint'
  31581. The registers reserved for interrupts ('R24' to 'R31').
  31582. 'a'
  31583. The 'A' register.
  31584. 'b'
  31585. The 'B' register.
  31586. 'c'
  31587. The 'C' register.
  31588. 'd'
  31589. The 'D' register.
  31590. 'e'
  31591. The 'E' register.
  31592. 'h'
  31593. The 'H' register.
  31594. 'l'
  31595. The 'L' register.
  31596. 'v'
  31597. The virtual registers.
  31598. 'w'
  31599. The 'PSW' register.
  31600. 'x'
  31601. The 'X' register.
  31602. _RISC-V--'config/riscv/constraints.md'_
  31603. 'f'
  31604. A floating-point register (if availiable).
  31605. 'I'
  31606. An I-type 12-bit signed immediate.
  31607. 'J'
  31608. Integer zero.
  31609. 'K'
  31610. A 5-bit unsigned immediate for CSR access instructions.
  31611. 'A'
  31612. An address that is held in a general-purpose register.
  31613. _RX--'config/rx/constraints.md'_
  31614. 'Q'
  31615. An address which does not involve register indirect addressing
  31616. or pre/post increment/decrement addressing.
  31617. 'Symbol'
  31618. A symbol reference.
  31619. 'Int08'
  31620. A constant in the range -256 to 255, inclusive.
  31621. 'Sint08'
  31622. A constant in the range -128 to 127, inclusive.
  31623. 'Sint16'
  31624. A constant in the range -32768 to 32767, inclusive.
  31625. 'Sint24'
  31626. A constant in the range -8388608 to 8388607, inclusive.
  31627. 'Uint04'
  31628. A constant in the range 0 to 15, inclusive.
  31629. _S/390 and zSeries--'config/s390/s390.h'_
  31630. 'a'
  31631. Address register (general purpose register except r0)
  31632. 'c'
  31633. Condition code register
  31634. 'd'
  31635. Data register (arbitrary general purpose register)
  31636. 'f'
  31637. Floating-point register
  31638. 'I'
  31639. Unsigned 8-bit constant (0-255)
  31640. 'J'
  31641. Unsigned 12-bit constant (0-4095)
  31642. 'K'
  31643. Signed 16-bit constant (-32768-32767)
  31644. 'L'
  31645. Value appropriate as displacement.
  31646. '(0..4095)'
  31647. for short displacement
  31648. '(-524288..524287)'
  31649. for long displacement
  31650. 'M'
  31651. Constant integer with a value of 0x7fffffff.
  31652. 'N'
  31653. Multiple letter constraint followed by 4 parameter letters.
  31654. '0..9:'
  31655. number of the part counting from most to least
  31656. significant
  31657. 'H,Q:'
  31658. mode of the part
  31659. 'D,S,H:'
  31660. mode of the containing operand
  31661. '0,F:'
  31662. value of the other parts (F--all bits set)
  31663. The constraint matches if the specified part of a constant has
  31664. a value different from its other parts.
  31665. 'Q'
  31666. Memory reference without index register and with short
  31667. displacement.
  31668. 'R'
  31669. Memory reference with index register and short displacement.
  31670. 'S'
  31671. Memory reference without index register but with long
  31672. displacement.
  31673. 'T'
  31674. Memory reference with index register and long displacement.
  31675. 'U'
  31676. Pointer with short displacement.
  31677. 'W'
  31678. Pointer with long displacement.
  31679. 'Y'
  31680. Shift count operand.
  31681. _SPARC--'config/sparc/sparc.h'_
  31682. 'f'
  31683. Floating-point register on the SPARC-V8 architecture and lower
  31684. floating-point register on the SPARC-V9 architecture.
  31685. 'e'
  31686. Floating-point register. It is equivalent to 'f' on the
  31687. SPARC-V8 architecture and contains both lower and upper
  31688. floating-point registers on the SPARC-V9 architecture.
  31689. 'c'
  31690. Floating-point condition code register.
  31691. 'd'
  31692. Lower floating-point register. It is only valid on the
  31693. SPARC-V9 architecture when the Visual Instruction Set is
  31694. available.
  31695. 'b'
  31696. Floating-point register. It is only valid on the SPARC-V9
  31697. architecture when the Visual Instruction Set is available.
  31698. 'h'
  31699. 64-bit global or out register for the SPARC-V8+ architecture.
  31700. 'C'
  31701. The constant all-ones, for floating-point.
  31702. 'A'
  31703. Signed 5-bit constant
  31704. 'D'
  31705. A vector constant
  31706. 'I'
  31707. Signed 13-bit constant
  31708. 'J'
  31709. Zero
  31710. 'K'
  31711. 32-bit constant with the low 12 bits clear (a constant that
  31712. can be loaded with the 'sethi' instruction)
  31713. 'L'
  31714. A constant in the range supported by 'movcc' instructions
  31715. (11-bit signed immediate)
  31716. 'M'
  31717. A constant in the range supported by 'movrcc' instructions
  31718. (10-bit signed immediate)
  31719. 'N'
  31720. Same as 'K', except that it verifies that bits that are not in
  31721. the lower 32-bit range are all zero. Must be used instead of
  31722. 'K' for modes wider than 'SImode'
  31723. 'O'
  31724. The constant 4096
  31725. 'G'
  31726. Floating-point zero
  31727. 'H'
  31728. Signed 13-bit constant, sign-extended to 32 or 64 bits
  31729. 'P'
  31730. The constant -1
  31731. 'Q'
  31732. Floating-point constant whose integral representation can be
  31733. moved into an integer register using a single sethi
  31734. instruction
  31735. 'R'
  31736. Floating-point constant whose integral representation can be
  31737. moved into an integer register using a single mov instruction
  31738. 'S'
  31739. Floating-point constant whose integral representation can be
  31740. moved into an integer register using a high/lo_sum instruction
  31741. sequence
  31742. 'T'
  31743. Memory address aligned to an 8-byte boundary
  31744. 'U'
  31745. Even register
  31746. 'W'
  31747. Memory address for 'e' constraint registers
  31748. 'w'
  31749. Memory address with only a base register
  31750. 'Y'
  31751. Vector zero
  31752. _SPU--'config/spu/spu.h'_
  31753. 'a'
  31754. An immediate which can be loaded with the il/ila/ilh/ilhu
  31755. instructions. const_int is treated as a 64 bit value.
  31756. 'c'
  31757. An immediate for and/xor/or instructions. const_int is
  31758. treated as a 64 bit value.
  31759. 'd'
  31760. An immediate for the 'iohl' instruction. const_int is treated
  31761. as a 64 bit value.
  31762. 'f'
  31763. An immediate which can be loaded with 'fsmbi'.
  31764. 'A'
  31765. An immediate which can be loaded with the il/ila/ilh/ilhu
  31766. instructions. const_int is treated as a 32 bit value.
  31767. 'B'
  31768. An immediate for most arithmetic instructions. const_int is
  31769. treated as a 32 bit value.
  31770. 'C'
  31771. An immediate for and/xor/or instructions. const_int is
  31772. treated as a 32 bit value.
  31773. 'D'
  31774. An immediate for the 'iohl' instruction. const_int is treated
  31775. as a 32 bit value.
  31776. 'I'
  31777. A constant in the range [-64, 63] for shift/rotate
  31778. instructions.
  31779. 'J'
  31780. An unsigned 7-bit constant for conversion/nop/channel
  31781. instructions.
  31782. 'K'
  31783. A signed 10-bit constant for most arithmetic instructions.
  31784. 'M'
  31785. A signed 16 bit immediate for 'stop'.
  31786. 'N'
  31787. An unsigned 16-bit constant for 'iohl' and 'fsmbi'.
  31788. 'O'
  31789. An unsigned 7-bit constant whose 3 least significant bits are
  31790. 0.
  31791. 'P'
  31792. An unsigned 3-bit constant for 16-byte rotates and shifts
  31793. 'R'
  31794. Call operand, reg, for indirect calls
  31795. 'S'
  31796. Call operand, symbol, for relative calls.
  31797. 'T'
  31798. Call operand, const_int, for absolute calls.
  31799. 'U'
  31800. An immediate which can be loaded with the il/ila/ilh/ilhu
  31801. instructions. const_int is sign extended to 128 bit.
  31802. 'W'
  31803. An immediate for shift and rotate instructions. const_int is
  31804. treated as a 32 bit value.
  31805. 'Y'
  31806. An immediate for and/xor/or instructions. const_int is sign
  31807. extended as a 128 bit.
  31808. 'Z'
  31809. An immediate for the 'iohl' instruction. const_int is sign
  31810. extended to 128 bit.
  31811. _TI C6X family--'config/c6x/constraints.md'_
  31812. 'a'
  31813. Register file A (A0-A31).
  31814. 'b'
  31815. Register file B (B0-B31).
  31816. 'A'
  31817. Predicate registers in register file A (A0-A2 on C64X and
  31818. higher, A1 and A2 otherwise).
  31819. 'B'
  31820. Predicate registers in register file B (B0-B2).
  31821. 'C'
  31822. A call-used register in register file B (B0-B9, B16-B31).
  31823. 'Da'
  31824. Register file A, excluding predicate registers (A3-A31, plus
  31825. A0 if not C64X or higher).
  31826. 'Db'
  31827. Register file B, excluding predicate registers (B3-B31).
  31828. 'Iu4'
  31829. Integer constant in the range 0 ... 15.
  31830. 'Iu5'
  31831. Integer constant in the range 0 ... 31.
  31832. 'In5'
  31833. Integer constant in the range -31 ... 0.
  31834. 'Is5'
  31835. Integer constant in the range -16 ... 15.
  31836. 'I5x'
  31837. Integer constant that can be the operand of an ADDA or a SUBA
  31838. insn.
  31839. 'IuB'
  31840. Integer constant in the range 0 ... 65535.
  31841. 'IsB'
  31842. Integer constant in the range -32768 ... 32767.
  31843. 'IsC'
  31844. Integer constant in the range -2^{20} ... 2^{20} - 1.
  31845. 'Jc'
  31846. Integer constant that is a valid mask for the clr instruction.
  31847. 'Js'
  31848. Integer constant that is a valid mask for the set instruction.
  31849. 'Q'
  31850. Memory location with A base register.
  31851. 'R'
  31852. Memory location with B base register.
  31853. 'Z'
  31854. Register B14 (aka DP).
  31855. _TILE-Gx--'config/tilegx/constraints.md'_
  31856. 'R00'
  31857. 'R01'
  31858. 'R02'
  31859. 'R03'
  31860. 'R04'
  31861. 'R05'
  31862. 'R06'
  31863. 'R07'
  31864. 'R08'
  31865. 'R09'
  31866. 'R10'
  31867. Each of these represents a register constraint for an
  31868. individual register, from r0 to r10.
  31869. 'I'
  31870. Signed 8-bit integer constant.
  31871. 'J'
  31872. Signed 16-bit integer constant.
  31873. 'K'
  31874. Unsigned 16-bit integer constant.
  31875. 'L'
  31876. Integer constant that fits in one signed byte when incremented
  31877. by one (-129 ... 126).
  31878. 'm'
  31879. Memory operand. If used together with '<' or '>', the operand
  31880. can have postincrement which requires printing with '%In' and
  31881. '%in' on TILE-Gx. For example:
  31882. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  31883. 'M'
  31884. A bit mask suitable for the BFINS instruction.
  31885. 'N'
  31886. Integer constant that is a byte tiled out eight times.
  31887. 'O'
  31888. The integer zero constant.
  31889. 'P'
  31890. Integer constant that is a sign-extended byte tiled out as
  31891. four shorts.
  31892. 'Q'
  31893. Integer constant that fits in one signed byte when incremented
  31894. (-129 ... 126), but excluding -1.
  31895. 'S'
  31896. Integer constant that has all 1 bits consecutive and starting
  31897. at bit 0.
  31898. 'T'
  31899. A 16-bit fragment of a got, tls, or pc-relative reference.
  31900. 'U'
  31901. Memory operand except postincrement. This is roughly the same
  31902. as 'm' when not used together with '<' or '>'.
  31903. 'W'
  31904. An 8-element vector constant with identical elements.
  31905. 'Y'
  31906. A 4-element vector constant with identical elements.
  31907. 'Z0'
  31908. The integer constant 0xffffffff.
  31909. 'Z1'
  31910. The integer constant 0xffffffff00000000.
  31911. _TILEPro--'config/tilepro/constraints.md'_
  31912. 'R00'
  31913. 'R01'
  31914. 'R02'
  31915. 'R03'
  31916. 'R04'
  31917. 'R05'
  31918. 'R06'
  31919. 'R07'
  31920. 'R08'
  31921. 'R09'
  31922. 'R10'
  31923. Each of these represents a register constraint for an
  31924. individual register, from r0 to r10.
  31925. 'I'
  31926. Signed 8-bit integer constant.
  31927. 'J'
  31928. Signed 16-bit integer constant.
  31929. 'K'
  31930. Nonzero integer constant with low 16 bits zero.
  31931. 'L'
  31932. Integer constant that fits in one signed byte when incremented
  31933. by one (-129 ... 126).
  31934. 'm'
  31935. Memory operand. If used together with '<' or '>', the operand
  31936. can have postincrement which requires printing with '%In' and
  31937. '%in' on TILEPro. For example:
  31938. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  31939. 'M'
  31940. A bit mask suitable for the MM instruction.
  31941. 'N'
  31942. Integer constant that is a byte tiled out four times.
  31943. 'O'
  31944. The integer zero constant.
  31945. 'P'
  31946. Integer constant that is a sign-extended byte tiled out as two
  31947. shorts.
  31948. 'Q'
  31949. Integer constant that fits in one signed byte when incremented
  31950. (-129 ... 126), but excluding -1.
  31951. 'T'
  31952. A symbolic operand, or a 16-bit fragment of a got, tls, or
  31953. pc-relative reference.
  31954. 'U'
  31955. Memory operand except postincrement. This is roughly the same
  31956. as 'm' when not used together with '<' or '>'.
  31957. 'W'
  31958. A 4-element vector constant with identical elements.
  31959. 'Y'
  31960. A 2-element vector constant with identical elements.
  31961. _Visium--'config/visium/constraints.md'_
  31962. 'b'
  31963. EAM register 'mdb'
  31964. 'c'
  31965. EAM register 'mdc'
  31966. 'f'
  31967. Floating point register
  31968. 'l'
  31969. General register, but not 'r29', 'r30' and 'r31'
  31970. 't'
  31971. Register 'r1'
  31972. 'u'
  31973. Register 'r2'
  31974. 'v'
  31975. Register 'r3'
  31976. 'G'
  31977. Floating-point constant 0.0
  31978. 'J'
  31979. Integer constant in the range 0 .. 65535 (16-bit immediate)
  31980. 'K'
  31981. Integer constant in the range 1 .. 31 (5-bit immediate)
  31982. 'L'
  31983. Integer constant in the range -65535 .. -1 (16-bit negative
  31984. immediate)
  31985. 'M'
  31986. Integer constant -1
  31987. 'O'
  31988. Integer constant 0
  31989. 'P'
  31990. Integer constant 32
  31991. _x86 family--'config/i386/constraints.md'_
  31992. 'R'
  31993. Legacy register--the eight integer registers available on all
  31994. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  31995. 'q'
  31996. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  31997. 'c', and 'd'; in 64-bit mode, any integer register.
  31998. 'Q'
  31999. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  32000. 'a'
  32001. The 'a' register.
  32002. 'b'
  32003. The 'b' register.
  32004. 'c'
  32005. The 'c' register.
  32006. 'd'
  32007. The 'd' register.
  32008. 'S'
  32009. The 'si' register.
  32010. 'D'
  32011. The 'di' register.
  32012. 'A'
  32013. The 'a' and 'd' registers. This class is used for
  32014. instructions that return double word results in the 'ax:dx'
  32015. register pair. Single word values will be allocated either in
  32016. 'ax' or 'dx'. For example on i386 the following implements
  32017. 'rdtsc':
  32018. unsigned long long rdtsc (void)
  32019. {
  32020. unsigned long long tick;
  32021. __asm__ __volatile__("rdtsc":"=A"(tick));
  32022. return tick;
  32023. }
  32024. This is not correct on x86-64 as it would allocate tick in
  32025. either 'ax' or 'dx'. You have to use the following variant
  32026. instead:
  32027. unsigned long long rdtsc (void)
  32028. {
  32029. unsigned int tickl, tickh;
  32030. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  32031. return ((unsigned long long)tickh << 32)|tickl;
  32032. }
  32033. 'U'
  32034. The call-clobbered integer registers.
  32035. 'f'
  32036. Any 80387 floating-point (stack) register.
  32037. 't'
  32038. Top of 80387 floating-point stack ('%st(0)').
  32039. 'u'
  32040. Second from top of 80387 floating-point stack ('%st(1)').
  32041. 'y'
  32042. Any MMX register.
  32043. 'x'
  32044. Any SSE register.
  32045. 'v'
  32046. Any EVEX encodable SSE register ('%xmm0-%xmm31').
  32047. 'Yz'
  32048. First SSE register ('%xmm0').
  32049. 'I'
  32050. Integer constant in the range 0 ... 31, for 32-bit shifts.
  32051. 'J'
  32052. Integer constant in the range 0 ... 63, for 64-bit shifts.
  32053. 'K'
  32054. Signed 8-bit integer constant.
  32055. 'L'
  32056. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  32057. 'M'
  32058. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  32059. 'N'
  32060. Unsigned 8-bit integer constant (for 'in' and 'out'
  32061. instructions).
  32062. 'G'
  32063. Standard 80387 floating point constant.
  32064. 'C'
  32065. SSE constant zero operand.
  32066. 'e'
  32067. 32-bit signed integer constant, or a symbolic reference known
  32068. to fit that range (for immediate operands in sign-extending
  32069. x86-64 instructions).
  32070. 'We'
  32071. 32-bit signed integer constant, or a symbolic reference known
  32072. to fit that range (for sign-extending conversion operations
  32073. that require non-'VOIDmode' immediate operands).
  32074. 'Wz'
  32075. 32-bit unsigned integer constant, or a symbolic reference
  32076. known to fit that range (for zero-extending conversion
  32077. operations that require non-'VOIDmode' immediate operands).
  32078. 'Wd'
  32079. 128-bit integer constant where both the high and low 64-bit
  32080. word satisfy the 'e' constraint.
  32081. 'Z'
  32082. 32-bit unsigned integer constant, or a symbolic reference
  32083. known to fit that range (for immediate operands in
  32084. zero-extending x86-64 instructions).
  32085. 'Tv'
  32086. VSIB address operand.
  32087. 'Ts'
  32088. Address operand without segment register.
  32089. _Xstormy16--'config/stormy16/stormy16.h'_
  32090. 'a'
  32091. Register r0.
  32092. 'b'
  32093. Register r1.
  32094. 'c'
  32095. Register r2.
  32096. 'd'
  32097. Register r8.
  32098. 'e'
  32099. Registers r0 through r7.
  32100. 't'
  32101. Registers r0 and r1.
  32102. 'y'
  32103. The carry register.
  32104. 'z'
  32105. Registers r8 and r9.
  32106. 'I'
  32107. A constant between 0 and 3 inclusive.
  32108. 'J'
  32109. A constant that has exactly one bit set.
  32110. 'K'
  32111. A constant that has exactly one bit clear.
  32112. 'L'
  32113. A constant between 0 and 255 inclusive.
  32114. 'M'
  32115. A constant between -255 and 0 inclusive.
  32116. 'N'
  32117. A constant between -3 and 0 inclusive.
  32118. 'O'
  32119. A constant between 1 and 4 inclusive.
  32120. 'P'
  32121. A constant between -4 and -1 inclusive.
  32122. 'Q'
  32123. A memory reference that is a stack push.
  32124. 'R'
  32125. A memory reference that is a stack pop.
  32126. 'S'
  32127. A memory reference that refers to a constant address of known
  32128. value.
  32129. 'T'
  32130. The register indicated by Rx (not implemented yet).
  32131. 'U'
  32132. A constant that is not between 2 and 15 inclusive.
  32133. 'Z'
  32134. The constant 0.
  32135. _Xtensa--'config/xtensa/constraints.md'_
  32136. 'a'
  32137. General-purpose 32-bit register
  32138. 'b'
  32139. One-bit boolean register
  32140. 'A'
  32141. MAC16 40-bit accumulator register
  32142. 'I'
  32143. Signed 12-bit integer constant, for use in MOVI instructions
  32144. 'J'
  32145. Signed 8-bit integer constant, for use in ADDI instructions
  32146. 'K'
  32147. Integer constant valid for BccI instructions
  32148. 'L'
  32149. Unsigned constant valid for BccUI instructions
  32150. 
  32151. File: gcc.info, Node: Asm Labels, Next: Explicit Register Variables, Prev: Constraints, Up: Using Assembly Language with C
  32152. 6.47.4 Controlling Names Used in Assembler Code
  32153. -----------------------------------------------
  32154. You can specify the name to be used in the assembler code for a C
  32155. function or variable by writing the 'asm' (or '__asm__') keyword after
  32156. the declarator. It is up to you to make sure that the assembler names
  32157. you choose do not conflict with any other assembler symbols, or
  32158. reference registers.
  32159. Assembler names for data:
  32160. .........................
  32161. This sample shows how to specify the assembler name for data:
  32162. int foo asm ("myfoo") = 2;
  32163. This specifies that the name to be used for the variable 'foo' in the
  32164. assembler code should be 'myfoo' rather than the usual '_foo'.
  32165. On systems where an underscore is normally prepended to the name of a C
  32166. variable, this feature allows you to define names for the linker that do
  32167. not start with an underscore.
  32168. GCC does not support using this feature with a non-static local
  32169. variable since such variables do not have assembler names. If you are
  32170. trying to put the variable in a particular register, see *note Explicit
  32171. Register Variables::.
  32172. Assembler names for functions:
  32173. ..............................
  32174. To specify the assembler name for functions, write a declaration for the
  32175. function before its definition and put 'asm' there, like this:
  32176. int func (int x, int y) asm ("MYFUNC");
  32177. int func (int x, int y)
  32178. {
  32179. /* ... */
  32180. This specifies that the name to be used for the function 'func' in the
  32181. assembler code should be 'MYFUNC'.
  32182. 
  32183. File: gcc.info, Node: Explicit Register Variables, Next: Size of an asm, Prev: Asm Labels, Up: Using Assembly Language with C
  32184. 6.47.5 Variables in Specified Registers
  32185. ---------------------------------------
  32186. GNU C allows you to associate specific hardware registers with C
  32187. variables. In almost all cases, allowing the compiler to assign
  32188. registers produces the best code. However under certain unusual
  32189. circumstances, more precise control over the variable storage is
  32190. required.
  32191. Both global and local variables can be associated with a register. The
  32192. consequences of performing this association are very different between
  32193. the two, as explained in the sections below.
  32194. * Menu:
  32195. * Global Register Variables:: Variables declared at global scope.
  32196. * Local Register Variables:: Variables declared within a function.
  32197. 
  32198. File: gcc.info, Node: Global Register Variables, Next: Local Register Variables, Up: Explicit Register Variables
  32199. 6.47.5.1 Defining Global Register Variables
  32200. ...........................................
  32201. You can define a global register variable and associate it with a
  32202. specified register like this:
  32203. register int *foo asm ("r12");
  32204. Here 'r12' is the name of the register that should be used. Note that
  32205. this is the same syntax used for defining local register variables, but
  32206. for a global variable the declaration appears outside a function. The
  32207. 'register' keyword is required, and cannot be combined with 'static'.
  32208. The register name must be a valid register name for the target platform.
  32209. Do not use type qualifiers such as 'const' and 'volatile', as the
  32210. outcome may be contrary to expectations. In particular, using the
  32211. 'volatile' qualifier does not fully prevent the compiler from optimizing
  32212. accesses to the register.
  32213. Registers are a scarce resource on most systems and allowing the
  32214. compiler to manage their usage usually results in the best code.
  32215. However, under special circumstances it can make sense to reserve some
  32216. globally. For example this may be useful in programs such as
  32217. programming language interpreters that have a couple of global variables
  32218. that are accessed very often.
  32219. After defining a global register variable, for the current compilation
  32220. unit:
  32221. * If the register is a call-saved register, call ABI is affected: the
  32222. register will not be restored in function epilogue sequences after
  32223. the variable has been assigned. Therefore, functions cannot safely
  32224. return to callers that assume standard ABI.
  32225. * Conversely, if the register is a call-clobbered register, making
  32226. calls to functions that use standard ABI may lose contents of the
  32227. variable. Such calls may be created by the compiler even if none
  32228. are evident in the original program, for example when libgcc
  32229. functions are used to make up for unavailable instructions.
  32230. * Accesses to the variable may be optimized as usual and the register
  32231. remains available for allocation and use in any computations,
  32232. provided that observable values of the variable are not affected.
  32233. * If the variable is referenced in inline assembly, the type of
  32234. access must be provided to the compiler via constraints (*note
  32235. Constraints::). Accesses from basic asms are not supported.
  32236. Note that these points _only_ apply to code that is compiled with the
  32237. definition. The behavior of code that is merely linked in (for example
  32238. code from libraries) is not affected.
  32239. If you want to recompile source files that do not actually use your
  32240. global register variable so they do not use the specified register for
  32241. any other purpose, you need not actually add the global register
  32242. declaration to their source code. It suffices to specify the compiler
  32243. option '-ffixed-REG' (*note Code Gen Options::) to reserve the register.
  32244. Declaring the variable
  32245. ......................
  32246. Global register variables cannot have initial values, because an
  32247. executable file has no means to supply initial contents for a register.
  32248. When selecting a register, choose one that is normally saved and
  32249. restored by function calls on your machine. This ensures that code
  32250. which is unaware of this reservation (such as library routines) will
  32251. restore it before returning.
  32252. On machines with register windows, be sure to choose a global register
  32253. that is not affected magically by the function call mechanism.
  32254. Using the variable
  32255. ..................
  32256. When calling routines that are not aware of the reservation, be cautious
  32257. if those routines call back into code which uses them. As an example,
  32258. if you call the system library version of 'qsort', it may clobber your
  32259. registers during execution, but (if you have selected appropriate
  32260. registers) it will restore them before returning. However it will _not_
  32261. restore them before calling 'qsort''s comparison function. As a result,
  32262. global values will not reliably be available to the comparison function
  32263. unless the 'qsort' function itself is rebuilt.
  32264. Similarly, it is not safe to access the global register variables from
  32265. signal handlers or from more than one thread of control. Unless you
  32266. recompile them specially for the task at hand, the system library
  32267. routines may temporarily use the register for other things.
  32268. Furthermore, since the register is not reserved exclusively for the
  32269. variable, accessing it from handlers of asynchronous signals may observe
  32270. unrelated temporary values residing in the register.
  32271. On most machines, 'longjmp' restores to each global register variable
  32272. the value it had at the time of the 'setjmp'. On some machines,
  32273. however, 'longjmp' does not change the value of global register
  32274. variables. To be portable, the function that called 'setjmp' should
  32275. make other arrangements to save the values of the global register
  32276. variables, and to restore them in a 'longjmp'. This way, the same thing
  32277. happens regardless of what 'longjmp' does.
  32278. 
  32279. File: gcc.info, Node: Local Register Variables, Prev: Global Register Variables, Up: Explicit Register Variables
  32280. 6.47.5.2 Specifying Registers for Local Variables
  32281. .................................................
  32282. You can define a local register variable and associate it with a
  32283. specified register like this:
  32284. register int *foo asm ("r12");
  32285. Here 'r12' is the name of the register that should be used. Note that
  32286. this is the same syntax used for defining global register variables, but
  32287. for a local variable the declaration appears within a function. The
  32288. 'register' keyword is required, and cannot be combined with 'static'.
  32289. The register name must be a valid register name for the target platform.
  32290. Do not use type qualifiers such as 'const' and 'volatile', as the
  32291. outcome may be contrary to expectations. In particular, when the
  32292. 'const' qualifier is used, the compiler may substitute the variable with
  32293. its initializer in 'asm' statements, which may cause the corresponding
  32294. operand to appear in a different register.
  32295. As with global register variables, it is recommended that you choose a
  32296. register that is normally saved and restored by function calls on your
  32297. machine, so that calls to library routines will not clobber it.
  32298. The only supported use for this feature is to specify registers for
  32299. input and output operands when calling Extended 'asm' (*note Extended
  32300. Asm::). This may be necessary if the constraints for a particular
  32301. machine don't provide sufficient control to select the desired register.
  32302. To force an operand into a register, create a local variable and specify
  32303. the register name after the variable's declaration. Then use the local
  32304. variable for the 'asm' operand and specify any constraint letter that
  32305. matches the register:
  32306. register int *p1 asm ("r0") = ...;
  32307. register int *p2 asm ("r1") = ...;
  32308. register int *result asm ("r0");
  32309. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  32310. _Warning:_ In the above example, be aware that a register (for example
  32311. 'r0') can be call-clobbered by subsequent code, including function calls
  32312. and library calls for arithmetic operators on other variables (for
  32313. example the initialization of 'p2'). In this case, use temporary
  32314. variables for expressions between the register assignments:
  32315. int t1 = ...;
  32316. register int *p1 asm ("r0") = ...;
  32317. register int *p2 asm ("r1") = t1;
  32318. register int *result asm ("r0");
  32319. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  32320. Defining a register variable does not reserve the register. Other than
  32321. when invoking the Extended 'asm', the contents of the specified register
  32322. are not guaranteed. For this reason, the following uses are explicitly
  32323. _not_ supported. If they appear to work, it is only happenstance, and
  32324. may stop working as intended due to (seemingly) unrelated changes in
  32325. surrounding code, or even minor changes in the optimization of a future
  32326. version of gcc:
  32327. * Passing parameters to or from Basic 'asm'
  32328. * Passing parameters to or from Extended 'asm' without using input or
  32329. output operands.
  32330. * Passing parameters to or from routines written in assembler (or
  32331. other languages) using non-standard calling conventions.
  32332. Some developers use Local Register Variables in an attempt to improve
  32333. gcc's allocation of registers, especially in large functions. In this
  32334. case the register name is essentially a hint to the register allocator.
  32335. While in some instances this can generate better code, improvements are
  32336. subject to the whims of the allocator/optimizers. Since there are no
  32337. guarantees that your improvements won't be lost, this usage of Local
  32338. Register Variables is discouraged.
  32339. On the MIPS platform, there is related use for local register variables
  32340. with slightly different characteristics (*note Defining coprocessor
  32341. specifics for MIPS targets: (gccint)MIPS Coprocessors.).
  32342. 
  32343. File: gcc.info, Node: Size of an asm, Prev: Explicit Register Variables, Up: Using Assembly Language with C
  32344. 6.47.6 Size of an 'asm'
  32345. -----------------------
  32346. Some targets require that GCC track the size of each instruction used in
  32347. order to generate correct code. Because the final length of the code
  32348. produced by an 'asm' statement is only known by the assembler, GCC must
  32349. make an estimate as to how big it will be. It does this by counting the
  32350. number of instructions in the pattern of the 'asm' and multiplying that
  32351. by the length of the longest instruction supported by that processor.
  32352. (When working out the number of instructions, it assumes that any
  32353. occurrence of a newline or of whatever statement separator character is
  32354. supported by the assembler -- typically ';' -- indicates the end of an
  32355. instruction.)
  32356. Normally, GCC's estimate is adequate to ensure that correct code is
  32357. generated, but it is possible to confuse the compiler if you use pseudo
  32358. instructions or assembler macros that expand into multiple real
  32359. instructions, or if you use assembler directives that expand to more
  32360. space in the object file than is needed for a single instruction. If
  32361. this happens then the assembler may produce a diagnostic saying that a
  32362. label is unreachable.
  32363. This size is also used for inlining decisions. If you use 'asm inline'
  32364. instead of just 'asm', then for inlining purposes the size of the asm is
  32365. taken as the minimum size, ignoring how many instructions GCC thinks it
  32366. is.
  32367. 
  32368. File: gcc.info, Node: Alternate Keywords, Next: Incomplete Enums, Prev: Using Assembly Language with C, Up: C Extensions
  32369. 6.48 Alternate Keywords
  32370. =======================
  32371. '-ansi' and the various '-std' options disable certain keywords. This
  32372. causes trouble when you want to use GNU C extensions, or a
  32373. general-purpose header file that should be usable by all programs,
  32374. including ISO C programs. The keywords 'asm', 'typeof' and 'inline' are
  32375. not available in programs compiled with '-ansi' or '-std' (although
  32376. 'inline' can be used in a program compiled with '-std=c99' or
  32377. '-std=c11'). The ISO C99 keyword 'restrict' is only available when
  32378. '-std=gnu99' (which will eventually be the default) or '-std=c99' (or
  32379. the equivalent '-std=iso9899:1999'), or an option for a later standard
  32380. version, is used.
  32381. The way to solve these problems is to put '__' at the beginning and end
  32382. of each problematical keyword. For example, use '__asm__' instead of
  32383. 'asm', and '__inline__' instead of 'inline'.
  32384. Other C compilers won't accept these alternative keywords; if you want
  32385. to compile with another compiler, you can define the alternate keywords
  32386. as macros to replace them with the customary keywords. It looks like
  32387. this:
  32388. #ifndef __GNUC__
  32389. #define __asm__ asm
  32390. #endif
  32391. '-pedantic' and other options cause warnings for many GNU C extensions.
  32392. You can prevent such warnings within one expression by writing
  32393. '__extension__' before the expression. '__extension__' has no effect
  32394. aside from this.
  32395. 
  32396. File: gcc.info, Node: Incomplete Enums, Next: Function Names, Prev: Alternate Keywords, Up: C Extensions
  32397. 6.49 Incomplete 'enum' Types
  32398. ============================
  32399. You can define an 'enum' tag without specifying its possible values.
  32400. This results in an incomplete type, much like what you get if you write
  32401. 'struct foo' without describing the elements. A later declaration that
  32402. does specify the possible values completes the type.
  32403. You cannot allocate variables or storage using the type while it is
  32404. incomplete. However, you can work with pointers to that type.
  32405. This extension may not be very useful, but it makes the handling of
  32406. 'enum' more consistent with the way 'struct' and 'union' are handled.
  32407. This extension is not supported by GNU C++.
  32408. 
  32409. File: gcc.info, Node: Function Names, Next: Return Address, Prev: Incomplete Enums, Up: C Extensions
  32410. 6.50 Function Names as Strings
  32411. ==============================
  32412. GCC provides three magic constants that hold the name of the current
  32413. function as a string. In C++11 and later modes, all three are treated
  32414. as constant expressions and can be used in 'constexpr' constexts. The
  32415. first of these constants is '__func__', which is part of the C99
  32416. standard:
  32417. The identifier '__func__' is implicitly declared by the translator as
  32418. if, immediately following the opening brace of each function definition,
  32419. the declaration
  32420. static const char __func__[] = "function-name";
  32421. appeared, where function-name is the name of the lexically-enclosing
  32422. function. This name is the unadorned name of the function. As an
  32423. extension, at file (or, in C++, namespace scope), '__func__' evaluates
  32424. to the empty string.
  32425. '__FUNCTION__' is another name for '__func__', provided for backward
  32426. compatibility with old versions of GCC.
  32427. In C, '__PRETTY_FUNCTION__' is yet another name for '__func__', except
  32428. that at file (or, in C++, namespace scope), it evaluates to the string
  32429. '"top level"'. In addition, in C++, '__PRETTY_FUNCTION__' contains the
  32430. signature of the function as well as its bare name. For example, this
  32431. program:
  32432. extern "C" int printf (const char *, ...);
  32433. class a {
  32434. public:
  32435. void sub (int i)
  32436. {
  32437. printf ("__FUNCTION__ = %s\n", __FUNCTION__);
  32438. printf ("__PRETTY_FUNCTION__ = %s\n", __PRETTY_FUNCTION__);
  32439. }
  32440. };
  32441. int
  32442. main (void)
  32443. {
  32444. a ax;
  32445. ax.sub (0);
  32446. return 0;
  32447. }
  32448. gives this output:
  32449. __FUNCTION__ = sub
  32450. __PRETTY_FUNCTION__ = void a::sub(int)
  32451. These identifiers are variables, not preprocessor macros, and may not
  32452. be used to initialize 'char' arrays or be concatenated with string
  32453. literals.
  32454. 
  32455. File: gcc.info, Node: Return Address, Next: Vector Extensions, Prev: Function Names, Up: C Extensions
  32456. 6.51 Getting the Return or Frame Address of a Function
  32457. ======================================================
  32458. These functions may be used to get information about the callers of a
  32459. function.
  32460. -- Built-in Function: void * __builtin_return_address (unsigned int
  32461. LEVEL)
  32462. This function returns the return address of the current function,
  32463. or of one of its callers. The LEVEL argument is number of frames
  32464. to scan up the call stack. A value of '0' yields the return
  32465. address of the current function, a value of '1' yields the return
  32466. address of the caller of the current function, and so forth. When
  32467. inlining the expected behavior is that the function returns the
  32468. address of the function that is returned to. To work around this
  32469. behavior use the 'noinline' function attribute.
  32470. The LEVEL argument must be a constant integer.
  32471. On some machines it may be impossible to determine the return
  32472. address of any function other than the current one; in such cases,
  32473. or when the top of the stack has been reached, this function
  32474. returns '0' or a random value. In addition,
  32475. '__builtin_frame_address' may be used to determine if the top of
  32476. the stack has been reached.
  32477. Additional post-processing of the returned value may be needed, see
  32478. '__builtin_extract_return_addr'.
  32479. Calling this function with a nonzero argument can have
  32480. unpredictable effects, including crashing the calling program. As
  32481. a result, calls that are considered unsafe are diagnosed when the
  32482. '-Wframe-address' option is in effect. Such calls should only be
  32483. made in debugging situations.
  32484. -- Built-in Function: void * __builtin_extract_return_addr (void *ADDR)
  32485. The address as returned by '__builtin_return_address' may have to
  32486. be fed through this function to get the actual encoded address.
  32487. For example, on the 31-bit S/390 platform the highest bit has to be
  32488. masked out, or on SPARC platforms an offset has to be added for the
  32489. true next instruction to be executed.
  32490. If no fixup is needed, this function simply passes through ADDR.
  32491. -- Built-in Function: void * __builtin_frob_return_address (void *ADDR)
  32492. This function does the reverse of '__builtin_extract_return_addr'.
  32493. -- Built-in Function: void * __builtin_frame_address (unsigned int
  32494. LEVEL)
  32495. This function is similar to '__builtin_return_address', but it
  32496. returns the address of the function frame rather than the return
  32497. address of the function. Calling '__builtin_frame_address' with a
  32498. value of '0' yields the frame address of the current function, a
  32499. value of '1' yields the frame address of the caller of the current
  32500. function, and so forth.
  32501. The frame is the area on the stack that holds local variables and
  32502. saved registers. The frame address is normally the address of the
  32503. first word pushed on to the stack by the function. However, the
  32504. exact definition depends upon the processor and the calling
  32505. convention. If the processor has a dedicated frame pointer
  32506. register, and the function has a frame, then
  32507. '__builtin_frame_address' returns the value of the frame pointer
  32508. register.
  32509. On some machines it may be impossible to determine the frame
  32510. address of any function other than the current one; in such cases,
  32511. or when the top of the stack has been reached, this function
  32512. returns '0' if the first frame pointer is properly initialized by
  32513. the startup code.
  32514. Calling this function with a nonzero argument can have
  32515. unpredictable effects, including crashing the calling program. As
  32516. a result, calls that are considered unsafe are diagnosed when the
  32517. '-Wframe-address' option is in effect. Such calls should only be
  32518. made in debugging situations.
  32519. 
  32520. File: gcc.info, Node: Vector Extensions, Next: Offsetof, Prev: Return Address, Up: C Extensions
  32521. 6.52 Using Vector Instructions through Built-in Functions
  32522. =========================================================
  32523. On some targets, the instruction set contains SIMD vector instructions
  32524. which operate on multiple values contained in one large register at the
  32525. same time. For example, on the x86 the MMX, 3DNow! and SSE extensions
  32526. can be used this way.
  32527. The first step in using these extensions is to provide the necessary
  32528. data types. This should be done using an appropriate 'typedef':
  32529. typedef int v4si __attribute__ ((vector_size (16)));
  32530. The 'int' type specifies the "base type", while the attribute specifies
  32531. the vector size for the variable, measured in bytes. For example, the
  32532. declaration above causes the compiler to set the mode for the 'v4si'
  32533. type to be 16 bytes wide and divided into 'int' sized units. For a
  32534. 32-bit 'int' this means a vector of 4 units of 4 bytes, and the
  32535. corresponding mode of 'foo' is V4SI.
  32536. The 'vector_size' attribute is only applicable to integral and floating
  32537. scalars, although arrays, pointers, and function return values are
  32538. allowed in conjunction with this construct. Only sizes that are
  32539. positive power-of-two multiples of the base type size are currently
  32540. allowed.
  32541. All the basic integer types can be used as base types, both as signed
  32542. and as unsigned: 'char', 'short', 'int', 'long', 'long long'. In
  32543. addition, 'float' and 'double' can be used to build floating-point
  32544. vector types.
  32545. Specifying a combination that is not valid for the current architecture
  32546. causes GCC to synthesize the instructions using a narrower mode. For
  32547. example, if you specify a variable of type 'V4SI' and your architecture
  32548. does not allow for this specific SIMD type, GCC produces code that uses
  32549. 4 'SIs'.
  32550. The types defined in this manner can be used with a subset of normal C
  32551. operations. Currently, GCC allows using the following operators on
  32552. these types: '+, -, *, /, unary minus, ^, |, &, ~, %'.
  32553. The operations behave like C++ 'valarrays'. Addition is defined as the
  32554. addition of the corresponding elements of the operands. For example, in
  32555. the code below, each of the 4 elements in A is added to the
  32556. corresponding 4 elements in B and the resulting vector is stored in C.
  32557. typedef int v4si __attribute__ ((vector_size (16)));
  32558. v4si a, b, c;
  32559. c = a + b;
  32560. Subtraction, multiplication, division, and the logical operations
  32561. operate in a similar manner. Likewise, the result of using the unary
  32562. minus or complement operators on a vector type is a vector whose
  32563. elements are the negative or complemented values of the corresponding
  32564. elements in the operand.
  32565. It is possible to use shifting operators '<<', '>>' on integer-type
  32566. vectors. The operation is defined as following: '{a0, a1, ..., an} >>
  32567. {b0, b1, ..., bn} == {a0 >> b0, a1 >> b1, ..., an >> bn}'. Vector
  32568. operands must have the same number of elements.
  32569. For convenience, it is allowed to use a binary vector operation where
  32570. one operand is a scalar. In that case the compiler transforms the
  32571. scalar operand into a vector where each element is the scalar from the
  32572. operation. The transformation happens only if the scalar could be
  32573. safely converted to the vector-element type. Consider the following
  32574. code.
  32575. typedef int v4si __attribute__ ((vector_size (16)));
  32576. v4si a, b, c;
  32577. long l;
  32578. a = b + 1; /* a = b + {1,1,1,1}; */
  32579. a = 2 * b; /* a = {2,2,2,2} * b; */
  32580. a = l + a; /* Error, cannot convert long to int. */
  32581. Vectors can be subscripted as if the vector were an array with the same
  32582. number of elements and base type. Out of bound accesses invoke
  32583. undefined behavior at run time. Warnings for out of bound accesses for
  32584. vector subscription can be enabled with '-Warray-bounds'.
  32585. Vector comparison is supported with standard comparison operators: '==,
  32586. !=, <, <=, >, >='. Comparison operands can be vector expressions of
  32587. integer-type or real-type. Comparison between integer-type vectors and
  32588. real-type vectors are not supported. The result of the comparison is a
  32589. vector of the same width and number of elements as the comparison
  32590. operands with a signed integral element type.
  32591. Vectors are compared element-wise producing 0 when comparison is false
  32592. and -1 (constant of the appropriate type where all bits are set)
  32593. otherwise. Consider the following example.
  32594. typedef int v4si __attribute__ ((vector_size (16)));
  32595. v4si a = {1,2,3,4};
  32596. v4si b = {3,2,1,4};
  32597. v4si c;
  32598. c = a > b; /* The result would be {0, 0,-1, 0} */
  32599. c = a == b; /* The result would be {0,-1, 0,-1} */
  32600. In C++, the ternary operator '?:' is available. 'a?b:c', where 'b' and
  32601. 'c' are vectors of the same type and 'a' is an integer vector with the
  32602. same number of elements of the same size as 'b' and 'c', computes all
  32603. three arguments and creates a vector '{a[0]?b[0]:c[0], a[1]?b[1]:c[1],
  32604. ...}'. Note that unlike in OpenCL, 'a' is thus interpreted as 'a != 0'
  32605. and not 'a < 0'. As in the case of binary operations, this syntax is
  32606. also accepted when one of 'b' or 'c' is a scalar that is then
  32607. transformed into a vector. If both 'b' and 'c' are scalars and the type
  32608. of 'true?b:c' has the same size as the element type of 'a', then 'b' and
  32609. 'c' are converted to a vector type whose elements have this type and
  32610. with the same number of elements as 'a'.
  32611. In C++, the logic operators '!, &&, ||' are available for vectors.
  32612. '!v' is equivalent to 'v == 0', 'a && b' is equivalent to 'a!=0 & b!=0'
  32613. and 'a || b' is equivalent to 'a!=0 | b!=0'. For mixed operations
  32614. between a scalar 's' and a vector 'v', 's && v' is equivalent to
  32615. 's?v!=0:0' (the evaluation is short-circuit) and 'v && s' is equivalent
  32616. to 'v!=0 & (s?-1:0)'.
  32617. Vector shuffling is available using functions '__builtin_shuffle (vec,
  32618. mask)' and '__builtin_shuffle (vec0, vec1, mask)'. Both functions
  32619. construct a permutation of elements from one or two vectors and return a
  32620. vector of the same type as the input vector(s). The MASK is an integral
  32621. vector with the same width (W) and element count (N) as the output
  32622. vector.
  32623. The elements of the input vectors are numbered in memory ordering of
  32624. VEC0 beginning at 0 and VEC1 beginning at N. The elements of MASK are
  32625. considered modulo N in the single-operand case and modulo 2*N in the
  32626. two-operand case.
  32627. Consider the following example,
  32628. typedef int v4si __attribute__ ((vector_size (16)));
  32629. v4si a = {1,2,3,4};
  32630. v4si b = {5,6,7,8};
  32631. v4si mask1 = {0,1,1,3};
  32632. v4si mask2 = {0,4,2,5};
  32633. v4si res;
  32634. res = __builtin_shuffle (a, mask1); /* res is {1,2,2,4} */
  32635. res = __builtin_shuffle (a, b, mask2); /* res is {1,5,3,6} */
  32636. Note that '__builtin_shuffle' is intentionally semantically compatible
  32637. with the OpenCL 'shuffle' and 'shuffle2' functions.
  32638. You can declare variables and use them in function calls and returns,
  32639. as well as in assignments and some casts. You can specify a vector type
  32640. as a return type for a function. Vector types can also be used as
  32641. function arguments. It is possible to cast from one vector type to
  32642. another, provided they are of the same size (in fact, you can also cast
  32643. vectors to and from other datatypes of the same size).
  32644. You cannot operate between vectors of different lengths or different
  32645. signedness without a cast.
  32646. Vector conversion is available using the '__builtin_convertvector (vec,
  32647. vectype)' function. VEC must be an expression with integral or floating
  32648. vector type and VECTYPE an integral or floating vector type with the
  32649. same number of elements. The result has VECTYPE type and value of a C
  32650. cast of every element of VEC to the element type of VECTYPE.
  32651. Consider the following example,
  32652. typedef int v4si __attribute__ ((vector_size (16)));
  32653. typedef float v4sf __attribute__ ((vector_size (16)));
  32654. typedef double v4df __attribute__ ((vector_size (32)));
  32655. typedef unsigned long long v4di __attribute__ ((vector_size (32)));
  32656. v4si a = {1,-2,3,-4};
  32657. v4sf b = {1.5f,-2.5f,3.f,7.f};
  32658. v4di c = {1ULL,5ULL,0ULL,10ULL};
  32659. v4sf d = __builtin_convertvector (a, v4sf); /* d is {1.f,-2.f,3.f,-4.f} */
  32660. /* Equivalent of:
  32661. v4sf d = { (float)a[0], (float)a[1], (float)a[2], (float)a[3] }; */
  32662. v4df e = __builtin_convertvector (a, v4df); /* e is {1.,-2.,3.,-4.} */
  32663. v4df f = __builtin_convertvector (b, v4df); /* f is {1.5,-2.5,3.,7.} */
  32664. v4si g = __builtin_convertvector (f, v4si); /* g is {1,-2,3,7} */
  32665. v4si h = __builtin_convertvector (c, v4si); /* h is {1,5,0,10} */
  32666. Sometimes it is desirable to write code using a mix of generic vector
  32667. operations (for clarity) and machine-specific vector intrinsics (to
  32668. access vector instructions that are not exposed via generic built-ins).
  32669. On x86, intrinsic functions for integer vectors typically use the same
  32670. vector type '__m128i' irrespective of how they interpret the vector,
  32671. making it necessary to cast their arguments and return values from/to
  32672. other vector types. In C, you can make use of a 'union' type:
  32673. #include <immintrin.h>
  32674. typedef unsigned char u8x16 __attribute__ ((vector_size (16)));
  32675. typedef unsigned int u32x4 __attribute__ ((vector_size (16)));
  32676. typedef union {
  32677. __m128i mm;
  32678. u8x16 u8;
  32679. u32x4 u32;
  32680. } v128;
  32681. for variables that can be used with both built-in operators and x86
  32682. intrinsics:
  32683. v128 x, y = { 0 };
  32684. memcpy (&x, ptr, sizeof x);
  32685. y.u8 += 0x80;
  32686. x.mm = _mm_adds_epu8 (x.mm, y.mm);
  32687. x.u32 &= 0xffffff;
  32688. /* Instead of a variable, a compound literal may be used to pass the
  32689. return value of an intrinsic call to a function expecting the union: */
  32690. v128 foo (v128);
  32691. x = foo ((v128) {_mm_adds_epu8 (x.mm, y.mm)});
  32692. 
  32693. File: gcc.info, Node: Offsetof, Next: __sync Builtins, Prev: Vector Extensions, Up: C Extensions
  32694. 6.53 Support for 'offsetof'
  32695. ===========================
  32696. GCC implements for both C and C++ a syntactic extension to implement the
  32697. 'offsetof' macro.
  32698. primary:
  32699. "__builtin_offsetof" "(" typename "," offsetof_member_designator ")"
  32700. offsetof_member_designator:
  32701. identifier
  32702. | offsetof_member_designator "." identifier
  32703. | offsetof_member_designator "[" expr "]"
  32704. This extension is sufficient such that
  32705. #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
  32706. is a suitable definition of the 'offsetof' macro. In C++, TYPE may be
  32707. dependent. In either case, MEMBER may consist of a single identifier,
  32708. or a sequence of member accesses and array references.
  32709. 
  32710. File: gcc.info, Node: __sync Builtins, Next: __atomic Builtins, Prev: Offsetof, Up: C Extensions
  32711. 6.54 Legacy '__sync' Built-in Functions for Atomic Memory Access
  32712. ================================================================
  32713. The following built-in functions are intended to be compatible with
  32714. those described in the 'Intel Itanium Processor-specific Application
  32715. Binary Interface', section 7.4. As such, they depart from normal GCC
  32716. practice by not using the '__builtin_' prefix and also by being
  32717. overloaded so that they work on multiple types.
  32718. The definition given in the Intel documentation allows only for the use
  32719. of the types 'int', 'long', 'long long' or their unsigned counterparts.
  32720. GCC allows any scalar type that is 1, 2, 4 or 8 bytes in size other than
  32721. the C type '_Bool' or the C++ type 'bool'. Operations on pointer
  32722. arguments are performed as if the operands were of the 'uintptr_t' type.
  32723. That is, they are not scaled by the size of the type to which the
  32724. pointer points.
  32725. These functions are implemented in terms of the '__atomic' builtins
  32726. (*note __atomic Builtins::). They should not be used for new code which
  32727. should use the '__atomic' builtins instead.
  32728. Not all operations are supported by all target processors. If a
  32729. particular operation cannot be implemented on the target processor, a
  32730. warning is generated and a call to an external function is generated.
  32731. The external function carries the same name as the built-in version,
  32732. with an additional suffix '_N' where N is the size of the data type.
  32733. In most cases, these built-in functions are considered a "full
  32734. barrier". That is, no memory operand is moved across the operation,
  32735. either forward or backward. Further, instructions are issued as
  32736. necessary to prevent the processor from speculating loads across the
  32737. operation and from queuing stores after the operation.
  32738. All of the routines are described in the Intel documentation to take
  32739. "an optional list of variables protected by the memory barrier". It's
  32740. not clear what is meant by that; it could mean that _only_ the listed
  32741. variables are protected, or it could mean a list of additional variables
  32742. to be protected. The list is ignored by GCC which treats it as empty.
  32743. GCC interprets an empty list as meaning that all globally accessible
  32744. variables should be protected.
  32745. 'TYPE __sync_fetch_and_add (TYPE *ptr, TYPE value, ...)'
  32746. 'TYPE __sync_fetch_and_sub (TYPE *ptr, TYPE value, ...)'
  32747. 'TYPE __sync_fetch_and_or (TYPE *ptr, TYPE value, ...)'
  32748. 'TYPE __sync_fetch_and_and (TYPE *ptr, TYPE value, ...)'
  32749. 'TYPE __sync_fetch_and_xor (TYPE *ptr, TYPE value, ...)'
  32750. 'TYPE __sync_fetch_and_nand (TYPE *ptr, TYPE value, ...)'
  32751. These built-in functions perform the operation suggested by the
  32752. name, and returns the value that had previously been in memory.
  32753. That is, operations on integer operands have the following
  32754. semantics. Operations on pointer arguments are performed as if the
  32755. operands were of the 'uintptr_t' type. That is, they are not
  32756. scaled by the size of the type to which the pointer points.
  32757. { tmp = *ptr; *ptr OP= value; return tmp; }
  32758. { tmp = *ptr; *ptr = ~(tmp & value); return tmp; } // nand
  32759. The object pointed to by the first argument must be of integer or
  32760. pointer type. It must not be a boolean type.
  32761. _Note:_ GCC 4.4 and later implement '__sync_fetch_and_nand' as
  32762. '*ptr = ~(tmp & value)' instead of '*ptr = ~tmp & value'.
  32763. 'TYPE __sync_add_and_fetch (TYPE *ptr, TYPE value, ...)'
  32764. 'TYPE __sync_sub_and_fetch (TYPE *ptr, TYPE value, ...)'
  32765. 'TYPE __sync_or_and_fetch (TYPE *ptr, TYPE value, ...)'
  32766. 'TYPE __sync_and_and_fetch (TYPE *ptr, TYPE value, ...)'
  32767. 'TYPE __sync_xor_and_fetch (TYPE *ptr, TYPE value, ...)'
  32768. 'TYPE __sync_nand_and_fetch (TYPE *ptr, TYPE value, ...)'
  32769. These built-in functions perform the operation suggested by the
  32770. name, and return the new value. That is, operations on integer
  32771. operands have the following semantics. Operations on pointer
  32772. operands are performed as if the operand's type were 'uintptr_t'.
  32773. { *ptr OP= value; return *ptr; }
  32774. { *ptr = ~(*ptr & value); return *ptr; } // nand
  32775. The same constraints on arguments apply as for the corresponding
  32776. '__sync_op_and_fetch' built-in functions.
  32777. _Note:_ GCC 4.4 and later implement '__sync_nand_and_fetch' as
  32778. '*ptr = ~(*ptr & value)' instead of '*ptr = ~*ptr & value'.
  32779. 'bool __sync_bool_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  32780. 'TYPE __sync_val_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  32781. These built-in functions perform an atomic compare and swap. That
  32782. is, if the current value of '*PTR' is OLDVAL, then write NEWVAL
  32783. into '*PTR'.
  32784. The "bool" version returns 'true' if the comparison is successful
  32785. and NEWVAL is written. The "val" version returns the contents of
  32786. '*PTR' before the operation.
  32787. '__sync_synchronize (...)'
  32788. This built-in function issues a full memory barrier.
  32789. 'TYPE __sync_lock_test_and_set (TYPE *ptr, TYPE value, ...)'
  32790. This built-in function, as described by Intel, is not a traditional
  32791. test-and-set operation, but rather an atomic exchange operation.
  32792. It writes VALUE into '*PTR', and returns the previous contents of
  32793. '*PTR'.
  32794. Many targets have only minimal support for such locks, and do not
  32795. support a full exchange operation. In this case, a target may
  32796. support reduced functionality here by which the _only_ valid value
  32797. to store is the immediate constant 1. The exact value actually
  32798. stored in '*PTR' is implementation defined.
  32799. This built-in function is not a full barrier, but rather an
  32800. "acquire barrier". This means that references after the operation
  32801. cannot move to (or be speculated to) before the operation, but
  32802. previous memory stores may not be globally visible yet, and
  32803. previous memory loads may not yet be satisfied.
  32804. 'void __sync_lock_release (TYPE *ptr, ...)'
  32805. This built-in function releases the lock acquired by
  32806. '__sync_lock_test_and_set'. Normally this means writing the
  32807. constant 0 to '*PTR'.
  32808. This built-in function is not a full barrier, but rather a "release
  32809. barrier". This means that all previous memory stores are globally
  32810. visible, and all previous memory loads have been satisfied, but
  32811. following memory reads are not prevented from being speculated to
  32812. before the barrier.
  32813. 
  32814. File: gcc.info, Node: __atomic Builtins, Next: Integer Overflow Builtins, Prev: __sync Builtins, Up: C Extensions
  32815. 6.55 Built-in Functions for Memory Model Aware Atomic Operations
  32816. ================================================================
  32817. The following built-in functions approximately match the requirements
  32818. for the C++11 memory model. They are all identified by being prefixed
  32819. with '__atomic' and most are overloaded so that they work with multiple
  32820. types.
  32821. These functions are intended to replace the legacy '__sync' builtins.
  32822. The main difference is that the memory order that is requested is a
  32823. parameter to the functions. New code should always use the '__atomic'
  32824. builtins rather than the '__sync' builtins.
  32825. Note that the '__atomic' builtins assume that programs will conform to
  32826. the C++11 memory model. In particular, they assume that programs are
  32827. free of data races. See the C++11 standard for detailed requirements.
  32828. The '__atomic' builtins can be used with any integral scalar or pointer
  32829. type that is 1, 2, 4, or 8 bytes in length. 16-byte integral types are
  32830. also allowed if '__int128' (*note __int128::) is supported by the
  32831. architecture.
  32832. The four non-arithmetic functions (load, store, exchange, and
  32833. compare_exchange) all have a generic version as well. This generic
  32834. version works on any data type. It uses the lock-free built-in function
  32835. if the specific data type size makes that possible; otherwise, an
  32836. external call is left to be resolved at run time. This external call is
  32837. the same format with the addition of a 'size_t' parameter inserted as
  32838. the first parameter indicating the size of the object being pointed to.
  32839. All objects must be the same size.
  32840. There are 6 different memory orders that can be specified. These map
  32841. to the C++11 memory orders with the same names, see the C++11 standard
  32842. or the GCC wiki on atomic synchronization
  32843. (http://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync) for detailed
  32844. definitions. Individual targets may also support additional memory
  32845. orders for use on specific architectures. Refer to the target
  32846. documentation for details of these.
  32847. An atomic operation can both constrain code motion and be mapped to
  32848. hardware instructions for synchronization between threads (e.g., a
  32849. fence). To which extent this happens is controlled by the memory
  32850. orders, which are listed here in approximately ascending order of
  32851. strength. The description of each memory order is only meant to roughly
  32852. illustrate the effects and is not a specification; see the C++11 memory
  32853. model for precise semantics.
  32854. '__ATOMIC_RELAXED'
  32855. Implies no inter-thread ordering constraints.
  32856. '__ATOMIC_CONSUME'
  32857. This is currently implemented using the stronger '__ATOMIC_ACQUIRE'
  32858. memory order because of a deficiency in C++11's semantics for
  32859. 'memory_order_consume'.
  32860. '__ATOMIC_ACQUIRE'
  32861. Creates an inter-thread happens-before constraint from the release
  32862. (or stronger) semantic store to this acquire load. Can prevent
  32863. hoisting of code to before the operation.
  32864. '__ATOMIC_RELEASE'
  32865. Creates an inter-thread happens-before constraint to acquire (or
  32866. stronger) semantic loads that read from this release store. Can
  32867. prevent sinking of code to after the operation.
  32868. '__ATOMIC_ACQ_REL'
  32869. Combines the effects of both '__ATOMIC_ACQUIRE' and
  32870. '__ATOMIC_RELEASE'.
  32871. '__ATOMIC_SEQ_CST'
  32872. Enforces total ordering with all other '__ATOMIC_SEQ_CST'
  32873. operations.
  32874. Note that in the C++11 memory model, _fences_ (e.g.,
  32875. '__atomic_thread_fence') take effect in combination with other atomic
  32876. operations on specific memory locations (e.g., atomic loads); operations
  32877. on specific memory locations do not necessarily affect other operations
  32878. in the same way.
  32879. Target architectures are encouraged to provide their own patterns for
  32880. each of the atomic built-in functions. If no target is provided, the
  32881. original non-memory model set of '__sync' atomic built-in functions are
  32882. used, along with any required synchronization fences surrounding it in
  32883. order to achieve the proper behavior. Execution in this case is subject
  32884. to the same restrictions as those built-in functions.
  32885. If there is no pattern or mechanism to provide a lock-free instruction
  32886. sequence, a call is made to an external routine with the same parameters
  32887. to be resolved at run time.
  32888. When implementing patterns for these built-in functions, the memory
  32889. order parameter can be ignored as long as the pattern implements the
  32890. most restrictive '__ATOMIC_SEQ_CST' memory order. Any of the other
  32891. memory orders execute correctly with this memory order but they may not
  32892. execute as efficiently as they could with a more appropriate
  32893. implementation of the relaxed requirements.
  32894. Note that the C++11 standard allows for the memory order parameter to
  32895. be determined at run time rather than at compile time. These built-in
  32896. functions map any run-time value to '__ATOMIC_SEQ_CST' rather than
  32897. invoke a runtime library call or inline a switch statement. This is
  32898. standard compliant, safe, and the simplest approach for now.
  32899. The memory order parameter is a signed int, but only the lower 16 bits
  32900. are reserved for the memory order. The remainder of the signed int is
  32901. reserved for target use and should be 0. Use of the predefined atomic
  32902. values ensures proper usage.
  32903. -- Built-in Function: TYPE __atomic_load_n (TYPE *ptr, int memorder)
  32904. This built-in function implements an atomic load operation. It
  32905. returns the contents of '*PTR'.
  32906. The valid memory order variants are '__ATOMIC_RELAXED',
  32907. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', and '__ATOMIC_CONSUME'.
  32908. -- Built-in Function: void __atomic_load (TYPE *ptr, TYPE *ret, int
  32909. memorder)
  32910. This is the generic version of an atomic load. It returns the
  32911. contents of '*PTR' in '*RET'.
  32912. -- Built-in Function: void __atomic_store_n (TYPE *ptr, TYPE val, int
  32913. memorder)
  32914. This built-in function implements an atomic store operation. It
  32915. writes 'VAL' into '*PTR'.
  32916. The valid memory order variants are '__ATOMIC_RELAXED',
  32917. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  32918. -- Built-in Function: void __atomic_store (TYPE *ptr, TYPE *val, int
  32919. memorder)
  32920. This is the generic version of an atomic store. It stores the
  32921. value of '*VAL' into '*PTR'.
  32922. -- Built-in Function: TYPE __atomic_exchange_n (TYPE *ptr, TYPE val,
  32923. int memorder)
  32924. This built-in function implements an atomic exchange operation. It
  32925. writes VAL into '*PTR', and returns the previous contents of
  32926. '*PTR'.
  32927. The valid memory order variants are '__ATOMIC_RELAXED',
  32928. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', '__ATOMIC_RELEASE', and
  32929. '__ATOMIC_ACQ_REL'.
  32930. -- Built-in Function: void __atomic_exchange (TYPE *ptr, TYPE *val,
  32931. TYPE *ret, int memorder)
  32932. This is the generic version of an atomic exchange. It stores the
  32933. contents of '*VAL' into '*PTR'. The original value of '*PTR' is
  32934. copied into '*RET'.
  32935. -- Built-in Function: bool __atomic_compare_exchange_n (TYPE *ptr, TYPE
  32936. *expected, TYPE desired, bool weak, int success_memorder, int
  32937. failure_memorder)
  32938. This built-in function implements an atomic compare and exchange
  32939. operation. This compares the contents of '*PTR' with the contents
  32940. of '*EXPECTED'. If equal, the operation is a _read-modify-write_
  32941. operation that writes DESIRED into '*PTR'. If they are not equal,
  32942. the operation is a _read_ and the current contents of '*PTR' are
  32943. written into '*EXPECTED'. WEAK is 'true' for weak
  32944. compare_exchange, which may fail spuriously, and 'false' for the
  32945. strong variation, which never fails spuriously. Many targets only
  32946. offer the strong variation and ignore the parameter. When in
  32947. doubt, use the strong variation.
  32948. If DESIRED is written into '*PTR' then 'true' is returned and
  32949. memory is affected according to the memory order specified by
  32950. SUCCESS_MEMORDER. There are no restrictions on what memory order
  32951. can be used here.
  32952. Otherwise, 'false' is returned and memory is affected according to
  32953. FAILURE_MEMORDER. This memory order cannot be '__ATOMIC_RELEASE'
  32954. nor '__ATOMIC_ACQ_REL'. It also cannot be a stronger order than
  32955. that specified by SUCCESS_MEMORDER.
  32956. -- Built-in Function: bool __atomic_compare_exchange (TYPE *ptr, TYPE
  32957. *expected, TYPE *desired, bool weak, int success_memorder, int
  32958. failure_memorder)
  32959. This built-in function implements the generic version of
  32960. '__atomic_compare_exchange'. The function is virtually identical
  32961. to '__atomic_compare_exchange_n', except the desired value is also
  32962. a pointer.
  32963. -- Built-in Function: TYPE __atomic_add_fetch (TYPE *ptr, TYPE val, int
  32964. memorder)
  32965. -- Built-in Function: TYPE __atomic_sub_fetch (TYPE *ptr, TYPE val, int
  32966. memorder)
  32967. -- Built-in Function: TYPE __atomic_and_fetch (TYPE *ptr, TYPE val, int
  32968. memorder)
  32969. -- Built-in Function: TYPE __atomic_xor_fetch (TYPE *ptr, TYPE val, int
  32970. memorder)
  32971. -- Built-in Function: TYPE __atomic_or_fetch (TYPE *ptr, TYPE val, int
  32972. memorder)
  32973. -- Built-in Function: TYPE __atomic_nand_fetch (TYPE *ptr, TYPE val,
  32974. int memorder)
  32975. These built-in functions perform the operation suggested by the
  32976. name, and return the result of the operation. Operations on
  32977. pointer arguments are performed as if the operands were of the
  32978. 'uintptr_t' type. That is, they are not scaled by the size of the
  32979. type to which the pointer points.
  32980. { *ptr OP= val; return *ptr; }
  32981. { *ptr = ~(*ptr & val); return *ptr; } // nand
  32982. The object pointed to by the first argument must be of integer or
  32983. pointer type. It must not be a boolean type. All memory orders
  32984. are valid.
  32985. -- Built-in Function: TYPE __atomic_fetch_add (TYPE *ptr, TYPE val, int
  32986. memorder)
  32987. -- Built-in Function: TYPE __atomic_fetch_sub (TYPE *ptr, TYPE val, int
  32988. memorder)
  32989. -- Built-in Function: TYPE __atomic_fetch_and (TYPE *ptr, TYPE val, int
  32990. memorder)
  32991. -- Built-in Function: TYPE __atomic_fetch_xor (TYPE *ptr, TYPE val, int
  32992. memorder)
  32993. -- Built-in Function: TYPE __atomic_fetch_or (TYPE *ptr, TYPE val, int
  32994. memorder)
  32995. -- Built-in Function: TYPE __atomic_fetch_nand (TYPE *ptr, TYPE val,
  32996. int memorder)
  32997. These built-in functions perform the operation suggested by the
  32998. name, and return the value that had previously been in '*PTR'.
  32999. Operations on pointer arguments are performed as if the operands
  33000. were of the 'uintptr_t' type. That is, they are not scaled by the
  33001. size of the type to which the pointer points.
  33002. { tmp = *ptr; *ptr OP= val; return tmp; }
  33003. { tmp = *ptr; *ptr = ~(*ptr & val); return tmp; } // nand
  33004. The same constraints on arguments apply as for the corresponding
  33005. '__atomic_op_fetch' built-in functions. All memory orders are
  33006. valid.
  33007. -- Built-in Function: bool __atomic_test_and_set (void *ptr, int
  33008. memorder)
  33009. This built-in function performs an atomic test-and-set operation on
  33010. the byte at '*PTR'. The byte is set to some implementation defined
  33011. nonzero "set" value and the return value is 'true' if and only if
  33012. the previous contents were "set". It should be only used for
  33013. operands of type 'bool' or 'char'. For other types only part of
  33014. the value may be set.
  33015. All memory orders are valid.
  33016. -- Built-in Function: void __atomic_clear (bool *ptr, int memorder)
  33017. This built-in function performs an atomic clear operation on
  33018. '*PTR'. After the operation, '*PTR' contains 0. It should be only
  33019. used for operands of type 'bool' or 'char' and in conjunction with
  33020. '__atomic_test_and_set'. For other types it may only clear
  33021. partially. If the type is not 'bool' prefer using
  33022. '__atomic_store'.
  33023. The valid memory order variants are '__ATOMIC_RELAXED',
  33024. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  33025. -- Built-in Function: void __atomic_thread_fence (int memorder)
  33026. This built-in function acts as a synchronization fence between
  33027. threads based on the specified memory order.
  33028. All memory orders are valid.
  33029. -- Built-in Function: void __atomic_signal_fence (int memorder)
  33030. This built-in function acts as a synchronization fence between a
  33031. thread and signal handlers based in the same thread.
  33032. All memory orders are valid.
  33033. -- Built-in Function: bool __atomic_always_lock_free (size_t size, void
  33034. *ptr)
  33035. This built-in function returns 'true' if objects of SIZE bytes
  33036. always generate lock-free atomic instructions for the target
  33037. architecture. SIZE must resolve to a compile-time constant and the
  33038. result also resolves to a compile-time constant.
  33039. PTR is an optional pointer to the object that may be used to
  33040. determine alignment. A value of 0 indicates typical alignment
  33041. should be used. The compiler may also ignore this parameter.
  33042. if (__atomic_always_lock_free (sizeof (long long), 0))
  33043. -- Built-in Function: bool __atomic_is_lock_free (size_t size, void
  33044. *ptr)
  33045. This built-in function returns 'true' if objects of SIZE bytes
  33046. always generate lock-free atomic instructions for the target
  33047. architecture. If the built-in function is not known to be
  33048. lock-free, a call is made to a runtime routine named
  33049. '__atomic_is_lock_free'.
  33050. PTR is an optional pointer to the object that may be used to
  33051. determine alignment. A value of 0 indicates typical alignment
  33052. should be used. The compiler may also ignore this parameter.
  33053. 
  33054. File: gcc.info, Node: Integer Overflow Builtins, Next: x86 specific memory model extensions for transactional memory, Prev: __atomic Builtins, Up: C Extensions
  33055. 6.56 Built-in Functions to Perform Arithmetic with Overflow Checking
  33056. ====================================================================
  33057. The following built-in functions allow performing simple arithmetic
  33058. operations together with checking whether the operations overflowed.
  33059. -- Built-in Function: bool __builtin_add_overflow (TYPE1 a, TYPE2 b,
  33060. TYPE3 *res)
  33061. -- Built-in Function: bool __builtin_sadd_overflow (int a, int b, int
  33062. *res)
  33063. -- Built-in Function: bool __builtin_saddl_overflow (long int a, long
  33064. int b, long int *res)
  33065. -- Built-in Function: bool __builtin_saddll_overflow (long long int a,
  33066. long long int b, long long int *res)
  33067. -- Built-in Function: bool __builtin_uadd_overflow (unsigned int a,
  33068. unsigned int b, unsigned int *res)
  33069. -- Built-in Function: bool __builtin_uaddl_overflow (unsigned long int
  33070. a, unsigned long int b, unsigned long int *res)
  33071. -- Built-in Function: bool __builtin_uaddll_overflow (unsigned long
  33072. long int a, unsigned long long int b, unsigned long long int
  33073. *res)
  33074. These built-in functions promote the first two operands into
  33075. infinite precision signed type and perform addition on those
  33076. promoted operands. The result is then cast to the type the third
  33077. pointer argument points to and stored there. If the stored result
  33078. is equal to the infinite precision result, the built-in functions
  33079. return 'false', otherwise they return 'true'. As the addition is
  33080. performed in infinite signed precision, these built-in functions
  33081. have fully defined behavior for all argument values.
  33082. The first built-in function allows arbitrary integral types for
  33083. operands and the result type must be pointer to some integral type
  33084. other than enumerated or boolean type, the rest of the built-in
  33085. functions have explicit integer types.
  33086. The compiler will attempt to use hardware instructions to implement
  33087. these built-in functions where possible, like conditional jump on
  33088. overflow after addition, conditional jump on carry etc.
  33089. -- Built-in Function: bool __builtin_sub_overflow (TYPE1 a, TYPE2 b,
  33090. TYPE3 *res)
  33091. -- Built-in Function: bool __builtin_ssub_overflow (int a, int b, int
  33092. *res)
  33093. -- Built-in Function: bool __builtin_ssubl_overflow (long int a, long
  33094. int b, long int *res)
  33095. -- Built-in Function: bool __builtin_ssubll_overflow (long long int a,
  33096. long long int b, long long int *res)
  33097. -- Built-in Function: bool __builtin_usub_overflow (unsigned int a,
  33098. unsigned int b, unsigned int *res)
  33099. -- Built-in Function: bool __builtin_usubl_overflow (unsigned long int
  33100. a, unsigned long int b, unsigned long int *res)
  33101. -- Built-in Function: bool __builtin_usubll_overflow (unsigned long
  33102. long int a, unsigned long long int b, unsigned long long int
  33103. *res)
  33104. These built-in functions are similar to the add overflow checking
  33105. built-in functions above, except they perform subtraction, subtract
  33106. the second argument from the first one, instead of addition.
  33107. -- Built-in Function: bool __builtin_mul_overflow (TYPE1 a, TYPE2 b,
  33108. TYPE3 *res)
  33109. -- Built-in Function: bool __builtin_smul_overflow (int a, int b, int
  33110. *res)
  33111. -- Built-in Function: bool __builtin_smull_overflow (long int a, long
  33112. int b, long int *res)
  33113. -- Built-in Function: bool __builtin_smulll_overflow (long long int a,
  33114. long long int b, long long int *res)
  33115. -- Built-in Function: bool __builtin_umul_overflow (unsigned int a,
  33116. unsigned int b, unsigned int *res)
  33117. -- Built-in Function: bool __builtin_umull_overflow (unsigned long int
  33118. a, unsigned long int b, unsigned long int *res)
  33119. -- Built-in Function: bool __builtin_umulll_overflow (unsigned long
  33120. long int a, unsigned long long int b, unsigned long long int
  33121. *res)
  33122. These built-in functions are similar to the add overflow checking
  33123. built-in functions above, except they perform multiplication,
  33124. instead of addition.
  33125. The following built-in functions allow checking if simple arithmetic
  33126. operation would overflow.
  33127. -- Built-in Function: bool __builtin_add_overflow_p (TYPE1 a, TYPE2 b,
  33128. TYPE3 c)
  33129. -- Built-in Function: bool __builtin_sub_overflow_p (TYPE1 a, TYPE2 b,
  33130. TYPE3 c)
  33131. -- Built-in Function: bool __builtin_mul_overflow_p (TYPE1 a, TYPE2 b,
  33132. TYPE3 c)
  33133. These built-in functions are similar to '__builtin_add_overflow',
  33134. '__builtin_sub_overflow', or '__builtin_mul_overflow', except that
  33135. they don't store the result of the arithmetic operation anywhere
  33136. and the last argument is not a pointer, but some expression with
  33137. integral type other than enumerated or boolean type.
  33138. The built-in functions promote the first two operands into infinite
  33139. precision signed type and perform addition on those promoted
  33140. operands. The result is then cast to the type of the third
  33141. argument. If the cast result is equal to the infinite precision
  33142. result, the built-in functions return 'false', otherwise they
  33143. return 'true'. The value of the third argument is ignored, just
  33144. the side effects in the third argument are evaluated, and no
  33145. integral argument promotions are performed on the last argument.
  33146. If the third argument is a bit-field, the type used for the result
  33147. cast has the precision and signedness of the given bit-field,
  33148. rather than precision and signedness of the underlying type.
  33149. For example, the following macro can be used to portably check, at
  33150. compile-time, whether or not adding two constant integers will
  33151. overflow, and perform the addition only when it is known to be safe
  33152. and not to trigger a '-Woverflow' warning.
  33153. #define INT_ADD_OVERFLOW_P(a, b) \
  33154. __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0)
  33155. enum {
  33156. A = INT_MAX, B = 3,
  33157. C = INT_ADD_OVERFLOW_P (A, B) ? 0 : A + B,
  33158. D = __builtin_add_overflow_p (1, SCHAR_MAX, (signed char) 0)
  33159. };
  33160. The compiler will attempt to use hardware instructions to implement
  33161. these built-in functions where possible, like conditional jump on
  33162. overflow after addition, conditional jump on carry etc.
  33163. 
  33164. File: gcc.info, Node: x86 specific memory model extensions for transactional memory, Next: Object Size Checking, Prev: Integer Overflow Builtins, Up: C Extensions
  33165. 6.57 x86-Specific Memory Model Extensions for Transactional Memory
  33166. ==================================================================
  33167. The x86 architecture supports additional memory ordering flags to mark
  33168. critical sections for hardware lock elision. These must be specified in
  33169. addition to an existing memory order to atomic intrinsics.
  33170. '__ATOMIC_HLE_ACQUIRE'
  33171. Start lock elision on a lock variable. Memory order must be
  33172. '__ATOMIC_ACQUIRE' or stronger.
  33173. '__ATOMIC_HLE_RELEASE'
  33174. End lock elision on a lock variable. Memory order must be
  33175. '__ATOMIC_RELEASE' or stronger.
  33176. When a lock acquire fails, it is required for good performance to abort
  33177. the transaction quickly. This can be done with a '_mm_pause'.
  33178. #include <immintrin.h> // For _mm_pause
  33179. int lockvar;
  33180. /* Acquire lock with lock elision */
  33181. while (__atomic_exchange_n(&lockvar, 1, __ATOMIC_ACQUIRE|__ATOMIC_HLE_ACQUIRE))
  33182. _mm_pause(); /* Abort failed transaction */
  33183. ...
  33184. /* Free lock with lock elision */
  33185. __atomic_store_n(&lockvar, 0, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
  33186. 
  33187. File: gcc.info, Node: Object Size Checking, Next: Other Builtins, Prev: x86 specific memory model extensions for transactional memory, Up: C Extensions
  33188. 6.58 Object Size Checking Built-in Functions
  33189. ============================================
  33190. GCC implements a limited buffer overflow protection mechanism that can
  33191. prevent some buffer overflow attacks by determining the sizes of objects
  33192. into which data is about to be written and preventing the writes when
  33193. the size isn't sufficient. The built-in functions described below yield
  33194. the best results when used together and when optimization is enabled.
  33195. For example, to detect object sizes across function boundaries or to
  33196. follow pointer assignments through non-trivial control flow they rely on
  33197. various optimization passes enabled with '-O2'. However, to a limited
  33198. extent, they can be used without optimization as well.
  33199. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  33200. int TYPE)
  33201. is a built-in construct that returns a constant number of bytes
  33202. from PTR to the end of the object PTR pointer points to (if known
  33203. at compile time). To determine the sizes of dynamically allocated
  33204. objects the function relies on the allocation functions called to
  33205. obtain the storage to be declared with the 'alloc_size' attribute
  33206. (*note Common Function Attributes::). '__builtin_object_size'
  33207. never evaluates its arguments for side effects. If there are any
  33208. side effects in them, it returns '(size_t) -1' for TYPE 0 or 1 and
  33209. '(size_t) 0' for TYPE 2 or 3. If there are multiple objects PTR
  33210. can point to and all of them are known at compile time, the
  33211. returned number is the maximum of remaining byte counts in those
  33212. objects if TYPE & 2 is 0 and minimum if nonzero. If it is not
  33213. possible to determine which objects PTR points to at compile time,
  33214. '__builtin_object_size' should return '(size_t) -1' for TYPE 0 or 1
  33215. and '(size_t) 0' for TYPE 2 or 3.
  33216. TYPE is an integer constant from 0 to 3. If the least significant
  33217. bit is clear, objects are whole variables, if it is set, a closest
  33218. surrounding subobject is considered the object a pointer points to.
  33219. The second bit determines if maximum or minimum of remaining bytes
  33220. is computed.
  33221. struct V { char buf1[10]; int b; char buf2[10]; } var;
  33222. char *p = &var.buf1[1], *q = &var.b;
  33223. /* Here the object p points to is var. */
  33224. assert (__builtin_object_size (p, 0) == sizeof (var) - 1);
  33225. /* The subobject p points to is var.buf1. */
  33226. assert (__builtin_object_size (p, 1) == sizeof (var.buf1) - 1);
  33227. /* The object q points to is var. */
  33228. assert (__builtin_object_size (q, 0)
  33229. == (char *) (&var + 1) - (char *) &var.b);
  33230. /* The subobject q points to is var.b. */
  33231. assert (__builtin_object_size (q, 1) == sizeof (var.b));
  33232. There are built-in functions added for many common string operation
  33233. functions, e.g., for 'memcpy' '__builtin___memcpy_chk' built-in is
  33234. provided. This built-in has an additional last argument, which is the
  33235. number of bytes remaining in the object the DEST argument points to or
  33236. '(size_t) -1' if the size is not known.
  33237. The built-in functions are optimized into the normal string functions
  33238. like 'memcpy' if the last argument is '(size_t) -1' or if it is known at
  33239. compile time that the destination object will not be overflowed. If the
  33240. compiler can determine at compile time that the object will always be
  33241. overflowed, it issues a warning.
  33242. The intended use can be e.g.
  33243. #undef memcpy
  33244. #define bos0(dest) __builtin_object_size (dest, 0)
  33245. #define memcpy(dest, src, n) \
  33246. __builtin___memcpy_chk (dest, src, n, bos0 (dest))
  33247. char *volatile p;
  33248. char buf[10];
  33249. /* It is unknown what object p points to, so this is optimized
  33250. into plain memcpy - no checking is possible. */
  33251. memcpy (p, "abcde", n);
  33252. /* Destination is known and length too. It is known at compile
  33253. time there will be no overflow. */
  33254. memcpy (&buf[5], "abcde", 5);
  33255. /* Destination is known, but the length is not known at compile time.
  33256. This will result in __memcpy_chk call that can check for overflow
  33257. at run time. */
  33258. memcpy (&buf[5], "abcde", n);
  33259. /* Destination is known and it is known at compile time there will
  33260. be overflow. There will be a warning and __memcpy_chk call that
  33261. will abort the program at run time. */
  33262. memcpy (&buf[6], "abcde", 5);
  33263. Such built-in functions are provided for 'memcpy', 'mempcpy',
  33264. 'memmove', 'memset', 'strcpy', 'stpcpy', 'strncpy', 'strcat' and
  33265. 'strncat'.
  33266. There are also checking built-in functions for formatted output
  33267. functions.
  33268. int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...);
  33269. int __builtin___snprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  33270. const char *fmt, ...);
  33271. int __builtin___vsprintf_chk (char *s, int flag, size_t os, const char *fmt,
  33272. va_list ap);
  33273. int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  33274. const char *fmt, va_list ap);
  33275. The added FLAG argument is passed unchanged to '__sprintf_chk' etc.
  33276. functions and can contain implementation specific flags on what
  33277. additional security measures the checking function might take, such as
  33278. handling '%n' differently.
  33279. The OS argument is the object size S points to, like in the other
  33280. built-in functions. There is a small difference in the behavior though,
  33281. if OS is '(size_t) -1', the built-in functions are optimized into the
  33282. non-checking functions only if FLAG is 0, otherwise the checking
  33283. function is called with OS argument set to '(size_t) -1'.
  33284. In addition to this, there are checking built-in functions
  33285. '__builtin___printf_chk', '__builtin___vprintf_chk',
  33286. '__builtin___fprintf_chk' and '__builtin___vfprintf_chk'. These have
  33287. just one additional argument, FLAG, right before format string FMT. If
  33288. the compiler is able to optimize them to 'fputc' etc. functions, it
  33289. does, otherwise the checking function is called and the FLAG argument
  33290. passed to it.
  33291. 
  33292. File: gcc.info, Node: Other Builtins, Next: Target Builtins, Prev: Object Size Checking, Up: C Extensions
  33293. 6.59 Other Built-in Functions Provided by GCC
  33294. =============================================
  33295. GCC provides a large number of built-in functions other than the ones
  33296. mentioned above. Some of these are for internal use in the processing
  33297. of exceptions or variable-length argument lists and are not documented
  33298. here because they may change from time to time; we do not recommend
  33299. general use of these functions.
  33300. The remaining functions are provided for optimization purposes.
  33301. With the exception of built-ins that have library equivalents such as
  33302. the standard C library functions discussed below, or that expand to
  33303. library calls, GCC built-in functions are always expanded inline and
  33304. thus do not have corresponding entry points and their address cannot be
  33305. obtained. Attempting to use them in an expression other than a function
  33306. call results in a compile-time error.
  33307. GCC includes built-in versions of many of the functions in the standard
  33308. C library. These functions come in two forms: one whose names start
  33309. with the '__builtin_' prefix, and the other without. Both forms have
  33310. the same type (including prototype), the same address (when their
  33311. address is taken), and the same meaning as the C library functions even
  33312. if you specify the '-fno-builtin' option *note C Dialect Options::).
  33313. Many of these functions are only optimized in certain cases; if they are
  33314. not optimized in a particular case, a call to the library function is
  33315. emitted.
  33316. Outside strict ISO C mode ('-ansi', '-std=c90', '-std=c99' or
  33317. '-std=c11'), the functions '_exit', 'alloca', 'bcmp', 'bzero',
  33318. 'dcgettext', 'dgettext', 'dremf', 'dreml', 'drem', 'exp10f', 'exp10l',
  33319. 'exp10', 'ffsll', 'ffsl', 'ffs', 'fprintf_unlocked', 'fputs_unlocked',
  33320. 'gammaf', 'gammal', 'gamma', 'gammaf_r', 'gammal_r', 'gamma_r',
  33321. 'gettext', 'index', 'isascii', 'j0f', 'j0l', 'j0', 'j1f', 'j1l', 'j1',
  33322. 'jnf', 'jnl', 'jn', 'lgammaf_r', 'lgammal_r', 'lgamma_r', 'mempcpy',
  33323. 'pow10f', 'pow10l', 'pow10', 'printf_unlocked', 'rindex', 'scalbf',
  33324. 'scalbl', 'scalb', 'signbit', 'signbitf', 'signbitl', 'signbitd32',
  33325. 'signbitd64', 'signbitd128', 'significandf', 'significandl',
  33326. 'significand', 'sincosf', 'sincosl', 'sincos', 'stpcpy', 'stpncpy',
  33327. 'strcasecmp', 'strdup', 'strfmon', 'strncasecmp', 'strndup', 'strnlen',
  33328. 'toascii', 'y0f', 'y0l', 'y0', 'y1f', 'y1l', 'y1', 'ynf', 'ynl' and 'yn'
  33329. may be handled as built-in functions. All these functions have
  33330. corresponding versions prefixed with '__builtin_', which may be used
  33331. even in strict C90 mode.
  33332. The ISO C99 functions '_Exit', 'acoshf', 'acoshl', 'acosh', 'asinhf',
  33333. 'asinhl', 'asinh', 'atanhf', 'atanhl', 'atanh', 'cabsf', 'cabsl',
  33334. 'cabs', 'cacosf', 'cacoshf', 'cacoshl', 'cacosh', 'cacosl', 'cacos',
  33335. 'cargf', 'cargl', 'carg', 'casinf', 'casinhf', 'casinhl', 'casinh',
  33336. 'casinl', 'casin', 'catanf', 'catanhf', 'catanhl', 'catanh', 'catanl',
  33337. 'catan', 'cbrtf', 'cbrtl', 'cbrt', 'ccosf', 'ccoshf', 'ccoshl', 'ccosh',
  33338. 'ccosl', 'ccos', 'cexpf', 'cexpl', 'cexp', 'cimagf', 'cimagl', 'cimag',
  33339. 'clogf', 'clogl', 'clog', 'conjf', 'conjl', 'conj', 'copysignf',
  33340. 'copysignl', 'copysign', 'cpowf', 'cpowl', 'cpow', 'cprojf', 'cprojl',
  33341. 'cproj', 'crealf', 'creall', 'creal', 'csinf', 'csinhf', 'csinhl',
  33342. 'csinh', 'csinl', 'csin', 'csqrtf', 'csqrtl', 'csqrt', 'ctanf',
  33343. 'ctanhf', 'ctanhl', 'ctanh', 'ctanl', 'ctan', 'erfcf', 'erfcl', 'erfc',
  33344. 'erff', 'erfl', 'erf', 'exp2f', 'exp2l', 'exp2', 'expm1f', 'expm1l',
  33345. 'expm1', 'fdimf', 'fdiml', 'fdim', 'fmaf', 'fmal', 'fmaxf', 'fmaxl',
  33346. 'fmax', 'fma', 'fminf', 'fminl', 'fmin', 'hypotf', 'hypotl', 'hypot',
  33347. 'ilogbf', 'ilogbl', 'ilogb', 'imaxabs', 'isblank', 'iswblank',
  33348. 'lgammaf', 'lgammal', 'lgamma', 'llabs', 'llrintf', 'llrintl', 'llrint',
  33349. 'llroundf', 'llroundl', 'llround', 'log1pf', 'log1pl', 'log1p', 'log2f',
  33350. 'log2l', 'log2', 'logbf', 'logbl', 'logb', 'lrintf', 'lrintl', 'lrint',
  33351. 'lroundf', 'lroundl', 'lround', 'nearbyintf', 'nearbyintl', 'nearbyint',
  33352. 'nextafterf', 'nextafterl', 'nextafter', 'nexttowardf', 'nexttowardl',
  33353. 'nexttoward', 'remainderf', 'remainderl', 'remainder', 'remquof',
  33354. 'remquol', 'remquo', 'rintf', 'rintl', 'rint', 'roundf', 'roundl',
  33355. 'round', 'scalblnf', 'scalblnl', 'scalbln', 'scalbnf', 'scalbnl',
  33356. 'scalbn', 'snprintf', 'tgammaf', 'tgammal', 'tgamma', 'truncf',
  33357. 'truncl', 'trunc', 'vfscanf', 'vscanf', 'vsnprintf' and 'vsscanf' are
  33358. handled as built-in functions except in strict ISO C90 mode ('-ansi' or
  33359. '-std=c90').
  33360. There are also built-in versions of the ISO C99 functions 'acosf',
  33361. 'acosl', 'asinf', 'asinl', 'atan2f', 'atan2l', 'atanf', 'atanl',
  33362. 'ceilf', 'ceill', 'cosf', 'coshf', 'coshl', 'cosl', 'expf', 'expl',
  33363. 'fabsf', 'fabsl', 'floorf', 'floorl', 'fmodf', 'fmodl', 'frexpf',
  33364. 'frexpl', 'ldexpf', 'ldexpl', 'log10f', 'log10l', 'logf', 'logl',
  33365. 'modfl', 'modf', 'powf', 'powl', 'sinf', 'sinhf', 'sinhl', 'sinl',
  33366. 'sqrtf', 'sqrtl', 'tanf', 'tanhf', 'tanhl' and 'tanl' that are
  33367. recognized in any mode since ISO C90 reserves these names for the
  33368. purpose to which ISO C99 puts them. All these functions have
  33369. corresponding versions prefixed with '__builtin_'.
  33370. There are also built-in functions '__builtin_fabsfN',
  33371. '__builtin_fabsfNx', '__builtin_copysignfN' and '__builtin_copysignfNx',
  33372. corresponding to the TS 18661-3 functions 'fabsfN', 'fabsfNx',
  33373. 'copysignfN' and 'copysignfNx', for supported types '_FloatN' and
  33374. '_FloatNx'.
  33375. There are also GNU extension functions 'clog10', 'clog10f' and
  33376. 'clog10l' which names are reserved by ISO C99 for future use. All these
  33377. functions have versions prefixed with '__builtin_'.
  33378. The ISO C94 functions 'iswalnum', 'iswalpha', 'iswcntrl', 'iswdigit',
  33379. 'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace', 'iswupper',
  33380. 'iswxdigit', 'towlower' and 'towupper' are handled as built-in functions
  33381. except in strict ISO C90 mode ('-ansi' or '-std=c90').
  33382. The ISO C90 functions 'abort', 'abs', 'acos', 'asin', 'atan2', 'atan',
  33383. 'calloc', 'ceil', 'cosh', 'cos', 'exit', 'exp', 'fabs', 'floor', 'fmod',
  33384. 'fprintf', 'fputs', 'frexp', 'fscanf', 'isalnum', 'isalpha', 'iscntrl',
  33385. 'isdigit', 'isgraph', 'islower', 'isprint', 'ispunct', 'isspace',
  33386. 'isupper', 'isxdigit', 'tolower', 'toupper', 'labs', 'ldexp', 'log10',
  33387. 'log', 'malloc', 'memchr', 'memcmp', 'memcpy', 'memset', 'modf', 'pow',
  33388. 'printf', 'putchar', 'puts', 'scanf', 'sinh', 'sin', 'snprintf',
  33389. 'sprintf', 'sqrt', 'sscanf', 'strcat', 'strchr', 'strcmp', 'strcpy',
  33390. 'strcspn', 'strlen', 'strncat', 'strncmp', 'strncpy', 'strpbrk',
  33391. 'strrchr', 'strspn', 'strstr', 'tanh', 'tan', 'vfprintf', 'vprintf' and
  33392. 'vsprintf' are all recognized as built-in functions unless
  33393. '-fno-builtin' is specified (or '-fno-builtin-FUNCTION' is specified for
  33394. an individual function). All of these functions have corresponding
  33395. versions prefixed with '__builtin_'.
  33396. GCC provides built-in versions of the ISO C99 floating-point comparison
  33397. macros that avoid raising exceptions for unordered operands. They have
  33398. the same names as the standard macros ( 'isgreater', 'isgreaterequal',
  33399. 'isless', 'islessequal', 'islessgreater', and 'isunordered') , with
  33400. '__builtin_' prefixed. We intend for a library implementor to be able
  33401. to simply '#define' each standard macro to its built-in equivalent. In
  33402. the same fashion, GCC provides 'fpclassify', 'isfinite', 'isinf_sign',
  33403. 'isnormal' and 'signbit' built-ins used with '__builtin_' prefixed. The
  33404. 'isinf' and 'isnan' built-in functions appear both with and without the
  33405. '__builtin_' prefix.
  33406. -- Built-in Function: void *__builtin_alloca (size_t size)
  33407. The '__builtin_alloca' function must be called at block scope. The
  33408. function allocates an object SIZE bytes large on the stack of the
  33409. calling function. The object is aligned on the default stack
  33410. alignment boundary for the target determined by the
  33411. '__BIGGEST_ALIGNMENT__' macro. The '__builtin_alloca' function
  33412. returns a pointer to the first byte of the allocated object. The
  33413. lifetime of the allocated object ends just before the calling
  33414. function returns to its caller. This is so even when
  33415. '__builtin_alloca' is called within a nested block.
  33416. For example, the following function allocates eight objects of 'n'
  33417. bytes each on the stack, storing a pointer to each in consecutive
  33418. elements of the array 'a'. It then passes the array to function
  33419. 'g' which can safely use the storage pointed to by each of the
  33420. array elements.
  33421. void f (unsigned n)
  33422. {
  33423. void *a [8];
  33424. for (int i = 0; i != 8; ++i)
  33425. a [i] = __builtin_alloca (n);
  33426. g (a, n); // safe
  33427. }
  33428. Since the '__builtin_alloca' function doesn't validate its argument
  33429. it is the responsibility of its caller to make sure the argument
  33430. doesn't cause it to exceed the stack size limit. The
  33431. '__builtin_alloca' function is provided to make it possible to
  33432. allocate on the stack arrays of bytes with an upper bound that may
  33433. be computed at run time. Since C99 Variable Length Arrays offer
  33434. similar functionality under a portable, more convenient, and safer
  33435. interface they are recommended instead, in both C99 and C++
  33436. programs where GCC provides them as an extension. *Note Variable
  33437. Length::, for details.
  33438. -- Built-in Function: void *__builtin_alloca_with_align (size_t size,
  33439. size_t alignment)
  33440. The '__builtin_alloca_with_align' function must be called at block
  33441. scope. The function allocates an object SIZE bytes large on the
  33442. stack of the calling function. The allocated object is aligned on
  33443. the boundary specified by the argument ALIGNMENT whose unit is
  33444. given in bits (not bytes). The SIZE argument must be positive and
  33445. not exceed the stack size limit. The ALIGNMENT argument must be a
  33446. constant integer expression that evaluates to a power of 2 greater
  33447. than or equal to 'CHAR_BIT' and less than some unspecified maximum.
  33448. Invocations with other values are rejected with an error indicating
  33449. the valid bounds. The function returns a pointer to the first byte
  33450. of the allocated object. The lifetime of the allocated object ends
  33451. at the end of the block in which the function was called. The
  33452. allocated storage is released no later than just before the calling
  33453. function returns to its caller, but may be released at the end of
  33454. the block in which the function was called.
  33455. For example, in the following function the call to 'g' is unsafe
  33456. because when 'overalign' is non-zero, the space allocated by
  33457. '__builtin_alloca_with_align' may have been released at the end of
  33458. the 'if' statement in which it was called.
  33459. void f (unsigned n, bool overalign)
  33460. {
  33461. void *p;
  33462. if (overalign)
  33463. p = __builtin_alloca_with_align (n, 64 /* bits */);
  33464. else
  33465. p = __builtin_alloc (n);
  33466. g (p, n); // unsafe
  33467. }
  33468. Since the '__builtin_alloca_with_align' function doesn't validate
  33469. its SIZE argument it is the responsibility of its caller to make
  33470. sure the argument doesn't cause it to exceed the stack size limit.
  33471. The '__builtin_alloca_with_align' function is provided to make it
  33472. possible to allocate on the stack overaligned arrays of bytes with
  33473. an upper bound that may be computed at run time. Since C99
  33474. Variable Length Arrays offer the same functionality under a
  33475. portable, more convenient, and safer interface they are recommended
  33476. instead, in both C99 and C++ programs where GCC provides them as an
  33477. extension. *Note Variable Length::, for details.
  33478. -- Built-in Function: void *__builtin_alloca_with_align_and_max (size_t
  33479. size, size_t alignment, size_t max_size)
  33480. Similar to '__builtin_alloca_with_align' but takes an extra
  33481. argument specifying an upper bound for SIZE in case its value
  33482. cannot be computed at compile time, for use by '-fstack-usage',
  33483. '-Wstack-usage' and '-Walloca-larger-than'. MAX_SIZE must be a
  33484. constant integer expression, it has no effect on code generation
  33485. and no attempt is made to check its compatibility with SIZE.
  33486. -- Built-in Function: bool __builtin_has_attribute (TYPE-OR-EXPRESSION,
  33487. ATTRIBUTE)
  33488. The '__builtin_has_attribute' function evaluates to an integer
  33489. constant expression equal to 'true' if the symbol or type
  33490. referenced by the TYPE-OR-EXPRESSION argument has been declared
  33491. with the ATTRIBUTE referenced by the second argument. For an
  33492. TYPE-OR-EXPRESSION argument that does not reference a symbol, since
  33493. attributes do not apply to expressions the built-in consider the
  33494. type of the argument. Neither argument is evaluated. The
  33495. TYPE-OR-EXPRESSION argument is subject to the same restrictions as
  33496. the argument to 'typeof' (*note Typeof::). The ATTRIBUTE argument
  33497. is an attribute name optionally followed by a comma-separated list
  33498. of arguments enclosed in parentheses. Both forms of attribute
  33499. names--with and without double leading and trailing
  33500. underscores--are recognized. *Note Attribute Syntax::, for
  33501. details. When no attribute arguments are specified for an
  33502. attribute that expects one or more arguments the function returns
  33503. 'true' if TYPE-OR-EXPRESSION has been declared with the attribute
  33504. regardless of the attribute argument values. Arguments provided
  33505. for an attribute that expects some are validated and matched up to
  33506. the provided number. The function returns 'true' if all provided
  33507. arguments match. For example, the first call to the function below
  33508. evaluates to 'true' because 'x' is declared with the 'aligned'
  33509. attribute but the second call evaluates to 'false' because 'x' is
  33510. declared 'aligned (8)' and not 'aligned (4)'.
  33511. __attribute__ ((aligned (8))) int x;
  33512. _Static_assert (__builtin_has_attribute (x, aligned), "aligned");
  33513. _Static_assert (!__builtin_has_attribute (x, aligned (4)), "aligned (4)");
  33514. Due to a limitation the '__builtin_has_attribute' function returns
  33515. 'false' for the 'mode' attribute even if the type or variable
  33516. referenced by the TYPE-OR-EXPRESSION argument was declared with
  33517. one. The function is also not supported with labels, and in C with
  33518. enumerators.
  33519. Note that unlike the '__has_attribute' preprocessor operator which
  33520. is suitable for use in '#if' preprocessing directives
  33521. '__builtin_has_attribute' is an intrinsic function that is not
  33522. recognized in such contexts.
  33523. -- Built-in Function: TYPE __builtin_speculation_safe_value (TYPE val,
  33524. TYPE failval)
  33525. This built-in function can be used to help mitigate against unsafe
  33526. speculative execution. TYPE may be any integral type or any
  33527. pointer type.
  33528. 1. If the CPU is not speculatively executing the code, then VAL
  33529. is returned.
  33530. 2. If the CPU is executing speculatively then either:
  33531. * The function may cause execution to pause until it is
  33532. known that the code is no-longer being executed
  33533. speculatively (in which case VAL can be returned, as
  33534. above); or
  33535. * The function may use target-dependent speculation
  33536. tracking state to cause FAILVAL to be returned when it is
  33537. known that speculative execution has incorrectly
  33538. predicted a conditional branch operation.
  33539. The second argument, FAILVAL, is optional and defaults to zero if
  33540. omitted.
  33541. GCC defines the preprocessor macro
  33542. '__HAVE_BUILTIN_SPECULATION_SAFE_VALUE' for targets that have been
  33543. updated to support this builtin.
  33544. The built-in function can be used where a variable appears to be
  33545. used in a safe way, but the CPU, due to speculative execution may
  33546. temporarily ignore the bounds checks. Consider, for example, the
  33547. following function:
  33548. int array[500];
  33549. int f (unsigned untrusted_index)
  33550. {
  33551. if (untrusted_index < 500)
  33552. return array[untrusted_index];
  33553. return 0;
  33554. }
  33555. If the function is called repeatedly with 'untrusted_index' less
  33556. than the limit of 500, then a branch predictor will learn that the
  33557. block of code that returns a value stored in 'array' will be
  33558. executed. If the function is subsequently called with an
  33559. out-of-range value it will still try to execute that block of code
  33560. first until the CPU determines that the prediction was incorrect
  33561. (the CPU will unwind any incorrect operations at that point).
  33562. However, depending on how the result of the function is used, it
  33563. might be possible to leave traces in the cache that can reveal what
  33564. was stored at the out-of-bounds location. The built-in function
  33565. can be used to provide some protection against leaking data in this
  33566. way by changing the code to:
  33567. int array[500];
  33568. int f (unsigned untrusted_index)
  33569. {
  33570. if (untrusted_index < 500)
  33571. return array[__builtin_speculation_safe_value (untrusted_index)];
  33572. return 0;
  33573. }
  33574. The built-in function will either cause execution to stall until
  33575. the conditional branch has been fully resolved, or it may permit
  33576. speculative execution to continue, but using 0 instead of
  33577. 'untrusted_value' if that exceeds the limit.
  33578. If accessing any memory location is potentially unsafe when
  33579. speculative execution is incorrect, then the code can be rewritten
  33580. as
  33581. int array[500];
  33582. int f (unsigned untrusted_index)
  33583. {
  33584. if (untrusted_index < 500)
  33585. return *__builtin_speculation_safe_value (&array[untrusted_index], NULL);
  33586. return 0;
  33587. }
  33588. which will cause a 'NULL' pointer to be used for the unsafe case.
  33589. -- Built-in Function: int __builtin_types_compatible_p (TYPE1, TYPE2)
  33590. You can use the built-in function '__builtin_types_compatible_p' to
  33591. determine whether two types are the same.
  33592. This built-in function returns 1 if the unqualified versions of the
  33593. types TYPE1 and TYPE2 (which are types, not expressions) are
  33594. compatible, 0 otherwise. The result of this built-in function can
  33595. be used in integer constant expressions.
  33596. This built-in function ignores top level qualifiers (e.g., 'const',
  33597. 'volatile'). For example, 'int' is equivalent to 'const int'.
  33598. The type 'int[]' and 'int[5]' are compatible. On the other hand,
  33599. 'int' and 'char *' are not compatible, even if the size of their
  33600. types, on the particular architecture are the same. Also, the
  33601. amount of pointer indirection is taken into account when
  33602. determining similarity. Consequently, 'short *' is not similar to
  33603. 'short **'. Furthermore, two types that are typedefed are
  33604. considered compatible if their underlying types are compatible.
  33605. An 'enum' type is not considered to be compatible with another
  33606. 'enum' type even if both are compatible with the same integer type;
  33607. this is what the C standard specifies. For example, 'enum {foo,
  33608. bar}' is not similar to 'enum {hot, dog}'.
  33609. You typically use this function in code whose execution varies
  33610. depending on the arguments' types. For example:
  33611. #define foo(x) \
  33612. ({ \
  33613. typeof (x) tmp = (x); \
  33614. if (__builtin_types_compatible_p (typeof (x), long double)) \
  33615. tmp = foo_long_double (tmp); \
  33616. else if (__builtin_types_compatible_p (typeof (x), double)) \
  33617. tmp = foo_double (tmp); \
  33618. else if (__builtin_types_compatible_p (typeof (x), float)) \
  33619. tmp = foo_float (tmp); \
  33620. else \
  33621. abort (); \
  33622. tmp; \
  33623. })
  33624. _Note:_ This construct is only available for C.
  33625. -- Built-in Function: TYPE __builtin_call_with_static_chain (CALL_EXP,
  33626. POINTER_EXP)
  33627. The CALL_EXP expression must be a function call, and the
  33628. POINTER_EXP expression must be a pointer. The POINTER_EXP is
  33629. passed to the function call in the target's static chain location.
  33630. The result of builtin is the result of the function call.
  33631. _Note:_ This builtin is only available for C. This builtin can be
  33632. used to call Go closures from C.
  33633. -- Built-in Function: TYPE __builtin_choose_expr (CONST_EXP, EXP1,
  33634. EXP2)
  33635. You can use the built-in function '__builtin_choose_expr' to
  33636. evaluate code depending on the value of a constant expression.
  33637. This built-in function returns EXP1 if CONST_EXP, which is an
  33638. integer constant expression, is nonzero. Otherwise it returns
  33639. EXP2.
  33640. This built-in function is analogous to the '? :' operator in C,
  33641. except that the expression returned has its type unaltered by
  33642. promotion rules. Also, the built-in function does not evaluate the
  33643. expression that is not chosen. For example, if CONST_EXP evaluates
  33644. to 'true', EXP2 is not evaluated even if it has side effects.
  33645. This built-in function can return an lvalue if the chosen argument
  33646. is an lvalue.
  33647. If EXP1 is returned, the return type is the same as EXP1's type.
  33648. Similarly, if EXP2 is returned, its return type is the same as
  33649. EXP2.
  33650. Example:
  33651. #define foo(x) \
  33652. __builtin_choose_expr ( \
  33653. __builtin_types_compatible_p (typeof (x), double), \
  33654. foo_double (x), \
  33655. __builtin_choose_expr ( \
  33656. __builtin_types_compatible_p (typeof (x), float), \
  33657. foo_float (x), \
  33658. /* The void expression results in a compile-time error \
  33659. when assigning the result to something. */ \
  33660. (void)0))
  33661. _Note:_ This construct is only available for C. Furthermore, the
  33662. unused expression (EXP1 or EXP2 depending on the value of
  33663. CONST_EXP) may still generate syntax errors. This may change in
  33664. future revisions.
  33665. -- Built-in Function: TYPE __builtin_tgmath (FUNCTIONS, ARGUMENTS)
  33666. The built-in function '__builtin_tgmath', available only for C and
  33667. Objective-C, calls a function determined according to the rules of
  33668. '<tgmath.h>' macros. It is intended to be used in implementations
  33669. of that header, so that expansions of macros from that header only
  33670. expand each of their arguments once, to avoid problems when calls
  33671. to such macros are nested inside the arguments of other calls to
  33672. such macros; in addition, it results in better diagnostics for
  33673. invalid calls to '<tgmath.h>' macros than implementations using
  33674. other GNU C language features. For example, the 'pow' type-generic
  33675. macro might be defined as:
  33676. #define pow(a, b) __builtin_tgmath (powf, pow, powl, \
  33677. cpowf, cpow, cpowl, a, b)
  33678. The arguments to '__builtin_tgmath' are at least two pointers to
  33679. functions, followed by the arguments to the type-generic macro
  33680. (which will be passed as arguments to the selected function). All
  33681. the pointers to functions must be pointers to prototyped functions,
  33682. none of which may have variable arguments, and all of which must
  33683. have the same number of parameters; the number of parameters of the
  33684. first function determines how many arguments to '__builtin_tgmath'
  33685. are interpreted as function pointers, and how many as the arguments
  33686. to the called function.
  33687. The types of the specified functions must all be different, but
  33688. related to each other in the same way as a set of functions that
  33689. may be selected between by a macro in '<tgmath.h>'. This means
  33690. that the functions are parameterized by a floating-point type T,
  33691. different for each such function. The function return types may
  33692. all be the same type, or they may be T for each function, or they
  33693. may be the real type corresponding to T for each function (if some
  33694. of the types T are complex). Likewise, for each parameter
  33695. position, the type of the parameter in that position may always be
  33696. the same type, or may be T for each function (this case must apply
  33697. for at least one parameter position), or may be the real type
  33698. corresponding to T for each function.
  33699. The standard rules for '<tgmath.h>' macros are used to find a
  33700. common type U from the types of the arguments for parameters whose
  33701. types vary between the functions; complex integer types (a GNU
  33702. extension) are treated like '_Complex double' for this purpose (or
  33703. '_Complex _Float64' if all the function return types are the same
  33704. '_FloatN' or '_FloatNx' type). If the function return types vary,
  33705. or are all the same integer type, the function called is the one
  33706. for which T is U, and it is an error if there is no such function.
  33707. If the function return types are all the same floating-point type,
  33708. the type-generic macro is taken to be one of those from TS 18661
  33709. that rounds the result to a narrower type; if there is a function
  33710. for which T is U, it is called, and otherwise the first function,
  33711. if any, for which T has at least the range and precision of U is
  33712. called, and it is an error if there is no such function.
  33713. -- Built-in Function: TYPE __builtin_complex (REAL, IMAG)
  33714. The built-in function '__builtin_complex' is provided for use in
  33715. implementing the ISO C11 macros 'CMPLXF', 'CMPLX' and 'CMPLXL'.
  33716. REAL and IMAG must have the same type, a real binary floating-point
  33717. type, and the result has the corresponding complex type with real
  33718. and imaginary parts REAL and IMAG. Unlike 'REAL + I * IMAG', this
  33719. works even when infinities, NaNs and negative zeros are involved.
  33720. -- Built-in Function: int __builtin_constant_p (EXP)
  33721. You can use the built-in function '__builtin_constant_p' to
  33722. determine if a value is known to be constant at compile time and
  33723. hence that GCC can perform constant-folding on expressions
  33724. involving that value. The argument of the function is the value to
  33725. test. The function returns the integer 1 if the argument is known
  33726. to be a compile-time constant and 0 if it is not known to be a
  33727. compile-time constant. A return of 0 does not indicate that the
  33728. value is _not_ a constant, but merely that GCC cannot prove it is a
  33729. constant with the specified value of the '-O' option.
  33730. You typically use this function in an embedded application where
  33731. memory is a critical resource. If you have some complex
  33732. calculation, you may want it to be folded if it involves constants,
  33733. but need to call a function if it does not. For example:
  33734. #define Scale_Value(X) \
  33735. (__builtin_constant_p (X) \
  33736. ? ((X) * SCALE + OFFSET) : Scale (X))
  33737. You may use this built-in function in either a macro or an inline
  33738. function. However, if you use it in an inlined function and pass
  33739. an argument of the function as the argument to the built-in, GCC
  33740. never returns 1 when you call the inline function with a string
  33741. constant or compound literal (*note Compound Literals::) and does
  33742. not return 1 when you pass a constant numeric value to the inline
  33743. function unless you specify the '-O' option.
  33744. You may also use '__builtin_constant_p' in initializers for static
  33745. data. For instance, you can write
  33746. static const int table[] = {
  33747. __builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1,
  33748. /* ... */
  33749. };
  33750. This is an acceptable initializer even if EXPRESSION is not a
  33751. constant expression, including the case where
  33752. '__builtin_constant_p' returns 1 because EXPRESSION can be folded
  33753. to a constant but EXPRESSION contains operands that are not
  33754. otherwise permitted in a static initializer (for example, '0 && foo
  33755. ()'). GCC must be more conservative about evaluating the built-in
  33756. in this case, because it has no opportunity to perform
  33757. optimization.
  33758. -- Built-in Function: bool __builtin_is_constant_evaluated (void)
  33759. The '__builtin_is_constant_evaluated' function is available only in
  33760. C++. The built-in is intended to be used by implementations of the
  33761. 'std::is_constant_evaluated' C++ function. Programs should make
  33762. use of the latter function rather than invoking the built-in
  33763. directly.
  33764. The main use case of the built-in is to determine whether a
  33765. 'constexpr' function is being called in a 'constexpr' context. A
  33766. call to the function evaluates to a core constant expression with
  33767. the value 'true' if and only if it occurs within the evaluation of
  33768. an expression or conversion that is manifestly constant-evaluated
  33769. as defined in the C++ standard. Manifestly constant-evaluated
  33770. contexts include constant-expressions, the conditions of 'constexpr
  33771. if' statements, constraint-expressions, and initializers of
  33772. variables usable in constant expressions. For more details refer
  33773. to the latest revision of the C++ standard.
  33774. -- Built-in Function: long __builtin_expect (long EXP, long C)
  33775. You may use '__builtin_expect' to provide the compiler with branch
  33776. prediction information. In general, you should prefer to use
  33777. actual profile feedback for this ('-fprofile-arcs'), as programmers
  33778. are notoriously bad at predicting how their programs actually
  33779. perform. However, there are applications in which this data is
  33780. hard to collect.
  33781. The return value is the value of EXP, which should be an integral
  33782. expression. The semantics of the built-in are that it is expected
  33783. that EXP == C. For example:
  33784. if (__builtin_expect (x, 0))
  33785. foo ();
  33786. indicates that we do not expect to call 'foo', since we expect 'x'
  33787. to be zero. Since you are limited to integral expressions for EXP,
  33788. you should use constructions such as
  33789. if (__builtin_expect (ptr != NULL, 1))
  33790. foo (*ptr);
  33791. when testing pointer or floating-point values.
  33792. For the purposes of branch prediction optimizations, the
  33793. probability that a '__builtin_expect' expression is 'true' is
  33794. controlled by GCC's 'builtin-expect-probability' parameter, which
  33795. defaults to 90%. You can also use
  33796. '__builtin_expect_with_probability' to explicitly assign a
  33797. probability value to individual expressions.
  33798. -- Built-in Function: long __builtin_expect_with_probability
  33799. (long EXP, long C, double PROBABILITY)
  33800. This function has the same semantics as '__builtin_expect', but the
  33801. caller provides the expected probability that EXP == C. The last
  33802. argument, PROBABILITY, is a floating-point value in the range 0.0
  33803. to 1.0, inclusive. The PROBABILITY argument must be constant
  33804. floating-point expression.
  33805. -- Built-in Function: void __builtin_trap (void)
  33806. This function causes the program to exit abnormally. GCC
  33807. implements this function by using a target-dependent mechanism
  33808. (such as intentionally executing an illegal instruction) or by
  33809. calling 'abort'. The mechanism used may vary from release to
  33810. release so you should not rely on any particular implementation.
  33811. -- Built-in Function: void __builtin_unreachable (void)
  33812. If control flow reaches the point of the '__builtin_unreachable',
  33813. the program is undefined. It is useful in situations where the
  33814. compiler cannot deduce the unreachability of the code.
  33815. One such case is immediately following an 'asm' statement that
  33816. either never terminates, or one that transfers control elsewhere
  33817. and never returns. In this example, without the
  33818. '__builtin_unreachable', GCC issues a warning that control reaches
  33819. the end of a non-void function. It also generates code to return
  33820. after the 'asm'.
  33821. int f (int c, int v)
  33822. {
  33823. if (c)
  33824. {
  33825. return v;
  33826. }
  33827. else
  33828. {
  33829. asm("jmp error_handler");
  33830. __builtin_unreachable ();
  33831. }
  33832. }
  33833. Because the 'asm' statement unconditionally transfers control out
  33834. of the function, control never reaches the end of the function
  33835. body. The '__builtin_unreachable' is in fact unreachable and
  33836. communicates this fact to the compiler.
  33837. Another use for '__builtin_unreachable' is following a call a
  33838. function that never returns but that is not declared
  33839. '__attribute__((noreturn))', as in this example:
  33840. void function_that_never_returns (void);
  33841. int g (int c)
  33842. {
  33843. if (c)
  33844. {
  33845. return 1;
  33846. }
  33847. else
  33848. {
  33849. function_that_never_returns ();
  33850. __builtin_unreachable ();
  33851. }
  33852. }
  33853. -- Built-in Function: void * __builtin_assume_aligned (const void *EXP,
  33854. size_t ALIGN, ...)
  33855. This function returns its first argument, and allows the compiler
  33856. to assume that the returned pointer is at least ALIGN bytes
  33857. aligned. This built-in can have either two or three arguments, if
  33858. it has three, the third argument should have integer type, and if
  33859. it is nonzero means misalignment offset. For example:
  33860. void *x = __builtin_assume_aligned (arg, 16);
  33861. means that the compiler can assume 'x', set to 'arg', is at least
  33862. 16-byte aligned, while:
  33863. void *x = __builtin_assume_aligned (arg, 32, 8);
  33864. means that the compiler can assume for 'x', set to 'arg', that
  33865. '(char *) x - 8' is 32-byte aligned.
  33866. -- Built-in Function: int __builtin_LINE ()
  33867. This function is the equivalent of the preprocessor '__LINE__'
  33868. macro and returns a constant integer expression that evaluates to
  33869. the line number of the invocation of the built-in. When used as a
  33870. C++ default argument for a function F, it returns the line number
  33871. of the call to F.
  33872. -- Built-in Function: const char * __builtin_FUNCTION ()
  33873. This function is the equivalent of the '__FUNCTION__' symbol and
  33874. returns an address constant pointing to the name of the function
  33875. from which the built-in was invoked, or the empty string if the
  33876. invocation is not at function scope. When used as a C++ default
  33877. argument for a function F, it returns the name of F's caller or the
  33878. empty string if the call was not made at function scope.
  33879. -- Built-in Function: const char * __builtin_FILE ()
  33880. This function is the equivalent of the preprocessor '__FILE__'
  33881. macro and returns an address constant pointing to the file name
  33882. containing the invocation of the built-in, or the empty string if
  33883. the invocation is not at function scope. When used as a C++
  33884. default argument for a function F, it returns the file name of the
  33885. call to F or the empty string if the call was not made at function
  33886. scope.
  33887. For example, in the following, each call to function 'foo' will
  33888. print a line similar to '"file.c:123: foo: message"' with the name
  33889. of the file and the line number of the 'printf' call, the name of
  33890. the function 'foo', followed by the word 'message'.
  33891. const char*
  33892. function (const char *func = __builtin_FUNCTION ())
  33893. {
  33894. return func;
  33895. }
  33896. void foo (void)
  33897. {
  33898. printf ("%s:%i: %s: message\n", file (), line (), function ());
  33899. }
  33900. -- Built-in Function: void __builtin___clear_cache (void *BEGIN, void
  33901. *END)
  33902. This function is used to flush the processor's instruction cache
  33903. for the region of memory between BEGIN inclusive and END exclusive.
  33904. Some targets require that the instruction cache be flushed, after
  33905. modifying memory containing code, in order to obtain deterministic
  33906. behavior.
  33907. If the target does not require instruction cache flushes,
  33908. '__builtin___clear_cache' has no effect. Otherwise either
  33909. instructions are emitted in-line to clear the instruction cache or
  33910. a call to the '__clear_cache' function in libgcc is made.
  33911. -- Built-in Function: void __builtin_prefetch (const void *ADDR, ...)
  33912. This function is used to minimize cache-miss latency by moving data
  33913. into a cache before it is accessed. You can insert calls to
  33914. '__builtin_prefetch' into code for which you know addresses of data
  33915. in memory that is likely to be accessed soon. If the target
  33916. supports them, data prefetch instructions are generated. If the
  33917. prefetch is done early enough before the access then the data will
  33918. be in the cache by the time it is accessed.
  33919. The value of ADDR is the address of the memory to prefetch. There
  33920. are two optional arguments, RW and LOCALITY. The value of RW is a
  33921. compile-time constant one or zero; one means that the prefetch is
  33922. preparing for a write to the memory address and zero, the default,
  33923. means that the prefetch is preparing for a read. The value
  33924. LOCALITY must be a compile-time constant integer between zero and
  33925. three. A value of zero means that the data has no temporal
  33926. locality, so it need not be left in the cache after the access. A
  33927. value of three means that the data has a high degree of temporal
  33928. locality and should be left in all levels of cache possible.
  33929. Values of one and two mean, respectively, a low or moderate degree
  33930. of temporal locality. The default is three.
  33931. for (i = 0; i < n; i++)
  33932. {
  33933. a[i] = a[i] + b[i];
  33934. __builtin_prefetch (&a[i+j], 1, 1);
  33935. __builtin_prefetch (&b[i+j], 0, 1);
  33936. /* ... */
  33937. }
  33938. Data prefetch does not generate faults if ADDR is invalid, but the
  33939. address expression itself must be valid. For example, a prefetch
  33940. of 'p->next' does not fault if 'p->next' is not a valid address,
  33941. but evaluation faults if 'p' is not a valid address.
  33942. If the target does not support data prefetch, the address
  33943. expression is evaluated if it includes side effects but no other
  33944. code is generated and GCC does not issue a warning.
  33945. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  33946. int TYPE)
  33947. Returns the size of an object pointed to by PTR. *Note Object Size
  33948. Checking::, for a detailed description of the function.
  33949. -- Built-in Function: double __builtin_huge_val (void)
  33950. Returns a positive infinity, if supported by the floating-point
  33951. format, else 'DBL_MAX'. This function is suitable for implementing
  33952. the ISO C macro 'HUGE_VAL'.
  33953. -- Built-in Function: float __builtin_huge_valf (void)
  33954. Similar to '__builtin_huge_val', except the return type is 'float'.
  33955. -- Built-in Function: long double __builtin_huge_vall (void)
  33956. Similar to '__builtin_huge_val', except the return type is 'long
  33957. double'.
  33958. -- Built-in Function: _FloatN __builtin_huge_valfN (void)
  33959. Similar to '__builtin_huge_val', except the return type is
  33960. '_FloatN'.
  33961. -- Built-in Function: _FloatNx __builtin_huge_valfNx (void)
  33962. Similar to '__builtin_huge_val', except the return type is
  33963. '_FloatNx'.
  33964. -- Built-in Function: int __builtin_fpclassify (int, int, int, int,
  33965. int, ...)
  33966. This built-in implements the C99 fpclassify functionality. The
  33967. first five int arguments should be the target library's notion of
  33968. the possible FP classes and are used for return values. They must
  33969. be constant values and they must appear in this order: 'FP_NAN',
  33970. 'FP_INFINITE', 'FP_NORMAL', 'FP_SUBNORMAL' and 'FP_ZERO'. The
  33971. ellipsis is for exactly one floating-point value to classify. GCC
  33972. treats the last argument as type-generic, which means it does not
  33973. do default promotion from float to double.
  33974. -- Built-in Function: double __builtin_inf (void)
  33975. Similar to '__builtin_huge_val', except a warning is generated if
  33976. the target floating-point format does not support infinities.
  33977. -- Built-in Function: _Decimal32 __builtin_infd32 (void)
  33978. Similar to '__builtin_inf', except the return type is '_Decimal32'.
  33979. -- Built-in Function: _Decimal64 __builtin_infd64 (void)
  33980. Similar to '__builtin_inf', except the return type is '_Decimal64'.
  33981. -- Built-in Function: _Decimal128 __builtin_infd128 (void)
  33982. Similar to '__builtin_inf', except the return type is
  33983. '_Decimal128'.
  33984. -- Built-in Function: float __builtin_inff (void)
  33985. Similar to '__builtin_inf', except the return type is 'float'.
  33986. This function is suitable for implementing the ISO C99 macro
  33987. 'INFINITY'.
  33988. -- Built-in Function: long double __builtin_infl (void)
  33989. Similar to '__builtin_inf', except the return type is 'long
  33990. double'.
  33991. -- Built-in Function: _FloatN __builtin_inffN (void)
  33992. Similar to '__builtin_inf', except the return type is '_FloatN'.
  33993. -- Built-in Function: _FloatN __builtin_inffNx (void)
  33994. Similar to '__builtin_inf', except the return type is '_FloatNx'.
  33995. -- Built-in Function: int __builtin_isinf_sign (...)
  33996. Similar to 'isinf', except the return value is -1 for an argument
  33997. of '-Inf' and 1 for an argument of '+Inf'. Note while the
  33998. parameter list is an ellipsis, this function only accepts exactly
  33999. one floating-point argument. GCC treats this parameter as
  34000. type-generic, which means it does not do default promotion from
  34001. float to double.
  34002. -- Built-in Function: double __builtin_nan (const char *str)
  34003. This is an implementation of the ISO C99 function 'nan'.
  34004. Since ISO C99 defines this function in terms of 'strtod', which we
  34005. do not implement, a description of the parsing is in order. The
  34006. string is parsed as by 'strtol'; that is, the base is recognized by
  34007. leading '0' or '0x' prefixes. The number parsed is placed in the
  34008. significand such that the least significant bit of the number is at
  34009. the least significant bit of the significand. The number is
  34010. truncated to fit the significand field provided. The significand
  34011. is forced to be a quiet NaN.
  34012. This function, if given a string literal all of which would have
  34013. been consumed by 'strtol', is evaluated early enough that it is
  34014. considered a compile-time constant.
  34015. -- Built-in Function: _Decimal32 __builtin_nand32 (const char *str)
  34016. Similar to '__builtin_nan', except the return type is '_Decimal32'.
  34017. -- Built-in Function: _Decimal64 __builtin_nand64 (const char *str)
  34018. Similar to '__builtin_nan', except the return type is '_Decimal64'.
  34019. -- Built-in Function: _Decimal128 __builtin_nand128 (const char *str)
  34020. Similar to '__builtin_nan', except the return type is
  34021. '_Decimal128'.
  34022. -- Built-in Function: float __builtin_nanf (const char *str)
  34023. Similar to '__builtin_nan', except the return type is 'float'.
  34024. -- Built-in Function: long double __builtin_nanl (const char *str)
  34025. Similar to '__builtin_nan', except the return type is 'long
  34026. double'.
  34027. -- Built-in Function: _FloatN __builtin_nanfN (const char *str)
  34028. Similar to '__builtin_nan', except the return type is '_FloatN'.
  34029. -- Built-in Function: _FloatNx __builtin_nanfNx (const char *str)
  34030. Similar to '__builtin_nan', except the return type is '_FloatNx'.
  34031. -- Built-in Function: double __builtin_nans (const char *str)
  34032. Similar to '__builtin_nan', except the significand is forced to be
  34033. a signaling NaN. The 'nans' function is proposed by WG14 N965.
  34034. -- Built-in Function: float __builtin_nansf (const char *str)
  34035. Similar to '__builtin_nans', except the return type is 'float'.
  34036. -- Built-in Function: long double __builtin_nansl (const char *str)
  34037. Similar to '__builtin_nans', except the return type is 'long
  34038. double'.
  34039. -- Built-in Function: _FloatN __builtin_nansfN (const char *str)
  34040. Similar to '__builtin_nans', except the return type is '_FloatN'.
  34041. -- Built-in Function: _FloatNx __builtin_nansfNx (const char *str)
  34042. Similar to '__builtin_nans', except the return type is '_FloatNx'.
  34043. -- Built-in Function: int __builtin_ffs (int x)
  34044. Returns one plus the index of the least significant 1-bit of X, or
  34045. if X is zero, returns zero.
  34046. -- Built-in Function: int __builtin_clz (unsigned int x)
  34047. Returns the number of leading 0-bits in X, starting at the most
  34048. significant bit position. If X is 0, the result is undefined.
  34049. -- Built-in Function: int __builtin_ctz (unsigned int x)
  34050. Returns the number of trailing 0-bits in X, starting at the least
  34051. significant bit position. If X is 0, the result is undefined.
  34052. -- Built-in Function: int __builtin_clrsb (int x)
  34053. Returns the number of leading redundant sign bits in X, i.e. the
  34054. number of bits following the most significant bit that are
  34055. identical to it. There are no special cases for 0 or other values.
  34056. -- Built-in Function: int __builtin_popcount (unsigned int x)
  34057. Returns the number of 1-bits in X.
  34058. -- Built-in Function: int __builtin_parity (unsigned int x)
  34059. Returns the parity of X, i.e. the number of 1-bits in X modulo 2.
  34060. -- Built-in Function: int __builtin_ffsl (long)
  34061. Similar to '__builtin_ffs', except the argument type is 'long'.
  34062. -- Built-in Function: int __builtin_clzl (unsigned long)
  34063. Similar to '__builtin_clz', except the argument type is 'unsigned
  34064. long'.
  34065. -- Built-in Function: int __builtin_ctzl (unsigned long)
  34066. Similar to '__builtin_ctz', except the argument type is 'unsigned
  34067. long'.
  34068. -- Built-in Function: int __builtin_clrsbl (long)
  34069. Similar to '__builtin_clrsb', except the argument type is 'long'.
  34070. -- Built-in Function: int __builtin_popcountl (unsigned long)
  34071. Similar to '__builtin_popcount', except the argument type is
  34072. 'unsigned long'.
  34073. -- Built-in Function: int __builtin_parityl (unsigned long)
  34074. Similar to '__builtin_parity', except the argument type is
  34075. 'unsigned long'.
  34076. -- Built-in Function: int __builtin_ffsll (long long)
  34077. Similar to '__builtin_ffs', except the argument type is 'long
  34078. long'.
  34079. -- Built-in Function: int __builtin_clzll (unsigned long long)
  34080. Similar to '__builtin_clz', except the argument type is 'unsigned
  34081. long long'.
  34082. -- Built-in Function: int __builtin_ctzll (unsigned long long)
  34083. Similar to '__builtin_ctz', except the argument type is 'unsigned
  34084. long long'.
  34085. -- Built-in Function: int __builtin_clrsbll (long long)
  34086. Similar to '__builtin_clrsb', except the argument type is 'long
  34087. long'.
  34088. -- Built-in Function: int __builtin_popcountll (unsigned long long)
  34089. Similar to '__builtin_popcount', except the argument type is
  34090. 'unsigned long long'.
  34091. -- Built-in Function: int __builtin_parityll (unsigned long long)
  34092. Similar to '__builtin_parity', except the argument type is
  34093. 'unsigned long long'.
  34094. -- Built-in Function: double __builtin_powi (double, int)
  34095. Returns the first argument raised to the power of the second.
  34096. Unlike the 'pow' function no guarantees about precision and
  34097. rounding are made.
  34098. -- Built-in Function: float __builtin_powif (float, int)
  34099. Similar to '__builtin_powi', except the argument and return types
  34100. are 'float'.
  34101. -- Built-in Function: long double __builtin_powil (long double, int)
  34102. Similar to '__builtin_powi', except the argument and return types
  34103. are 'long double'.
  34104. -- Built-in Function: uint16_t __builtin_bswap16 (uint16_t x)
  34105. Returns X with the order of the bytes reversed; for example,
  34106. '0xaabb' becomes '0xbbaa'. Byte here always means exactly 8 bits.
  34107. -- Built-in Function: uint32_t __builtin_bswap32 (uint32_t x)
  34108. Similar to '__builtin_bswap16', except the argument and return
  34109. types are 32 bit.
  34110. -- Built-in Function: uint64_t __builtin_bswap64 (uint64_t x)
  34111. Similar to '__builtin_bswap32', except the argument and return
  34112. types are 64 bit.
  34113. -- Built-in Function: Pmode __builtin_extend_pointer (void * x)
  34114. On targets where the user visible pointer size is smaller than the
  34115. size of an actual hardware address this function returns the
  34116. extended user pointer. Targets where this is true included ILP32
  34117. mode on x86_64 or Aarch64. This function is mainly useful when
  34118. writing inline assembly code.
  34119. -- Built-in Function: int __builtin_goacc_parlevel_id (int x)
  34120. Returns the openacc gang, worker or vector id depending on whether
  34121. X is 0, 1 or 2.
  34122. -- Built-in Function: int __builtin_goacc_parlevel_size (int x)
  34123. Returns the openacc gang, worker or vector size depending on
  34124. whether X is 0, 1 or 2.
  34125. 
  34126. File: gcc.info, Node: Target Builtins, Next: Target Format Checks, Prev: Other Builtins, Up: C Extensions
  34127. 6.60 Built-in Functions Specific to Particular Target Machines
  34128. ==============================================================
  34129. On some target machines, GCC supports many built-in functions specific
  34130. to those machines. Generally these generate calls to specific machine
  34131. instructions, but allow the compiler to schedule those calls.
  34132. * Menu:
  34133. * AArch64 Built-in Functions::
  34134. * Alpha Built-in Functions::
  34135. * Altera Nios II Built-in Functions::
  34136. * ARC Built-in Functions::
  34137. * ARC SIMD Built-in Functions::
  34138. * ARM iWMMXt Built-in Functions::
  34139. * ARM C Language Extensions (ACLE)::
  34140. * ARM Floating Point Status and Control Intrinsics::
  34141. * ARM ARMv8-M Security Extensions::
  34142. * AVR Built-in Functions::
  34143. * Blackfin Built-in Functions::
  34144. * FR-V Built-in Functions::
  34145. * MIPS DSP Built-in Functions::
  34146. * MIPS Paired-Single Support::
  34147. * MIPS Loongson Built-in Functions::
  34148. * MIPS SIMD Architecture (MSA) Support::
  34149. * Other MIPS Built-in Functions::
  34150. * MSP430 Built-in Functions::
  34151. * NDS32 Built-in Functions::
  34152. * picoChip Built-in Functions::
  34153. * Basic PowerPC Built-in Functions::
  34154. * PowerPC AltiVec/VSX Built-in Functions::
  34155. * PowerPC Hardware Transactional Memory Built-in Functions::
  34156. * PowerPC Atomic Memory Operation Functions::
  34157. * RX Built-in Functions::
  34158. * S/390 System z Built-in Functions::
  34159. * SH Built-in Functions::
  34160. * SPARC VIS Built-in Functions::
  34161. * SPU Built-in Functions::
  34162. * TI C6X Built-in Functions::
  34163. * TILE-Gx Built-in Functions::
  34164. * TILEPro Built-in Functions::
  34165. * x86 Built-in Functions::
  34166. * x86 transactional memory intrinsics::
  34167. * x86 control-flow protection intrinsics::
  34168. 
  34169. File: gcc.info, Node: AArch64 Built-in Functions, Next: Alpha Built-in Functions, Up: Target Builtins
  34170. 6.60.1 AArch64 Built-in Functions
  34171. ---------------------------------
  34172. These built-in functions are available for the AArch64 family of
  34173. processors.
  34174. unsigned int __builtin_aarch64_get_fpcr ()
  34175. void __builtin_aarch64_set_fpcr (unsigned int)
  34176. unsigned int __builtin_aarch64_get_fpsr ()
  34177. void __builtin_aarch64_set_fpsr (unsigned int)
  34178. 
  34179. File: gcc.info, Node: Alpha Built-in Functions, Next: Altera Nios II Built-in Functions, Prev: AArch64 Built-in Functions, Up: Target Builtins
  34180. 6.60.2 Alpha Built-in Functions
  34181. -------------------------------
  34182. These built-in functions are available for the Alpha family of
  34183. processors, depending on the command-line switches used.
  34184. The following built-in functions are always available. They all
  34185. generate the machine instruction that is part of the name.
  34186. long __builtin_alpha_implver (void)
  34187. long __builtin_alpha_rpcc (void)
  34188. long __builtin_alpha_amask (long)
  34189. long __builtin_alpha_cmpbge (long, long)
  34190. long __builtin_alpha_extbl (long, long)
  34191. long __builtin_alpha_extwl (long, long)
  34192. long __builtin_alpha_extll (long, long)
  34193. long __builtin_alpha_extql (long, long)
  34194. long __builtin_alpha_extwh (long, long)
  34195. long __builtin_alpha_extlh (long, long)
  34196. long __builtin_alpha_extqh (long, long)
  34197. long __builtin_alpha_insbl (long, long)
  34198. long __builtin_alpha_inswl (long, long)
  34199. long __builtin_alpha_insll (long, long)
  34200. long __builtin_alpha_insql (long, long)
  34201. long __builtin_alpha_inswh (long, long)
  34202. long __builtin_alpha_inslh (long, long)
  34203. long __builtin_alpha_insqh (long, long)
  34204. long __builtin_alpha_mskbl (long, long)
  34205. long __builtin_alpha_mskwl (long, long)
  34206. long __builtin_alpha_mskll (long, long)
  34207. long __builtin_alpha_mskql (long, long)
  34208. long __builtin_alpha_mskwh (long, long)
  34209. long __builtin_alpha_msklh (long, long)
  34210. long __builtin_alpha_mskqh (long, long)
  34211. long __builtin_alpha_umulh (long, long)
  34212. long __builtin_alpha_zap (long, long)
  34213. long __builtin_alpha_zapnot (long, long)
  34214. The following built-in functions are always with '-mmax' or '-mcpu=CPU'
  34215. where CPU is 'pca56' or later. They all generate the machine
  34216. instruction that is part of the name.
  34217. long __builtin_alpha_pklb (long)
  34218. long __builtin_alpha_pkwb (long)
  34219. long __builtin_alpha_unpkbl (long)
  34220. long __builtin_alpha_unpkbw (long)
  34221. long __builtin_alpha_minub8 (long, long)
  34222. long __builtin_alpha_minsb8 (long, long)
  34223. long __builtin_alpha_minuw4 (long, long)
  34224. long __builtin_alpha_minsw4 (long, long)
  34225. long __builtin_alpha_maxub8 (long, long)
  34226. long __builtin_alpha_maxsb8 (long, long)
  34227. long __builtin_alpha_maxuw4 (long, long)
  34228. long __builtin_alpha_maxsw4 (long, long)
  34229. long __builtin_alpha_perr (long, long)
  34230. The following built-in functions are always with '-mcix' or '-mcpu=CPU'
  34231. where CPU is 'ev67' or later. They all generate the machine instruction
  34232. that is part of the name.
  34233. long __builtin_alpha_cttz (long)
  34234. long __builtin_alpha_ctlz (long)
  34235. long __builtin_alpha_ctpop (long)
  34236. The following built-in functions are available on systems that use the
  34237. OSF/1 PALcode. Normally they invoke the 'rduniq' and 'wruniq' PAL
  34238. calls, but when invoked with '-mtls-kernel', they invoke 'rdval' and
  34239. 'wrval'.
  34240. void *__builtin_thread_pointer (void)
  34241. void __builtin_set_thread_pointer (void *)
  34242. 
  34243. File: gcc.info, Node: Altera Nios II Built-in Functions, Next: ARC Built-in Functions, Prev: Alpha Built-in Functions, Up: Target Builtins
  34244. 6.60.3 Altera Nios II Built-in Functions
  34245. ----------------------------------------
  34246. These built-in functions are available for the Altera Nios II family of
  34247. processors.
  34248. The following built-in functions are always available. They all
  34249. generate the machine instruction that is part of the name.
  34250. int __builtin_ldbio (volatile const void *)
  34251. int __builtin_ldbuio (volatile const void *)
  34252. int __builtin_ldhio (volatile const void *)
  34253. int __builtin_ldhuio (volatile const void *)
  34254. int __builtin_ldwio (volatile const void *)
  34255. void __builtin_stbio (volatile void *, int)
  34256. void __builtin_sthio (volatile void *, int)
  34257. void __builtin_stwio (volatile void *, int)
  34258. void __builtin_sync (void)
  34259. int __builtin_rdctl (int)
  34260. int __builtin_rdprs (int, int)
  34261. void __builtin_wrctl (int, int)
  34262. void __builtin_flushd (volatile void *)
  34263. void __builtin_flushda (volatile void *)
  34264. int __builtin_wrpie (int);
  34265. void __builtin_eni (int);
  34266. int __builtin_ldex (volatile const void *)
  34267. int __builtin_stex (volatile void *, int)
  34268. int __builtin_ldsex (volatile const void *)
  34269. int __builtin_stsex (volatile void *, int)
  34270. The following built-in functions are always available. They all
  34271. generate a Nios II Custom Instruction. The name of the function
  34272. represents the types that the function takes and returns. The letter
  34273. before the 'n' is the return type or void if absent. The 'n' represents
  34274. the first parameter to all the custom instructions, the custom
  34275. instruction number. The two letters after the 'n' represent the up to
  34276. two parameters to the function.
  34277. The letters represent the following data types:
  34278. '<no letter>'
  34279. 'void' for return type and no parameter for parameter types.
  34280. 'i'
  34281. 'int' for return type and parameter type
  34282. 'f'
  34283. 'float' for return type and parameter type
  34284. 'p'
  34285. 'void *' for return type and parameter type
  34286. And the function names are:
  34287. void __builtin_custom_n (void)
  34288. void __builtin_custom_ni (int)
  34289. void __builtin_custom_nf (float)
  34290. void __builtin_custom_np (void *)
  34291. void __builtin_custom_nii (int, int)
  34292. void __builtin_custom_nif (int, float)
  34293. void __builtin_custom_nip (int, void *)
  34294. void __builtin_custom_nfi (float, int)
  34295. void __builtin_custom_nff (float, float)
  34296. void __builtin_custom_nfp (float, void *)
  34297. void __builtin_custom_npi (void *, int)
  34298. void __builtin_custom_npf (void *, float)
  34299. void __builtin_custom_npp (void *, void *)
  34300. int __builtin_custom_in (void)
  34301. int __builtin_custom_ini (int)
  34302. int __builtin_custom_inf (float)
  34303. int __builtin_custom_inp (void *)
  34304. int __builtin_custom_inii (int, int)
  34305. int __builtin_custom_inif (int, float)
  34306. int __builtin_custom_inip (int, void *)
  34307. int __builtin_custom_infi (float, int)
  34308. int __builtin_custom_inff (float, float)
  34309. int __builtin_custom_infp (float, void *)
  34310. int __builtin_custom_inpi (void *, int)
  34311. int __builtin_custom_inpf (void *, float)
  34312. int __builtin_custom_inpp (void *, void *)
  34313. float __builtin_custom_fn (void)
  34314. float __builtin_custom_fni (int)
  34315. float __builtin_custom_fnf (float)
  34316. float __builtin_custom_fnp (void *)
  34317. float __builtin_custom_fnii (int, int)
  34318. float __builtin_custom_fnif (int, float)
  34319. float __builtin_custom_fnip (int, void *)
  34320. float __builtin_custom_fnfi (float, int)
  34321. float __builtin_custom_fnff (float, float)
  34322. float __builtin_custom_fnfp (float, void *)
  34323. float __builtin_custom_fnpi (void *, int)
  34324. float __builtin_custom_fnpf (void *, float)
  34325. float __builtin_custom_fnpp (void *, void *)
  34326. void * __builtin_custom_pn (void)
  34327. void * __builtin_custom_pni (int)
  34328. void * __builtin_custom_pnf (float)
  34329. void * __builtin_custom_pnp (void *)
  34330. void * __builtin_custom_pnii (int, int)
  34331. void * __builtin_custom_pnif (int, float)
  34332. void * __builtin_custom_pnip (int, void *)
  34333. void * __builtin_custom_pnfi (float, int)
  34334. void * __builtin_custom_pnff (float, float)
  34335. void * __builtin_custom_pnfp (float, void *)
  34336. void * __builtin_custom_pnpi (void *, int)
  34337. void * __builtin_custom_pnpf (void *, float)
  34338. void * __builtin_custom_pnpp (void *, void *)
  34339. 
  34340. File: gcc.info, Node: ARC Built-in Functions, Next: ARC SIMD Built-in Functions, Prev: Altera Nios II Built-in Functions, Up: Target Builtins
  34341. 6.60.4 ARC Built-in Functions
  34342. -----------------------------
  34343. The following built-in functions are provided for ARC targets. The
  34344. built-ins generate the corresponding assembly instructions. In the
  34345. examples given below, the generated code often requires an operand or
  34346. result to be in a register. Where necessary further code will be
  34347. generated to ensure this is true, but for brevity this is not described
  34348. in each case.
  34349. _Note:_ Using a built-in to generate an instruction not supported by a
  34350. target may cause problems. At present the compiler is not guaranteed to
  34351. detect such misuse, and as a result an internal compiler error may be
  34352. generated.
  34353. -- Built-in Function: int __builtin_arc_aligned (void *VAL, int
  34354. ALIGNVAL)
  34355. Return 1 if VAL is known to have the byte alignment given by
  34356. ALIGNVAL, otherwise return 0. Note that this is different from
  34357. __alignof__(*(char *)VAL) >= alignval
  34358. because __alignof__ sees only the type of the dereference, whereas
  34359. __builtin_arc_align uses alignment information from the pointer as
  34360. well as from the pointed-to type. The information available will
  34361. depend on optimization level.
  34362. -- Built-in Function: void __builtin_arc_brk (void)
  34363. Generates
  34364. brk
  34365. -- Built-in Function: unsigned int __builtin_arc_core_read (unsigned
  34366. int REGNO)
  34367. The operand is the number of a register to be read. Generates:
  34368. mov DEST, rREGNO
  34369. where the value in DEST will be the result returned from the
  34370. built-in.
  34371. -- Built-in Function: void __builtin_arc_core_write (unsigned int
  34372. REGNO, unsigned int VAL)
  34373. The first operand is the number of a register to be written, the
  34374. second operand is a compile time constant to write into that
  34375. register. Generates:
  34376. mov rREGNO, VAL
  34377. -- Built-in Function: int __builtin_arc_divaw (int A, int B)
  34378. Only available if either '-mcpu=ARC700' or '-meA' is set.
  34379. Generates:
  34380. divaw DEST, A, B
  34381. where the value in DEST will be the result returned from the
  34382. built-in.
  34383. -- Built-in Function: void __builtin_arc_flag (unsigned int A)
  34384. Generates
  34385. flag A
  34386. -- Built-in Function: unsigned int __builtin_arc_lr (unsigned int AUXR)
  34387. The operand, AUXV, is the address of an auxiliary register and must
  34388. be a compile time constant. Generates:
  34389. lr DEST, [AUXR]
  34390. Where the value in DEST will be the result returned from the
  34391. built-in.
  34392. -- Built-in Function: void __builtin_arc_mul64 (int A, int B)
  34393. Only available with '-mmul64'. Generates:
  34394. mul64 A, B
  34395. -- Built-in Function: void __builtin_arc_mulu64 (unsigned int A,
  34396. unsigned int B)
  34397. Only available with '-mmul64'. Generates:
  34398. mulu64 A, B
  34399. -- Built-in Function: void __builtin_arc_nop (void)
  34400. Generates:
  34401. nop
  34402. -- Built-in Function: int __builtin_arc_norm (int SRC)
  34403. Only valid if the 'norm' instruction is available through the
  34404. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  34405. norm DEST, SRC
  34406. Where the value in DEST will be the result returned from the
  34407. built-in.
  34408. -- Built-in Function: short int __builtin_arc_normw (short int SRC)
  34409. Only valid if the 'normw' instruction is available through the
  34410. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  34411. normw DEST, SRC
  34412. Where the value in DEST will be the result returned from the
  34413. built-in.
  34414. -- Built-in Function: void __builtin_arc_rtie (void)
  34415. Generates:
  34416. rtie
  34417. -- Built-in Function: void __builtin_arc_sleep (int A
  34418. Generates:
  34419. sleep A
  34420. -- Built-in Function: void __builtin_arc_sr (unsigned int AUXR,
  34421. unsigned int VAL)
  34422. The first argument, AUXV, is the address of an auxiliary register,
  34423. the second argument, VAL, is a compile time constant to be written
  34424. to the register. Generates:
  34425. sr AUXR, [VAL]
  34426. -- Built-in Function: int __builtin_arc_swap (int SRC)
  34427. Only valid with '-mswap'. Generates:
  34428. swap DEST, SRC
  34429. Where the value in DEST will be the result returned from the
  34430. built-in.
  34431. -- Built-in Function: void __builtin_arc_swi (void)
  34432. Generates:
  34433. swi
  34434. -- Built-in Function: void __builtin_arc_sync (void)
  34435. Only available with '-mcpu=ARC700'. Generates:
  34436. sync
  34437. -- Built-in Function: void __builtin_arc_trap_s (unsigned int C)
  34438. Only available with '-mcpu=ARC700'. Generates:
  34439. trap_s C
  34440. -- Built-in Function: void __builtin_arc_unimp_s (void)
  34441. Only available with '-mcpu=ARC700'. Generates:
  34442. unimp_s
  34443. The instructions generated by the following builtins are not considered
  34444. as candidates for scheduling. They are not moved around by the compiler
  34445. during scheduling, and thus can be expected to appear where they are put
  34446. in the C code:
  34447. __builtin_arc_brk()
  34448. __builtin_arc_core_read()
  34449. __builtin_arc_core_write()
  34450. __builtin_arc_flag()
  34451. __builtin_arc_lr()
  34452. __builtin_arc_sleep()
  34453. __builtin_arc_sr()
  34454. __builtin_arc_swi()
  34455. 
  34456. File: gcc.info, Node: ARC SIMD Built-in Functions, Next: ARM iWMMXt Built-in Functions, Prev: ARC Built-in Functions, Up: Target Builtins
  34457. 6.60.5 ARC SIMD Built-in Functions
  34458. ----------------------------------
  34459. SIMD builtins provided by the compiler can be used to generate the
  34460. vector instructions. This section describes the available builtins and
  34461. their usage in programs. With the '-msimd' option, the compiler
  34462. provides 128-bit vector types, which can be specified using the
  34463. 'vector_size' attribute. The header file 'arc-simd.h' can be included
  34464. to use the following predefined types:
  34465. typedef int __v4si __attribute__((vector_size(16)));
  34466. typedef short __v8hi __attribute__((vector_size(16)));
  34467. These types can be used to define 128-bit variables. The built-in
  34468. functions listed in the following section can be used on these variables
  34469. to generate the vector operations.
  34470. For all builtins, '__builtin_arc_SOMEINSN', the header file
  34471. 'arc-simd.h' also provides equivalent macros called '_SOMEINSN' that can
  34472. be used for programming ease and improved readability. The following
  34473. macros for DMA control are also provided:
  34474. #define _setup_dma_in_channel_reg _vdiwr
  34475. #define _setup_dma_out_channel_reg _vdowr
  34476. The following is a complete list of all the SIMD built-ins provided for
  34477. ARC, grouped by calling signature.
  34478. The following take two '__v8hi' arguments and return a '__v8hi' result:
  34479. __v8hi __builtin_arc_vaddaw (__v8hi, __v8hi)
  34480. __v8hi __builtin_arc_vaddw (__v8hi, __v8hi)
  34481. __v8hi __builtin_arc_vand (__v8hi, __v8hi)
  34482. __v8hi __builtin_arc_vandaw (__v8hi, __v8hi)
  34483. __v8hi __builtin_arc_vavb (__v8hi, __v8hi)
  34484. __v8hi __builtin_arc_vavrb (__v8hi, __v8hi)
  34485. __v8hi __builtin_arc_vbic (__v8hi, __v8hi)
  34486. __v8hi __builtin_arc_vbicaw (__v8hi, __v8hi)
  34487. __v8hi __builtin_arc_vdifaw (__v8hi, __v8hi)
  34488. __v8hi __builtin_arc_vdifw (__v8hi, __v8hi)
  34489. __v8hi __builtin_arc_veqw (__v8hi, __v8hi)
  34490. __v8hi __builtin_arc_vh264f (__v8hi, __v8hi)
  34491. __v8hi __builtin_arc_vh264ft (__v8hi, __v8hi)
  34492. __v8hi __builtin_arc_vh264fw (__v8hi, __v8hi)
  34493. __v8hi __builtin_arc_vlew (__v8hi, __v8hi)
  34494. __v8hi __builtin_arc_vltw (__v8hi, __v8hi)
  34495. __v8hi __builtin_arc_vmaxaw (__v8hi, __v8hi)
  34496. __v8hi __builtin_arc_vmaxw (__v8hi, __v8hi)
  34497. __v8hi __builtin_arc_vminaw (__v8hi, __v8hi)
  34498. __v8hi __builtin_arc_vminw (__v8hi, __v8hi)
  34499. __v8hi __builtin_arc_vmr1aw (__v8hi, __v8hi)
  34500. __v8hi __builtin_arc_vmr1w (__v8hi, __v8hi)
  34501. __v8hi __builtin_arc_vmr2aw (__v8hi, __v8hi)
  34502. __v8hi __builtin_arc_vmr2w (__v8hi, __v8hi)
  34503. __v8hi __builtin_arc_vmr3aw (__v8hi, __v8hi)
  34504. __v8hi __builtin_arc_vmr3w (__v8hi, __v8hi)
  34505. __v8hi __builtin_arc_vmr4aw (__v8hi, __v8hi)
  34506. __v8hi __builtin_arc_vmr4w (__v8hi, __v8hi)
  34507. __v8hi __builtin_arc_vmr5aw (__v8hi, __v8hi)
  34508. __v8hi __builtin_arc_vmr5w (__v8hi, __v8hi)
  34509. __v8hi __builtin_arc_vmr6aw (__v8hi, __v8hi)
  34510. __v8hi __builtin_arc_vmr6w (__v8hi, __v8hi)
  34511. __v8hi __builtin_arc_vmr7aw (__v8hi, __v8hi)
  34512. __v8hi __builtin_arc_vmr7w (__v8hi, __v8hi)
  34513. __v8hi __builtin_arc_vmrb (__v8hi, __v8hi)
  34514. __v8hi __builtin_arc_vmulaw (__v8hi, __v8hi)
  34515. __v8hi __builtin_arc_vmulfaw (__v8hi, __v8hi)
  34516. __v8hi __builtin_arc_vmulfw (__v8hi, __v8hi)
  34517. __v8hi __builtin_arc_vmulw (__v8hi, __v8hi)
  34518. __v8hi __builtin_arc_vnew (__v8hi, __v8hi)
  34519. __v8hi __builtin_arc_vor (__v8hi, __v8hi)
  34520. __v8hi __builtin_arc_vsubaw (__v8hi, __v8hi)
  34521. __v8hi __builtin_arc_vsubw (__v8hi, __v8hi)
  34522. __v8hi __builtin_arc_vsummw (__v8hi, __v8hi)
  34523. __v8hi __builtin_arc_vvc1f (__v8hi, __v8hi)
  34524. __v8hi __builtin_arc_vvc1ft (__v8hi, __v8hi)
  34525. __v8hi __builtin_arc_vxor (__v8hi, __v8hi)
  34526. __v8hi __builtin_arc_vxoraw (__v8hi, __v8hi)
  34527. The following take one '__v8hi' and one 'int' argument and return a
  34528. '__v8hi' result:
  34529. __v8hi __builtin_arc_vbaddw (__v8hi, int)
  34530. __v8hi __builtin_arc_vbmaxw (__v8hi, int)
  34531. __v8hi __builtin_arc_vbminw (__v8hi, int)
  34532. __v8hi __builtin_arc_vbmulaw (__v8hi, int)
  34533. __v8hi __builtin_arc_vbmulfw (__v8hi, int)
  34534. __v8hi __builtin_arc_vbmulw (__v8hi, int)
  34535. __v8hi __builtin_arc_vbrsubw (__v8hi, int)
  34536. __v8hi __builtin_arc_vbsubw (__v8hi, int)
  34537. The following take one '__v8hi' argument and one 'int' argument which
  34538. must be a 3-bit compile time constant indicating a register number
  34539. I0-I7. They return a '__v8hi' result.
  34540. __v8hi __builtin_arc_vasrw (__v8hi, const int)
  34541. __v8hi __builtin_arc_vsr8 (__v8hi, const int)
  34542. __v8hi __builtin_arc_vsr8aw (__v8hi, const int)
  34543. The following take one '__v8hi' argument and one 'int' argument which
  34544. must be a 6-bit compile time constant. They return a '__v8hi' result.
  34545. __v8hi __builtin_arc_vasrpwbi (__v8hi, const int)
  34546. __v8hi __builtin_arc_vasrrpwbi (__v8hi, const int)
  34547. __v8hi __builtin_arc_vasrrwi (__v8hi, const int)
  34548. __v8hi __builtin_arc_vasrsrwi (__v8hi, const int)
  34549. __v8hi __builtin_arc_vasrwi (__v8hi, const int)
  34550. __v8hi __builtin_arc_vsr8awi (__v8hi, const int)
  34551. __v8hi __builtin_arc_vsr8i (__v8hi, const int)
  34552. The following take one '__v8hi' argument and one 'int' argument which
  34553. must be a 8-bit compile time constant. They return a '__v8hi' result.
  34554. __v8hi __builtin_arc_vd6tapf (__v8hi, const int)
  34555. __v8hi __builtin_arc_vmvaw (__v8hi, const int)
  34556. __v8hi __builtin_arc_vmvw (__v8hi, const int)
  34557. __v8hi __builtin_arc_vmvzw (__v8hi, const int)
  34558. The following take two 'int' arguments, the second of which which must
  34559. be a 8-bit compile time constant. They return a '__v8hi' result:
  34560. __v8hi __builtin_arc_vmovaw (int, const int)
  34561. __v8hi __builtin_arc_vmovw (int, const int)
  34562. __v8hi __builtin_arc_vmovzw (int, const int)
  34563. The following take a single '__v8hi' argument and return a '__v8hi'
  34564. result:
  34565. __v8hi __builtin_arc_vabsaw (__v8hi)
  34566. __v8hi __builtin_arc_vabsw (__v8hi)
  34567. __v8hi __builtin_arc_vaddsuw (__v8hi)
  34568. __v8hi __builtin_arc_vexch1 (__v8hi)
  34569. __v8hi __builtin_arc_vexch2 (__v8hi)
  34570. __v8hi __builtin_arc_vexch4 (__v8hi)
  34571. __v8hi __builtin_arc_vsignw (__v8hi)
  34572. __v8hi __builtin_arc_vupbaw (__v8hi)
  34573. __v8hi __builtin_arc_vupbw (__v8hi)
  34574. __v8hi __builtin_arc_vupsbaw (__v8hi)
  34575. __v8hi __builtin_arc_vupsbw (__v8hi)
  34576. The following take two 'int' arguments and return no result:
  34577. void __builtin_arc_vdirun (int, int)
  34578. void __builtin_arc_vdorun (int, int)
  34579. The following take two 'int' arguments and return no result. The first
  34580. argument must a 3-bit compile time constant indicating one of the
  34581. DR0-DR7 DMA setup channels:
  34582. void __builtin_arc_vdiwr (const int, int)
  34583. void __builtin_arc_vdowr (const int, int)
  34584. The following take an 'int' argument and return no result:
  34585. void __builtin_arc_vendrec (int)
  34586. void __builtin_arc_vrec (int)
  34587. void __builtin_arc_vrecrun (int)
  34588. void __builtin_arc_vrun (int)
  34589. The following take a '__v8hi' argument and two 'int' arguments and
  34590. return a '__v8hi' result. The second argument must be a 3-bit compile
  34591. time constants, indicating one the registers I0-I7, and the third
  34592. argument must be an 8-bit compile time constant.
  34593. _Note:_ Although the equivalent hardware instructions do not take an
  34594. SIMD register as an operand, these builtins overwrite the relevant bits
  34595. of the '__v8hi' register provided as the first argument with the value
  34596. loaded from the '[Ib, u8]' location in the SDM.
  34597. __v8hi __builtin_arc_vld32 (__v8hi, const int, const int)
  34598. __v8hi __builtin_arc_vld32wh (__v8hi, const int, const int)
  34599. __v8hi __builtin_arc_vld32wl (__v8hi, const int, const int)
  34600. __v8hi __builtin_arc_vld64 (__v8hi, const int, const int)
  34601. The following take two 'int' arguments and return a '__v8hi' result.
  34602. The first argument must be a 3-bit compile time constants, indicating
  34603. one the registers I0-I7, and the second argument must be an 8-bit
  34604. compile time constant.
  34605. __v8hi __builtin_arc_vld128 (const int, const int)
  34606. __v8hi __builtin_arc_vld64w (const int, const int)
  34607. The following take a '__v8hi' argument and two 'int' arguments and
  34608. return no result. The second argument must be a 3-bit compile time
  34609. constants, indicating one the registers I0-I7, and the third argument
  34610. must be an 8-bit compile time constant.
  34611. void __builtin_arc_vst128 (__v8hi, const int, const int)
  34612. void __builtin_arc_vst64 (__v8hi, const int, const int)
  34613. The following take a '__v8hi' argument and three 'int' arguments and
  34614. return no result. The second argument must be a 3-bit compile-time
  34615. constant, identifying the 16-bit sub-register to be stored, the third
  34616. argument must be a 3-bit compile time constants, indicating one the
  34617. registers I0-I7, and the fourth argument must be an 8-bit compile time
  34618. constant.
  34619. void __builtin_arc_vst16_n (__v8hi, const int, const int, const int)
  34620. void __builtin_arc_vst32_n (__v8hi, const int, const int, const int)
  34621. 
  34622. File: gcc.info, Node: ARM iWMMXt Built-in Functions, Next: ARM C Language Extensions (ACLE), Prev: ARC SIMD Built-in Functions, Up: Target Builtins
  34623. 6.60.6 ARM iWMMXt Built-in Functions
  34624. ------------------------------------
  34625. These built-in functions are available for the ARM family of processors
  34626. when the '-mcpu=iwmmxt' switch is used:
  34627. typedef int v2si __attribute__ ((vector_size (8)));
  34628. typedef short v4hi __attribute__ ((vector_size (8)));
  34629. typedef char v8qi __attribute__ ((vector_size (8)));
  34630. int __builtin_arm_getwcgr0 (void)
  34631. void __builtin_arm_setwcgr0 (int)
  34632. int __builtin_arm_getwcgr1 (void)
  34633. void __builtin_arm_setwcgr1 (int)
  34634. int __builtin_arm_getwcgr2 (void)
  34635. void __builtin_arm_setwcgr2 (int)
  34636. int __builtin_arm_getwcgr3 (void)
  34637. void __builtin_arm_setwcgr3 (int)
  34638. int __builtin_arm_textrmsb (v8qi, int)
  34639. int __builtin_arm_textrmsh (v4hi, int)
  34640. int __builtin_arm_textrmsw (v2si, int)
  34641. int __builtin_arm_textrmub (v8qi, int)
  34642. int __builtin_arm_textrmuh (v4hi, int)
  34643. int __builtin_arm_textrmuw (v2si, int)
  34644. v8qi __builtin_arm_tinsrb (v8qi, int, int)
  34645. v4hi __builtin_arm_tinsrh (v4hi, int, int)
  34646. v2si __builtin_arm_tinsrw (v2si, int, int)
  34647. long long __builtin_arm_tmia (long long, int, int)
  34648. long long __builtin_arm_tmiabb (long long, int, int)
  34649. long long __builtin_arm_tmiabt (long long, int, int)
  34650. long long __builtin_arm_tmiaph (long long, int, int)
  34651. long long __builtin_arm_tmiatb (long long, int, int)
  34652. long long __builtin_arm_tmiatt (long long, int, int)
  34653. int __builtin_arm_tmovmskb (v8qi)
  34654. int __builtin_arm_tmovmskh (v4hi)
  34655. int __builtin_arm_tmovmskw (v2si)
  34656. long long __builtin_arm_waccb (v8qi)
  34657. long long __builtin_arm_wacch (v4hi)
  34658. long long __builtin_arm_waccw (v2si)
  34659. v8qi __builtin_arm_waddb (v8qi, v8qi)
  34660. v8qi __builtin_arm_waddbss (v8qi, v8qi)
  34661. v8qi __builtin_arm_waddbus (v8qi, v8qi)
  34662. v4hi __builtin_arm_waddh (v4hi, v4hi)
  34663. v4hi __builtin_arm_waddhss (v4hi, v4hi)
  34664. v4hi __builtin_arm_waddhus (v4hi, v4hi)
  34665. v2si __builtin_arm_waddw (v2si, v2si)
  34666. v2si __builtin_arm_waddwss (v2si, v2si)
  34667. v2si __builtin_arm_waddwus (v2si, v2si)
  34668. v8qi __builtin_arm_walign (v8qi, v8qi, int)
  34669. long long __builtin_arm_wand(long long, long long)
  34670. long long __builtin_arm_wandn (long long, long long)
  34671. v8qi __builtin_arm_wavg2b (v8qi, v8qi)
  34672. v8qi __builtin_arm_wavg2br (v8qi, v8qi)
  34673. v4hi __builtin_arm_wavg2h (v4hi, v4hi)
  34674. v4hi __builtin_arm_wavg2hr (v4hi, v4hi)
  34675. v8qi __builtin_arm_wcmpeqb (v8qi, v8qi)
  34676. v4hi __builtin_arm_wcmpeqh (v4hi, v4hi)
  34677. v2si __builtin_arm_wcmpeqw (v2si, v2si)
  34678. v8qi __builtin_arm_wcmpgtsb (v8qi, v8qi)
  34679. v4hi __builtin_arm_wcmpgtsh (v4hi, v4hi)
  34680. v2si __builtin_arm_wcmpgtsw (v2si, v2si)
  34681. v8qi __builtin_arm_wcmpgtub (v8qi, v8qi)
  34682. v4hi __builtin_arm_wcmpgtuh (v4hi, v4hi)
  34683. v2si __builtin_arm_wcmpgtuw (v2si, v2si)
  34684. long long __builtin_arm_wmacs (long long, v4hi, v4hi)
  34685. long long __builtin_arm_wmacsz (v4hi, v4hi)
  34686. long long __builtin_arm_wmacu (long long, v4hi, v4hi)
  34687. long long __builtin_arm_wmacuz (v4hi, v4hi)
  34688. v4hi __builtin_arm_wmadds (v4hi, v4hi)
  34689. v4hi __builtin_arm_wmaddu (v4hi, v4hi)
  34690. v8qi __builtin_arm_wmaxsb (v8qi, v8qi)
  34691. v4hi __builtin_arm_wmaxsh (v4hi, v4hi)
  34692. v2si __builtin_arm_wmaxsw (v2si, v2si)
  34693. v8qi __builtin_arm_wmaxub (v8qi, v8qi)
  34694. v4hi __builtin_arm_wmaxuh (v4hi, v4hi)
  34695. v2si __builtin_arm_wmaxuw (v2si, v2si)
  34696. v8qi __builtin_arm_wminsb (v8qi, v8qi)
  34697. v4hi __builtin_arm_wminsh (v4hi, v4hi)
  34698. v2si __builtin_arm_wminsw (v2si, v2si)
  34699. v8qi __builtin_arm_wminub (v8qi, v8qi)
  34700. v4hi __builtin_arm_wminuh (v4hi, v4hi)
  34701. v2si __builtin_arm_wminuw (v2si, v2si)
  34702. v4hi __builtin_arm_wmulsm (v4hi, v4hi)
  34703. v4hi __builtin_arm_wmulul (v4hi, v4hi)
  34704. v4hi __builtin_arm_wmulum (v4hi, v4hi)
  34705. long long __builtin_arm_wor (long long, long long)
  34706. v2si __builtin_arm_wpackdss (long long, long long)
  34707. v2si __builtin_arm_wpackdus (long long, long long)
  34708. v8qi __builtin_arm_wpackhss (v4hi, v4hi)
  34709. v8qi __builtin_arm_wpackhus (v4hi, v4hi)
  34710. v4hi __builtin_arm_wpackwss (v2si, v2si)
  34711. v4hi __builtin_arm_wpackwus (v2si, v2si)
  34712. long long __builtin_arm_wrord (long long, long long)
  34713. long long __builtin_arm_wrordi (long long, int)
  34714. v4hi __builtin_arm_wrorh (v4hi, long long)
  34715. v4hi __builtin_arm_wrorhi (v4hi, int)
  34716. v2si __builtin_arm_wrorw (v2si, long long)
  34717. v2si __builtin_arm_wrorwi (v2si, int)
  34718. v2si __builtin_arm_wsadb (v2si, v8qi, v8qi)
  34719. v2si __builtin_arm_wsadbz (v8qi, v8qi)
  34720. v2si __builtin_arm_wsadh (v2si, v4hi, v4hi)
  34721. v2si __builtin_arm_wsadhz (v4hi, v4hi)
  34722. v4hi __builtin_arm_wshufh (v4hi, int)
  34723. long long __builtin_arm_wslld (long long, long long)
  34724. long long __builtin_arm_wslldi (long long, int)
  34725. v4hi __builtin_arm_wsllh (v4hi, long long)
  34726. v4hi __builtin_arm_wsllhi (v4hi, int)
  34727. v2si __builtin_arm_wsllw (v2si, long long)
  34728. v2si __builtin_arm_wsllwi (v2si, int)
  34729. long long __builtin_arm_wsrad (long long, long long)
  34730. long long __builtin_arm_wsradi (long long, int)
  34731. v4hi __builtin_arm_wsrah (v4hi, long long)
  34732. v4hi __builtin_arm_wsrahi (v4hi, int)
  34733. v2si __builtin_arm_wsraw (v2si, long long)
  34734. v2si __builtin_arm_wsrawi (v2si, int)
  34735. long long __builtin_arm_wsrld (long long, long long)
  34736. long long __builtin_arm_wsrldi (long long, int)
  34737. v4hi __builtin_arm_wsrlh (v4hi, long long)
  34738. v4hi __builtin_arm_wsrlhi (v4hi, int)
  34739. v2si __builtin_arm_wsrlw (v2si, long long)
  34740. v2si __builtin_arm_wsrlwi (v2si, int)
  34741. v8qi __builtin_arm_wsubb (v8qi, v8qi)
  34742. v8qi __builtin_arm_wsubbss (v8qi, v8qi)
  34743. v8qi __builtin_arm_wsubbus (v8qi, v8qi)
  34744. v4hi __builtin_arm_wsubh (v4hi, v4hi)
  34745. v4hi __builtin_arm_wsubhss (v4hi, v4hi)
  34746. v4hi __builtin_arm_wsubhus (v4hi, v4hi)
  34747. v2si __builtin_arm_wsubw (v2si, v2si)
  34748. v2si __builtin_arm_wsubwss (v2si, v2si)
  34749. v2si __builtin_arm_wsubwus (v2si, v2si)
  34750. v4hi __builtin_arm_wunpckehsb (v8qi)
  34751. v2si __builtin_arm_wunpckehsh (v4hi)
  34752. long long __builtin_arm_wunpckehsw (v2si)
  34753. v4hi __builtin_arm_wunpckehub (v8qi)
  34754. v2si __builtin_arm_wunpckehuh (v4hi)
  34755. long long __builtin_arm_wunpckehuw (v2si)
  34756. v4hi __builtin_arm_wunpckelsb (v8qi)
  34757. v2si __builtin_arm_wunpckelsh (v4hi)
  34758. long long __builtin_arm_wunpckelsw (v2si)
  34759. v4hi __builtin_arm_wunpckelub (v8qi)
  34760. v2si __builtin_arm_wunpckeluh (v4hi)
  34761. long long __builtin_arm_wunpckeluw (v2si)
  34762. v8qi __builtin_arm_wunpckihb (v8qi, v8qi)
  34763. v4hi __builtin_arm_wunpckihh (v4hi, v4hi)
  34764. v2si __builtin_arm_wunpckihw (v2si, v2si)
  34765. v8qi __builtin_arm_wunpckilb (v8qi, v8qi)
  34766. v4hi __builtin_arm_wunpckilh (v4hi, v4hi)
  34767. v2si __builtin_arm_wunpckilw (v2si, v2si)
  34768. long long __builtin_arm_wxor (long long, long long)
  34769. long long __builtin_arm_wzero ()
  34770. 
  34771. 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
  34772. 6.60.7 ARM C Language Extensions (ACLE)
  34773. ---------------------------------------
  34774. GCC implements extensions for C as described in the ARM C Language
  34775. Extensions (ACLE) specification, which can be found at
  34776. <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053c/IHI0053C_acle_2_0.pdf>.
  34777. As a part of ACLE, GCC implements extensions for Advanced SIMD as
  34778. described in the ARM C Language Extensions Specification. The complete
  34779. list of Advanced SIMD intrinsics can be found at
  34780. <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0073a/IHI0073A_arm_neon_intrinsics_ref.pdf>.
  34781. The built-in intrinsics for the Advanced SIMD extension are available
  34782. when NEON is enabled.
  34783. Currently, ARM and AArch64 back ends do not support ACLE 2.0 fully.
  34784. Both back ends support CRC32 intrinsics and the ARM back end supports
  34785. the Coprocessor intrinsics, all from 'arm_acle.h'. The ARM back end's
  34786. 16-bit floating-point Advanced SIMD intrinsics currently comply to ACLE
  34787. v1.1. AArch64's back end does not have support for 16-bit floating
  34788. point Advanced SIMD intrinsics yet.
  34789. See *note ARM Options:: and *note AArch64 Options:: for more
  34790. information on the availability of extensions.
  34791. 
  34792. 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
  34793. 6.60.8 ARM Floating Point Status and Control Intrinsics
  34794. -------------------------------------------------------
  34795. These built-in functions are available for the ARM family of processors
  34796. with floating-point unit.
  34797. unsigned int __builtin_arm_get_fpscr ()
  34798. void __builtin_arm_set_fpscr (unsigned int)
  34799. 
  34800. 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
  34801. 6.60.9 ARM ARMv8-M Security Extensions
  34802. --------------------------------------
  34803. GCC implements the ARMv8-M Security Extensions as described in the
  34804. ARMv8-M Security Extensions: Requirements on Development Tools
  34805. Engineering Specification, which can be found at
  34806. <http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf>.
  34807. As part of the Security Extensions GCC implements two new function
  34808. attributes: 'cmse_nonsecure_entry' and 'cmse_nonsecure_call'.
  34809. As part of the Security Extensions GCC implements the intrinsics below.
  34810. FPTR is used here to mean any function pointer type.
  34811. cmse_address_info_t cmse_TT (void *)
  34812. cmse_address_info_t cmse_TT_fptr (FPTR)
  34813. cmse_address_info_t cmse_TTT (void *)
  34814. cmse_address_info_t cmse_TTT_fptr (FPTR)
  34815. cmse_address_info_t cmse_TTA (void *)
  34816. cmse_address_info_t cmse_TTA_fptr (FPTR)
  34817. cmse_address_info_t cmse_TTAT (void *)
  34818. cmse_address_info_t cmse_TTAT_fptr (FPTR)
  34819. void * cmse_check_address_range (void *, size_t, int)
  34820. typeof(p) cmse_nsfptr_create (FPTR p)
  34821. intptr_t cmse_is_nsfptr (FPTR)
  34822. int cmse_nonsecure_caller (void)
  34823. 
  34824. File: gcc.info, Node: AVR Built-in Functions, Next: Blackfin Built-in Functions, Prev: ARM ARMv8-M Security Extensions, Up: Target Builtins
  34825. 6.60.10 AVR Built-in Functions
  34826. ------------------------------
  34827. For each built-in function for AVR, there is an equally named, uppercase
  34828. built-in macro defined. That way users can easily query if or if not a
  34829. specific built-in is implemented or not. For example, if
  34830. '__builtin_avr_nop' is available the macro '__BUILTIN_AVR_NOP' is
  34831. defined to '1' and undefined otherwise.
  34832. 'void __builtin_avr_nop (void)'
  34833. 'void __builtin_avr_sei (void)'
  34834. 'void __builtin_avr_cli (void)'
  34835. 'void __builtin_avr_sleep (void)'
  34836. 'void __builtin_avr_wdr (void)'
  34837. 'unsigned char __builtin_avr_swap (unsigned char)'
  34838. 'unsigned int __builtin_avr_fmul (unsigned char, unsigned char)'
  34839. 'int __builtin_avr_fmuls (char, char)'
  34840. 'int __builtin_avr_fmulsu (char, unsigned char)'
  34841. These built-in functions map to the respective machine instruction,
  34842. i.e. 'nop', 'sei', 'cli', 'sleep', 'wdr', 'swap', 'fmul', 'fmuls'
  34843. resp. 'fmulsu'. The three 'fmul*' built-ins are implemented as
  34844. library call if no hardware multiplier is available.
  34845. 'void __builtin_avr_delay_cycles (unsigned long ticks)'
  34846. Delay execution for TICKS cycles. Note that this built-in does not
  34847. take into account the effect of interrupts that might increase
  34848. delay time. TICKS must be a compile-time integer constant; delays
  34849. with a variable number of cycles are not supported.
  34850. 'char __builtin_avr_flash_segment (const __memx void*)'
  34851. This built-in takes a byte address to the 24-bit *note address
  34852. space: AVR Named Address Spaces. '__memx' and returns the number of
  34853. the flash segment (the 64 KiB chunk) where the address points to.
  34854. Counting starts at '0'. If the address does not point to flash
  34855. memory, return '-1'.
  34856. 'uint8_t __builtin_avr_insert_bits (uint32_t map, uint8_t bits, uint8_t val)'
  34857. Insert bits from BITS into VAL and return the resulting value. The
  34858. nibbles of MAP determine how the insertion is performed: Let X be
  34859. the N-th nibble of MAP
  34860. 1. If X is '0xf', then the N-th bit of VAL is returned unaltered.
  34861. 2. If X is in the range 0...7, then the N-th result bit is set to
  34862. the X-th bit of BITS
  34863. 3. If X is in the range 8...'0xe', then the N-th result bit is
  34864. undefined.
  34865. One typical use case for this built-in is adjusting input and
  34866. output values to non-contiguous port layouts. Some examples:
  34867. // same as val, bits is unused
  34868. __builtin_avr_insert_bits (0xffffffff, bits, val)
  34869. // same as bits, val is unused
  34870. __builtin_avr_insert_bits (0x76543210, bits, val)
  34871. // same as rotating bits by 4
  34872. __builtin_avr_insert_bits (0x32107654, bits, 0)
  34873. // high nibble of result is the high nibble of val
  34874. // low nibble of result is the low nibble of bits
  34875. __builtin_avr_insert_bits (0xffff3210, bits, val)
  34876. // reverse the bit order of bits
  34877. __builtin_avr_insert_bits (0x01234567, bits, 0)
  34878. 'void __builtin_avr_nops (unsigned count)'
  34879. Insert COUNT 'NOP' instructions. The number of instructions must
  34880. be a compile-time integer constant.
  34881. There are many more AVR-specific built-in functions that are used to
  34882. implement the ISO/IEC TR 18037 "Embedded C" fixed-point functions of
  34883. section 7.18a.6. You don't need to use these built-ins directly.
  34884. Instead, use the declarations as supplied by the 'stdfix.h' header with
  34885. GNU-C99:
  34886. #include <stdfix.h>
  34887. // Re-interpret the bit representation of unsigned 16-bit
  34888. // integer UVAL as Q-format 0.16 value.
  34889. unsigned fract get_bits (uint_ur_t uval)
  34890. {
  34891. return urbits (uval);
  34892. }
  34893. 
  34894. File: gcc.info, Node: Blackfin Built-in Functions, Next: FR-V Built-in Functions, Prev: AVR Built-in Functions, Up: Target Builtins
  34895. 6.60.11 Blackfin Built-in Functions
  34896. -----------------------------------
  34897. Currently, there are two Blackfin-specific built-in functions. These
  34898. are used for generating 'CSYNC' and 'SSYNC' machine insns without using
  34899. inline assembly; by using these built-in functions the compiler can
  34900. automatically add workarounds for hardware errata involving these
  34901. instructions. These functions are named as follows:
  34902. void __builtin_bfin_csync (void)
  34903. void __builtin_bfin_ssync (void)
  34904. 
  34905. File: gcc.info, Node: FR-V Built-in Functions, Next: MIPS DSP Built-in Functions, Prev: Blackfin Built-in Functions, Up: Target Builtins
  34906. 6.60.12 FR-V Built-in Functions
  34907. -------------------------------
  34908. GCC provides many FR-V-specific built-in functions. In general, these
  34909. functions are intended to be compatible with those described by 'FR-V
  34910. Family, Softune C/C++ Compiler Manual (V6), Fujitsu Semiconductor'. The
  34911. two exceptions are '__MDUNPACKH' and '__MBTOHE', the GCC forms of which
  34912. pass 128-bit values by pointer rather than by value.
  34913. Most of the functions are named after specific FR-V instructions. Such
  34914. functions are said to be "directly mapped" and are summarized here in
  34915. tabular form.
  34916. * Menu:
  34917. * Argument Types::
  34918. * Directly-mapped Integer Functions::
  34919. * Directly-mapped Media Functions::
  34920. * Raw read/write Functions::
  34921. * Other Built-in Functions::
  34922. 
  34923. File: gcc.info, Node: Argument Types, Next: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  34924. 6.60.12.1 Argument Types
  34925. ........................
  34926. The arguments to the built-in functions can be divided into three
  34927. groups: register numbers, compile-time constants and run-time values.
  34928. In order to make this classification clear at a glance, the arguments
  34929. and return values are given the following pseudo types:
  34930. Pseudo type Real C type Constant? Description
  34931. 'uh' 'unsigned short' No an unsigned halfword
  34932. 'uw1' 'unsigned int' No an unsigned word
  34933. 'sw1' 'int' No a signed word
  34934. 'uw2' 'unsigned long long' No an unsigned doubleword
  34935. 'sw2' 'long long' No a signed doubleword
  34936. 'const' 'int' Yes an integer constant
  34937. 'acc' 'int' Yes an ACC register number
  34938. 'iacc' 'int' Yes an IACC register number
  34939. These pseudo types are not defined by GCC, they are simply a notational
  34940. convenience used in this manual.
  34941. Arguments of type 'uh', 'uw1', 'sw1', 'uw2' and 'sw2' are evaluated at
  34942. run time. They correspond to register operands in the underlying FR-V
  34943. instructions.
  34944. 'const' arguments represent immediate operands in the underlying FR-V
  34945. instructions. They must be compile-time constants.
  34946. 'acc' arguments are evaluated at compile time and specify the number of
  34947. an accumulator register. For example, an 'acc' argument of 2 selects
  34948. the ACC2 register.
  34949. 'iacc' arguments are similar to 'acc' arguments but specify the number
  34950. of an IACC register. See *note Other Built-in Functions:: for more
  34951. details.
  34952. 
  34953. File: gcc.info, Node: Directly-mapped Integer Functions, Next: Directly-mapped Media Functions, Prev: Argument Types, Up: FR-V Built-in Functions
  34954. 6.60.12.2 Directly-Mapped Integer Functions
  34955. ...........................................
  34956. The functions listed below map directly to FR-V I-type instructions.
  34957. Function prototype Example usage Assembly output
  34958. 'sw1 __ADDSS (sw1, sw1)' 'C = __ADDSS (A, B)' 'ADDSS A,B,C'
  34959. 'sw1 __SCAN (sw1, sw1)' 'C = __SCAN (A, B)' 'SCAN A,B,C'
  34960. 'sw1 __SCUTSS (sw1)' 'B = __SCUTSS (A)' 'SCUTSS A,B'
  34961. 'sw1 __SLASS (sw1, sw1)' 'C = __SLASS (A, B)' 'SLASS A,B,C'
  34962. 'void __SMASS (sw1, sw1)' '__SMASS (A, B)' 'SMASS A,B'
  34963. 'void __SMSSS (sw1, sw1)' '__SMSSS (A, B)' 'SMSSS A,B'
  34964. 'void __SMU (sw1, sw1)' '__SMU (A, B)' 'SMU A,B'
  34965. 'sw2 __SMUL (sw1, sw1)' 'C = __SMUL (A, B)' 'SMUL A,B,C'
  34966. 'sw1 __SUBSS (sw1, sw1)' 'C = __SUBSS (A, B)' 'SUBSS A,B,C'
  34967. 'uw2 __UMUL (uw1, uw1)' 'C = __UMUL (A, B)' 'UMUL A,B,C'
  34968. 
  34969. File: gcc.info, Node: Directly-mapped Media Functions, Next: Raw read/write Functions, Prev: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  34970. 6.60.12.3 Directly-Mapped Media Functions
  34971. .........................................
  34972. The functions listed below map directly to FR-V M-type instructions.
  34973. Function prototype Example usage Assembly output
  34974. 'uw1 __MABSHS (sw1)' 'B = __MABSHS (A)' 'MABSHS A,B'
  34975. 'void __MADDACCS (acc, acc)' '__MADDACCS (B, A)' 'MADDACCS A,B'
  34976. 'sw1 __MADDHSS (sw1, sw1)' 'C = __MADDHSS (A, 'MADDHSS A,B,C'
  34977. B)'
  34978. 'uw1 __MADDHUS (uw1, uw1)' 'C = __MADDHUS (A, 'MADDHUS A,B,C'
  34979. B)'
  34980. 'uw1 __MAND (uw1, uw1)' 'C = __MAND (A, B)' 'MAND A,B,C'
  34981. 'void __MASACCS (acc, acc)' '__MASACCS (B, A)' 'MASACCS A,B'
  34982. 'uw1 __MAVEH (uw1, uw1)' 'C = __MAVEH (A, B)' 'MAVEH A,B,C'
  34983. 'uw2 __MBTOH (uw1)' 'B = __MBTOH (A)' 'MBTOH A,B'
  34984. 'void __MBTOHE (uw1 *, uw1)' '__MBTOHE (&B, A)' 'MBTOHE A,B'
  34985. 'void __MCLRACC (acc)' '__MCLRACC (A)' 'MCLRACC A'
  34986. 'void __MCLRACCA (void)' '__MCLRACCA ()' 'MCLRACCA'
  34987. 'uw1 __Mcop1 (uw1, uw1)' 'C = __Mcop1 (A, B)' 'Mcop1 A,B,C'
  34988. 'uw1 __Mcop2 (uw1, uw1)' 'C = __Mcop2 (A, B)' 'Mcop2 A,B,C'
  34989. 'uw1 __MCPLHI (uw2, const)' 'C = __MCPLHI (A, B)' 'MCPLHI A,#B,C'
  34990. 'uw1 __MCPLI (uw2, const)' 'C = __MCPLI (A, B)' 'MCPLI A,#B,C'
  34991. 'void __MCPXIS (acc, sw1, '__MCPXIS (C, A, B)' 'MCPXIS A,B,C'
  34992. sw1)'
  34993. 'void __MCPXIU (acc, uw1, '__MCPXIU (C, A, B)' 'MCPXIU A,B,C'
  34994. uw1)'
  34995. 'void __MCPXRS (acc, sw1, '__MCPXRS (C, A, B)' 'MCPXRS A,B,C'
  34996. sw1)'
  34997. 'void __MCPXRU (acc, uw1, '__MCPXRU (C, A, B)' 'MCPXRU A,B,C'
  34998. uw1)'
  34999. 'uw1 __MCUT (acc, uw1)' 'C = __MCUT (A, B)' 'MCUT A,B,C'
  35000. 'uw1 __MCUTSS (acc, sw1)' 'C = __MCUTSS (A, B)' 'MCUTSS A,B,C'
  35001. 'void __MDADDACCS (acc, acc)' '__MDADDACCS (B, A)' 'MDADDACCS A,B'
  35002. 'void __MDASACCS (acc, acc)' '__MDASACCS (B, A)' 'MDASACCS A,B'
  35003. 'uw2 __MDCUTSSI (acc, const)' 'C = __MDCUTSSI (A, 'MDCUTSSI
  35004. B)' A,#B,C'
  35005. 'uw2 __MDPACKH (uw2, uw2)' 'C = __MDPACKH (A, 'MDPACKH A,B,C'
  35006. B)'
  35007. 'uw2 __MDROTLI (uw2, const)' 'C = __MDROTLI (A, 'MDROTLI
  35008. B)' A,#B,C'
  35009. 'void __MDSUBACCS (acc, acc)' '__MDSUBACCS (B, A)' 'MDSUBACCS A,B'
  35010. 'void __MDUNPACKH (uw1 *, '__MDUNPACKH (&B, A)' 'MDUNPACKH A,B'
  35011. uw2)'
  35012. 'uw2 __MEXPDHD (uw1, const)' 'C = __MEXPDHD (A, 'MEXPDHD
  35013. B)' A,#B,C'
  35014. 'uw1 __MEXPDHW (uw1, const)' 'C = __MEXPDHW (A, 'MEXPDHW
  35015. B)' A,#B,C'
  35016. 'uw1 __MHDSETH (uw1, const)' 'C = __MHDSETH (A, 'MHDSETH
  35017. B)' A,#B,C'
  35018. 'sw1 __MHDSETS (const)' 'B = __MHDSETS (A)' 'MHDSETS #A,B'
  35019. 'uw1 __MHSETHIH (uw1, const)' 'B = __MHSETHIH (B, 'MHSETHIH #A,B'
  35020. A)'
  35021. 'sw1 __MHSETHIS (sw1, const)' 'B = __MHSETHIS (B, 'MHSETHIS #A,B'
  35022. A)'
  35023. 'uw1 __MHSETLOH (uw1, const)' 'B = __MHSETLOH (B, 'MHSETLOH #A,B'
  35024. A)'
  35025. 'sw1 __MHSETLOS (sw1, const)' 'B = __MHSETLOS (B, 'MHSETLOS #A,B'
  35026. A)'
  35027. 'uw1 __MHTOB (uw2)' 'B = __MHTOB (A)' 'MHTOB A,B'
  35028. 'void __MMACHS (acc, sw1, '__MMACHS (C, A, B)' 'MMACHS A,B,C'
  35029. sw1)'
  35030. 'void __MMACHU (acc, uw1, '__MMACHU (C, A, B)' 'MMACHU A,B,C'
  35031. uw1)'
  35032. 'void __MMRDHS (acc, sw1, '__MMRDHS (C, A, B)' 'MMRDHS A,B,C'
  35033. sw1)'
  35034. 'void __MMRDHU (acc, uw1, '__MMRDHU (C, A, B)' 'MMRDHU A,B,C'
  35035. uw1)'
  35036. 'void __MMULHS (acc, sw1, '__MMULHS (C, A, B)' 'MMULHS A,B,C'
  35037. sw1)'
  35038. 'void __MMULHU (acc, uw1, '__MMULHU (C, A, B)' 'MMULHU A,B,C'
  35039. uw1)'
  35040. 'void __MMULXHS (acc, sw1, '__MMULXHS (C, A, B)' 'MMULXHS A,B,C'
  35041. sw1)'
  35042. 'void __MMULXHU (acc, uw1, '__MMULXHU (C, A, B)' 'MMULXHU A,B,C'
  35043. uw1)'
  35044. 'uw1 __MNOT (uw1)' 'B = __MNOT (A)' 'MNOT A,B'
  35045. 'uw1 __MOR (uw1, uw1)' 'C = __MOR (A, B)' 'MOR A,B,C'
  35046. 'uw1 __MPACKH (uh, uh)' 'C = __MPACKH (A, B)' 'MPACKH A,B,C'
  35047. 'sw2 __MQADDHSS (sw2, sw2)' 'C = __MQADDHSS (A, 'MQADDHSS
  35048. B)' A,B,C'
  35049. 'uw2 __MQADDHUS (uw2, uw2)' 'C = __MQADDHUS (A, 'MQADDHUS
  35050. B)' A,B,C'
  35051. 'void __MQCPXIS (acc, sw2, '__MQCPXIS (C, A, B)' 'MQCPXIS A,B,C'
  35052. sw2)'
  35053. 'void __MQCPXIU (acc, uw2, '__MQCPXIU (C, A, B)' 'MQCPXIU A,B,C'
  35054. uw2)'
  35055. 'void __MQCPXRS (acc, sw2, '__MQCPXRS (C, A, B)' 'MQCPXRS A,B,C'
  35056. sw2)'
  35057. 'void __MQCPXRU (acc, uw2, '__MQCPXRU (C, A, B)' 'MQCPXRU A,B,C'
  35058. uw2)'
  35059. 'sw2 __MQLCLRHS (sw2, sw2)' 'C = __MQLCLRHS (A, 'MQLCLRHS
  35060. B)' A,B,C'
  35061. 'sw2 __MQLMTHS (sw2, sw2)' 'C = __MQLMTHS (A, 'MQLMTHS A,B,C'
  35062. B)'
  35063. 'void __MQMACHS (acc, sw2, '__MQMACHS (C, A, B)' 'MQMACHS A,B,C'
  35064. sw2)'
  35065. 'void __MQMACHU (acc, uw2, '__MQMACHU (C, A, B)' 'MQMACHU A,B,C'
  35066. uw2)'
  35067. 'void __MQMACXHS (acc, sw2, '__MQMACXHS (C, A, 'MQMACXHS
  35068. sw2)' B)' A,B,C'
  35069. 'void __MQMULHS (acc, sw2, '__MQMULHS (C, A, B)' 'MQMULHS A,B,C'
  35070. sw2)'
  35071. 'void __MQMULHU (acc, uw2, '__MQMULHU (C, A, B)' 'MQMULHU A,B,C'
  35072. uw2)'
  35073. 'void __MQMULXHS (acc, sw2, '__MQMULXHS (C, A, 'MQMULXHS
  35074. sw2)' B)' A,B,C'
  35075. 'void __MQMULXHU (acc, uw2, '__MQMULXHU (C, A, 'MQMULXHU
  35076. uw2)' B)' A,B,C'
  35077. 'sw2 __MQSATHS (sw2, sw2)' 'C = __MQSATHS (A, 'MQSATHS A,B,C'
  35078. B)'
  35079. 'uw2 __MQSLLHI (uw2, int)' 'C = __MQSLLHI (A, 'MQSLLHI A,B,C'
  35080. B)'
  35081. 'sw2 __MQSRAHI (sw2, int)' 'C = __MQSRAHI (A, 'MQSRAHI A,B,C'
  35082. B)'
  35083. 'sw2 __MQSUBHSS (sw2, sw2)' 'C = __MQSUBHSS (A, 'MQSUBHSS
  35084. B)' A,B,C'
  35085. 'uw2 __MQSUBHUS (uw2, uw2)' 'C = __MQSUBHUS (A, 'MQSUBHUS
  35086. B)' A,B,C'
  35087. 'void __MQXMACHS (acc, sw2, '__MQXMACHS (C, A, 'MQXMACHS
  35088. sw2)' B)' A,B,C'
  35089. 'void __MQXMACXHS (acc, sw2, '__MQXMACXHS (C, A, 'MQXMACXHS
  35090. sw2)' B)' A,B,C'
  35091. 'uw1 __MRDACC (acc)' 'B = __MRDACC (A)' 'MRDACC A,B'
  35092. 'uw1 __MRDACCG (acc)' 'B = __MRDACCG (A)' 'MRDACCG A,B'
  35093. 'uw1 __MROTLI (uw1, const)' 'C = __MROTLI (A, B)' 'MROTLI A,#B,C'
  35094. 'uw1 __MROTRI (uw1, const)' 'C = __MROTRI (A, B)' 'MROTRI A,#B,C'
  35095. 'sw1 __MSATHS (sw1, sw1)' 'C = __MSATHS (A, B)' 'MSATHS A,B,C'
  35096. 'uw1 __MSATHU (uw1, uw1)' 'C = __MSATHU (A, B)' 'MSATHU A,B,C'
  35097. 'uw1 __MSLLHI (uw1, const)' 'C = __MSLLHI (A, B)' 'MSLLHI A,#B,C'
  35098. 'sw1 __MSRAHI (sw1, const)' 'C = __MSRAHI (A, B)' 'MSRAHI A,#B,C'
  35099. 'uw1 __MSRLHI (uw1, const)' 'C = __MSRLHI (A, B)' 'MSRLHI A,#B,C'
  35100. 'void __MSUBACCS (acc, acc)' '__MSUBACCS (B, A)' 'MSUBACCS A,B'
  35101. 'sw1 __MSUBHSS (sw1, sw1)' 'C = __MSUBHSS (A, 'MSUBHSS A,B,C'
  35102. B)'
  35103. 'uw1 __MSUBHUS (uw1, uw1)' 'C = __MSUBHUS (A, 'MSUBHUS A,B,C'
  35104. B)'
  35105. 'void __MTRAP (void)' '__MTRAP ()' 'MTRAP'
  35106. 'uw2 __MUNPACKH (uw1)' 'B = __MUNPACKH (A)' 'MUNPACKH A,B'
  35107. 'uw1 __MWCUT (uw2, uw1)' 'C = __MWCUT (A, B)' 'MWCUT A,B,C'
  35108. 'void __MWTACC (acc, uw1)' '__MWTACC (B, A)' 'MWTACC A,B'
  35109. 'void __MWTACCG (acc, uw1)' '__MWTACCG (B, A)' 'MWTACCG A,B'
  35110. 'uw1 __MXOR (uw1, uw1)' 'C = __MXOR (A, B)' 'MXOR A,B,C'
  35111. 
  35112. File: gcc.info, Node: Raw read/write Functions, Next: Other Built-in Functions, Prev: Directly-mapped Media Functions, Up: FR-V Built-in Functions
  35113. 6.60.12.4 Raw Read/Write Functions
  35114. ..................................
  35115. This sections describes built-in functions related to read and write
  35116. instructions to access memory. These functions generate 'membar'
  35117. instructions to flush the I/O load and stores where appropriate, as
  35118. described in Fujitsu's manual described above.
  35119. 'unsigned char __builtin_read8 (void *DATA)'
  35120. 'unsigned short __builtin_read16 (void *DATA)'
  35121. 'unsigned long __builtin_read32 (void *DATA)'
  35122. 'unsigned long long __builtin_read64 (void *DATA)'
  35123. 'void __builtin_write8 (void *DATA, unsigned char DATUM)'
  35124. 'void __builtin_write16 (void *DATA, unsigned short DATUM)'
  35125. 'void __builtin_write32 (void *DATA, unsigned long DATUM)'
  35126. 'void __builtin_write64 (void *DATA, unsigned long long DATUM)'
  35127. 
  35128. File: gcc.info, Node: Other Built-in Functions, Prev: Raw read/write Functions, Up: FR-V Built-in Functions
  35129. 6.60.12.5 Other Built-in Functions
  35130. ..................................
  35131. This section describes built-in functions that are not named after a
  35132. specific FR-V instruction.
  35133. 'sw2 __IACCreadll (iacc REG)'
  35134. Return the full 64-bit value of IACC0. The REG argument is
  35135. reserved for future expansion and must be 0.
  35136. 'sw1 __IACCreadl (iacc REG)'
  35137. Return the value of IACC0H if REG is 0 and IACC0L if REG is 1.
  35138. Other values of REG are rejected as invalid.
  35139. 'void __IACCsetll (iacc REG, sw2 X)'
  35140. Set the full 64-bit value of IACC0 to X. The REG argument is
  35141. reserved for future expansion and must be 0.
  35142. 'void __IACCsetl (iacc REG, sw1 X)'
  35143. Set IACC0H to X if REG is 0 and IACC0L to X if REG is 1. Other
  35144. values of REG are rejected as invalid.
  35145. 'void __data_prefetch0 (const void *X)'
  35146. Use the 'dcpl' instruction to load the contents of address X into
  35147. the data cache.
  35148. 'void __data_prefetch (const void *X)'
  35149. Use the 'nldub' instruction to load the contents of address X into
  35150. the data cache. The instruction is issued in slot I1.
  35151. 
  35152. File: gcc.info, Node: MIPS DSP Built-in Functions, Next: MIPS Paired-Single Support, Prev: FR-V Built-in Functions, Up: Target Builtins
  35153. 6.60.13 MIPS DSP Built-in Functions
  35154. -----------------------------------
  35155. The MIPS DSP Application-Specific Extension (ASE) includes new
  35156. instructions that are designed to improve the performance of DSP and
  35157. media applications. It provides instructions that operate on packed
  35158. 8-bit/16-bit integer data, Q7, Q15 and Q31 fractional data.
  35159. GCC supports MIPS DSP operations using both the generic vector
  35160. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  35161. built-in functions. Both kinds of support are enabled by the '-mdsp'
  35162. command-line option.
  35163. Revision 2 of the ASE was introduced in the second half of 2006. This
  35164. revision adds extra instructions to the original ASE, but is otherwise
  35165. backwards-compatible with it. You can select revision 2 using the
  35166. command-line option '-mdspr2'; this option implies '-mdsp'.
  35167. The SCOUNT and POS bits of the DSP control register are global. The
  35168. WRDSP, EXTPDP, EXTPDPV and MTHLIP instructions modify the SCOUNT and POS
  35169. bits. During optimization, the compiler does not delete these
  35170. instructions and it does not delete calls to functions containing these
  35171. instructions.
  35172. At present, GCC only provides support for operations on 32-bit vectors.
  35173. The vector type associated with 8-bit integer data is usually called
  35174. 'v4i8', the vector type associated with Q7 is usually called 'v4q7', the
  35175. vector type associated with 16-bit integer data is usually called
  35176. 'v2i16', and the vector type associated with Q15 is usually called
  35177. 'v2q15'. They can be defined in C as follows:
  35178. typedef signed char v4i8 __attribute__ ((vector_size(4)));
  35179. typedef signed char v4q7 __attribute__ ((vector_size(4)));
  35180. typedef short v2i16 __attribute__ ((vector_size(4)));
  35181. typedef short v2q15 __attribute__ ((vector_size(4)));
  35182. 'v4i8', 'v4q7', 'v2i16' and 'v2q15' values are initialized in the same
  35183. way as aggregates. For example:
  35184. v4i8 a = {1, 2, 3, 4};
  35185. v4i8 b;
  35186. b = (v4i8) {5, 6, 7, 8};
  35187. v2q15 c = {0x0fcb, 0x3a75};
  35188. v2q15 d;
  35189. d = (v2q15) {0.1234 * 0x1.0p15, 0.4567 * 0x1.0p15};
  35190. _Note:_ The CPU's endianness determines the order in which values are
  35191. packed. On little-endian targets, the first value is the least
  35192. significant and the last value is the most significant. The opposite
  35193. order applies to big-endian targets. For example, the code above sets
  35194. the lowest byte of 'a' to '1' on little-endian targets and '4' on
  35195. big-endian targets.
  35196. _Note:_ Q7, Q15 and Q31 values must be initialized with their integer
  35197. representation. As shown in this example, the integer representation of
  35198. a Q7 value can be obtained by multiplying the fractional value by
  35199. '0x1.0p7'. The equivalent for Q15 values is to multiply by '0x1.0p15'.
  35200. The equivalent for Q31 values is to multiply by '0x1.0p31'.
  35201. The table below lists the 'v4i8' and 'v2q15' operations for which
  35202. hardware support exists. 'a' and 'b' are 'v4i8' values, and 'c' and 'd'
  35203. are 'v2q15' values.
  35204. C code MIPS instruction
  35205. 'a + b' 'addu.qb'
  35206. 'c + d' 'addq.ph'
  35207. 'a - b' 'subu.qb'
  35208. 'c - d' 'subq.ph'
  35209. The table below lists the 'v2i16' operation for which hardware support
  35210. exists for the DSP ASE REV 2. 'e' and 'f' are 'v2i16' values.
  35211. C code MIPS instruction
  35212. 'e * f' 'mul.ph'
  35213. It is easier to describe the DSP built-in functions if we first define
  35214. the following types:
  35215. typedef int q31;
  35216. typedef int i32;
  35217. typedef unsigned int ui32;
  35218. typedef long long a64;
  35219. 'q31' and 'i32' are actually the same as 'int', but we use 'q31' to
  35220. indicate a Q31 fractional value and 'i32' to indicate a 32-bit integer
  35221. value. Similarly, 'a64' is the same as 'long long', but we use 'a64' to
  35222. indicate values that are placed in one of the four DSP accumulators
  35223. ('$ac0', '$ac1', '$ac2' or '$ac3').
  35224. Also, some built-in functions prefer or require immediate numbers as
  35225. parameters, because the corresponding DSP instructions accept both
  35226. immediate numbers and register operands, or accept immediate numbers
  35227. only. The immediate parameters are listed as follows.
  35228. imm0_3: 0 to 3.
  35229. imm0_7: 0 to 7.
  35230. imm0_15: 0 to 15.
  35231. imm0_31: 0 to 31.
  35232. imm0_63: 0 to 63.
  35233. imm0_255: 0 to 255.
  35234. imm_n32_31: -32 to 31.
  35235. imm_n512_511: -512 to 511.
  35236. The following built-in functions map directly to a particular MIPS DSP
  35237. instruction. Please refer to the architecture specification for details
  35238. on what each instruction does.
  35239. v2q15 __builtin_mips_addq_ph (v2q15, v2q15)
  35240. v2q15 __builtin_mips_addq_s_ph (v2q15, v2q15)
  35241. q31 __builtin_mips_addq_s_w (q31, q31)
  35242. v4i8 __builtin_mips_addu_qb (v4i8, v4i8)
  35243. v4i8 __builtin_mips_addu_s_qb (v4i8, v4i8)
  35244. v2q15 __builtin_mips_subq_ph (v2q15, v2q15)
  35245. v2q15 __builtin_mips_subq_s_ph (v2q15, v2q15)
  35246. q31 __builtin_mips_subq_s_w (q31, q31)
  35247. v4i8 __builtin_mips_subu_qb (v4i8, v4i8)
  35248. v4i8 __builtin_mips_subu_s_qb (v4i8, v4i8)
  35249. i32 __builtin_mips_addsc (i32, i32)
  35250. i32 __builtin_mips_addwc (i32, i32)
  35251. i32 __builtin_mips_modsub (i32, i32)
  35252. i32 __builtin_mips_raddu_w_qb (v4i8)
  35253. v2q15 __builtin_mips_absq_s_ph (v2q15)
  35254. q31 __builtin_mips_absq_s_w (q31)
  35255. v4i8 __builtin_mips_precrq_qb_ph (v2q15, v2q15)
  35256. v2q15 __builtin_mips_precrq_ph_w (q31, q31)
  35257. v2q15 __builtin_mips_precrq_rs_ph_w (q31, q31)
  35258. v4i8 __builtin_mips_precrqu_s_qb_ph (v2q15, v2q15)
  35259. q31 __builtin_mips_preceq_w_phl (v2q15)
  35260. q31 __builtin_mips_preceq_w_phr (v2q15)
  35261. v2q15 __builtin_mips_precequ_ph_qbl (v4i8)
  35262. v2q15 __builtin_mips_precequ_ph_qbr (v4i8)
  35263. v2q15 __builtin_mips_precequ_ph_qbla (v4i8)
  35264. v2q15 __builtin_mips_precequ_ph_qbra (v4i8)
  35265. v2q15 __builtin_mips_preceu_ph_qbl (v4i8)
  35266. v2q15 __builtin_mips_preceu_ph_qbr (v4i8)
  35267. v2q15 __builtin_mips_preceu_ph_qbla (v4i8)
  35268. v2q15 __builtin_mips_preceu_ph_qbra (v4i8)
  35269. v4i8 __builtin_mips_shll_qb (v4i8, imm0_7)
  35270. v4i8 __builtin_mips_shll_qb (v4i8, i32)
  35271. v2q15 __builtin_mips_shll_ph (v2q15, imm0_15)
  35272. v2q15 __builtin_mips_shll_ph (v2q15, i32)
  35273. v2q15 __builtin_mips_shll_s_ph (v2q15, imm0_15)
  35274. v2q15 __builtin_mips_shll_s_ph (v2q15, i32)
  35275. q31 __builtin_mips_shll_s_w (q31, imm0_31)
  35276. q31 __builtin_mips_shll_s_w (q31, i32)
  35277. v4i8 __builtin_mips_shrl_qb (v4i8, imm0_7)
  35278. v4i8 __builtin_mips_shrl_qb (v4i8, i32)
  35279. v2q15 __builtin_mips_shra_ph (v2q15, imm0_15)
  35280. v2q15 __builtin_mips_shra_ph (v2q15, i32)
  35281. v2q15 __builtin_mips_shra_r_ph (v2q15, imm0_15)
  35282. v2q15 __builtin_mips_shra_r_ph (v2q15, i32)
  35283. q31 __builtin_mips_shra_r_w (q31, imm0_31)
  35284. q31 __builtin_mips_shra_r_w (q31, i32)
  35285. v2q15 __builtin_mips_muleu_s_ph_qbl (v4i8, v2q15)
  35286. v2q15 __builtin_mips_muleu_s_ph_qbr (v4i8, v2q15)
  35287. v2q15 __builtin_mips_mulq_rs_ph (v2q15, v2q15)
  35288. q31 __builtin_mips_muleq_s_w_phl (v2q15, v2q15)
  35289. q31 __builtin_mips_muleq_s_w_phr (v2q15, v2q15)
  35290. a64 __builtin_mips_dpau_h_qbl (a64, v4i8, v4i8)
  35291. a64 __builtin_mips_dpau_h_qbr (a64, v4i8, v4i8)
  35292. a64 __builtin_mips_dpsu_h_qbl (a64, v4i8, v4i8)
  35293. a64 __builtin_mips_dpsu_h_qbr (a64, v4i8, v4i8)
  35294. a64 __builtin_mips_dpaq_s_w_ph (a64, v2q15, v2q15)
  35295. a64 __builtin_mips_dpaq_sa_l_w (a64, q31, q31)
  35296. a64 __builtin_mips_dpsq_s_w_ph (a64, v2q15, v2q15)
  35297. a64 __builtin_mips_dpsq_sa_l_w (a64, q31, q31)
  35298. a64 __builtin_mips_mulsaq_s_w_ph (a64, v2q15, v2q15)
  35299. a64 __builtin_mips_maq_s_w_phl (a64, v2q15, v2q15)
  35300. a64 __builtin_mips_maq_s_w_phr (a64, v2q15, v2q15)
  35301. a64 __builtin_mips_maq_sa_w_phl (a64, v2q15, v2q15)
  35302. a64 __builtin_mips_maq_sa_w_phr (a64, v2q15, v2q15)
  35303. i32 __builtin_mips_bitrev (i32)
  35304. i32 __builtin_mips_insv (i32, i32)
  35305. v4i8 __builtin_mips_repl_qb (imm0_255)
  35306. v4i8 __builtin_mips_repl_qb (i32)
  35307. v2q15 __builtin_mips_repl_ph (imm_n512_511)
  35308. v2q15 __builtin_mips_repl_ph (i32)
  35309. void __builtin_mips_cmpu_eq_qb (v4i8, v4i8)
  35310. void __builtin_mips_cmpu_lt_qb (v4i8, v4i8)
  35311. void __builtin_mips_cmpu_le_qb (v4i8, v4i8)
  35312. i32 __builtin_mips_cmpgu_eq_qb (v4i8, v4i8)
  35313. i32 __builtin_mips_cmpgu_lt_qb (v4i8, v4i8)
  35314. i32 __builtin_mips_cmpgu_le_qb (v4i8, v4i8)
  35315. void __builtin_mips_cmp_eq_ph (v2q15, v2q15)
  35316. void __builtin_mips_cmp_lt_ph (v2q15, v2q15)
  35317. void __builtin_mips_cmp_le_ph (v2q15, v2q15)
  35318. v4i8 __builtin_mips_pick_qb (v4i8, v4i8)
  35319. v2q15 __builtin_mips_pick_ph (v2q15, v2q15)
  35320. v2q15 __builtin_mips_packrl_ph (v2q15, v2q15)
  35321. i32 __builtin_mips_extr_w (a64, imm0_31)
  35322. i32 __builtin_mips_extr_w (a64, i32)
  35323. i32 __builtin_mips_extr_r_w (a64, imm0_31)
  35324. i32 __builtin_mips_extr_s_h (a64, i32)
  35325. i32 __builtin_mips_extr_rs_w (a64, imm0_31)
  35326. i32 __builtin_mips_extr_rs_w (a64, i32)
  35327. i32 __builtin_mips_extr_s_h (a64, imm0_31)
  35328. i32 __builtin_mips_extr_r_w (a64, i32)
  35329. i32 __builtin_mips_extp (a64, imm0_31)
  35330. i32 __builtin_mips_extp (a64, i32)
  35331. i32 __builtin_mips_extpdp (a64, imm0_31)
  35332. i32 __builtin_mips_extpdp (a64, i32)
  35333. a64 __builtin_mips_shilo (a64, imm_n32_31)
  35334. a64 __builtin_mips_shilo (a64, i32)
  35335. a64 __builtin_mips_mthlip (a64, i32)
  35336. void __builtin_mips_wrdsp (i32, imm0_63)
  35337. i32 __builtin_mips_rddsp (imm0_63)
  35338. i32 __builtin_mips_lbux (void *, i32)
  35339. i32 __builtin_mips_lhx (void *, i32)
  35340. i32 __builtin_mips_lwx (void *, i32)
  35341. a64 __builtin_mips_ldx (void *, i32) [MIPS64 only]
  35342. i32 __builtin_mips_bposge32 (void)
  35343. a64 __builtin_mips_madd (a64, i32, i32);
  35344. a64 __builtin_mips_maddu (a64, ui32, ui32);
  35345. a64 __builtin_mips_msub (a64, i32, i32);
  35346. a64 __builtin_mips_msubu (a64, ui32, ui32);
  35347. a64 __builtin_mips_mult (i32, i32);
  35348. a64 __builtin_mips_multu (ui32, ui32);
  35349. The following built-in functions map directly to a particular MIPS DSP
  35350. REV 2 instruction. Please refer to the architecture specification for
  35351. details on what each instruction does.
  35352. v4q7 __builtin_mips_absq_s_qb (v4q7);
  35353. v2i16 __builtin_mips_addu_ph (v2i16, v2i16);
  35354. v2i16 __builtin_mips_addu_s_ph (v2i16, v2i16);
  35355. v4i8 __builtin_mips_adduh_qb (v4i8, v4i8);
  35356. v4i8 __builtin_mips_adduh_r_qb (v4i8, v4i8);
  35357. i32 __builtin_mips_append (i32, i32, imm0_31);
  35358. i32 __builtin_mips_balign (i32, i32, imm0_3);
  35359. i32 __builtin_mips_cmpgdu_eq_qb (v4i8, v4i8);
  35360. i32 __builtin_mips_cmpgdu_lt_qb (v4i8, v4i8);
  35361. i32 __builtin_mips_cmpgdu_le_qb (v4i8, v4i8);
  35362. a64 __builtin_mips_dpa_w_ph (a64, v2i16, v2i16);
  35363. a64 __builtin_mips_dps_w_ph (a64, v2i16, v2i16);
  35364. v2i16 __builtin_mips_mul_ph (v2i16, v2i16);
  35365. v2i16 __builtin_mips_mul_s_ph (v2i16, v2i16);
  35366. q31 __builtin_mips_mulq_rs_w (q31, q31);
  35367. v2q15 __builtin_mips_mulq_s_ph (v2q15, v2q15);
  35368. q31 __builtin_mips_mulq_s_w (q31, q31);
  35369. a64 __builtin_mips_mulsa_w_ph (a64, v2i16, v2i16);
  35370. v4i8 __builtin_mips_precr_qb_ph (v2i16, v2i16);
  35371. v2i16 __builtin_mips_precr_sra_ph_w (i32, i32, imm0_31);
  35372. v2i16 __builtin_mips_precr_sra_r_ph_w (i32, i32, imm0_31);
  35373. i32 __builtin_mips_prepend (i32, i32, imm0_31);
  35374. v4i8 __builtin_mips_shra_qb (v4i8, imm0_7);
  35375. v4i8 __builtin_mips_shra_r_qb (v4i8, imm0_7);
  35376. v4i8 __builtin_mips_shra_qb (v4i8, i32);
  35377. v4i8 __builtin_mips_shra_r_qb (v4i8, i32);
  35378. v2i16 __builtin_mips_shrl_ph (v2i16, imm0_15);
  35379. v2i16 __builtin_mips_shrl_ph (v2i16, i32);
  35380. v2i16 __builtin_mips_subu_ph (v2i16, v2i16);
  35381. v2i16 __builtin_mips_subu_s_ph (v2i16, v2i16);
  35382. v4i8 __builtin_mips_subuh_qb (v4i8, v4i8);
  35383. v4i8 __builtin_mips_subuh_r_qb (v4i8, v4i8);
  35384. v2q15 __builtin_mips_addqh_ph (v2q15, v2q15);
  35385. v2q15 __builtin_mips_addqh_r_ph (v2q15, v2q15);
  35386. q31 __builtin_mips_addqh_w (q31, q31);
  35387. q31 __builtin_mips_addqh_r_w (q31, q31);
  35388. v2q15 __builtin_mips_subqh_ph (v2q15, v2q15);
  35389. v2q15 __builtin_mips_subqh_r_ph (v2q15, v2q15);
  35390. q31 __builtin_mips_subqh_w (q31, q31);
  35391. q31 __builtin_mips_subqh_r_w (q31, q31);
  35392. a64 __builtin_mips_dpax_w_ph (a64, v2i16, v2i16);
  35393. a64 __builtin_mips_dpsx_w_ph (a64, v2i16, v2i16);
  35394. a64 __builtin_mips_dpaqx_s_w_ph (a64, v2q15, v2q15);
  35395. a64 __builtin_mips_dpaqx_sa_w_ph (a64, v2q15, v2q15);
  35396. a64 __builtin_mips_dpsqx_s_w_ph (a64, v2q15, v2q15);
  35397. a64 __builtin_mips_dpsqx_sa_w_ph (a64, v2q15, v2q15);
  35398. 
  35399. File: gcc.info, Node: MIPS Paired-Single Support, Next: MIPS Loongson Built-in Functions, Prev: MIPS DSP Built-in Functions, Up: Target Builtins
  35400. 6.60.14 MIPS Paired-Single Support
  35401. ----------------------------------
  35402. The MIPS64 architecture includes a number of instructions that operate
  35403. on pairs of single-precision floating-point values. Each pair is packed
  35404. into a 64-bit floating-point register, with one element being designated
  35405. the "upper half" and the other being designated the "lower half".
  35406. GCC supports paired-single operations using both the generic vector
  35407. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  35408. built-in functions. Both kinds of support are enabled by the
  35409. '-mpaired-single' command-line option.
  35410. The vector type associated with paired-single values is usually called
  35411. 'v2sf'. It can be defined in C as follows:
  35412. typedef float v2sf __attribute__ ((vector_size (8)));
  35413. 'v2sf' values are initialized in the same way as aggregates. For
  35414. example:
  35415. v2sf a = {1.5, 9.1};
  35416. v2sf b;
  35417. float e, f;
  35418. b = (v2sf) {e, f};
  35419. _Note:_ The CPU's endianness determines which value is stored in the
  35420. upper half of a register and which value is stored in the lower half.
  35421. On little-endian targets, the first value is the lower one and the
  35422. second value is the upper one. The opposite order applies to big-endian
  35423. targets. For example, the code above sets the lower half of 'a' to
  35424. '1.5' on little-endian targets and '9.1' on big-endian targets.
  35425. 
  35426. File: gcc.info, Node: MIPS Loongson Built-in Functions, Next: MIPS SIMD Architecture (MSA) Support, Prev: MIPS Paired-Single Support, Up: Target Builtins
  35427. 6.60.15 MIPS Loongson Built-in Functions
  35428. ----------------------------------------
  35429. GCC provides intrinsics to access the SIMD instructions provided by the
  35430. ST Microelectronics Loongson-2E and -2F processors. These intrinsics,
  35431. available after inclusion of the 'loongson.h' header file, operate on
  35432. the following 64-bit vector types:
  35433. * 'uint8x8_t', a vector of eight unsigned 8-bit integers;
  35434. * 'uint16x4_t', a vector of four unsigned 16-bit integers;
  35435. * 'uint32x2_t', a vector of two unsigned 32-bit integers;
  35436. * 'int8x8_t', a vector of eight signed 8-bit integers;
  35437. * 'int16x4_t', a vector of four signed 16-bit integers;
  35438. * 'int32x2_t', a vector of two signed 32-bit integers.
  35439. The intrinsics provided are listed below; each is named after the
  35440. machine instruction to which it corresponds, with suffixes added as
  35441. appropriate to distinguish intrinsics that expand to the same machine
  35442. instruction yet have different argument types. Refer to the
  35443. architecture documentation for a description of the functionality of
  35444. each instruction.
  35445. int16x4_t packsswh (int32x2_t s, int32x2_t t);
  35446. int8x8_t packsshb (int16x4_t s, int16x4_t t);
  35447. uint8x8_t packushb (uint16x4_t s, uint16x4_t t);
  35448. uint32x2_t paddw_u (uint32x2_t s, uint32x2_t t);
  35449. uint16x4_t paddh_u (uint16x4_t s, uint16x4_t t);
  35450. uint8x8_t paddb_u (uint8x8_t s, uint8x8_t t);
  35451. int32x2_t paddw_s (int32x2_t s, int32x2_t t);
  35452. int16x4_t paddh_s (int16x4_t s, int16x4_t t);
  35453. int8x8_t paddb_s (int8x8_t s, int8x8_t t);
  35454. uint64_t paddd_u (uint64_t s, uint64_t t);
  35455. int64_t paddd_s (int64_t s, int64_t t);
  35456. int16x4_t paddsh (int16x4_t s, int16x4_t t);
  35457. int8x8_t paddsb (int8x8_t s, int8x8_t t);
  35458. uint16x4_t paddush (uint16x4_t s, uint16x4_t t);
  35459. uint8x8_t paddusb (uint8x8_t s, uint8x8_t t);
  35460. uint64_t pandn_ud (uint64_t s, uint64_t t);
  35461. uint32x2_t pandn_uw (uint32x2_t s, uint32x2_t t);
  35462. uint16x4_t pandn_uh (uint16x4_t s, uint16x4_t t);
  35463. uint8x8_t pandn_ub (uint8x8_t s, uint8x8_t t);
  35464. int64_t pandn_sd (int64_t s, int64_t t);
  35465. int32x2_t pandn_sw (int32x2_t s, int32x2_t t);
  35466. int16x4_t pandn_sh (int16x4_t s, int16x4_t t);
  35467. int8x8_t pandn_sb (int8x8_t s, int8x8_t t);
  35468. uint16x4_t pavgh (uint16x4_t s, uint16x4_t t);
  35469. uint8x8_t pavgb (uint8x8_t s, uint8x8_t t);
  35470. uint32x2_t pcmpeqw_u (uint32x2_t s, uint32x2_t t);
  35471. uint16x4_t pcmpeqh_u (uint16x4_t s, uint16x4_t t);
  35472. uint8x8_t pcmpeqb_u (uint8x8_t s, uint8x8_t t);
  35473. int32x2_t pcmpeqw_s (int32x2_t s, int32x2_t t);
  35474. int16x4_t pcmpeqh_s (int16x4_t s, int16x4_t t);
  35475. int8x8_t pcmpeqb_s (int8x8_t s, int8x8_t t);
  35476. uint32x2_t pcmpgtw_u (uint32x2_t s, uint32x2_t t);
  35477. uint16x4_t pcmpgth_u (uint16x4_t s, uint16x4_t t);
  35478. uint8x8_t pcmpgtb_u (uint8x8_t s, uint8x8_t t);
  35479. int32x2_t pcmpgtw_s (int32x2_t s, int32x2_t t);
  35480. int16x4_t pcmpgth_s (int16x4_t s, int16x4_t t);
  35481. int8x8_t pcmpgtb_s (int8x8_t s, int8x8_t t);
  35482. uint16x4_t pextrh_u (uint16x4_t s, int field);
  35483. int16x4_t pextrh_s (int16x4_t s, int field);
  35484. uint16x4_t pinsrh_0_u (uint16x4_t s, uint16x4_t t);
  35485. uint16x4_t pinsrh_1_u (uint16x4_t s, uint16x4_t t);
  35486. uint16x4_t pinsrh_2_u (uint16x4_t s, uint16x4_t t);
  35487. uint16x4_t pinsrh_3_u (uint16x4_t s, uint16x4_t t);
  35488. int16x4_t pinsrh_0_s (int16x4_t s, int16x4_t t);
  35489. int16x4_t pinsrh_1_s (int16x4_t s, int16x4_t t);
  35490. int16x4_t pinsrh_2_s (int16x4_t s, int16x4_t t);
  35491. int16x4_t pinsrh_3_s (int16x4_t s, int16x4_t t);
  35492. int32x2_t pmaddhw (int16x4_t s, int16x4_t t);
  35493. int16x4_t pmaxsh (int16x4_t s, int16x4_t t);
  35494. uint8x8_t pmaxub (uint8x8_t s, uint8x8_t t);
  35495. int16x4_t pminsh (int16x4_t s, int16x4_t t);
  35496. uint8x8_t pminub (uint8x8_t s, uint8x8_t t);
  35497. uint8x8_t pmovmskb_u (uint8x8_t s);
  35498. int8x8_t pmovmskb_s (int8x8_t s);
  35499. uint16x4_t pmulhuh (uint16x4_t s, uint16x4_t t);
  35500. int16x4_t pmulhh (int16x4_t s, int16x4_t t);
  35501. int16x4_t pmullh (int16x4_t s, int16x4_t t);
  35502. int64_t pmuluw (uint32x2_t s, uint32x2_t t);
  35503. uint8x8_t pasubub (uint8x8_t s, uint8x8_t t);
  35504. uint16x4_t biadd (uint8x8_t s);
  35505. uint16x4_t psadbh (uint8x8_t s, uint8x8_t t);
  35506. uint16x4_t pshufh_u (uint16x4_t dest, uint16x4_t s, uint8_t order);
  35507. int16x4_t pshufh_s (int16x4_t dest, int16x4_t s, uint8_t order);
  35508. uint16x4_t psllh_u (uint16x4_t s, uint8_t amount);
  35509. int16x4_t psllh_s (int16x4_t s, uint8_t amount);
  35510. uint32x2_t psllw_u (uint32x2_t s, uint8_t amount);
  35511. int32x2_t psllw_s (int32x2_t s, uint8_t amount);
  35512. uint16x4_t psrlh_u (uint16x4_t s, uint8_t amount);
  35513. int16x4_t psrlh_s (int16x4_t s, uint8_t amount);
  35514. uint32x2_t psrlw_u (uint32x2_t s, uint8_t amount);
  35515. int32x2_t psrlw_s (int32x2_t s, uint8_t amount);
  35516. uint16x4_t psrah_u (uint16x4_t s, uint8_t amount);
  35517. int16x4_t psrah_s (int16x4_t s, uint8_t amount);
  35518. uint32x2_t psraw_u (uint32x2_t s, uint8_t amount);
  35519. int32x2_t psraw_s (int32x2_t s, uint8_t amount);
  35520. uint32x2_t psubw_u (uint32x2_t s, uint32x2_t t);
  35521. uint16x4_t psubh_u (uint16x4_t s, uint16x4_t t);
  35522. uint8x8_t psubb_u (uint8x8_t s, uint8x8_t t);
  35523. int32x2_t psubw_s (int32x2_t s, int32x2_t t);
  35524. int16x4_t psubh_s (int16x4_t s, int16x4_t t);
  35525. int8x8_t psubb_s (int8x8_t s, int8x8_t t);
  35526. uint64_t psubd_u (uint64_t s, uint64_t t);
  35527. int64_t psubd_s (int64_t s, int64_t t);
  35528. int16x4_t psubsh (int16x4_t s, int16x4_t t);
  35529. int8x8_t psubsb (int8x8_t s, int8x8_t t);
  35530. uint16x4_t psubush (uint16x4_t s, uint16x4_t t);
  35531. uint8x8_t psubusb (uint8x8_t s, uint8x8_t t);
  35532. uint32x2_t punpckhwd_u (uint32x2_t s, uint32x2_t t);
  35533. uint16x4_t punpckhhw_u (uint16x4_t s, uint16x4_t t);
  35534. uint8x8_t punpckhbh_u (uint8x8_t s, uint8x8_t t);
  35535. int32x2_t punpckhwd_s (int32x2_t s, int32x2_t t);
  35536. int16x4_t punpckhhw_s (int16x4_t s, int16x4_t t);
  35537. int8x8_t punpckhbh_s (int8x8_t s, int8x8_t t);
  35538. uint32x2_t punpcklwd_u (uint32x2_t s, uint32x2_t t);
  35539. uint16x4_t punpcklhw_u (uint16x4_t s, uint16x4_t t);
  35540. uint8x8_t punpcklbh_u (uint8x8_t s, uint8x8_t t);
  35541. int32x2_t punpcklwd_s (int32x2_t s, int32x2_t t);
  35542. int16x4_t punpcklhw_s (int16x4_t s, int16x4_t t);
  35543. int8x8_t punpcklbh_s (int8x8_t s, int8x8_t t);
  35544. * Menu:
  35545. * Paired-Single Arithmetic::
  35546. * Paired-Single Built-in Functions::
  35547. * MIPS-3D Built-in Functions::
  35548. 
  35549. File: gcc.info, Node: Paired-Single Arithmetic, Next: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  35550. 6.60.15.1 Paired-Single Arithmetic
  35551. ..................................
  35552. The table below lists the 'v2sf' operations for which hardware support
  35553. exists. 'a', 'b' and 'c' are 'v2sf' values and 'x' is an integral
  35554. value.
  35555. C code MIPS instruction
  35556. 'a + b' 'add.ps'
  35557. 'a - b' 'sub.ps'
  35558. '-a' 'neg.ps'
  35559. 'a * b' 'mul.ps'
  35560. 'a * b + c' 'madd.ps'
  35561. 'a * b - c' 'msub.ps'
  35562. '-(a * b + c)' 'nmadd.ps'
  35563. '-(a * b - c)' 'nmsub.ps'
  35564. 'x ? a : b' 'movn.ps'/'movz.ps'
  35565. Note that the multiply-accumulate instructions can be disabled using
  35566. the command-line option '-mno-fused-madd'.
  35567. 
  35568. 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
  35569. 6.60.15.2 Paired-Single Built-in Functions
  35570. ..........................................
  35571. The following paired-single functions map directly to a particular MIPS
  35572. instruction. Please refer to the architecture specification for details
  35573. on what each instruction does.
  35574. 'v2sf __builtin_mips_pll_ps (v2sf, v2sf)'
  35575. Pair lower lower ('pll.ps').
  35576. 'v2sf __builtin_mips_pul_ps (v2sf, v2sf)'
  35577. Pair upper lower ('pul.ps').
  35578. 'v2sf __builtin_mips_plu_ps (v2sf, v2sf)'
  35579. Pair lower upper ('plu.ps').
  35580. 'v2sf __builtin_mips_puu_ps (v2sf, v2sf)'
  35581. Pair upper upper ('puu.ps').
  35582. 'v2sf __builtin_mips_cvt_ps_s (float, float)'
  35583. Convert pair to paired single ('cvt.ps.s').
  35584. 'float __builtin_mips_cvt_s_pl (v2sf)'
  35585. Convert pair lower to single ('cvt.s.pl').
  35586. 'float __builtin_mips_cvt_s_pu (v2sf)'
  35587. Convert pair upper to single ('cvt.s.pu').
  35588. 'v2sf __builtin_mips_abs_ps (v2sf)'
  35589. Absolute value ('abs.ps').
  35590. 'v2sf __builtin_mips_alnv_ps (v2sf, v2sf, int)'
  35591. Align variable ('alnv.ps').
  35592. _Note:_ The value of the third parameter must be 0 or 4 modulo 8,
  35593. otherwise the result is unpredictable. Please read the instruction
  35594. description for details.
  35595. The following multi-instruction functions are also available. In each
  35596. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  35597. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  35598. 'lt', 'nge', 'le' or 'ngt'.
  35599. 'v2sf __builtin_mips_movt_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  35600. 'v2sf __builtin_mips_movf_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  35601. Conditional move based on floating-point comparison ('c.COND.ps',
  35602. 'movt.ps'/'movf.ps').
  35603. The 'movt' functions return the value X computed by:
  35604. c.COND.ps CC,A,B
  35605. mov.ps X,C
  35606. movt.ps X,D,CC
  35607. The 'movf' functions are similar but use 'movf.ps' instead of
  35608. 'movt.ps'.
  35609. 'int __builtin_mips_upper_c_COND_ps (v2sf A, v2sf B)'
  35610. 'int __builtin_mips_lower_c_COND_ps (v2sf A, v2sf B)'
  35611. Comparison of two paired-single values ('c.COND.ps',
  35612. 'bc1t'/'bc1f').
  35613. These functions compare A and B using 'c.COND.ps' and return either
  35614. the upper or lower half of the result. For example:
  35615. v2sf a, b;
  35616. if (__builtin_mips_upper_c_eq_ps (a, b))
  35617. upper_halves_are_equal ();
  35618. else
  35619. upper_halves_are_unequal ();
  35620. if (__builtin_mips_lower_c_eq_ps (a, b))
  35621. lower_halves_are_equal ();
  35622. else
  35623. lower_halves_are_unequal ();
  35624. 
  35625. File: gcc.info, Node: MIPS-3D Built-in Functions, Prev: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  35626. 6.60.15.3 MIPS-3D Built-in Functions
  35627. ....................................
  35628. The MIPS-3D Application-Specific Extension (ASE) includes additional
  35629. paired-single instructions that are designed to improve the performance
  35630. of 3D graphics operations. Support for these instructions is controlled
  35631. by the '-mips3d' command-line option.
  35632. The functions listed below map directly to a particular MIPS-3D
  35633. instruction. Please refer to the architecture specification for more
  35634. details on what each instruction does.
  35635. 'v2sf __builtin_mips_addr_ps (v2sf, v2sf)'
  35636. Reduction add ('addr.ps').
  35637. 'v2sf __builtin_mips_mulr_ps (v2sf, v2sf)'
  35638. Reduction multiply ('mulr.ps').
  35639. 'v2sf __builtin_mips_cvt_pw_ps (v2sf)'
  35640. Convert paired single to paired word ('cvt.pw.ps').
  35641. 'v2sf __builtin_mips_cvt_ps_pw (v2sf)'
  35642. Convert paired word to paired single ('cvt.ps.pw').
  35643. 'float __builtin_mips_recip1_s (float)'
  35644. 'double __builtin_mips_recip1_d (double)'
  35645. 'v2sf __builtin_mips_recip1_ps (v2sf)'
  35646. Reduced-precision reciprocal (sequence step 1) ('recip1.FMT').
  35647. 'float __builtin_mips_recip2_s (float, float)'
  35648. 'double __builtin_mips_recip2_d (double, double)'
  35649. 'v2sf __builtin_mips_recip2_ps (v2sf, v2sf)'
  35650. Reduced-precision reciprocal (sequence step 2) ('recip2.FMT').
  35651. 'float __builtin_mips_rsqrt1_s (float)'
  35652. 'double __builtin_mips_rsqrt1_d (double)'
  35653. 'v2sf __builtin_mips_rsqrt1_ps (v2sf)'
  35654. Reduced-precision reciprocal square root (sequence step 1)
  35655. ('rsqrt1.FMT').
  35656. 'float __builtin_mips_rsqrt2_s (float, float)'
  35657. 'double __builtin_mips_rsqrt2_d (double, double)'
  35658. 'v2sf __builtin_mips_rsqrt2_ps (v2sf, v2sf)'
  35659. Reduced-precision reciprocal square root (sequence step 2)
  35660. ('rsqrt2.FMT').
  35661. The following multi-instruction functions are also available. In each
  35662. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  35663. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  35664. 'lt', 'nge', 'le' or 'ngt'.
  35665. 'int __builtin_mips_cabs_COND_s (float A, float B)'
  35666. 'int __builtin_mips_cabs_COND_d (double A, double B)'
  35667. Absolute comparison of two scalar values ('cabs.COND.FMT',
  35668. 'bc1t'/'bc1f').
  35669. These functions compare A and B using 'cabs.COND.s' or
  35670. 'cabs.COND.d' and return the result as a boolean value. For
  35671. example:
  35672. float a, b;
  35673. if (__builtin_mips_cabs_eq_s (a, b))
  35674. true ();
  35675. else
  35676. false ();
  35677. 'int __builtin_mips_upper_cabs_COND_ps (v2sf A, v2sf B)'
  35678. 'int __builtin_mips_lower_cabs_COND_ps (v2sf A, v2sf B)'
  35679. Absolute comparison of two paired-single values ('cabs.COND.ps',
  35680. 'bc1t'/'bc1f').
  35681. These functions compare A and B using 'cabs.COND.ps' and return
  35682. either the upper or lower half of the result. For example:
  35683. v2sf a, b;
  35684. if (__builtin_mips_upper_cabs_eq_ps (a, b))
  35685. upper_halves_are_equal ();
  35686. else
  35687. upper_halves_are_unequal ();
  35688. if (__builtin_mips_lower_cabs_eq_ps (a, b))
  35689. lower_halves_are_equal ();
  35690. else
  35691. lower_halves_are_unequal ();
  35692. 'v2sf __builtin_mips_movt_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  35693. 'v2sf __builtin_mips_movf_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  35694. Conditional move based on absolute comparison ('cabs.COND.ps',
  35695. 'movt.ps'/'movf.ps').
  35696. The 'movt' functions return the value X computed by:
  35697. cabs.COND.ps CC,A,B
  35698. mov.ps X,C
  35699. movt.ps X,D,CC
  35700. The 'movf' functions are similar but use 'movf.ps' instead of
  35701. 'movt.ps'.
  35702. 'int __builtin_mips_any_c_COND_ps (v2sf A, v2sf B)'
  35703. 'int __builtin_mips_all_c_COND_ps (v2sf A, v2sf B)'
  35704. 'int __builtin_mips_any_cabs_COND_ps (v2sf A, v2sf B)'
  35705. 'int __builtin_mips_all_cabs_COND_ps (v2sf A, v2sf B)'
  35706. Comparison of two paired-single values ('c.COND.ps'/'cabs.COND.ps',
  35707. 'bc1any2t'/'bc1any2f').
  35708. These functions compare A and B using 'c.COND.ps' or
  35709. 'cabs.COND.ps'. The 'any' forms return 'true' if either result is
  35710. 'true' and the 'all' forms return 'true' if both results are
  35711. 'true'. For example:
  35712. v2sf a, b;
  35713. if (__builtin_mips_any_c_eq_ps (a, b))
  35714. one_is_true ();
  35715. else
  35716. both_are_false ();
  35717. if (__builtin_mips_all_c_eq_ps (a, b))
  35718. both_are_true ();
  35719. else
  35720. one_is_false ();
  35721. 'int __builtin_mips_any_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  35722. 'int __builtin_mips_all_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  35723. 'int __builtin_mips_any_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  35724. 'int __builtin_mips_all_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  35725. Comparison of four paired-single values
  35726. ('c.COND.ps'/'cabs.COND.ps', 'bc1any4t'/'bc1any4f').
  35727. These functions use 'c.COND.ps' or 'cabs.COND.ps' to compare A with
  35728. B and to compare C with D. The 'any' forms return 'true' if any of
  35729. the four results are 'true' and the 'all' forms return 'true' if
  35730. all four results are 'true'. For example:
  35731. v2sf a, b, c, d;
  35732. if (__builtin_mips_any_c_eq_4s (a, b, c, d))
  35733. some_are_true ();
  35734. else
  35735. all_are_false ();
  35736. if (__builtin_mips_all_c_eq_4s (a, b, c, d))
  35737. all_are_true ();
  35738. else
  35739. some_are_false ();
  35740. 
  35741. File: gcc.info, Node: MIPS SIMD Architecture (MSA) Support, Next: Other MIPS Built-in Functions, Prev: MIPS Loongson Built-in Functions, Up: Target Builtins
  35742. 6.60.16 MIPS SIMD Architecture (MSA) Support
  35743. --------------------------------------------
  35744. * Menu:
  35745. * MIPS SIMD Architecture Built-in Functions::
  35746. GCC provides intrinsics to access the SIMD instructions provided by the
  35747. MSA MIPS SIMD Architecture. The interface is made available by
  35748. including '<msa.h>' and using '-mmsa -mhard-float -mfp64 -mnan=2008'.
  35749. For each '__builtin_msa_*', there is a shortened name of the intrinsic,
  35750. '__msa_*'.
  35751. MSA implements 128-bit wide vector registers, operating on 8-, 16-, 32-
  35752. and 64-bit integer, 16- and 32-bit fixed-point, or 32- and 64-bit
  35753. floating point data elements. The following vectors typedefs are
  35754. included in 'msa.h':
  35755. * 'v16i8', a vector of sixteen signed 8-bit integers;
  35756. * 'v16u8', a vector of sixteen unsigned 8-bit integers;
  35757. * 'v8i16', a vector of eight signed 16-bit integers;
  35758. * 'v8u16', a vector of eight unsigned 16-bit integers;
  35759. * 'v4i32', a vector of four signed 32-bit integers;
  35760. * 'v4u32', a vector of four unsigned 32-bit integers;
  35761. * 'v2i64', a vector of two signed 64-bit integers;
  35762. * 'v2u64', a vector of two unsigned 64-bit integers;
  35763. * 'v4f32', a vector of four 32-bit floats;
  35764. * 'v2f64', a vector of two 64-bit doubles.
  35765. Instructions and corresponding built-ins may have additional
  35766. restrictions and/or input/output values manipulated:
  35767. * 'imm0_1', an integer literal in range 0 to 1;
  35768. * 'imm0_3', an integer literal in range 0 to 3;
  35769. * 'imm0_7', an integer literal in range 0 to 7;
  35770. * 'imm0_15', an integer literal in range 0 to 15;
  35771. * 'imm0_31', an integer literal in range 0 to 31;
  35772. * 'imm0_63', an integer literal in range 0 to 63;
  35773. * 'imm0_255', an integer literal in range 0 to 255;
  35774. * 'imm_n16_15', an integer literal in range -16 to 15;
  35775. * 'imm_n512_511', an integer literal in range -512 to 511;
  35776. * 'imm_n1024_1022', an integer literal in range -512 to 511 left
  35777. shifted by 1 bit, i.e., -1024, -1022, ..., 1020, 1022;
  35778. * 'imm_n2048_2044', an integer literal in range -512 to 511 left
  35779. shifted by 2 bits, i.e., -2048, -2044, ..., 2040, 2044;
  35780. * 'imm_n4096_4088', an integer literal in range -512 to 511 left
  35781. shifted by 3 bits, i.e., -4096, -4088, ..., 4080, 4088;
  35782. * 'imm1_4', an integer literal in range 1 to 4;
  35783. * 'i32, i64, u32, u64, f32, f64', defined as follows:
  35784. {
  35785. typedef int i32;
  35786. #if __LONG_MAX__ == __LONG_LONG_MAX__
  35787. typedef long i64;
  35788. #else
  35789. typedef long long i64;
  35790. #endif
  35791. typedef unsigned int u32;
  35792. #if __LONG_MAX__ == __LONG_LONG_MAX__
  35793. typedef unsigned long u64;
  35794. #else
  35795. typedef unsigned long long u64;
  35796. #endif
  35797. typedef double f64;
  35798. typedef float f32;
  35799. }
  35800. 
  35801. File: gcc.info, Node: MIPS SIMD Architecture Built-in Functions, Up: MIPS SIMD Architecture (MSA) Support
  35802. 6.60.16.1 MIPS SIMD Architecture Built-in Functions
  35803. ...................................................
  35804. The intrinsics provided are listed below; each is named after the
  35805. machine instruction.
  35806. v16i8 __builtin_msa_add_a_b (v16i8, v16i8);
  35807. v8i16 __builtin_msa_add_a_h (v8i16, v8i16);
  35808. v4i32 __builtin_msa_add_a_w (v4i32, v4i32);
  35809. v2i64 __builtin_msa_add_a_d (v2i64, v2i64);
  35810. v16i8 __builtin_msa_adds_a_b (v16i8, v16i8);
  35811. v8i16 __builtin_msa_adds_a_h (v8i16, v8i16);
  35812. v4i32 __builtin_msa_adds_a_w (v4i32, v4i32);
  35813. v2i64 __builtin_msa_adds_a_d (v2i64, v2i64);
  35814. v16i8 __builtin_msa_adds_s_b (v16i8, v16i8);
  35815. v8i16 __builtin_msa_adds_s_h (v8i16, v8i16);
  35816. v4i32 __builtin_msa_adds_s_w (v4i32, v4i32);
  35817. v2i64 __builtin_msa_adds_s_d (v2i64, v2i64);
  35818. v16u8 __builtin_msa_adds_u_b (v16u8, v16u8);
  35819. v8u16 __builtin_msa_adds_u_h (v8u16, v8u16);
  35820. v4u32 __builtin_msa_adds_u_w (v4u32, v4u32);
  35821. v2u64 __builtin_msa_adds_u_d (v2u64, v2u64);
  35822. v16i8 __builtin_msa_addv_b (v16i8, v16i8);
  35823. v8i16 __builtin_msa_addv_h (v8i16, v8i16);
  35824. v4i32 __builtin_msa_addv_w (v4i32, v4i32);
  35825. v2i64 __builtin_msa_addv_d (v2i64, v2i64);
  35826. v16i8 __builtin_msa_addvi_b (v16i8, imm0_31);
  35827. v8i16 __builtin_msa_addvi_h (v8i16, imm0_31);
  35828. v4i32 __builtin_msa_addvi_w (v4i32, imm0_31);
  35829. v2i64 __builtin_msa_addvi_d (v2i64, imm0_31);
  35830. v16u8 __builtin_msa_and_v (v16u8, v16u8);
  35831. v16u8 __builtin_msa_andi_b (v16u8, imm0_255);
  35832. v16i8 __builtin_msa_asub_s_b (v16i8, v16i8);
  35833. v8i16 __builtin_msa_asub_s_h (v8i16, v8i16);
  35834. v4i32 __builtin_msa_asub_s_w (v4i32, v4i32);
  35835. v2i64 __builtin_msa_asub_s_d (v2i64, v2i64);
  35836. v16u8 __builtin_msa_asub_u_b (v16u8, v16u8);
  35837. v8u16 __builtin_msa_asub_u_h (v8u16, v8u16);
  35838. v4u32 __builtin_msa_asub_u_w (v4u32, v4u32);
  35839. v2u64 __builtin_msa_asub_u_d (v2u64, v2u64);
  35840. v16i8 __builtin_msa_ave_s_b (v16i8, v16i8);
  35841. v8i16 __builtin_msa_ave_s_h (v8i16, v8i16);
  35842. v4i32 __builtin_msa_ave_s_w (v4i32, v4i32);
  35843. v2i64 __builtin_msa_ave_s_d (v2i64, v2i64);
  35844. v16u8 __builtin_msa_ave_u_b (v16u8, v16u8);
  35845. v8u16 __builtin_msa_ave_u_h (v8u16, v8u16);
  35846. v4u32 __builtin_msa_ave_u_w (v4u32, v4u32);
  35847. v2u64 __builtin_msa_ave_u_d (v2u64, v2u64);
  35848. v16i8 __builtin_msa_aver_s_b (v16i8, v16i8);
  35849. v8i16 __builtin_msa_aver_s_h (v8i16, v8i16);
  35850. v4i32 __builtin_msa_aver_s_w (v4i32, v4i32);
  35851. v2i64 __builtin_msa_aver_s_d (v2i64, v2i64);
  35852. v16u8 __builtin_msa_aver_u_b (v16u8, v16u8);
  35853. v8u16 __builtin_msa_aver_u_h (v8u16, v8u16);
  35854. v4u32 __builtin_msa_aver_u_w (v4u32, v4u32);
  35855. v2u64 __builtin_msa_aver_u_d (v2u64, v2u64);
  35856. v16u8 __builtin_msa_bclr_b (v16u8, v16u8);
  35857. v8u16 __builtin_msa_bclr_h (v8u16, v8u16);
  35858. v4u32 __builtin_msa_bclr_w (v4u32, v4u32);
  35859. v2u64 __builtin_msa_bclr_d (v2u64, v2u64);
  35860. v16u8 __builtin_msa_bclri_b (v16u8, imm0_7);
  35861. v8u16 __builtin_msa_bclri_h (v8u16, imm0_15);
  35862. v4u32 __builtin_msa_bclri_w (v4u32, imm0_31);
  35863. v2u64 __builtin_msa_bclri_d (v2u64, imm0_63);
  35864. v16u8 __builtin_msa_binsl_b (v16u8, v16u8, v16u8);
  35865. v8u16 __builtin_msa_binsl_h (v8u16, v8u16, v8u16);
  35866. v4u32 __builtin_msa_binsl_w (v4u32, v4u32, v4u32);
  35867. v2u64 __builtin_msa_binsl_d (v2u64, v2u64, v2u64);
  35868. v16u8 __builtin_msa_binsli_b (v16u8, v16u8, imm0_7);
  35869. v8u16 __builtin_msa_binsli_h (v8u16, v8u16, imm0_15);
  35870. v4u32 __builtin_msa_binsli_w (v4u32, v4u32, imm0_31);
  35871. v2u64 __builtin_msa_binsli_d (v2u64, v2u64, imm0_63);
  35872. v16u8 __builtin_msa_binsr_b (v16u8, v16u8, v16u8);
  35873. v8u16 __builtin_msa_binsr_h (v8u16, v8u16, v8u16);
  35874. v4u32 __builtin_msa_binsr_w (v4u32, v4u32, v4u32);
  35875. v2u64 __builtin_msa_binsr_d (v2u64, v2u64, v2u64);
  35876. v16u8 __builtin_msa_binsri_b (v16u8, v16u8, imm0_7);
  35877. v8u16 __builtin_msa_binsri_h (v8u16, v8u16, imm0_15);
  35878. v4u32 __builtin_msa_binsri_w (v4u32, v4u32, imm0_31);
  35879. v2u64 __builtin_msa_binsri_d (v2u64, v2u64, imm0_63);
  35880. v16u8 __builtin_msa_bmnz_v (v16u8, v16u8, v16u8);
  35881. v16u8 __builtin_msa_bmnzi_b (v16u8, v16u8, imm0_255);
  35882. v16u8 __builtin_msa_bmz_v (v16u8, v16u8, v16u8);
  35883. v16u8 __builtin_msa_bmzi_b (v16u8, v16u8, imm0_255);
  35884. v16u8 __builtin_msa_bneg_b (v16u8, v16u8);
  35885. v8u16 __builtin_msa_bneg_h (v8u16, v8u16);
  35886. v4u32 __builtin_msa_bneg_w (v4u32, v4u32);
  35887. v2u64 __builtin_msa_bneg_d (v2u64, v2u64);
  35888. v16u8 __builtin_msa_bnegi_b (v16u8, imm0_7);
  35889. v8u16 __builtin_msa_bnegi_h (v8u16, imm0_15);
  35890. v4u32 __builtin_msa_bnegi_w (v4u32, imm0_31);
  35891. v2u64 __builtin_msa_bnegi_d (v2u64, imm0_63);
  35892. i32 __builtin_msa_bnz_b (v16u8);
  35893. i32 __builtin_msa_bnz_h (v8u16);
  35894. i32 __builtin_msa_bnz_w (v4u32);
  35895. i32 __builtin_msa_bnz_d (v2u64);
  35896. i32 __builtin_msa_bnz_v (v16u8);
  35897. v16u8 __builtin_msa_bsel_v (v16u8, v16u8, v16u8);
  35898. v16u8 __builtin_msa_bseli_b (v16u8, v16u8, imm0_255);
  35899. v16u8 __builtin_msa_bset_b (v16u8, v16u8);
  35900. v8u16 __builtin_msa_bset_h (v8u16, v8u16);
  35901. v4u32 __builtin_msa_bset_w (v4u32, v4u32);
  35902. v2u64 __builtin_msa_bset_d (v2u64, v2u64);
  35903. v16u8 __builtin_msa_bseti_b (v16u8, imm0_7);
  35904. v8u16 __builtin_msa_bseti_h (v8u16, imm0_15);
  35905. v4u32 __builtin_msa_bseti_w (v4u32, imm0_31);
  35906. v2u64 __builtin_msa_bseti_d (v2u64, imm0_63);
  35907. i32 __builtin_msa_bz_b (v16u8);
  35908. i32 __builtin_msa_bz_h (v8u16);
  35909. i32 __builtin_msa_bz_w (v4u32);
  35910. i32 __builtin_msa_bz_d (v2u64);
  35911. i32 __builtin_msa_bz_v (v16u8);
  35912. v16i8 __builtin_msa_ceq_b (v16i8, v16i8);
  35913. v8i16 __builtin_msa_ceq_h (v8i16, v8i16);
  35914. v4i32 __builtin_msa_ceq_w (v4i32, v4i32);
  35915. v2i64 __builtin_msa_ceq_d (v2i64, v2i64);
  35916. v16i8 __builtin_msa_ceqi_b (v16i8, imm_n16_15);
  35917. v8i16 __builtin_msa_ceqi_h (v8i16, imm_n16_15);
  35918. v4i32 __builtin_msa_ceqi_w (v4i32, imm_n16_15);
  35919. v2i64 __builtin_msa_ceqi_d (v2i64, imm_n16_15);
  35920. i32 __builtin_msa_cfcmsa (imm0_31);
  35921. v16i8 __builtin_msa_cle_s_b (v16i8, v16i8);
  35922. v8i16 __builtin_msa_cle_s_h (v8i16, v8i16);
  35923. v4i32 __builtin_msa_cle_s_w (v4i32, v4i32);
  35924. v2i64 __builtin_msa_cle_s_d (v2i64, v2i64);
  35925. v16i8 __builtin_msa_cle_u_b (v16u8, v16u8);
  35926. v8i16 __builtin_msa_cle_u_h (v8u16, v8u16);
  35927. v4i32 __builtin_msa_cle_u_w (v4u32, v4u32);
  35928. v2i64 __builtin_msa_cle_u_d (v2u64, v2u64);
  35929. v16i8 __builtin_msa_clei_s_b (v16i8, imm_n16_15);
  35930. v8i16 __builtin_msa_clei_s_h (v8i16, imm_n16_15);
  35931. v4i32 __builtin_msa_clei_s_w (v4i32, imm_n16_15);
  35932. v2i64 __builtin_msa_clei_s_d (v2i64, imm_n16_15);
  35933. v16i8 __builtin_msa_clei_u_b (v16u8, imm0_31);
  35934. v8i16 __builtin_msa_clei_u_h (v8u16, imm0_31);
  35935. v4i32 __builtin_msa_clei_u_w (v4u32, imm0_31);
  35936. v2i64 __builtin_msa_clei_u_d (v2u64, imm0_31);
  35937. v16i8 __builtin_msa_clt_s_b (v16i8, v16i8);
  35938. v8i16 __builtin_msa_clt_s_h (v8i16, v8i16);
  35939. v4i32 __builtin_msa_clt_s_w (v4i32, v4i32);
  35940. v2i64 __builtin_msa_clt_s_d (v2i64, v2i64);
  35941. v16i8 __builtin_msa_clt_u_b (v16u8, v16u8);
  35942. v8i16 __builtin_msa_clt_u_h (v8u16, v8u16);
  35943. v4i32 __builtin_msa_clt_u_w (v4u32, v4u32);
  35944. v2i64 __builtin_msa_clt_u_d (v2u64, v2u64);
  35945. v16i8 __builtin_msa_clti_s_b (v16i8, imm_n16_15);
  35946. v8i16 __builtin_msa_clti_s_h (v8i16, imm_n16_15);
  35947. v4i32 __builtin_msa_clti_s_w (v4i32, imm_n16_15);
  35948. v2i64 __builtin_msa_clti_s_d (v2i64, imm_n16_15);
  35949. v16i8 __builtin_msa_clti_u_b (v16u8, imm0_31);
  35950. v8i16 __builtin_msa_clti_u_h (v8u16, imm0_31);
  35951. v4i32 __builtin_msa_clti_u_w (v4u32, imm0_31);
  35952. v2i64 __builtin_msa_clti_u_d (v2u64, imm0_31);
  35953. i32 __builtin_msa_copy_s_b (v16i8, imm0_15);
  35954. i32 __builtin_msa_copy_s_h (v8i16, imm0_7);
  35955. i32 __builtin_msa_copy_s_w (v4i32, imm0_3);
  35956. i64 __builtin_msa_copy_s_d (v2i64, imm0_1);
  35957. u32 __builtin_msa_copy_u_b (v16i8, imm0_15);
  35958. u32 __builtin_msa_copy_u_h (v8i16, imm0_7);
  35959. u32 __builtin_msa_copy_u_w (v4i32, imm0_3);
  35960. u64 __builtin_msa_copy_u_d (v2i64, imm0_1);
  35961. void __builtin_msa_ctcmsa (imm0_31, i32);
  35962. v16i8 __builtin_msa_div_s_b (v16i8, v16i8);
  35963. v8i16 __builtin_msa_div_s_h (v8i16, v8i16);
  35964. v4i32 __builtin_msa_div_s_w (v4i32, v4i32);
  35965. v2i64 __builtin_msa_div_s_d (v2i64, v2i64);
  35966. v16u8 __builtin_msa_div_u_b (v16u8, v16u8);
  35967. v8u16 __builtin_msa_div_u_h (v8u16, v8u16);
  35968. v4u32 __builtin_msa_div_u_w (v4u32, v4u32);
  35969. v2u64 __builtin_msa_div_u_d (v2u64, v2u64);
  35970. v8i16 __builtin_msa_dotp_s_h (v16i8, v16i8);
  35971. v4i32 __builtin_msa_dotp_s_w (v8i16, v8i16);
  35972. v2i64 __builtin_msa_dotp_s_d (v4i32, v4i32);
  35973. v8u16 __builtin_msa_dotp_u_h (v16u8, v16u8);
  35974. v4u32 __builtin_msa_dotp_u_w (v8u16, v8u16);
  35975. v2u64 __builtin_msa_dotp_u_d (v4u32, v4u32);
  35976. v8i16 __builtin_msa_dpadd_s_h (v8i16, v16i8, v16i8);
  35977. v4i32 __builtin_msa_dpadd_s_w (v4i32, v8i16, v8i16);
  35978. v2i64 __builtin_msa_dpadd_s_d (v2i64, v4i32, v4i32);
  35979. v8u16 __builtin_msa_dpadd_u_h (v8u16, v16u8, v16u8);
  35980. v4u32 __builtin_msa_dpadd_u_w (v4u32, v8u16, v8u16);
  35981. v2u64 __builtin_msa_dpadd_u_d (v2u64, v4u32, v4u32);
  35982. v8i16 __builtin_msa_dpsub_s_h (v8i16, v16i8, v16i8);
  35983. v4i32 __builtin_msa_dpsub_s_w (v4i32, v8i16, v8i16);
  35984. v2i64 __builtin_msa_dpsub_s_d (v2i64, v4i32, v4i32);
  35985. v8i16 __builtin_msa_dpsub_u_h (v8i16, v16u8, v16u8);
  35986. v4i32 __builtin_msa_dpsub_u_w (v4i32, v8u16, v8u16);
  35987. v2i64 __builtin_msa_dpsub_u_d (v2i64, v4u32, v4u32);
  35988. v4f32 __builtin_msa_fadd_w (v4f32, v4f32);
  35989. v2f64 __builtin_msa_fadd_d (v2f64, v2f64);
  35990. v4i32 __builtin_msa_fcaf_w (v4f32, v4f32);
  35991. v2i64 __builtin_msa_fcaf_d (v2f64, v2f64);
  35992. v4i32 __builtin_msa_fceq_w (v4f32, v4f32);
  35993. v2i64 __builtin_msa_fceq_d (v2f64, v2f64);
  35994. v4i32 __builtin_msa_fclass_w (v4f32);
  35995. v2i64 __builtin_msa_fclass_d (v2f64);
  35996. v4i32 __builtin_msa_fcle_w (v4f32, v4f32);
  35997. v2i64 __builtin_msa_fcle_d (v2f64, v2f64);
  35998. v4i32 __builtin_msa_fclt_w (v4f32, v4f32);
  35999. v2i64 __builtin_msa_fclt_d (v2f64, v2f64);
  36000. v4i32 __builtin_msa_fcne_w (v4f32, v4f32);
  36001. v2i64 __builtin_msa_fcne_d (v2f64, v2f64);
  36002. v4i32 __builtin_msa_fcor_w (v4f32, v4f32);
  36003. v2i64 __builtin_msa_fcor_d (v2f64, v2f64);
  36004. v4i32 __builtin_msa_fcueq_w (v4f32, v4f32);
  36005. v2i64 __builtin_msa_fcueq_d (v2f64, v2f64);
  36006. v4i32 __builtin_msa_fcule_w (v4f32, v4f32);
  36007. v2i64 __builtin_msa_fcule_d (v2f64, v2f64);
  36008. v4i32 __builtin_msa_fcult_w (v4f32, v4f32);
  36009. v2i64 __builtin_msa_fcult_d (v2f64, v2f64);
  36010. v4i32 __builtin_msa_fcun_w (v4f32, v4f32);
  36011. v2i64 __builtin_msa_fcun_d (v2f64, v2f64);
  36012. v4i32 __builtin_msa_fcune_w (v4f32, v4f32);
  36013. v2i64 __builtin_msa_fcune_d (v2f64, v2f64);
  36014. v4f32 __builtin_msa_fdiv_w (v4f32, v4f32);
  36015. v2f64 __builtin_msa_fdiv_d (v2f64, v2f64);
  36016. v8i16 __builtin_msa_fexdo_h (v4f32, v4f32);
  36017. v4f32 __builtin_msa_fexdo_w (v2f64, v2f64);
  36018. v4f32 __builtin_msa_fexp2_w (v4f32, v4i32);
  36019. v2f64 __builtin_msa_fexp2_d (v2f64, v2i64);
  36020. v4f32 __builtin_msa_fexupl_w (v8i16);
  36021. v2f64 __builtin_msa_fexupl_d (v4f32);
  36022. v4f32 __builtin_msa_fexupr_w (v8i16);
  36023. v2f64 __builtin_msa_fexupr_d (v4f32);
  36024. v4f32 __builtin_msa_ffint_s_w (v4i32);
  36025. v2f64 __builtin_msa_ffint_s_d (v2i64);
  36026. v4f32 __builtin_msa_ffint_u_w (v4u32);
  36027. v2f64 __builtin_msa_ffint_u_d (v2u64);
  36028. v4f32 __builtin_msa_ffql_w (v8i16);
  36029. v2f64 __builtin_msa_ffql_d (v4i32);
  36030. v4f32 __builtin_msa_ffqr_w (v8i16);
  36031. v2f64 __builtin_msa_ffqr_d (v4i32);
  36032. v16i8 __builtin_msa_fill_b (i32);
  36033. v8i16 __builtin_msa_fill_h (i32);
  36034. v4i32 __builtin_msa_fill_w (i32);
  36035. v2i64 __builtin_msa_fill_d (i64);
  36036. v4f32 __builtin_msa_flog2_w (v4f32);
  36037. v2f64 __builtin_msa_flog2_d (v2f64);
  36038. v4f32 __builtin_msa_fmadd_w (v4f32, v4f32, v4f32);
  36039. v2f64 __builtin_msa_fmadd_d (v2f64, v2f64, v2f64);
  36040. v4f32 __builtin_msa_fmax_w (v4f32, v4f32);
  36041. v2f64 __builtin_msa_fmax_d (v2f64, v2f64);
  36042. v4f32 __builtin_msa_fmax_a_w (v4f32, v4f32);
  36043. v2f64 __builtin_msa_fmax_a_d (v2f64, v2f64);
  36044. v4f32 __builtin_msa_fmin_w (v4f32, v4f32);
  36045. v2f64 __builtin_msa_fmin_d (v2f64, v2f64);
  36046. v4f32 __builtin_msa_fmin_a_w (v4f32, v4f32);
  36047. v2f64 __builtin_msa_fmin_a_d (v2f64, v2f64);
  36048. v4f32 __builtin_msa_fmsub_w (v4f32, v4f32, v4f32);
  36049. v2f64 __builtin_msa_fmsub_d (v2f64, v2f64, v2f64);
  36050. v4f32 __builtin_msa_fmul_w (v4f32, v4f32);
  36051. v2f64 __builtin_msa_fmul_d (v2f64, v2f64);
  36052. v4f32 __builtin_msa_frint_w (v4f32);
  36053. v2f64 __builtin_msa_frint_d (v2f64);
  36054. v4f32 __builtin_msa_frcp_w (v4f32);
  36055. v2f64 __builtin_msa_frcp_d (v2f64);
  36056. v4f32 __builtin_msa_frsqrt_w (v4f32);
  36057. v2f64 __builtin_msa_frsqrt_d (v2f64);
  36058. v4i32 __builtin_msa_fsaf_w (v4f32, v4f32);
  36059. v2i64 __builtin_msa_fsaf_d (v2f64, v2f64);
  36060. v4i32 __builtin_msa_fseq_w (v4f32, v4f32);
  36061. v2i64 __builtin_msa_fseq_d (v2f64, v2f64);
  36062. v4i32 __builtin_msa_fsle_w (v4f32, v4f32);
  36063. v2i64 __builtin_msa_fsle_d (v2f64, v2f64);
  36064. v4i32 __builtin_msa_fslt_w (v4f32, v4f32);
  36065. v2i64 __builtin_msa_fslt_d (v2f64, v2f64);
  36066. v4i32 __builtin_msa_fsne_w (v4f32, v4f32);
  36067. v2i64 __builtin_msa_fsne_d (v2f64, v2f64);
  36068. v4i32 __builtin_msa_fsor_w (v4f32, v4f32);
  36069. v2i64 __builtin_msa_fsor_d (v2f64, v2f64);
  36070. v4f32 __builtin_msa_fsqrt_w (v4f32);
  36071. v2f64 __builtin_msa_fsqrt_d (v2f64);
  36072. v4f32 __builtin_msa_fsub_w (v4f32, v4f32);
  36073. v2f64 __builtin_msa_fsub_d (v2f64, v2f64);
  36074. v4i32 __builtin_msa_fsueq_w (v4f32, v4f32);
  36075. v2i64 __builtin_msa_fsueq_d (v2f64, v2f64);
  36076. v4i32 __builtin_msa_fsule_w (v4f32, v4f32);
  36077. v2i64 __builtin_msa_fsule_d (v2f64, v2f64);
  36078. v4i32 __builtin_msa_fsult_w (v4f32, v4f32);
  36079. v2i64 __builtin_msa_fsult_d (v2f64, v2f64);
  36080. v4i32 __builtin_msa_fsun_w (v4f32, v4f32);
  36081. v2i64 __builtin_msa_fsun_d (v2f64, v2f64);
  36082. v4i32 __builtin_msa_fsune_w (v4f32, v4f32);
  36083. v2i64 __builtin_msa_fsune_d (v2f64, v2f64);
  36084. v4i32 __builtin_msa_ftint_s_w (v4f32);
  36085. v2i64 __builtin_msa_ftint_s_d (v2f64);
  36086. v4u32 __builtin_msa_ftint_u_w (v4f32);
  36087. v2u64 __builtin_msa_ftint_u_d (v2f64);
  36088. v8i16 __builtin_msa_ftq_h (v4f32, v4f32);
  36089. v4i32 __builtin_msa_ftq_w (v2f64, v2f64);
  36090. v4i32 __builtin_msa_ftrunc_s_w (v4f32);
  36091. v2i64 __builtin_msa_ftrunc_s_d (v2f64);
  36092. v4u32 __builtin_msa_ftrunc_u_w (v4f32);
  36093. v2u64 __builtin_msa_ftrunc_u_d (v2f64);
  36094. v8i16 __builtin_msa_hadd_s_h (v16i8, v16i8);
  36095. v4i32 __builtin_msa_hadd_s_w (v8i16, v8i16);
  36096. v2i64 __builtin_msa_hadd_s_d (v4i32, v4i32);
  36097. v8u16 __builtin_msa_hadd_u_h (v16u8, v16u8);
  36098. v4u32 __builtin_msa_hadd_u_w (v8u16, v8u16);
  36099. v2u64 __builtin_msa_hadd_u_d (v4u32, v4u32);
  36100. v8i16 __builtin_msa_hsub_s_h (v16i8, v16i8);
  36101. v4i32 __builtin_msa_hsub_s_w (v8i16, v8i16);
  36102. v2i64 __builtin_msa_hsub_s_d (v4i32, v4i32);
  36103. v8i16 __builtin_msa_hsub_u_h (v16u8, v16u8);
  36104. v4i32 __builtin_msa_hsub_u_w (v8u16, v8u16);
  36105. v2i64 __builtin_msa_hsub_u_d (v4u32, v4u32);
  36106. v16i8 __builtin_msa_ilvev_b (v16i8, v16i8);
  36107. v8i16 __builtin_msa_ilvev_h (v8i16, v8i16);
  36108. v4i32 __builtin_msa_ilvev_w (v4i32, v4i32);
  36109. v2i64 __builtin_msa_ilvev_d (v2i64, v2i64);
  36110. v16i8 __builtin_msa_ilvl_b (v16i8, v16i8);
  36111. v8i16 __builtin_msa_ilvl_h (v8i16, v8i16);
  36112. v4i32 __builtin_msa_ilvl_w (v4i32, v4i32);
  36113. v2i64 __builtin_msa_ilvl_d (v2i64, v2i64);
  36114. v16i8 __builtin_msa_ilvod_b (v16i8, v16i8);
  36115. v8i16 __builtin_msa_ilvod_h (v8i16, v8i16);
  36116. v4i32 __builtin_msa_ilvod_w (v4i32, v4i32);
  36117. v2i64 __builtin_msa_ilvod_d (v2i64, v2i64);
  36118. v16i8 __builtin_msa_ilvr_b (v16i8, v16i8);
  36119. v8i16 __builtin_msa_ilvr_h (v8i16, v8i16);
  36120. v4i32 __builtin_msa_ilvr_w (v4i32, v4i32);
  36121. v2i64 __builtin_msa_ilvr_d (v2i64, v2i64);
  36122. v16i8 __builtin_msa_insert_b (v16i8, imm0_15, i32);
  36123. v8i16 __builtin_msa_insert_h (v8i16, imm0_7, i32);
  36124. v4i32 __builtin_msa_insert_w (v4i32, imm0_3, i32);
  36125. v2i64 __builtin_msa_insert_d (v2i64, imm0_1, i64);
  36126. v16i8 __builtin_msa_insve_b (v16i8, imm0_15, v16i8);
  36127. v8i16 __builtin_msa_insve_h (v8i16, imm0_7, v8i16);
  36128. v4i32 __builtin_msa_insve_w (v4i32, imm0_3, v4i32);
  36129. v2i64 __builtin_msa_insve_d (v2i64, imm0_1, v2i64);
  36130. v16i8 __builtin_msa_ld_b (void *, imm_n512_511);
  36131. v8i16 __builtin_msa_ld_h (void *, imm_n1024_1022);
  36132. v4i32 __builtin_msa_ld_w (void *, imm_n2048_2044);
  36133. v2i64 __builtin_msa_ld_d (void *, imm_n4096_4088);
  36134. v16i8 __builtin_msa_ldi_b (imm_n512_511);
  36135. v8i16 __builtin_msa_ldi_h (imm_n512_511);
  36136. v4i32 __builtin_msa_ldi_w (imm_n512_511);
  36137. v2i64 __builtin_msa_ldi_d (imm_n512_511);
  36138. v8i16 __builtin_msa_madd_q_h (v8i16, v8i16, v8i16);
  36139. v4i32 __builtin_msa_madd_q_w (v4i32, v4i32, v4i32);
  36140. v8i16 __builtin_msa_maddr_q_h (v8i16, v8i16, v8i16);
  36141. v4i32 __builtin_msa_maddr_q_w (v4i32, v4i32, v4i32);
  36142. v16i8 __builtin_msa_maddv_b (v16i8, v16i8, v16i8);
  36143. v8i16 __builtin_msa_maddv_h (v8i16, v8i16, v8i16);
  36144. v4i32 __builtin_msa_maddv_w (v4i32, v4i32, v4i32);
  36145. v2i64 __builtin_msa_maddv_d (v2i64, v2i64, v2i64);
  36146. v16i8 __builtin_msa_max_a_b (v16i8, v16i8);
  36147. v8i16 __builtin_msa_max_a_h (v8i16, v8i16);
  36148. v4i32 __builtin_msa_max_a_w (v4i32, v4i32);
  36149. v2i64 __builtin_msa_max_a_d (v2i64, v2i64);
  36150. v16i8 __builtin_msa_max_s_b (v16i8, v16i8);
  36151. v8i16 __builtin_msa_max_s_h (v8i16, v8i16);
  36152. v4i32 __builtin_msa_max_s_w (v4i32, v4i32);
  36153. v2i64 __builtin_msa_max_s_d (v2i64, v2i64);
  36154. v16u8 __builtin_msa_max_u_b (v16u8, v16u8);
  36155. v8u16 __builtin_msa_max_u_h (v8u16, v8u16);
  36156. v4u32 __builtin_msa_max_u_w (v4u32, v4u32);
  36157. v2u64 __builtin_msa_max_u_d (v2u64, v2u64);
  36158. v16i8 __builtin_msa_maxi_s_b (v16i8, imm_n16_15);
  36159. v8i16 __builtin_msa_maxi_s_h (v8i16, imm_n16_15);
  36160. v4i32 __builtin_msa_maxi_s_w (v4i32, imm_n16_15);
  36161. v2i64 __builtin_msa_maxi_s_d (v2i64, imm_n16_15);
  36162. v16u8 __builtin_msa_maxi_u_b (v16u8, imm0_31);
  36163. v8u16 __builtin_msa_maxi_u_h (v8u16, imm0_31);
  36164. v4u32 __builtin_msa_maxi_u_w (v4u32, imm0_31);
  36165. v2u64 __builtin_msa_maxi_u_d (v2u64, imm0_31);
  36166. v16i8 __builtin_msa_min_a_b (v16i8, v16i8);
  36167. v8i16 __builtin_msa_min_a_h (v8i16, v8i16);
  36168. v4i32 __builtin_msa_min_a_w (v4i32, v4i32);
  36169. v2i64 __builtin_msa_min_a_d (v2i64, v2i64);
  36170. v16i8 __builtin_msa_min_s_b (v16i8, v16i8);
  36171. v8i16 __builtin_msa_min_s_h (v8i16, v8i16);
  36172. v4i32 __builtin_msa_min_s_w (v4i32, v4i32);
  36173. v2i64 __builtin_msa_min_s_d (v2i64, v2i64);
  36174. v16u8 __builtin_msa_min_u_b (v16u8, v16u8);
  36175. v8u16 __builtin_msa_min_u_h (v8u16, v8u16);
  36176. v4u32 __builtin_msa_min_u_w (v4u32, v4u32);
  36177. v2u64 __builtin_msa_min_u_d (v2u64, v2u64);
  36178. v16i8 __builtin_msa_mini_s_b (v16i8, imm_n16_15);
  36179. v8i16 __builtin_msa_mini_s_h (v8i16, imm_n16_15);
  36180. v4i32 __builtin_msa_mini_s_w (v4i32, imm_n16_15);
  36181. v2i64 __builtin_msa_mini_s_d (v2i64, imm_n16_15);
  36182. v16u8 __builtin_msa_mini_u_b (v16u8, imm0_31);
  36183. v8u16 __builtin_msa_mini_u_h (v8u16, imm0_31);
  36184. v4u32 __builtin_msa_mini_u_w (v4u32, imm0_31);
  36185. v2u64 __builtin_msa_mini_u_d (v2u64, imm0_31);
  36186. v16i8 __builtin_msa_mod_s_b (v16i8, v16i8);
  36187. v8i16 __builtin_msa_mod_s_h (v8i16, v8i16);
  36188. v4i32 __builtin_msa_mod_s_w (v4i32, v4i32);
  36189. v2i64 __builtin_msa_mod_s_d (v2i64, v2i64);
  36190. v16u8 __builtin_msa_mod_u_b (v16u8, v16u8);
  36191. v8u16 __builtin_msa_mod_u_h (v8u16, v8u16);
  36192. v4u32 __builtin_msa_mod_u_w (v4u32, v4u32);
  36193. v2u64 __builtin_msa_mod_u_d (v2u64, v2u64);
  36194. v16i8 __builtin_msa_move_v (v16i8);
  36195. v8i16 __builtin_msa_msub_q_h (v8i16, v8i16, v8i16);
  36196. v4i32 __builtin_msa_msub_q_w (v4i32, v4i32, v4i32);
  36197. v8i16 __builtin_msa_msubr_q_h (v8i16, v8i16, v8i16);
  36198. v4i32 __builtin_msa_msubr_q_w (v4i32, v4i32, v4i32);
  36199. v16i8 __builtin_msa_msubv_b (v16i8, v16i8, v16i8);
  36200. v8i16 __builtin_msa_msubv_h (v8i16, v8i16, v8i16);
  36201. v4i32 __builtin_msa_msubv_w (v4i32, v4i32, v4i32);
  36202. v2i64 __builtin_msa_msubv_d (v2i64, v2i64, v2i64);
  36203. v8i16 __builtin_msa_mul_q_h (v8i16, v8i16);
  36204. v4i32 __builtin_msa_mul_q_w (v4i32, v4i32);
  36205. v8i16 __builtin_msa_mulr_q_h (v8i16, v8i16);
  36206. v4i32 __builtin_msa_mulr_q_w (v4i32, v4i32);
  36207. v16i8 __builtin_msa_mulv_b (v16i8, v16i8);
  36208. v8i16 __builtin_msa_mulv_h (v8i16, v8i16);
  36209. v4i32 __builtin_msa_mulv_w (v4i32, v4i32);
  36210. v2i64 __builtin_msa_mulv_d (v2i64, v2i64);
  36211. v16i8 __builtin_msa_nloc_b (v16i8);
  36212. v8i16 __builtin_msa_nloc_h (v8i16);
  36213. v4i32 __builtin_msa_nloc_w (v4i32);
  36214. v2i64 __builtin_msa_nloc_d (v2i64);
  36215. v16i8 __builtin_msa_nlzc_b (v16i8);
  36216. v8i16 __builtin_msa_nlzc_h (v8i16);
  36217. v4i32 __builtin_msa_nlzc_w (v4i32);
  36218. v2i64 __builtin_msa_nlzc_d (v2i64);
  36219. v16u8 __builtin_msa_nor_v (v16u8, v16u8);
  36220. v16u8 __builtin_msa_nori_b (v16u8, imm0_255);
  36221. v16u8 __builtin_msa_or_v (v16u8, v16u8);
  36222. v16u8 __builtin_msa_ori_b (v16u8, imm0_255);
  36223. v16i8 __builtin_msa_pckev_b (v16i8, v16i8);
  36224. v8i16 __builtin_msa_pckev_h (v8i16, v8i16);
  36225. v4i32 __builtin_msa_pckev_w (v4i32, v4i32);
  36226. v2i64 __builtin_msa_pckev_d (v2i64, v2i64);
  36227. v16i8 __builtin_msa_pckod_b (v16i8, v16i8);
  36228. v8i16 __builtin_msa_pckod_h (v8i16, v8i16);
  36229. v4i32 __builtin_msa_pckod_w (v4i32, v4i32);
  36230. v2i64 __builtin_msa_pckod_d (v2i64, v2i64);
  36231. v16i8 __builtin_msa_pcnt_b (v16i8);
  36232. v8i16 __builtin_msa_pcnt_h (v8i16);
  36233. v4i32 __builtin_msa_pcnt_w (v4i32);
  36234. v2i64 __builtin_msa_pcnt_d (v2i64);
  36235. v16i8 __builtin_msa_sat_s_b (v16i8, imm0_7);
  36236. v8i16 __builtin_msa_sat_s_h (v8i16, imm0_15);
  36237. v4i32 __builtin_msa_sat_s_w (v4i32, imm0_31);
  36238. v2i64 __builtin_msa_sat_s_d (v2i64, imm0_63);
  36239. v16u8 __builtin_msa_sat_u_b (v16u8, imm0_7);
  36240. v8u16 __builtin_msa_sat_u_h (v8u16, imm0_15);
  36241. v4u32 __builtin_msa_sat_u_w (v4u32, imm0_31);
  36242. v2u64 __builtin_msa_sat_u_d (v2u64, imm0_63);
  36243. v16i8 __builtin_msa_shf_b (v16i8, imm0_255);
  36244. v8i16 __builtin_msa_shf_h (v8i16, imm0_255);
  36245. v4i32 __builtin_msa_shf_w (v4i32, imm0_255);
  36246. v16i8 __builtin_msa_sld_b (v16i8, v16i8, i32);
  36247. v8i16 __builtin_msa_sld_h (v8i16, v8i16, i32);
  36248. v4i32 __builtin_msa_sld_w (v4i32, v4i32, i32);
  36249. v2i64 __builtin_msa_sld_d (v2i64, v2i64, i32);
  36250. v16i8 __builtin_msa_sldi_b (v16i8, v16i8, imm0_15);
  36251. v8i16 __builtin_msa_sldi_h (v8i16, v8i16, imm0_7);
  36252. v4i32 __builtin_msa_sldi_w (v4i32, v4i32, imm0_3);
  36253. v2i64 __builtin_msa_sldi_d (v2i64, v2i64, imm0_1);
  36254. v16i8 __builtin_msa_sll_b (v16i8, v16i8);
  36255. v8i16 __builtin_msa_sll_h (v8i16, v8i16);
  36256. v4i32 __builtin_msa_sll_w (v4i32, v4i32);
  36257. v2i64 __builtin_msa_sll_d (v2i64, v2i64);
  36258. v16i8 __builtin_msa_slli_b (v16i8, imm0_7);
  36259. v8i16 __builtin_msa_slli_h (v8i16, imm0_15);
  36260. v4i32 __builtin_msa_slli_w (v4i32, imm0_31);
  36261. v2i64 __builtin_msa_slli_d (v2i64, imm0_63);
  36262. v16i8 __builtin_msa_splat_b (v16i8, i32);
  36263. v8i16 __builtin_msa_splat_h (v8i16, i32);
  36264. v4i32 __builtin_msa_splat_w (v4i32, i32);
  36265. v2i64 __builtin_msa_splat_d (v2i64, i32);
  36266. v16i8 __builtin_msa_splati_b (v16i8, imm0_15);
  36267. v8i16 __builtin_msa_splati_h (v8i16, imm0_7);
  36268. v4i32 __builtin_msa_splati_w (v4i32, imm0_3);
  36269. v2i64 __builtin_msa_splati_d (v2i64, imm0_1);
  36270. v16i8 __builtin_msa_sra_b (v16i8, v16i8);
  36271. v8i16 __builtin_msa_sra_h (v8i16, v8i16);
  36272. v4i32 __builtin_msa_sra_w (v4i32, v4i32);
  36273. v2i64 __builtin_msa_sra_d (v2i64, v2i64);
  36274. v16i8 __builtin_msa_srai_b (v16i8, imm0_7);
  36275. v8i16 __builtin_msa_srai_h (v8i16, imm0_15);
  36276. v4i32 __builtin_msa_srai_w (v4i32, imm0_31);
  36277. v2i64 __builtin_msa_srai_d (v2i64, imm0_63);
  36278. v16i8 __builtin_msa_srar_b (v16i8, v16i8);
  36279. v8i16 __builtin_msa_srar_h (v8i16, v8i16);
  36280. v4i32 __builtin_msa_srar_w (v4i32, v4i32);
  36281. v2i64 __builtin_msa_srar_d (v2i64, v2i64);
  36282. v16i8 __builtin_msa_srari_b (v16i8, imm0_7);
  36283. v8i16 __builtin_msa_srari_h (v8i16, imm0_15);
  36284. v4i32 __builtin_msa_srari_w (v4i32, imm0_31);
  36285. v2i64 __builtin_msa_srari_d (v2i64, imm0_63);
  36286. v16i8 __builtin_msa_srl_b (v16i8, v16i8);
  36287. v8i16 __builtin_msa_srl_h (v8i16, v8i16);
  36288. v4i32 __builtin_msa_srl_w (v4i32, v4i32);
  36289. v2i64 __builtin_msa_srl_d (v2i64, v2i64);
  36290. v16i8 __builtin_msa_srli_b (v16i8, imm0_7);
  36291. v8i16 __builtin_msa_srli_h (v8i16, imm0_15);
  36292. v4i32 __builtin_msa_srli_w (v4i32, imm0_31);
  36293. v2i64 __builtin_msa_srli_d (v2i64, imm0_63);
  36294. v16i8 __builtin_msa_srlr_b (v16i8, v16i8);
  36295. v8i16 __builtin_msa_srlr_h (v8i16, v8i16);
  36296. v4i32 __builtin_msa_srlr_w (v4i32, v4i32);
  36297. v2i64 __builtin_msa_srlr_d (v2i64, v2i64);
  36298. v16i8 __builtin_msa_srlri_b (v16i8, imm0_7);
  36299. v8i16 __builtin_msa_srlri_h (v8i16, imm0_15);
  36300. v4i32 __builtin_msa_srlri_w (v4i32, imm0_31);
  36301. v2i64 __builtin_msa_srlri_d (v2i64, imm0_63);
  36302. void __builtin_msa_st_b (v16i8, void *, imm_n512_511);
  36303. void __builtin_msa_st_h (v8i16, void *, imm_n1024_1022);
  36304. void __builtin_msa_st_w (v4i32, void *, imm_n2048_2044);
  36305. void __builtin_msa_st_d (v2i64, void *, imm_n4096_4088);
  36306. v16i8 __builtin_msa_subs_s_b (v16i8, v16i8);
  36307. v8i16 __builtin_msa_subs_s_h (v8i16, v8i16);
  36308. v4i32 __builtin_msa_subs_s_w (v4i32, v4i32);
  36309. v2i64 __builtin_msa_subs_s_d (v2i64, v2i64);
  36310. v16u8 __builtin_msa_subs_u_b (v16u8, v16u8);
  36311. v8u16 __builtin_msa_subs_u_h (v8u16, v8u16);
  36312. v4u32 __builtin_msa_subs_u_w (v4u32, v4u32);
  36313. v2u64 __builtin_msa_subs_u_d (v2u64, v2u64);
  36314. v16u8 __builtin_msa_subsus_u_b (v16u8, v16i8);
  36315. v8u16 __builtin_msa_subsus_u_h (v8u16, v8i16);
  36316. v4u32 __builtin_msa_subsus_u_w (v4u32, v4i32);
  36317. v2u64 __builtin_msa_subsus_u_d (v2u64, v2i64);
  36318. v16i8 __builtin_msa_subsuu_s_b (v16u8, v16u8);
  36319. v8i16 __builtin_msa_subsuu_s_h (v8u16, v8u16);
  36320. v4i32 __builtin_msa_subsuu_s_w (v4u32, v4u32);
  36321. v2i64 __builtin_msa_subsuu_s_d (v2u64, v2u64);
  36322. v16i8 __builtin_msa_subv_b (v16i8, v16i8);
  36323. v8i16 __builtin_msa_subv_h (v8i16, v8i16);
  36324. v4i32 __builtin_msa_subv_w (v4i32, v4i32);
  36325. v2i64 __builtin_msa_subv_d (v2i64, v2i64);
  36326. v16i8 __builtin_msa_subvi_b (v16i8, imm0_31);
  36327. v8i16 __builtin_msa_subvi_h (v8i16, imm0_31);
  36328. v4i32 __builtin_msa_subvi_w (v4i32, imm0_31);
  36329. v2i64 __builtin_msa_subvi_d (v2i64, imm0_31);
  36330. v16i8 __builtin_msa_vshf_b (v16i8, v16i8, v16i8);
  36331. v8i16 __builtin_msa_vshf_h (v8i16, v8i16, v8i16);
  36332. v4i32 __builtin_msa_vshf_w (v4i32, v4i32, v4i32);
  36333. v2i64 __builtin_msa_vshf_d (v2i64, v2i64, v2i64);
  36334. v16u8 __builtin_msa_xor_v (v16u8, v16u8);
  36335. v16u8 __builtin_msa_xori_b (v16u8, imm0_255);
  36336. 
  36337. File: gcc.info, Node: Other MIPS Built-in Functions, Next: MSP430 Built-in Functions, Prev: MIPS SIMD Architecture (MSA) Support, Up: Target Builtins
  36338. 6.60.17 Other MIPS Built-in Functions
  36339. -------------------------------------
  36340. GCC provides other MIPS-specific built-in functions:
  36341. 'void __builtin_mips_cache (int OP, const volatile void *ADDR)'
  36342. Insert a 'cache' instruction with operands OP and ADDR. GCC
  36343. defines the preprocessor macro '___GCC_HAVE_BUILTIN_MIPS_CACHE'
  36344. when this function is available.
  36345. 'unsigned int __builtin_mips_get_fcsr (void)'
  36346. 'void __builtin_mips_set_fcsr (unsigned int VALUE)'
  36347. Get and set the contents of the floating-point control and status
  36348. register (FPU control register 31). These functions are only
  36349. available in hard-float code but can be called in both MIPS16 and
  36350. non-MIPS16 contexts.
  36351. '__builtin_mips_set_fcsr' can be used to change any bit of the
  36352. register except the condition codes, which GCC assumes are
  36353. preserved.
  36354. 
  36355. File: gcc.info, Node: MSP430 Built-in Functions, Next: NDS32 Built-in Functions, Prev: Other MIPS Built-in Functions, Up: Target Builtins
  36356. 6.60.18 MSP430 Built-in Functions
  36357. ---------------------------------
  36358. GCC provides a couple of special builtin functions to aid in the writing
  36359. of interrupt handlers in C.
  36360. '__bic_SR_register_on_exit (int MASK)'
  36361. This clears the indicated bits in the saved copy of the status
  36362. register currently residing on the stack. This only works inside
  36363. interrupt handlers and the changes to the status register will only
  36364. take affect once the handler returns.
  36365. '__bis_SR_register_on_exit (int MASK)'
  36366. This sets the indicated bits in the saved copy of the status
  36367. register currently residing on the stack. This only works inside
  36368. interrupt handlers and the changes to the status register will only
  36369. take affect once the handler returns.
  36370. '__delay_cycles (long long CYCLES)'
  36371. This inserts an instruction sequence that takes exactly CYCLES
  36372. cycles (between 0 and about 17E9) to complete. The inserted
  36373. sequence may use jumps, loops, or no-ops, and does not interfere
  36374. with any other instructions. Note that CYCLES must be a
  36375. compile-time constant integer - that is, you must pass a number,
  36376. not a variable that may be optimized to a constant later. The
  36377. number of cycles delayed by this builtin is exact.
  36378. 
  36379. File: gcc.info, Node: NDS32 Built-in Functions, Next: picoChip Built-in Functions, Prev: MSP430 Built-in Functions, Up: Target Builtins
  36380. 6.60.19 NDS32 Built-in Functions
  36381. --------------------------------
  36382. These built-in functions are available for the NDS32 target:
  36383. -- Built-in Function: void __builtin_nds32_isync (int *ADDR)
  36384. Insert an ISYNC instruction into the instruction stream where ADDR
  36385. is an instruction address for serialization.
  36386. -- Built-in Function: void __builtin_nds32_isb (void)
  36387. Insert an ISB instruction into the instruction stream.
  36388. -- Built-in Function: int __builtin_nds32_mfsr (int SR)
  36389. Return the content of a system register which is mapped by SR.
  36390. -- Built-in Function: int __builtin_nds32_mfusr (int USR)
  36391. Return the content of a user space register which is mapped by USR.
  36392. -- Built-in Function: void __builtin_nds32_mtsr (int VALUE, int SR)
  36393. Move the VALUE to a system register which is mapped by SR.
  36394. -- Built-in Function: void __builtin_nds32_mtusr (int VALUE, int USR)
  36395. Move the VALUE to a user space register which is mapped by USR.
  36396. -- Built-in Function: void __builtin_nds32_setgie_en (void)
  36397. Enable global interrupt.
  36398. -- Built-in Function: void __builtin_nds32_setgie_dis (void)
  36399. Disable global interrupt.
  36400. 
  36401. File: gcc.info, Node: picoChip Built-in Functions, Next: Basic PowerPC Built-in Functions, Prev: NDS32 Built-in Functions, Up: Target Builtins
  36402. 6.60.20 picoChip Built-in Functions
  36403. -----------------------------------
  36404. GCC provides an interface to selected machine instructions from the
  36405. picoChip instruction set.
  36406. 'int __builtin_sbc (int VALUE)'
  36407. Sign bit count. Return the number of consecutive bits in VALUE
  36408. that have the same value as the sign bit. The result is the number
  36409. of leading sign bits minus one, giving the number of redundant sign
  36410. bits in VALUE.
  36411. 'int __builtin_byteswap (int VALUE)'
  36412. Byte swap. Return the result of swapping the upper and lower bytes
  36413. of VALUE.
  36414. 'int __builtin_brev (int VALUE)'
  36415. Bit reversal. Return the result of reversing the bits in VALUE.
  36416. Bit 15 is swapped with bit 0, bit 14 is swapped with bit 1, and so
  36417. on.
  36418. 'int __builtin_adds (int X, int Y)'
  36419. Saturating addition. Return the result of adding X and Y, storing
  36420. the value 32767 if the result overflows.
  36421. 'int __builtin_subs (int X, int Y)'
  36422. Saturating subtraction. Return the result of subtracting Y from X,
  36423. storing the value -32768 if the result overflows.
  36424. 'void __builtin_halt (void)'
  36425. Halt. The processor stops execution. This built-in is useful for
  36426. implementing assertions.
  36427. 
  36428. File: gcc.info, Node: Basic PowerPC Built-in Functions, Next: PowerPC AltiVec/VSX Built-in Functions, Prev: picoChip Built-in Functions, Up: Target Builtins
  36429. 6.60.21 Basic PowerPC Built-in Functions
  36430. ----------------------------------------
  36431. * Menu:
  36432. * Basic PowerPC Built-in Functions Available on all Configurations::
  36433. * Basic PowerPC Built-in Functions Available on ISA 2.05::
  36434. * Basic PowerPC Built-in Functions Available on ISA 2.06::
  36435. * Basic PowerPC Built-in Functions Available on ISA 2.07::
  36436. * Basic PowerPC Built-in Functions Available on ISA 3.0::
  36437. This section describes PowerPC built-in functions that do not require
  36438. the inclusion of any special header files to declare prototypes or
  36439. provide macro definitions. The sections that follow describe additional
  36440. PowerPC built-in functions.
  36441. 
  36442. 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
  36443. 6.60.21.1 Basic PowerPC Built-in Functions Available on all Configurations
  36444. ..........................................................................
  36445. -- Built-in Function: void __builtin_cpu_init (void)
  36446. This function is a 'nop' on the PowerPC platform and is included
  36447. solely to maintain API compatibility with the x86 builtins.
  36448. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  36449. This function returns a value of '1' if the run-time CPU is of type
  36450. CPUNAME and returns '0' otherwise
  36451. The '__builtin_cpu_is' function requires GLIBC 2.23 or newer which
  36452. exports the hardware capability bits. GCC defines the macro
  36453. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  36454. function is fully supported.
  36455. If GCC was configured to use a GLIBC before 2.23, the built-in
  36456. function '__builtin_cpu_is' always returns a 0 and the compiler
  36457. issues a warning.
  36458. The following CPU names can be detected:
  36459. 'power9'
  36460. IBM POWER9 Server CPU.
  36461. 'power8'
  36462. IBM POWER8 Server CPU.
  36463. 'power7'
  36464. IBM POWER7 Server CPU.
  36465. 'power6x'
  36466. IBM POWER6 Server CPU (RAW mode).
  36467. 'power6'
  36468. IBM POWER6 Server CPU (Architected mode).
  36469. 'power5+'
  36470. IBM POWER5+ Server CPU.
  36471. 'power5'
  36472. IBM POWER5 Server CPU.
  36473. 'ppc970'
  36474. IBM 970 Server CPU (ie, Apple G5).
  36475. 'power4'
  36476. IBM POWER4 Server CPU.
  36477. 'ppca2'
  36478. IBM A2 64-bit Embedded CPU
  36479. 'ppc476'
  36480. IBM PowerPC 476FP 32-bit Embedded CPU.
  36481. 'ppc464'
  36482. IBM PowerPC 464 32-bit Embedded CPU.
  36483. 'ppc440'
  36484. PowerPC 440 32-bit Embedded CPU.
  36485. 'ppc405'
  36486. PowerPC 405 32-bit Embedded CPU.
  36487. 'ppc-cell-be'
  36488. IBM PowerPC Cell Broadband Engine Architecture CPU.
  36489. Here is an example:
  36490. #ifdef __BUILTIN_CPU_SUPPORTS__
  36491. if (__builtin_cpu_is ("power8"))
  36492. {
  36493. do_power8 (); // POWER8 specific implementation.
  36494. }
  36495. else
  36496. #endif
  36497. {
  36498. do_generic (); // Generic implementation.
  36499. }
  36500. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  36501. This function returns a value of '1' if the run-time CPU supports
  36502. the HWCAP feature FEATURE and returns '0' otherwise.
  36503. The '__builtin_cpu_supports' function requires GLIBC 2.23 or newer
  36504. which exports the hardware capability bits. GCC defines the macro
  36505. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  36506. function is fully supported.
  36507. If GCC was configured to use a GLIBC before 2.23, the built-in
  36508. function '__builtin_cpu_suports' always returns a 0 and the
  36509. compiler issues a warning.
  36510. The following features can be detected:
  36511. '4xxmac'
  36512. 4xx CPU has a Multiply Accumulator.
  36513. 'altivec'
  36514. CPU has a SIMD/Vector Unit.
  36515. 'arch_2_05'
  36516. CPU supports ISA 2.05 (eg, POWER6)
  36517. 'arch_2_06'
  36518. CPU supports ISA 2.06 (eg, POWER7)
  36519. 'arch_2_07'
  36520. CPU supports ISA 2.07 (eg, POWER8)
  36521. 'arch_3_00'
  36522. CPU supports ISA 3.0 (eg, POWER9)
  36523. 'archpmu'
  36524. CPU supports the set of compatible performance monitoring
  36525. events.
  36526. 'booke'
  36527. CPU supports the Embedded ISA category.
  36528. 'cellbe'
  36529. CPU has a CELL broadband engine.
  36530. 'darn'
  36531. CPU supports the 'darn' (deliver a random number) instruction.
  36532. 'dfp'
  36533. CPU has a decimal floating point unit.
  36534. 'dscr'
  36535. CPU supports the data stream control register.
  36536. 'ebb'
  36537. CPU supports event base branching.
  36538. 'efpdouble'
  36539. CPU has a SPE double precision floating point unit.
  36540. 'efpsingle'
  36541. CPU has a SPE single precision floating point unit.
  36542. 'fpu'
  36543. CPU has a floating point unit.
  36544. 'htm'
  36545. CPU has hardware transaction memory instructions.
  36546. 'htm-nosc'
  36547. Kernel aborts hardware transactions when a syscall is made.
  36548. 'htm-no-suspend'
  36549. CPU supports hardware transaction memory but does not support
  36550. the 'tsuspend.' instruction.
  36551. 'ic_snoop'
  36552. CPU supports icache snooping capabilities.
  36553. 'ieee128'
  36554. CPU supports 128-bit IEEE binary floating point instructions.
  36555. 'isel'
  36556. CPU supports the integer select instruction.
  36557. 'mmu'
  36558. CPU has a memory management unit.
  36559. 'notb'
  36560. CPU does not have a timebase (eg, 601 and 403gx).
  36561. 'pa6t'
  36562. CPU supports the PA Semi 6T CORE ISA.
  36563. 'power4'
  36564. CPU supports ISA 2.00 (eg, POWER4)
  36565. 'power5'
  36566. CPU supports ISA 2.02 (eg, POWER5)
  36567. 'power5+'
  36568. CPU supports ISA 2.03 (eg, POWER5+)
  36569. 'power6x'
  36570. CPU supports ISA 2.05 (eg, POWER6) extended opcodes mffgpr and
  36571. mftgpr.
  36572. 'ppc32'
  36573. CPU supports 32-bit mode execution.
  36574. 'ppc601'
  36575. CPU supports the old POWER ISA (eg, 601)
  36576. 'ppc64'
  36577. CPU supports 64-bit mode execution.
  36578. 'ppcle'
  36579. CPU supports a little-endian mode that uses address swizzling.
  36580. 'scv'
  36581. Kernel supports system call vectored.
  36582. 'smt'
  36583. CPU support simultaneous multi-threading.
  36584. 'spe'
  36585. CPU has a signal processing extension unit.
  36586. 'tar'
  36587. CPU supports the target address register.
  36588. 'true_le'
  36589. CPU supports true little-endian mode.
  36590. 'ucache'
  36591. CPU has unified I/D cache.
  36592. 'vcrypto'
  36593. CPU supports the vector cryptography instructions.
  36594. 'vsx'
  36595. CPU supports the vector-scalar extension.
  36596. Here is an example:
  36597. #ifdef __BUILTIN_CPU_SUPPORTS__
  36598. if (__builtin_cpu_supports ("fpu"))
  36599. {
  36600. asm("fadd %0,%1,%2" : "=d"(dst) : "d"(src1), "d"(src2));
  36601. }
  36602. else
  36603. #endif
  36604. {
  36605. dst = __fadd (src1, src2); // Software FP addition function.
  36606. }
  36607. The following built-in functions are also available on all PowerPC
  36608. processors:
  36609. uint64_t __builtin_ppc_get_timebase ();
  36610. unsigned long __builtin_ppc_mftb ();
  36611. double __builtin_unpack_ibm128 (__ibm128, int);
  36612. __ibm128 __builtin_pack_ibm128 (double, double);
  36613. double __builtin_mffs (void);
  36614. void __builtin_mtfsb0 (const int);
  36615. void __builtin_mtfsb1 (const int);
  36616. void __builtin_set_fpscr_rn (int);
  36617. The '__builtin_ppc_get_timebase' and '__builtin_ppc_mftb' functions
  36618. generate instructions to read the Time Base Register. The
  36619. '__builtin_ppc_get_timebase' function may generate multiple instructions
  36620. and always returns the 64 bits of the Time Base Register. The
  36621. '__builtin_ppc_mftb' function always generates one instruction and
  36622. returns the Time Base Register value as an unsigned long, throwing away
  36623. the most significant word on 32-bit environments. The '__builtin_mffs'
  36624. return the value of the FPSCR register. Note, ISA 3.0 supports the
  36625. '__builtin_mffsl()' which permits software to read the control and
  36626. non-sticky status bits in the FSPCR without the higher latency
  36627. associated with accessing the sticky status bits. The
  36628. '__builtin_mtfsb0' and '__builtin_mtfsb1' take the bit to change as an
  36629. argument. The valid bit range is between 0 and 31. The builtins map to
  36630. the 'mtfsb0' and 'mtfsb1' instructions which take the argument and add
  36631. 32. Hence these instructions only modify the FPSCR[32:63] bits by
  36632. changing the specified bit to a zero or one respectively. The
  36633. '__builtin_set_fpscr_rn' builtin allows changing both of the floating
  36634. point rounding mode bits. The argument is a 2-bit value. The argument
  36635. can either be a 'const int' or stored in a variable. The builtin uses
  36636. the ISA 3.0 instruction 'mffscrn' if available, otherwise it reads the
  36637. FPSCR, masks the current rounding mode bits out and OR's in the new
  36638. value.
  36639. 
  36640. 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
  36641. 6.60.21.2 Basic PowerPC Built-in Functions Available on ISA 2.05
  36642. ................................................................
  36643. The basic built-in functions described in this section are available on
  36644. the PowerPC family of processors starting with ISA 2.05 or later.
  36645. Unless specific options are explicitly disabled on the command line,
  36646. specifying option '-mcpu=power6' has the effect of enabling the
  36647. '-mpowerpc64', '-mpowerpc-gpopt', '-mpowerpc-gfxopt', '-mmfcrf',
  36648. '-mpopcntb', '-mfprnd', '-mcmpb', '-mhard-dfp', and '-mrecip-precision'
  36649. options. Specify the '-maltivec' and '-mfpgpr' options explicitly in
  36650. combination with the above options if they are desired.
  36651. The following functions require option '-mcmpb'.
  36652. unsigned long long __builtin_cmpb (unsigned long long int, unsigned long long int);
  36653. unsigned int __builtin_cmpb (unsigned int, unsigned int);
  36654. The '__builtin_cmpb' function performs a byte-wise compare on the
  36655. contents of its two arguments, returning the result of the byte-wise
  36656. comparison as the returned value. For each byte comparison, the
  36657. corresponding byte of the return value holds 0xff if the input bytes are
  36658. equal and 0 if the input bytes are not equal. If either of the
  36659. arguments to this built-in function is wider than 32 bits, the function
  36660. call expands into the form that expects 'unsigned long long int'
  36661. arguments which is only available on 64-bit targets.
  36662. The following built-in functions are available when hardware decimal
  36663. floating point ('-mhard-dfp') is available:
  36664. void __builtin_set_fpscr_drn(int);
  36665. _Decimal64 __builtin_ddedpd (int, _Decimal64);
  36666. _Decimal128 __builtin_ddedpdq (int, _Decimal128);
  36667. _Decimal64 __builtin_denbcd (int, _Decimal64);
  36668. _Decimal128 __builtin_denbcdq (int, _Decimal128);
  36669. _Decimal64 __builtin_diex (long long, _Decimal64);
  36670. _Decimal128 _builtin_diexq (long long, _Decimal128);
  36671. _Decimal64 __builtin_dscli (_Decimal64, int);
  36672. _Decimal128 __builtin_dscliq (_Decimal128, int);
  36673. _Decimal64 __builtin_dscri (_Decimal64, int);
  36674. _Decimal128 __builtin_dscriq (_Decimal128, int);
  36675. long long __builtin_dxex (_Decimal64);
  36676. long long __builtin_dxexq (_Decimal128);
  36677. _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
  36678. unsigned long long __builtin_unpack_dec128 (_Decimal128, int);
  36679. The __builtin_set_fpscr_drn builtin allows changing the three decimal
  36680. floating point rounding mode bits. The argument is a 3-bit value. The
  36681. argument can either be a const int or the value can be stored in
  36682. a variable.
  36683. The builtin uses the ISA 3.0 instruction mffscdrn if available.
  36684. Otherwise the builtin reads the FPSCR, masks the current decimal rounding
  36685. mode bits out and OR's in the new value.
  36686. The following functions require '-mhard-float', '-mpowerpc-gfxopt', and
  36687. '-mpopcntb' options.
  36688. double __builtin_recipdiv (double, double);
  36689. float __builtin_recipdivf (float, float);
  36690. double __builtin_rsqrt (double);
  36691. float __builtin_rsqrtf (float);
  36692. The 'vec_rsqrt', '__builtin_rsqrt', and '__builtin_rsqrtf' functions
  36693. generate multiple instructions to implement the reciprocal sqrt
  36694. functionality using reciprocal sqrt estimate instructions.
  36695. The '__builtin_recipdiv', and '__builtin_recipdivf' functions generate
  36696. multiple instructions to implement division using the reciprocal
  36697. estimate instructions.
  36698. The following functions require '-mhard-float' and '-mmultiple'
  36699. options.
  36700. The '__builtin_unpack_longdouble' function takes a 'long double'
  36701. argument and a compile time constant of 0 or 1. If the constant is 0,
  36702. the first 'double' within the 'long double' is returned, otherwise the
  36703. second 'double' is returned. The '__builtin_unpack_longdouble' function
  36704. is only available if 'long double' uses the IBM extended double
  36705. representation.
  36706. The '__builtin_pack_longdouble' function takes two 'double' arguments
  36707. and returns a 'long double' value that combines the two arguments. The
  36708. '__builtin_pack_longdouble' function is only available if 'long double'
  36709. uses the IBM extended double representation.
  36710. The '__builtin_unpack_ibm128' function takes a '__ibm128' argument and
  36711. a compile time constant of 0 or 1. If the constant is 0, the first
  36712. 'double' within the '__ibm128' is returned, otherwise the second
  36713. 'double' is returned.
  36714. The '__builtin_pack_ibm128' function takes two 'double' arguments and
  36715. returns a '__ibm128' value that combines the two arguments.
  36716. Additional built-in functions are available for the 64-bit PowerPC
  36717. family of processors, for efficient use of 128-bit floating point
  36718. ('__float128') values.
  36719. 
  36720. 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
  36721. 6.60.21.3 Basic PowerPC Built-in Functions Available on ISA 2.06
  36722. ................................................................
  36723. The basic built-in functions described in this section are available on
  36724. the PowerPC family of processors starting with ISA 2.05 or later.
  36725. Unless specific options are explicitly disabled on the command line,
  36726. specifying option '-mcpu=power7' has the effect of enabling all the same
  36727. options as for '-mcpu=power6' in addition to the '-maltivec',
  36728. '-mpopcntd', and '-mvsx' options.
  36729. The following basic built-in functions require '-mpopcntd':
  36730. unsigned int __builtin_addg6s (unsigned int, unsigned int);
  36731. long long __builtin_bpermd (long long, long long);
  36732. unsigned int __builtin_cbcdtd (unsigned int);
  36733. unsigned int __builtin_cdtbcd (unsigned int);
  36734. long long __builtin_divde (long long, long long);
  36735. unsigned long long __builtin_divdeu (unsigned long long, unsigned long long);
  36736. int __builtin_divwe (int, int);
  36737. unsigned int __builtin_divweu (unsigned int, unsigned int);
  36738. vector __int128 __builtin_pack_vector_int128 (long long, long long);
  36739. void __builtin_rs6000_speculation_barrier (void);
  36740. long long __builtin_unpack_vector_int128 (vector __int128, signed char);
  36741. Of these, the '__builtin_divde' and '__builtin_divdeu' functions
  36742. require a 64-bit environment.
  36743. The following basic built-in functions, which are also supported on x86
  36744. targets, require '-mfloat128'.
  36745. __float128 __builtin_fabsq (__float128);
  36746. __float128 __builtin_copysignq (__float128, __float128);
  36747. __float128 __builtin_infq (void);
  36748. __float128 __builtin_huge_valq (void);
  36749. __float128 __builtin_nanq (void);
  36750. __float128 __builtin_nansq (void);
  36751. __float128 __builtin_sqrtf128 (__float128);
  36752. __float128 __builtin_fmaf128 (__float128, __float128, __float128);
  36753. 
  36754. 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
  36755. 6.60.21.4 Basic PowerPC Built-in Functions Available on ISA 2.07
  36756. ................................................................
  36757. The basic built-in functions described in this section are available on
  36758. the PowerPC family of processors starting with ISA 2.07 or later.
  36759. Unless specific options are explicitly disabled on the command line,
  36760. specifying option '-mcpu=power8' has the effect of enabling all the same
  36761. options as for '-mcpu=power7' in addition to the '-mpower8-fusion',
  36762. '-mpower8-vector', '-mcrypto', '-mhtm', '-mquad-memory', and
  36763. '-mquad-memory-atomic' options.
  36764. This section intentionally empty.
  36765. 
  36766. File: gcc.info, Node: Basic PowerPC Built-in Functions Available on ISA 3.0, Prev: Basic PowerPC Built-in Functions Available on ISA 2.07, Up: Basic PowerPC Built-in Functions
  36767. 6.60.21.5 Basic PowerPC Built-in Functions Available on ISA 3.0
  36768. ...............................................................
  36769. The basic built-in functions described in this section are available on
  36770. the PowerPC family of processors starting with ISA 3.0 or later. Unless
  36771. specific options are explicitly disabled on the command line, specifying
  36772. option '-mcpu=power9' has the effect of enabling all the same options as
  36773. for '-mcpu=power8' in addition to the '-misel' option.
  36774. The following built-in functions are available on Linux 64-bit systems
  36775. that use the ISA 3.0 instruction set ('-mcpu=power9'):
  36776. '__float128 __builtin_addf128_round_to_odd (__float128, __float128)'
  36777. Perform a 128-bit IEEE floating point add using round to odd as the
  36778. rounding mode.
  36779. '__float128 __builtin_subf128_round_to_odd (__float128, __float128)'
  36780. Perform a 128-bit IEEE floating point subtract using round to odd
  36781. as the rounding mode.
  36782. '__float128 __builtin_mulf128_round_to_odd (__float128, __float128)'
  36783. Perform a 128-bit IEEE floating point multiply using round to odd
  36784. as the rounding mode.
  36785. '__float128 __builtin_divf128_round_to_odd (__float128, __float128)'
  36786. Perform a 128-bit IEEE floating point divide using round to odd as
  36787. the rounding mode.
  36788. '__float128 __builtin_sqrtf128_round_to_odd (__float128)'
  36789. Perform a 128-bit IEEE floating point square root using round to
  36790. odd as the rounding mode.
  36791. '__float128 __builtin_fmaf128_round_to_odd (__float128, __float128, __float128)'
  36792. Perform a 128-bit IEEE floating point fused multiply and add
  36793. operation using round to odd as the rounding mode.
  36794. 'double __builtin_truncf128_round_to_odd (__float128)'
  36795. Convert a 128-bit IEEE floating point value to 'double' using round
  36796. to odd as the rounding mode.
  36797. The following additional built-in functions are also available for the
  36798. PowerPC family of processors, starting with ISA 3.0 or later:
  36799. long long __builtin_darn (void);
  36800. long long __builtin_darn_raw (void);
  36801. int __builtin_darn_32 (void);
  36802. The '__builtin_darn' and '__builtin_darn_raw' functions require a
  36803. 64-bit environment supporting ISA 3.0 or later. The '__builtin_darn'
  36804. function provides a 64-bit conditioned random number. The
  36805. '__builtin_darn_raw' function provides a 64-bit raw random number. The
  36806. '__builtin_darn_32' function provides a 32-bit conditioned random
  36807. number.
  36808. The following additional built-in functions are also available for the
  36809. PowerPC family of processors, starting with ISA 3.0 or later:
  36810. int __builtin_byte_in_set (unsigned char u, unsigned long long set);
  36811. int __builtin_byte_in_range (unsigned char u, unsigned int range);
  36812. int __builtin_byte_in_either_range (unsigned char u, unsigned int ranges);
  36813. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal64 value);
  36814. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal128 value);
  36815. int __builtin_dfp_dtstsfi_lt_dd (unsigned int comparison, _Decimal64 value);
  36816. int __builtin_dfp_dtstsfi_lt_td (unsigned int comparison, _Decimal128 value);
  36817. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal64 value);
  36818. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal128 value);
  36819. int __builtin_dfp_dtstsfi_gt_dd (unsigned int comparison, _Decimal64 value);
  36820. int __builtin_dfp_dtstsfi_gt_td (unsigned int comparison, _Decimal128 value);
  36821. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal64 value);
  36822. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal128 value);
  36823. int __builtin_dfp_dtstsfi_eq_dd (unsigned int comparison, _Decimal64 value);
  36824. int __builtin_dfp_dtstsfi_eq_td (unsigned int comparison, _Decimal128 value);
  36825. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal64 value);
  36826. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal128 value);
  36827. int __builtin_dfp_dtstsfi_ov_dd (unsigned int comparison, _Decimal64 value);
  36828. int __builtin_dfp_dtstsfi_ov_td (unsigned int comparison, _Decimal128 value);
  36829. double __builtin_mffsl(void);
  36830. The '__builtin_byte_in_set' function requires a 64-bit environment
  36831. supporting ISA 3.0 or later. This function returns a non-zero value if
  36832. and only if its 'u' argument exactly equals one of the eight bytes
  36833. contained within its 64-bit 'set' argument.
  36834. The '__builtin_byte_in_range' and '__builtin_byte_in_either_range'
  36835. require an environment supporting ISA 3.0 or later. For these two
  36836. functions, the 'range' argument is encoded as 4 bytes, organized as
  36837. 'hi_1:lo_1:hi_2:lo_2'. The '__builtin_byte_in_range' function returns a
  36838. non-zero value if and only if its 'u' argument is within the range
  36839. bounded between 'lo_2' and 'hi_2' inclusive. The
  36840. '__builtin_byte_in_either_range' function returns non-zero if and only
  36841. if its 'u' argument is within either the range bounded between 'lo_1'
  36842. and 'hi_1' inclusive or the range bounded between 'lo_2' and 'hi_2'
  36843. inclusive.
  36844. The '__builtin_dfp_dtstsfi_lt' function returns a non-zero value if and
  36845. only if the number of signficant digits of its 'value' argument is less
  36846. than its 'comparison' argument. The '__builtin_dfp_dtstsfi_lt_dd' and
  36847. '__builtin_dfp_dtstsfi_lt_td' functions behave similarly, but require
  36848. that the type of the 'value' argument be '__Decimal64' and
  36849. '__Decimal128' respectively.
  36850. The '__builtin_dfp_dtstsfi_gt' function returns a non-zero value if and
  36851. only if the number of signficant digits of its 'value' argument is
  36852. greater than its 'comparison' argument. The
  36853. '__builtin_dfp_dtstsfi_gt_dd' and '__builtin_dfp_dtstsfi_gt_td'
  36854. functions behave similarly, but require that the type of the 'value'
  36855. argument be '__Decimal64' and '__Decimal128' respectively.
  36856. The '__builtin_dfp_dtstsfi_eq' function returns a non-zero value if and
  36857. only if the number of signficant digits of its 'value' argument equals
  36858. its 'comparison' argument. The '__builtin_dfp_dtstsfi_eq_dd' and
  36859. '__builtin_dfp_dtstsfi_eq_td' functions behave similarly, but require
  36860. that the type of the 'value' argument be '__Decimal64' and
  36861. '__Decimal128' respectively.
  36862. The '__builtin_dfp_dtstsfi_ov' function returns a non-zero value if and
  36863. only if its 'value' argument has an undefined number of significant
  36864. digits, such as when 'value' is an encoding of 'NaN'. The
  36865. '__builtin_dfp_dtstsfi_ov_dd' and '__builtin_dfp_dtstsfi_ov_td'
  36866. functions behave similarly, but require that the type of the 'value'
  36867. argument be '__Decimal64' and '__Decimal128' respectively.
  36868. The '__builtin_mffsl' uses the ISA 3.0 'mffsl' instruction to read the
  36869. FPSCR. The instruction is a lower latency version of the 'mffs'
  36870. instruction. If the 'mffsl' instruction is not available, then the
  36871. builtin uses the older 'mffs' instruction to read the FPSCR.
  36872. 
  36873. 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
  36874. 6.60.22 PowerPC AltiVec/VSX Built-in Functions
  36875. ----------------------------------------------
  36876. GCC provides an interface for the PowerPC family of processors to access
  36877. the AltiVec operations described in Motorola's AltiVec Programming
  36878. Interface Manual. The interface is made available by including
  36879. '<altivec.h>' and using '-maltivec' and '-mabi=altivec'. The interface
  36880. supports the following vector types.
  36881. vector unsigned char
  36882. vector signed char
  36883. vector bool char
  36884. vector unsigned short
  36885. vector signed short
  36886. vector bool short
  36887. vector pixel
  36888. vector unsigned int
  36889. vector signed int
  36890. vector bool int
  36891. vector float
  36892. GCC's implementation of the high-level language interface available
  36893. from C and C++ code differs from Motorola's documentation in several
  36894. ways.
  36895. * A vector constant is a list of constant expressions within curly
  36896. braces.
  36897. * A vector initializer requires no cast if the vector constant is of
  36898. the same type as the variable it is initializing.
  36899. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  36900. type is the default signedness of the base type. The default
  36901. varies depending on the operating system, so a portable program
  36902. should always specify the signedness.
  36903. * Compiling with '-maltivec' adds keywords '__vector', 'vector',
  36904. '__pixel', 'pixel', '__bool' and 'bool'. When compiling ISO C, the
  36905. context-sensitive substitution of the keywords 'vector', 'pixel'
  36906. and 'bool' is disabled. To use them, you must include
  36907. '<altivec.h>' instead.
  36908. * GCC allows using a 'typedef' name as the type specifier for a
  36909. vector type, but only under the following circumstances:
  36910. * When using '__vector' instead of 'vector'; for example,
  36911. typedef signed short int16;
  36912. __vector int16 data;
  36913. * When using 'vector' in keyword-and-predefine mode; for
  36914. example,
  36915. typedef signed short int16;
  36916. vector int16 data;
  36917. Note that keyword-and-predefine mode is enabled by disabling
  36918. GNU extensions (e.g., by using '-std=c11') and including
  36919. '<altivec.h>'.
  36920. * For C, overloaded functions are implemented with macros so the
  36921. following does not work:
  36922. vec_add ((vector signed int){1, 2, 3, 4}, foo);
  36923. Since 'vec_add' is a macro, the vector constant in the example is
  36924. treated as four separate arguments. Wrap the entire argument in
  36925. parentheses for this to work.
  36926. _Note:_ Only the '<altivec.h>' interface is supported. Internally, GCC
  36927. uses built-in functions to achieve the functionality in the
  36928. aforementioned header file, but they are not supported and are subject
  36929. to change without notice.
  36930. GCC complies with the OpenPOWER 64-Bit ELF V2 ABI Specification, which
  36931. may be found at
  36932. <http://openpowerfoundation.org/wp-content/uploads/resources/leabi-prd/content/index.html>.
  36933. Appendix A of this document lists the vector API interfaces that must be
  36934. provided by compliant compilers. Programmers should preferentially use
  36935. the interfaces described therein. However, historically GCC has
  36936. provided additional interfaces for access to vector instructions. These
  36937. are briefly described below.
  36938. * Menu:
  36939. * PowerPC AltiVec Built-in Functions on ISA 2.05::
  36940. * PowerPC AltiVec Built-in Functions Available on ISA 2.06::
  36941. * PowerPC AltiVec Built-in Functions Available on ISA 2.07::
  36942. * PowerPC AltiVec Built-in Functions Available on ISA 3.0::
  36943. 
  36944. 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
  36945. 6.60.22.1 PowerPC AltiVec Built-in Functions on ISA 2.05
  36946. ........................................................
  36947. The following interfaces are supported for the generic and specific
  36948. AltiVec operations and the AltiVec predicates. In cases where there is
  36949. a direct mapping between generic and specific operations, only the
  36950. generic names are shown here, although the specific operations can also
  36951. be used.
  36952. Arguments that are documented as 'const int' require literal integral
  36953. values within the range required for that operation.
  36954. vector signed char vec_abs (vector signed char);
  36955. vector signed short vec_abs (vector signed short);
  36956. vector signed int vec_abs (vector signed int);
  36957. vector float vec_abs (vector float);
  36958. vector signed char vec_abss (vector signed char);
  36959. vector signed short vec_abss (vector signed short);
  36960. vector signed int vec_abss (vector signed int);
  36961. vector signed char vec_add (vector bool char, vector signed char);
  36962. vector signed char vec_add (vector signed char, vector bool char);
  36963. vector signed char vec_add (vector signed char, vector signed char);
  36964. vector unsigned char vec_add (vector bool char, vector unsigned char);
  36965. vector unsigned char vec_add (vector unsigned char, vector bool char);
  36966. vector unsigned char vec_add (vector unsigned char, vector unsigned char);
  36967. vector signed short vec_add (vector bool short, vector signed short);
  36968. vector signed short vec_add (vector signed short, vector bool short);
  36969. vector signed short vec_add (vector signed short, vector signed short);
  36970. vector unsigned short vec_add (vector bool short, vector unsigned short);
  36971. vector unsigned short vec_add (vector unsigned short, vector bool short);
  36972. vector unsigned short vec_add (vector unsigned short, vector unsigned short);
  36973. vector signed int vec_add (vector bool int, vector signed int);
  36974. vector signed int vec_add (vector signed int, vector bool int);
  36975. vector signed int vec_add (vector signed int, vector signed int);
  36976. vector unsigned int vec_add (vector bool int, vector unsigned int);
  36977. vector unsigned int vec_add (vector unsigned int, vector bool int);
  36978. vector unsigned int vec_add (vector unsigned int, vector unsigned int);
  36979. vector float vec_add (vector float, vector float);
  36980. vector unsigned int vec_addc (vector unsigned int, vector unsigned int);
  36981. vector unsigned char vec_adds (vector bool char, vector unsigned char);
  36982. vector unsigned char vec_adds (vector unsigned char, vector bool char);
  36983. vector unsigned char vec_adds (vector unsigned char, vector unsigned char);
  36984. vector signed char vec_adds (vector bool char, vector signed char);
  36985. vector signed char vec_adds (vector signed char, vector bool char);
  36986. vector signed char vec_adds (vector signed char, vector signed char);
  36987. vector unsigned short vec_adds (vector bool short, vector unsigned short);
  36988. vector unsigned short vec_adds (vector unsigned short, vector bool short);
  36989. vector unsigned short vec_adds (vector unsigned short, vector unsigned short);
  36990. vector signed short vec_adds (vector bool short, vector signed short);
  36991. vector signed short vec_adds (vector signed short, vector bool short);
  36992. vector signed short vec_adds (vector signed short, vector signed short);
  36993. vector unsigned int vec_adds (vector bool int, vector unsigned int);
  36994. vector unsigned int vec_adds (vector unsigned int, vector bool int);
  36995. vector unsigned int vec_adds (vector unsigned int, vector unsigned int);
  36996. vector signed int vec_adds (vector bool int, vector signed int);
  36997. vector signed int vec_adds (vector signed int, vector bool int);
  36998. vector signed int vec_adds (vector signed int, vector signed int);
  36999. int vec_all_eq (vector signed char, vector bool char);
  37000. int vec_all_eq (vector signed char, vector signed char);
  37001. int vec_all_eq (vector unsigned char, vector bool char);
  37002. int vec_all_eq (vector unsigned char, vector unsigned char);
  37003. int vec_all_eq (vector bool char, vector bool char);
  37004. int vec_all_eq (vector bool char, vector unsigned char);
  37005. int vec_all_eq (vector bool char, vector signed char);
  37006. int vec_all_eq (vector signed short, vector bool short);
  37007. int vec_all_eq (vector signed short, vector signed short);
  37008. int vec_all_eq (vector unsigned short, vector bool short);
  37009. int vec_all_eq (vector unsigned short, vector unsigned short);
  37010. int vec_all_eq (vector bool short, vector bool short);
  37011. int vec_all_eq (vector bool short, vector unsigned short);
  37012. int vec_all_eq (vector bool short, vector signed short);
  37013. int vec_all_eq (vector pixel, vector pixel);
  37014. int vec_all_eq (vector signed int, vector bool int);
  37015. int vec_all_eq (vector signed int, vector signed int);
  37016. int vec_all_eq (vector unsigned int, vector bool int);
  37017. int vec_all_eq (vector unsigned int, vector unsigned int);
  37018. int vec_all_eq (vector bool int, vector bool int);
  37019. int vec_all_eq (vector bool int, vector unsigned int);
  37020. int vec_all_eq (vector bool int, vector signed int);
  37021. int vec_all_eq (vector float, vector float);
  37022. int vec_all_ge (vector bool char, vector unsigned char);
  37023. int vec_all_ge (vector unsigned char, vector bool char);
  37024. int vec_all_ge (vector unsigned char, vector unsigned char);
  37025. int vec_all_ge (vector bool char, vector signed char);
  37026. int vec_all_ge (vector signed char, vector bool char);
  37027. int vec_all_ge (vector signed char, vector signed char);
  37028. int vec_all_ge (vector bool short, vector unsigned short);
  37029. int vec_all_ge (vector unsigned short, vector bool short);
  37030. int vec_all_ge (vector unsigned short, vector unsigned short);
  37031. int vec_all_ge (vector signed short, vector signed short);
  37032. int vec_all_ge (vector bool short, vector signed short);
  37033. int vec_all_ge (vector signed short, vector bool short);
  37034. int vec_all_ge (vector bool int, vector unsigned int);
  37035. int vec_all_ge (vector unsigned int, vector bool int);
  37036. int vec_all_ge (vector unsigned int, vector unsigned int);
  37037. int vec_all_ge (vector bool int, vector signed int);
  37038. int vec_all_ge (vector signed int, vector bool int);
  37039. int vec_all_ge (vector signed int, vector signed int);
  37040. int vec_all_ge (vector float, vector float);
  37041. int vec_all_gt (vector bool char, vector unsigned char);
  37042. int vec_all_gt (vector unsigned char, vector bool char);
  37043. int vec_all_gt (vector unsigned char, vector unsigned char);
  37044. int vec_all_gt (vector bool char, vector signed char);
  37045. int vec_all_gt (vector signed char, vector bool char);
  37046. int vec_all_gt (vector signed char, vector signed char);
  37047. int vec_all_gt (vector bool short, vector unsigned short);
  37048. int vec_all_gt (vector unsigned short, vector bool short);
  37049. int vec_all_gt (vector unsigned short, vector unsigned short);
  37050. int vec_all_gt (vector bool short, vector signed short);
  37051. int vec_all_gt (vector signed short, vector bool short);
  37052. int vec_all_gt (vector signed short, vector signed short);
  37053. int vec_all_gt (vector bool int, vector unsigned int);
  37054. int vec_all_gt (vector unsigned int, vector bool int);
  37055. int vec_all_gt (vector unsigned int, vector unsigned int);
  37056. int vec_all_gt (vector bool int, vector signed int);
  37057. int vec_all_gt (vector signed int, vector bool int);
  37058. int vec_all_gt (vector signed int, vector signed int);
  37059. int vec_all_gt (vector float, vector float);
  37060. int vec_all_in (vector float, vector float);
  37061. int vec_all_le (vector bool char, vector unsigned char);
  37062. int vec_all_le (vector unsigned char, vector bool char);
  37063. int vec_all_le (vector unsigned char, vector unsigned char);
  37064. int vec_all_le (vector bool char, vector signed char);
  37065. int vec_all_le (vector signed char, vector bool char);
  37066. int vec_all_le (vector signed char, vector signed char);
  37067. int vec_all_le (vector bool short, vector unsigned short);
  37068. int vec_all_le (vector unsigned short, vector bool short);
  37069. int vec_all_le (vector unsigned short, vector unsigned short);
  37070. int vec_all_le (vector bool short, vector signed short);
  37071. int vec_all_le (vector signed short, vector bool short);
  37072. int vec_all_le (vector signed short, vector signed short);
  37073. int vec_all_le (vector bool int, vector unsigned int);
  37074. int vec_all_le (vector unsigned int, vector bool int);
  37075. int vec_all_le (vector unsigned int, vector unsigned int);
  37076. int vec_all_le (vector bool int, vector signed int);
  37077. int vec_all_le (vector signed int, vector bool int);
  37078. int vec_all_le (vector signed int, vector signed int);
  37079. int vec_all_le (vector float, vector float);
  37080. int vec_all_lt (vector bool char, vector unsigned char);
  37081. int vec_all_lt (vector unsigned char, vector bool char);
  37082. int vec_all_lt (vector unsigned char, vector unsigned char);
  37083. int vec_all_lt (vector bool char, vector signed char);
  37084. int vec_all_lt (vector signed char, vector bool char);
  37085. int vec_all_lt (vector signed char, vector signed char);
  37086. int vec_all_lt (vector bool short, vector unsigned short);
  37087. int vec_all_lt (vector unsigned short, vector bool short);
  37088. int vec_all_lt (vector unsigned short, vector unsigned short);
  37089. int vec_all_lt (vector bool short, vector signed short);
  37090. int vec_all_lt (vector signed short, vector bool short);
  37091. int vec_all_lt (vector signed short, vector signed short);
  37092. int vec_all_lt (vector bool int, vector unsigned int);
  37093. int vec_all_lt (vector unsigned int, vector bool int);
  37094. int vec_all_lt (vector unsigned int, vector unsigned int);
  37095. int vec_all_lt (vector bool int, vector signed int);
  37096. int vec_all_lt (vector signed int, vector bool int);
  37097. int vec_all_lt (vector signed int, vector signed int);
  37098. int vec_all_lt (vector float, vector float);
  37099. int vec_all_nan (vector float);
  37100. int vec_all_ne (vector signed char, vector bool char);
  37101. int vec_all_ne (vector signed char, vector signed char);
  37102. int vec_all_ne (vector unsigned char, vector bool char);
  37103. int vec_all_ne (vector unsigned char, vector unsigned char);
  37104. int vec_all_ne (vector bool char, vector bool char);
  37105. int vec_all_ne (vector bool char, vector unsigned char);
  37106. int vec_all_ne (vector bool char, vector signed char);
  37107. int vec_all_ne (vector signed short, vector bool short);
  37108. int vec_all_ne (vector signed short, vector signed short);
  37109. int vec_all_ne (vector unsigned short, vector bool short);
  37110. int vec_all_ne (vector unsigned short, vector unsigned short);
  37111. int vec_all_ne (vector bool short, vector bool short);
  37112. int vec_all_ne (vector bool short, vector unsigned short);
  37113. int vec_all_ne (vector bool short, vector signed short);
  37114. int vec_all_ne (vector pixel, vector pixel);
  37115. int vec_all_ne (vector signed int, vector bool int);
  37116. int vec_all_ne (vector signed int, vector signed int);
  37117. int vec_all_ne (vector unsigned int, vector bool int);
  37118. int vec_all_ne (vector unsigned int, vector unsigned int);
  37119. int vec_all_ne (vector bool int, vector bool int);
  37120. int vec_all_ne (vector bool int, vector unsigned int);
  37121. int vec_all_ne (vector bool int, vector signed int);
  37122. int vec_all_ne (vector float, vector float);
  37123. int vec_all_nge (vector float, vector float);
  37124. int vec_all_ngt (vector float, vector float);
  37125. int vec_all_nle (vector float, vector float);
  37126. int vec_all_nlt (vector float, vector float);
  37127. int vec_all_numeric (vector float);
  37128. vector float vec_and (vector float, vector float);
  37129. vector float vec_and (vector float, vector bool int);
  37130. vector float vec_and (vector bool int, vector float);
  37131. vector bool int vec_and (vector bool int, vector bool int);
  37132. vector signed int vec_and (vector bool int, vector signed int);
  37133. vector signed int vec_and (vector signed int, vector bool int);
  37134. vector signed int vec_and (vector signed int, vector signed int);
  37135. vector unsigned int vec_and (vector bool int, vector unsigned int);
  37136. vector unsigned int vec_and (vector unsigned int, vector bool int);
  37137. vector unsigned int vec_and (vector unsigned int, vector unsigned int);
  37138. vector bool short vec_and (vector bool short, vector bool short);
  37139. vector signed short vec_and (vector bool short, vector signed short);
  37140. vector signed short vec_and (vector signed short, vector bool short);
  37141. vector signed short vec_and (vector signed short, vector signed short);
  37142. vector unsigned short vec_and (vector bool short, vector unsigned short);
  37143. vector unsigned short vec_and (vector unsigned short, vector bool short);
  37144. vector unsigned short vec_and (vector unsigned short, vector unsigned short);
  37145. vector signed char vec_and (vector bool char, vector signed char);
  37146. vector bool char vec_and (vector bool char, vector bool char);
  37147. vector signed char vec_and (vector signed char, vector bool char);
  37148. vector signed char vec_and (vector signed char, vector signed char);
  37149. vector unsigned char vec_and (vector bool char, vector unsigned char);
  37150. vector unsigned char vec_and (vector unsigned char, vector bool char);
  37151. vector unsigned char vec_and (vector unsigned char, vector unsigned char);
  37152. vector float vec_andc (vector float, vector float);
  37153. vector float vec_andc (vector float, vector bool int);
  37154. vector float vec_andc (vector bool int, vector float);
  37155. vector bool int vec_andc (vector bool int, vector bool int);
  37156. vector signed int vec_andc (vector bool int, vector signed int);
  37157. vector signed int vec_andc (vector signed int, vector bool int);
  37158. vector signed int vec_andc (vector signed int, vector signed int);
  37159. vector unsigned int vec_andc (vector bool int, vector unsigned int);
  37160. vector unsigned int vec_andc (vector unsigned int, vector bool int);
  37161. vector unsigned int vec_andc (vector unsigned int, vector unsigned int);
  37162. vector bool short vec_andc (vector bool short, vector bool short);
  37163. vector signed short vec_andc (vector bool short, vector signed short);
  37164. vector signed short vec_andc (vector signed short, vector bool short);
  37165. vector signed short vec_andc (vector signed short, vector signed short);
  37166. vector unsigned short vec_andc (vector bool short, vector unsigned short);
  37167. vector unsigned short vec_andc (vector unsigned short, vector bool short);
  37168. vector unsigned short vec_andc (vector unsigned short, vector unsigned short);
  37169. vector signed char vec_andc (vector bool char, vector signed char);
  37170. vector bool char vec_andc (vector bool char, vector bool char);
  37171. vector signed char vec_andc (vector signed char, vector bool char);
  37172. vector signed char vec_andc (vector signed char, vector signed char);
  37173. vector unsigned char vec_andc (vector bool char, vector unsigned char);
  37174. vector unsigned char vec_andc (vector unsigned char, vector bool char);
  37175. vector unsigned char vec_andc (vector unsigned char, vector unsigned char);
  37176. int vec_any_eq (vector signed char, vector bool char);
  37177. int vec_any_eq (vector signed char, vector signed char);
  37178. int vec_any_eq (vector unsigned char, vector bool char);
  37179. int vec_any_eq (vector unsigned char, vector unsigned char);
  37180. int vec_any_eq (vector bool char, vector bool char);
  37181. int vec_any_eq (vector bool char, vector unsigned char);
  37182. int vec_any_eq (vector bool char, vector signed char);
  37183. int vec_any_eq (vector signed short, vector bool short);
  37184. int vec_any_eq (vector signed short, vector signed short);
  37185. int vec_any_eq (vector unsigned short, vector bool short);
  37186. int vec_any_eq (vector unsigned short, vector unsigned short);
  37187. int vec_any_eq (vector bool short, vector bool short);
  37188. int vec_any_eq (vector bool short, vector unsigned short);
  37189. int vec_any_eq (vector bool short, vector signed short);
  37190. int vec_any_eq (vector pixel, vector pixel);
  37191. int vec_any_eq (vector signed int, vector bool int);
  37192. int vec_any_eq (vector signed int, vector signed int);
  37193. int vec_any_eq (vector unsigned int, vector bool int);
  37194. int vec_any_eq (vector unsigned int, vector unsigned int);
  37195. int vec_any_eq (vector bool int, vector bool int);
  37196. int vec_any_eq (vector bool int, vector unsigned int);
  37197. int vec_any_eq (vector bool int, vector signed int);
  37198. int vec_any_eq (vector float, vector float);
  37199. int vec_any_ge (vector signed char, vector bool char);
  37200. int vec_any_ge (vector unsigned char, vector bool char);
  37201. int vec_any_ge (vector unsigned char, vector unsigned char);
  37202. int vec_any_ge (vector signed char, vector signed char);
  37203. int vec_any_ge (vector bool char, vector unsigned char);
  37204. int vec_any_ge (vector bool char, vector signed char);
  37205. int vec_any_ge (vector unsigned short, vector bool short);
  37206. int vec_any_ge (vector unsigned short, vector unsigned short);
  37207. int vec_any_ge (vector signed short, vector signed short);
  37208. int vec_any_ge (vector signed short, vector bool short);
  37209. int vec_any_ge (vector bool short, vector unsigned short);
  37210. int vec_any_ge (vector bool short, vector signed short);
  37211. int vec_any_ge (vector signed int, vector bool int);
  37212. int vec_any_ge (vector unsigned int, vector bool int);
  37213. int vec_any_ge (vector unsigned int, vector unsigned int);
  37214. int vec_any_ge (vector signed int, vector signed int);
  37215. int vec_any_ge (vector bool int, vector unsigned int);
  37216. int vec_any_ge (vector bool int, vector signed int);
  37217. int vec_any_ge (vector float, vector float);
  37218. int vec_any_gt (vector bool char, vector unsigned char);
  37219. int vec_any_gt (vector unsigned char, vector bool char);
  37220. int vec_any_gt (vector unsigned char, vector unsigned char);
  37221. int vec_any_gt (vector bool char, vector signed char);
  37222. int vec_any_gt (vector signed char, vector bool char);
  37223. int vec_any_gt (vector signed char, vector signed char);
  37224. int vec_any_gt (vector bool short, vector unsigned short);
  37225. int vec_any_gt (vector unsigned short, vector bool short);
  37226. int vec_any_gt (vector unsigned short, vector unsigned short);
  37227. int vec_any_gt (vector bool short, vector signed short);
  37228. int vec_any_gt (vector signed short, vector bool short);
  37229. int vec_any_gt (vector signed short, vector signed short);
  37230. int vec_any_gt (vector bool int, vector unsigned int);
  37231. int vec_any_gt (vector unsigned int, vector bool int);
  37232. int vec_any_gt (vector unsigned int, vector unsigned int);
  37233. int vec_any_gt (vector bool int, vector signed int);
  37234. int vec_any_gt (vector signed int, vector bool int);
  37235. int vec_any_gt (vector signed int, vector signed int);
  37236. int vec_any_gt (vector float, vector float);
  37237. int vec_any_le (vector bool char, vector unsigned char);
  37238. int vec_any_le (vector unsigned char, vector bool char);
  37239. int vec_any_le (vector unsigned char, vector unsigned char);
  37240. int vec_any_le (vector bool char, vector signed char);
  37241. int vec_any_le (vector signed char, vector bool char);
  37242. int vec_any_le (vector signed char, vector signed char);
  37243. int vec_any_le (vector bool short, vector unsigned short);
  37244. int vec_any_le (vector unsigned short, vector bool short);
  37245. int vec_any_le (vector unsigned short, vector unsigned short);
  37246. int vec_any_le (vector bool short, vector signed short);
  37247. int vec_any_le (vector signed short, vector bool short);
  37248. int vec_any_le (vector signed short, vector signed short);
  37249. int vec_any_le (vector bool int, vector unsigned int);
  37250. int vec_any_le (vector unsigned int, vector bool int);
  37251. int vec_any_le (vector unsigned int, vector unsigned int);
  37252. int vec_any_le (vector bool int, vector signed int);
  37253. int vec_any_le (vector signed int, vector bool int);
  37254. int vec_any_le (vector signed int, vector signed int);
  37255. int vec_any_le (vector float, vector float);
  37256. int vec_any_lt (vector bool char, vector unsigned char);
  37257. int vec_any_lt (vector unsigned char, vector bool char);
  37258. int vec_any_lt (vector unsigned char, vector unsigned char);
  37259. int vec_any_lt (vector bool char, vector signed char);
  37260. int vec_any_lt (vector signed char, vector bool char);
  37261. int vec_any_lt (vector signed char, vector signed char);
  37262. int vec_any_lt (vector bool short, vector unsigned short);
  37263. int vec_any_lt (vector unsigned short, vector bool short);
  37264. int vec_any_lt (vector unsigned short, vector unsigned short);
  37265. int vec_any_lt (vector bool short, vector signed short);
  37266. int vec_any_lt (vector signed short, vector bool short);
  37267. int vec_any_lt (vector signed short, vector signed short);
  37268. int vec_any_lt (vector bool int, vector unsigned int);
  37269. int vec_any_lt (vector unsigned int, vector bool int);
  37270. int vec_any_lt (vector unsigned int, vector unsigned int);
  37271. int vec_any_lt (vector bool int, vector signed int);
  37272. int vec_any_lt (vector signed int, vector bool int);
  37273. int vec_any_lt (vector signed int, vector signed int);
  37274. int vec_any_lt (vector float, vector float);
  37275. int vec_any_nan (vector float);
  37276. int vec_any_ne (vector signed char, vector bool char);
  37277. int vec_any_ne (vector signed char, vector signed char);
  37278. int vec_any_ne (vector unsigned char, vector bool char);
  37279. int vec_any_ne (vector unsigned char, vector unsigned char);
  37280. int vec_any_ne (vector bool char, vector bool char);
  37281. int vec_any_ne (vector bool char, vector unsigned char);
  37282. int vec_any_ne (vector bool char, vector signed char);
  37283. int vec_any_ne (vector signed short, vector bool short);
  37284. int vec_any_ne (vector signed short, vector signed short);
  37285. int vec_any_ne (vector unsigned short, vector bool short);
  37286. int vec_any_ne (vector unsigned short, vector unsigned short);
  37287. int vec_any_ne (vector bool short, vector bool short);
  37288. int vec_any_ne (vector bool short, vector unsigned short);
  37289. int vec_any_ne (vector bool short, vector signed short);
  37290. int vec_any_ne (vector pixel, vector pixel);
  37291. int vec_any_ne (vector signed int, vector bool int);
  37292. int vec_any_ne (vector signed int, vector signed int);
  37293. int vec_any_ne (vector unsigned int, vector bool int);
  37294. int vec_any_ne (vector unsigned int, vector unsigned int);
  37295. int vec_any_ne (vector bool int, vector bool int);
  37296. int vec_any_ne (vector bool int, vector unsigned int);
  37297. int vec_any_ne (vector bool int, vector signed int);
  37298. int vec_any_ne (vector float, vector float);
  37299. int vec_any_nge (vector float, vector float);
  37300. int vec_any_ngt (vector float, vector float);
  37301. int vec_any_nle (vector float, vector float);
  37302. int vec_any_nlt (vector float, vector float);
  37303. int vec_any_numeric (vector float);
  37304. int vec_any_out (vector float, vector float);
  37305. vector unsigned char vec_avg (vector unsigned char, vector unsigned char);
  37306. vector signed char vec_avg (vector signed char, vector signed char);
  37307. vector unsigned short vec_avg (vector unsigned short, vector unsigned short);
  37308. vector signed short vec_avg (vector signed short, vector signed short);
  37309. vector unsigned int vec_avg (vector unsigned int, vector unsigned int);
  37310. vector signed int vec_avg (vector signed int, vector signed int);
  37311. vector float vec_ceil (vector float);
  37312. vector signed int vec_cmpb (vector float, vector float);
  37313. vector bool char vec_cmpeq (vector bool char, vector bool char);
  37314. vector bool short vec_cmpeq (vector bool short, vector bool short);
  37315. vector bool int vec_cmpeq (vector bool int, vector bool int);
  37316. vector bool char vec_cmpeq (vector signed char, vector signed char);
  37317. vector bool char vec_cmpeq (vector unsigned char, vector unsigned char);
  37318. vector bool short vec_cmpeq (vector signed short, vector signed short);
  37319. vector bool short vec_cmpeq (vector unsigned short, vector unsigned short);
  37320. vector bool int vec_cmpeq (vector signed int, vector signed int);
  37321. vector bool int vec_cmpeq (vector unsigned int, vector unsigned int);
  37322. vector bool int vec_cmpeq (vector float, vector float);
  37323. vector bool int vec_cmpge (vector float, vector float);
  37324. vector bool char vec_cmpgt (vector unsigned char, vector unsigned char);
  37325. vector bool char vec_cmpgt (vector signed char, vector signed char);
  37326. vector bool short vec_cmpgt (vector unsigned short, vector unsigned short);
  37327. vector bool short vec_cmpgt (vector signed short, vector signed short);
  37328. vector bool int vec_cmpgt (vector unsigned int, vector unsigned int);
  37329. vector bool int vec_cmpgt (vector signed int, vector signed int);
  37330. vector bool int vec_cmpgt (vector float, vector float);
  37331. vector bool int vec_cmple (vector float, vector float);
  37332. vector bool char vec_cmplt (vector unsigned char, vector unsigned char);
  37333. vector bool char vec_cmplt (vector signed char, vector signed char);
  37334. vector bool short vec_cmplt (vector unsigned short, vector unsigned short);
  37335. vector bool short vec_cmplt (vector signed short, vector signed short);
  37336. vector bool int vec_cmplt (vector unsigned int, vector unsigned int);
  37337. vector bool int vec_cmplt (vector signed int, vector signed int);
  37338. vector bool int vec_cmplt (vector float, vector float);
  37339. vector float vec_cpsgn (vector float, vector float);
  37340. vector float vec_ctf (vector unsigned int, const int);
  37341. vector float vec_ctf (vector signed int, const int);
  37342. vector signed int vec_cts (vector float, const int);
  37343. vector unsigned int vec_ctu (vector float, const int);
  37344. void vec_dss (const int);
  37345. void vec_dssall (void);
  37346. void vec_dst (const vector unsigned char *, int, const int);
  37347. void vec_dst (const vector signed char *, int, const int);
  37348. void vec_dst (const vector bool char *, int, const int);
  37349. void vec_dst (const vector unsigned short *, int, const int);
  37350. void vec_dst (const vector signed short *, int, const int);
  37351. void vec_dst (const vector bool short *, int, const int);
  37352. void vec_dst (const vector pixel *, int, const int);
  37353. void vec_dst (const vector unsigned int *, int, const int);
  37354. void vec_dst (const vector signed int *, int, const int);
  37355. void vec_dst (const vector bool int *, int, const int);
  37356. void vec_dst (const vector float *, int, const int);
  37357. void vec_dst (const unsigned char *, int, const int);
  37358. void vec_dst (const signed char *, int, const int);
  37359. void vec_dst (const unsigned short *, int, const int);
  37360. void vec_dst (const short *, int, const int);
  37361. void vec_dst (const unsigned int *, int, const int);
  37362. void vec_dst (const int *, int, const int);
  37363. void vec_dst (const float *, int, const int);
  37364. void vec_dstst (const vector unsigned char *, int, const int);
  37365. void vec_dstst (const vector signed char *, int, const int);
  37366. void vec_dstst (const vector bool char *, int, const int);
  37367. void vec_dstst (const vector unsigned short *, int, const int);
  37368. void vec_dstst (const vector signed short *, int, const int);
  37369. void vec_dstst (const vector bool short *, int, const int);
  37370. void vec_dstst (const vector pixel *, int, const int);
  37371. void vec_dstst (const vector unsigned int *, int, const int);
  37372. void vec_dstst (const vector signed int *, int, const int);
  37373. void vec_dstst (const vector bool int *, int, const int);
  37374. void vec_dstst (const vector float *, int, const int);
  37375. void vec_dstst (const unsigned char *, int, const int);
  37376. void vec_dstst (const signed char *, int, const int);
  37377. void vec_dstst (const unsigned short *, int, const int);
  37378. void vec_dstst (const short *, int, const int);
  37379. void vec_dstst (const unsigned int *, int, const int);
  37380. void vec_dstst (const int *, int, const int);
  37381. void vec_dstst (const unsigned long *, int, const int);
  37382. void vec_dstst (const long *, int, const int);
  37383. void vec_dstst (const float *, int, const int);
  37384. void vec_dststt (const vector unsigned char *, int, const int);
  37385. void vec_dststt (const vector signed char *, int, const int);
  37386. void vec_dststt (const vector bool char *, int, const int);
  37387. void vec_dststt (const vector unsigned short *, int, const int);
  37388. void vec_dststt (const vector signed short *, int, const int);
  37389. void vec_dststt (const vector bool short *, int, const int);
  37390. void vec_dststt (const vector pixel *, int, const int);
  37391. void vec_dststt (const vector unsigned int *, int, const int);
  37392. void vec_dststt (const vector signed int *, int, const int);
  37393. void vec_dststt (const vector bool int *, int, const int);
  37394. void vec_dststt (const vector float *, int, const int);
  37395. void vec_dststt (const unsigned char *, int, const int);
  37396. void vec_dststt (const signed char *, int, const int);
  37397. void vec_dststt (const unsigned short *, int, const int);
  37398. void vec_dststt (const short *, int, const int);
  37399. void vec_dststt (const unsigned int *, int, const int);
  37400. void vec_dststt (const int *, int, const int);
  37401. void vec_dststt (const float *, int, const int);
  37402. void vec_dstt (const vector unsigned char *, int, const int);
  37403. void vec_dstt (const vector signed char *, int, const int);
  37404. void vec_dstt (const vector bool char *, int, const int);
  37405. void vec_dstt (const vector unsigned short *, int, const int);
  37406. void vec_dstt (const vector signed short *, int, const int);
  37407. void vec_dstt (const vector bool short *, int, const int);
  37408. void vec_dstt (const vector pixel *, int, const int);
  37409. void vec_dstt (const vector unsigned int *, int, const int);
  37410. void vec_dstt (const vector signed int *, int, const int);
  37411. void vec_dstt (const vector bool int *, int, const int);
  37412. void vec_dstt (const vector float *, int, const int);
  37413. void vec_dstt (const unsigned char *, int, const int);
  37414. void vec_dstt (const signed char *, int, const int);
  37415. void vec_dstt (const unsigned short *, int, const int);
  37416. void vec_dstt (const short *, int, const int);
  37417. void vec_dstt (const unsigned int *, int, const int);
  37418. void vec_dstt (const int *, int, const int);
  37419. void vec_dstt (const float *, int, const int);
  37420. vector float vec_expte (vector float);
  37421. vector float vec_floor (vector float);
  37422. vector float vec_ld (int, const vector float *);
  37423. vector float vec_ld (int, const float *);
  37424. vector bool int vec_ld (int, const vector bool int *);
  37425. vector signed int vec_ld (int, const vector signed int *);
  37426. vector signed int vec_ld (int, const int *);
  37427. vector unsigned int vec_ld (int, const vector unsigned int *);
  37428. vector unsigned int vec_ld (int, const unsigned int *);
  37429. vector bool short vec_ld (int, const vector bool short *);
  37430. vector pixel vec_ld (int, const vector pixel *);
  37431. vector signed short vec_ld (int, const vector signed short *);
  37432. vector signed short vec_ld (int, const short *);
  37433. vector unsigned short vec_ld (int, const vector unsigned short *);
  37434. vector unsigned short vec_ld (int, const unsigned short *);
  37435. vector bool char vec_ld (int, const vector bool char *);
  37436. vector signed char vec_ld (int, const vector signed char *);
  37437. vector signed char vec_ld (int, const signed char *);
  37438. vector unsigned char vec_ld (int, const vector unsigned char *);
  37439. vector unsigned char vec_ld (int, const unsigned char *);
  37440. vector signed char vec_lde (int, const signed char *);
  37441. vector unsigned char vec_lde (int, const unsigned char *);
  37442. vector signed short vec_lde (int, const short *);
  37443. vector unsigned short vec_lde (int, const unsigned short *);
  37444. vector float vec_lde (int, const float *);
  37445. vector signed int vec_lde (int, const int *);
  37446. vector unsigned int vec_lde (int, const unsigned int *);
  37447. vector float vec_ldl (int, const vector float *);
  37448. vector float vec_ldl (int, const float *);
  37449. vector bool int vec_ldl (int, const vector bool int *);
  37450. vector signed int vec_ldl (int, const vector signed int *);
  37451. vector signed int vec_ldl (int, const int *);
  37452. vector unsigned int vec_ldl (int, const vector unsigned int *);
  37453. vector unsigned int vec_ldl (int, const unsigned int *);
  37454. vector bool short vec_ldl (int, const vector bool short *);
  37455. vector pixel vec_ldl (int, const vector pixel *);
  37456. vector signed short vec_ldl (int, const vector signed short *);
  37457. vector signed short vec_ldl (int, const short *);
  37458. vector unsigned short vec_ldl (int, const vector unsigned short *);
  37459. vector unsigned short vec_ldl (int, const unsigned short *);
  37460. vector bool char vec_ldl (int, const vector bool char *);
  37461. vector signed char vec_ldl (int, const vector signed char *);
  37462. vector signed char vec_ldl (int, const signed char *);
  37463. vector unsigned char vec_ldl (int, const vector unsigned char *);
  37464. vector unsigned char vec_ldl (int, const unsigned char *);
  37465. vector float vec_loge (vector float);
  37466. vector signed char vec_lvebx (int, char *);
  37467. vector unsigned char vec_lvebx (int, unsigned char *);
  37468. vector signed short vec_lvehx (int, short *);
  37469. vector unsigned short vec_lvehx (int, unsigned short *);
  37470. vector float vec_lvewx (int, float *);
  37471. vector signed int vec_lvewx (int, int *);
  37472. vector unsigned int vec_lvewx (int, unsigned int *);
  37473. vector unsigned char vec_lvsl (int, const unsigned char *);
  37474. vector unsigned char vec_lvsl (int, const signed char *);
  37475. vector unsigned char vec_lvsl (int, const unsigned short *);
  37476. vector unsigned char vec_lvsl (int, const short *);
  37477. vector unsigned char vec_lvsl (int, const unsigned int *);
  37478. vector unsigned char vec_lvsl (int, const int *);
  37479. vector unsigned char vec_lvsl (int, const float *);
  37480. vector unsigned char vec_lvsr (int, const unsigned char *);
  37481. vector unsigned char vec_lvsr (int, const signed char *);
  37482. vector unsigned char vec_lvsr (int, const unsigned short *);
  37483. vector unsigned char vec_lvsr (int, const short *);
  37484. vector unsigned char vec_lvsr (int, const unsigned int *);
  37485. vector unsigned char vec_lvsr (int, const int *);
  37486. vector unsigned char vec_lvsr (int, const float *);
  37487. vector float vec_madd (vector float, vector float, vector float);
  37488. vector signed short vec_madds (vector signed short, vector signed short,
  37489. vector signed short);
  37490. vector unsigned char vec_max (vector bool char, vector unsigned char);
  37491. vector unsigned char vec_max (vector unsigned char, vector bool char);
  37492. vector unsigned char vec_max (vector unsigned char, vector unsigned char);
  37493. vector signed char vec_max (vector bool char, vector signed char);
  37494. vector signed char vec_max (vector signed char, vector bool char);
  37495. vector signed char vec_max (vector signed char, vector signed char);
  37496. vector unsigned short vec_max (vector bool short, vector unsigned short);
  37497. vector unsigned short vec_max (vector unsigned short, vector bool short);
  37498. vector unsigned short vec_max (vector unsigned short, vector unsigned short);
  37499. vector signed short vec_max (vector bool short, vector signed short);
  37500. vector signed short vec_max (vector signed short, vector bool short);
  37501. vector signed short vec_max (vector signed short, vector signed short);
  37502. vector unsigned int vec_max (vector bool int, vector unsigned int);
  37503. vector unsigned int vec_max (vector unsigned int, vector bool int);
  37504. vector unsigned int vec_max (vector unsigned int, vector unsigned int);
  37505. vector signed int vec_max (vector bool int, vector signed int);
  37506. vector signed int vec_max (vector signed int, vector bool int);
  37507. vector signed int vec_max (vector signed int, vector signed int);
  37508. vector float vec_max (vector float, vector float);
  37509. vector bool char vec_mergeh (vector bool char, vector bool char);
  37510. vector signed char vec_mergeh (vector signed char, vector signed char);
  37511. vector unsigned char vec_mergeh (vector unsigned char, vector unsigned char);
  37512. vector bool short vec_mergeh (vector bool short, vector bool short);
  37513. vector pixel vec_mergeh (vector pixel, vector pixel);
  37514. vector signed short vec_mergeh (vector signed short, vector signed short);
  37515. vector unsigned short vec_mergeh (vector unsigned short, vector unsigned short);
  37516. vector float vec_mergeh (vector float, vector float);
  37517. vector bool int vec_mergeh (vector bool int, vector bool int);
  37518. vector signed int vec_mergeh (vector signed int, vector signed int);
  37519. vector unsigned int vec_mergeh (vector unsigned int, vector unsigned int);
  37520. vector bool char vec_mergel (vector bool char, vector bool char);
  37521. vector signed char vec_mergel (vector signed char, vector signed char);
  37522. vector unsigned char vec_mergel (vector unsigned char, vector unsigned char);
  37523. vector bool short vec_mergel (vector bool short, vector bool short);
  37524. vector pixel vec_mergel (vector pixel, vector pixel);
  37525. vector signed short vec_mergel (vector signed short, vector signed short);
  37526. vector unsigned short vec_mergel (vector unsigned short, vector unsigned short);
  37527. vector float vec_mergel (vector float, vector float);
  37528. vector bool int vec_mergel (vector bool int, vector bool int);
  37529. vector signed int vec_mergel (vector signed int, vector signed int);
  37530. vector unsigned int vec_mergel (vector unsigned int, vector unsigned int);
  37531. vector unsigned short vec_mfvscr (void);
  37532. vector unsigned char vec_min (vector bool char, vector unsigned char);
  37533. vector unsigned char vec_min (vector unsigned char, vector bool char);
  37534. vector unsigned char vec_min (vector unsigned char, vector unsigned char);
  37535. vector signed char vec_min (vector bool char, vector signed char);
  37536. vector signed char vec_min (vector signed char, vector bool char);
  37537. vector signed char vec_min (vector signed char, vector signed char);
  37538. vector unsigned short vec_min (vector bool short, vector unsigned short);
  37539. vector unsigned short vec_min (vector unsigned short, vector bool short);
  37540. vector unsigned short vec_min (vector unsigned short, vector unsigned short);
  37541. vector signed short vec_min (vector bool short, vector signed short);
  37542. vector signed short vec_min (vector signed short, vector bool short);
  37543. vector signed short vec_min (vector signed short, vector signed short);
  37544. vector unsigned int vec_min (vector bool int, vector unsigned int);
  37545. vector unsigned int vec_min (vector unsigned int, vector bool int);
  37546. vector unsigned int vec_min (vector unsigned int, vector unsigned int);
  37547. vector signed int vec_min (vector bool int, vector signed int);
  37548. vector signed int vec_min (vector signed int, vector bool int);
  37549. vector signed int vec_min (vector signed int, vector signed int);
  37550. vector float vec_min (vector float, vector float);
  37551. vector signed short vec_mladd (vector signed short, vector signed short,
  37552. vector signed short);
  37553. vector signed short vec_mladd (vector signed short, vector unsigned short,
  37554. vector unsigned short);
  37555. vector signed short vec_mladd (vector unsigned short, vector signed short,
  37556. vector signed short);
  37557. vector unsigned short vec_mladd (vector unsigned short, vector unsigned short,
  37558. vector unsigned short);
  37559. vector signed short vec_mradds (vector signed short, vector signed short,
  37560. vector signed short);
  37561. vector unsigned int vec_msum (vector unsigned char, vector unsigned char,
  37562. vector unsigned int);
  37563. vector signed int vec_msum (vector signed char, vector unsigned char,
  37564. vector signed int);
  37565. vector unsigned int vec_msum (vector unsigned short, vector unsigned short,
  37566. vector unsigned int);
  37567. vector signed int vec_msum (vector signed short, vector signed short,
  37568. vector signed int);
  37569. vector unsigned int vec_msums (vector unsigned short, vector unsigned short,
  37570. vector unsigned int);
  37571. vector signed int vec_msums (vector signed short, vector signed short,
  37572. vector signed int);
  37573. void vec_mtvscr (vector signed int);
  37574. void vec_mtvscr (vector unsigned int);
  37575. void vec_mtvscr (vector bool int);
  37576. void vec_mtvscr (vector signed short);
  37577. void vec_mtvscr (vector unsigned short);
  37578. void vec_mtvscr (vector bool short);
  37579. void vec_mtvscr (vector pixel);
  37580. void vec_mtvscr (vector signed char);
  37581. void vec_mtvscr (vector unsigned char);
  37582. void vec_mtvscr (vector bool char);
  37583. vector float vec_mul (vector float, vector float);
  37584. vector unsigned short vec_mule (vector unsigned char, vector unsigned char);
  37585. vector signed short vec_mule (vector signed char, vector signed char);
  37586. vector unsigned int vec_mule (vector unsigned short, vector unsigned short);
  37587. vector signed int vec_mule (vector signed short, vector signed short);
  37588. vector unsigned short vec_mulo (vector unsigned char, vector unsigned char);
  37589. vector signed short vec_mulo (vector signed char, vector signed char);
  37590. vector unsigned int vec_mulo (vector unsigned short, vector unsigned short);
  37591. vector signed int vec_mulo (vector signed short, vector signed short);
  37592. vector signed char vec_nabs (vector signed char);
  37593. vector signed short vec_nabs (vector signed short);
  37594. vector signed int vec_nabs (vector signed int);
  37595. vector float vec_nabs (vector float);
  37596. vector float vec_nmsub (vector float, vector float, vector float);
  37597. vector float vec_nor (vector float, vector float);
  37598. vector signed int vec_nor (vector signed int, vector signed int);
  37599. vector unsigned int vec_nor (vector unsigned int, vector unsigned int);
  37600. vector bool int vec_nor (vector bool int, vector bool int);
  37601. vector signed short vec_nor (vector signed short, vector signed short);
  37602. vector unsigned short vec_nor (vector unsigned short, vector unsigned short);
  37603. vector bool short vec_nor (vector bool short, vector bool short);
  37604. vector signed char vec_nor (vector signed char, vector signed char);
  37605. vector unsigned char vec_nor (vector unsigned char, vector unsigned char);
  37606. vector bool char vec_nor (vector bool char, vector bool char);
  37607. vector float vec_or (vector float, vector float);
  37608. vector float vec_or (vector float, vector bool int);
  37609. vector float vec_or (vector bool int, vector float);
  37610. vector bool int vec_or (vector bool int, vector bool int);
  37611. vector signed int vec_or (vector bool int, vector signed int);
  37612. vector signed int vec_or (vector signed int, vector bool int);
  37613. vector signed int vec_or (vector signed int, vector signed int);
  37614. vector unsigned int vec_or (vector bool int, vector unsigned int);
  37615. vector unsigned int vec_or (vector unsigned int, vector bool int);
  37616. vector unsigned int vec_or (vector unsigned int, vector unsigned int);
  37617. vector bool short vec_or (vector bool short, vector bool short);
  37618. vector signed short vec_or (vector bool short, vector signed short);
  37619. vector signed short vec_or (vector signed short, vector bool short);
  37620. vector signed short vec_or (vector signed short, vector signed short);
  37621. vector unsigned short vec_or (vector bool short, vector unsigned short);
  37622. vector unsigned short vec_or (vector unsigned short, vector bool short);
  37623. vector unsigned short vec_or (vector unsigned short, vector unsigned short);
  37624. vector signed char vec_or (vector bool char, vector signed char);
  37625. vector bool char vec_or (vector bool char, vector bool char);
  37626. vector signed char vec_or (vector signed char, vector bool char);
  37627. vector signed char vec_or (vector signed char, vector signed char);
  37628. vector unsigned char vec_or (vector bool char, vector unsigned char);
  37629. vector unsigned char vec_or (vector unsigned char, vector bool char);
  37630. vector unsigned char vec_or (vector unsigned char, vector unsigned char);
  37631. vector signed char vec_pack (vector signed short, vector signed short);
  37632. vector unsigned char vec_pack (vector unsigned short, vector unsigned short);
  37633. vector bool char vec_pack (vector bool short, vector bool short);
  37634. vector signed short vec_pack (vector signed int, vector signed int);
  37635. vector unsigned short vec_pack (vector unsigned int, vector unsigned int);
  37636. vector bool short vec_pack (vector bool int, vector bool int);
  37637. vector pixel vec_packpx (vector unsigned int, vector unsigned int);
  37638. vector unsigned char vec_packs (vector unsigned short, vector unsigned short);
  37639. vector signed char vec_packs (vector signed short, vector signed short);
  37640. vector unsigned short vec_packs (vector unsigned int, vector unsigned int);
  37641. vector signed short vec_packs (vector signed int, vector signed int);
  37642. vector unsigned char vec_packsu (vector unsigned short, vector unsigned short);
  37643. vector unsigned char vec_packsu (vector signed short, vector signed short);
  37644. vector unsigned short vec_packsu (vector unsigned int, vector unsigned int);
  37645. vector unsigned short vec_packsu (vector signed int, vector signed int);
  37646. vector float vec_perm (vector float, vector float, vector unsigned char);
  37647. vector signed int vec_perm (vector signed int, vector signed int, vector unsigned char);
  37648. vector unsigned int vec_perm (vector unsigned int, vector unsigned int,
  37649. vector unsigned char);
  37650. vector bool int vec_perm (vector bool int, vector bool int, vector unsigned char);
  37651. vector signed short vec_perm (vector signed short, vector signed short,
  37652. vector unsigned char);
  37653. vector unsigned short vec_perm (vector unsigned short, vector unsigned short,
  37654. vector unsigned char);
  37655. vector bool short vec_perm (vector bool short, vector bool short, vector unsigned char);
  37656. vector pixel vec_perm (vector pixel, vector pixel, vector unsigned char);
  37657. vector signed char vec_perm (vector signed char, vector signed char,
  37658. vector unsigned char);
  37659. vector unsigned char vec_perm (vector unsigned char, vector unsigned char,
  37660. vector unsigned char);
  37661. vector bool char vec_perm (vector bool char, vector bool char, vector unsigned char);
  37662. vector float vec_re (vector float);
  37663. vector bool char vec_reve (vector bool char);
  37664. vector signed char vec_reve (vector signed char);
  37665. vector unsigned char vec_reve (vector unsigned char);
  37666. vector bool int vec_reve (vector bool int);
  37667. vector signed int vec_reve (vector signed int);
  37668. vector unsigned int vec_reve (vector unsigned int);
  37669. vector bool short vec_reve (vector bool short);
  37670. vector signed short vec_reve (vector signed short);
  37671. vector unsigned short vec_reve (vector unsigned short);
  37672. vector signed char vec_rl (vector signed char, vector unsigned char);
  37673. vector unsigned char vec_rl (vector unsigned char, vector unsigned char);
  37674. vector signed short vec_rl (vector signed short, vector unsigned short);
  37675. vector unsigned short vec_rl (vector unsigned short, vector unsigned short);
  37676. vector signed int vec_rl (vector signed int, vector unsigned int);
  37677. vector unsigned int vec_rl (vector unsigned int, vector unsigned int);
  37678. vector float vec_round (vector float);
  37679. vector float vec_rsqrt (vector float);
  37680. vector float vec_rsqrte (vector float);
  37681. vector float vec_sel (vector float, vector float, vector bool int);
  37682. vector float vec_sel (vector float, vector float, vector unsigned int);
  37683. vector signed int vec_sel (vector signed int, vector signed int, vector bool int);
  37684. vector signed int vec_sel (vector signed int, vector signed int, vector unsigned int);
  37685. vector unsigned int vec_sel (vector unsigned int, vector unsigned int, vector bool int);
  37686. vector unsigned int vec_sel (vector unsigned int, vector unsigned int,
  37687. vector unsigned int);
  37688. vector bool int vec_sel (vector bool int, vector bool int, vector bool int);
  37689. vector bool int vec_sel (vector bool int, vector bool int, vector unsigned int);
  37690. vector signed short vec_sel (vector signed short, vector signed short,
  37691. vector bool short);
  37692. vector signed short vec_sel (vector signed short, vector signed short,
  37693. vector unsigned short);
  37694. vector unsigned short vec_sel (vector unsigned short, vector unsigned short,
  37695. vector bool short);
  37696. vector unsigned short vec_sel (vector unsigned short, vector unsigned short,
  37697. vector unsigned short);
  37698. vector bool short vec_sel (vector bool short, vector bool short, vector bool short);
  37699. vector bool short vec_sel (vector bool short, vector bool short, vector unsigned short);
  37700. vector signed char vec_sel (vector signed char, vector signed char, vector bool char);
  37701. vector signed char vec_sel (vector signed char, vector signed char,
  37702. vector unsigned char);
  37703. vector unsigned char vec_sel (vector unsigned char, vector unsigned char,
  37704. vector bool char);
  37705. vector unsigned char vec_sel (vector unsigned char, vector unsigned char,
  37706. vector unsigned char);
  37707. vector bool char vec_sel (vector bool char, vector bool char, vector bool char);
  37708. vector bool char vec_sel (vector bool char, vector bool char, vector unsigned char);
  37709. vector signed char vec_sl (vector signed char, vector unsigned char);
  37710. vector unsigned char vec_sl (vector unsigned char, vector unsigned char);
  37711. vector signed short vec_sl (vector signed short, vector unsigned short);
  37712. vector unsigned short vec_sl (vector unsigned short, vector unsigned short);
  37713. vector signed int vec_sl (vector signed int, vector unsigned int);
  37714. vector unsigned int vec_sl (vector unsigned int, vector unsigned int);
  37715. vector float vec_sld (vector float, vector float, const int);
  37716. vector signed int vec_sld (vector signed int, vector signed int, const int);
  37717. vector unsigned int vec_sld (vector unsigned int, vector unsigned int, const int);
  37718. vector bool int vec_sld (vector bool int, vector bool int, const int);
  37719. vector signed short vec_sld (vector signed short, vector signed short, const int);
  37720. vector unsigned short vec_sld (vector unsigned short, vector unsigned short, const int);
  37721. vector bool short vec_sld (vector bool short, vector bool short, const int);
  37722. vector pixel vec_sld (vector pixel, vector pixel, const int);
  37723. vector signed char vec_sld (vector signed char, vector signed char, const int);
  37724. vector unsigned char vec_sld (vector unsigned char, vector unsigned char, const int);
  37725. vector bool char vec_sld (vector bool char, vector bool char, const int);
  37726. vector signed int vec_sll (vector signed int, vector unsigned int);
  37727. vector signed int vec_sll (vector signed int, vector unsigned short);
  37728. vector signed int vec_sll (vector signed int, vector unsigned char);
  37729. vector unsigned int vec_sll (vector unsigned int, vector unsigned int);
  37730. vector unsigned int vec_sll (vector unsigned int, vector unsigned short);
  37731. vector unsigned int vec_sll (vector unsigned int, vector unsigned char);
  37732. vector bool int vec_sll (vector bool int, vector unsigned int);
  37733. vector bool int vec_sll (vector bool int, vector unsigned short);
  37734. vector bool int vec_sll (vector bool int, vector unsigned char);
  37735. vector signed short vec_sll (vector signed short, vector unsigned int);
  37736. vector signed short vec_sll (vector signed short, vector unsigned short);
  37737. vector signed short vec_sll (vector signed short, vector unsigned char);
  37738. vector unsigned short vec_sll (vector unsigned short, vector unsigned int);
  37739. vector unsigned short vec_sll (vector unsigned short, vector unsigned short);
  37740. vector unsigned short vec_sll (vector unsigned short, vector unsigned char);
  37741. vector bool short vec_sll (vector bool short, vector unsigned int);
  37742. vector bool short vec_sll (vector bool short, vector unsigned short);
  37743. vector bool short vec_sll (vector bool short, vector unsigned char);
  37744. vector pixel vec_sll (vector pixel, vector unsigned int);
  37745. vector pixel vec_sll (vector pixel, vector unsigned short);
  37746. vector pixel vec_sll (vector pixel, vector unsigned char);
  37747. vector signed char vec_sll (vector signed char, vector unsigned int);
  37748. vector signed char vec_sll (vector signed char, vector unsigned short);
  37749. vector signed char vec_sll (vector signed char, vector unsigned char);
  37750. vector unsigned char vec_sll (vector unsigned char, vector unsigned int);
  37751. vector unsigned char vec_sll (vector unsigned char, vector unsigned short);
  37752. vector unsigned char vec_sll (vector unsigned char, vector unsigned char);
  37753. vector bool char vec_sll (vector bool char, vector unsigned int);
  37754. vector bool char vec_sll (vector bool char, vector unsigned short);
  37755. vector bool char vec_sll (vector bool char, vector unsigned char);
  37756. vector float vec_slo (vector float, vector signed char);
  37757. vector float vec_slo (vector float, vector unsigned char);
  37758. vector signed int vec_slo (vector signed int, vector signed char);
  37759. vector signed int vec_slo (vector signed int, vector unsigned char);
  37760. vector unsigned int vec_slo (vector unsigned int, vector signed char);
  37761. vector unsigned int vec_slo (vector unsigned int, vector unsigned char);
  37762. vector signed short vec_slo (vector signed short, vector signed char);
  37763. vector signed short vec_slo (vector signed short, vector unsigned char);
  37764. vector unsigned short vec_slo (vector unsigned short, vector signed char);
  37765. vector unsigned short vec_slo (vector unsigned short, vector unsigned char);
  37766. vector pixel vec_slo (vector pixel, vector signed char);
  37767. vector pixel vec_slo (vector pixel, vector unsigned char);
  37768. vector signed char vec_slo (vector signed char, vector signed char);
  37769. vector signed char vec_slo (vector signed char, vector unsigned char);
  37770. vector unsigned char vec_slo (vector unsigned char, vector signed char);
  37771. vector unsigned char vec_slo (vector unsigned char, vector unsigned char);
  37772. vector signed char vec_splat (vector signed char, const int);
  37773. vector unsigned char vec_splat (vector unsigned char, const int);
  37774. vector bool char vec_splat (vector bool char, const int);
  37775. vector signed short vec_splat (vector signed short, const int);
  37776. vector unsigned short vec_splat (vector unsigned short, const int);
  37777. vector bool short vec_splat (vector bool short, const int);
  37778. vector pixel vec_splat (vector pixel, const int);
  37779. vector float vec_splat (vector float, const int);
  37780. vector signed int vec_splat (vector signed int, const int);
  37781. vector unsigned int vec_splat (vector unsigned int, const int);
  37782. vector bool int vec_splat (vector bool int, const int);
  37783. vector signed short vec_splat_s16 (const int);
  37784. vector signed int vec_splat_s32 (const int);
  37785. vector signed char vec_splat_s8 (const int);
  37786. vector unsigned short vec_splat_u16 (const int);
  37787. vector unsigned int vec_splat_u32 (const int);
  37788. vector unsigned char vec_splat_u8 (const int);
  37789. vector signed char vec_splats (signed char);
  37790. vector unsigned char vec_splats (unsigned char);
  37791. vector signed short vec_splats (signed short);
  37792. vector unsigned short vec_splats (unsigned short);
  37793. vector signed int vec_splats (signed int);
  37794. vector unsigned int vec_splats (unsigned int);
  37795. vector float vec_splats (float);
  37796. vector signed char vec_sr (vector signed char, vector unsigned char);
  37797. vector unsigned char vec_sr (vector unsigned char, vector unsigned char);
  37798. vector signed short vec_sr (vector signed short, vector unsigned short);
  37799. vector unsigned short vec_sr (vector unsigned short, vector unsigned short);
  37800. vector signed int vec_sr (vector signed int, vector unsigned int);
  37801. vector unsigned int vec_sr (vector unsigned int, vector unsigned int);
  37802. vector signed char vec_sra (vector signed char, vector unsigned char);
  37803. vector unsigned char vec_sra (vector unsigned char, vector unsigned char);
  37804. vector signed short vec_sra (vector signed short, vector unsigned short);
  37805. vector unsigned short vec_sra (vector unsigned short, vector unsigned short);
  37806. vector signed int vec_sra (vector signed int, vector unsigned int);
  37807. vector unsigned int vec_sra (vector unsigned int, vector unsigned int);
  37808. vector signed int vec_srl (vector signed int, vector unsigned int);
  37809. vector signed int vec_srl (vector signed int, vector unsigned short);
  37810. vector signed int vec_srl (vector signed int, vector unsigned char);
  37811. vector unsigned int vec_srl (vector unsigned int, vector unsigned int);
  37812. vector unsigned int vec_srl (vector unsigned int, vector unsigned short);
  37813. vector unsigned int vec_srl (vector unsigned int, vector unsigned char);
  37814. vector bool int vec_srl (vector bool int, vector unsigned int);
  37815. vector bool int vec_srl (vector bool int, vector unsigned short);
  37816. vector bool int vec_srl (vector bool int, vector unsigned char);
  37817. vector signed short vec_srl (vector signed short, vector unsigned int);
  37818. vector signed short vec_srl (vector signed short, vector unsigned short);
  37819. vector signed short vec_srl (vector signed short, vector unsigned char);
  37820. vector unsigned short vec_srl (vector unsigned short, vector unsigned int);
  37821. vector unsigned short vec_srl (vector unsigned short, vector unsigned short);
  37822. vector unsigned short vec_srl (vector unsigned short, vector unsigned char);
  37823. vector bool short vec_srl (vector bool short, vector unsigned int);
  37824. vector bool short vec_srl (vector bool short, vector unsigned short);
  37825. vector bool short vec_srl (vector bool short, vector unsigned char);
  37826. vector pixel vec_srl (vector pixel, vector unsigned int);
  37827. vector pixel vec_srl (vector pixel, vector unsigned short);
  37828. vector pixel vec_srl (vector pixel, vector unsigned char);
  37829. vector signed char vec_srl (vector signed char, vector unsigned int);
  37830. vector signed char vec_srl (vector signed char, vector unsigned short);
  37831. vector signed char vec_srl (vector signed char, vector unsigned char);
  37832. vector unsigned char vec_srl (vector unsigned char, vector unsigned int);
  37833. vector unsigned char vec_srl (vector unsigned char, vector unsigned short);
  37834. vector unsigned char vec_srl (vector unsigned char, vector unsigned char);
  37835. vector bool char vec_srl (vector bool char, vector unsigned int);
  37836. vector bool char vec_srl (vector bool char, vector unsigned short);
  37837. vector bool char vec_srl (vector bool char, vector unsigned char);
  37838. vector float vec_sro (vector float, vector signed char);
  37839. vector float vec_sro (vector float, vector unsigned char);
  37840. vector signed int vec_sro (vector signed int, vector signed char);
  37841. vector signed int vec_sro (vector signed int, vector unsigned char);
  37842. vector unsigned int vec_sro (vector unsigned int, vector signed char);
  37843. vector unsigned int vec_sro (vector unsigned int, vector unsigned char);
  37844. vector signed short vec_sro (vector signed short, vector signed char);
  37845. vector signed short vec_sro (vector signed short, vector unsigned char);
  37846. vector unsigned short vec_sro (vector unsigned short, vector signed char);
  37847. vector unsigned short vec_sro (vector unsigned short, vector unsigned char);
  37848. vector pixel vec_sro (vector pixel, vector signed char);
  37849. vector pixel vec_sro (vector pixel, vector unsigned char);
  37850. vector signed char vec_sro (vector signed char, vector signed char);
  37851. vector signed char vec_sro (vector signed char, vector unsigned char);
  37852. vector unsigned char vec_sro (vector unsigned char, vector signed char);
  37853. vector unsigned char vec_sro (vector unsigned char, vector unsigned char);
  37854. void vec_st (vector float, int, vector float *);
  37855. void vec_st (vector float, int, float *);
  37856. void vec_st (vector signed int, int, vector signed int *);
  37857. void vec_st (vector signed int, int, int *);
  37858. void vec_st (vector unsigned int, int, vector unsigned int *);
  37859. void vec_st (vector unsigned int, int, unsigned int *);
  37860. void vec_st (vector bool int, int, vector bool int *);
  37861. void vec_st (vector bool int, int, unsigned int *);
  37862. void vec_st (vector bool int, int, int *);
  37863. void vec_st (vector signed short, int, vector signed short *);
  37864. void vec_st (vector signed short, int, short *);
  37865. void vec_st (vector unsigned short, int, vector unsigned short *);
  37866. void vec_st (vector unsigned short, int, unsigned short *);
  37867. void vec_st (vector bool short, int, vector bool short *);
  37868. void vec_st (vector bool short, int, unsigned short *);
  37869. void vec_st (vector pixel, int, vector pixel *);
  37870. void vec_st (vector bool short, int, short *);
  37871. void vec_st (vector signed char, int, vector signed char *);
  37872. void vec_st (vector signed char, int, signed char *);
  37873. void vec_st (vector unsigned char, int, vector unsigned char *);
  37874. void vec_st (vector unsigned char, int, unsigned char *);
  37875. void vec_st (vector bool char, int, vector bool char *);
  37876. void vec_st (vector bool char, int, unsigned char *);
  37877. void vec_st (vector bool char, int, signed char *);
  37878. void vec_ste (vector signed char, int, signed char *);
  37879. void vec_ste (vector unsigned char, int, unsigned char *);
  37880. void vec_ste (vector bool char, int, signed char *);
  37881. void vec_ste (vector bool char, int, unsigned char *);
  37882. void vec_ste (vector signed short, int, short *);
  37883. void vec_ste (vector unsigned short, int, unsigned short *);
  37884. void vec_ste (vector bool short, int, short *);
  37885. void vec_ste (vector bool short, int, unsigned short *);
  37886. void vec_ste (vector pixel, int, short *);
  37887. void vec_ste (vector pixel, int, unsigned short *);
  37888. void vec_ste (vector float, int, float *);
  37889. void vec_ste (vector signed int, int, int *);
  37890. void vec_ste (vector unsigned int, int, unsigned int *);
  37891. void vec_ste (vector bool int, int, int *);
  37892. void vec_ste (vector bool int, int, unsigned int *);
  37893. void vec_stl (vector float, int, vector float *);
  37894. void vec_stl (vector float, int, float *);
  37895. void vec_stl (vector signed int, int, vector signed int *);
  37896. void vec_stl (vector signed int, int, int *);
  37897. void vec_stl (vector unsigned int, int, vector unsigned int *);
  37898. void vec_stl (vector unsigned int, int, unsigned int *);
  37899. void vec_stl (vector bool int, int, vector bool int *);
  37900. void vec_stl (vector bool int, int, unsigned int *);
  37901. void vec_stl (vector bool int, int, int *);
  37902. void vec_stl (vector signed short, int, vector signed short *);
  37903. void vec_stl (vector signed short, int, short *);
  37904. void vec_stl (vector unsigned short, int, vector unsigned short *);
  37905. void vec_stl (vector unsigned short, int, unsigned short *);
  37906. void vec_stl (vector bool short, int, vector bool short *);
  37907. void vec_stl (vector bool short, int, unsigned short *);
  37908. void vec_stl (vector bool short, int, short *);
  37909. void vec_stl (vector pixel, int, vector pixel *);
  37910. void vec_stl (vector signed char, int, vector signed char *);
  37911. void vec_stl (vector signed char, int, signed char *);
  37912. void vec_stl (vector unsigned char, int, vector unsigned char *);
  37913. void vec_stl (vector unsigned char, int, unsigned char *);
  37914. void vec_stl (vector bool char, int, vector bool char *);
  37915. void vec_stl (vector bool char, int, unsigned char *);
  37916. void vec_stl (vector bool char, int, signed char *);
  37917. void vec_stvebx (vector signed char, int, signed char *);
  37918. void vec_stvebx (vector unsigned char, int, unsigned char *);
  37919. void vec_stvebx (vector bool char, int, signed char *);
  37920. void vec_stvebx (vector bool char, int, unsigned char *);
  37921. void vec_stvehx (vector signed short, int, short *);
  37922. void vec_stvehx (vector unsigned short, int, unsigned short *);
  37923. void vec_stvehx (vector bool short, int, short *);
  37924. void vec_stvehx (vector bool short, int, unsigned short *);
  37925. void vec_stvewx (vector float, int, float *);
  37926. void vec_stvewx (vector signed int, int, int *);
  37927. void vec_stvewx (vector unsigned int, int, unsigned int *);
  37928. void vec_stvewx (vector bool int, int, int *);
  37929. void vec_stvewx (vector bool int, int, unsigned int *);
  37930. vector signed char vec_sub (vector bool char, vector signed char);
  37931. vector signed char vec_sub (vector signed char, vector bool char);
  37932. vector signed char vec_sub (vector signed char, vector signed char);
  37933. vector unsigned char vec_sub (vector bool char, vector unsigned char);
  37934. vector unsigned char vec_sub (vector unsigned char, vector bool char);
  37935. vector unsigned char vec_sub (vector unsigned char, vector unsigned char);
  37936. vector signed short vec_sub (vector bool short, vector signed short);
  37937. vector signed short vec_sub (vector signed short, vector bool short);
  37938. vector signed short vec_sub (vector signed short, vector signed short);
  37939. vector unsigned short vec_sub (vector bool short, vector unsigned short);
  37940. vector unsigned short vec_sub (vector unsigned short, vector bool short);
  37941. vector unsigned short vec_sub (vector unsigned short, vector unsigned short);
  37942. vector signed int vec_sub (vector bool int, vector signed int);
  37943. vector signed int vec_sub (vector signed int, vector bool int);
  37944. vector signed int vec_sub (vector signed int, vector signed int);
  37945. vector unsigned int vec_sub (vector bool int, vector unsigned int);
  37946. vector unsigned int vec_sub (vector unsigned int, vector bool int);
  37947. vector unsigned int vec_sub (vector unsigned int, vector unsigned int);
  37948. vector float vec_sub (vector float, vector float);
  37949. vector signed int vec_subc (vector signed int, vector signed int);
  37950. vector unsigned int vec_subc (vector unsigned int, vector unsigned int);
  37951. vector signed int vec_sube (vector signed int, vector signed int,
  37952. vector signed int);
  37953. vector unsigned int vec_sube (vector unsigned int, vector unsigned int,
  37954. vector unsigned int);
  37955. vector signed int vec_subec (vector signed int, vector signed int,
  37956. vector signed int);
  37957. vector unsigned int vec_subec (vector unsigned int, vector unsigned int,
  37958. vector unsigned int);
  37959. vector unsigned char vec_subs (vector bool char, vector unsigned char);
  37960. vector unsigned char vec_subs (vector unsigned char, vector bool char);
  37961. vector unsigned char vec_subs (vector unsigned char, vector unsigned char);
  37962. vector signed char vec_subs (vector bool char, vector signed char);
  37963. vector signed char vec_subs (vector signed char, vector bool char);
  37964. vector signed char vec_subs (vector signed char, vector signed char);
  37965. vector unsigned short vec_subs (vector bool short, vector unsigned short);
  37966. vector unsigned short vec_subs (vector unsigned short, vector bool short);
  37967. vector unsigned short vec_subs (vector unsigned short, vector unsigned short);
  37968. vector signed short vec_subs (vector bool short, vector signed short);
  37969. vector signed short vec_subs (vector signed short, vector bool short);
  37970. vector signed short vec_subs (vector signed short, vector signed short);
  37971. vector unsigned int vec_subs (vector bool int, vector unsigned int);
  37972. vector unsigned int vec_subs (vector unsigned int, vector bool int);
  37973. vector unsigned int vec_subs (vector unsigned int, vector unsigned int);
  37974. vector signed int vec_subs (vector bool int, vector signed int);
  37975. vector signed int vec_subs (vector signed int, vector bool int);
  37976. vector signed int vec_subs (vector signed int, vector signed int);
  37977. vector signed int vec_sum2s (vector signed int, vector signed int);
  37978. vector unsigned int vec_sum4s (vector unsigned char, vector unsigned int);
  37979. vector signed int vec_sum4s (vector signed char, vector signed int);
  37980. vector signed int vec_sum4s (vector signed short, vector signed int);
  37981. vector signed int vec_sums (vector signed int, vector signed int);
  37982. vector float vec_trunc (vector float);
  37983. vector signed short vec_unpackh (vector signed char);
  37984. vector bool short vec_unpackh (vector bool char);
  37985. vector signed int vec_unpackh (vector signed short);
  37986. vector bool int vec_unpackh (vector bool short);
  37987. vector unsigned int vec_unpackh (vector pixel);
  37988. vector signed short vec_unpackl (vector signed char);
  37989. vector bool short vec_unpackl (vector bool char);
  37990. vector unsigned int vec_unpackl (vector pixel);
  37991. vector signed int vec_unpackl (vector signed short);
  37992. vector bool int vec_unpackl (vector bool short);
  37993. vector float vec_vaddfp (vector float, vector float);
  37994. vector signed char vec_vaddsbs (vector bool char, vector signed char);
  37995. vector signed char vec_vaddsbs (vector signed char, vector bool char);
  37996. vector signed char vec_vaddsbs (vector signed char, vector signed char);
  37997. vector signed short vec_vaddshs (vector bool short, vector signed short);
  37998. vector signed short vec_vaddshs (vector signed short, vector bool short);
  37999. vector signed short vec_vaddshs (vector signed short, vector signed short);
  38000. vector signed int vec_vaddsws (vector bool int, vector signed int);
  38001. vector signed int vec_vaddsws (vector signed int, vector bool int);
  38002. vector signed int vec_vaddsws (vector signed int, vector signed int);
  38003. vector signed char vec_vaddubm (vector bool char, vector signed char);
  38004. vector signed char vec_vaddubm (vector signed char, vector bool char);
  38005. vector signed char vec_vaddubm (vector signed char, vector signed char);
  38006. vector unsigned char vec_vaddubm (vector bool char, vector unsigned char);
  38007. vector unsigned char vec_vaddubm (vector unsigned char, vector bool char);
  38008. vector unsigned char vec_vaddubm (vector unsigned char, vector unsigned char);
  38009. vector unsigned char vec_vaddubs (vector bool char, vector unsigned char);
  38010. vector unsigned char vec_vaddubs (vector unsigned char, vector bool char);
  38011. vector unsigned char vec_vaddubs (vector unsigned char, vector unsigned char);
  38012. vector signed short vec_vadduhm (vector bool short, vector signed short);
  38013. vector signed short vec_vadduhm (vector signed short, vector bool short);
  38014. vector signed short vec_vadduhm (vector signed short, vector signed short);
  38015. vector unsigned short vec_vadduhm (vector bool short, vector unsigned short);
  38016. vector unsigned short vec_vadduhm (vector unsigned short, vector bool short);
  38017. vector unsigned short vec_vadduhm (vector unsigned short, vector unsigned short);
  38018. vector unsigned short vec_vadduhs (vector bool short, vector unsigned short);
  38019. vector unsigned short vec_vadduhs (vector unsigned short, vector bool short);
  38020. vector unsigned short vec_vadduhs (vector unsigned short, vector unsigned short);
  38021. vector signed int vec_vadduwm (vector bool int, vector signed int);
  38022. vector signed int vec_vadduwm (vector signed int, vector bool int);
  38023. vector signed int vec_vadduwm (vector signed int, vector signed int);
  38024. vector unsigned int vec_vadduwm (vector bool int, vector unsigned int);
  38025. vector unsigned int vec_vadduwm (vector unsigned int, vector bool int);
  38026. vector unsigned int vec_vadduwm (vector unsigned int, vector unsigned int);
  38027. vector unsigned int vec_vadduws (vector bool int, vector unsigned int);
  38028. vector unsigned int vec_vadduws (vector unsigned int, vector bool int);
  38029. vector unsigned int vec_vadduws (vector unsigned int, vector unsigned int);
  38030. vector signed char vec_vavgsb (vector signed char, vector signed char);
  38031. vector signed short vec_vavgsh (vector signed short, vector signed short);
  38032. vector signed int vec_vavgsw (vector signed int, vector signed int);
  38033. vector unsigned char vec_vavgub (vector unsigned char, vector unsigned char);
  38034. vector unsigned short vec_vavguh (vector unsigned short, vector unsigned short);
  38035. vector unsigned int vec_vavguw (vector unsigned int, vector unsigned int);
  38036. vector float vec_vcfsx (vector signed int, const int);
  38037. vector float vec_vcfux (vector unsigned int, const int);
  38038. vector bool int vec_vcmpeqfp (vector float, vector float);
  38039. vector bool char vec_vcmpequb (vector signed char, vector signed char);
  38040. vector bool char vec_vcmpequb (vector unsigned char, vector unsigned char);
  38041. vector bool short vec_vcmpequh (vector signed short, vector signed short);
  38042. vector bool short vec_vcmpequh (vector unsigned short, vector unsigned short);
  38043. vector bool int vec_vcmpequw (vector signed int, vector signed int);
  38044. vector bool int vec_vcmpequw (vector unsigned int, vector unsigned int);
  38045. vector bool int vec_vcmpgtfp (vector float, vector float);
  38046. vector bool char vec_vcmpgtsb (vector signed char, vector signed char);
  38047. vector bool short vec_vcmpgtsh (vector signed short, vector signed short);
  38048. vector bool int vec_vcmpgtsw (vector signed int, vector signed int);
  38049. vector bool char vec_vcmpgtub (vector unsigned char, vector unsigned char);
  38050. vector bool short vec_vcmpgtuh (vector unsigned short, vector unsigned short);
  38051. vector bool int vec_vcmpgtuw (vector unsigned int, vector unsigned int);
  38052. vector float vec_vmaxfp (vector float, vector float);
  38053. vector signed char vec_vmaxsb (vector bool char, vector signed char);
  38054. vector signed char vec_vmaxsb (vector signed char, vector bool char);
  38055. vector signed char vec_vmaxsb (vector signed char, vector signed char);
  38056. vector signed short vec_vmaxsh (vector bool short, vector signed short);
  38057. vector signed short vec_vmaxsh (vector signed short, vector bool short);
  38058. vector signed short vec_vmaxsh (vector signed short, vector signed short);
  38059. vector signed int vec_vmaxsw (vector bool int, vector signed int);
  38060. vector signed int vec_vmaxsw (vector signed int, vector bool int);
  38061. vector signed int vec_vmaxsw (vector signed int, vector signed int);
  38062. vector unsigned char vec_vmaxub (vector bool char, vector unsigned char);
  38063. vector unsigned char vec_vmaxub (vector unsigned char, vector bool char);
  38064. vector unsigned char vec_vmaxub (vector unsigned char, vector unsigned char);
  38065. vector unsigned short vec_vmaxuh (vector bool short, vector unsigned short);
  38066. vector unsigned short vec_vmaxuh (vector unsigned short, vector bool short);
  38067. vector unsigned short vec_vmaxuh (vector unsigned short, vector unsigned short);
  38068. vector unsigned int vec_vmaxuw (vector bool int, vector unsigned int);
  38069. vector unsigned int vec_vmaxuw (vector unsigned int, vector bool int);
  38070. vector unsigned int vec_vmaxuw (vector unsigned int, vector unsigned int);
  38071. vector float vec_vminfp (vector float, vector float);
  38072. vector signed char vec_vminsb (vector bool char, vector signed char);
  38073. vector signed char vec_vminsb (vector signed char, vector bool char);
  38074. vector signed char vec_vminsb (vector signed char, vector signed char);
  38075. vector signed short vec_vminsh (vector bool short, vector signed short);
  38076. vector signed short vec_vminsh (vector signed short, vector bool short);
  38077. vector signed short vec_vminsh (vector signed short, vector signed short);
  38078. vector signed int vec_vminsw (vector bool int, vector signed int);
  38079. vector signed int vec_vminsw (vector signed int, vector bool int);
  38080. vector signed int vec_vminsw (vector signed int, vector signed int);
  38081. vector unsigned char vec_vminub (vector bool char, vector unsigned char);
  38082. vector unsigned char vec_vminub (vector unsigned char, vector bool char);
  38083. vector unsigned char vec_vminub (vector unsigned char, vector unsigned char);
  38084. vector unsigned short vec_vminuh (vector bool short, vector unsigned short);
  38085. vector unsigned short vec_vminuh (vector unsigned short, vector bool short);
  38086. vector unsigned short vec_vminuh (vector unsigned short, vector unsigned short);
  38087. vector unsigned int vec_vminuw (vector bool int, vector unsigned int);
  38088. vector unsigned int vec_vminuw (vector unsigned int, vector bool int);
  38089. vector unsigned int vec_vminuw (vector unsigned int, vector unsigned int);
  38090. vector bool char vec_vmrghb (vector bool char, vector bool char);
  38091. vector signed char vec_vmrghb (vector signed char, vector signed char);
  38092. vector unsigned char vec_vmrghb (vector unsigned char, vector unsigned char);
  38093. vector bool short vec_vmrghh (vector bool short, vector bool short);
  38094. vector signed short vec_vmrghh (vector signed short, vector signed short);
  38095. vector unsigned short vec_vmrghh (vector unsigned short, vector unsigned short);
  38096. vector pixel vec_vmrghh (vector pixel, vector pixel);
  38097. vector float vec_vmrghw (vector float, vector float);
  38098. vector bool int vec_vmrghw (vector bool int, vector bool int);
  38099. vector signed int vec_vmrghw (vector signed int, vector signed int);
  38100. vector unsigned int vec_vmrghw (vector unsigned int, vector unsigned int);
  38101. vector bool char vec_vmrglb (vector bool char, vector bool char);
  38102. vector signed char vec_vmrglb (vector signed char, vector signed char);
  38103. vector unsigned char vec_vmrglb (vector unsigned char, vector unsigned char);
  38104. vector bool short vec_vmrglh (vector bool short, vector bool short);
  38105. vector signed short vec_vmrglh (vector signed short, vector signed short);
  38106. vector unsigned short vec_vmrglh (vector unsigned short, vector unsigned short);
  38107. vector pixel vec_vmrglh (vector pixel, vector pixel);
  38108. vector float vec_vmrglw (vector float, vector float);
  38109. vector signed int vec_vmrglw (vector signed int, vector signed int);
  38110. vector unsigned int vec_vmrglw (vector unsigned int, vector unsigned int);
  38111. vector bool int vec_vmrglw (vector bool int, vector bool int);
  38112. vector signed int vec_vmsummbm (vector signed char, vector unsigned char,
  38113. vector signed int);
  38114. vector signed int vec_vmsumshm (vector signed short, vector signed short,
  38115. vector signed int);
  38116. vector signed int vec_vmsumshs (vector signed short, vector signed short,
  38117. vector signed int);
  38118. vector unsigned int vec_vmsumubm (vector unsigned char, vector unsigned char,
  38119. vector unsigned int);
  38120. vector unsigned int vec_vmsumuhm (vector unsigned short, vector unsigned short,
  38121. vector unsigned int);
  38122. vector unsigned int vec_vmsumuhs (vector unsigned short, vector unsigned short,
  38123. vector unsigned int);
  38124. vector signed short vec_vmulesb (vector signed char, vector signed char);
  38125. vector signed int vec_vmulesh (vector signed short, vector signed short);
  38126. vector unsigned short vec_vmuleub (vector unsigned char, vector unsigned char);
  38127. vector unsigned int vec_vmuleuh (vector unsigned short, vector unsigned short);
  38128. vector signed short vec_vmulosb (vector signed char, vector signed char);
  38129. vector signed int vec_vmulosh (vector signed short, vector signed short);
  38130. vector unsigned short vec_vmuloub (vector unsigned char, vector unsigned char);
  38131. vector unsigned int vec_vmulouh (vector unsigned short, vector unsigned short);
  38132. vector signed char vec_vpkshss (vector signed short, vector signed short);
  38133. vector unsigned char vec_vpkshus (vector signed short, vector signed short);
  38134. vector signed short vec_vpkswss (vector signed int, vector signed int);
  38135. vector unsigned short vec_vpkswus (vector signed int, vector signed int);
  38136. vector bool char vec_vpkuhum (vector bool short, vector bool short);
  38137. vector signed char vec_vpkuhum (vector signed short, vector signed short);
  38138. vector unsigned char vec_vpkuhum (vector unsigned short, vector unsigned short);
  38139. vector unsigned char vec_vpkuhus (vector unsigned short, vector unsigned short);
  38140. vector bool short vec_vpkuwum (vector bool int, vector bool int);
  38141. vector signed short vec_vpkuwum (vector signed int, vector signed int);
  38142. vector unsigned short vec_vpkuwum (vector unsigned int, vector unsigned int);
  38143. vector unsigned short vec_vpkuwus (vector unsigned int, vector unsigned int);
  38144. vector signed char vec_vrlb (vector signed char, vector unsigned char);
  38145. vector unsigned char vec_vrlb (vector unsigned char, vector unsigned char);
  38146. vector signed short vec_vrlh (vector signed short, vector unsigned short);
  38147. vector unsigned short vec_vrlh (vector unsigned short, vector unsigned short);
  38148. vector signed int vec_vrlw (vector signed int, vector unsigned int);
  38149. vector unsigned int vec_vrlw (vector unsigned int, vector unsigned int);
  38150. vector signed char vec_vslb (vector signed char, vector unsigned char);
  38151. vector unsigned char vec_vslb (vector unsigned char, vector unsigned char);
  38152. vector signed short vec_vslh (vector signed short, vector unsigned short);
  38153. vector unsigned short vec_vslh (vector unsigned short, vector unsigned short);
  38154. vector signed int vec_vslw (vector signed int, vector unsigned int);
  38155. vector unsigned int vec_vslw (vector unsigned int, vector unsigned int);
  38156. vector signed char vec_vspltb (vector signed char, const int);
  38157. vector unsigned char vec_vspltb (vector unsigned char, const int);
  38158. vector bool char vec_vspltb (vector bool char, const int);
  38159. vector bool short vec_vsplth (vector bool short, const int);
  38160. vector signed short vec_vsplth (vector signed short, const int);
  38161. vector unsigned short vec_vsplth (vector unsigned short, const int);
  38162. vector pixel vec_vsplth (vector pixel, const int);
  38163. vector float vec_vspltw (vector float, const int);
  38164. vector signed int vec_vspltw (vector signed int, const int);
  38165. vector unsigned int vec_vspltw (vector unsigned int, const int);
  38166. vector bool int vec_vspltw (vector bool int, const int);
  38167. vector signed char vec_vsrab (vector signed char, vector unsigned char);
  38168. vector unsigned char vec_vsrab (vector unsigned char, vector unsigned char);
  38169. vector signed short vec_vsrah (vector signed short, vector unsigned short);
  38170. vector unsigned short vec_vsrah (vector unsigned short, vector unsigned short);
  38171. vector signed int vec_vsraw (vector signed int, vector unsigned int);
  38172. vector unsigned int vec_vsraw (vector unsigned int, vector unsigned int);
  38173. vector signed char vec_vsrb (vector signed char, vector unsigned char);
  38174. vector unsigned char vec_vsrb (vector unsigned char, vector unsigned char);
  38175. vector signed short vec_vsrh (vector signed short, vector unsigned short);
  38176. vector unsigned short vec_vsrh (vector unsigned short, vector unsigned short);
  38177. vector signed int vec_vsrw (vector signed int, vector unsigned int);
  38178. vector unsigned int vec_vsrw (vector unsigned int, vector unsigned int);
  38179. vector float vec_vsubfp (vector float, vector float);
  38180. vector signed char vec_vsubsbs (vector bool char, vector signed char);
  38181. vector signed char vec_vsubsbs (vector signed char, vector bool char);
  38182. vector signed char vec_vsubsbs (vector signed char, vector signed char);
  38183. vector signed short vec_vsubshs (vector bool short, vector signed short);
  38184. vector signed short vec_vsubshs (vector signed short, vector bool short);
  38185. vector signed short vec_vsubshs (vector signed short, vector signed short);
  38186. vector signed int vec_vsubsws (vector bool int, vector signed int);
  38187. vector signed int vec_vsubsws (vector signed int, vector bool int);
  38188. vector signed int vec_vsubsws (vector signed int, vector signed int);
  38189. vector signed char vec_vsububm (vector bool char, vector signed char);
  38190. vector signed char vec_vsububm (vector signed char, vector bool char);
  38191. vector signed char vec_vsububm (vector signed char, vector signed char);
  38192. vector unsigned char vec_vsububm (vector bool char, vector unsigned char);
  38193. vector unsigned char vec_vsububm (vector unsigned char, vector bool char);
  38194. vector unsigned char vec_vsububm (vector unsigned char, vector unsigned char);
  38195. vector unsigned char vec_vsububs (vector bool char, vector unsigned char);
  38196. vector unsigned char vec_vsububs (vector unsigned char, vector bool char);
  38197. vector unsigned char vec_vsububs (vector unsigned char, vector unsigned char);
  38198. vector signed short vec_vsubuhm (vector bool short, vector signed short);
  38199. vector signed short vec_vsubuhm (vector signed short, vector bool short);
  38200. vector signed short vec_vsubuhm (vector signed short, vector signed short);
  38201. vector unsigned short vec_vsubuhm (vector bool short, vector unsigned short);
  38202. vector unsigned short vec_vsubuhm (vector unsigned short, vector bool short);
  38203. vector unsigned short vec_vsubuhm (vector unsigned short, vector unsigned short);
  38204. vector unsigned short vec_vsubuhs (vector bool short, vector unsigned short);
  38205. vector unsigned short vec_vsubuhs (vector unsigned short, vector bool short);
  38206. vector unsigned short vec_vsubuhs (vector unsigned short, vector unsigned short);
  38207. vector signed int vec_vsubuwm (vector bool int, vector signed int);
  38208. vector signed int vec_vsubuwm (vector signed int, vector bool int);
  38209. vector signed int vec_vsubuwm (vector signed int, vector signed int);
  38210. vector unsigned int vec_vsubuwm (vector bool int, vector unsigned int);
  38211. vector unsigned int vec_vsubuwm (vector unsigned int, vector bool int);
  38212. vector unsigned int vec_vsubuwm (vector unsigned int, vector unsigned int);
  38213. vector unsigned int vec_vsubuws (vector bool int, vector unsigned int);
  38214. vector unsigned int vec_vsubuws (vector unsigned int, vector bool int);
  38215. vector unsigned int vec_vsubuws (vector unsigned int, vector unsigned int);
  38216. vector signed int vec_vsum4sbs (vector signed char, vector signed int);
  38217. vector signed int vec_vsum4shs (vector signed short, vector signed int);
  38218. vector unsigned int vec_vsum4ubs (vector unsigned char, vector unsigned int);
  38219. vector unsigned int vec_vupkhpx (vector pixel);
  38220. vector bool short vec_vupkhsb (vector bool char);
  38221. vector signed short vec_vupkhsb (vector signed char);
  38222. vector bool int vec_vupkhsh (vector bool short);
  38223. vector signed int vec_vupkhsh (vector signed short);
  38224. vector unsigned int vec_vupklpx (vector pixel);
  38225. vector bool short vec_vupklsb (vector bool char);
  38226. vector signed short vec_vupklsb (vector signed char);
  38227. vector bool int vec_vupklsh (vector bool short);
  38228. vector signed int vec_vupklsh (vector signed short);
  38229. vector float vec_xor (vector float, vector float);
  38230. vector float vec_xor (vector float, vector bool int);
  38231. vector float vec_xor (vector bool int, vector float);
  38232. vector bool int vec_xor (vector bool int, vector bool int);
  38233. vector signed int vec_xor (vector bool int, vector signed int);
  38234. vector signed int vec_xor (vector signed int, vector bool int);
  38235. vector signed int vec_xor (vector signed int, vector signed int);
  38236. vector unsigned int vec_xor (vector bool int, vector unsigned int);
  38237. vector unsigned int vec_xor (vector unsigned int, vector bool int);
  38238. vector unsigned int vec_xor (vector unsigned int, vector unsigned int);
  38239. vector bool short vec_xor (vector bool short, vector bool short);
  38240. vector signed short vec_xor (vector bool short, vector signed short);
  38241. vector signed short vec_xor (vector signed short, vector bool short);
  38242. vector signed short vec_xor (vector signed short, vector signed short);
  38243. vector unsigned short vec_xor (vector bool short, vector unsigned short);
  38244. vector unsigned short vec_xor (vector unsigned short, vector bool short);
  38245. vector unsigned short vec_xor (vector unsigned short, vector unsigned short);
  38246. vector signed char vec_xor (vector bool char, vector signed char);
  38247. vector bool char vec_xor (vector bool char, vector bool char);
  38248. vector signed char vec_xor (vector signed char, vector bool char);
  38249. vector signed char vec_xor (vector signed char, vector signed char);
  38250. vector unsigned char vec_xor (vector bool char, vector unsigned char);
  38251. vector unsigned char vec_xor (vector unsigned char, vector bool char);
  38252. vector unsigned char vec_xor (vector unsigned char, vector unsigned char);
  38253. 
  38254. 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
  38255. 6.60.22.2 PowerPC AltiVec Built-in Functions Available on ISA 2.06
  38256. ..................................................................
  38257. The AltiVec built-in functions described in this section are available
  38258. on the PowerPC family of processors starting with ISA 2.06 or later.
  38259. These are normally enabled by adding '-mvsx' to the command line.
  38260. When '-mvsx' is used, the following additional vector types are
  38261. implemented.
  38262. vector unsigned __int128
  38263. vector signed __int128
  38264. vector unsigned long long int
  38265. vector signed long long int
  38266. vector double
  38267. The long long types are only implemented for 64-bit code generation.
  38268. vector bool long long vec_and (vector bool long long int, vector bool long long);
  38269. vector double vec_ctf (vector unsigned long, const int);
  38270. vector double vec_ctf (vector signed long, const int);
  38271. vector signed long vec_cts (vector double, const int);
  38272. vector unsigned long vec_ctu (vector double, const int);
  38273. void vec_dst (const unsigned long *, int, const int);
  38274. void vec_dst (const long *, int, const int);
  38275. void vec_dststt (const unsigned long *, int, const int);
  38276. void vec_dststt (const long *, int, const int);
  38277. void vec_dstt (const unsigned long *, int, const int);
  38278. void vec_dstt (const long *, int, const int);
  38279. vector unsigned char vec_lvsl (int, const unsigned long *);
  38280. vector unsigned char vec_lvsl (int, const long *);
  38281. vector unsigned char vec_lvsr (int, const unsigned long *);
  38282. vector unsigned char vec_lvsr (int, const long *);
  38283. vector double vec_mul (vector double, vector double);
  38284. vector long vec_mul (vector long, vector long);
  38285. vector unsigned long vec_mul (vector unsigned long, vector unsigned long);
  38286. vector unsigned long long vec_mule (vector unsigned int, vector unsigned int);
  38287. vector signed long long vec_mule (vector signed int, vector signed int);
  38288. vector unsigned long long vec_mulo (vector unsigned int, vector unsigned int);
  38289. vector signed long long vec_mulo (vector signed int, vector signed int);
  38290. vector double vec_nabs (vector double);
  38291. vector bool long long vec_reve (vector bool long long);
  38292. vector signed long long vec_reve (vector signed long long);
  38293. vector unsigned long long vec_reve (vector unsigned long long);
  38294. vector double vec_sld (vector double, vector double, const int);
  38295. vector bool long long int vec_sld (vector bool long long int,
  38296. vector bool long long int, const int);
  38297. vector long long int vec_sld (vector long long int, vector long long int, const int);
  38298. vector unsigned long long int vec_sld (vector unsigned long long int,
  38299. vector unsigned long long int, const int);
  38300. vector long long int vec_sll (vector long long int, vector unsigned char);
  38301. vector unsigned long long int vec_sll (vector unsigned long long int,
  38302. vector unsigned char);
  38303. vector signed long long vec_slo (vector signed long long, vector signed char);
  38304. vector signed long long vec_slo (vector signed long long, vector unsigned char);
  38305. vector unsigned long long vec_slo (vector unsigned long long, vector signed char);
  38306. vector unsigned long long vec_slo (vector unsigned long long, vector unsigned char);
  38307. vector signed long vec_splat (vector signed long, const int);
  38308. vector unsigned long vec_splat (vector unsigned long, const int);
  38309. vector long long int vec_srl (vector long long int, vector unsigned char);
  38310. vector unsigned long long int vec_srl (vector unsigned long long int,
  38311. vector unsigned char);
  38312. vector long long int vec_sro (vector long long int, vector char);
  38313. vector long long int vec_sro (vector long long int, vector unsigned char);
  38314. vector unsigned long long int vec_sro (vector unsigned long long int, vector char);
  38315. vector unsigned long long int vec_sro (vector unsigned long long int,
  38316. vector unsigned char);
  38317. vector signed __int128 vec_subc (vector signed __int128, vector signed __int128);
  38318. vector unsigned __int128 vec_subc (vector unsigned __int128, vector unsigned __int128);
  38319. vector signed __int128 vec_sube (vector signed __int128, vector signed __int128,
  38320. vector signed __int128);
  38321. vector unsigned __int128 vec_sube (vector unsigned __int128, vector unsigned __int128,
  38322. vector unsigned __int128);
  38323. vector signed __int128 vec_subec (vector signed __int128, vector signed __int128,
  38324. vector signed __int128);
  38325. vector unsigned __int128 vec_subec (vector unsigned __int128, vector unsigned __int128,
  38326. vector unsigned __int128);
  38327. vector double vec_unpackh (vector float);
  38328. vector double vec_unpackl (vector float);
  38329. vector double vec_doublee (vector float);
  38330. vector double vec_doublee (vector signed int);
  38331. vector double vec_doublee (vector unsigned int);
  38332. vector double vec_doubleo (vector float);
  38333. vector double vec_doubleo (vector signed int);
  38334. vector double vec_doubleo (vector unsigned int);
  38335. vector double vec_doubleh (vector float);
  38336. vector double vec_doubleh (vector signed int);
  38337. vector double vec_doubleh (vector unsigned int);
  38338. vector double vec_doublel (vector float);
  38339. vector double vec_doublel (vector signed int);
  38340. vector double vec_doublel (vector unsigned int);
  38341. vector float vec_float (vector signed int);
  38342. vector float vec_float (vector unsigned int);
  38343. vector float vec_float2 (vector signed long long, vector signed long long);
  38344. vector float vec_float2 (vector unsigned long long, vector signed long long);
  38345. vector float vec_floate (vector double);
  38346. vector float vec_floate (vector signed long long);
  38347. vector float vec_floate (vector unsigned long long);
  38348. vector float vec_floato (vector double);
  38349. vector float vec_floato (vector signed long long);
  38350. vector float vec_floato (vector unsigned long long);
  38351. vector signed long long vec_signed (vector double);
  38352. vector signed int vec_signed (vector float);
  38353. vector signed int vec_signede (vector double);
  38354. vector signed int vec_signedo (vector double);
  38355. vector signed char vec_sldw (vector signed char, vector signed char, const int);
  38356. vector unsigned char vec_sldw (vector unsigned char, vector unsigned char, const int);
  38357. vector signed short vec_sldw (vector signed short, vector signed short, const int);
  38358. vector unsigned short vec_sldw (vector unsigned short,
  38359. vector unsigned short, const int);
  38360. vector signed int vec_sldw (vector signed int, vector signed int, const int);
  38361. vector unsigned int vec_sldw (vector unsigned int, vector unsigned int, const int);
  38362. vector signed long long vec_sldw (vector signed long long,
  38363. vector signed long long, const int);
  38364. vector unsigned long long vec_sldw (vector unsigned long long,
  38365. vector unsigned long long, const int);
  38366. vector signed long long vec_unsigned (vector double);
  38367. vector signed int vec_unsigned (vector float);
  38368. vector signed int vec_unsignede (vector double);
  38369. vector signed int vec_unsignedo (vector double);
  38370. vector double vec_abs (vector double);
  38371. vector double vec_add (vector double, vector double);
  38372. vector double vec_and (vector double, vector double);
  38373. vector double vec_and (vector double, vector bool long);
  38374. vector double vec_and (vector bool long, vector double);
  38375. vector long vec_and (vector long, vector long);
  38376. vector long vec_and (vector long, vector bool long);
  38377. vector long vec_and (vector bool long, vector long);
  38378. vector unsigned long vec_and (vector unsigned long, vector unsigned long);
  38379. vector unsigned long vec_and (vector unsigned long, vector bool long);
  38380. vector unsigned long vec_and (vector bool long, vector unsigned long);
  38381. vector double vec_andc (vector double, vector double);
  38382. vector double vec_andc (vector double, vector bool long);
  38383. vector double vec_andc (vector bool long, vector double);
  38384. vector long vec_andc (vector long, vector long);
  38385. vector long vec_andc (vector long, vector bool long);
  38386. vector long vec_andc (vector bool long, vector long);
  38387. vector unsigned long vec_andc (vector unsigned long, vector unsigned long);
  38388. vector unsigned long vec_andc (vector unsigned long, vector bool long);
  38389. vector unsigned long vec_andc (vector bool long, vector unsigned long);
  38390. vector double vec_ceil (vector double);
  38391. vector bool long vec_cmpeq (vector double, vector double);
  38392. vector bool long vec_cmpge (vector double, vector double);
  38393. vector bool long vec_cmpgt (vector double, vector double);
  38394. vector bool long vec_cmple (vector double, vector double);
  38395. vector bool long vec_cmplt (vector double, vector double);
  38396. vector double vec_cpsgn (vector double, vector double);
  38397. vector float vec_div (vector float, vector float);
  38398. vector double vec_div (vector double, vector double);
  38399. vector long vec_div (vector long, vector long);
  38400. vector unsigned long vec_div (vector unsigned long, vector unsigned long);
  38401. vector double vec_floor (vector double);
  38402. vector signed long long vec_ld (int, const vector signed long long *);
  38403. vector signed long long vec_ld (int, const signed long long *);
  38404. vector unsigned long long vec_ld (int, const vector unsigned long long *);
  38405. vector unsigned long long vec_ld (int, const unsigned long long *);
  38406. vector __int128 vec_ld (int, const vector __int128 *);
  38407. vector unsigned __int128 vec_ld (int, const vector unsigned __int128 *);
  38408. vector __int128 vec_ld (int, const __int128 *);
  38409. vector unsigned __int128 vec_ld (int, const unsigned __int128 *);
  38410. vector double vec_ld (int, const vector double *);
  38411. vector double vec_ld (int, const double *);
  38412. vector double vec_ldl (int, const vector double *);
  38413. vector double vec_ldl (int, const double *);
  38414. vector unsigned char vec_lvsl (int, const double *);
  38415. vector unsigned char vec_lvsr (int, const double *);
  38416. vector double vec_madd (vector double, vector double, vector double);
  38417. vector double vec_max (vector double, vector double);
  38418. vector signed long vec_mergeh (vector signed long, vector signed long);
  38419. vector signed long vec_mergeh (vector signed long, vector bool long);
  38420. vector signed long vec_mergeh (vector bool long, vector signed long);
  38421. vector unsigned long vec_mergeh (vector unsigned long, vector unsigned long);
  38422. vector unsigned long vec_mergeh (vector unsigned long, vector bool long);
  38423. vector unsigned long vec_mergeh (vector bool long, vector unsigned long);
  38424. vector signed long vec_mergel (vector signed long, vector signed long);
  38425. vector signed long vec_mergel (vector signed long, vector bool long);
  38426. vector signed long vec_mergel (vector bool long, vector signed long);
  38427. vector unsigned long vec_mergel (vector unsigned long, vector unsigned long);
  38428. vector unsigned long vec_mergel (vector unsigned long, vector bool long);
  38429. vector unsigned long vec_mergel (vector bool long, vector unsigned long);
  38430. vector double vec_min (vector double, vector double);
  38431. vector float vec_msub (vector float, vector float, vector float);
  38432. vector double vec_msub (vector double, vector double, vector double);
  38433. vector float vec_nearbyint (vector float);
  38434. vector double vec_nearbyint (vector double);
  38435. vector float vec_nmadd (vector float, vector float, vector float);
  38436. vector double vec_nmadd (vector double, vector double, vector double);
  38437. vector double vec_nmsub (vector double, vector double, vector double);
  38438. vector double vec_nor (vector double, vector double);
  38439. vector long vec_nor (vector long, vector long);
  38440. vector long vec_nor (vector long, vector bool long);
  38441. vector long vec_nor (vector bool long, vector long);
  38442. vector unsigned long vec_nor (vector unsigned long, vector unsigned long);
  38443. vector unsigned long vec_nor (vector unsigned long, vector bool long);
  38444. vector unsigned long vec_nor (vector bool long, vector unsigned long);
  38445. vector double vec_or (vector double, vector double);
  38446. vector double vec_or (vector double, vector bool long);
  38447. vector double vec_or (vector bool long, vector double);
  38448. vector long vec_or (vector long, vector long);
  38449. vector long vec_or (vector long, vector bool long);
  38450. vector long vec_or (vector bool long, vector long);
  38451. vector unsigned long vec_or (vector unsigned long, vector unsigned long);
  38452. vector unsigned long vec_or (vector unsigned long, vector bool long);
  38453. vector unsigned long vec_or (vector bool long, vector unsigned long);
  38454. vector double vec_perm (vector double, vector double, vector unsigned char);
  38455. vector long vec_perm (vector long, vector long, vector unsigned char);
  38456. vector unsigned long vec_perm (vector unsigned long, vector unsigned long,
  38457. vector unsigned char);
  38458. vector bool char vec_permxor (vector bool char, vector bool char,
  38459. vector bool char);
  38460. vector unsigned char vec_permxor (vector signed char, vector signed char,
  38461. vector signed char);
  38462. vector unsigned char vec_permxor (vector unsigned char, vector unsigned char,
  38463. vector unsigned char);
  38464. vector double vec_rint (vector double);
  38465. vector double vec_recip (vector double, vector double);
  38466. vector double vec_rsqrt (vector double);
  38467. vector double vec_rsqrte (vector double);
  38468. vector double vec_sel (vector double, vector double, vector bool long);
  38469. vector double vec_sel (vector double, vector double, vector unsigned long);
  38470. vector long vec_sel (vector long, vector long, vector long);
  38471. vector long vec_sel (vector long, vector long, vector unsigned long);
  38472. vector long vec_sel (vector long, vector long, vector bool long);
  38473. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  38474. vector long);
  38475. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  38476. vector unsigned long);
  38477. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  38478. vector bool long);
  38479. vector double vec_splats (double);
  38480. vector signed long vec_splats (signed long);
  38481. vector unsigned long vec_splats (unsigned long);
  38482. vector float vec_sqrt (vector float);
  38483. vector double vec_sqrt (vector double);
  38484. void vec_st (vector signed long long, int, vector signed long long *);
  38485. void vec_st (vector signed long long, int, signed long long *);
  38486. void vec_st (vector unsigned long long, int, vector unsigned long long *);
  38487. void vec_st (vector unsigned long long, int, unsigned long long *);
  38488. void vec_st (vector bool long long, int, vector bool long long *);
  38489. void vec_st (vector bool long long, int, signed long long *);
  38490. void vec_st (vector bool long long, int, unsigned long long *);
  38491. void vec_st (vector double, int, vector double *);
  38492. void vec_st (vector double, int, double *);
  38493. vector double vec_sub (vector double, vector double);
  38494. vector double vec_trunc (vector double);
  38495. vector double vec_xl (int, vector double *);
  38496. vector double vec_xl (int, double *);
  38497. vector long long vec_xl (int, vector long long *);
  38498. vector long long vec_xl (int, long long *);
  38499. vector unsigned long long vec_xl (int, vector unsigned long long *);
  38500. vector unsigned long long vec_xl (int, unsigned long long *);
  38501. vector float vec_xl (int, vector float *);
  38502. vector float vec_xl (int, float *);
  38503. vector int vec_xl (int, vector int *);
  38504. vector int vec_xl (int, int *);
  38505. vector unsigned int vec_xl (int, vector unsigned int *);
  38506. vector unsigned int vec_xl (int, unsigned int *);
  38507. vector double vec_xor (vector double, vector double);
  38508. vector double vec_xor (vector double, vector bool long);
  38509. vector double vec_xor (vector bool long, vector double);
  38510. vector long vec_xor (vector long, vector long);
  38511. vector long vec_xor (vector long, vector bool long);
  38512. vector long vec_xor (vector bool long, vector long);
  38513. vector unsigned long vec_xor (vector unsigned long, vector unsigned long);
  38514. vector unsigned long vec_xor (vector unsigned long, vector bool long);
  38515. vector unsigned long vec_xor (vector bool long, vector unsigned long);
  38516. void vec_xst (vector double, int, vector double *);
  38517. void vec_xst (vector double, int, double *);
  38518. void vec_xst (vector long long, int, vector long long *);
  38519. void vec_xst (vector long long, int, long long *);
  38520. void vec_xst (vector unsigned long long, int, vector unsigned long long *);
  38521. void vec_xst (vector unsigned long long, int, unsigned long long *);
  38522. void vec_xst (vector float, int, vector float *);
  38523. void vec_xst (vector float, int, float *);
  38524. void vec_xst (vector int, int, vector int *);
  38525. void vec_xst (vector int, int, int *);
  38526. void vec_xst (vector unsigned int, int, vector unsigned int *);
  38527. void vec_xst (vector unsigned int, int, unsigned int *);
  38528. int vec_all_eq (vector double, vector double);
  38529. int vec_all_ge (vector double, vector double);
  38530. int vec_all_gt (vector double, vector double);
  38531. int vec_all_le (vector double, vector double);
  38532. int vec_all_lt (vector double, vector double);
  38533. int vec_all_nan (vector double);
  38534. int vec_all_ne (vector double, vector double);
  38535. int vec_all_nge (vector double, vector double);
  38536. int vec_all_ngt (vector double, vector double);
  38537. int vec_all_nle (vector double, vector double);
  38538. int vec_all_nlt (vector double, vector double);
  38539. int vec_all_numeric (vector double);
  38540. int vec_any_eq (vector double, vector double);
  38541. int vec_any_ge (vector double, vector double);
  38542. int vec_any_gt (vector double, vector double);
  38543. int vec_any_le (vector double, vector double);
  38544. int vec_any_lt (vector double, vector double);
  38545. int vec_any_nan (vector double);
  38546. int vec_any_ne (vector double, vector double);
  38547. int vec_any_nge (vector double, vector double);
  38548. int vec_any_ngt (vector double, vector double);
  38549. int vec_any_nle (vector double, vector double);
  38550. int vec_any_nlt (vector double, vector double);
  38551. int vec_any_numeric (vector double);
  38552. vector double vec_vsx_ld (int, const vector double *);
  38553. vector double vec_vsx_ld (int, const double *);
  38554. vector float vec_vsx_ld (int, const vector float *);
  38555. vector float vec_vsx_ld (int, const float *);
  38556. vector bool int vec_vsx_ld (int, const vector bool int *);
  38557. vector signed int vec_vsx_ld (int, const vector signed int *);
  38558. vector signed int vec_vsx_ld (int, const int *);
  38559. vector signed int vec_vsx_ld (int, const long *);
  38560. vector unsigned int vec_vsx_ld (int, const vector unsigned int *);
  38561. vector unsigned int vec_vsx_ld (int, const unsigned int *);
  38562. vector unsigned int vec_vsx_ld (int, const unsigned long *);
  38563. vector bool short vec_vsx_ld (int, const vector bool short *);
  38564. vector pixel vec_vsx_ld (int, const vector pixel *);
  38565. vector signed short vec_vsx_ld (int, const vector signed short *);
  38566. vector signed short vec_vsx_ld (int, const short *);
  38567. vector unsigned short vec_vsx_ld (int, const vector unsigned short *);
  38568. vector unsigned short vec_vsx_ld (int, const unsigned short *);
  38569. vector bool char vec_vsx_ld (int, const vector bool char *);
  38570. vector signed char vec_vsx_ld (int, const vector signed char *);
  38571. vector signed char vec_vsx_ld (int, const signed char *);
  38572. vector unsigned char vec_vsx_ld (int, const vector unsigned char *);
  38573. vector unsigned char vec_vsx_ld (int, const unsigned char *);
  38574. void vec_vsx_st (vector double, int, vector double *);
  38575. void vec_vsx_st (vector double, int, double *);
  38576. void vec_vsx_st (vector float, int, vector float *);
  38577. void vec_vsx_st (vector float, int, float *);
  38578. void vec_vsx_st (vector signed int, int, vector signed int *);
  38579. void vec_vsx_st (vector signed int, int, int *);
  38580. void vec_vsx_st (vector unsigned int, int, vector unsigned int *);
  38581. void vec_vsx_st (vector unsigned int, int, unsigned int *);
  38582. void vec_vsx_st (vector bool int, int, vector bool int *);
  38583. void vec_vsx_st (vector bool int, int, unsigned int *);
  38584. void vec_vsx_st (vector bool int, int, int *);
  38585. void vec_vsx_st (vector signed short, int, vector signed short *);
  38586. void vec_vsx_st (vector signed short, int, short *);
  38587. void vec_vsx_st (vector unsigned short, int, vector unsigned short *);
  38588. void vec_vsx_st (vector unsigned short, int, unsigned short *);
  38589. void vec_vsx_st (vector bool short, int, vector bool short *);
  38590. void vec_vsx_st (vector bool short, int, unsigned short *);
  38591. void vec_vsx_st (vector pixel, int, vector pixel *);
  38592. void vec_vsx_st (vector pixel, int, unsigned short *);
  38593. void vec_vsx_st (vector pixel, int, short *);
  38594. void vec_vsx_st (vector bool short, int, short *);
  38595. void vec_vsx_st (vector signed char, int, vector signed char *);
  38596. void vec_vsx_st (vector signed char, int, signed char *);
  38597. void vec_vsx_st (vector unsigned char, int, vector unsigned char *);
  38598. void vec_vsx_st (vector unsigned char, int, unsigned char *);
  38599. void vec_vsx_st (vector bool char, int, vector bool char *);
  38600. void vec_vsx_st (vector bool char, int, unsigned char *);
  38601. void vec_vsx_st (vector bool char, int, signed char *);
  38602. vector double vec_xxpermdi (vector double, vector double, const int);
  38603. vector float vec_xxpermdi (vector float, vector float, const int);
  38604. vector long long vec_xxpermdi (vector long long, vector long long, const int);
  38605. vector unsigned long long vec_xxpermdi (vector unsigned long long,
  38606. vector unsigned long long, const int);
  38607. vector int vec_xxpermdi (vector int, vector int, const int);
  38608. vector unsigned int vec_xxpermdi (vector unsigned int,
  38609. vector unsigned int, const int);
  38610. vector short vec_xxpermdi (vector short, vector short, const int);
  38611. vector unsigned short vec_xxpermdi (vector unsigned short,
  38612. vector unsigned short, const int);
  38613. vector signed char vec_xxpermdi (vector signed char, vector signed char,
  38614. const int);
  38615. vector unsigned char vec_xxpermdi (vector unsigned char,
  38616. vector unsigned char, const int);
  38617. vector double vec_xxsldi (vector double, vector double, int);
  38618. vector float vec_xxsldi (vector float, vector float, int);
  38619. vector long long vec_xxsldi (vector long long, vector long long, int);
  38620. vector unsigned long long vec_xxsldi (vector unsigned long long,
  38621. vector unsigned long long, int);
  38622. vector int vec_xxsldi (vector int, vector int, int);
  38623. vector unsigned int vec_xxsldi (vector unsigned int, vector unsigned int, int);
  38624. vector short vec_xxsldi (vector short, vector short, int);
  38625. vector unsigned short vec_xxsldi (vector unsigned short,
  38626. vector unsigned short, int);
  38627. vector signed char vec_xxsldi (vector signed char, vector signed char, int);
  38628. vector unsigned char vec_xxsldi (vector unsigned char,
  38629. vector unsigned char, int);
  38630. Note that the 'vec_ld' and 'vec_st' built-in functions always generate
  38631. the AltiVec 'LVX' and 'STVX' instructions even if the VSX instruction
  38632. set is available. The 'vec_vsx_ld' and 'vec_vsx_st' built-in functions
  38633. always generate the VSX 'LXVD2X', 'LXVW4X', 'STXVD2X', and 'STXVW4X'
  38634. instructions.
  38635. 
  38636. 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
  38637. 6.60.22.3 PowerPC AltiVec Built-in Functions Available on ISA 2.07
  38638. ..................................................................
  38639. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  38640. instruction set are available, the following additional functions are
  38641. available for both 32-bit and 64-bit targets. For 64-bit targets, you
  38642. can use VECTOR LONG instead of VECTOR LONG LONG, VECTOR BOOL LONG
  38643. instead of VECTOR BOOL LONG LONG, and VECTOR UNSIGNED LONG instead of
  38644. VECTOR UNSIGNED LONG LONG.
  38645. vector signed char vec_neg (vector signed char);
  38646. vector signed short vec_neg (vector signed short);
  38647. vector signed int vec_neg (vector signed int);
  38648. vector signed long long vec_neg (vector signed long long);
  38649. vector float char vec_neg (vector float);
  38650. vector double vec_neg (vector double);
  38651. vector signed int vec_signed2 (vector double, vector double);
  38652. vector signed int vec_unsigned2 (vector double, vector double);
  38653. vector long long vec_abs (vector long long);
  38654. vector long long vec_add (vector long long, vector long long);
  38655. vector unsigned long long vec_add (vector unsigned long long,
  38656. vector unsigned long long);
  38657. int vec_all_eq (vector long long, vector long long);
  38658. int vec_all_eq (vector unsigned long long, vector unsigned long long);
  38659. int vec_all_ge (vector long long, vector long long);
  38660. int vec_all_ge (vector unsigned long long, vector unsigned long long);
  38661. int vec_all_gt (vector long long, vector long long);
  38662. int vec_all_gt (vector unsigned long long, vector unsigned long long);
  38663. int vec_all_le (vector long long, vector long long);
  38664. int vec_all_le (vector unsigned long long, vector unsigned long long);
  38665. int vec_all_lt (vector long long, vector long long);
  38666. int vec_all_lt (vector unsigned long long, vector unsigned long long);
  38667. int vec_all_ne (vector long long, vector long long);
  38668. int vec_all_ne (vector unsigned long long, vector unsigned long long);
  38669. int vec_any_eq (vector long long, vector long long);
  38670. int vec_any_eq (vector unsigned long long, vector unsigned long long);
  38671. int vec_any_ge (vector long long, vector long long);
  38672. int vec_any_ge (vector unsigned long long, vector unsigned long long);
  38673. int vec_any_gt (vector long long, vector long long);
  38674. int vec_any_gt (vector unsigned long long, vector unsigned long long);
  38675. int vec_any_le (vector long long, vector long long);
  38676. int vec_any_le (vector unsigned long long, vector unsigned long long);
  38677. int vec_any_lt (vector long long, vector long long);
  38678. int vec_any_lt (vector unsigned long long, vector unsigned long long);
  38679. int vec_any_ne (vector long long, vector long long);
  38680. int vec_any_ne (vector unsigned long long, vector unsigned long long);
  38681. vector bool long long vec_cmpeq (vector bool long long, vector bool long long);
  38682. vector long long vec_eqv (vector long long, vector long long);
  38683. vector long long vec_eqv (vector bool long long, vector long long);
  38684. vector long long vec_eqv (vector long long, vector bool long long);
  38685. vector unsigned long long vec_eqv (vector unsigned long long, vector unsigned long long);
  38686. vector unsigned long long vec_eqv (vector bool long long, vector unsigned long long);
  38687. vector unsigned long long vec_eqv (vector unsigned long long,
  38688. vector bool long long);
  38689. vector int vec_eqv (vector int, vector int);
  38690. vector int vec_eqv (vector bool int, vector int);
  38691. vector int vec_eqv (vector int, vector bool int);
  38692. vector unsigned int vec_eqv (vector unsigned int, vector unsigned int);
  38693. vector unsigned int vec_eqv (vector bool unsigned int, vector unsigned int);
  38694. vector unsigned int vec_eqv (vector unsigned int, vector bool unsigned int);
  38695. vector short vec_eqv (vector short, vector short);
  38696. vector short vec_eqv (vector bool short, vector short);
  38697. vector short vec_eqv (vector short, vector bool short);
  38698. vector unsigned short vec_eqv (vector unsigned short, vector unsigned short);
  38699. vector unsigned short vec_eqv (vector bool unsigned short, vector unsigned short);
  38700. vector unsigned short vec_eqv (vector unsigned short, vector bool unsigned short);
  38701. vector signed char vec_eqv (vector signed char, vector signed char);
  38702. vector signed char vec_eqv (vector bool signed char, vector signed char);
  38703. vector signed char vec_eqv (vector signed char, vector bool signed char);
  38704. vector unsigned char vec_eqv (vector unsigned char, vector unsigned char);
  38705. vector unsigned char vec_eqv (vector bool unsigned char, vector unsigned char);
  38706. vector unsigned char vec_eqv (vector unsigned char, vector bool unsigned char);
  38707. vector long long vec_max (vector long long, vector long long);
  38708. vector unsigned long long vec_max (vector unsigned long long,
  38709. vector unsigned long long);
  38710. vector signed int vec_mergee (vector signed int, vector signed int);
  38711. vector unsigned int vec_mergee (vector unsigned int, vector unsigned int);
  38712. vector bool int vec_mergee (vector bool int, vector bool int);
  38713. vector signed int vec_mergeo (vector signed int, vector signed int);
  38714. vector unsigned int vec_mergeo (vector unsigned int, vector unsigned int);
  38715. vector bool int vec_mergeo (vector bool int, vector bool int);
  38716. vector long long vec_min (vector long long, vector long long);
  38717. vector unsigned long long vec_min (vector unsigned long long,
  38718. vector unsigned long long);
  38719. vector signed long long vec_nabs (vector signed long long);
  38720. vector long long vec_nand (vector long long, vector long long);
  38721. vector long long vec_nand (vector bool long long, vector long long);
  38722. vector long long vec_nand (vector long long, vector bool long long);
  38723. vector unsigned long long vec_nand (vector unsigned long long,
  38724. vector unsigned long long);
  38725. vector unsigned long long vec_nand (vector bool long long, vector unsigned long long);
  38726. vector unsigned long long vec_nand (vector unsigned long long, vector bool long long);
  38727. vector int vec_nand (vector int, vector int);
  38728. vector int vec_nand (vector bool int, vector int);
  38729. vector int vec_nand (vector int, vector bool int);
  38730. vector unsigned int vec_nand (vector unsigned int, vector unsigned int);
  38731. vector unsigned int vec_nand (vector bool unsigned int, vector unsigned int);
  38732. vector unsigned int vec_nand (vector unsigned int, vector bool unsigned int);
  38733. vector short vec_nand (vector short, vector short);
  38734. vector short vec_nand (vector bool short, vector short);
  38735. vector short vec_nand (vector short, vector bool short);
  38736. vector unsigned short vec_nand (vector unsigned short, vector unsigned short);
  38737. vector unsigned short vec_nand (vector bool unsigned short, vector unsigned short);
  38738. vector unsigned short vec_nand (vector unsigned short, vector bool unsigned short);
  38739. vector signed char vec_nand (vector signed char, vector signed char);
  38740. vector signed char vec_nand (vector bool signed char, vector signed char);
  38741. vector signed char vec_nand (vector signed char, vector bool signed char);
  38742. vector unsigned char vec_nand (vector unsigned char, vector unsigned char);
  38743. vector unsigned char vec_nand (vector bool unsigned char, vector unsigned char);
  38744. vector unsigned char vec_nand (vector unsigned char, vector bool unsigned char);
  38745. vector long long vec_orc (vector long long, vector long long);
  38746. vector long long vec_orc (vector bool long long, vector long long);
  38747. vector long long vec_orc (vector long long, vector bool long long);
  38748. vector unsigned long long vec_orc (vector unsigned long long,
  38749. vector unsigned long long);
  38750. vector unsigned long long vec_orc (vector bool long long, vector unsigned long long);
  38751. vector unsigned long long vec_orc (vector unsigned long long, vector bool long long);
  38752. vector int vec_orc (vector int, vector int);
  38753. vector int vec_orc (vector bool int, vector int);
  38754. vector int vec_orc (vector int, vector bool int);
  38755. vector unsigned int vec_orc (vector unsigned int, vector unsigned int);
  38756. vector unsigned int vec_orc (vector bool unsigned int, vector unsigned int);
  38757. vector unsigned int vec_orc (vector unsigned int, vector bool unsigned int);
  38758. vector short vec_orc (vector short, vector short);
  38759. vector short vec_orc (vector bool short, vector short);
  38760. vector short vec_orc (vector short, vector bool short);
  38761. vector unsigned short vec_orc (vector unsigned short, vector unsigned short);
  38762. vector unsigned short vec_orc (vector bool unsigned short, vector unsigned short);
  38763. vector unsigned short vec_orc (vector unsigned short, vector bool unsigned short);
  38764. vector signed char vec_orc (vector signed char, vector signed char);
  38765. vector signed char vec_orc (vector bool signed char, vector signed char);
  38766. vector signed char vec_orc (vector signed char, vector bool signed char);
  38767. vector unsigned char vec_orc (vector unsigned char, vector unsigned char);
  38768. vector unsigned char vec_orc (vector bool unsigned char, vector unsigned char);
  38769. vector unsigned char vec_orc (vector unsigned char, vector bool unsigned char);
  38770. vector int vec_pack (vector long long, vector long long);
  38771. vector unsigned int vec_pack (vector unsigned long long, vector unsigned long long);
  38772. vector bool int vec_pack (vector bool long long, vector bool long long);
  38773. vector float vec_pack (vector double, vector double);
  38774. vector int vec_packs (vector long long, vector long long);
  38775. vector unsigned int vec_packs (vector unsigned long long, vector unsigned long long);
  38776. vector unsigned char vec_packsu (vector signed short, vector signed short)
  38777. vector unsigned char vec_packsu (vector unsigned short, vector unsigned short)
  38778. vector unsigned short int vec_packsu (vector signed int, vector signed int);
  38779. vector unsigned short int vec_packsu (vector unsigned int, vector unsigned int);
  38780. vector unsigned int vec_packsu (vector long long, vector long long);
  38781. vector unsigned int vec_packsu (vector unsigned long long, vector unsigned long long);
  38782. vector unsigned int vec_packsu (vector signed long long, vector signed long long);
  38783. vector unsigned char vec_popcnt (vector signed char);
  38784. vector unsigned char vec_popcnt (vector unsigned char);
  38785. vector unsigned short vec_popcnt (vector signed short);
  38786. vector unsigned short vec_popcnt (vector unsigned short);
  38787. vector unsigned int vec_popcnt (vector signed int);
  38788. vector unsigned int vec_popcnt (vector unsigned int);
  38789. vector unsigned long long vec_popcnt (vector signed long long);
  38790. vector unsigned long long vec_popcnt (vector unsigned long long);
  38791. vector long long vec_rl (vector long long, vector unsigned long long);
  38792. vector long long vec_rl (vector unsigned long long, vector unsigned long long);
  38793. vector long long vec_sl (vector long long, vector unsigned long long);
  38794. vector long long vec_sl (vector unsigned long long, vector unsigned long long);
  38795. vector long long vec_sr (vector long long, vector unsigned long long);
  38796. vector unsigned long long char vec_sr (vector unsigned long long,
  38797. vector unsigned long long);
  38798. vector long long vec_sra (vector long long, vector unsigned long long);
  38799. vector unsigned long long vec_sra (vector unsigned long long,
  38800. vector unsigned long long);
  38801. vector long long vec_sub (vector long long, vector long long);
  38802. vector unsigned long long vec_sub (vector unsigned long long,
  38803. vector unsigned long long);
  38804. vector long long vec_unpackh (vector int);
  38805. vector unsigned long long vec_unpackh (vector unsigned int);
  38806. vector long long vec_unpackl (vector int);
  38807. vector unsigned long long vec_unpackl (vector unsigned int);
  38808. vector long long vec_vaddudm (vector long long, vector long long);
  38809. vector long long vec_vaddudm (vector bool long long, vector long long);
  38810. vector long long vec_vaddudm (vector long long, vector bool long long);
  38811. vector unsigned long long vec_vaddudm (vector unsigned long long,
  38812. vector unsigned long long);
  38813. vector unsigned long long vec_vaddudm (vector bool unsigned long long,
  38814. vector unsigned long long);
  38815. vector unsigned long long vec_vaddudm (vector unsigned long long,
  38816. vector bool unsigned long long);
  38817. vector long long vec_vbpermq (vector signed char, vector signed char);
  38818. vector long long vec_vbpermq (vector unsigned char, vector unsigned char);
  38819. vector unsigned char vec_bperm (vector unsigned char, vector unsigned char);
  38820. vector unsigned char vec_bperm (vector unsigned long long, vector unsigned char);
  38821. vector unsigned long long vec_bperm (vector unsigned __int128, vector unsigned char);
  38822. vector long long vec_cntlz (vector long long);
  38823. vector unsigned long long vec_cntlz (vector unsigned long long);
  38824. vector int vec_cntlz (vector int);
  38825. vector unsigned int vec_cntlz (vector int);
  38826. vector short vec_cntlz (vector short);
  38827. vector unsigned short vec_cntlz (vector unsigned short);
  38828. vector signed char vec_cntlz (vector signed char);
  38829. vector unsigned char vec_cntlz (vector unsigned char);
  38830. vector long long vec_vclz (vector long long);
  38831. vector unsigned long long vec_vclz (vector unsigned long long);
  38832. vector int vec_vclz (vector int);
  38833. vector unsigned int vec_vclz (vector int);
  38834. vector short vec_vclz (vector short);
  38835. vector unsigned short vec_vclz (vector unsigned short);
  38836. vector signed char vec_vclz (vector signed char);
  38837. vector unsigned char vec_vclz (vector unsigned char);
  38838. vector signed char vec_vclzb (vector signed char);
  38839. vector unsigned char vec_vclzb (vector unsigned char);
  38840. vector long long vec_vclzd (vector long long);
  38841. vector unsigned long long vec_vclzd (vector unsigned long long);
  38842. vector short vec_vclzh (vector short);
  38843. vector unsigned short vec_vclzh (vector unsigned short);
  38844. vector int vec_vclzw (vector int);
  38845. vector unsigned int vec_vclzw (vector int);
  38846. vector signed char vec_vgbbd (vector signed char);
  38847. vector unsigned char vec_vgbbd (vector unsigned char);
  38848. vector long long vec_vmaxsd (vector long long, vector long long);
  38849. vector unsigned long long vec_vmaxud (vector unsigned long long,
  38850. unsigned vector long long);
  38851. vector long long vec_vminsd (vector long long, vector long long);
  38852. vector unsigned long long vec_vminud (vector long long, vector long long);
  38853. vector int vec_vpksdss (vector long long, vector long long);
  38854. vector unsigned int vec_vpksdss (vector long long, vector long long);
  38855. vector unsigned int vec_vpkudus (vector unsigned long long,
  38856. vector unsigned long long);
  38857. vector int vec_vpkudum (vector long long, vector long long);
  38858. vector unsigned int vec_vpkudum (vector unsigned long long,
  38859. vector unsigned long long);
  38860. vector bool int vec_vpkudum (vector bool long long, vector bool long long);
  38861. vector long long vec_vpopcnt (vector long long);
  38862. vector unsigned long long vec_vpopcnt (vector unsigned long long);
  38863. vector int vec_vpopcnt (vector int);
  38864. vector unsigned int vec_vpopcnt (vector int);
  38865. vector short vec_vpopcnt (vector short);
  38866. vector unsigned short vec_vpopcnt (vector unsigned short);
  38867. vector signed char vec_vpopcnt (vector signed char);
  38868. vector unsigned char vec_vpopcnt (vector unsigned char);
  38869. vector signed char vec_vpopcntb (vector signed char);
  38870. vector unsigned char vec_vpopcntb (vector unsigned char);
  38871. vector long long vec_vpopcntd (vector long long);
  38872. vector unsigned long long vec_vpopcntd (vector unsigned long long);
  38873. vector short vec_vpopcnth (vector short);
  38874. vector unsigned short vec_vpopcnth (vector unsigned short);
  38875. vector int vec_vpopcntw (vector int);
  38876. vector unsigned int vec_vpopcntw (vector int);
  38877. vector long long vec_vrld (vector long long, vector unsigned long long);
  38878. vector unsigned long long vec_vrld (vector unsigned long long,
  38879. vector unsigned long long);
  38880. vector long long vec_vsld (vector long long, vector unsigned long long);
  38881. vector long long vec_vsld (vector unsigned long long,
  38882. vector unsigned long long);
  38883. vector long long vec_vsrad (vector long long, vector unsigned long long);
  38884. vector unsigned long long vec_vsrad (vector unsigned long long,
  38885. vector unsigned long long);
  38886. vector long long vec_vsrd (vector long long, vector unsigned long long);
  38887. vector unsigned long long char vec_vsrd (vector unsigned long long,
  38888. vector unsigned long long);
  38889. vector long long vec_vsubudm (vector long long, vector long long);
  38890. vector long long vec_vsubudm (vector bool long long, vector long long);
  38891. vector long long vec_vsubudm (vector long long, vector bool long long);
  38892. vector unsigned long long vec_vsubudm (vector unsigned long long,
  38893. vector unsigned long long);
  38894. vector unsigned long long vec_vsubudm (vector bool long long,
  38895. vector unsigned long long);
  38896. vector unsigned long long vec_vsubudm (vector unsigned long long,
  38897. vector bool long long);
  38898. vector long long vec_vupkhsw (vector int);
  38899. vector unsigned long long vec_vupkhsw (vector unsigned int);
  38900. vector long long vec_vupklsw (vector int);
  38901. vector unsigned long long vec_vupklsw (vector int);
  38902. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  38903. instruction set are available, the following additional functions are
  38904. available for 64-bit targets. New vector types (VECTOR __INT128 and
  38905. VECTOR __UINT128) are available to hold the __INT128 and __UINT128 types
  38906. to use these builtins.
  38907. The normal vector extract, and set operations work on VECTOR __INT128
  38908. and VECTOR __UINT128 types, but the index value must be 0.
  38909. vector __int128 vec_vaddcuq (vector __int128, vector __int128);
  38910. vector __uint128 vec_vaddcuq (vector __uint128, vector __uint128);
  38911. vector __int128 vec_vadduqm (vector __int128, vector __int128);
  38912. vector __uint128 vec_vadduqm (vector __uint128, vector __uint128);
  38913. vector __int128 vec_vaddecuq (vector __int128, vector __int128,
  38914. vector __int128);
  38915. vector __uint128 vec_vaddecuq (vector __uint128, vector __uint128,
  38916. vector __uint128);
  38917. vector __int128 vec_vaddeuqm (vector __int128, vector __int128,
  38918. vector __int128);
  38919. vector __uint128 vec_vaddeuqm (vector __uint128, vector __uint128,
  38920. vector __uint128);
  38921. vector __int128 vec_vsubecuq (vector __int128, vector __int128,
  38922. vector __int128);
  38923. vector __uint128 vec_vsubecuq (vector __uint128, vector __uint128,
  38924. vector __uint128);
  38925. vector __int128 vec_vsubeuqm (vector __int128, vector __int128,
  38926. vector __int128);
  38927. vector __uint128 vec_vsubeuqm (vector __uint128, vector __uint128,
  38928. vector __uint128);
  38929. vector __int128 vec_vsubcuq (vector __int128, vector __int128);
  38930. vector __uint128 vec_vsubcuq (vector __uint128, vector __uint128);
  38931. __int128 vec_vsubuqm (__int128, __int128);
  38932. __uint128 vec_vsubuqm (__uint128, __uint128);
  38933. vector __int128 __builtin_bcdadd (vector __int128, vector __int128, const int);
  38934. int __builtin_bcdadd_lt (vector __int128, vector __int128, const int);
  38935. int __builtin_bcdadd_eq (vector __int128, vector __int128, const int);
  38936. int __builtin_bcdadd_gt (vector __int128, vector __int128, const int);
  38937. int __builtin_bcdadd_ov (vector __int128, vector __int128, const int);
  38938. vector __int128 __builtin_bcdsub (vector __int128, vector __int128, const int);
  38939. int __builtin_bcdsub_lt (vector __int128, vector __int128, const int);
  38940. int __builtin_bcdsub_eq (vector __int128, vector __int128, const int);
  38941. int __builtin_bcdsub_gt (vector __int128, vector __int128, const int);
  38942. int __builtin_bcdsub_ov (vector __int128, vector __int128, const int);
  38943. 
  38944. File: gcc.info, Node: PowerPC AltiVec Built-in Functions Available on ISA 3.0, Prev: PowerPC AltiVec Built-in Functions Available on ISA 2.07, Up: PowerPC AltiVec/VSX Built-in Functions
  38945. 6.60.22.4 PowerPC AltiVec Built-in Functions Available on ISA 3.0
  38946. .................................................................
  38947. The following additional built-in functions are also available for the
  38948. PowerPC family of processors, starting with ISA 3.0 ('-mcpu=power9') or
  38949. later:
  38950. unsigned int scalar_extract_exp (double source);
  38951. unsigned long long int scalar_extract_exp (__ieee128 source);
  38952. unsigned long long int scalar_extract_sig (double source);
  38953. unsigned __int128 scalar_extract_sig (__ieee128 source);
  38954. double scalar_insert_exp (unsigned long long int significand,
  38955. unsigned long long int exponent);
  38956. double scalar_insert_exp (double significand, unsigned long long int exponent);
  38957. ieee_128 scalar_insert_exp (unsigned __int128 significand,
  38958. unsigned long long int exponent);
  38959. ieee_128 scalar_insert_exp (ieee_128 significand, unsigned long long int exponent);
  38960. int scalar_cmp_exp_gt (double arg1, double arg2);
  38961. int scalar_cmp_exp_lt (double arg1, double arg2);
  38962. int scalar_cmp_exp_eq (double arg1, double arg2);
  38963. int scalar_cmp_exp_unordered (double arg1, double arg2);
  38964. bool scalar_test_data_class (float source, const int condition);
  38965. bool scalar_test_data_class (double source, const int condition);
  38966. bool scalar_test_data_class (__ieee128 source, const int condition);
  38967. bool scalar_test_neg (float source);
  38968. bool scalar_test_neg (double source);
  38969. bool scalar_test_neg (__ieee128 source);
  38970. The 'scalar_extract_exp' and 'scalar_extract_sig' functions require a
  38971. 64-bit environment supporting ISA 3.0 or later. The
  38972. 'scalar_extract_exp' and 'scalar_extract_sig' built-in functions return
  38973. the significand and the biased exponent value respectively of their
  38974. 'source' arguments. When supplied with a 64-bit 'source' argument, the
  38975. result returned by 'scalar_extract_sig' has the '0x0010000000000000' bit
  38976. set if the function's 'source' argument is in normalized form.
  38977. Otherwise, this bit is set to 0. When supplied with a 128-bit 'source'
  38978. argument, the '0x00010000000000000000000000000000' bit of the result is
  38979. treated similarly. Note that the sign of the significand is not
  38980. represented in the result returned from the 'scalar_extract_sig'
  38981. function. Use the 'scalar_test_neg' function to test the sign of its
  38982. 'double' argument.
  38983. The 'scalar_insert_exp' functions require a 64-bit environment
  38984. supporting ISA 3.0 or later. When supplied with a 64-bit first
  38985. argument, the 'scalar_insert_exp' built-in function returns a
  38986. double-precision floating point value that is constructed by assembling
  38987. the values of its 'significand' and 'exponent' arguments. The sign of
  38988. the result is copied from the most significant bit of the 'significand'
  38989. argument. The significand and exponent components of the result are
  38990. composed of the least significant 11 bits of the 'exponent' argument and
  38991. the least significant 52 bits of the 'significand' argument
  38992. respectively.
  38993. When supplied with a 128-bit first argument, the 'scalar_insert_exp'
  38994. built-in function returns a quad-precision ieee floating point value.
  38995. The sign bit of the result is copied from the most significant bit of
  38996. the 'significand' argument. The significand and exponent components of
  38997. the result are composed of the least significant 15 bits of the
  38998. 'exponent' argument and the least significant 112 bits of the
  38999. 'significand' argument respectively.
  39000. The 'scalar_cmp_exp_gt', 'scalar_cmp_exp_lt', 'scalar_cmp_exp_eq', and
  39001. 'scalar_cmp_exp_unordered' built-in functions return a non-zero value if
  39002. 'arg1' is greater than, less than, equal to, or not comparable to 'arg2'
  39003. respectively. The arguments are not comparable if one or the other
  39004. equals NaN (not a number).
  39005. The 'scalar_test_data_class' built-in function returns 1 if any of the
  39006. condition tests enabled by the value of the 'condition' variable are
  39007. true, and 0 otherwise. The 'condition' argument must be a compile-time
  39008. constant integer with value not exceeding 127. The 'condition' argument
  39009. is encoded as a bitmask with each bit enabling the testing of a
  39010. different condition, as characterized by the following:
  39011. 0x40 Test for NaN
  39012. 0x20 Test for +Infinity
  39013. 0x10 Test for -Infinity
  39014. 0x08 Test for +Zero
  39015. 0x04 Test for -Zero
  39016. 0x02 Test for +Denormal
  39017. 0x01 Test for -Denormal
  39018. The 'scalar_test_neg' built-in function returns 1 if its 'source'
  39019. argument holds a negative value, 0 otherwise.
  39020. The following built-in functions are also available for the PowerPC
  39021. family of processors, starting with ISA 3.0 or later ('-mcpu=power9').
  39022. These string functions are described separately in order to group the
  39023. descriptions closer to the function prototypes:
  39024. int vec_all_nez (vector signed char, vector signed char);
  39025. int vec_all_nez (vector unsigned char, vector unsigned char);
  39026. int vec_all_nez (vector signed short, vector signed short);
  39027. int vec_all_nez (vector unsigned short, vector unsigned short);
  39028. int vec_all_nez (vector signed int, vector signed int);
  39029. int vec_all_nez (vector unsigned int, vector unsigned int);
  39030. int vec_any_eqz (vector signed char, vector signed char);
  39031. int vec_any_eqz (vector unsigned char, vector unsigned char);
  39032. int vec_any_eqz (vector signed short, vector signed short);
  39033. int vec_any_eqz (vector unsigned short, vector unsigned short);
  39034. int vec_any_eqz (vector signed int, vector signed int);
  39035. int vec_any_eqz (vector unsigned int, vector unsigned int);
  39036. vector bool char vec_cmpnez (vector signed char arg1, vector signed char arg2);
  39037. vector bool char vec_cmpnez (vector unsigned char arg1, vector unsigned char arg2);
  39038. vector bool short vec_cmpnez (vector signed short arg1, vector signed short arg2);
  39039. vector bool short vec_cmpnez (vector unsigned short arg1, vector unsigned short arg2);
  39040. vector bool int vec_cmpnez (vector signed int arg1, vector signed int arg2);
  39041. vector bool int vec_cmpnez (vector unsigned int, vector unsigned int);
  39042. vector signed char vec_cnttz (vector signed char);
  39043. vector unsigned char vec_cnttz (vector unsigned char);
  39044. vector signed short vec_cnttz (vector signed short);
  39045. vector unsigned short vec_cnttz (vector unsigned short);
  39046. vector signed int vec_cnttz (vector signed int);
  39047. vector unsigned int vec_cnttz (vector unsigned int);
  39048. vector signed long long vec_cnttz (vector signed long long);
  39049. vector unsigned long long vec_cnttz (vector unsigned long long);
  39050. signed int vec_cntlz_lsbb (vector signed char);
  39051. signed int vec_cntlz_lsbb (vector unsigned char);
  39052. signed int vec_cnttz_lsbb (vector signed char);
  39053. signed int vec_cnttz_lsbb (vector unsigned char);
  39054. unsigned int vec_first_match_index (vector signed char, vector signed char);
  39055. unsigned int vec_first_match_index (vector unsigned char, vector unsigned char);
  39056. unsigned int vec_first_match_index (vector signed int, vector signed int);
  39057. unsigned int vec_first_match_index (vector unsigned int, vector unsigned int);
  39058. unsigned int vec_first_match_index (vector signed short, vector signed short);
  39059. unsigned int vec_first_match_index (vector unsigned short, vector unsigned short);
  39060. unsigned int vec_first_match_or_eos_index (vector signed char, vector signed char);
  39061. unsigned int vec_first_match_or_eos_index (vector unsigned char, vector unsigned char);
  39062. unsigned int vec_first_match_or_eos_index (vector signed int, vector signed int);
  39063. unsigned int vec_first_match_or_eos_index (vector unsigned int, vector unsigned int);
  39064. unsigned int vec_first_match_or_eos_index (vector signed short, vector signed short);
  39065. unsigned int vec_first_match_or_eos_index (vector unsigned short,
  39066. vector unsigned short);
  39067. unsigned int vec_first_mismatch_index (vector signed char, vector signed char);
  39068. unsigned int vec_first_mismatch_index (vector unsigned char, vector unsigned char);
  39069. unsigned int vec_first_mismatch_index (vector signed int, vector signed int);
  39070. unsigned int vec_first_mismatch_index (vector unsigned int, vector unsigned int);
  39071. unsigned int vec_first_mismatch_index (vector signed short, vector signed short);
  39072. unsigned int vec_first_mismatch_index (vector unsigned short, vector unsigned short);
  39073. unsigned int vec_first_mismatch_or_eos_index (vector signed char, vector signed char);
  39074. unsigned int vec_first_mismatch_or_eos_index (vector unsigned char,
  39075. vector unsigned char);
  39076. unsigned int vec_first_mismatch_or_eos_index (vector signed int, vector signed int);
  39077. unsigned int vec_first_mismatch_or_eos_index (vector unsigned int, vector unsigned int);
  39078. unsigned int vec_first_mismatch_or_eos_index (vector signed short, vector signed short);
  39079. unsigned int vec_first_mismatch_or_eos_index (vector unsigned short,
  39080. vector unsigned short);
  39081. vector unsigned short vec_pack_to_short_fp32 (vector float, vector float);
  39082. vector signed char vec_xl_be (signed long long, signed char *);
  39083. vector unsigned char vec_xl_be (signed long long, unsigned char *);
  39084. vector signed int vec_xl_be (signed long long, signed int *);
  39085. vector unsigned int vec_xl_be (signed long long, unsigned int *);
  39086. vector signed __int128 vec_xl_be (signed long long, signed __int128 *);
  39087. vector unsigned __int128 vec_xl_be (signed long long, unsigned __int128 *);
  39088. vector signed long long vec_xl_be (signed long long, signed long long *);
  39089. vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
  39090. vector signed short vec_xl_be (signed long long, signed short *);
  39091. vector unsigned short vec_xl_be (signed long long, unsigned short *);
  39092. vector double vec_xl_be (signed long long, double *);
  39093. vector float vec_xl_be (signed long long, float *);
  39094. vector signed char vec_xl_len (signed char *addr, size_t len);
  39095. vector unsigned char vec_xl_len (unsigned char *addr, size_t len);
  39096. vector signed int vec_xl_len (signed int *addr, size_t len);
  39097. vector unsigned int vec_xl_len (unsigned int *addr, size_t len);
  39098. vector signed __int128 vec_xl_len (signed __int128 *addr, size_t len);
  39099. vector unsigned __int128 vec_xl_len (unsigned __int128 *addr, size_t len);
  39100. vector signed long long vec_xl_len (signed long long *addr, size_t len);
  39101. vector unsigned long long vec_xl_len (unsigned long long *addr, size_t len);
  39102. vector signed short vec_xl_len (signed short *addr, size_t len);
  39103. vector unsigned short vec_xl_len (unsigned short *addr, size_t len);
  39104. vector double vec_xl_len (double *addr, size_t len);
  39105. vector float vec_xl_len (float *addr, size_t len);
  39106. vector unsigned char vec_xl_len_r (unsigned char *addr, size_t len);
  39107. void vec_xst_len (vector signed char data, signed char *addr, size_t len);
  39108. void vec_xst_len (vector unsigned char data, unsigned char *addr, size_t len);
  39109. void vec_xst_len (vector signed int data, signed int *addr, size_t len);
  39110. void vec_xst_len (vector unsigned int data, unsigned int *addr, size_t len);
  39111. void vec_xst_len (vector unsigned __int128 data, unsigned __int128 *addr, size_t len);
  39112. void vec_xst_len (vector signed long long data, signed long long *addr, size_t len);
  39113. void vec_xst_len (vector unsigned long long data, unsigned long long *addr, size_t len);
  39114. void vec_xst_len (vector signed short data, signed short *addr, size_t len);
  39115. void vec_xst_len (vector unsigned short data, unsigned short *addr, size_t len);
  39116. void vec_xst_len (vector signed __int128 data, signed __int128 *addr, size_t len);
  39117. void vec_xst_len (vector double data, double *addr, size_t len);
  39118. void vec_xst_len (vector float data, float *addr, size_t len);
  39119. void vec_xst_len_r (vector unsigned char data, unsigned char *addr, size_t len);
  39120. signed char vec_xlx (unsigned int index, vector signed char data);
  39121. unsigned char vec_xlx (unsigned int index, vector unsigned char data);
  39122. signed short vec_xlx (unsigned int index, vector signed short data);
  39123. unsigned short vec_xlx (unsigned int index, vector unsigned short data);
  39124. signed int vec_xlx (unsigned int index, vector signed int data);
  39125. unsigned int vec_xlx (unsigned int index, vector unsigned int data);
  39126. float vec_xlx (unsigned int index, vector float data);
  39127. signed char vec_xrx (unsigned int index, vector signed char data);
  39128. unsigned char vec_xrx (unsigned int index, vector unsigned char data);
  39129. signed short vec_xrx (unsigned int index, vector signed short data);
  39130. unsigned short vec_xrx (unsigned int index, vector unsigned short data);
  39131. signed int vec_xrx (unsigned int index, vector signed int data);
  39132. unsigned int vec_xrx (unsigned int index, vector unsigned int data);
  39133. float vec_xrx (unsigned int index, vector float data);
  39134. The 'vec_all_nez', 'vec_any_eqz', and 'vec_cmpnez' perform pairwise
  39135. comparisons between the elements at the same positions within their two
  39136. vector arguments. The 'vec_all_nez' function returns a non-zero value
  39137. if and only if all pairwise comparisons are not equal and no element of
  39138. either vector argument contains a zero. The 'vec_any_eqz' function
  39139. returns a non-zero value if and only if at least one pairwise comparison
  39140. is equal or if at least one element of either vector argument contains a
  39141. zero. The 'vec_cmpnez' function returns a vector of the same type as
  39142. its two arguments, within which each element consists of all ones to
  39143. denote that either the corresponding elements of the incoming arguments
  39144. are not equal or that at least one of the corresponding elements
  39145. contains zero. Otherwise, the element of the returned vector contains
  39146. all zeros.
  39147. The 'vec_cntlz_lsbb' function returns the count of the number of
  39148. consecutive leading byte elements (starting from position 0 within the
  39149. supplied vector argument) for which the least-significant bit equals
  39150. zero. The 'vec_cnttz_lsbb' function returns the count of the number of
  39151. consecutive trailing byte elements (starting from position 15 and
  39152. counting backwards within the supplied vector argument) for which the
  39153. least-significant bit equals zero.
  39154. The 'vec_xl_len' and 'vec_xst_len' functions require a 64-bit
  39155. environment supporting ISA 3.0 or later. The 'vec_xl_len' function
  39156. loads a variable length vector from memory. The 'vec_xst_len' function
  39157. stores a variable length vector to memory. With both the 'vec_xl_len'
  39158. and 'vec_xst_len' functions, the 'addr' argument represents the memory
  39159. address to or from which data will be transferred, and the 'len'
  39160. argument represents the number of bytes to be transferred, as computed
  39161. by the C expression 'min((len & 0xff), 16)'. If this expression's value
  39162. is not a multiple of the vector element's size, the behavior of this
  39163. function is undefined. In the case that the underlying computer is
  39164. configured to run in big-endian mode, the data transfer moves bytes 0 to
  39165. '(len - 1)' of the corresponding vector. In little-endian mode, the
  39166. data transfer moves bytes '(16 - len)' to '15' of the corresponding
  39167. vector. For the load function, any bytes of the result vector that are
  39168. not loaded from memory are set to zero. The value of the 'addr'
  39169. argument need not be aligned on a multiple of the vector's element size.
  39170. The 'vec_xlx' and 'vec_xrx' functions extract the single element
  39171. selected by the 'index' argument from the vector represented by the
  39172. 'data' argument. The 'index' argument always specifies a byte offset,
  39173. regardless of the size of the vector element. With 'vec_xlx', 'index'
  39174. is the offset of the first byte of the element to be extracted. With
  39175. 'vec_xrx', 'index' represents the last byte of the element to be
  39176. extracted, measured from the right end of the vector. In other words,
  39177. the last byte of the element to be extracted is found at position '(15 -
  39178. index)'. There is no requirement that 'index' be a multiple of the
  39179. vector element size. However, if the size of the vector element added
  39180. to 'index' is greater than 15, the content of the returned value is
  39181. undefined.
  39182. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  39183. available:
  39184. vector unsigned long long vec_bperm (vector unsigned long long, vector unsigned char);
  39185. vector bool char vec_cmpne (vector bool char, vector bool char);
  39186. vector bool char vec_cmpne (vector signed char, vector signed char);
  39187. vector bool char vec_cmpne (vector unsigned char, vector unsigned char);
  39188. vector bool int vec_cmpne (vector bool int, vector bool int);
  39189. vector bool int vec_cmpne (vector signed int, vector signed int);
  39190. vector bool int vec_cmpne (vector unsigned int, vector unsigned int);
  39191. vector bool long long vec_cmpne (vector bool long long, vector bool long long);
  39192. vector bool long long vec_cmpne (vector signed long long, vector signed long long);
  39193. vector bool long long vec_cmpne (vector unsigned long long, vector unsigned long long);
  39194. vector bool short vec_cmpne (vector bool short, vector bool short);
  39195. vector bool short vec_cmpne (vector signed short, vector signed short);
  39196. vector bool short vec_cmpne (vector unsigned short, vector unsigned short);
  39197. vector bool long long vec_cmpne (vector double, vector double);
  39198. vector bool int vec_cmpne (vector float, vector float);
  39199. vector float vec_extract_fp32_from_shorth (vector unsigned short);
  39200. vector float vec_extract_fp32_from_shortl (vector unsigned short);
  39201. vector long long vec_vctz (vector long long);
  39202. vector unsigned long long vec_vctz (vector unsigned long long);
  39203. vector int vec_vctz (vector int);
  39204. vector unsigned int vec_vctz (vector int);
  39205. vector short vec_vctz (vector short);
  39206. vector unsigned short vec_vctz (vector unsigned short);
  39207. vector signed char vec_vctz (vector signed char);
  39208. vector unsigned char vec_vctz (vector unsigned char);
  39209. vector signed char vec_vctzb (vector signed char);
  39210. vector unsigned char vec_vctzb (vector unsigned char);
  39211. vector long long vec_vctzd (vector long long);
  39212. vector unsigned long long vec_vctzd (vector unsigned long long);
  39213. vector short vec_vctzh (vector short);
  39214. vector unsigned short vec_vctzh (vector unsigned short);
  39215. vector int vec_vctzw (vector int);
  39216. vector unsigned int vec_vctzw (vector int);
  39217. vector unsigned long long vec_extract4b (vector unsigned char, const int);
  39218. vector unsigned char vec_insert4b (vector signed int, vector unsigned char,
  39219. const int);
  39220. vector unsigned char vec_insert4b (vector unsigned int, vector unsigned char,
  39221. const int);
  39222. vector unsigned int vec_parity_lsbb (vector signed int);
  39223. vector unsigned int vec_parity_lsbb (vector unsigned int);
  39224. vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
  39225. vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
  39226. vector unsigned long long vec_parity_lsbb (vector signed long long);
  39227. vector unsigned long long vec_parity_lsbb (vector unsigned long long);
  39228. vector int vec_vprtyb (vector int);
  39229. vector unsigned int vec_vprtyb (vector unsigned int);
  39230. vector long long vec_vprtyb (vector long long);
  39231. vector unsigned long long vec_vprtyb (vector unsigned long long);
  39232. vector int vec_vprtybw (vector int);
  39233. vector unsigned int vec_vprtybw (vector unsigned int);
  39234. vector long long vec_vprtybd (vector long long);
  39235. vector unsigned long long vec_vprtybd (vector unsigned long long);
  39236. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  39237. available:
  39238. vector long vec_vprtyb (vector long);
  39239. vector unsigned long vec_vprtyb (vector unsigned long);
  39240. vector __int128 vec_vprtyb (vector __int128);
  39241. vector __uint128 vec_vprtyb (vector __uint128);
  39242. vector long vec_vprtybd (vector long);
  39243. vector unsigned long vec_vprtybd (vector unsigned long);
  39244. vector __int128 vec_vprtybq (vector __int128);
  39245. vector __uint128 vec_vprtybd (vector __uint128);
  39246. The following built-in vector functions are available for the PowerPC
  39247. family of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  39248. __vector unsigned char
  39249. vec_slv (__vector unsigned char src, __vector unsigned char shift_distance);
  39250. __vector unsigned char
  39251. vec_srv (__vector unsigned char src, __vector unsigned char shift_distance);
  39252. The 'vec_slv' and 'vec_srv' functions operate on all of the bytes of
  39253. their 'src' and 'shift_distance' arguments in parallel. The behavior of
  39254. the 'vec_slv' is as if there existed a temporary array of 17 unsigned
  39255. characters 'slv_array' within which elements 0 through 15 are the same
  39256. as the entries in the 'src' array and element 16 equals 0. The result
  39257. returned from the 'vec_slv' function is a '__vector' of 16 unsigned
  39258. characters within which element 'i' is computed using the C expression
  39259. '0xff & (*((unsigned short *)(slv_array + i)) << (0x07 &
  39260. shift_distance[i]))', with this resulting value coerced to the 'unsigned
  39261. char' type. The behavior of the 'vec_srv' is as if there existed a
  39262. temporary array of 17 unsigned characters 'srv_array' within which
  39263. element 0 equals zero and elements 1 through 16 equal the elements 0
  39264. through 15 of the 'src' array. The result returned from the 'vec_srv'
  39265. function is a '__vector' of 16 unsigned characters within which element
  39266. 'i' is computed using the C expression '0xff & (*((unsigned short
  39267. *)(srv_array + i)) >> (0x07 & shift_distance[i]))', with this resulting
  39268. value coerced to the 'unsigned char' type.
  39269. The following built-in functions are available for the PowerPC family
  39270. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  39271. __vector unsigned char
  39272. vec_absd (__vector unsigned char arg1, __vector unsigned char arg2);
  39273. __vector unsigned short
  39274. vec_absd (__vector unsigned short arg1, __vector unsigned short arg2);
  39275. __vector unsigned int
  39276. vec_absd (__vector unsigned int arg1, __vector unsigned int arg2);
  39277. __vector unsigned char
  39278. vec_absdb (__vector unsigned char arg1, __vector unsigned char arg2);
  39279. __vector unsigned short
  39280. vec_absdh (__vector unsigned short arg1, __vector unsigned short arg2);
  39281. __vector unsigned int
  39282. vec_absdw (__vector unsigned int arg1, __vector unsigned int arg2);
  39283. The 'vec_absd', 'vec_absdb', 'vec_absdh', and 'vec_absdw' built-in
  39284. functions each computes the absolute differences of the pairs of vector
  39285. elements supplied in its two vector arguments, placing the absolute
  39286. differences into the corresponding elements of the vector result.
  39287. The following built-in functions are available for the PowerPC family
  39288. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  39289. __vector unsigned int vec_extract_exp (__vector float source);
  39290. __vector unsigned long long int vec_extract_exp (__vector double source);
  39291. __vector unsigned int vec_extract_sig (__vector float source);
  39292. __vector unsigned long long int vec_extract_sig (__vector double source);
  39293. __vector float vec_insert_exp (__vector unsigned int significands,
  39294. __vector unsigned int exponents);
  39295. __vector float vec_insert_exp (__vector unsigned float significands,
  39296. __vector unsigned int exponents);
  39297. __vector double vec_insert_exp (__vector unsigned long long int significands,
  39298. __vector unsigned long long int exponents);
  39299. __vector double vec_insert_exp (__vector unsigned double significands,
  39300. __vector unsigned long long int exponents);
  39301. __vector bool int vec_test_data_class (__vector float source, const int condition);
  39302. __vector bool long long int vec_test_data_class (__vector double source,
  39303. const int condition);
  39304. The 'vec_extract_sig' and 'vec_extract_exp' built-in functions return
  39305. vectors representing the significands and biased exponent values of
  39306. their 'source' arguments respectively. Within the result vector
  39307. returned by 'vec_extract_sig', the '0x800000' bit of each vector element
  39308. returned when the function's 'source' argument is of type 'float' is set
  39309. to 1 if the corresponding floating point value is in normalized form.
  39310. Otherwise, this bit is set to 0. When the 'source' argument is of type
  39311. 'double', the '0x10000000000000' bit within each of the result vector's
  39312. elements is set according to the same rules. Note that the sign of the
  39313. significand is not represented in the result returned from the
  39314. 'vec_extract_sig' function. To extract the sign bits, use the
  39315. 'vec_cpsgn' function, which returns a new vector within which all of the
  39316. sign bits of its second argument vector are overwritten with the sign
  39317. bits copied from the coresponding elements of its first argument vector,
  39318. and all other (non-sign) bits of the second argument vector are copied
  39319. unchanged into the result vector.
  39320. The 'vec_insert_exp' built-in functions return a vector of single- or
  39321. double-precision floating point values constructed by assembling the
  39322. values of their 'significands' and 'exponents' arguments into the
  39323. corresponding elements of the returned vector. The sign of each element
  39324. of the result is copied from the most significant bit of the
  39325. corresponding entry within the 'significands' argument. Note that the
  39326. relevant bits of the 'significands' argument are the same, for both
  39327. integer and floating point types. The significand and exponent
  39328. components of each element of the result are composed of the least
  39329. significant bits of the corresponding 'significands' element and the
  39330. least significant bits of the corresponding 'exponents' element.
  39331. The 'vec_test_data_class' built-in function returns a vector
  39332. representing the results of testing the 'source' vector for the
  39333. condition selected by the 'condition' argument. The 'condition'
  39334. argument must be a compile-time constant integer with value not
  39335. exceeding 127. The 'condition' argument is encoded as a bitmask with
  39336. each bit enabling the testing of a different condition, as characterized
  39337. by the following:
  39338. 0x40 Test for NaN
  39339. 0x20 Test for +Infinity
  39340. 0x10 Test for -Infinity
  39341. 0x08 Test for +Zero
  39342. 0x04 Test for -Zero
  39343. 0x02 Test for +Denormal
  39344. 0x01 Test for -Denormal
  39345. If any of the enabled test conditions is true, the corresponding entry
  39346. in the result vector is -1. Otherwise (all of the enabled test
  39347. conditions are false), the corresponding entry of the result vector is
  39348. 0.
  39349. The following built-in functions are available for the PowerPC family
  39350. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  39351. vector unsigned int vec_rlmi (vector unsigned int, vector unsigned int,
  39352. vector unsigned int);
  39353. vector unsigned long long vec_rlmi (vector unsigned long long,
  39354. vector unsigned long long,
  39355. vector unsigned long long);
  39356. vector unsigned int vec_rlnm (vector unsigned int, vector unsigned int,
  39357. vector unsigned int);
  39358. vector unsigned long long vec_rlnm (vector unsigned long long,
  39359. vector unsigned long long,
  39360. vector unsigned long long);
  39361. vector unsigned int vec_vrlnm (vector unsigned int, vector unsigned int);
  39362. vector unsigned long long vec_vrlnm (vector unsigned long long,
  39363. vector unsigned long long);
  39364. The result of 'vec_rlmi' is obtained by rotating each element of the
  39365. first argument vector left and inserting it under mask into the second
  39366. argument vector. The third argument vector contains the mask beginning
  39367. in bits 11:15, the mask end in bits 19:23, and the shift count in bits
  39368. 27:31, of each element.
  39369. The result of 'vec_rlnm' is obtained by rotating each element of the
  39370. first argument vector left and ANDing it with a mask specified by the
  39371. second and third argument vectors. The second argument vector contains
  39372. the shift count for each element in the low-order byte. The third
  39373. argument vector contains the mask end for each element in the low-order
  39374. byte, with the mask begin in the next higher byte.
  39375. The result of 'vec_vrlnm' is obtained by rotating each element of the
  39376. first argument vector left and ANDing it with a mask. The second
  39377. argument vector contains the mask beginning in bits 11:15, the mask end
  39378. in bits 19:23, and the shift count in bits 27:31, of each element.
  39379. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  39380. available:
  39381. vector signed bool char vec_revb (vector signed char);
  39382. vector signed char vec_revb (vector signed char);
  39383. vector unsigned char vec_revb (vector unsigned char);
  39384. vector bool short vec_revb (vector bool short);
  39385. vector short vec_revb (vector short);
  39386. vector unsigned short vec_revb (vector unsigned short);
  39387. vector bool int vec_revb (vector bool int);
  39388. vector int vec_revb (vector int);
  39389. vector unsigned int vec_revb (vector unsigned int);
  39390. vector float vec_revb (vector float);
  39391. vector bool long long vec_revb (vector bool long long);
  39392. vector long long vec_revb (vector long long);
  39393. vector unsigned long long vec_revb (vector unsigned long long);
  39394. vector double vec_revb (vector double);
  39395. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  39396. available:
  39397. vector long vec_revb (vector long);
  39398. vector unsigned long vec_revb (vector unsigned long);
  39399. vector __int128 vec_revb (vector __int128);
  39400. vector __uint128 vec_revb (vector __uint128);
  39401. The 'vec_revb' built-in function reverses the bytes on an element by
  39402. element basis. A vector of 'vector unsigned char' or 'vector signed
  39403. char' reverses the bytes in the whole word.
  39404. If the cryptographic instructions are enabled ('-mcrypto' or
  39405. '-mcpu=power8'), the following builtins are enabled.
  39406. vector unsigned long long __builtin_crypto_vsbox (vector unsigned long long);
  39407. vector unsigned char vec_sbox_be (vector unsigned char);
  39408. vector unsigned long long __builtin_crypto_vcipher (vector unsigned long long,
  39409. vector unsigned long long);
  39410. vector unsigned char vec_cipher_be (vector unsigned char, vector unsigned char);
  39411. vector unsigned long long __builtin_crypto_vcipherlast
  39412. (vector unsigned long long,
  39413. vector unsigned long long);
  39414. vector unsigned char vec_cipherlast_be (vector unsigned char,
  39415. vector unsigned char);
  39416. vector unsigned long long __builtin_crypto_vncipher (vector unsigned long long,
  39417. vector unsigned long long);
  39418. vector unsigned char vec_ncipher_be (vector unsigned char,
  39419. vector unsigned char);
  39420. vector unsigned long long __builtin_crypto_vncipherlast (vector unsigned long long,
  39421. vector unsigned long long);
  39422. vector unsigned char vec_ncipherlast_be (vector unsigned char,
  39423. vector unsigned char);
  39424. vector unsigned char __builtin_crypto_vpermxor (vector unsigned char,
  39425. vector unsigned char,
  39426. vector unsigned char);
  39427. vector unsigned short __builtin_crypto_vpermxor (vector unsigned short,
  39428. vector unsigned short,
  39429. vector unsigned short);
  39430. vector unsigned int __builtin_crypto_vpermxor (vector unsigned int,
  39431. vector unsigned int,
  39432. vector unsigned int);
  39433. vector unsigned long long __builtin_crypto_vpermxor (vector unsigned long long,
  39434. vector unsigned long long,
  39435. vector unsigned long long);
  39436. vector unsigned char __builtin_crypto_vpmsumb (vector unsigned char,
  39437. vector unsigned char);
  39438. vector unsigned short __builtin_crypto_vpmsumb (vector unsigned short,
  39439. vector unsigned short);
  39440. vector unsigned int __builtin_crypto_vpmsumb (vector unsigned int,
  39441. vector unsigned int);
  39442. vector unsigned long long __builtin_crypto_vpmsumb (vector unsigned long long,
  39443. vector unsigned long long);
  39444. vector unsigned long long __builtin_crypto_vshasigmad (vector unsigned long long,
  39445. int, int);
  39446. vector unsigned int __builtin_crypto_vshasigmaw (vector unsigned int, int, int);
  39447. The second argument to __BUILTIN_CRYPTO_VSHASIGMAD and
  39448. __BUILTIN_CRYPTO_VSHASIGMAW must be a constant integer that is 0 or 1.
  39449. The third argument to these built-in functions must be a constant
  39450. integer in the range of 0 to 15.
  39451. If the ISA 3.0 instruction set additions are enabled ('-mcpu=power9'),
  39452. the following additional functions are available for both 32-bit and
  39453. 64-bit targets.
  39454. vector short vec_xl (int, vector short *);
  39455. vector short vec_xl (int, short *);
  39456. vector unsigned short vec_xl (int, vector unsigned short *);
  39457. vector unsigned short vec_xl (int, unsigned short *);
  39458. vector char vec_xl (int, vector char *);
  39459. vector char vec_xl (int, char *);
  39460. vector unsigned char vec_xl (int, vector unsigned char *);
  39461. vector unsigned char vec_xl (int, unsigned char *);
  39462. void vec_xst (vector short, int, vector short *);
  39463. void vec_xst (vector short, int, short *);
  39464. void vec_xst (vector unsigned short, int, vector unsigned short *);
  39465. void vec_xst (vector unsigned short, int, unsigned short *);
  39466. void vec_xst (vector char, int, vector char *);
  39467. void vec_xst (vector char, int, char *);
  39468. void vec_xst (vector unsigned char, int, vector unsigned char *);
  39469. void vec_xst (vector unsigned char, int, unsigned char *);
  39470. 
  39471. 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
  39472. 6.60.23 PowerPC Hardware Transactional Memory Built-in Functions
  39473. ----------------------------------------------------------------
  39474. GCC provides two interfaces for accessing the Hardware Transactional
  39475. Memory (HTM) instructions available on some of the PowerPC family of
  39476. processors (eg, POWER8). The two interfaces come in a low level
  39477. interface, consisting of built-in functions specific to PowerPC and a
  39478. higher level interface consisting of inline functions that are common
  39479. between PowerPC and S/390.
  39480. 6.60.23.1 PowerPC HTM Low Level Built-in Functions
  39481. ..................................................
  39482. The following low level built-in functions are available with '-mhtm' or
  39483. '-mcpu=CPU' where CPU is 'power8' or later. They all generate the
  39484. machine instruction that is part of the name.
  39485. The HTM builtins (with the exception of '__builtin_tbegin') return the
  39486. full 4-bit condition register value set by their associated hardware
  39487. instruction. The header file 'htmintrin.h' defines some macros that can
  39488. be used to decipher the return value. The '__builtin_tbegin' builtin
  39489. returns a simple 'true' or 'false' value depending on whether a
  39490. transaction was successfully started or not. The arguments of the
  39491. builtins match exactly the type and order of the associated hardware
  39492. instruction's operands, except for the '__builtin_tcheck' builtin, which
  39493. does not take any input arguments. Refer to the ISA manual for a
  39494. description of each instruction's operands.
  39495. unsigned int __builtin_tbegin (unsigned int)
  39496. unsigned int __builtin_tend (unsigned int)
  39497. unsigned int __builtin_tabort (unsigned int)
  39498. unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int)
  39499. unsigned int __builtin_tabortdci (unsigned int, unsigned int, int)
  39500. unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int)
  39501. unsigned int __builtin_tabortwci (unsigned int, unsigned int, int)
  39502. unsigned int __builtin_tcheck (void)
  39503. unsigned int __builtin_treclaim (unsigned int)
  39504. unsigned int __builtin_trechkpt (void)
  39505. unsigned int __builtin_tsr (unsigned int)
  39506. In addition to the above HTM built-ins, we have added built-ins for
  39507. some common extended mnemonics of the HTM instructions:
  39508. unsigned int __builtin_tendall (void)
  39509. unsigned int __builtin_tresume (void)
  39510. unsigned int __builtin_tsuspend (void)
  39511. Note that the semantics of the above HTM builtins are required to mimic
  39512. the locking semantics used for critical sections. Builtins that are
  39513. used to create a new transaction or restart a suspended transaction must
  39514. have lock acquisition like semantics while those builtins that end or
  39515. suspend a transaction must have lock release like semantics.
  39516. Specifically, this must mimic lock semantics as specified by C++11, for
  39517. example: Lock acquisition is as-if an execution of
  39518. __atomic_exchange_n(&globallock,1,__ATOMIC_ACQUIRE) that returns 0, and
  39519. lock release is as-if an execution of
  39520. __atomic_store(&globallock,0,__ATOMIC_RELEASE), with globallock being an
  39521. implicit implementation-defined lock used for all transactions. The HTM
  39522. instructions associated with with the builtins inherently provide the
  39523. correct acquisition and release hardware barriers required. However,
  39524. the compiler must also be prohibited from moving loads and stores across
  39525. the builtins in a way that would violate their semantics. This has been
  39526. accomplished by adding memory barriers to the associated HTM
  39527. instructions (which is a conservative approach to provide acquire and
  39528. release semantics). Earlier versions of the compiler did not treat the
  39529. HTM instructions as memory barriers. A '__TM_FENCE__' macro has been
  39530. added, which can be used to determine whether the current compiler
  39531. treats HTM instructions as memory barriers or not. This allows the user
  39532. to explicitly add memory barriers to their code when using an older
  39533. version of the compiler.
  39534. The following set of built-in functions are available to gain access to
  39535. the HTM specific special purpose registers.
  39536. unsigned long __builtin_get_texasr (void)
  39537. unsigned long __builtin_get_texasru (void)
  39538. unsigned long __builtin_get_tfhar (void)
  39539. unsigned long __builtin_get_tfiar (void)
  39540. void __builtin_set_texasr (unsigned long);
  39541. void __builtin_set_texasru (unsigned long);
  39542. void __builtin_set_tfhar (unsigned long);
  39543. void __builtin_set_tfiar (unsigned long);
  39544. Example usage of these low level built-in functions may look like:
  39545. #include <htmintrin.h>
  39546. int num_retries = 10;
  39547. while (1)
  39548. {
  39549. if (__builtin_tbegin (0))
  39550. {
  39551. /* Transaction State Initiated. */
  39552. if (is_locked (lock))
  39553. __builtin_tabort (0);
  39554. ... transaction code...
  39555. __builtin_tend (0);
  39556. break;
  39557. }
  39558. else
  39559. {
  39560. /* Transaction State Failed. Use locks if the transaction
  39561. failure is "persistent" or we've tried too many times. */
  39562. if (num_retries-- <= 0
  39563. || _TEXASRU_FAILURE_PERSISTENT (__builtin_get_texasru ()))
  39564. {
  39565. acquire_lock (lock);
  39566. ... non transactional fallback path...
  39567. release_lock (lock);
  39568. break;
  39569. }
  39570. }
  39571. }
  39572. One final built-in function has been added that returns the value of
  39573. the 2-bit Transaction State field of the Machine Status Register (MSR)
  39574. as stored in 'CR0'.
  39575. unsigned long __builtin_ttest (void)
  39576. This built-in can be used to determine the current transaction state
  39577. using the following code example:
  39578. #include <htmintrin.h>
  39579. unsigned char tx_state = _HTM_STATE (__builtin_ttest ());
  39580. if (tx_state == _HTM_TRANSACTIONAL)
  39581. {
  39582. /* Code to use in transactional state. */
  39583. }
  39584. else if (tx_state == _HTM_NONTRANSACTIONAL)
  39585. {
  39586. /* Code to use in non-transactional state. */
  39587. }
  39588. else if (tx_state == _HTM_SUSPENDED)
  39589. {
  39590. /* Code to use in transaction suspended state. */
  39591. }
  39592. 6.60.23.2 PowerPC HTM High Level Inline Functions
  39593. .................................................
  39594. The following high level HTM interface is made available by including
  39595. '<htmxlintrin.h>' and using '-mhtm' or '-mcpu=CPU' where CPU is 'power8'
  39596. or later. This interface is common between PowerPC and S/390, allowing
  39597. users to write one HTM source implementation that can be compiled and
  39598. executed on either system.
  39599. long __TM_simple_begin (void)
  39600. long __TM_begin (void* const TM_buff)
  39601. long __TM_end (void)
  39602. void __TM_abort (void)
  39603. void __TM_named_abort (unsigned char const code)
  39604. void __TM_resume (void)
  39605. void __TM_suspend (void)
  39606. long __TM_is_user_abort (void* const TM_buff)
  39607. long __TM_is_named_user_abort (void* const TM_buff, unsigned char *code)
  39608. long __TM_is_illegal (void* const TM_buff)
  39609. long __TM_is_footprint_exceeded (void* const TM_buff)
  39610. long __TM_nesting_depth (void* const TM_buff)
  39611. long __TM_is_nested_too_deep(void* const TM_buff)
  39612. long __TM_is_conflict(void* const TM_buff)
  39613. long __TM_is_failure_persistent(void* const TM_buff)
  39614. long __TM_failure_address(void* const TM_buff)
  39615. long long __TM_failure_code(void* const TM_buff)
  39616. Using these common set of HTM inline functions, we can create a more
  39617. portable version of the HTM example in the previous section that will
  39618. work on either PowerPC or S/390:
  39619. #include <htmxlintrin.h>
  39620. int num_retries = 10;
  39621. TM_buff_type TM_buff;
  39622. while (1)
  39623. {
  39624. if (__TM_begin (TM_buff) == _HTM_TBEGIN_STARTED)
  39625. {
  39626. /* Transaction State Initiated. */
  39627. if (is_locked (lock))
  39628. __TM_abort ();
  39629. ... transaction code...
  39630. __TM_end ();
  39631. break;
  39632. }
  39633. else
  39634. {
  39635. /* Transaction State Failed. Use locks if the transaction
  39636. failure is "persistent" or we've tried too many times. */
  39637. if (num_retries-- <= 0
  39638. || __TM_is_failure_persistent (TM_buff))
  39639. {
  39640. acquire_lock (lock);
  39641. ... non transactional fallback path...
  39642. release_lock (lock);
  39643. break;
  39644. }
  39645. }
  39646. }
  39647. 
  39648. File: gcc.info, Node: PowerPC Atomic Memory Operation Functions, Next: RX Built-in Functions, Prev: PowerPC Hardware Transactional Memory Built-in Functions, Up: Target Builtins
  39649. 6.60.24 PowerPC Atomic Memory Operation Functions
  39650. -------------------------------------------------
  39651. ISA 3.0 of the PowerPC added new atomic memory operation (amo)
  39652. instructions. GCC provides support for these instructions in 64-bit
  39653. environments. All of the functions are declared in the include file
  39654. 'amo.h'.
  39655. The functions supported are:
  39656. #include <amo.h>
  39657. uint32_t amo_lwat_add (uint32_t *, uint32_t);
  39658. uint32_t amo_lwat_xor (uint32_t *, uint32_t);
  39659. uint32_t amo_lwat_ior (uint32_t *, uint32_t);
  39660. uint32_t amo_lwat_and (uint32_t *, uint32_t);
  39661. uint32_t amo_lwat_umax (uint32_t *, uint32_t);
  39662. uint32_t amo_lwat_umin (uint32_t *, uint32_t);
  39663. uint32_t amo_lwat_swap (uint32_t *, uint32_t);
  39664. int32_t amo_lwat_sadd (int32_t *, int32_t);
  39665. int32_t amo_lwat_smax (int32_t *, int32_t);
  39666. int32_t amo_lwat_smin (int32_t *, int32_t);
  39667. int32_t amo_lwat_sswap (int32_t *, int32_t);
  39668. uint64_t amo_ldat_add (uint64_t *, uint64_t);
  39669. uint64_t amo_ldat_xor (uint64_t *, uint64_t);
  39670. uint64_t amo_ldat_ior (uint64_t *, uint64_t);
  39671. uint64_t amo_ldat_and (uint64_t *, uint64_t);
  39672. uint64_t amo_ldat_umax (uint64_t *, uint64_t);
  39673. uint64_t amo_ldat_umin (uint64_t *, uint64_t);
  39674. uint64_t amo_ldat_swap (uint64_t *, uint64_t);
  39675. int64_t amo_ldat_sadd (int64_t *, int64_t);
  39676. int64_t amo_ldat_smax (int64_t *, int64_t);
  39677. int64_t amo_ldat_smin (int64_t *, int64_t);
  39678. int64_t amo_ldat_sswap (int64_t *, int64_t);
  39679. void amo_stwat_add (uint32_t *, uint32_t);
  39680. void amo_stwat_xor (uint32_t *, uint32_t);
  39681. void amo_stwat_ior (uint32_t *, uint32_t);
  39682. void amo_stwat_and (uint32_t *, uint32_t);
  39683. void amo_stwat_umax (uint32_t *, uint32_t);
  39684. void amo_stwat_umin (uint32_t *, uint32_t);
  39685. void amo_stwat_sadd (int32_t *, int32_t);
  39686. void amo_stwat_smax (int32_t *, int32_t);
  39687. void amo_stwat_smin (int32_t *, int32_t);
  39688. void amo_stdat_add (uint64_t *, uint64_t);
  39689. void amo_stdat_xor (uint64_t *, uint64_t);
  39690. void amo_stdat_ior (uint64_t *, uint64_t);
  39691. void amo_stdat_and (uint64_t *, uint64_t);
  39692. void amo_stdat_umax (uint64_t *, uint64_t);
  39693. void amo_stdat_umin (uint64_t *, uint64_t);
  39694. void amo_stdat_sadd (int64_t *, int64_t);
  39695. void amo_stdat_smax (int64_t *, int64_t);
  39696. void amo_stdat_smin (int64_t *, int64_t);
  39697. 
  39698. File: gcc.info, Node: RX Built-in Functions, Next: S/390 System z Built-in Functions, Prev: PowerPC Atomic Memory Operation Functions, Up: Target Builtins
  39699. 6.60.25 RX Built-in Functions
  39700. -----------------------------
  39701. GCC supports some of the RX instructions which cannot be expressed in
  39702. the C programming language via the use of built-in functions. The
  39703. following functions are supported:
  39704. -- Built-in Function: void __builtin_rx_brk (void)
  39705. Generates the 'brk' machine instruction.
  39706. -- Built-in Function: void __builtin_rx_clrpsw (int)
  39707. Generates the 'clrpsw' machine instruction to clear the specified
  39708. bit in the processor status word.
  39709. -- Built-in Function: void __builtin_rx_int (int)
  39710. Generates the 'int' machine instruction to generate an interrupt
  39711. with the specified value.
  39712. -- Built-in Function: void __builtin_rx_machi (int, int)
  39713. Generates the 'machi' machine instruction to add the result of
  39714. multiplying the top 16 bits of the two arguments into the
  39715. accumulator.
  39716. -- Built-in Function: void __builtin_rx_maclo (int, int)
  39717. Generates the 'maclo' machine instruction to add the result of
  39718. multiplying the bottom 16 bits of the two arguments into the
  39719. accumulator.
  39720. -- Built-in Function: void __builtin_rx_mulhi (int, int)
  39721. Generates the 'mulhi' machine instruction to place the result of
  39722. multiplying the top 16 bits of the two arguments into the
  39723. accumulator.
  39724. -- Built-in Function: void __builtin_rx_mullo (int, int)
  39725. Generates the 'mullo' machine instruction to place the result of
  39726. multiplying the bottom 16 bits of the two arguments into the
  39727. accumulator.
  39728. -- Built-in Function: int __builtin_rx_mvfachi (void)
  39729. Generates the 'mvfachi' machine instruction to read the top 32 bits
  39730. of the accumulator.
  39731. -- Built-in Function: int __builtin_rx_mvfacmi (void)
  39732. Generates the 'mvfacmi' machine instruction to read the middle 32
  39733. bits of the accumulator.
  39734. -- Built-in Function: int __builtin_rx_mvfc (int)
  39735. Generates the 'mvfc' machine instruction which reads the control
  39736. register specified in its argument and returns its value.
  39737. -- Built-in Function: void __builtin_rx_mvtachi (int)
  39738. Generates the 'mvtachi' machine instruction to set the top 32 bits
  39739. of the accumulator.
  39740. -- Built-in Function: void __builtin_rx_mvtaclo (int)
  39741. Generates the 'mvtaclo' machine instruction to set the bottom 32
  39742. bits of the accumulator.
  39743. -- Built-in Function: void __builtin_rx_mvtc (int reg, int val)
  39744. Generates the 'mvtc' machine instruction which sets control
  39745. register number 'reg' to 'val'.
  39746. -- Built-in Function: void __builtin_rx_mvtipl (int)
  39747. Generates the 'mvtipl' machine instruction set the interrupt
  39748. priority level.
  39749. -- Built-in Function: void __builtin_rx_racw (int)
  39750. Generates the 'racw' machine instruction to round the accumulator
  39751. according to the specified mode.
  39752. -- Built-in Function: int __builtin_rx_revw (int)
  39753. Generates the 'revw' machine instruction which swaps the bytes in
  39754. the argument so that bits 0-7 now occupy bits 8-15 and vice versa,
  39755. and also bits 16-23 occupy bits 24-31 and vice versa.
  39756. -- Built-in Function: void __builtin_rx_rmpa (void)
  39757. Generates the 'rmpa' machine instruction which initiates a repeated
  39758. multiply and accumulate sequence.
  39759. -- Built-in Function: void __builtin_rx_round (float)
  39760. Generates the 'round' machine instruction which returns the
  39761. floating-point argument rounded according to the current rounding
  39762. mode set in the floating-point status word register.
  39763. -- Built-in Function: int __builtin_rx_sat (int)
  39764. Generates the 'sat' machine instruction which returns the saturated
  39765. value of the argument.
  39766. -- Built-in Function: void __builtin_rx_setpsw (int)
  39767. Generates the 'setpsw' machine instruction to set the specified bit
  39768. in the processor status word.
  39769. -- Built-in Function: void __builtin_rx_wait (void)
  39770. Generates the 'wait' machine instruction.
  39771. 
  39772. File: gcc.info, Node: S/390 System z Built-in Functions, Next: SH Built-in Functions, Prev: RX Built-in Functions, Up: Target Builtins
  39773. 6.60.26 S/390 System z Built-in Functions
  39774. -----------------------------------------
  39775. -- Built-in Function: int __builtin_tbegin (void*)
  39776. Generates the 'tbegin' machine instruction starting a
  39777. non-constrained hardware transaction. If the parameter is non-NULL
  39778. the memory area is used to store the transaction diagnostic buffer
  39779. and will be passed as first operand to 'tbegin'. This buffer can
  39780. be defined using the 'struct __htm_tdb' C struct defined in
  39781. 'htmintrin.h' and must reside on a double-word boundary. The
  39782. second tbegin operand is set to '0xff0c'. This enables
  39783. save/restore of all GPRs and disables aborts for FPR and AR
  39784. manipulations inside the transaction body. The condition code set
  39785. by the tbegin instruction is returned as integer value. The tbegin
  39786. instruction by definition overwrites the content of all FPRs. The
  39787. compiler will generate code which saves and restores the FPRs. For
  39788. soft-float code it is recommended to used the '*_nofloat' variant.
  39789. In order to prevent a TDB from being written it is required to pass
  39790. a constant zero value as parameter. Passing a zero value through a
  39791. variable is not sufficient. Although modifications of access
  39792. registers inside the transaction will not trigger an transaction
  39793. abort it is not supported to actually modify them. Access
  39794. registers do not get saved when entering a transaction. They will
  39795. have undefined state when reaching the abort code.
  39796. Macros for the possible return codes of tbegin are defined in the
  39797. 'htmintrin.h' header file:
  39798. '_HTM_TBEGIN_STARTED'
  39799. 'tbegin' has been executed as part of normal processing. The
  39800. transaction body is supposed to be executed.
  39801. '_HTM_TBEGIN_INDETERMINATE'
  39802. The transaction was aborted due to an indeterminate condition which
  39803. might be persistent.
  39804. '_HTM_TBEGIN_TRANSIENT'
  39805. The transaction aborted due to a transient failure. The
  39806. transaction should be re-executed in that case.
  39807. '_HTM_TBEGIN_PERSISTENT'
  39808. The transaction aborted due to a persistent failure. Re-execution
  39809. under same circumstances will not be productive.
  39810. -- Macro: _HTM_FIRST_USER_ABORT_CODE
  39811. The '_HTM_FIRST_USER_ABORT_CODE' defined in 'htmintrin.h' specifies
  39812. the first abort code which can be used for '__builtin_tabort'.
  39813. Values below this threshold are reserved for machine use.
  39814. -- Data type: struct __htm_tdb
  39815. The 'struct __htm_tdb' defined in 'htmintrin.h' describes the
  39816. structure of the transaction diagnostic block as specified in the
  39817. Principles of Operation manual chapter 5-91.
  39818. -- Built-in Function: int __builtin_tbegin_nofloat (void*)
  39819. Same as '__builtin_tbegin' but without FPR saves and restores.
  39820. Using this variant in code making use of FPRs will leave the FPRs
  39821. in undefined state when entering the transaction abort handler
  39822. code.
  39823. -- Built-in Function: int __builtin_tbegin_retry (void*, int)
  39824. In addition to '__builtin_tbegin' a loop for transient failures is
  39825. generated. If tbegin returns a condition code of 2 the transaction
  39826. will be retried as often as specified in the second argument. The
  39827. perform processor assist instruction is used to tell the CPU about
  39828. the number of fails so far.
  39829. -- Built-in Function: int __builtin_tbegin_retry_nofloat (void*, int)
  39830. Same as '__builtin_tbegin_retry' but without FPR saves and
  39831. restores. Using this variant in code making use of FPRs will leave
  39832. the FPRs in undefined state when entering the transaction abort
  39833. handler code.
  39834. -- Built-in Function: void __builtin_tbeginc (void)
  39835. Generates the 'tbeginc' machine instruction starting a constrained
  39836. hardware transaction. The second operand is set to '0xff08'.
  39837. -- Built-in Function: int __builtin_tend (void)
  39838. Generates the 'tend' machine instruction finishing a transaction
  39839. and making the changes visible to other threads. The condition
  39840. code generated by tend is returned as integer value.
  39841. -- Built-in Function: void __builtin_tabort (int)
  39842. Generates the 'tabort' machine instruction with the specified abort
  39843. code. Abort codes from 0 through 255 are reserved and will result
  39844. in an error message.
  39845. -- Built-in Function: void __builtin_tx_assist (int)
  39846. Generates the 'ppa rX,rY,1' machine instruction. Where the integer
  39847. parameter is loaded into rX and a value of zero is loaded into rY.
  39848. The integer parameter specifies the number of times the transaction
  39849. repeatedly aborted.
  39850. -- Built-in Function: int __builtin_tx_nesting_depth (void)
  39851. Generates the 'etnd' machine instruction. The current nesting
  39852. depth is returned as integer value. For a nesting depth of 0 the
  39853. code is not executed as part of an transaction.
  39854. -- Built-in Function: void __builtin_non_tx_store (uint64_t *,
  39855. uint64_t)
  39856. Generates the 'ntstg' machine instruction. The second argument is
  39857. written to the first arguments location. The store operation will
  39858. not be rolled-back in case of an transaction abort.
  39859. 
  39860. 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
  39861. 6.60.27 SH Built-in Functions
  39862. -----------------------------
  39863. The following built-in functions are supported on the SH1, SH2, SH3 and
  39864. SH4 families of processors:
  39865. -- Built-in Function: void __builtin_set_thread_pointer (void *PTR)
  39866. Sets the 'GBR' register to the specified value PTR. This is
  39867. usually used by system code that manages threads and execution
  39868. contexts. The compiler normally does not generate code that
  39869. modifies the contents of 'GBR' and thus the value is preserved
  39870. across function calls. Changing the 'GBR' value in user code must
  39871. be done with caution, since the compiler might use 'GBR' in order
  39872. to access thread local variables.
  39873. -- Built-in Function: void * __builtin_thread_pointer (void)
  39874. Returns the value that is currently set in the 'GBR' register.
  39875. Memory loads and stores that use the thread pointer as a base
  39876. address are turned into 'GBR' based displacement loads and stores,
  39877. if possible. For example:
  39878. struct my_tcb
  39879. {
  39880. int a, b, c, d, e;
  39881. };
  39882. int get_tcb_value (void)
  39883. {
  39884. // Generate 'mov.l @(8,gbr),r0' instruction
  39885. return ((my_tcb*)__builtin_thread_pointer ())->c;
  39886. }
  39887. -- Built-in Function: unsigned int __builtin_sh_get_fpscr (void)
  39888. Returns the value that is currently set in the 'FPSCR' register.
  39889. -- Built-in Function: void __builtin_sh_set_fpscr (unsigned int VAL)
  39890. Sets the 'FPSCR' register to the specified value VAL, while
  39891. preserving the current values of the FR, SZ and PR bits.
  39892. 
  39893. File: gcc.info, Node: SPARC VIS Built-in Functions, Next: SPU Built-in Functions, Prev: SH Built-in Functions, Up: Target Builtins
  39894. 6.60.28 SPARC VIS Built-in Functions
  39895. ------------------------------------
  39896. GCC supports SIMD operations on the SPARC using both the generic vector
  39897. extensions (*note Vector Extensions::) as well as built-in functions for
  39898. the SPARC Visual Instruction Set (VIS). When you use the '-mvis' switch,
  39899. the VIS extension is exposed as the following built-in functions:
  39900. typedef int v1si __attribute__ ((vector_size (4)));
  39901. typedef int v2si __attribute__ ((vector_size (8)));
  39902. typedef short v4hi __attribute__ ((vector_size (8)));
  39903. typedef short v2hi __attribute__ ((vector_size (4)));
  39904. typedef unsigned char v8qi __attribute__ ((vector_size (8)));
  39905. typedef unsigned char v4qi __attribute__ ((vector_size (4)));
  39906. void __builtin_vis_write_gsr (int64_t);
  39907. int64_t __builtin_vis_read_gsr (void);
  39908. void * __builtin_vis_alignaddr (void *, long);
  39909. void * __builtin_vis_alignaddrl (void *, long);
  39910. int64_t __builtin_vis_faligndatadi (int64_t, int64_t);
  39911. v2si __builtin_vis_faligndatav2si (v2si, v2si);
  39912. v4hi __builtin_vis_faligndatav4hi (v4si, v4si);
  39913. v8qi __builtin_vis_faligndatav8qi (v8qi, v8qi);
  39914. v4hi __builtin_vis_fexpand (v4qi);
  39915. v4hi __builtin_vis_fmul8x16 (v4qi, v4hi);
  39916. v4hi __builtin_vis_fmul8x16au (v4qi, v2hi);
  39917. v4hi __builtin_vis_fmul8x16al (v4qi, v2hi);
  39918. v4hi __builtin_vis_fmul8sux16 (v8qi, v4hi);
  39919. v4hi __builtin_vis_fmul8ulx16 (v8qi, v4hi);
  39920. v2si __builtin_vis_fmuld8sux16 (v4qi, v2hi);
  39921. v2si __builtin_vis_fmuld8ulx16 (v4qi, v2hi);
  39922. v4qi __builtin_vis_fpack16 (v4hi);
  39923. v8qi __builtin_vis_fpack32 (v2si, v8qi);
  39924. v2hi __builtin_vis_fpackfix (v2si);
  39925. v8qi __builtin_vis_fpmerge (v4qi, v4qi);
  39926. int64_t __builtin_vis_pdist (v8qi, v8qi, int64_t);
  39927. long __builtin_vis_edge8 (void *, void *);
  39928. long __builtin_vis_edge8l (void *, void *);
  39929. long __builtin_vis_edge16 (void *, void *);
  39930. long __builtin_vis_edge16l (void *, void *);
  39931. long __builtin_vis_edge32 (void *, void *);
  39932. long __builtin_vis_edge32l (void *, void *);
  39933. long __builtin_vis_fcmple16 (v4hi, v4hi);
  39934. long __builtin_vis_fcmple32 (v2si, v2si);
  39935. long __builtin_vis_fcmpne16 (v4hi, v4hi);
  39936. long __builtin_vis_fcmpne32 (v2si, v2si);
  39937. long __builtin_vis_fcmpgt16 (v4hi, v4hi);
  39938. long __builtin_vis_fcmpgt32 (v2si, v2si);
  39939. long __builtin_vis_fcmpeq16 (v4hi, v4hi);
  39940. long __builtin_vis_fcmpeq32 (v2si, v2si);
  39941. v4hi __builtin_vis_fpadd16 (v4hi, v4hi);
  39942. v2hi __builtin_vis_fpadd16s (v2hi, v2hi);
  39943. v2si __builtin_vis_fpadd32 (v2si, v2si);
  39944. v1si __builtin_vis_fpadd32s (v1si, v1si);
  39945. v4hi __builtin_vis_fpsub16 (v4hi, v4hi);
  39946. v2hi __builtin_vis_fpsub16s (v2hi, v2hi);
  39947. v2si __builtin_vis_fpsub32 (v2si, v2si);
  39948. v1si __builtin_vis_fpsub32s (v1si, v1si);
  39949. long __builtin_vis_array8 (long, long);
  39950. long __builtin_vis_array16 (long, long);
  39951. long __builtin_vis_array32 (long, long);
  39952. When you use the '-mvis2' switch, the VIS version 2.0 built-in
  39953. functions also become available:
  39954. long __builtin_vis_bmask (long, long);
  39955. int64_t __builtin_vis_bshuffledi (int64_t, int64_t);
  39956. v2si __builtin_vis_bshufflev2si (v2si, v2si);
  39957. v4hi __builtin_vis_bshufflev2si (v4hi, v4hi);
  39958. v8qi __builtin_vis_bshufflev2si (v8qi, v8qi);
  39959. long __builtin_vis_edge8n (void *, void *);
  39960. long __builtin_vis_edge8ln (void *, void *);
  39961. long __builtin_vis_edge16n (void *, void *);
  39962. long __builtin_vis_edge16ln (void *, void *);
  39963. long __builtin_vis_edge32n (void *, void *);
  39964. long __builtin_vis_edge32ln (void *, void *);
  39965. When you use the '-mvis3' switch, the VIS version 3.0 built-in
  39966. functions also become available:
  39967. void __builtin_vis_cmask8 (long);
  39968. void __builtin_vis_cmask16 (long);
  39969. void __builtin_vis_cmask32 (long);
  39970. v4hi __builtin_vis_fchksm16 (v4hi, v4hi);
  39971. v4hi __builtin_vis_fsll16 (v4hi, v4hi);
  39972. v4hi __builtin_vis_fslas16 (v4hi, v4hi);
  39973. v4hi __builtin_vis_fsrl16 (v4hi, v4hi);
  39974. v4hi __builtin_vis_fsra16 (v4hi, v4hi);
  39975. v2si __builtin_vis_fsll16 (v2si, v2si);
  39976. v2si __builtin_vis_fslas16 (v2si, v2si);
  39977. v2si __builtin_vis_fsrl16 (v2si, v2si);
  39978. v2si __builtin_vis_fsra16 (v2si, v2si);
  39979. long __builtin_vis_pdistn (v8qi, v8qi);
  39980. v4hi __builtin_vis_fmean16 (v4hi, v4hi);
  39981. int64_t __builtin_vis_fpadd64 (int64_t, int64_t);
  39982. int64_t __builtin_vis_fpsub64 (int64_t, int64_t);
  39983. v4hi __builtin_vis_fpadds16 (v4hi, v4hi);
  39984. v2hi __builtin_vis_fpadds16s (v2hi, v2hi);
  39985. v4hi __builtin_vis_fpsubs16 (v4hi, v4hi);
  39986. v2hi __builtin_vis_fpsubs16s (v2hi, v2hi);
  39987. v2si __builtin_vis_fpadds32 (v2si, v2si);
  39988. v1si __builtin_vis_fpadds32s (v1si, v1si);
  39989. v2si __builtin_vis_fpsubs32 (v2si, v2si);
  39990. v1si __builtin_vis_fpsubs32s (v1si, v1si);
  39991. long __builtin_vis_fucmple8 (v8qi, v8qi);
  39992. long __builtin_vis_fucmpne8 (v8qi, v8qi);
  39993. long __builtin_vis_fucmpgt8 (v8qi, v8qi);
  39994. long __builtin_vis_fucmpeq8 (v8qi, v8qi);
  39995. float __builtin_vis_fhadds (float, float);
  39996. double __builtin_vis_fhaddd (double, double);
  39997. float __builtin_vis_fhsubs (float, float);
  39998. double __builtin_vis_fhsubd (double, double);
  39999. float __builtin_vis_fnhadds (float, float);
  40000. double __builtin_vis_fnhaddd (double, double);
  40001. int64_t __builtin_vis_umulxhi (int64_t, int64_t);
  40002. int64_t __builtin_vis_xmulx (int64_t, int64_t);
  40003. int64_t __builtin_vis_xmulxhi (int64_t, int64_t);
  40004. When you use the '-mvis4' switch, the VIS version 4.0 built-in
  40005. functions also become available:
  40006. v8qi __builtin_vis_fpadd8 (v8qi, v8qi);
  40007. v8qi __builtin_vis_fpadds8 (v8qi, v8qi);
  40008. v8qi __builtin_vis_fpaddus8 (v8qi, v8qi);
  40009. v4hi __builtin_vis_fpaddus16 (v4hi, v4hi);
  40010. v8qi __builtin_vis_fpsub8 (v8qi, v8qi);
  40011. v8qi __builtin_vis_fpsubs8 (v8qi, v8qi);
  40012. v8qi __builtin_vis_fpsubus8 (v8qi, v8qi);
  40013. v4hi __builtin_vis_fpsubus16 (v4hi, v4hi);
  40014. long __builtin_vis_fpcmple8 (v8qi, v8qi);
  40015. long __builtin_vis_fpcmpgt8 (v8qi, v8qi);
  40016. long __builtin_vis_fpcmpule16 (v4hi, v4hi);
  40017. long __builtin_vis_fpcmpugt16 (v4hi, v4hi);
  40018. long __builtin_vis_fpcmpule32 (v2si, v2si);
  40019. long __builtin_vis_fpcmpugt32 (v2si, v2si);
  40020. v8qi __builtin_vis_fpmax8 (v8qi, v8qi);
  40021. v4hi __builtin_vis_fpmax16 (v4hi, v4hi);
  40022. v2si __builtin_vis_fpmax32 (v2si, v2si);
  40023. v8qi __builtin_vis_fpmaxu8 (v8qi, v8qi);
  40024. v4hi __builtin_vis_fpmaxu16 (v4hi, v4hi);
  40025. v2si __builtin_vis_fpmaxu32 (v2si, v2si);
  40026. v8qi __builtin_vis_fpmin8 (v8qi, v8qi);
  40027. v4hi __builtin_vis_fpmin16 (v4hi, v4hi);
  40028. v2si __builtin_vis_fpmin32 (v2si, v2si);
  40029. v8qi __builtin_vis_fpminu8 (v8qi, v8qi);
  40030. v4hi __builtin_vis_fpminu16 (v4hi, v4hi);
  40031. v2si __builtin_vis_fpminu32 (v2si, v2si);
  40032. When you use the '-mvis4b' switch, the VIS version 4.0B built-in
  40033. functions also become available:
  40034. v8qi __builtin_vis_dictunpack8 (double, int);
  40035. v4hi __builtin_vis_dictunpack16 (double, int);
  40036. v2si __builtin_vis_dictunpack32 (double, int);
  40037. long __builtin_vis_fpcmple8shl (v8qi, v8qi, int);
  40038. long __builtin_vis_fpcmpgt8shl (v8qi, v8qi, int);
  40039. long __builtin_vis_fpcmpeq8shl (v8qi, v8qi, int);
  40040. long __builtin_vis_fpcmpne8shl (v8qi, v8qi, int);
  40041. long __builtin_vis_fpcmple16shl (v4hi, v4hi, int);
  40042. long __builtin_vis_fpcmpgt16shl (v4hi, v4hi, int);
  40043. long __builtin_vis_fpcmpeq16shl (v4hi, v4hi, int);
  40044. long __builtin_vis_fpcmpne16shl (v4hi, v4hi, int);
  40045. long __builtin_vis_fpcmple32shl (v2si, v2si, int);
  40046. long __builtin_vis_fpcmpgt32shl (v2si, v2si, int);
  40047. long __builtin_vis_fpcmpeq32shl (v2si, v2si, int);
  40048. long __builtin_vis_fpcmpne32shl (v2si, v2si, int);
  40049. long __builtin_vis_fpcmpule8shl (v8qi, v8qi, int);
  40050. long __builtin_vis_fpcmpugt8shl (v8qi, v8qi, int);
  40051. long __builtin_vis_fpcmpule16shl (v4hi, v4hi, int);
  40052. long __builtin_vis_fpcmpugt16shl (v4hi, v4hi, int);
  40053. long __builtin_vis_fpcmpule32shl (v2si, v2si, int);
  40054. long __builtin_vis_fpcmpugt32shl (v2si, v2si, int);
  40055. long __builtin_vis_fpcmpde8shl (v8qi, v8qi, int);
  40056. long __builtin_vis_fpcmpde16shl (v4hi, v4hi, int);
  40057. long __builtin_vis_fpcmpde32shl (v2si, v2si, int);
  40058. long __builtin_vis_fpcmpur8shl (v8qi, v8qi, int);
  40059. long __builtin_vis_fpcmpur16shl (v4hi, v4hi, int);
  40060. long __builtin_vis_fpcmpur32shl (v2si, v2si, int);
  40061. 
  40062. File: gcc.info, Node: SPU Built-in Functions, Next: TI C6X Built-in Functions, Prev: SPARC VIS Built-in Functions, Up: Target Builtins
  40063. 6.60.29 SPU Built-in Functions
  40064. ------------------------------
  40065. GCC provides extensions for the SPU processor as described in the
  40066. Sony/Toshiba/IBM SPU Language Extensions Specification. GCC's
  40067. implementation differs in several ways.
  40068. * The optional extension of specifying vector constants in
  40069. parentheses is not supported.
  40070. * A vector initializer requires no cast if the vector constant is of
  40071. the same type as the variable it is initializing.
  40072. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  40073. type is the default signedness of the base type. The default
  40074. varies depending on the operating system, so a portable program
  40075. should always specify the signedness.
  40076. * By default, the keyword '__vector' is added. The macro 'vector' is
  40077. defined in '<spu_intrinsics.h>' and can be undefined.
  40078. * GCC allows using a 'typedef' name as the type specifier for a
  40079. vector type.
  40080. * For C, overloaded functions are implemented with macros so the
  40081. following does not work:
  40082. spu_add ((vector signed int){1, 2, 3, 4}, foo);
  40083. Since 'spu_add' is a macro, the vector constant in the example is
  40084. treated as four separate arguments. Wrap the entire argument in
  40085. parentheses for this to work.
  40086. * The extended version of '__builtin_expect' is not supported.
  40087. _Note:_ Only the interface described in the aforementioned
  40088. specification is supported. Internally, GCC uses built-in functions to
  40089. implement the required functionality, but these are not supported and
  40090. are subject to change without notice.
  40091. 
  40092. File: gcc.info, Node: TI C6X Built-in Functions, Next: TILE-Gx Built-in Functions, Prev: SPU Built-in Functions, Up: Target Builtins
  40093. 6.60.30 TI C6X Built-in Functions
  40094. ---------------------------------
  40095. GCC provides intrinsics to access certain instructions of the TI C6X
  40096. processors. These intrinsics, listed below, are available after
  40097. inclusion of the 'c6x_intrinsics.h' header file. They map directly to
  40098. C6X instructions.
  40099. int _sadd (int, int)
  40100. int _ssub (int, int)
  40101. int _sadd2 (int, int)
  40102. int _ssub2 (int, int)
  40103. long long _mpy2 (int, int)
  40104. long long _smpy2 (int, int)
  40105. int _add4 (int, int)
  40106. int _sub4 (int, int)
  40107. int _saddu4 (int, int)
  40108. int _smpy (int, int)
  40109. int _smpyh (int, int)
  40110. int _smpyhl (int, int)
  40111. int _smpylh (int, int)
  40112. int _sshl (int, int)
  40113. int _subc (int, int)
  40114. int _avg2 (int, int)
  40115. int _avgu4 (int, int)
  40116. int _clrr (int, int)
  40117. int _extr (int, int)
  40118. int _extru (int, int)
  40119. int _abs (int)
  40120. int _abs2 (int)
  40121. 
  40122. File: gcc.info, Node: TILE-Gx Built-in Functions, Next: TILEPro Built-in Functions, Prev: TI C6X Built-in Functions, Up: Target Builtins
  40123. 6.60.31 TILE-Gx Built-in Functions
  40124. ----------------------------------
  40125. GCC provides intrinsics to access every instruction of the TILE-Gx
  40126. processor. The intrinsics are of the form:
  40127. unsigned long long __insn_OP (...)
  40128. Where OP is the name of the instruction. Refer to the ISA manual for
  40129. the complete list of instructions.
  40130. GCC also provides intrinsics to directly access the network registers.
  40131. The intrinsics are:
  40132. unsigned long long __tile_idn0_receive (void)
  40133. unsigned long long __tile_idn1_receive (void)
  40134. unsigned long long __tile_udn0_receive (void)
  40135. unsigned long long __tile_udn1_receive (void)
  40136. unsigned long long __tile_udn2_receive (void)
  40137. unsigned long long __tile_udn3_receive (void)
  40138. void __tile_idn_send (unsigned long long)
  40139. void __tile_udn_send (unsigned long long)
  40140. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  40141. that no network operations before it are reordered with those after it.
  40142. 
  40143. File: gcc.info, Node: TILEPro Built-in Functions, Next: x86 Built-in Functions, Prev: TILE-Gx Built-in Functions, Up: Target Builtins
  40144. 6.60.32 TILEPro Built-in Functions
  40145. ----------------------------------
  40146. GCC provides intrinsics to access every instruction of the TILEPro
  40147. processor. The intrinsics are of the form:
  40148. unsigned __insn_OP (...)
  40149. where OP is the name of the instruction. Refer to the ISA manual for
  40150. the complete list of instructions.
  40151. GCC also provides intrinsics to directly access the network registers.
  40152. The intrinsics are:
  40153. unsigned __tile_idn0_receive (void)
  40154. unsigned __tile_idn1_receive (void)
  40155. unsigned __tile_sn_receive (void)
  40156. unsigned __tile_udn0_receive (void)
  40157. unsigned __tile_udn1_receive (void)
  40158. unsigned __tile_udn2_receive (void)
  40159. unsigned __tile_udn3_receive (void)
  40160. void __tile_idn_send (unsigned)
  40161. void __tile_sn_send (unsigned)
  40162. void __tile_udn_send (unsigned)
  40163. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  40164. that no network operations before it are reordered with those after it.
  40165. 
  40166. File: gcc.info, Node: x86 Built-in Functions, Next: x86 transactional memory intrinsics, Prev: TILEPro Built-in Functions, Up: Target Builtins
  40167. 6.60.33 x86 Built-in Functions
  40168. ------------------------------
  40169. These built-in functions are available for the x86-32 and x86-64 family
  40170. of computers, depending on the command-line switches used.
  40171. If you specify command-line switches such as '-msse', the compiler
  40172. could use the extended instruction sets even if the built-ins are not
  40173. used explicitly in the program. For this reason, applications that
  40174. perform run-time CPU detection must compile separate files for each
  40175. supported architecture, using the appropriate flags. In particular, the
  40176. file containing the CPU detection code should be compiled without these
  40177. options.
  40178. The following machine modes are available for use with MMX built-in
  40179. functions (*note Vector Extensions::): 'V2SI' for a vector of two 32-bit
  40180. integers, 'V4HI' for a vector of four 16-bit integers, and 'V8QI' for a
  40181. vector of eight 8-bit integers. Some of the built-in functions operate
  40182. on MMX registers as a whole 64-bit entity, these use 'V1DI' as their
  40183. mode.
  40184. If 3DNow! extensions are enabled, 'V2SF' is used as a mode for a vector
  40185. of two 32-bit floating-point values.
  40186. If SSE extensions are enabled, 'V4SF' is used for a vector of four
  40187. 32-bit floating-point values. Some instructions use a vector of four
  40188. 32-bit integers, these use 'V4SI'. Finally, some instructions operate
  40189. on an entire vector register, interpreting it as a 128-bit integer,
  40190. these use mode 'TI'.
  40191. The x86-32 and x86-64 family of processors use additional built-in
  40192. functions for efficient use of 'TF' ('__float128') 128-bit floating
  40193. point and 'TC' 128-bit complex floating-point values.
  40194. The following floating-point built-in functions are always available.
  40195. All of them implement the function that is part of the name.
  40196. __float128 __builtin_fabsq (__float128)
  40197. __float128 __builtin_copysignq (__float128, __float128)
  40198. The following built-in functions are always available.
  40199. '__float128 __builtin_infq (void)'
  40200. Similar to '__builtin_inf', except the return type is '__float128'.
  40201. '__float128 __builtin_huge_valq (void)'
  40202. Similar to '__builtin_huge_val', except the return type is
  40203. '__float128'.
  40204. '__float128 __builtin_nanq (void)'
  40205. Similar to '__builtin_nan', except the return type is '__float128'.
  40206. '__float128 __builtin_nansq (void)'
  40207. Similar to '__builtin_nans', except the return type is
  40208. '__float128'.
  40209. The following built-in function is always available.
  40210. 'void __builtin_ia32_pause (void)'
  40211. Generates the 'pause' machine instruction with a compiler memory
  40212. barrier.
  40213. The following built-in functions are always available and can be used
  40214. to check the target platform type.
  40215. -- Built-in Function: void __builtin_cpu_init (void)
  40216. This function runs the CPU detection code to check the type of CPU
  40217. and the features supported. This built-in function needs to be
  40218. invoked along with the built-in functions to check CPU type and
  40219. features, '__builtin_cpu_is' and '__builtin_cpu_supports', only
  40220. when used in a function that is executed before any constructors
  40221. are called. The CPU detection code is automatically executed in a
  40222. very high priority constructor.
  40223. For example, this function has to be used in 'ifunc' resolvers that
  40224. check for CPU type using the built-in functions '__builtin_cpu_is'
  40225. and '__builtin_cpu_supports', or in constructors on targets that
  40226. don't support constructor priority.
  40227. static void (*resolve_memcpy (void)) (void)
  40228. {
  40229. // ifunc resolvers fire before constructors, explicitly call the init
  40230. // function.
  40231. __builtin_cpu_init ();
  40232. if (__builtin_cpu_supports ("ssse3"))
  40233. return ssse3_memcpy; // super fast memcpy with ssse3 instructions.
  40234. else
  40235. return default_memcpy;
  40236. }
  40237. void *memcpy (void *, const void *, size_t)
  40238. __attribute__ ((ifunc ("resolve_memcpy")));
  40239. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  40240. This function returns a positive integer if the run-time CPU is of
  40241. type CPUNAME and returns '0' otherwise. The following CPU names
  40242. can be detected:
  40243. 'amd'
  40244. AMD CPU.
  40245. 'intel'
  40246. Intel CPU.
  40247. 'atom'
  40248. Intel Atom CPU.
  40249. 'slm'
  40250. Intel Silvermont CPU.
  40251. 'core2'
  40252. Intel Core 2 CPU.
  40253. 'corei7'
  40254. Intel Core i7 CPU.
  40255. 'nehalem'
  40256. Intel Core i7 Nehalem CPU.
  40257. 'westmere'
  40258. Intel Core i7 Westmere CPU.
  40259. 'sandybridge'
  40260. Intel Core i7 Sandy Bridge CPU.
  40261. 'ivybridge'
  40262. Intel Core i7 Ivy Bridge CPU.
  40263. 'haswell'
  40264. Intel Core i7 Haswell CPU.
  40265. 'broadwell'
  40266. Intel Core i7 Broadwell CPU.
  40267. 'skylake'
  40268. Intel Core i7 Skylake CPU.
  40269. 'skylake-avx512'
  40270. Intel Core i7 Skylake AVX512 CPU.
  40271. 'cannonlake'
  40272. Intel Core i7 Cannon Lake CPU.
  40273. 'icelake-client'
  40274. Intel Core i7 Ice Lake Client CPU.
  40275. 'icelake-server'
  40276. Intel Core i7 Ice Lake Server CPU.
  40277. 'cascadelake'
  40278. Intel Core i7 Cascadelake CPU.
  40279. 'bonnell'
  40280. Intel Atom Bonnell CPU.
  40281. 'silvermont'
  40282. Intel Atom Silvermont CPU.
  40283. 'goldmont'
  40284. Intel Atom Goldmont CPU.
  40285. 'goldmont-plus'
  40286. Intel Atom Goldmont Plus CPU.
  40287. 'tremont'
  40288. Intel Atom Tremont CPU.
  40289. 'knl'
  40290. Intel Knights Landing CPU.
  40291. 'knm'
  40292. Intel Knights Mill CPU.
  40293. 'amdfam10h'
  40294. AMD Family 10h CPU.
  40295. 'barcelona'
  40296. AMD Family 10h Barcelona CPU.
  40297. 'shanghai'
  40298. AMD Family 10h Shanghai CPU.
  40299. 'istanbul'
  40300. AMD Family 10h Istanbul CPU.
  40301. 'btver1'
  40302. AMD Family 14h CPU.
  40303. 'amdfam15h'
  40304. AMD Family 15h CPU.
  40305. 'bdver1'
  40306. AMD Family 15h Bulldozer version 1.
  40307. 'bdver2'
  40308. AMD Family 15h Bulldozer version 2.
  40309. 'bdver3'
  40310. AMD Family 15h Bulldozer version 3.
  40311. 'bdver4'
  40312. AMD Family 15h Bulldozer version 4.
  40313. 'btver2'
  40314. AMD Family 16h CPU.
  40315. 'amdfam17h'
  40316. AMD Family 17h CPU.
  40317. 'znver1'
  40318. AMD Family 17h Zen version 1.
  40319. 'znver2'
  40320. AMD Family 17h Zen version 2.
  40321. Here is an example:
  40322. if (__builtin_cpu_is ("corei7"))
  40323. {
  40324. do_corei7 (); // Core i7 specific implementation.
  40325. }
  40326. else
  40327. {
  40328. do_generic (); // Generic implementation.
  40329. }
  40330. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  40331. This function returns a positive integer if the run-time CPU
  40332. supports FEATURE and returns '0' otherwise. The following features
  40333. can be detected:
  40334. 'cmov'
  40335. CMOV instruction.
  40336. 'mmx'
  40337. MMX instructions.
  40338. 'popcnt'
  40339. POPCNT instruction.
  40340. 'sse'
  40341. SSE instructions.
  40342. 'sse2'
  40343. SSE2 instructions.
  40344. 'sse3'
  40345. SSE3 instructions.
  40346. 'ssse3'
  40347. SSSE3 instructions.
  40348. 'sse4.1'
  40349. SSE4.1 instructions.
  40350. 'sse4.2'
  40351. SSE4.2 instructions.
  40352. 'avx'
  40353. AVX instructions.
  40354. 'avx2'
  40355. AVX2 instructions.
  40356. 'sse4a'
  40357. SSE4A instructions.
  40358. 'fma4'
  40359. FMA4 instructions.
  40360. 'xop'
  40361. XOP instructions.
  40362. 'fma'
  40363. FMA instructions.
  40364. 'avx512f'
  40365. AVX512F instructions.
  40366. 'bmi'
  40367. BMI instructions.
  40368. 'bmi2'
  40369. BMI2 instructions.
  40370. 'aes'
  40371. AES instructions.
  40372. 'pclmul'
  40373. PCLMUL instructions.
  40374. 'avx512vl'
  40375. AVX512VL instructions.
  40376. 'avx512bw'
  40377. AVX512BW instructions.
  40378. 'avx512dq'
  40379. AVX512DQ instructions.
  40380. 'avx512cd'
  40381. AVX512CD instructions.
  40382. 'avx512er'
  40383. AVX512ER instructions.
  40384. 'avx512pf'
  40385. AVX512PF instructions.
  40386. 'avx512vbmi'
  40387. AVX512VBMI instructions.
  40388. 'avx512ifma'
  40389. AVX512IFMA instructions.
  40390. 'avx5124vnniw'
  40391. AVX5124VNNIW instructions.
  40392. 'avx5124fmaps'
  40393. AVX5124FMAPS instructions.
  40394. 'avx512vpopcntdq'
  40395. AVX512VPOPCNTDQ instructions.
  40396. 'avx512vbmi2'
  40397. AVX512VBMI2 instructions.
  40398. 'gfni'
  40399. GFNI instructions.
  40400. 'vpclmulqdq'
  40401. VPCLMULQDQ instructions.
  40402. 'avx512vnni'
  40403. AVX512VNNI instructions.
  40404. 'avx512bitalg'
  40405. AVX512BITALG instructions.
  40406. Here is an example:
  40407. if (__builtin_cpu_supports ("popcnt"))
  40408. {
  40409. asm("popcnt %1,%0" : "=r"(count) : "rm"(n) : "cc");
  40410. }
  40411. else
  40412. {
  40413. count = generic_countbits (n); //generic implementation.
  40414. }
  40415. The following built-in functions are made available by '-mmmx'. All of
  40416. them generate the machine instruction that is part of the name.
  40417. v8qi __builtin_ia32_paddb (v8qi, v8qi)
  40418. v4hi __builtin_ia32_paddw (v4hi, v4hi)
  40419. v2si __builtin_ia32_paddd (v2si, v2si)
  40420. v8qi __builtin_ia32_psubb (v8qi, v8qi)
  40421. v4hi __builtin_ia32_psubw (v4hi, v4hi)
  40422. v2si __builtin_ia32_psubd (v2si, v2si)
  40423. v8qi __builtin_ia32_paddsb (v8qi, v8qi)
  40424. v4hi __builtin_ia32_paddsw (v4hi, v4hi)
  40425. v8qi __builtin_ia32_psubsb (v8qi, v8qi)
  40426. v4hi __builtin_ia32_psubsw (v4hi, v4hi)
  40427. v8qi __builtin_ia32_paddusb (v8qi, v8qi)
  40428. v4hi __builtin_ia32_paddusw (v4hi, v4hi)
  40429. v8qi __builtin_ia32_psubusb (v8qi, v8qi)
  40430. v4hi __builtin_ia32_psubusw (v4hi, v4hi)
  40431. v4hi __builtin_ia32_pmullw (v4hi, v4hi)
  40432. v4hi __builtin_ia32_pmulhw (v4hi, v4hi)
  40433. di __builtin_ia32_pand (di, di)
  40434. di __builtin_ia32_pandn (di,di)
  40435. di __builtin_ia32_por (di, di)
  40436. di __builtin_ia32_pxor (di, di)
  40437. v8qi __builtin_ia32_pcmpeqb (v8qi, v8qi)
  40438. v4hi __builtin_ia32_pcmpeqw (v4hi, v4hi)
  40439. v2si __builtin_ia32_pcmpeqd (v2si, v2si)
  40440. v8qi __builtin_ia32_pcmpgtb (v8qi, v8qi)
  40441. v4hi __builtin_ia32_pcmpgtw (v4hi, v4hi)
  40442. v2si __builtin_ia32_pcmpgtd (v2si, v2si)
  40443. v8qi __builtin_ia32_punpckhbw (v8qi, v8qi)
  40444. v4hi __builtin_ia32_punpckhwd (v4hi, v4hi)
  40445. v2si __builtin_ia32_punpckhdq (v2si, v2si)
  40446. v8qi __builtin_ia32_punpcklbw (v8qi, v8qi)
  40447. v4hi __builtin_ia32_punpcklwd (v4hi, v4hi)
  40448. v2si __builtin_ia32_punpckldq (v2si, v2si)
  40449. v8qi __builtin_ia32_packsswb (v4hi, v4hi)
  40450. v4hi __builtin_ia32_packssdw (v2si, v2si)
  40451. v8qi __builtin_ia32_packuswb (v4hi, v4hi)
  40452. v4hi __builtin_ia32_psllw (v4hi, v4hi)
  40453. v2si __builtin_ia32_pslld (v2si, v2si)
  40454. v1di __builtin_ia32_psllq (v1di, v1di)
  40455. v4hi __builtin_ia32_psrlw (v4hi, v4hi)
  40456. v2si __builtin_ia32_psrld (v2si, v2si)
  40457. v1di __builtin_ia32_psrlq (v1di, v1di)
  40458. v4hi __builtin_ia32_psraw (v4hi, v4hi)
  40459. v2si __builtin_ia32_psrad (v2si, v2si)
  40460. v4hi __builtin_ia32_psllwi (v4hi, int)
  40461. v2si __builtin_ia32_pslldi (v2si, int)
  40462. v1di __builtin_ia32_psllqi (v1di, int)
  40463. v4hi __builtin_ia32_psrlwi (v4hi, int)
  40464. v2si __builtin_ia32_psrldi (v2si, int)
  40465. v1di __builtin_ia32_psrlqi (v1di, int)
  40466. v4hi __builtin_ia32_psrawi (v4hi, int)
  40467. v2si __builtin_ia32_psradi (v2si, int)
  40468. The following built-in functions are made available either with
  40469. '-msse', or with '-m3dnowa'. All of them generate the machine
  40470. instruction that is part of the name.
  40471. v4hi __builtin_ia32_pmulhuw (v4hi, v4hi)
  40472. v8qi __builtin_ia32_pavgb (v8qi, v8qi)
  40473. v4hi __builtin_ia32_pavgw (v4hi, v4hi)
  40474. v1di __builtin_ia32_psadbw (v8qi, v8qi)
  40475. v8qi __builtin_ia32_pmaxub (v8qi, v8qi)
  40476. v4hi __builtin_ia32_pmaxsw (v4hi, v4hi)
  40477. v8qi __builtin_ia32_pminub (v8qi, v8qi)
  40478. v4hi __builtin_ia32_pminsw (v4hi, v4hi)
  40479. int __builtin_ia32_pmovmskb (v8qi)
  40480. void __builtin_ia32_maskmovq (v8qi, v8qi, char *)
  40481. void __builtin_ia32_movntq (di *, di)
  40482. void __builtin_ia32_sfence (void)
  40483. The following built-in functions are available when '-msse' is used.
  40484. All of them generate the machine instruction that is part of the name.
  40485. int __builtin_ia32_comieq (v4sf, v4sf)
  40486. int __builtin_ia32_comineq (v4sf, v4sf)
  40487. int __builtin_ia32_comilt (v4sf, v4sf)
  40488. int __builtin_ia32_comile (v4sf, v4sf)
  40489. int __builtin_ia32_comigt (v4sf, v4sf)
  40490. int __builtin_ia32_comige (v4sf, v4sf)
  40491. int __builtin_ia32_ucomieq (v4sf, v4sf)
  40492. int __builtin_ia32_ucomineq (v4sf, v4sf)
  40493. int __builtin_ia32_ucomilt (v4sf, v4sf)
  40494. int __builtin_ia32_ucomile (v4sf, v4sf)
  40495. int __builtin_ia32_ucomigt (v4sf, v4sf)
  40496. int __builtin_ia32_ucomige (v4sf, v4sf)
  40497. v4sf __builtin_ia32_addps (v4sf, v4sf)
  40498. v4sf __builtin_ia32_subps (v4sf, v4sf)
  40499. v4sf __builtin_ia32_mulps (v4sf, v4sf)
  40500. v4sf __builtin_ia32_divps (v4sf, v4sf)
  40501. v4sf __builtin_ia32_addss (v4sf, v4sf)
  40502. v4sf __builtin_ia32_subss (v4sf, v4sf)
  40503. v4sf __builtin_ia32_mulss (v4sf, v4sf)
  40504. v4sf __builtin_ia32_divss (v4sf, v4sf)
  40505. v4sf __builtin_ia32_cmpeqps (v4sf, v4sf)
  40506. v4sf __builtin_ia32_cmpltps (v4sf, v4sf)
  40507. v4sf __builtin_ia32_cmpleps (v4sf, v4sf)
  40508. v4sf __builtin_ia32_cmpgtps (v4sf, v4sf)
  40509. v4sf __builtin_ia32_cmpgeps (v4sf, v4sf)
  40510. v4sf __builtin_ia32_cmpunordps (v4sf, v4sf)
  40511. v4sf __builtin_ia32_cmpneqps (v4sf, v4sf)
  40512. v4sf __builtin_ia32_cmpnltps (v4sf, v4sf)
  40513. v4sf __builtin_ia32_cmpnleps (v4sf, v4sf)
  40514. v4sf __builtin_ia32_cmpngtps (v4sf, v4sf)
  40515. v4sf __builtin_ia32_cmpngeps (v4sf, v4sf)
  40516. v4sf __builtin_ia32_cmpordps (v4sf, v4sf)
  40517. v4sf __builtin_ia32_cmpeqss (v4sf, v4sf)
  40518. v4sf __builtin_ia32_cmpltss (v4sf, v4sf)
  40519. v4sf __builtin_ia32_cmpless (v4sf, v4sf)
  40520. v4sf __builtin_ia32_cmpunordss (v4sf, v4sf)
  40521. v4sf __builtin_ia32_cmpneqss (v4sf, v4sf)
  40522. v4sf __builtin_ia32_cmpnltss (v4sf, v4sf)
  40523. v4sf __builtin_ia32_cmpnless (v4sf, v4sf)
  40524. v4sf __builtin_ia32_cmpordss (v4sf, v4sf)
  40525. v4sf __builtin_ia32_maxps (v4sf, v4sf)
  40526. v4sf __builtin_ia32_maxss (v4sf, v4sf)
  40527. v4sf __builtin_ia32_minps (v4sf, v4sf)
  40528. v4sf __builtin_ia32_minss (v4sf, v4sf)
  40529. v4sf __builtin_ia32_andps (v4sf, v4sf)
  40530. v4sf __builtin_ia32_andnps (v4sf, v4sf)
  40531. v4sf __builtin_ia32_orps (v4sf, v4sf)
  40532. v4sf __builtin_ia32_xorps (v4sf, v4sf)
  40533. v4sf __builtin_ia32_movss (v4sf, v4sf)
  40534. v4sf __builtin_ia32_movhlps (v4sf, v4sf)
  40535. v4sf __builtin_ia32_movlhps (v4sf, v4sf)
  40536. v4sf __builtin_ia32_unpckhps (v4sf, v4sf)
  40537. v4sf __builtin_ia32_unpcklps (v4sf, v4sf)
  40538. v4sf __builtin_ia32_cvtpi2ps (v4sf, v2si)
  40539. v4sf __builtin_ia32_cvtsi2ss (v4sf, int)
  40540. v2si __builtin_ia32_cvtps2pi (v4sf)
  40541. int __builtin_ia32_cvtss2si (v4sf)
  40542. v2si __builtin_ia32_cvttps2pi (v4sf)
  40543. int __builtin_ia32_cvttss2si (v4sf)
  40544. v4sf __builtin_ia32_rcpps (v4sf)
  40545. v4sf __builtin_ia32_rsqrtps (v4sf)
  40546. v4sf __builtin_ia32_sqrtps (v4sf)
  40547. v4sf __builtin_ia32_rcpss (v4sf)
  40548. v4sf __builtin_ia32_rsqrtss (v4sf)
  40549. v4sf __builtin_ia32_sqrtss (v4sf)
  40550. v4sf __builtin_ia32_shufps (v4sf, v4sf, int)
  40551. void __builtin_ia32_movntps (float *, v4sf)
  40552. int __builtin_ia32_movmskps (v4sf)
  40553. The following built-in functions are available when '-msse' is used.
  40554. 'v4sf __builtin_ia32_loadups (float *)'
  40555. Generates the 'movups' machine instruction as a load from memory.
  40556. 'void __builtin_ia32_storeups (float *, v4sf)'
  40557. Generates the 'movups' machine instruction as a store to memory.
  40558. 'v4sf __builtin_ia32_loadss (float *)'
  40559. Generates the 'movss' machine instruction as a load from memory.
  40560. 'v4sf __builtin_ia32_loadhps (v4sf, const v2sf *)'
  40561. Generates the 'movhps' machine instruction as a load from memory.
  40562. 'v4sf __builtin_ia32_loadlps (v4sf, const v2sf *)'
  40563. Generates the 'movlps' machine instruction as a load from memory
  40564. 'void __builtin_ia32_storehps (v2sf *, v4sf)'
  40565. Generates the 'movhps' machine instruction as a store to memory.
  40566. 'void __builtin_ia32_storelps (v2sf *, v4sf)'
  40567. Generates the 'movlps' machine instruction as a store to memory.
  40568. The following built-in functions are available when '-msse2' is used.
  40569. All of them generate the machine instruction that is part of the name.
  40570. int __builtin_ia32_comisdeq (v2df, v2df)
  40571. int __builtin_ia32_comisdlt (v2df, v2df)
  40572. int __builtin_ia32_comisdle (v2df, v2df)
  40573. int __builtin_ia32_comisdgt (v2df, v2df)
  40574. int __builtin_ia32_comisdge (v2df, v2df)
  40575. int __builtin_ia32_comisdneq (v2df, v2df)
  40576. int __builtin_ia32_ucomisdeq (v2df, v2df)
  40577. int __builtin_ia32_ucomisdlt (v2df, v2df)
  40578. int __builtin_ia32_ucomisdle (v2df, v2df)
  40579. int __builtin_ia32_ucomisdgt (v2df, v2df)
  40580. int __builtin_ia32_ucomisdge (v2df, v2df)
  40581. int __builtin_ia32_ucomisdneq (v2df, v2df)
  40582. v2df __builtin_ia32_cmpeqpd (v2df, v2df)
  40583. v2df __builtin_ia32_cmpltpd (v2df, v2df)
  40584. v2df __builtin_ia32_cmplepd (v2df, v2df)
  40585. v2df __builtin_ia32_cmpgtpd (v2df, v2df)
  40586. v2df __builtin_ia32_cmpgepd (v2df, v2df)
  40587. v2df __builtin_ia32_cmpunordpd (v2df, v2df)
  40588. v2df __builtin_ia32_cmpneqpd (v2df, v2df)
  40589. v2df __builtin_ia32_cmpnltpd (v2df, v2df)
  40590. v2df __builtin_ia32_cmpnlepd (v2df, v2df)
  40591. v2df __builtin_ia32_cmpngtpd (v2df, v2df)
  40592. v2df __builtin_ia32_cmpngepd (v2df, v2df)
  40593. v2df __builtin_ia32_cmpordpd (v2df, v2df)
  40594. v2df __builtin_ia32_cmpeqsd (v2df, v2df)
  40595. v2df __builtin_ia32_cmpltsd (v2df, v2df)
  40596. v2df __builtin_ia32_cmplesd (v2df, v2df)
  40597. v2df __builtin_ia32_cmpunordsd (v2df, v2df)
  40598. v2df __builtin_ia32_cmpneqsd (v2df, v2df)
  40599. v2df __builtin_ia32_cmpnltsd (v2df, v2df)
  40600. v2df __builtin_ia32_cmpnlesd (v2df, v2df)
  40601. v2df __builtin_ia32_cmpordsd (v2df, v2df)
  40602. v2di __builtin_ia32_paddq (v2di, v2di)
  40603. v2di __builtin_ia32_psubq (v2di, v2di)
  40604. v2df __builtin_ia32_addpd (v2df, v2df)
  40605. v2df __builtin_ia32_subpd (v2df, v2df)
  40606. v2df __builtin_ia32_mulpd (v2df, v2df)
  40607. v2df __builtin_ia32_divpd (v2df, v2df)
  40608. v2df __builtin_ia32_addsd (v2df, v2df)
  40609. v2df __builtin_ia32_subsd (v2df, v2df)
  40610. v2df __builtin_ia32_mulsd (v2df, v2df)
  40611. v2df __builtin_ia32_divsd (v2df, v2df)
  40612. v2df __builtin_ia32_minpd (v2df, v2df)
  40613. v2df __builtin_ia32_maxpd (v2df, v2df)
  40614. v2df __builtin_ia32_minsd (v2df, v2df)
  40615. v2df __builtin_ia32_maxsd (v2df, v2df)
  40616. v2df __builtin_ia32_andpd (v2df, v2df)
  40617. v2df __builtin_ia32_andnpd (v2df, v2df)
  40618. v2df __builtin_ia32_orpd (v2df, v2df)
  40619. v2df __builtin_ia32_xorpd (v2df, v2df)
  40620. v2df __builtin_ia32_movsd (v2df, v2df)
  40621. v2df __builtin_ia32_unpckhpd (v2df, v2df)
  40622. v2df __builtin_ia32_unpcklpd (v2df, v2df)
  40623. v16qi __builtin_ia32_paddb128 (v16qi, v16qi)
  40624. v8hi __builtin_ia32_paddw128 (v8hi, v8hi)
  40625. v4si __builtin_ia32_paddd128 (v4si, v4si)
  40626. v2di __builtin_ia32_paddq128 (v2di, v2di)
  40627. v16qi __builtin_ia32_psubb128 (v16qi, v16qi)
  40628. v8hi __builtin_ia32_psubw128 (v8hi, v8hi)
  40629. v4si __builtin_ia32_psubd128 (v4si, v4si)
  40630. v2di __builtin_ia32_psubq128 (v2di, v2di)
  40631. v8hi __builtin_ia32_pmullw128 (v8hi, v8hi)
  40632. v8hi __builtin_ia32_pmulhw128 (v8hi, v8hi)
  40633. v2di __builtin_ia32_pand128 (v2di, v2di)
  40634. v2di __builtin_ia32_pandn128 (v2di, v2di)
  40635. v2di __builtin_ia32_por128 (v2di, v2di)
  40636. v2di __builtin_ia32_pxor128 (v2di, v2di)
  40637. v16qi __builtin_ia32_pavgb128 (v16qi, v16qi)
  40638. v8hi __builtin_ia32_pavgw128 (v8hi, v8hi)
  40639. v16qi __builtin_ia32_pcmpeqb128 (v16qi, v16qi)
  40640. v8hi __builtin_ia32_pcmpeqw128 (v8hi, v8hi)
  40641. v4si __builtin_ia32_pcmpeqd128 (v4si, v4si)
  40642. v16qi __builtin_ia32_pcmpgtb128 (v16qi, v16qi)
  40643. v8hi __builtin_ia32_pcmpgtw128 (v8hi, v8hi)
  40644. v4si __builtin_ia32_pcmpgtd128 (v4si, v4si)
  40645. v16qi __builtin_ia32_pmaxub128 (v16qi, v16qi)
  40646. v8hi __builtin_ia32_pmaxsw128 (v8hi, v8hi)
  40647. v16qi __builtin_ia32_pminub128 (v16qi, v16qi)
  40648. v8hi __builtin_ia32_pminsw128 (v8hi, v8hi)
  40649. v16qi __builtin_ia32_punpckhbw128 (v16qi, v16qi)
  40650. v8hi __builtin_ia32_punpckhwd128 (v8hi, v8hi)
  40651. v4si __builtin_ia32_punpckhdq128 (v4si, v4si)
  40652. v2di __builtin_ia32_punpckhqdq128 (v2di, v2di)
  40653. v16qi __builtin_ia32_punpcklbw128 (v16qi, v16qi)
  40654. v8hi __builtin_ia32_punpcklwd128 (v8hi, v8hi)
  40655. v4si __builtin_ia32_punpckldq128 (v4si, v4si)
  40656. v2di __builtin_ia32_punpcklqdq128 (v2di, v2di)
  40657. v16qi __builtin_ia32_packsswb128 (v8hi, v8hi)
  40658. v8hi __builtin_ia32_packssdw128 (v4si, v4si)
  40659. v16qi __builtin_ia32_packuswb128 (v8hi, v8hi)
  40660. v8hi __builtin_ia32_pmulhuw128 (v8hi, v8hi)
  40661. void __builtin_ia32_maskmovdqu (v16qi, v16qi)
  40662. v2df __builtin_ia32_loadupd (double *)
  40663. void __builtin_ia32_storeupd (double *, v2df)
  40664. v2df __builtin_ia32_loadhpd (v2df, double const *)
  40665. v2df __builtin_ia32_loadlpd (v2df, double const *)
  40666. int __builtin_ia32_movmskpd (v2df)
  40667. int __builtin_ia32_pmovmskb128 (v16qi)
  40668. void __builtin_ia32_movnti (int *, int)
  40669. void __builtin_ia32_movnti64 (long long int *, long long int)
  40670. void __builtin_ia32_movntpd (double *, v2df)
  40671. void __builtin_ia32_movntdq (v2df *, v2df)
  40672. v4si __builtin_ia32_pshufd (v4si, int)
  40673. v8hi __builtin_ia32_pshuflw (v8hi, int)
  40674. v8hi __builtin_ia32_pshufhw (v8hi, int)
  40675. v2di __builtin_ia32_psadbw128 (v16qi, v16qi)
  40676. v2df __builtin_ia32_sqrtpd (v2df)
  40677. v2df __builtin_ia32_sqrtsd (v2df)
  40678. v2df __builtin_ia32_shufpd (v2df, v2df, int)
  40679. v2df __builtin_ia32_cvtdq2pd (v4si)
  40680. v4sf __builtin_ia32_cvtdq2ps (v4si)
  40681. v4si __builtin_ia32_cvtpd2dq (v2df)
  40682. v2si __builtin_ia32_cvtpd2pi (v2df)
  40683. v4sf __builtin_ia32_cvtpd2ps (v2df)
  40684. v4si __builtin_ia32_cvttpd2dq (v2df)
  40685. v2si __builtin_ia32_cvttpd2pi (v2df)
  40686. v2df __builtin_ia32_cvtpi2pd (v2si)
  40687. int __builtin_ia32_cvtsd2si (v2df)
  40688. int __builtin_ia32_cvttsd2si (v2df)
  40689. long long __builtin_ia32_cvtsd2si64 (v2df)
  40690. long long __builtin_ia32_cvttsd2si64 (v2df)
  40691. v4si __builtin_ia32_cvtps2dq (v4sf)
  40692. v2df __builtin_ia32_cvtps2pd (v4sf)
  40693. v4si __builtin_ia32_cvttps2dq (v4sf)
  40694. v2df __builtin_ia32_cvtsi2sd (v2df, int)
  40695. v2df __builtin_ia32_cvtsi642sd (v2df, long long)
  40696. v4sf __builtin_ia32_cvtsd2ss (v4sf, v2df)
  40697. v2df __builtin_ia32_cvtss2sd (v2df, v4sf)
  40698. void __builtin_ia32_clflush (const void *)
  40699. void __builtin_ia32_lfence (void)
  40700. void __builtin_ia32_mfence (void)
  40701. v16qi __builtin_ia32_loaddqu (const char *)
  40702. void __builtin_ia32_storedqu (char *, v16qi)
  40703. v1di __builtin_ia32_pmuludq (v2si, v2si)
  40704. v2di __builtin_ia32_pmuludq128 (v4si, v4si)
  40705. v8hi __builtin_ia32_psllw128 (v8hi, v8hi)
  40706. v4si __builtin_ia32_pslld128 (v4si, v4si)
  40707. v2di __builtin_ia32_psllq128 (v2di, v2di)
  40708. v8hi __builtin_ia32_psrlw128 (v8hi, v8hi)
  40709. v4si __builtin_ia32_psrld128 (v4si, v4si)
  40710. v2di __builtin_ia32_psrlq128 (v2di, v2di)
  40711. v8hi __builtin_ia32_psraw128 (v8hi, v8hi)
  40712. v4si __builtin_ia32_psrad128 (v4si, v4si)
  40713. v2di __builtin_ia32_pslldqi128 (v2di, int)
  40714. v8hi __builtin_ia32_psllwi128 (v8hi, int)
  40715. v4si __builtin_ia32_pslldi128 (v4si, int)
  40716. v2di __builtin_ia32_psllqi128 (v2di, int)
  40717. v2di __builtin_ia32_psrldqi128 (v2di, int)
  40718. v8hi __builtin_ia32_psrlwi128 (v8hi, int)
  40719. v4si __builtin_ia32_psrldi128 (v4si, int)
  40720. v2di __builtin_ia32_psrlqi128 (v2di, int)
  40721. v8hi __builtin_ia32_psrawi128 (v8hi, int)
  40722. v4si __builtin_ia32_psradi128 (v4si, int)
  40723. v4si __builtin_ia32_pmaddwd128 (v8hi, v8hi)
  40724. v2di __builtin_ia32_movq128 (v2di)
  40725. The following built-in functions are available when '-msse3' is used.
  40726. All of them generate the machine instruction that is part of the name.
  40727. v2df __builtin_ia32_addsubpd (v2df, v2df)
  40728. v4sf __builtin_ia32_addsubps (v4sf, v4sf)
  40729. v2df __builtin_ia32_haddpd (v2df, v2df)
  40730. v4sf __builtin_ia32_haddps (v4sf, v4sf)
  40731. v2df __builtin_ia32_hsubpd (v2df, v2df)
  40732. v4sf __builtin_ia32_hsubps (v4sf, v4sf)
  40733. v16qi __builtin_ia32_lddqu (char const *)
  40734. void __builtin_ia32_monitor (void *, unsigned int, unsigned int)
  40735. v4sf __builtin_ia32_movshdup (v4sf)
  40736. v4sf __builtin_ia32_movsldup (v4sf)
  40737. void __builtin_ia32_mwait (unsigned int, unsigned int)
  40738. The following built-in functions are available when '-mssse3' is used.
  40739. All of them generate the machine instruction that is part of the name.
  40740. v2si __builtin_ia32_phaddd (v2si, v2si)
  40741. v4hi __builtin_ia32_phaddw (v4hi, v4hi)
  40742. v4hi __builtin_ia32_phaddsw (v4hi, v4hi)
  40743. v2si __builtin_ia32_phsubd (v2si, v2si)
  40744. v4hi __builtin_ia32_phsubw (v4hi, v4hi)
  40745. v4hi __builtin_ia32_phsubsw (v4hi, v4hi)
  40746. v4hi __builtin_ia32_pmaddubsw (v8qi, v8qi)
  40747. v4hi __builtin_ia32_pmulhrsw (v4hi, v4hi)
  40748. v8qi __builtin_ia32_pshufb (v8qi, v8qi)
  40749. v8qi __builtin_ia32_psignb (v8qi, v8qi)
  40750. v2si __builtin_ia32_psignd (v2si, v2si)
  40751. v4hi __builtin_ia32_psignw (v4hi, v4hi)
  40752. v1di __builtin_ia32_palignr (v1di, v1di, int)
  40753. v8qi __builtin_ia32_pabsb (v8qi)
  40754. v2si __builtin_ia32_pabsd (v2si)
  40755. v4hi __builtin_ia32_pabsw (v4hi)
  40756. The following built-in functions are available when '-mssse3' is used.
  40757. All of them generate the machine instruction that is part of the name.
  40758. v4si __builtin_ia32_phaddd128 (v4si, v4si)
  40759. v8hi __builtin_ia32_phaddw128 (v8hi, v8hi)
  40760. v8hi __builtin_ia32_phaddsw128 (v8hi, v8hi)
  40761. v4si __builtin_ia32_phsubd128 (v4si, v4si)
  40762. v8hi __builtin_ia32_phsubw128 (v8hi, v8hi)
  40763. v8hi __builtin_ia32_phsubsw128 (v8hi, v8hi)
  40764. v8hi __builtin_ia32_pmaddubsw128 (v16qi, v16qi)
  40765. v8hi __builtin_ia32_pmulhrsw128 (v8hi, v8hi)
  40766. v16qi __builtin_ia32_pshufb128 (v16qi, v16qi)
  40767. v16qi __builtin_ia32_psignb128 (v16qi, v16qi)
  40768. v4si __builtin_ia32_psignd128 (v4si, v4si)
  40769. v8hi __builtin_ia32_psignw128 (v8hi, v8hi)
  40770. v2di __builtin_ia32_palignr128 (v2di, v2di, int)
  40771. v16qi __builtin_ia32_pabsb128 (v16qi)
  40772. v4si __builtin_ia32_pabsd128 (v4si)
  40773. v8hi __builtin_ia32_pabsw128 (v8hi)
  40774. The following built-in functions are available when '-msse4.1' is used.
  40775. All of them generate the machine instruction that is part of the name.
  40776. v2df __builtin_ia32_blendpd (v2df, v2df, const int)
  40777. v4sf __builtin_ia32_blendps (v4sf, v4sf, const int)
  40778. v2df __builtin_ia32_blendvpd (v2df, v2df, v2df)
  40779. v4sf __builtin_ia32_blendvps (v4sf, v4sf, v4sf)
  40780. v2df __builtin_ia32_dppd (v2df, v2df, const int)
  40781. v4sf __builtin_ia32_dpps (v4sf, v4sf, const int)
  40782. v4sf __builtin_ia32_insertps128 (v4sf, v4sf, const int)
  40783. v2di __builtin_ia32_movntdqa (v2di *);
  40784. v16qi __builtin_ia32_mpsadbw128 (v16qi, v16qi, const int)
  40785. v8hi __builtin_ia32_packusdw128 (v4si, v4si)
  40786. v16qi __builtin_ia32_pblendvb128 (v16qi, v16qi, v16qi)
  40787. v8hi __builtin_ia32_pblendw128 (v8hi, v8hi, const int)
  40788. v2di __builtin_ia32_pcmpeqq (v2di, v2di)
  40789. v8hi __builtin_ia32_phminposuw128 (v8hi)
  40790. v16qi __builtin_ia32_pmaxsb128 (v16qi, v16qi)
  40791. v4si __builtin_ia32_pmaxsd128 (v4si, v4si)
  40792. v4si __builtin_ia32_pmaxud128 (v4si, v4si)
  40793. v8hi __builtin_ia32_pmaxuw128 (v8hi, v8hi)
  40794. v16qi __builtin_ia32_pminsb128 (v16qi, v16qi)
  40795. v4si __builtin_ia32_pminsd128 (v4si, v4si)
  40796. v4si __builtin_ia32_pminud128 (v4si, v4si)
  40797. v8hi __builtin_ia32_pminuw128 (v8hi, v8hi)
  40798. v4si __builtin_ia32_pmovsxbd128 (v16qi)
  40799. v2di __builtin_ia32_pmovsxbq128 (v16qi)
  40800. v8hi __builtin_ia32_pmovsxbw128 (v16qi)
  40801. v2di __builtin_ia32_pmovsxdq128 (v4si)
  40802. v4si __builtin_ia32_pmovsxwd128 (v8hi)
  40803. v2di __builtin_ia32_pmovsxwq128 (v8hi)
  40804. v4si __builtin_ia32_pmovzxbd128 (v16qi)
  40805. v2di __builtin_ia32_pmovzxbq128 (v16qi)
  40806. v8hi __builtin_ia32_pmovzxbw128 (v16qi)
  40807. v2di __builtin_ia32_pmovzxdq128 (v4si)
  40808. v4si __builtin_ia32_pmovzxwd128 (v8hi)
  40809. v2di __builtin_ia32_pmovzxwq128 (v8hi)
  40810. v2di __builtin_ia32_pmuldq128 (v4si, v4si)
  40811. v4si __builtin_ia32_pmulld128 (v4si, v4si)
  40812. int __builtin_ia32_ptestc128 (v2di, v2di)
  40813. int __builtin_ia32_ptestnzc128 (v2di, v2di)
  40814. int __builtin_ia32_ptestz128 (v2di, v2di)
  40815. v2df __builtin_ia32_roundpd (v2df, const int)
  40816. v4sf __builtin_ia32_roundps (v4sf, const int)
  40817. v2df __builtin_ia32_roundsd (v2df, v2df, const int)
  40818. v4sf __builtin_ia32_roundss (v4sf, v4sf, const int)
  40819. The following built-in functions are available when '-msse4.1' is used.
  40820. 'v4sf __builtin_ia32_vec_set_v4sf (v4sf, float, const int)'
  40821. Generates the 'insertps' machine instruction.
  40822. 'int __builtin_ia32_vec_ext_v16qi (v16qi, const int)'
  40823. Generates the 'pextrb' machine instruction.
  40824. 'v16qi __builtin_ia32_vec_set_v16qi (v16qi, int, const int)'
  40825. Generates the 'pinsrb' machine instruction.
  40826. 'v4si __builtin_ia32_vec_set_v4si (v4si, int, const int)'
  40827. Generates the 'pinsrd' machine instruction.
  40828. 'v2di __builtin_ia32_vec_set_v2di (v2di, long long, const int)'
  40829. Generates the 'pinsrq' machine instruction in 64bit mode.
  40830. The following built-in functions are changed to generate new SSE4.1
  40831. instructions when '-msse4.1' is used.
  40832. 'float __builtin_ia32_vec_ext_v4sf (v4sf, const int)'
  40833. Generates the 'extractps' machine instruction.
  40834. 'int __builtin_ia32_vec_ext_v4si (v4si, const int)'
  40835. Generates the 'pextrd' machine instruction.
  40836. 'long long __builtin_ia32_vec_ext_v2di (v2di, const int)'
  40837. Generates the 'pextrq' machine instruction in 64bit mode.
  40838. The following built-in functions are available when '-msse4.2' is used.
  40839. All of them generate the machine instruction that is part of the name.
  40840. v16qi __builtin_ia32_pcmpestrm128 (v16qi, int, v16qi, int, const int)
  40841. int __builtin_ia32_pcmpestri128 (v16qi, int, v16qi, int, const int)
  40842. int __builtin_ia32_pcmpestria128 (v16qi, int, v16qi, int, const int)
  40843. int __builtin_ia32_pcmpestric128 (v16qi, int, v16qi, int, const int)
  40844. int __builtin_ia32_pcmpestrio128 (v16qi, int, v16qi, int, const int)
  40845. int __builtin_ia32_pcmpestris128 (v16qi, int, v16qi, int, const int)
  40846. int __builtin_ia32_pcmpestriz128 (v16qi, int, v16qi, int, const int)
  40847. v16qi __builtin_ia32_pcmpistrm128 (v16qi, v16qi, const int)
  40848. int __builtin_ia32_pcmpistri128 (v16qi, v16qi, const int)
  40849. int __builtin_ia32_pcmpistria128 (v16qi, v16qi, const int)
  40850. int __builtin_ia32_pcmpistric128 (v16qi, v16qi, const int)
  40851. int __builtin_ia32_pcmpistrio128 (v16qi, v16qi, const int)
  40852. int __builtin_ia32_pcmpistris128 (v16qi, v16qi, const int)
  40853. int __builtin_ia32_pcmpistriz128 (v16qi, v16qi, const int)
  40854. v2di __builtin_ia32_pcmpgtq (v2di, v2di)
  40855. The following built-in functions are available when '-msse4.2' is used.
  40856. 'unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char)'
  40857. Generates the 'crc32b' machine instruction.
  40858. 'unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short)'
  40859. Generates the 'crc32w' machine instruction.
  40860. 'unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int)'
  40861. Generates the 'crc32l' machine instruction.
  40862. 'unsigned long long __builtin_ia32_crc32di (unsigned long long, unsigned long long)'
  40863. Generates the 'crc32q' machine instruction.
  40864. The following built-in functions are changed to generate new SSE4.2
  40865. instructions when '-msse4.2' is used.
  40866. 'int __builtin_popcount (unsigned int)'
  40867. Generates the 'popcntl' machine instruction.
  40868. 'int __builtin_popcountl (unsigned long)'
  40869. Generates the 'popcntl' or 'popcntq' machine instruction, depending
  40870. on the size of 'unsigned long'.
  40871. 'int __builtin_popcountll (unsigned long long)'
  40872. Generates the 'popcntq' machine instruction.
  40873. The following built-in functions are available when '-mavx' is used.
  40874. All of them generate the machine instruction that is part of the name.
  40875. v4df __builtin_ia32_addpd256 (v4df,v4df)
  40876. v8sf __builtin_ia32_addps256 (v8sf,v8sf)
  40877. v4df __builtin_ia32_addsubpd256 (v4df,v4df)
  40878. v8sf __builtin_ia32_addsubps256 (v8sf,v8sf)
  40879. v4df __builtin_ia32_andnpd256 (v4df,v4df)
  40880. v8sf __builtin_ia32_andnps256 (v8sf,v8sf)
  40881. v4df __builtin_ia32_andpd256 (v4df,v4df)
  40882. v8sf __builtin_ia32_andps256 (v8sf,v8sf)
  40883. v4df __builtin_ia32_blendpd256 (v4df,v4df,int)
  40884. v8sf __builtin_ia32_blendps256 (v8sf,v8sf,int)
  40885. v4df __builtin_ia32_blendvpd256 (v4df,v4df,v4df)
  40886. v8sf __builtin_ia32_blendvps256 (v8sf,v8sf,v8sf)
  40887. v2df __builtin_ia32_cmppd (v2df,v2df,int)
  40888. v4df __builtin_ia32_cmppd256 (v4df,v4df,int)
  40889. v4sf __builtin_ia32_cmpps (v4sf,v4sf,int)
  40890. v8sf __builtin_ia32_cmpps256 (v8sf,v8sf,int)
  40891. v2df __builtin_ia32_cmpsd (v2df,v2df,int)
  40892. v4sf __builtin_ia32_cmpss (v4sf,v4sf,int)
  40893. v4df __builtin_ia32_cvtdq2pd256 (v4si)
  40894. v8sf __builtin_ia32_cvtdq2ps256 (v8si)
  40895. v4si __builtin_ia32_cvtpd2dq256 (v4df)
  40896. v4sf __builtin_ia32_cvtpd2ps256 (v4df)
  40897. v8si __builtin_ia32_cvtps2dq256 (v8sf)
  40898. v4df __builtin_ia32_cvtps2pd256 (v4sf)
  40899. v4si __builtin_ia32_cvttpd2dq256 (v4df)
  40900. v8si __builtin_ia32_cvttps2dq256 (v8sf)
  40901. v4df __builtin_ia32_divpd256 (v4df,v4df)
  40902. v8sf __builtin_ia32_divps256 (v8sf,v8sf)
  40903. v8sf __builtin_ia32_dpps256 (v8sf,v8sf,int)
  40904. v4df __builtin_ia32_haddpd256 (v4df,v4df)
  40905. v8sf __builtin_ia32_haddps256 (v8sf,v8sf)
  40906. v4df __builtin_ia32_hsubpd256 (v4df,v4df)
  40907. v8sf __builtin_ia32_hsubps256 (v8sf,v8sf)
  40908. v32qi __builtin_ia32_lddqu256 (pcchar)
  40909. v32qi __builtin_ia32_loaddqu256 (pcchar)
  40910. v4df __builtin_ia32_loadupd256 (pcdouble)
  40911. v8sf __builtin_ia32_loadups256 (pcfloat)
  40912. v2df __builtin_ia32_maskloadpd (pcv2df,v2df)
  40913. v4df __builtin_ia32_maskloadpd256 (pcv4df,v4df)
  40914. v4sf __builtin_ia32_maskloadps (pcv4sf,v4sf)
  40915. v8sf __builtin_ia32_maskloadps256 (pcv8sf,v8sf)
  40916. void __builtin_ia32_maskstorepd (pv2df,v2df,v2df)
  40917. void __builtin_ia32_maskstorepd256 (pv4df,v4df,v4df)
  40918. void __builtin_ia32_maskstoreps (pv4sf,v4sf,v4sf)
  40919. void __builtin_ia32_maskstoreps256 (pv8sf,v8sf,v8sf)
  40920. v4df __builtin_ia32_maxpd256 (v4df,v4df)
  40921. v8sf __builtin_ia32_maxps256 (v8sf,v8sf)
  40922. v4df __builtin_ia32_minpd256 (v4df,v4df)
  40923. v8sf __builtin_ia32_minps256 (v8sf,v8sf)
  40924. v4df __builtin_ia32_movddup256 (v4df)
  40925. int __builtin_ia32_movmskpd256 (v4df)
  40926. int __builtin_ia32_movmskps256 (v8sf)
  40927. v8sf __builtin_ia32_movshdup256 (v8sf)
  40928. v8sf __builtin_ia32_movsldup256 (v8sf)
  40929. v4df __builtin_ia32_mulpd256 (v4df,v4df)
  40930. v8sf __builtin_ia32_mulps256 (v8sf,v8sf)
  40931. v4df __builtin_ia32_orpd256 (v4df,v4df)
  40932. v8sf __builtin_ia32_orps256 (v8sf,v8sf)
  40933. v2df __builtin_ia32_pd_pd256 (v4df)
  40934. v4df __builtin_ia32_pd256_pd (v2df)
  40935. v4sf __builtin_ia32_ps_ps256 (v8sf)
  40936. v8sf __builtin_ia32_ps256_ps (v4sf)
  40937. int __builtin_ia32_ptestc256 (v4di,v4di,ptest)
  40938. int __builtin_ia32_ptestnzc256 (v4di,v4di,ptest)
  40939. int __builtin_ia32_ptestz256 (v4di,v4di,ptest)
  40940. v8sf __builtin_ia32_rcpps256 (v8sf)
  40941. v4df __builtin_ia32_roundpd256 (v4df,int)
  40942. v8sf __builtin_ia32_roundps256 (v8sf,int)
  40943. v8sf __builtin_ia32_rsqrtps_nr256 (v8sf)
  40944. v8sf __builtin_ia32_rsqrtps256 (v8sf)
  40945. v4df __builtin_ia32_shufpd256 (v4df,v4df,int)
  40946. v8sf __builtin_ia32_shufps256 (v8sf,v8sf,int)
  40947. v4si __builtin_ia32_si_si256 (v8si)
  40948. v8si __builtin_ia32_si256_si (v4si)
  40949. v4df __builtin_ia32_sqrtpd256 (v4df)
  40950. v8sf __builtin_ia32_sqrtps_nr256 (v8sf)
  40951. v8sf __builtin_ia32_sqrtps256 (v8sf)
  40952. void __builtin_ia32_storedqu256 (pchar,v32qi)
  40953. void __builtin_ia32_storeupd256 (pdouble,v4df)
  40954. void __builtin_ia32_storeups256 (pfloat,v8sf)
  40955. v4df __builtin_ia32_subpd256 (v4df,v4df)
  40956. v8sf __builtin_ia32_subps256 (v8sf,v8sf)
  40957. v4df __builtin_ia32_unpckhpd256 (v4df,v4df)
  40958. v8sf __builtin_ia32_unpckhps256 (v8sf,v8sf)
  40959. v4df __builtin_ia32_unpcklpd256 (v4df,v4df)
  40960. v8sf __builtin_ia32_unpcklps256 (v8sf,v8sf)
  40961. v4df __builtin_ia32_vbroadcastf128_pd256 (pcv2df)
  40962. v8sf __builtin_ia32_vbroadcastf128_ps256 (pcv4sf)
  40963. v4df __builtin_ia32_vbroadcastsd256 (pcdouble)
  40964. v4sf __builtin_ia32_vbroadcastss (pcfloat)
  40965. v8sf __builtin_ia32_vbroadcastss256 (pcfloat)
  40966. v2df __builtin_ia32_vextractf128_pd256 (v4df,int)
  40967. v4sf __builtin_ia32_vextractf128_ps256 (v8sf,int)
  40968. v4si __builtin_ia32_vextractf128_si256 (v8si,int)
  40969. v4df __builtin_ia32_vinsertf128_pd256 (v4df,v2df,int)
  40970. v8sf __builtin_ia32_vinsertf128_ps256 (v8sf,v4sf,int)
  40971. v8si __builtin_ia32_vinsertf128_si256 (v8si,v4si,int)
  40972. v4df __builtin_ia32_vperm2f128_pd256 (v4df,v4df,int)
  40973. v8sf __builtin_ia32_vperm2f128_ps256 (v8sf,v8sf,int)
  40974. v8si __builtin_ia32_vperm2f128_si256 (v8si,v8si,int)
  40975. v2df __builtin_ia32_vpermil2pd (v2df,v2df,v2di,int)
  40976. v4df __builtin_ia32_vpermil2pd256 (v4df,v4df,v4di,int)
  40977. v4sf __builtin_ia32_vpermil2ps (v4sf,v4sf,v4si,int)
  40978. v8sf __builtin_ia32_vpermil2ps256 (v8sf,v8sf,v8si,int)
  40979. v2df __builtin_ia32_vpermilpd (v2df,int)
  40980. v4df __builtin_ia32_vpermilpd256 (v4df,int)
  40981. v4sf __builtin_ia32_vpermilps (v4sf,int)
  40982. v8sf __builtin_ia32_vpermilps256 (v8sf,int)
  40983. v2df __builtin_ia32_vpermilvarpd (v2df,v2di)
  40984. v4df __builtin_ia32_vpermilvarpd256 (v4df,v4di)
  40985. v4sf __builtin_ia32_vpermilvarps (v4sf,v4si)
  40986. v8sf __builtin_ia32_vpermilvarps256 (v8sf,v8si)
  40987. int __builtin_ia32_vtestcpd (v2df,v2df,ptest)
  40988. int __builtin_ia32_vtestcpd256 (v4df,v4df,ptest)
  40989. int __builtin_ia32_vtestcps (v4sf,v4sf,ptest)
  40990. int __builtin_ia32_vtestcps256 (v8sf,v8sf,ptest)
  40991. int __builtin_ia32_vtestnzcpd (v2df,v2df,ptest)
  40992. int __builtin_ia32_vtestnzcpd256 (v4df,v4df,ptest)
  40993. int __builtin_ia32_vtestnzcps (v4sf,v4sf,ptest)
  40994. int __builtin_ia32_vtestnzcps256 (v8sf,v8sf,ptest)
  40995. int __builtin_ia32_vtestzpd (v2df,v2df,ptest)
  40996. int __builtin_ia32_vtestzpd256 (v4df,v4df,ptest)
  40997. int __builtin_ia32_vtestzps (v4sf,v4sf,ptest)
  40998. int __builtin_ia32_vtestzps256 (v8sf,v8sf,ptest)
  40999. void __builtin_ia32_vzeroall (void)
  41000. void __builtin_ia32_vzeroupper (void)
  41001. v4df __builtin_ia32_xorpd256 (v4df,v4df)
  41002. v8sf __builtin_ia32_xorps256 (v8sf,v8sf)
  41003. The following built-in functions are available when '-mavx2' is used.
  41004. All of them generate the machine instruction that is part of the name.
  41005. v32qi __builtin_ia32_mpsadbw256 (v32qi,v32qi,int)
  41006. v32qi __builtin_ia32_pabsb256 (v32qi)
  41007. v16hi __builtin_ia32_pabsw256 (v16hi)
  41008. v8si __builtin_ia32_pabsd256 (v8si)
  41009. v16hi __builtin_ia32_packssdw256 (v8si,v8si)
  41010. v32qi __builtin_ia32_packsswb256 (v16hi,v16hi)
  41011. v16hi __builtin_ia32_packusdw256 (v8si,v8si)
  41012. v32qi __builtin_ia32_packuswb256 (v16hi,v16hi)
  41013. v32qi __builtin_ia32_paddb256 (v32qi,v32qi)
  41014. v16hi __builtin_ia32_paddw256 (v16hi,v16hi)
  41015. v8si __builtin_ia32_paddd256 (v8si,v8si)
  41016. v4di __builtin_ia32_paddq256 (v4di,v4di)
  41017. v32qi __builtin_ia32_paddsb256 (v32qi,v32qi)
  41018. v16hi __builtin_ia32_paddsw256 (v16hi,v16hi)
  41019. v32qi __builtin_ia32_paddusb256 (v32qi,v32qi)
  41020. v16hi __builtin_ia32_paddusw256 (v16hi,v16hi)
  41021. v4di __builtin_ia32_palignr256 (v4di,v4di,int)
  41022. v4di __builtin_ia32_andsi256 (v4di,v4di)
  41023. v4di __builtin_ia32_andnotsi256 (v4di,v4di)
  41024. v32qi __builtin_ia32_pavgb256 (v32qi,v32qi)
  41025. v16hi __builtin_ia32_pavgw256 (v16hi,v16hi)
  41026. v32qi __builtin_ia32_pblendvb256 (v32qi,v32qi,v32qi)
  41027. v16hi __builtin_ia32_pblendw256 (v16hi,v16hi,int)
  41028. v32qi __builtin_ia32_pcmpeqb256 (v32qi,v32qi)
  41029. v16hi __builtin_ia32_pcmpeqw256 (v16hi,v16hi)
  41030. v8si __builtin_ia32_pcmpeqd256 (c8si,v8si)
  41031. v4di __builtin_ia32_pcmpeqq256 (v4di,v4di)
  41032. v32qi __builtin_ia32_pcmpgtb256 (v32qi,v32qi)
  41033. v16hi __builtin_ia32_pcmpgtw256 (16hi,v16hi)
  41034. v8si __builtin_ia32_pcmpgtd256 (v8si,v8si)
  41035. v4di __builtin_ia32_pcmpgtq256 (v4di,v4di)
  41036. v16hi __builtin_ia32_phaddw256 (v16hi,v16hi)
  41037. v8si __builtin_ia32_phaddd256 (v8si,v8si)
  41038. v16hi __builtin_ia32_phaddsw256 (v16hi,v16hi)
  41039. v16hi __builtin_ia32_phsubw256 (v16hi,v16hi)
  41040. v8si __builtin_ia32_phsubd256 (v8si,v8si)
  41041. v16hi __builtin_ia32_phsubsw256 (v16hi,v16hi)
  41042. v32qi __builtin_ia32_pmaddubsw256 (v32qi,v32qi)
  41043. v16hi __builtin_ia32_pmaddwd256 (v16hi,v16hi)
  41044. v32qi __builtin_ia32_pmaxsb256 (v32qi,v32qi)
  41045. v16hi __builtin_ia32_pmaxsw256 (v16hi,v16hi)
  41046. v8si __builtin_ia32_pmaxsd256 (v8si,v8si)
  41047. v32qi __builtin_ia32_pmaxub256 (v32qi,v32qi)
  41048. v16hi __builtin_ia32_pmaxuw256 (v16hi,v16hi)
  41049. v8si __builtin_ia32_pmaxud256 (v8si,v8si)
  41050. v32qi __builtin_ia32_pminsb256 (v32qi,v32qi)
  41051. v16hi __builtin_ia32_pminsw256 (v16hi,v16hi)
  41052. v8si __builtin_ia32_pminsd256 (v8si,v8si)
  41053. v32qi __builtin_ia32_pminub256 (v32qi,v32qi)
  41054. v16hi __builtin_ia32_pminuw256 (v16hi,v16hi)
  41055. v8si __builtin_ia32_pminud256 (v8si,v8si)
  41056. int __builtin_ia32_pmovmskb256 (v32qi)
  41057. v16hi __builtin_ia32_pmovsxbw256 (v16qi)
  41058. v8si __builtin_ia32_pmovsxbd256 (v16qi)
  41059. v4di __builtin_ia32_pmovsxbq256 (v16qi)
  41060. v8si __builtin_ia32_pmovsxwd256 (v8hi)
  41061. v4di __builtin_ia32_pmovsxwq256 (v8hi)
  41062. v4di __builtin_ia32_pmovsxdq256 (v4si)
  41063. v16hi __builtin_ia32_pmovzxbw256 (v16qi)
  41064. v8si __builtin_ia32_pmovzxbd256 (v16qi)
  41065. v4di __builtin_ia32_pmovzxbq256 (v16qi)
  41066. v8si __builtin_ia32_pmovzxwd256 (v8hi)
  41067. v4di __builtin_ia32_pmovzxwq256 (v8hi)
  41068. v4di __builtin_ia32_pmovzxdq256 (v4si)
  41069. v4di __builtin_ia32_pmuldq256 (v8si,v8si)
  41070. v16hi __builtin_ia32_pmulhrsw256 (v16hi, v16hi)
  41071. v16hi __builtin_ia32_pmulhuw256 (v16hi,v16hi)
  41072. v16hi __builtin_ia32_pmulhw256 (v16hi,v16hi)
  41073. v16hi __builtin_ia32_pmullw256 (v16hi,v16hi)
  41074. v8si __builtin_ia32_pmulld256 (v8si,v8si)
  41075. v4di __builtin_ia32_pmuludq256 (v8si,v8si)
  41076. v4di __builtin_ia32_por256 (v4di,v4di)
  41077. v16hi __builtin_ia32_psadbw256 (v32qi,v32qi)
  41078. v32qi __builtin_ia32_pshufb256 (v32qi,v32qi)
  41079. v8si __builtin_ia32_pshufd256 (v8si,int)
  41080. v16hi __builtin_ia32_pshufhw256 (v16hi,int)
  41081. v16hi __builtin_ia32_pshuflw256 (v16hi,int)
  41082. v32qi __builtin_ia32_psignb256 (v32qi,v32qi)
  41083. v16hi __builtin_ia32_psignw256 (v16hi,v16hi)
  41084. v8si __builtin_ia32_psignd256 (v8si,v8si)
  41085. v4di __builtin_ia32_pslldqi256 (v4di,int)
  41086. v16hi __builtin_ia32_psllwi256 (16hi,int)
  41087. v16hi __builtin_ia32_psllw256(v16hi,v8hi)
  41088. v8si __builtin_ia32_pslldi256 (v8si,int)
  41089. v8si __builtin_ia32_pslld256(v8si,v4si)
  41090. v4di __builtin_ia32_psllqi256 (v4di,int)
  41091. v4di __builtin_ia32_psllq256(v4di,v2di)
  41092. v16hi __builtin_ia32_psrawi256 (v16hi,int)
  41093. v16hi __builtin_ia32_psraw256 (v16hi,v8hi)
  41094. v8si __builtin_ia32_psradi256 (v8si,int)
  41095. v8si __builtin_ia32_psrad256 (v8si,v4si)
  41096. v4di __builtin_ia32_psrldqi256 (v4di, int)
  41097. v16hi __builtin_ia32_psrlwi256 (v16hi,int)
  41098. v16hi __builtin_ia32_psrlw256 (v16hi,v8hi)
  41099. v8si __builtin_ia32_psrldi256 (v8si,int)
  41100. v8si __builtin_ia32_psrld256 (v8si,v4si)
  41101. v4di __builtin_ia32_psrlqi256 (v4di,int)
  41102. v4di __builtin_ia32_psrlq256(v4di,v2di)
  41103. v32qi __builtin_ia32_psubb256 (v32qi,v32qi)
  41104. v32hi __builtin_ia32_psubw256 (v16hi,v16hi)
  41105. v8si __builtin_ia32_psubd256 (v8si,v8si)
  41106. v4di __builtin_ia32_psubq256 (v4di,v4di)
  41107. v32qi __builtin_ia32_psubsb256 (v32qi,v32qi)
  41108. v16hi __builtin_ia32_psubsw256 (v16hi,v16hi)
  41109. v32qi __builtin_ia32_psubusb256 (v32qi,v32qi)
  41110. v16hi __builtin_ia32_psubusw256 (v16hi,v16hi)
  41111. v32qi __builtin_ia32_punpckhbw256 (v32qi,v32qi)
  41112. v16hi __builtin_ia32_punpckhwd256 (v16hi,v16hi)
  41113. v8si __builtin_ia32_punpckhdq256 (v8si,v8si)
  41114. v4di __builtin_ia32_punpckhqdq256 (v4di,v4di)
  41115. v32qi __builtin_ia32_punpcklbw256 (v32qi,v32qi)
  41116. v16hi __builtin_ia32_punpcklwd256 (v16hi,v16hi)
  41117. v8si __builtin_ia32_punpckldq256 (v8si,v8si)
  41118. v4di __builtin_ia32_punpcklqdq256 (v4di,v4di)
  41119. v4di __builtin_ia32_pxor256 (v4di,v4di)
  41120. v4di __builtin_ia32_movntdqa256 (pv4di)
  41121. v4sf __builtin_ia32_vbroadcastss_ps (v4sf)
  41122. v8sf __builtin_ia32_vbroadcastss_ps256 (v4sf)
  41123. v4df __builtin_ia32_vbroadcastsd_pd256 (v2df)
  41124. v4di __builtin_ia32_vbroadcastsi256 (v2di)
  41125. v4si __builtin_ia32_pblendd128 (v4si,v4si)
  41126. v8si __builtin_ia32_pblendd256 (v8si,v8si)
  41127. v32qi __builtin_ia32_pbroadcastb256 (v16qi)
  41128. v16hi __builtin_ia32_pbroadcastw256 (v8hi)
  41129. v8si __builtin_ia32_pbroadcastd256 (v4si)
  41130. v4di __builtin_ia32_pbroadcastq256 (v2di)
  41131. v16qi __builtin_ia32_pbroadcastb128 (v16qi)
  41132. v8hi __builtin_ia32_pbroadcastw128 (v8hi)
  41133. v4si __builtin_ia32_pbroadcastd128 (v4si)
  41134. v2di __builtin_ia32_pbroadcastq128 (v2di)
  41135. v8si __builtin_ia32_permvarsi256 (v8si,v8si)
  41136. v4df __builtin_ia32_permdf256 (v4df,int)
  41137. v8sf __builtin_ia32_permvarsf256 (v8sf,v8sf)
  41138. v4di __builtin_ia32_permdi256 (v4di,int)
  41139. v4di __builtin_ia32_permti256 (v4di,v4di,int)
  41140. v4di __builtin_ia32_extract128i256 (v4di,int)
  41141. v4di __builtin_ia32_insert128i256 (v4di,v2di,int)
  41142. v8si __builtin_ia32_maskloadd256 (pcv8si,v8si)
  41143. v4di __builtin_ia32_maskloadq256 (pcv4di,v4di)
  41144. v4si __builtin_ia32_maskloadd (pcv4si,v4si)
  41145. v2di __builtin_ia32_maskloadq (pcv2di,v2di)
  41146. void __builtin_ia32_maskstored256 (pv8si,v8si,v8si)
  41147. void __builtin_ia32_maskstoreq256 (pv4di,v4di,v4di)
  41148. void __builtin_ia32_maskstored (pv4si,v4si,v4si)
  41149. void __builtin_ia32_maskstoreq (pv2di,v2di,v2di)
  41150. v8si __builtin_ia32_psllv8si (v8si,v8si)
  41151. v4si __builtin_ia32_psllv4si (v4si,v4si)
  41152. v4di __builtin_ia32_psllv4di (v4di,v4di)
  41153. v2di __builtin_ia32_psllv2di (v2di,v2di)
  41154. v8si __builtin_ia32_psrav8si (v8si,v8si)
  41155. v4si __builtin_ia32_psrav4si (v4si,v4si)
  41156. v8si __builtin_ia32_psrlv8si (v8si,v8si)
  41157. v4si __builtin_ia32_psrlv4si (v4si,v4si)
  41158. v4di __builtin_ia32_psrlv4di (v4di,v4di)
  41159. v2di __builtin_ia32_psrlv2di (v2di,v2di)
  41160. v2df __builtin_ia32_gathersiv2df (v2df, pcdouble,v4si,v2df,int)
  41161. v4df __builtin_ia32_gathersiv4df (v4df, pcdouble,v4si,v4df,int)
  41162. v2df __builtin_ia32_gatherdiv2df (v2df, pcdouble,v2di,v2df,int)
  41163. v4df __builtin_ia32_gatherdiv4df (v4df, pcdouble,v4di,v4df,int)
  41164. v4sf __builtin_ia32_gathersiv4sf (v4sf, pcfloat,v4si,v4sf,int)
  41165. v8sf __builtin_ia32_gathersiv8sf (v8sf, pcfloat,v8si,v8sf,int)
  41166. v4sf __builtin_ia32_gatherdiv4sf (v4sf, pcfloat,v2di,v4sf,int)
  41167. v4sf __builtin_ia32_gatherdiv4sf256 (v4sf, pcfloat,v4di,v4sf,int)
  41168. v2di __builtin_ia32_gathersiv2di (v2di, pcint64,v4si,v2di,int)
  41169. v4di __builtin_ia32_gathersiv4di (v4di, pcint64,v4si,v4di,int)
  41170. v2di __builtin_ia32_gatherdiv2di (v2di, pcint64,v2di,v2di,int)
  41171. v4di __builtin_ia32_gatherdiv4di (v4di, pcint64,v4di,v4di,int)
  41172. v4si __builtin_ia32_gathersiv4si (v4si, pcint,v4si,v4si,int)
  41173. v8si __builtin_ia32_gathersiv8si (v8si, pcint,v8si,v8si,int)
  41174. v4si __builtin_ia32_gatherdiv4si (v4si, pcint,v2di,v4si,int)
  41175. v4si __builtin_ia32_gatherdiv4si256 (v4si, pcint,v4di,v4si,int)
  41176. The following built-in functions are available when '-maes' is used.
  41177. All of them generate the machine instruction that is part of the name.
  41178. v2di __builtin_ia32_aesenc128 (v2di, v2di)
  41179. v2di __builtin_ia32_aesenclast128 (v2di, v2di)
  41180. v2di __builtin_ia32_aesdec128 (v2di, v2di)
  41181. v2di __builtin_ia32_aesdeclast128 (v2di, v2di)
  41182. v2di __builtin_ia32_aeskeygenassist128 (v2di, const int)
  41183. v2di __builtin_ia32_aesimc128 (v2di)
  41184. The following built-in function is available when '-mpclmul' is used.
  41185. 'v2di __builtin_ia32_pclmulqdq128 (v2di, v2di, const int)'
  41186. Generates the 'pclmulqdq' machine instruction.
  41187. The following built-in function is available when '-mfsgsbase' is used.
  41188. All of them generate the machine instruction that is part of the name.
  41189. unsigned int __builtin_ia32_rdfsbase32 (void)
  41190. unsigned long long __builtin_ia32_rdfsbase64 (void)
  41191. unsigned int __builtin_ia32_rdgsbase32 (void)
  41192. unsigned long long __builtin_ia32_rdgsbase64 (void)
  41193. void _writefsbase_u32 (unsigned int)
  41194. void _writefsbase_u64 (unsigned long long)
  41195. void _writegsbase_u32 (unsigned int)
  41196. void _writegsbase_u64 (unsigned long long)
  41197. The following built-in function is available when '-mrdrnd' is used.
  41198. All of them generate the machine instruction that is part of the name.
  41199. unsigned int __builtin_ia32_rdrand16_step (unsigned short *)
  41200. unsigned int __builtin_ia32_rdrand32_step (unsigned int *)
  41201. unsigned int __builtin_ia32_rdrand64_step (unsigned long long *)
  41202. The following built-in function is available when '-mptwrite' is used.
  41203. All of them generate the machine instruction that is part of the name.
  41204. void __builtin_ia32_ptwrite32 (unsigned)
  41205. void __builtin_ia32_ptwrite64 (unsigned long long)
  41206. The following built-in functions are available when '-msse4a' is used.
  41207. All of them generate the machine instruction that is part of the name.
  41208. void __builtin_ia32_movntsd (double *, v2df)
  41209. void __builtin_ia32_movntss (float *, v4sf)
  41210. v2di __builtin_ia32_extrq (v2di, v16qi)
  41211. v2di __builtin_ia32_extrqi (v2di, const unsigned int, const unsigned int)
  41212. v2di __builtin_ia32_insertq (v2di, v2di)
  41213. v2di __builtin_ia32_insertqi (v2di, v2di, const unsigned int, const unsigned int)
  41214. The following built-in functions are available when '-mxop' is used.
  41215. v2df __builtin_ia32_vfrczpd (v2df)
  41216. v4sf __builtin_ia32_vfrczps (v4sf)
  41217. v2df __builtin_ia32_vfrczsd (v2df)
  41218. v4sf __builtin_ia32_vfrczss (v4sf)
  41219. v4df __builtin_ia32_vfrczpd256 (v4df)
  41220. v8sf __builtin_ia32_vfrczps256 (v8sf)
  41221. v2di __builtin_ia32_vpcmov (v2di, v2di, v2di)
  41222. v2di __builtin_ia32_vpcmov_v2di (v2di, v2di, v2di)
  41223. v4si __builtin_ia32_vpcmov_v4si (v4si, v4si, v4si)
  41224. v8hi __builtin_ia32_vpcmov_v8hi (v8hi, v8hi, v8hi)
  41225. v16qi __builtin_ia32_vpcmov_v16qi (v16qi, v16qi, v16qi)
  41226. v2df __builtin_ia32_vpcmov_v2df (v2df, v2df, v2df)
  41227. v4sf __builtin_ia32_vpcmov_v4sf (v4sf, v4sf, v4sf)
  41228. v4di __builtin_ia32_vpcmov_v4di256 (v4di, v4di, v4di)
  41229. v8si __builtin_ia32_vpcmov_v8si256 (v8si, v8si, v8si)
  41230. v16hi __builtin_ia32_vpcmov_v16hi256 (v16hi, v16hi, v16hi)
  41231. v32qi __builtin_ia32_vpcmov_v32qi256 (v32qi, v32qi, v32qi)
  41232. v4df __builtin_ia32_vpcmov_v4df256 (v4df, v4df, v4df)
  41233. v8sf __builtin_ia32_vpcmov_v8sf256 (v8sf, v8sf, v8sf)
  41234. v16qi __builtin_ia32_vpcomeqb (v16qi, v16qi)
  41235. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  41236. v4si __builtin_ia32_vpcomeqd (v4si, v4si)
  41237. v2di __builtin_ia32_vpcomeqq (v2di, v2di)
  41238. v16qi __builtin_ia32_vpcomequb (v16qi, v16qi)
  41239. v4si __builtin_ia32_vpcomequd (v4si, v4si)
  41240. v2di __builtin_ia32_vpcomequq (v2di, v2di)
  41241. v8hi __builtin_ia32_vpcomequw (v8hi, v8hi)
  41242. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  41243. v16qi __builtin_ia32_vpcomfalseb (v16qi, v16qi)
  41244. v4si __builtin_ia32_vpcomfalsed (v4si, v4si)
  41245. v2di __builtin_ia32_vpcomfalseq (v2di, v2di)
  41246. v16qi __builtin_ia32_vpcomfalseub (v16qi, v16qi)
  41247. v4si __builtin_ia32_vpcomfalseud (v4si, v4si)
  41248. v2di __builtin_ia32_vpcomfalseuq (v2di, v2di)
  41249. v8hi __builtin_ia32_vpcomfalseuw (v8hi, v8hi)
  41250. v8hi __builtin_ia32_vpcomfalsew (v8hi, v8hi)
  41251. v16qi __builtin_ia32_vpcomgeb (v16qi, v16qi)
  41252. v4si __builtin_ia32_vpcomged (v4si, v4si)
  41253. v2di __builtin_ia32_vpcomgeq (v2di, v2di)
  41254. v16qi __builtin_ia32_vpcomgeub (v16qi, v16qi)
  41255. v4si __builtin_ia32_vpcomgeud (v4si, v4si)
  41256. v2di __builtin_ia32_vpcomgeuq (v2di, v2di)
  41257. v8hi __builtin_ia32_vpcomgeuw (v8hi, v8hi)
  41258. v8hi __builtin_ia32_vpcomgew (v8hi, v8hi)
  41259. v16qi __builtin_ia32_vpcomgtb (v16qi, v16qi)
  41260. v4si __builtin_ia32_vpcomgtd (v4si, v4si)
  41261. v2di __builtin_ia32_vpcomgtq (v2di, v2di)
  41262. v16qi __builtin_ia32_vpcomgtub (v16qi, v16qi)
  41263. v4si __builtin_ia32_vpcomgtud (v4si, v4si)
  41264. v2di __builtin_ia32_vpcomgtuq (v2di, v2di)
  41265. v8hi __builtin_ia32_vpcomgtuw (v8hi, v8hi)
  41266. v8hi __builtin_ia32_vpcomgtw (v8hi, v8hi)
  41267. v16qi __builtin_ia32_vpcomleb (v16qi, v16qi)
  41268. v4si __builtin_ia32_vpcomled (v4si, v4si)
  41269. v2di __builtin_ia32_vpcomleq (v2di, v2di)
  41270. v16qi __builtin_ia32_vpcomleub (v16qi, v16qi)
  41271. v4si __builtin_ia32_vpcomleud (v4si, v4si)
  41272. v2di __builtin_ia32_vpcomleuq (v2di, v2di)
  41273. v8hi __builtin_ia32_vpcomleuw (v8hi, v8hi)
  41274. v8hi __builtin_ia32_vpcomlew (v8hi, v8hi)
  41275. v16qi __builtin_ia32_vpcomltb (v16qi, v16qi)
  41276. v4si __builtin_ia32_vpcomltd (v4si, v4si)
  41277. v2di __builtin_ia32_vpcomltq (v2di, v2di)
  41278. v16qi __builtin_ia32_vpcomltub (v16qi, v16qi)
  41279. v4si __builtin_ia32_vpcomltud (v4si, v4si)
  41280. v2di __builtin_ia32_vpcomltuq (v2di, v2di)
  41281. v8hi __builtin_ia32_vpcomltuw (v8hi, v8hi)
  41282. v8hi __builtin_ia32_vpcomltw (v8hi, v8hi)
  41283. v16qi __builtin_ia32_vpcomneb (v16qi, v16qi)
  41284. v4si __builtin_ia32_vpcomned (v4si, v4si)
  41285. v2di __builtin_ia32_vpcomneq (v2di, v2di)
  41286. v16qi __builtin_ia32_vpcomneub (v16qi, v16qi)
  41287. v4si __builtin_ia32_vpcomneud (v4si, v4si)
  41288. v2di __builtin_ia32_vpcomneuq (v2di, v2di)
  41289. v8hi __builtin_ia32_vpcomneuw (v8hi, v8hi)
  41290. v8hi __builtin_ia32_vpcomnew (v8hi, v8hi)
  41291. v16qi __builtin_ia32_vpcomtrueb (v16qi, v16qi)
  41292. v4si __builtin_ia32_vpcomtrued (v4si, v4si)
  41293. v2di __builtin_ia32_vpcomtrueq (v2di, v2di)
  41294. v16qi __builtin_ia32_vpcomtrueub (v16qi, v16qi)
  41295. v4si __builtin_ia32_vpcomtrueud (v4si, v4si)
  41296. v2di __builtin_ia32_vpcomtrueuq (v2di, v2di)
  41297. v8hi __builtin_ia32_vpcomtrueuw (v8hi, v8hi)
  41298. v8hi __builtin_ia32_vpcomtruew (v8hi, v8hi)
  41299. v4si __builtin_ia32_vphaddbd (v16qi)
  41300. v2di __builtin_ia32_vphaddbq (v16qi)
  41301. v8hi __builtin_ia32_vphaddbw (v16qi)
  41302. v2di __builtin_ia32_vphadddq (v4si)
  41303. v4si __builtin_ia32_vphaddubd (v16qi)
  41304. v2di __builtin_ia32_vphaddubq (v16qi)
  41305. v8hi __builtin_ia32_vphaddubw (v16qi)
  41306. v2di __builtin_ia32_vphaddudq (v4si)
  41307. v4si __builtin_ia32_vphadduwd (v8hi)
  41308. v2di __builtin_ia32_vphadduwq (v8hi)
  41309. v4si __builtin_ia32_vphaddwd (v8hi)
  41310. v2di __builtin_ia32_vphaddwq (v8hi)
  41311. v8hi __builtin_ia32_vphsubbw (v16qi)
  41312. v2di __builtin_ia32_vphsubdq (v4si)
  41313. v4si __builtin_ia32_vphsubwd (v8hi)
  41314. v4si __builtin_ia32_vpmacsdd (v4si, v4si, v4si)
  41315. v2di __builtin_ia32_vpmacsdqh (v4si, v4si, v2di)
  41316. v2di __builtin_ia32_vpmacsdql (v4si, v4si, v2di)
  41317. v4si __builtin_ia32_vpmacssdd (v4si, v4si, v4si)
  41318. v2di __builtin_ia32_vpmacssdqh (v4si, v4si, v2di)
  41319. v2di __builtin_ia32_vpmacssdql (v4si, v4si, v2di)
  41320. v4si __builtin_ia32_vpmacsswd (v8hi, v8hi, v4si)
  41321. v8hi __builtin_ia32_vpmacssww (v8hi, v8hi, v8hi)
  41322. v4si __builtin_ia32_vpmacswd (v8hi, v8hi, v4si)
  41323. v8hi __builtin_ia32_vpmacsww (v8hi, v8hi, v8hi)
  41324. v4si __builtin_ia32_vpmadcsswd (v8hi, v8hi, v4si)
  41325. v4si __builtin_ia32_vpmadcswd (v8hi, v8hi, v4si)
  41326. v16qi __builtin_ia32_vpperm (v16qi, v16qi, v16qi)
  41327. v16qi __builtin_ia32_vprotb (v16qi, v16qi)
  41328. v4si __builtin_ia32_vprotd (v4si, v4si)
  41329. v2di __builtin_ia32_vprotq (v2di, v2di)
  41330. v8hi __builtin_ia32_vprotw (v8hi, v8hi)
  41331. v16qi __builtin_ia32_vpshab (v16qi, v16qi)
  41332. v4si __builtin_ia32_vpshad (v4si, v4si)
  41333. v2di __builtin_ia32_vpshaq (v2di, v2di)
  41334. v8hi __builtin_ia32_vpshaw (v8hi, v8hi)
  41335. v16qi __builtin_ia32_vpshlb (v16qi, v16qi)
  41336. v4si __builtin_ia32_vpshld (v4si, v4si)
  41337. v2di __builtin_ia32_vpshlq (v2di, v2di)
  41338. v8hi __builtin_ia32_vpshlw (v8hi, v8hi)
  41339. The following built-in functions are available when '-mfma4' is used.
  41340. All of them generate the machine instruction that is part of the name.
  41341. v2df __builtin_ia32_vfmaddpd (v2df, v2df, v2df)
  41342. v4sf __builtin_ia32_vfmaddps (v4sf, v4sf, v4sf)
  41343. v2df __builtin_ia32_vfmaddsd (v2df, v2df, v2df)
  41344. v4sf __builtin_ia32_vfmaddss (v4sf, v4sf, v4sf)
  41345. v2df __builtin_ia32_vfmsubpd (v2df, v2df, v2df)
  41346. v4sf __builtin_ia32_vfmsubps (v4sf, v4sf, v4sf)
  41347. v2df __builtin_ia32_vfmsubsd (v2df, v2df, v2df)
  41348. v4sf __builtin_ia32_vfmsubss (v4sf, v4sf, v4sf)
  41349. v2df __builtin_ia32_vfnmaddpd (v2df, v2df, v2df)
  41350. v4sf __builtin_ia32_vfnmaddps (v4sf, v4sf, v4sf)
  41351. v2df __builtin_ia32_vfnmaddsd (v2df, v2df, v2df)
  41352. v4sf __builtin_ia32_vfnmaddss (v4sf, v4sf, v4sf)
  41353. v2df __builtin_ia32_vfnmsubpd (v2df, v2df, v2df)
  41354. v4sf __builtin_ia32_vfnmsubps (v4sf, v4sf, v4sf)
  41355. v2df __builtin_ia32_vfnmsubsd (v2df, v2df, v2df)
  41356. v4sf __builtin_ia32_vfnmsubss (v4sf, v4sf, v4sf)
  41357. v2df __builtin_ia32_vfmaddsubpd (v2df, v2df, v2df)
  41358. v4sf __builtin_ia32_vfmaddsubps (v4sf, v4sf, v4sf)
  41359. v2df __builtin_ia32_vfmsubaddpd (v2df, v2df, v2df)
  41360. v4sf __builtin_ia32_vfmsubaddps (v4sf, v4sf, v4sf)
  41361. v4df __builtin_ia32_vfmaddpd256 (v4df, v4df, v4df)
  41362. v8sf __builtin_ia32_vfmaddps256 (v8sf, v8sf, v8sf)
  41363. v4df __builtin_ia32_vfmsubpd256 (v4df, v4df, v4df)
  41364. v8sf __builtin_ia32_vfmsubps256 (v8sf, v8sf, v8sf)
  41365. v4df __builtin_ia32_vfnmaddpd256 (v4df, v4df, v4df)
  41366. v8sf __builtin_ia32_vfnmaddps256 (v8sf, v8sf, v8sf)
  41367. v4df __builtin_ia32_vfnmsubpd256 (v4df, v4df, v4df)
  41368. v8sf __builtin_ia32_vfnmsubps256 (v8sf, v8sf, v8sf)
  41369. v4df __builtin_ia32_vfmaddsubpd256 (v4df, v4df, v4df)
  41370. v8sf __builtin_ia32_vfmaddsubps256 (v8sf, v8sf, v8sf)
  41371. v4df __builtin_ia32_vfmsubaddpd256 (v4df, v4df, v4df)
  41372. v8sf __builtin_ia32_vfmsubaddps256 (v8sf, v8sf, v8sf)
  41373. The following built-in functions are available when '-mlwp' is used.
  41374. void __builtin_ia32_llwpcb16 (void *);
  41375. void __builtin_ia32_llwpcb32 (void *);
  41376. void __builtin_ia32_llwpcb64 (void *);
  41377. void * __builtin_ia32_llwpcb16 (void);
  41378. void * __builtin_ia32_llwpcb32 (void);
  41379. void * __builtin_ia32_llwpcb64 (void);
  41380. void __builtin_ia32_lwpval16 (unsigned short, unsigned int, unsigned short)
  41381. void __builtin_ia32_lwpval32 (unsigned int, unsigned int, unsigned int)
  41382. void __builtin_ia32_lwpval64 (unsigned __int64, unsigned int, unsigned int)
  41383. unsigned char __builtin_ia32_lwpins16 (unsigned short, unsigned int, unsigned short)
  41384. unsigned char __builtin_ia32_lwpins32 (unsigned int, unsigned int, unsigned int)
  41385. unsigned char __builtin_ia32_lwpins64 (unsigned __int64, unsigned int, unsigned int)
  41386. The following built-in functions are available when '-mbmi' is used.
  41387. All of them generate the machine instruction that is part of the name.
  41388. unsigned int __builtin_ia32_bextr_u32(unsigned int, unsigned int);
  41389. unsigned long long __builtin_ia32_bextr_u64 (unsigned long long, unsigned long long);
  41390. The following built-in functions are available when '-mbmi2' is used.
  41391. All of them generate the machine instruction that is part of the name.
  41392. unsigned int _bzhi_u32 (unsigned int, unsigned int)
  41393. unsigned int _pdep_u32 (unsigned int, unsigned int)
  41394. unsigned int _pext_u32 (unsigned int, unsigned int)
  41395. unsigned long long _bzhi_u64 (unsigned long long, unsigned long long)
  41396. unsigned long long _pdep_u64 (unsigned long long, unsigned long long)
  41397. unsigned long long _pext_u64 (unsigned long long, unsigned long long)
  41398. The following built-in functions are available when '-mlzcnt' is used.
  41399. All of them generate the machine instruction that is part of the name.
  41400. unsigned short __builtin_ia32_lzcnt_u16(unsigned short);
  41401. unsigned int __builtin_ia32_lzcnt_u32(unsigned int);
  41402. unsigned long long __builtin_ia32_lzcnt_u64 (unsigned long long);
  41403. The following built-in functions are available when '-mfxsr' is used.
  41404. All of them generate the machine instruction that is part of the name.
  41405. void __builtin_ia32_fxsave (void *)
  41406. void __builtin_ia32_fxrstor (void *)
  41407. void __builtin_ia32_fxsave64 (void *)
  41408. void __builtin_ia32_fxrstor64 (void *)
  41409. The following built-in functions are available when '-mxsave' is used.
  41410. All of them generate the machine instruction that is part of the name.
  41411. void __builtin_ia32_xsave (void *, long long)
  41412. void __builtin_ia32_xrstor (void *, long long)
  41413. void __builtin_ia32_xsave64 (void *, long long)
  41414. void __builtin_ia32_xrstor64 (void *, long long)
  41415. The following built-in functions are available when '-mxsaveopt' is
  41416. used. All of them generate the machine instruction that is part of the
  41417. name.
  41418. void __builtin_ia32_xsaveopt (void *, long long)
  41419. void __builtin_ia32_xsaveopt64 (void *, long long)
  41420. The following built-in functions are available when '-mtbm' is used.
  41421. Both of them generate the immediate form of the bextr machine
  41422. instruction.
  41423. unsigned int __builtin_ia32_bextri_u32 (unsigned int,
  41424. const unsigned int);
  41425. unsigned long long __builtin_ia32_bextri_u64 (unsigned long long,
  41426. const unsigned long long);
  41427. The following built-in functions are available when '-m3dnow' is used.
  41428. All of them generate the machine instruction that is part of the name.
  41429. void __builtin_ia32_femms (void)
  41430. v8qi __builtin_ia32_pavgusb (v8qi, v8qi)
  41431. v2si __builtin_ia32_pf2id (v2sf)
  41432. v2sf __builtin_ia32_pfacc (v2sf, v2sf)
  41433. v2sf __builtin_ia32_pfadd (v2sf, v2sf)
  41434. v2si __builtin_ia32_pfcmpeq (v2sf, v2sf)
  41435. v2si __builtin_ia32_pfcmpge (v2sf, v2sf)
  41436. v2si __builtin_ia32_pfcmpgt (v2sf, v2sf)
  41437. v2sf __builtin_ia32_pfmax (v2sf, v2sf)
  41438. v2sf __builtin_ia32_pfmin (v2sf, v2sf)
  41439. v2sf __builtin_ia32_pfmul (v2sf, v2sf)
  41440. v2sf __builtin_ia32_pfrcp (v2sf)
  41441. v2sf __builtin_ia32_pfrcpit1 (v2sf, v2sf)
  41442. v2sf __builtin_ia32_pfrcpit2 (v2sf, v2sf)
  41443. v2sf __builtin_ia32_pfrsqrt (v2sf)
  41444. v2sf __builtin_ia32_pfsub (v2sf, v2sf)
  41445. v2sf __builtin_ia32_pfsubr (v2sf, v2sf)
  41446. v2sf __builtin_ia32_pi2fd (v2si)
  41447. v4hi __builtin_ia32_pmulhrw (v4hi, v4hi)
  41448. The following built-in functions are available when '-m3dnowa' is used.
  41449. All of them generate the machine instruction that is part of the name.
  41450. v2si __builtin_ia32_pf2iw (v2sf)
  41451. v2sf __builtin_ia32_pfnacc (v2sf, v2sf)
  41452. v2sf __builtin_ia32_pfpnacc (v2sf, v2sf)
  41453. v2sf __builtin_ia32_pi2fw (v2si)
  41454. v2sf __builtin_ia32_pswapdsf (v2sf)
  41455. v2si __builtin_ia32_pswapdsi (v2si)
  41456. The following built-in functions are available when '-mrtm' is used
  41457. They are used for restricted transactional memory. These are the
  41458. internal low level functions. Normally the functions in *note x86
  41459. transactional memory intrinsics:: should be used instead.
  41460. int __builtin_ia32_xbegin ()
  41461. void __builtin_ia32_xend ()
  41462. void __builtin_ia32_xabort (status)
  41463. int __builtin_ia32_xtest ()
  41464. The following built-in functions are available when '-mmwaitx' is used.
  41465. All of them generate the machine instruction that is part of the name.
  41466. void __builtin_ia32_monitorx (void *, unsigned int, unsigned int)
  41467. void __builtin_ia32_mwaitx (unsigned int, unsigned int, unsigned int)
  41468. The following built-in functions are available when '-mclzero' is used.
  41469. All of them generate the machine instruction that is part of the name.
  41470. void __builtin_i32_clzero (void *)
  41471. The following built-in functions are available when '-mpku' is used.
  41472. They generate reads and writes to PKRU.
  41473. void __builtin_ia32_wrpkru (unsigned int)
  41474. unsigned int __builtin_ia32_rdpkru ()
  41475. The following built-in functions are available when '-mcet' or
  41476. '-mshstk' option is used. They support shadow stack machine
  41477. instructions from Intel Control-flow Enforcement Technology (CET). Each
  41478. built-in function generates the machine instruction that is part of the
  41479. function's name. These are the internal low-level functions. Normally
  41480. the functions in *note x86 control-flow protection intrinsics:: should
  41481. be used instead.
  41482. unsigned int __builtin_ia32_rdsspd (void)
  41483. unsigned long long __builtin_ia32_rdsspq (void)
  41484. void __builtin_ia32_incsspd (unsigned int)
  41485. void __builtin_ia32_incsspq (unsigned long long)
  41486. void __builtin_ia32_saveprevssp(void);
  41487. void __builtin_ia32_rstorssp(void *);
  41488. void __builtin_ia32_wrssd(unsigned int, void *);
  41489. void __builtin_ia32_wrssq(unsigned long long, void *);
  41490. void __builtin_ia32_wrussd(unsigned int, void *);
  41491. void __builtin_ia32_wrussq(unsigned long long, void *);
  41492. void __builtin_ia32_setssbsy(void);
  41493. void __builtin_ia32_clrssbsy(void *);
  41494. 
  41495. File: gcc.info, Node: x86 transactional memory intrinsics, Next: x86 control-flow protection intrinsics, Prev: x86 Built-in Functions, Up: Target Builtins
  41496. 6.60.34 x86 Transactional Memory Intrinsics
  41497. -------------------------------------------
  41498. These hardware transactional memory intrinsics for x86 allow you to use
  41499. memory transactions with RTM (Restricted Transactional Memory). This
  41500. support is enabled with the '-mrtm' option. For using HLE (Hardware
  41501. Lock Elision) see *note x86 specific memory model extensions for
  41502. transactional memory:: instead.
  41503. A memory transaction commits all changes to memory in an atomic way, as
  41504. visible to other threads. If the transaction fails it is rolled back
  41505. and all side effects discarded.
  41506. Generally there is no guarantee that a memory transaction ever succeeds
  41507. and suitable fallback code always needs to be supplied.
  41508. -- RTM Function: unsigned _xbegin ()
  41509. Start a RTM (Restricted Transactional Memory) transaction. Returns
  41510. '_XBEGIN_STARTED' when the transaction started successfully (note
  41511. this is not 0, so the constant has to be explicitly tested).
  41512. If the transaction aborts, all side effects are undone and an abort
  41513. code encoded as a bit mask is returned. The following macros are
  41514. defined:
  41515. '_XABORT_EXPLICIT'
  41516. Transaction was explicitly aborted with '_xabort'. The
  41517. parameter passed to '_xabort' is available with
  41518. '_XABORT_CODE(status)'.
  41519. '_XABORT_RETRY'
  41520. Transaction retry is possible.
  41521. '_XABORT_CONFLICT'
  41522. Transaction abort due to a memory conflict with another
  41523. thread.
  41524. '_XABORT_CAPACITY'
  41525. Transaction abort due to the transaction using too much
  41526. memory.
  41527. '_XABORT_DEBUG'
  41528. Transaction abort due to a debug trap.
  41529. '_XABORT_NESTED'
  41530. Transaction abort in an inner nested transaction.
  41531. There is no guarantee any transaction ever succeeds, so there
  41532. always needs to be a valid fallback path.
  41533. -- RTM Function: void _xend ()
  41534. Commit the current transaction. When no transaction is active this
  41535. faults. All memory side effects of the transaction become visible
  41536. to other threads in an atomic manner.
  41537. -- RTM Function: int _xtest ()
  41538. Return a nonzero value if a transaction is currently active,
  41539. otherwise 0.
  41540. -- RTM Function: void _xabort (status)
  41541. Abort the current transaction. When no transaction is active this
  41542. is a no-op. The STATUS is an 8-bit constant; its value is encoded
  41543. in the return value from '_xbegin'.
  41544. Here is an example showing handling for '_XABORT_RETRY' and a fallback
  41545. path for other failures:
  41546. #include <immintrin.h>
  41547. int n_tries, max_tries;
  41548. unsigned status = _XABORT_EXPLICIT;
  41549. ...
  41550. for (n_tries = 0; n_tries < max_tries; n_tries++)
  41551. {
  41552. status = _xbegin ();
  41553. if (status == _XBEGIN_STARTED || !(status & _XABORT_RETRY))
  41554. break;
  41555. }
  41556. if (status == _XBEGIN_STARTED)
  41557. {
  41558. ... transaction code...
  41559. _xend ();
  41560. }
  41561. else
  41562. {
  41563. ... non-transactional fallback path...
  41564. }
  41565. Note that, in most cases, the transactional and non-transactional code
  41566. must synchronize together to ensure consistency.
  41567. 
  41568. File: gcc.info, Node: x86 control-flow protection intrinsics, Prev: x86 transactional memory intrinsics, Up: Target Builtins
  41569. 6.60.35 x86 Control-Flow Protection Intrinsics
  41570. ----------------------------------------------
  41571. -- CET Function: ret_type _get_ssp (void)
  41572. Get the current value of shadow stack pointer if shadow stack
  41573. support from Intel CET is enabled in the hardware or '0' otherwise.
  41574. The 'ret_type' is 'unsigned long long' for 64-bit targets and
  41575. 'unsigned int' for 32-bit targets.
  41576. -- CET Function: void _inc_ssp (unsigned int)
  41577. Increment the current shadow stack pointer by the size specified by
  41578. the function argument. The argument is masked to a byte value for
  41579. security reasons, so to increment by more than 255 bytes you must
  41580. call the function multiple times.
  41581. The shadow stack unwind code looks like:
  41582. #include <immintrin.h>
  41583. /* Unwind the shadow stack for EH. */
  41584. #define _Unwind_Frames_Extra(x) \
  41585. do \
  41586. { \
  41587. _Unwind_Word ssp = _get_ssp (); \
  41588. if (ssp != 0) \
  41589. { \
  41590. _Unwind_Word tmp = (x); \
  41591. while (tmp > 255) \
  41592. { \
  41593. _inc_ssp (tmp); \
  41594. tmp -= 255; \
  41595. } \
  41596. _inc_ssp (tmp); \
  41597. } \
  41598. } \
  41599. while (0)
  41600. This code runs unconditionally on all 64-bit processors. For 32-bit
  41601. processors the code runs on those that support multi-byte NOP
  41602. instructions.
  41603. 
  41604. File: gcc.info, Node: Target Format Checks, Next: Pragmas, Prev: Target Builtins, Up: C Extensions
  41605. 6.61 Format Checks Specific to Particular Target Machines
  41606. =========================================================
  41607. For some target machines, GCC supports additional options to the format
  41608. attribute (*note Declaring Attributes of Functions: Function
  41609. Attributes.).
  41610. * Menu:
  41611. * Solaris Format Checks::
  41612. * Darwin Format Checks::
  41613. 
  41614. File: gcc.info, Node: Solaris Format Checks, Next: Darwin Format Checks, Up: Target Format Checks
  41615. 6.61.1 Solaris Format Checks
  41616. ----------------------------
  41617. Solaris targets support the 'cmn_err' (or '__cmn_err__') format check.
  41618. 'cmn_err' accepts a subset of the standard 'printf' conversions, and the
  41619. two-argument '%b' conversion for displaying bit-fields. See the Solaris
  41620. man page for 'cmn_err' for more information.
  41621. 
  41622. File: gcc.info, Node: Darwin Format Checks, Prev: Solaris Format Checks, Up: Target Format Checks
  41623. 6.61.2 Darwin Format Checks
  41624. ---------------------------
  41625. In addition to the full set of format archetypes (attribute format style
  41626. arguments such as 'printf', 'scanf', 'strftime', and 'strfmon'), Darwin
  41627. targets also support the 'CFString' (or '__CFString__') archetype in the
  41628. 'format' attribute. Declarations with this archetype are parsed for
  41629. correct syntax and argument types. However, parsing of the format
  41630. string itself and validating arguments against it in calls to such
  41631. functions is currently not performed.
  41632. Additionally, 'CFStringRefs' (defined by the 'CoreFoundation' headers)
  41633. may also be used as format arguments. Note that the relevant headers
  41634. are only likely to be available on Darwin (OSX) installations. On such
  41635. installations, the XCode and system documentation provide descriptions
  41636. of 'CFString', 'CFStringRefs' and associated functions.
  41637. 
  41638. File: gcc.info, Node: Pragmas, Next: Unnamed Fields, Prev: Target Format Checks, Up: C Extensions
  41639. 6.62 Pragmas Accepted by GCC
  41640. ============================
  41641. GCC supports several types of pragmas, primarily in order to compile
  41642. code originally written for other compilers. Note that in general we do
  41643. not recommend the use of pragmas; *Note Function Attributes::, for
  41644. further explanation.
  41645. The GNU C preprocessor recognizes several pragmas in addition to the
  41646. compiler pragmas documented here. Refer to the CPP manual for more
  41647. information.
  41648. * Menu:
  41649. * AArch64 Pragmas::
  41650. * ARM Pragmas::
  41651. * M32C Pragmas::
  41652. * MeP Pragmas::
  41653. * RS/6000 and PowerPC Pragmas::
  41654. * S/390 Pragmas::
  41655. * Darwin Pragmas::
  41656. * Solaris Pragmas::
  41657. * Symbol-Renaming Pragmas::
  41658. * Structure-Layout Pragmas::
  41659. * Weak Pragmas::
  41660. * Diagnostic Pragmas::
  41661. * Visibility Pragmas::
  41662. * Push/Pop Macro Pragmas::
  41663. * Function Specific Option Pragmas::
  41664. * Loop-Specific Pragmas::
  41665. 
  41666. File: gcc.info, Node: AArch64 Pragmas, Next: ARM Pragmas, Up: Pragmas
  41667. 6.62.1 AArch64 Pragmas
  41668. ----------------------
  41669. The pragmas defined by the AArch64 target correspond to the AArch64
  41670. target function attributes. They can be specified as below:
  41671. #pragma GCC target("string")
  41672. where 'STRING' can be any string accepted as an AArch64 target
  41673. attribute. *Note AArch64 Function Attributes::, for more details on the
  41674. permissible values of 'string'.
  41675. 
  41676. File: gcc.info, Node: ARM Pragmas, Next: M32C Pragmas, Prev: AArch64 Pragmas, Up: Pragmas
  41677. 6.62.2 ARM Pragmas
  41678. ------------------
  41679. The ARM target defines pragmas for controlling the default addition of
  41680. 'long_call' and 'short_call' attributes to functions. *Note Function
  41681. Attributes::, for information about the effects of these attributes.
  41682. 'long_calls'
  41683. Set all subsequent functions to have the 'long_call' attribute.
  41684. 'no_long_calls'
  41685. Set all subsequent functions to have the 'short_call' attribute.
  41686. 'long_calls_off'
  41687. Do not affect the 'long_call' or 'short_call' attributes of
  41688. subsequent functions.
  41689. 
  41690. File: gcc.info, Node: M32C Pragmas, Next: MeP Pragmas, Prev: ARM Pragmas, Up: Pragmas
  41691. 6.62.3 M32C Pragmas
  41692. -------------------
  41693. 'GCC memregs NUMBER'
  41694. Overrides the command-line option '-memregs=' for the current file.
  41695. Use with care! This pragma must be before any function in the
  41696. file, and mixing different memregs values in different objects may
  41697. make them incompatible. This pragma is useful when a
  41698. performance-critical function uses a memreg for temporary values,
  41699. as it may allow you to reduce the number of memregs used.
  41700. 'ADDRESS NAME ADDRESS'
  41701. For any declared symbols matching NAME, this does three things to
  41702. that symbol: it forces the symbol to be located at the given
  41703. address (a number), it forces the symbol to be volatile, and it
  41704. changes the symbol's scope to be static. This pragma exists for
  41705. compatibility with other compilers, but note that the common
  41706. '1234H' numeric syntax is not supported (use '0x1234' instead).
  41707. Example:
  41708. #pragma ADDRESS port3 0x103
  41709. char port3;
  41710. 
  41711. File: gcc.info, Node: MeP Pragmas, Next: RS/6000 and PowerPC Pragmas, Prev: M32C Pragmas, Up: Pragmas
  41712. 6.62.4 MeP Pragmas
  41713. ------------------
  41714. 'custom io_volatile (on|off)'
  41715. Overrides the command-line option '-mio-volatile' for the current
  41716. file. Note that for compatibility with future GCC releases, this
  41717. option should only be used once before any 'io' variables in each
  41718. file.
  41719. 'GCC coprocessor available REGISTERS'
  41720. Specifies which coprocessor registers are available to the register
  41721. allocator. REGISTERS may be a single register, register range
  41722. separated by ellipses, or comma-separated list of those. Example:
  41723. #pragma GCC coprocessor available $c0...$c10, $c28
  41724. 'GCC coprocessor call_saved REGISTERS'
  41725. Specifies which coprocessor registers are to be saved and restored
  41726. by any function using them. REGISTERS may be a single register,
  41727. register range separated by ellipses, or comma-separated list of
  41728. those. Example:
  41729. #pragma GCC coprocessor call_saved $c4...$c6, $c31
  41730. 'GCC coprocessor subclass '(A|B|C|D)' = REGISTERS'
  41731. Creates and defines a register class. These register classes can
  41732. be used by inline 'asm' constructs. REGISTERS may be a single
  41733. register, register range separated by ellipses, or comma-separated
  41734. list of those. Example:
  41735. #pragma GCC coprocessor subclass 'B' = $c2, $c4, $c6
  41736. asm ("cpfoo %0" : "=B" (x));
  41737. 'GCC disinterrupt NAME , NAME ...'
  41738. For the named functions, the compiler adds code to disable
  41739. interrupts for the duration of those functions. If any functions
  41740. so named are not encountered in the source, a warning is emitted
  41741. that the pragma is not used. Examples:
  41742. #pragma disinterrupt foo
  41743. #pragma disinterrupt bar, grill
  41744. int foo () { ... }
  41745. 'GCC call NAME , NAME ...'
  41746. For the named functions, the compiler always uses a
  41747. register-indirect call model when calling the named functions.
  41748. Examples:
  41749. extern int foo ();
  41750. #pragma call foo
  41751. 
  41752. File: gcc.info, Node: RS/6000 and PowerPC Pragmas, Next: S/390 Pragmas, Prev: MeP Pragmas, Up: Pragmas
  41753. 6.62.5 RS/6000 and PowerPC Pragmas
  41754. ----------------------------------
  41755. The RS/6000 and PowerPC targets define one pragma for controlling
  41756. whether or not the 'longcall' attribute is added to function
  41757. declarations by default. This pragma overrides the '-mlongcall' option,
  41758. but not the 'longcall' and 'shortcall' attributes. *Note RS/6000 and
  41759. PowerPC Options::, for more information about when long calls are and
  41760. are not necessary.
  41761. 'longcall (1)'
  41762. Apply the 'longcall' attribute to all subsequent function
  41763. declarations.
  41764. 'longcall (0)'
  41765. Do not apply the 'longcall' attribute to subsequent function
  41766. declarations.
  41767. 
  41768. File: gcc.info, Node: S/390 Pragmas, Next: Darwin Pragmas, Prev: RS/6000 and PowerPC Pragmas, Up: Pragmas
  41769. 6.62.6 S/390 Pragmas
  41770. --------------------
  41771. The pragmas defined by the S/390 target correspond to the S/390 target
  41772. function attributes and some the additional options:
  41773. 'zvector'
  41774. 'no-zvector'
  41775. Note that options of the pragma, unlike options of the target
  41776. attribute, do change the value of preprocessor macros like '__VEC__'.
  41777. They can be specified as below:
  41778. #pragma GCC target("string[,string]...")
  41779. #pragma GCC target("string"[,"string"]...)
  41780. 
  41781. File: gcc.info, Node: Darwin Pragmas, Next: Solaris Pragmas, Prev: S/390 Pragmas, Up: Pragmas
  41782. 6.62.7 Darwin Pragmas
  41783. ---------------------
  41784. The following pragmas are available for all architectures running the
  41785. Darwin operating system. These are useful for compatibility with other
  41786. Mac OS compilers.
  41787. 'mark TOKENS...'
  41788. This pragma is accepted, but has no effect.
  41789. 'options align=ALIGNMENT'
  41790. This pragma sets the alignment of fields in structures. The values
  41791. of ALIGNMENT may be 'mac68k', to emulate m68k alignment, or
  41792. 'power', to emulate PowerPC alignment. Uses of this pragma nest
  41793. properly; to restore the previous setting, use 'reset' for the
  41794. ALIGNMENT.
  41795. 'segment TOKENS...'
  41796. This pragma is accepted, but has no effect.
  41797. 'unused (VAR [, VAR]...)'
  41798. This pragma declares variables to be possibly unused. GCC does not
  41799. produce warnings for the listed variables. The effect is similar
  41800. to that of the 'unused' attribute, except that this pragma may
  41801. appear anywhere within the variables' scopes.
  41802. 
  41803. File: gcc.info, Node: Solaris Pragmas, Next: Symbol-Renaming Pragmas, Prev: Darwin Pragmas, Up: Pragmas
  41804. 6.62.8 Solaris Pragmas
  41805. ----------------------
  41806. The Solaris target supports '#pragma redefine_extname' (*note
  41807. Symbol-Renaming Pragmas::). It also supports additional '#pragma'
  41808. directives for compatibility with the system compiler.
  41809. 'align ALIGNMENT (VARIABLE [, VARIABLE]...)'
  41810. Increase the minimum alignment of each VARIABLE to ALIGNMENT. This
  41811. is the same as GCC's 'aligned' attribute *note Variable
  41812. Attributes::). Macro expansion occurs on the arguments to this
  41813. pragma when compiling C and Objective-C. It does not currently
  41814. occur when compiling C++, but this is a bug which may be fixed in a
  41815. future release.
  41816. 'fini (FUNCTION [, FUNCTION]...)'
  41817. This pragma causes each listed FUNCTION to be called after main, or
  41818. during shared module unloading, by adding a call to the '.fini'
  41819. section.
  41820. 'init (FUNCTION [, FUNCTION]...)'
  41821. This pragma causes each listed FUNCTION to be called during
  41822. initialization (before 'main') or during shared module loading, by
  41823. adding a call to the '.init' section.
  41824. 
  41825. File: gcc.info, Node: Symbol-Renaming Pragmas, Next: Structure-Layout Pragmas, Prev: Solaris Pragmas, Up: Pragmas
  41826. 6.62.9 Symbol-Renaming Pragmas
  41827. ------------------------------
  41828. GCC supports a '#pragma' directive that changes the name used in
  41829. assembly for a given declaration. While this pragma is supported on all
  41830. platforms, it is intended primarily to provide compatibility with the
  41831. Solaris system headers. This effect can also be achieved using the asm
  41832. labels extension (*note Asm Labels::).
  41833. 'redefine_extname OLDNAME NEWNAME'
  41834. This pragma gives the C function OLDNAME the assembly symbol
  41835. NEWNAME. The preprocessor macro '__PRAGMA_REDEFINE_EXTNAME' is
  41836. defined if this pragma is available (currently on all platforms).
  41837. This pragma and the 'asm' labels extension interact in a complicated
  41838. manner. Here are some corner cases you may want to be aware of:
  41839. 1. This pragma silently applies only to declarations with external
  41840. linkage. The 'asm' label feature does not have this restriction.
  41841. 2. In C++, this pragma silently applies only to declarations with "C"
  41842. linkage. Again, 'asm' labels do not have this restriction.
  41843. 3. If either of the ways of changing the assembly name of a
  41844. declaration are applied to a declaration whose assembly name has
  41845. already been determined (either by a previous use of one of these
  41846. features, or because the compiler needed the assembly name in order
  41847. to generate code), and the new name is different, a warning issues
  41848. and the name does not change.
  41849. 4. The OLDNAME used by '#pragma redefine_extname' is always the
  41850. C-language name.
  41851. 
  41852. File: gcc.info, Node: Structure-Layout Pragmas, Next: Weak Pragmas, Prev: Symbol-Renaming Pragmas, Up: Pragmas
  41853. 6.62.10 Structure-Layout Pragmas
  41854. --------------------------------
  41855. For compatibility with Microsoft Windows compilers, GCC supports a set
  41856. of '#pragma' directives that change the maximum alignment of members of
  41857. structures (other than zero-width bit-fields), unions, and classes
  41858. subsequently defined. The N value below always is required to be a
  41859. small power of two and specifies the new alignment in bytes.
  41860. 1. '#pragma pack(N)' simply sets the new alignment.
  41861. 2. '#pragma pack()' sets the alignment to the one that was in effect
  41862. when compilation started (see also command-line option
  41863. '-fpack-struct[=N]' *note Code Gen Options::).
  41864. 3. '#pragma pack(push[,N])' pushes the current alignment setting on an
  41865. internal stack and then optionally sets the new alignment.
  41866. 4. '#pragma pack(pop)' restores the alignment setting to the one saved
  41867. at the top of the internal stack (and removes that stack entry).
  41868. Note that '#pragma pack([N])' does not influence this internal
  41869. stack; thus it is possible to have '#pragma pack(push)' followed by
  41870. multiple '#pragma pack(N)' instances and finalized by a single
  41871. '#pragma pack(pop)'.
  41872. Some targets, e.g. x86 and PowerPC, support the '#pragma ms_struct'
  41873. directive which lays out structures and unions subsequently defined as
  41874. the documented '__attribute__ ((ms_struct))'.
  41875. 1. '#pragma ms_struct on' turns on the Microsoft layout.
  41876. 2. '#pragma ms_struct off' turns off the Microsoft layout.
  41877. 3. '#pragma ms_struct reset' goes back to the default layout.
  41878. Most targets also support the '#pragma scalar_storage_order' directive
  41879. which lays out structures and unions subsequently defined as the
  41880. documented '__attribute__ ((scalar_storage_order))'.
  41881. 1. '#pragma scalar_storage_order big-endian' sets the storage order of
  41882. the scalar fields to big-endian.
  41883. 2. '#pragma scalar_storage_order little-endian' sets the storage order
  41884. of the scalar fields to little-endian.
  41885. 3. '#pragma scalar_storage_order default' goes back to the endianness
  41886. that was in effect when compilation started (see also command-line
  41887. option '-fsso-struct=ENDIANNESS' *note C Dialect Options::).
  41888. 
  41889. File: gcc.info, Node: Weak Pragmas, Next: Diagnostic Pragmas, Prev: Structure-Layout Pragmas, Up: Pragmas
  41890. 6.62.11 Weak Pragmas
  41891. --------------------
  41892. For compatibility with SVR4, GCC supports a set of '#pragma' directives
  41893. for declaring symbols to be weak, and defining weak aliases.
  41894. '#pragma weak SYMBOL'
  41895. This pragma declares SYMBOL to be weak, as if the declaration had
  41896. the attribute of the same name. The pragma may appear before or
  41897. after the declaration of SYMBOL. It is not an error for SYMBOL to
  41898. never be defined at all.
  41899. '#pragma weak SYMBOL1 = SYMBOL2'
  41900. This pragma declares SYMBOL1 to be a weak alias of SYMBOL2. It is
  41901. an error if SYMBOL2 is not defined in the current translation unit.
  41902. 
  41903. File: gcc.info, Node: Diagnostic Pragmas, Next: Visibility Pragmas, Prev: Weak Pragmas, Up: Pragmas
  41904. 6.62.12 Diagnostic Pragmas
  41905. --------------------------
  41906. GCC allows the user to selectively enable or disable certain types of
  41907. diagnostics, and change the kind of the diagnostic. For example, a
  41908. project's policy might require that all sources compile with '-Werror'
  41909. but certain files might have exceptions allowing specific types of
  41910. warnings. Or, a project might selectively enable diagnostics and treat
  41911. them as errors depending on which preprocessor macros are defined.
  41912. '#pragma GCC diagnostic KIND OPTION'
  41913. Modifies the disposition of a diagnostic. Note that not all
  41914. diagnostics are modifiable; at the moment only warnings (normally
  41915. controlled by '-W...') can be controlled, and not all of them. Use
  41916. '-fdiagnostics-show-option' to determine which diagnostics are
  41917. controllable and which option controls them.
  41918. KIND is 'error' to treat this diagnostic as an error, 'warning' to
  41919. treat it like a warning (even if '-Werror' is in effect), or
  41920. 'ignored' if the diagnostic is to be ignored. OPTION is a double
  41921. quoted string that matches the command-line option.
  41922. #pragma GCC diagnostic warning "-Wformat"
  41923. #pragma GCC diagnostic error "-Wformat"
  41924. #pragma GCC diagnostic ignored "-Wformat"
  41925. Note that these pragmas override any command-line options. GCC
  41926. keeps track of the location of each pragma, and issues diagnostics
  41927. according to the state as of that point in the source file. Thus,
  41928. pragmas occurring after a line do not affect diagnostics caused by
  41929. that line.
  41930. '#pragma GCC diagnostic push'
  41931. '#pragma GCC diagnostic pop'
  41932. Causes GCC to remember the state of the diagnostics as of each
  41933. 'push', and restore to that point at each 'pop'. If a 'pop' has no
  41934. matching 'push', the command-line options are restored.
  41935. #pragma GCC diagnostic error "-Wuninitialized"
  41936. foo(a); /* error is given for this one */
  41937. #pragma GCC diagnostic push
  41938. #pragma GCC diagnostic ignored "-Wuninitialized"
  41939. foo(b); /* no diagnostic for this one */
  41940. #pragma GCC diagnostic pop
  41941. foo(c); /* error is given for this one */
  41942. #pragma GCC diagnostic pop
  41943. foo(d); /* depends on command-line options */
  41944. GCC also offers a simple mechanism for printing messages during
  41945. compilation.
  41946. '#pragma message STRING'
  41947. Prints STRING as a compiler message on compilation. The message is
  41948. informational only, and is neither a compilation warning nor an
  41949. error. Newlines can be included in the string by using the '\n'
  41950. escape sequence.
  41951. #pragma message "Compiling " __FILE__ "..."
  41952. STRING may be parenthesized, and is printed with location
  41953. information. For example,
  41954. #define DO_PRAGMA(x) _Pragma (#x)
  41955. #define TODO(x) DO_PRAGMA(message ("TODO - " #x))
  41956. TODO(Remember to fix this)
  41957. prints '/tmp/file.c:4: note: #pragma message: TODO - Remember to
  41958. fix this'.
  41959. '#pragma GCC error MESSAGE'
  41960. Generates an error message. This pragma _is_ considered to
  41961. indicate an error in the compilation, and it will be treated as
  41962. such.
  41963. Newlines can be included in the string by using the '\n' escape
  41964. sequence. They will be displayed as newlines even if the
  41965. '-fmessage-length' option is set to zero.
  41966. The error is only generated if the pragma is present in the code
  41967. after pre-processing has been completed. It does not matter
  41968. however if the code containing the pragma is unreachable:
  41969. #if 0
  41970. #pragma GCC error "this error is not seen"
  41971. #endif
  41972. void foo (void)
  41973. {
  41974. return;
  41975. #pragma GCC error "this error is seen"
  41976. }
  41977. '#pragma GCC warning MESSAGE'
  41978. This is just like 'pragma GCC error' except that a warning message
  41979. is issued instead of an error message. Unless '-Werror' is in
  41980. effect, in which case this pragma will generate an error as well.
  41981. 
  41982. File: gcc.info, Node: Visibility Pragmas, Next: Push/Pop Macro Pragmas, Prev: Diagnostic Pragmas, Up: Pragmas
  41983. 6.62.13 Visibility Pragmas
  41984. --------------------------
  41985. '#pragma GCC visibility push(VISIBILITY)'
  41986. '#pragma GCC visibility pop'
  41987. This pragma allows the user to set the visibility for multiple
  41988. declarations without having to give each a visibility attribute
  41989. (*note Function Attributes::).
  41990. In C++, '#pragma GCC visibility' affects only namespace-scope
  41991. declarations. Class members and template specializations are not
  41992. affected; if you want to override the visibility for a particular
  41993. member or instantiation, you must use an attribute.
  41994. 
  41995. File: gcc.info, Node: Push/Pop Macro Pragmas, Next: Function Specific Option Pragmas, Prev: Visibility Pragmas, Up: Pragmas
  41996. 6.62.14 Push/Pop Macro Pragmas
  41997. ------------------------------
  41998. For compatibility with Microsoft Windows compilers, GCC supports
  41999. '#pragma push_macro("MACRO_NAME")' and '#pragma
  42000. pop_macro("MACRO_NAME")'.
  42001. '#pragma push_macro("MACRO_NAME")'
  42002. This pragma saves the value of the macro named as MACRO_NAME to the
  42003. top of the stack for this macro.
  42004. '#pragma pop_macro("MACRO_NAME")'
  42005. This pragma sets the value of the macro named as MACRO_NAME to the
  42006. value on top of the stack for this macro. If the stack for
  42007. MACRO_NAME is empty, the value of the macro remains unchanged.
  42008. For example:
  42009. #define X 1
  42010. #pragma push_macro("X")
  42011. #undef X
  42012. #define X -1
  42013. #pragma pop_macro("X")
  42014. int x [X];
  42015. In this example, the definition of X as 1 is saved by '#pragma
  42016. push_macro' and restored by '#pragma pop_macro'.
  42017. 
  42018. File: gcc.info, Node: Function Specific Option Pragmas, Next: Loop-Specific Pragmas, Prev: Push/Pop Macro Pragmas, Up: Pragmas
  42019. 6.62.15 Function Specific Option Pragmas
  42020. ----------------------------------------
  42021. '#pragma GCC target (STRING, ...)'
  42022. This pragma allows you to set target-specific options for functions
  42023. defined later in the source file. One or more strings can be
  42024. specified. Each function that is defined after this point is
  42025. treated as if it had been declared with one 'target('STRING')'
  42026. attribute for each STRING argument. The parentheses around the
  42027. strings in the pragma are optional. *Note Function Attributes::,
  42028. for more information about the 'target' attribute and the attribute
  42029. syntax.
  42030. The '#pragma GCC target' pragma is presently implemented for x86,
  42031. ARM, AArch64, PowerPC, S/390, and Nios II targets only.
  42032. '#pragma GCC optimize (STRING, ...)'
  42033. This pragma allows you to set global optimization options for
  42034. functions defined later in the source file. One or more strings
  42035. can be specified. Each function that is defined after this point
  42036. is treated as if it had been declared with one 'optimize('STRING')'
  42037. attribute for each STRING argument. The parentheses around the
  42038. strings in the pragma are optional. *Note Function Attributes::,
  42039. for more information about the 'optimize' attribute and the
  42040. attribute syntax.
  42041. '#pragma GCC push_options'
  42042. '#pragma GCC pop_options'
  42043. These pragmas maintain a stack of the current target and
  42044. optimization options. It is intended for include files where you
  42045. temporarily want to switch to using a different '#pragma GCC
  42046. target' or '#pragma GCC optimize' and then to pop back to the
  42047. previous options.
  42048. '#pragma GCC reset_options'
  42049. This pragma clears the current '#pragma GCC target' and '#pragma
  42050. GCC optimize' to use the default switches as specified on the
  42051. command line.
  42052. 
  42053. File: gcc.info, Node: Loop-Specific Pragmas, Prev: Function Specific Option Pragmas, Up: Pragmas
  42054. 6.62.16 Loop-Specific Pragmas
  42055. -----------------------------
  42056. '#pragma GCC ivdep'
  42057. With this pragma, the programmer asserts that there are no
  42058. loop-carried dependencies which would prevent consecutive
  42059. iterations of the following loop from executing concurrently with
  42060. SIMD (single instruction multiple data) instructions.
  42061. For example, the compiler can only unconditionally vectorize the
  42062. following loop with the pragma:
  42063. void foo (int n, int *a, int *b, int *c)
  42064. {
  42065. int i, j;
  42066. #pragma GCC ivdep
  42067. for (i = 0; i < n; ++i)
  42068. a[i] = b[i] + c[i];
  42069. }
  42070. In this example, using the 'restrict' qualifier had the same
  42071. effect. In the following example, that would not be possible.
  42072. Assume k < -m or k >= m. Only with the pragma, the compiler knows
  42073. that it can unconditionally vectorize the following loop:
  42074. void ignore_vec_dep (int *a, int k, int c, int m)
  42075. {
  42076. #pragma GCC ivdep
  42077. for (int i = 0; i < m; i++)
  42078. a[i] = a[i + k] * c;
  42079. }
  42080. '#pragma GCC unroll N'
  42081. You can use this pragma to control how many times a loop should be
  42082. unrolled. It must be placed immediately before a 'for', 'while' or
  42083. 'do' loop or a '#pragma GCC ivdep', and applies only to the loop
  42084. that follows. N is an integer constant expression specifying the
  42085. unrolling factor. The values of 0 and 1 block any unrolling of the
  42086. loop.
  42087. 
  42088. File: gcc.info, Node: Unnamed Fields, Next: Thread-Local, Prev: Pragmas, Up: C Extensions
  42089. 6.63 Unnamed Structure and Union Fields
  42090. =======================================
  42091. As permitted by ISO C11 and for compatibility with other compilers, GCC
  42092. allows you to define a structure or union that contains, as fields,
  42093. structures and unions without names. For example:
  42094. struct {
  42095. int a;
  42096. union {
  42097. int b;
  42098. float c;
  42099. };
  42100. int d;
  42101. } foo;
  42102. In this example, you are able to access members of the unnamed union
  42103. with code like 'foo.b'. Note that only unnamed structs and unions are
  42104. allowed, you may not have, for example, an unnamed 'int'.
  42105. You must never create such structures that cause ambiguous field
  42106. definitions. For example, in this structure:
  42107. struct {
  42108. int a;
  42109. struct {
  42110. int a;
  42111. };
  42112. } foo;
  42113. it is ambiguous which 'a' is being referred to with 'foo.a'. The
  42114. compiler gives errors for such constructs.
  42115. Unless '-fms-extensions' is used, the unnamed field must be a structure
  42116. or union definition without a tag (for example, 'struct { int a; };').
  42117. If '-fms-extensions' is used, the field may also be a definition with a
  42118. tag such as 'struct foo { int a; };', a reference to a previously
  42119. defined structure or union such as 'struct foo;', or a reference to a
  42120. 'typedef' name for a previously defined structure or union type.
  42121. The option '-fplan9-extensions' enables '-fms-extensions' as well as
  42122. two other extensions. First, a pointer to a structure is automatically
  42123. converted to a pointer to an anonymous field for assignments and
  42124. function calls. For example:
  42125. struct s1 { int a; };
  42126. struct s2 { struct s1; };
  42127. extern void f1 (struct s1 *);
  42128. void f2 (struct s2 *p) { f1 (p); }
  42129. In the call to 'f1' inside 'f2', the pointer 'p' is converted into a
  42130. pointer to the anonymous field.
  42131. Second, when the type of an anonymous field is a 'typedef' for a
  42132. 'struct' or 'union', code may refer to the field using the name of the
  42133. 'typedef'.
  42134. typedef struct { int a; } s1;
  42135. struct s2 { s1; };
  42136. s1 f1 (struct s2 *p) { return p->s1; }
  42137. These usages are only permitted when they are not ambiguous.
  42138. 
  42139. File: gcc.info, Node: Thread-Local, Next: Binary constants, Prev: Unnamed Fields, Up: C Extensions
  42140. 6.64 Thread-Local Storage
  42141. =========================
  42142. Thread-local storage (TLS) is a mechanism by which variables are
  42143. allocated such that there is one instance of the variable per extant
  42144. thread. The runtime model GCC uses to implement this originates in the
  42145. IA-64 processor-specific ABI, but has since been migrated to other
  42146. processors as well. It requires significant support from the linker
  42147. ('ld'), dynamic linker ('ld.so'), and system libraries ('libc.so' and
  42148. 'libpthread.so'), so it is not available everywhere.
  42149. At the user level, the extension is visible with a new storage class
  42150. keyword: '__thread'. For example:
  42151. __thread int i;
  42152. extern __thread struct state s;
  42153. static __thread char *p;
  42154. The '__thread' specifier may be used alone, with the 'extern' or
  42155. 'static' specifiers, but with no other storage class specifier. When
  42156. used with 'extern' or 'static', '__thread' must appear immediately after
  42157. the other storage class specifier.
  42158. The '__thread' specifier may be applied to any global, file-scoped
  42159. static, function-scoped static, or static data member of a class. It
  42160. may not be applied to block-scoped automatic or non-static data member.
  42161. When the address-of operator is applied to a thread-local variable, it
  42162. is evaluated at run time and returns the address of the current thread's
  42163. instance of that variable. An address so obtained may be used by any
  42164. thread. When a thread terminates, any pointers to thread-local
  42165. variables in that thread become invalid.
  42166. No static initialization may refer to the address of a thread-local
  42167. variable.
  42168. In C++, if an initializer is present for a thread-local variable, it
  42169. must be a CONSTANT-EXPRESSION, as defined in 5.19.2 of the ANSI/ISO C++
  42170. standard.
  42171. See ELF Handling For Thread-Local Storage
  42172. (https://www.akkadia.org/drepper/tls.pdf) for a detailed explanation of
  42173. the four thread-local storage addressing models, and how the runtime is
  42174. expected to function.
  42175. * Menu:
  42176. * C99 Thread-Local Edits::
  42177. * C++98 Thread-Local Edits::
  42178. 
  42179. File: gcc.info, Node: C99 Thread-Local Edits, Next: C++98 Thread-Local Edits, Up: Thread-Local
  42180. 6.64.1 ISO/IEC 9899:1999 Edits for Thread-Local Storage
  42181. -------------------------------------------------------
  42182. The following are a set of changes to ISO/IEC 9899:1999 (aka C99) that
  42183. document the exact semantics of the language extension.
  42184. * '5.1.2 Execution environments'
  42185. Add new text after paragraph 1
  42186. Within either execution environment, a "thread" is a flow of
  42187. control within a program. It is implementation defined
  42188. whether or not there may be more than one thread associated
  42189. with a program. It is implementation defined how threads
  42190. beyond the first are created, the name and type of the
  42191. function called at thread startup, and how threads may be
  42192. terminated. However, objects with thread storage duration
  42193. shall be initialized before thread startup.
  42194. * '6.2.4 Storage durations of objects'
  42195. Add new text before paragraph 3
  42196. An object whose identifier is declared with the storage-class
  42197. specifier '__thread' has "thread storage duration". Its
  42198. lifetime is the entire execution of the thread, and its stored
  42199. value is initialized only once, prior to thread startup.
  42200. * '6.4.1 Keywords'
  42201. Add '__thread'.
  42202. * '6.7.1 Storage-class specifiers'
  42203. Add '__thread' to the list of storage class specifiers in paragraph
  42204. 1.
  42205. Change paragraph 2 to
  42206. With the exception of '__thread', at most one storage-class
  42207. specifier may be given [...]. The '__thread' specifier may be
  42208. used alone, or immediately following 'extern' or 'static'.
  42209. Add new text after paragraph 6
  42210. The declaration of an identifier for a variable that has block
  42211. scope that specifies '__thread' shall also specify either
  42212. 'extern' or 'static'.
  42213. The '__thread' specifier shall be used only with variables.
  42214. 
  42215. File: gcc.info, Node: C++98 Thread-Local Edits, Prev: C99 Thread-Local Edits, Up: Thread-Local
  42216. 6.64.2 ISO/IEC 14882:1998 Edits for Thread-Local Storage
  42217. --------------------------------------------------------
  42218. The following are a set of changes to ISO/IEC 14882:1998 (aka C++98)
  42219. that document the exact semantics of the language extension.
  42220. * [intro.execution]
  42221. New text after paragraph 4
  42222. A "thread" is a flow of control within the abstract machine.
  42223. It is implementation defined whether or not there may be more
  42224. than one thread.
  42225. New text after paragraph 7
  42226. It is unspecified whether additional action must be taken to
  42227. ensure when and whether side effects are visible to other
  42228. threads.
  42229. * [lex.key]
  42230. Add '__thread'.
  42231. * [basic.start.main]
  42232. Add after paragraph 5
  42233. The thread that begins execution at the 'main' function is
  42234. called the "main thread". It is implementation defined how
  42235. functions beginning threads other than the main thread are
  42236. designated or typed. A function so designated, as well as the
  42237. 'main' function, is called a "thread startup function". It is
  42238. implementation defined what happens if a thread startup
  42239. function returns. It is implementation defined what happens
  42240. to other threads when any thread calls 'exit'.
  42241. * [basic.start.init]
  42242. Add after paragraph 4
  42243. The storage for an object of thread storage duration shall be
  42244. statically initialized before the first statement of the
  42245. thread startup function. An object of thread storage duration
  42246. shall not require dynamic initialization.
  42247. * [basic.start.term]
  42248. Add after paragraph 3
  42249. The type of an object with thread storage duration shall not
  42250. have a non-trivial destructor, nor shall it be an array type
  42251. whose elements (directly or indirectly) have non-trivial
  42252. destructors.
  42253. * [basic.stc]
  42254. Add "thread storage duration" to the list in paragraph 1.
  42255. Change paragraph 2
  42256. Thread, static, and automatic storage durations are associated
  42257. with objects introduced by declarations [...].
  42258. Add '__thread' to the list of specifiers in paragraph 3.
  42259. * [basic.stc.thread]
  42260. New section before [basic.stc.static]
  42261. The keyword '__thread' applied to a non-local object gives the
  42262. object thread storage duration.
  42263. A local variable or class data member declared both 'static'
  42264. and '__thread' gives the variable or member thread storage
  42265. duration.
  42266. * [basic.stc.static]
  42267. Change paragraph 1
  42268. All objects that have neither thread storage duration, dynamic
  42269. storage duration nor are local [...].
  42270. * [dcl.stc]
  42271. Add '__thread' to the list in paragraph 1.
  42272. Change paragraph 1
  42273. With the exception of '__thread', at most one
  42274. STORAGE-CLASS-SPECIFIER shall appear in a given
  42275. DECL-SPECIFIER-SEQ. The '__thread' specifier may be used
  42276. alone, or immediately following the 'extern' or 'static'
  42277. specifiers. [...]
  42278. Add after paragraph 5
  42279. The '__thread' specifier can be applied only to the names of
  42280. objects and to anonymous unions.
  42281. * [class.mem]
  42282. Add after paragraph 6
  42283. Non-'static' members shall not be '__thread'.
  42284. 
  42285. File: gcc.info, Node: Binary constants, Prev: Thread-Local, Up: C Extensions
  42286. 6.65 Binary Constants using the '0b' Prefix
  42287. ===========================================
  42288. Integer constants can be written as binary constants, consisting of a
  42289. sequence of '0' and '1' digits, prefixed by '0b' or '0B'. This is
  42290. particularly useful in environments that operate a lot on the bit level
  42291. (like microcontrollers).
  42292. The following statements are identical:
  42293. i = 42;
  42294. i = 0x2a;
  42295. i = 052;
  42296. i = 0b101010;
  42297. The type of these constants follows the same rules as for octal or
  42298. hexadecimal integer constants, so suffixes like 'L' or 'UL' can be
  42299. applied.
  42300. 
  42301. File: gcc.info, Node: C++ Extensions, Next: Objective-C, Prev: C Extensions, Up: Top
  42302. 7 Extensions to the C++ Language
  42303. ********************************
  42304. The GNU compiler provides these extensions to the C++ language (and you
  42305. can also use most of the C language extensions in your C++ programs).
  42306. If you want to write code that checks whether these features are
  42307. available, you can test for the GNU compiler the same way as for C
  42308. programs: check for a predefined macro '__GNUC__'. You can also use
  42309. '__GNUG__' to test specifically for GNU C++ (*note Predefined Macros:
  42310. (cpp)Common Predefined Macros.).
  42311. * Menu:
  42312. * C++ Volatiles:: What constitutes an access to a volatile object.
  42313. * Restricted Pointers:: C99 restricted pointers and references.
  42314. * Vague Linkage:: Where G++ puts inlines, vtables and such.
  42315. * C++ Interface:: You can use a single C++ header file for both
  42316. declarations and definitions.
  42317. * Template Instantiation:: Methods for ensuring that exactly one copy of
  42318. each needed template instantiation is emitted.
  42319. * Bound member functions:: You can extract a function pointer to the
  42320. method denoted by a '->*' or '.*' expression.
  42321. * C++ Attributes:: Variable, function, and type attributes for C++ only.
  42322. * Function Multiversioning:: Declaring multiple function versions.
  42323. * Type Traits:: Compiler support for type traits.
  42324. * C++ Concepts:: Improved support for generic programming.
  42325. * Deprecated Features:: Things will disappear from G++.
  42326. * Backwards Compatibility:: Compatibilities with earlier definitions of C++.
  42327. 
  42328. File: gcc.info, Node: C++ Volatiles, Next: Restricted Pointers, Up: C++ Extensions
  42329. 7.1 When is a Volatile C++ Object Accessed?
  42330. ===========================================
  42331. The C++ standard differs from the C standard in its treatment of
  42332. volatile objects. It fails to specify what constitutes a volatile
  42333. access, except to say that C++ should behave in a similar manner to C
  42334. with respect to volatiles, where possible. However, the different
  42335. lvalueness of expressions between C and C++ complicate the behavior.
  42336. G++ behaves the same as GCC for volatile access, *Note Volatiles: C
  42337. Extensions, for a description of GCC's behavior.
  42338. The C and C++ language specifications differ when an object is accessed
  42339. in a void context:
  42340. volatile int *src = SOMEVALUE;
  42341. *src;
  42342. The C++ standard specifies that such expressions do not undergo lvalue
  42343. to rvalue conversion, and that the type of the dereferenced object may
  42344. be incomplete. The C++ standard does not specify explicitly that it is
  42345. lvalue to rvalue conversion that is responsible for causing an access.
  42346. There is reason to believe that it is, because otherwise certain simple
  42347. expressions become undefined. However, because it would surprise most
  42348. programmers, G++ treats dereferencing a pointer to volatile object of
  42349. complete type as GCC would do for an equivalent type in C. When the
  42350. object has incomplete type, G++ issues a warning; if you wish to force
  42351. an error, you must force a conversion to rvalue with, for instance, a
  42352. static cast.
  42353. When using a reference to volatile, G++ does not treat equivalent
  42354. expressions as accesses to volatiles, but instead issues a warning that
  42355. no volatile is accessed. The rationale for this is that otherwise it
  42356. becomes difficult to determine where volatile access occur, and not
  42357. possible to ignore the return value from functions returning volatile
  42358. references. Again, if you wish to force a read, cast the reference to
  42359. an rvalue.
  42360. G++ implements the same behavior as GCC does when assigning to a
  42361. volatile object--there is no reread of the assigned-to object, the
  42362. assigned rvalue is reused. Note that in C++ assignment expressions are
  42363. lvalues, and if used as an lvalue, the volatile object is referred to.
  42364. For instance, VREF refers to VOBJ, as expected, in the following
  42365. example:
  42366. volatile int vobj;
  42367. volatile int &vref = vobj = SOMETHING;
  42368. 
  42369. File: gcc.info, Node: Restricted Pointers, Next: Vague Linkage, Prev: C++ Volatiles, Up: C++ Extensions
  42370. 7.2 Restricting Pointer Aliasing
  42371. ================================
  42372. As with the C front end, G++ understands the C99 feature of restricted
  42373. pointers, specified with the '__restrict__', or '__restrict' type
  42374. qualifier. Because you cannot compile C++ by specifying the '-std=c99'
  42375. language flag, 'restrict' is not a keyword in C++.
  42376. In addition to allowing restricted pointers, you can specify restricted
  42377. references, which indicate that the reference is not aliased in the
  42378. local context.
  42379. void fn (int *__restrict__ rptr, int &__restrict__ rref)
  42380. {
  42381. /* ... */
  42382. }
  42383. In the body of 'fn', RPTR points to an unaliased integer and RREF refers
  42384. to a (different) unaliased integer.
  42385. You may also specify whether a member function's THIS pointer is
  42386. unaliased by using '__restrict__' as a member function qualifier.
  42387. void T::fn () __restrict__
  42388. {
  42389. /* ... */
  42390. }
  42391. Within the body of 'T::fn', THIS has the effective definition 'T
  42392. *__restrict__ const this'. Notice that the interpretation of a
  42393. '__restrict__' member function qualifier is different to that of 'const'
  42394. or 'volatile' qualifier, in that it is applied to the pointer rather
  42395. than the object. This is consistent with other compilers that implement
  42396. restricted pointers.
  42397. As with all outermost parameter qualifiers, '__restrict__' is ignored
  42398. in function definition matching. This means you only need to specify
  42399. '__restrict__' in a function definition, rather than in a function
  42400. prototype as well.
  42401. 
  42402. File: gcc.info, Node: Vague Linkage, Next: C++ Interface, Prev: Restricted Pointers, Up: C++ Extensions
  42403. 7.3 Vague Linkage
  42404. =================
  42405. There are several constructs in C++ that require space in the object
  42406. file but are not clearly tied to a single translation unit. We say that
  42407. these constructs have "vague linkage". Typically such constructs are
  42408. emitted wherever they are needed, though sometimes we can be more
  42409. clever.
  42410. Inline Functions
  42411. Inline functions are typically defined in a header file which can
  42412. be included in many different compilations. Hopefully they can
  42413. usually be inlined, but sometimes an out-of-line copy is necessary,
  42414. if the address of the function is taken or if inlining fails. In
  42415. general, we emit an out-of-line copy in all translation units where
  42416. one is needed. As an exception, we only emit inline virtual
  42417. functions with the vtable, since it always requires a copy.
  42418. Local static variables and string constants used in an inline
  42419. function are also considered to have vague linkage, since they must
  42420. be shared between all inlined and out-of-line instances of the
  42421. function.
  42422. VTables
  42423. C++ virtual functions are implemented in most compilers using a
  42424. lookup table, known as a vtable. The vtable contains pointers to
  42425. the virtual functions provided by a class, and each object of the
  42426. class contains a pointer to its vtable (or vtables, in some
  42427. multiple-inheritance situations). If the class declares any
  42428. non-inline, non-pure virtual functions, the first one is chosen as
  42429. the "key method" for the class, and the vtable is only emitted in
  42430. the translation unit where the key method is defined.
  42431. _Note:_ If the chosen key method is later defined as inline, the
  42432. vtable is still emitted in every translation unit that defines it.
  42433. Make sure that any inline virtuals are declared inline in the class
  42434. body, even if they are not defined there.
  42435. 'type_info' objects
  42436. C++ requires information about types to be written out in order to
  42437. implement 'dynamic_cast', 'typeid' and exception handling. For
  42438. polymorphic classes (classes with virtual functions), the
  42439. 'type_info' object is written out along with the vtable so that
  42440. 'dynamic_cast' can determine the dynamic type of a class object at
  42441. run time. For all other types, we write out the 'type_info' object
  42442. when it is used: when applying 'typeid' to an expression, throwing
  42443. an object, or referring to a type in a catch clause or exception
  42444. specification.
  42445. Template Instantiations
  42446. Most everything in this section also applies to template
  42447. instantiations, but there are other options as well. *Note Where's
  42448. the Template?: Template Instantiation.
  42449. When used with GNU ld version 2.8 or later on an ELF system such as
  42450. GNU/Linux or Solaris 2, or on Microsoft Windows, duplicate copies of
  42451. these constructs will be discarded at link time. This is known as
  42452. COMDAT support.
  42453. On targets that don't support COMDAT, but do support weak symbols, GCC
  42454. uses them. This way one copy overrides all the others, but the unused
  42455. copies still take up space in the executable.
  42456. For targets that do not support either COMDAT or weak symbols, most
  42457. entities with vague linkage are emitted as local symbols to avoid
  42458. duplicate definition errors from the linker. This does not happen for
  42459. local statics in inlines, however, as having multiple copies almost
  42460. certainly breaks things.
  42461. *Note Declarations and Definitions in One Header: C++ Interface, for
  42462. another way to control placement of these constructs.
  42463. 
  42464. File: gcc.info, Node: C++ Interface, Next: Template Instantiation, Prev: Vague Linkage, Up: C++ Extensions
  42465. 7.4 C++ Interface and Implementation Pragmas
  42466. ============================================
  42467. '#pragma interface' and '#pragma implementation' provide the user with a
  42468. way of explicitly directing the compiler to emit entities with vague
  42469. linkage (and debugging information) in a particular translation unit.
  42470. _Note:_ These '#pragma's have been superceded as of GCC 2.7.2 by COMDAT
  42471. support and the "key method" heuristic mentioned in *note Vague
  42472. Linkage::. Using them can actually cause your program to grow due to
  42473. unnecessary out-of-line copies of inline functions.
  42474. '#pragma interface'
  42475. '#pragma interface "SUBDIR/OBJECTS.h"'
  42476. Use this directive in _header files_ that define object classes, to
  42477. save space in most of the object files that use those classes.
  42478. Normally, local copies of certain information (backup copies of
  42479. inline member functions, debugging information, and the internal
  42480. tables that implement virtual functions) must be kept in each
  42481. object file that includes class definitions. You can use this
  42482. pragma to avoid such duplication. When a header file containing
  42483. '#pragma interface' is included in a compilation, this auxiliary
  42484. information is not generated (unless the main input source file
  42485. itself uses '#pragma implementation'). Instead, the object files
  42486. contain references to be resolved at link time.
  42487. The second form of this directive is useful for the case where you
  42488. have multiple headers with the same name in different directories.
  42489. If you use this form, you must specify the same string to '#pragma
  42490. implementation'.
  42491. '#pragma implementation'
  42492. '#pragma implementation "OBJECTS.h"'
  42493. Use this pragma in a _main input file_, when you want full output
  42494. from included header files to be generated (and made globally
  42495. visible). The included header file, in turn, should use '#pragma
  42496. interface'. Backup copies of inline member functions, debugging
  42497. information, and the internal tables used to implement virtual
  42498. functions are all generated in implementation files.
  42499. If you use '#pragma implementation' with no argument, it applies to
  42500. an include file with the same basename(1) as your source file. For
  42501. example, in 'allclass.cc', giving just '#pragma implementation' by
  42502. itself is equivalent to '#pragma implementation "allclass.h"'.
  42503. Use the string argument if you want a single implementation file to
  42504. include code from multiple header files. (You must also use
  42505. '#include' to include the header file; '#pragma implementation'
  42506. only specifies how to use the file--it doesn't actually include
  42507. it.)
  42508. There is no way to split up the contents of a single header file
  42509. into multiple implementation files.
  42510. '#pragma implementation' and '#pragma interface' also have an effect on
  42511. function inlining.
  42512. If you define a class in a header file marked with '#pragma interface',
  42513. the effect on an inline function defined in that class is similar to an
  42514. explicit 'extern' declaration--the compiler emits no code at all to
  42515. define an independent version of the function. Its definition is used
  42516. only for inlining with its callers.
  42517. Conversely, when you include the same header file in a main source file
  42518. that declares it as '#pragma implementation', the compiler emits code
  42519. for the function itself; this defines a version of the function that can
  42520. be found via pointers (or by callers compiled without inlining). If all
  42521. calls to the function can be inlined, you can avoid emitting the
  42522. function by compiling with '-fno-implement-inlines'. If any calls are
  42523. not inlined, you will get linker errors.
  42524. ---------- Footnotes ----------
  42525. (1) A file's "basename" is the name stripped of all leading path
  42526. information and of trailing suffixes, such as '.h' or '.C' or '.cc'.
  42527. 
  42528. File: gcc.info, Node: Template Instantiation, Next: Bound member functions, Prev: C++ Interface, Up: C++ Extensions
  42529. 7.5 Where's the Template?
  42530. =========================
  42531. C++ templates were the first language feature to require more
  42532. intelligence from the environment than was traditionally found on a UNIX
  42533. system. Somehow the compiler and linker have to make sure that each
  42534. template instance occurs exactly once in the executable if it is needed,
  42535. and not at all otherwise. There are two basic approaches to this
  42536. problem, which are referred to as the Borland model and the Cfront
  42537. model.
  42538. Borland model
  42539. Borland C++ solved the template instantiation problem by adding the
  42540. code equivalent of common blocks to their linker; the compiler
  42541. emits template instances in each translation unit that uses them,
  42542. and the linker collapses them together. The advantage of this
  42543. model is that the linker only has to consider the object files
  42544. themselves; there is no external complexity to worry about. The
  42545. disadvantage is that compilation time is increased because the
  42546. template code is being compiled repeatedly. Code written for this
  42547. model tends to include definitions of all templates in the header
  42548. file, since they must be seen to be instantiated.
  42549. Cfront model
  42550. The AT&T C++ translator, Cfront, solved the template instantiation
  42551. problem by creating the notion of a template repository, an
  42552. automatically maintained place where template instances are stored.
  42553. A more modern version of the repository works as follows: As
  42554. individual object files are built, the compiler places any template
  42555. definitions and instantiations encountered in the repository. At
  42556. link time, the link wrapper adds in the objects in the repository
  42557. and compiles any needed instances that were not previously emitted.
  42558. The advantages of this model are more optimal compilation speed and
  42559. the ability to use the system linker; to implement the Borland
  42560. model a compiler vendor also needs to replace the linker. The
  42561. disadvantages are vastly increased complexity, and thus potential
  42562. for error; for some code this can be just as transparent, but in
  42563. practice it can been very difficult to build multiple programs in
  42564. one directory and one program in multiple directories. Code
  42565. written for this model tends to separate definitions of non-inline
  42566. member templates into a separate file, which should be compiled
  42567. separately.
  42568. G++ implements the Borland model on targets where the linker supports
  42569. it, including ELF targets (such as GNU/Linux), Mac OS X and Microsoft
  42570. Windows. Otherwise G++ implements neither automatic model.
  42571. You have the following options for dealing with template
  42572. instantiations:
  42573. 1. Do nothing. Code written for the Borland model works fine, but
  42574. each translation unit contains instances of each of the templates
  42575. it uses. The duplicate instances will be discarded by the linker,
  42576. but in a large program, this can lead to an unacceptable amount of
  42577. code duplication in object files or shared libraries.
  42578. Duplicate instances of a template can be avoided by defining an
  42579. explicit instantiation in one object file, and preventing the
  42580. compiler from doing implicit instantiations in any other object
  42581. files by using an explicit instantiation declaration, using the
  42582. 'extern template' syntax:
  42583. extern template int max (int, int);
  42584. This syntax is defined in the C++ 2011 standard, but has been
  42585. supported by G++ and other compilers since well before 2011.
  42586. Explicit instantiations can be used for the largest or most
  42587. frequently duplicated instances, without having to know exactly
  42588. which other instances are used in the rest of the program. You can
  42589. scatter the explicit instantiations throughout your program,
  42590. perhaps putting them in the translation units where the instances
  42591. are used or the translation units that define the templates
  42592. themselves; you can put all of the explicit instantiations you need
  42593. into one big file; or you can create small files like
  42594. #include "Foo.h"
  42595. #include "Foo.cc"
  42596. template class Foo<int>;
  42597. template ostream& operator <<
  42598. (ostream&, const Foo<int>&);
  42599. for each of the instances you need, and create a template
  42600. instantiation library from those.
  42601. This is the simplest option, but also offers flexibility and
  42602. fine-grained control when necessary. It is also the most portable
  42603. alternative and programs using this approach will work with most
  42604. modern compilers.
  42605. 2. Compile your template-using code with '-frepo'. The compiler
  42606. generates files with the extension '.rpo' listing all of the
  42607. template instantiations used in the corresponding object files that
  42608. could be instantiated there; the link wrapper, 'collect2', then
  42609. updates the '.rpo' files to tell the compiler where to place those
  42610. instantiations and rebuild any affected object files. The
  42611. link-time overhead is negligible after the first pass, as the
  42612. compiler continues to place the instantiations in the same files.
  42613. This can be a suitable option for application code written for the
  42614. Borland model, as it usually just works. Code written for the
  42615. Cfront model needs to be modified so that the template definitions
  42616. are available at one or more points of instantiation; usually this
  42617. is as simple as adding '#include <tmethods.cc>' to the end of each
  42618. template header.
  42619. For library code, if you want the library to provide all of the
  42620. template instantiations it needs, just try to link all of its
  42621. object files together; the link will fail, but cause the
  42622. instantiations to be generated as a side effect. Be warned,
  42623. however, that this may cause conflicts if multiple libraries try to
  42624. provide the same instantiations. For greater control, use explicit
  42625. instantiation as described in the next option.
  42626. 3. Compile your code with '-fno-implicit-templates' to disable the
  42627. implicit generation of template instances, and explicitly
  42628. instantiate all the ones you use. This approach requires more
  42629. knowledge of exactly which instances you need than do the others,
  42630. but it's less mysterious and allows greater control if you want to
  42631. ensure that only the intended instances are used.
  42632. If you are using Cfront-model code, you can probably get away with
  42633. not using '-fno-implicit-templates' when compiling files that don't
  42634. '#include' the member template definitions.
  42635. If you use one big file to do the instantiations, you may want to
  42636. compile it without '-fno-implicit-templates' so you get all of the
  42637. instances required by your explicit instantiations (but not by any
  42638. other files) without having to specify them as well.
  42639. In addition to forward declaration of explicit instantiations (with
  42640. 'extern'), G++ has extended the template instantiation syntax to
  42641. support instantiation of the compiler support data for a template
  42642. class (i.e. the vtable) without instantiating any of its members
  42643. (with 'inline'), and instantiation of only the static data members
  42644. of a template class, without the support data or member functions
  42645. (with 'static'):
  42646. inline template class Foo<int>;
  42647. static template class Foo<int>;
  42648. 
  42649. File: gcc.info, Node: Bound member functions, Next: C++ Attributes, Prev: Template Instantiation, Up: C++ Extensions
  42650. 7.6 Extracting the Function Pointer from a Bound Pointer to Member Function
  42651. ===========================================================================
  42652. In C++, pointer to member functions (PMFs) are implemented using a wide
  42653. pointer of sorts to handle all the possible call mechanisms; the PMF
  42654. needs to store information about how to adjust the 'this' pointer, and
  42655. if the function pointed to is virtual, where to find the vtable, and
  42656. where in the vtable to look for the member function. If you are using
  42657. PMFs in an inner loop, you should really reconsider that decision. If
  42658. that is not an option, you can extract the pointer to the function that
  42659. would be called for a given object/PMF pair and call it directly inside
  42660. the inner loop, to save a bit of time.
  42661. Note that you still pay the penalty for the call through a function
  42662. pointer; on most modern architectures, such a call defeats the branch
  42663. prediction features of the CPU. This is also true of normal virtual
  42664. function calls.
  42665. The syntax for this extension is
  42666. extern A a;
  42667. extern int (A::*fp)();
  42668. typedef int (*fptr)(A *);
  42669. fptr p = (fptr)(a.*fp);
  42670. For PMF constants (i.e. expressions of the form '&Klasse::Member'), no
  42671. object is needed to obtain the address of the function. They can be
  42672. converted to function pointers directly:
  42673. fptr p1 = (fptr)(&A::foo);
  42674. You must specify '-Wno-pmf-conversions' to use this extension.
  42675. 
  42676. File: gcc.info, Node: C++ Attributes, Next: Function Multiversioning, Prev: Bound member functions, Up: C++ Extensions
  42677. 7.7 C++-Specific Variable, Function, and Type Attributes
  42678. ========================================================
  42679. Some attributes only make sense for C++ programs.
  42680. 'abi_tag ("TAG", ...)'
  42681. The 'abi_tag' attribute can be applied to a function, variable, or
  42682. class declaration. It modifies the mangled name of the entity to
  42683. incorporate the tag name, in order to distinguish the function or
  42684. class from an earlier version with a different ABI; perhaps the
  42685. class has changed size, or the function has a different return type
  42686. that is not encoded in the mangled name.
  42687. The attribute can also be applied to an inline namespace, but does
  42688. not affect the mangled name of the namespace; in this case it is
  42689. only used for '-Wabi-tag' warnings and automatic tagging of
  42690. functions and variables. Tagging inline namespaces is generally
  42691. preferable to tagging individual declarations, but the latter is
  42692. sometimes necessary, such as when only certain members of a class
  42693. need to be tagged.
  42694. The argument can be a list of strings of arbitrary length. The
  42695. strings are sorted on output, so the order of the list is
  42696. unimportant.
  42697. A redeclaration of an entity must not add new ABI tags, since doing
  42698. so would change the mangled name.
  42699. The ABI tags apply to a name, so all instantiations and
  42700. specializations of a template have the same tags. The attribute
  42701. will be ignored if applied to an explicit specialization or
  42702. instantiation.
  42703. The '-Wabi-tag' flag enables a warning about a class which does not
  42704. have all the ABI tags used by its subobjects and virtual functions;
  42705. for users with code that needs to coexist with an earlier ABI,
  42706. using this option can help to find all affected types that need to
  42707. be tagged.
  42708. When a type involving an ABI tag is used as the type of a variable
  42709. or return type of a function where that tag is not already present
  42710. in the signature of the function, the tag is automatically applied
  42711. to the variable or function. '-Wabi-tag' also warns about this
  42712. situation; this warning can be avoided by explicitly tagging the
  42713. variable or function or moving it into a tagged inline namespace.
  42714. 'init_priority (PRIORITY)'
  42715. In Standard C++, objects defined at namespace scope are guaranteed
  42716. to be initialized in an order in strict accordance with that of
  42717. their definitions _in a given translation unit_. No guarantee is
  42718. made for initializations across translation units. However, GNU
  42719. C++ allows users to control the order of initialization of objects
  42720. defined at namespace scope with the 'init_priority' attribute by
  42721. specifying a relative PRIORITY, a constant integral expression
  42722. currently bounded between 101 and 65535 inclusive. Lower numbers
  42723. indicate a higher priority.
  42724. In the following example, 'A' would normally be created before 'B',
  42725. but the 'init_priority' attribute reverses that order:
  42726. Some_Class A __attribute__ ((init_priority (2000)));
  42727. Some_Class B __attribute__ ((init_priority (543)));
  42728. Note that the particular values of PRIORITY do not matter; only
  42729. their relative ordering.
  42730. 'warn_unused'
  42731. For C++ types with non-trivial constructors and/or destructors it
  42732. is impossible for the compiler to determine whether a variable of
  42733. this type is truly unused if it is not referenced. This type
  42734. attribute informs the compiler that variables of this type should
  42735. be warned about if they appear to be unused, just like variables of
  42736. fundamental types.
  42737. This attribute is appropriate for types which just represent a
  42738. value, such as 'std::string'; it is not appropriate for types which
  42739. control a resource, such as 'std::lock_guard'.
  42740. This attribute is also accepted in C, but it is unnecessary because
  42741. C does not have constructors or destructors.
  42742. 
  42743. File: gcc.info, Node: Function Multiversioning, Next: Type Traits, Prev: C++ Attributes, Up: C++ Extensions
  42744. 7.8 Function Multiversioning
  42745. ============================
  42746. With the GNU C++ front end, for x86 targets, you may specify multiple
  42747. versions of a function, where each function is specialized for a
  42748. specific target feature. At runtime, the appropriate version of the
  42749. function is automatically executed depending on the characteristics of
  42750. the execution platform. Here is an example.
  42751. __attribute__ ((target ("default")))
  42752. int foo ()
  42753. {
  42754. // The default version of foo.
  42755. return 0;
  42756. }
  42757. __attribute__ ((target ("sse4.2")))
  42758. int foo ()
  42759. {
  42760. // foo version for SSE4.2
  42761. return 1;
  42762. }
  42763. __attribute__ ((target ("arch=atom")))
  42764. int foo ()
  42765. {
  42766. // foo version for the Intel ATOM processor
  42767. return 2;
  42768. }
  42769. __attribute__ ((target ("arch=amdfam10")))
  42770. int foo ()
  42771. {
  42772. // foo version for the AMD Family 0x10 processors.
  42773. return 3;
  42774. }
  42775. int main ()
  42776. {
  42777. int (*p)() = &foo;
  42778. assert ((*p) () == foo ());
  42779. return 0;
  42780. }
  42781. In the above example, four versions of function foo are created. The
  42782. first version of foo with the target attribute "default" is the default
  42783. version. This version gets executed when no other target specific
  42784. version qualifies for execution on a particular platform. A new version
  42785. of foo is created by using the same function signature but with a
  42786. different target string. Function foo is called or a pointer to it is
  42787. taken just like a regular function. GCC takes care of doing the
  42788. dispatching to call the right version at runtime. Refer to the GCC wiki
  42789. on Function Multiversioning
  42790. (http://gcc.gnu.org/wiki/FunctionMultiVersioning) for more details.
  42791. 
  42792. File: gcc.info, Node: Type Traits, Next: C++ Concepts, Prev: Function Multiversioning, Up: C++ Extensions
  42793. 7.9 Type Traits
  42794. ===============
  42795. The C++ front end implements syntactic extensions that allow
  42796. compile-time determination of various characteristics of a type (or of a
  42797. pair of types).
  42798. '__has_nothrow_assign (type)'
  42799. If 'type' is 'const'-qualified or is a reference type then the
  42800. trait is 'false'. Otherwise if '__has_trivial_assign (type)' is
  42801. 'true' then the trait is 'true', else if 'type' is a cv-qualified
  42802. class or union type with copy assignment operators that are known
  42803. not to throw an exception then the trait is 'true', else it is
  42804. 'false'. Requires: 'type' shall be a complete type, (possibly
  42805. cv-qualified) 'void', or an array of unknown bound.
  42806. '__has_nothrow_copy (type)'
  42807. If '__has_trivial_copy (type)' is 'true' then the trait is 'true',
  42808. else if 'type' is a cv-qualified class or union type with copy
  42809. constructors that are known not to throw an exception then the
  42810. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  42811. complete type, (possibly cv-qualified) 'void', or an array of
  42812. unknown bound.
  42813. '__has_nothrow_constructor (type)'
  42814. If '__has_trivial_constructor (type)' is 'true' then the trait is
  42815. 'true', else if 'type' is a cv class or union type (or array
  42816. thereof) with a default constructor that is known not to throw an
  42817. exception then the trait is 'true', else it is 'false'. Requires:
  42818. 'type' shall be a complete type, (possibly cv-qualified) 'void', or
  42819. an array of unknown bound.
  42820. '__has_trivial_assign (type)'
  42821. If 'type' is 'const'- qualified or is a reference type then the
  42822. trait is 'false'. Otherwise if '__is_pod (type)' is 'true' then
  42823. the trait is 'true', else if 'type' is a cv-qualified class or
  42824. union type with a trivial copy assignment ([class.copy]) then the
  42825. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  42826. complete type, (possibly cv-qualified) 'void', or an array of
  42827. unknown bound.
  42828. '__has_trivial_copy (type)'
  42829. If '__is_pod (type)' is 'true' or 'type' is a reference type then
  42830. the trait is 'true', else if 'type' is a cv class or union type
  42831. with a trivial copy constructor ([class.copy]) then the trait is
  42832. 'true', else it is 'false'. Requires: 'type' shall be a complete
  42833. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  42834. '__has_trivial_constructor (type)'
  42835. If '__is_pod (type)' is 'true' then the trait is 'true', else if
  42836. 'type' is a cv-qualified class or union type (or array thereof)
  42837. with a trivial default constructor ([class.ctor]) then the trait is
  42838. 'true', else it is 'false'. Requires: 'type' shall be a complete
  42839. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  42840. '__has_trivial_destructor (type)'
  42841. If '__is_pod (type)' is 'true' or 'type' is a reference type then
  42842. the trait is 'true', else if 'type' is a cv class or union type (or
  42843. array thereof) with a trivial destructor ([class.dtor]) then the
  42844. trait is 'true', else it is 'false'. Requires: 'type' shall be a
  42845. complete type, (possibly cv-qualified) 'void', or an array of
  42846. unknown bound.
  42847. '__has_virtual_destructor (type)'
  42848. If 'type' is a class type with a virtual destructor ([class.dtor])
  42849. then the trait is 'true', else it is 'false'. Requires: 'type'
  42850. shall be a complete type, (possibly cv-qualified) 'void', or an
  42851. array of unknown bound.
  42852. '__is_abstract (type)'
  42853. If 'type' is an abstract class ([class.abstract]) then the trait is
  42854. 'true', else it is 'false'. Requires: 'type' shall be a complete
  42855. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  42856. '__is_base_of (base_type, derived_type)'
  42857. If 'base_type' is a base class of 'derived_type' ([class.derived])
  42858. then the trait is 'true', otherwise it is 'false'. Top-level
  42859. cv-qualifications of 'base_type' and 'derived_type' are ignored.
  42860. For the purposes of this trait, a class type is considered is own
  42861. base. Requires: if '__is_class (base_type)' and '__is_class
  42862. (derived_type)' are 'true' and 'base_type' and 'derived_type' are
  42863. not the same type (disregarding cv-qualifiers), 'derived_type'
  42864. shall be a complete type. A diagnostic is produced if this
  42865. requirement is not met.
  42866. '__is_class (type)'
  42867. If 'type' is a cv-qualified class type, and not a union type
  42868. ([basic.compound]) the trait is 'true', else it is 'false'.
  42869. '__is_empty (type)'
  42870. If '__is_class (type)' is 'false' then the trait is 'false'.
  42871. Otherwise 'type' is considered empty if and only if: 'type' has no
  42872. non-static data members, or all non-static data members, if any,
  42873. are bit-fields of length 0, and 'type' has no virtual members, and
  42874. 'type' has no virtual base classes, and 'type' has no base classes
  42875. 'base_type' for which '__is_empty (base_type)' is 'false'.
  42876. Requires: 'type' shall be a complete type, (possibly cv-qualified)
  42877. 'void', or an array of unknown bound.
  42878. '__is_enum (type)'
  42879. If 'type' is a cv enumeration type ([basic.compound]) the trait is
  42880. 'true', else it is 'false'.
  42881. '__is_literal_type (type)'
  42882. If 'type' is a literal type ([basic.types]) the trait is 'true',
  42883. else it is 'false'. Requires: 'type' shall be a complete type,
  42884. (possibly cv-qualified) 'void', or an array of unknown bound.
  42885. '__is_pod (type)'
  42886. If 'type' is a cv POD type ([basic.types]) then the trait is
  42887. 'true', else it is 'false'. Requires: 'type' shall be a complete
  42888. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  42889. '__is_polymorphic (type)'
  42890. If 'type' is a polymorphic class ([class.virtual]) then the trait
  42891. is 'true', else it is 'false'. Requires: 'type' shall be a
  42892. complete type, (possibly cv-qualified) 'void', or an array of
  42893. unknown bound.
  42894. '__is_standard_layout (type)'
  42895. If 'type' is a standard-layout type ([basic.types]) the trait is
  42896. 'true', else it is 'false'. Requires: 'type' shall be a complete
  42897. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  42898. '__is_trivial (type)'
  42899. If 'type' is a trivial type ([basic.types]) the trait is 'true',
  42900. else it is 'false'. Requires: 'type' shall be a complete type,
  42901. (possibly cv-qualified) 'void', or an array of unknown bound.
  42902. '__is_union (type)'
  42903. If 'type' is a cv union type ([basic.compound]) the trait is
  42904. 'true', else it is 'false'.
  42905. '__underlying_type (type)'
  42906. The underlying type of 'type'. Requires: 'type' shall be an
  42907. enumeration type ([dcl.enum]).
  42908. '__integer_pack (length)'
  42909. When used as the pattern of a pack expansion within a template
  42910. definition, expands to a template argument pack containing integers
  42911. from '0' to 'length-1'. This is provided for efficient
  42912. implementation of 'std::make_integer_sequence'.
  42913. 
  42914. File: gcc.info, Node: C++ Concepts, Next: Deprecated Features, Prev: Type Traits, Up: C++ Extensions
  42915. 7.10 C++ Concepts
  42916. =================
  42917. C++ concepts provide much-improved support for generic programming. In
  42918. particular, they allow the specification of constraints on template
  42919. arguments. The constraints are used to extend the usual overloading and
  42920. partial specialization capabilities of the language, allowing generic
  42921. data structures and algorithms to be "refined" based on their properties
  42922. rather than their type names.
  42923. The following keywords are reserved for concepts.
  42924. 'assumes'
  42925. States an expression as an assumption, and if possible, verifies
  42926. that the assumption is valid. For example, 'assume(n > 0)'.
  42927. 'axiom'
  42928. Introduces an axiom definition. Axioms introduce requirements on
  42929. values.
  42930. 'forall'
  42931. Introduces a universally quantified object in an axiom. For
  42932. example, 'forall (int n) n + 0 == n').
  42933. 'concept'
  42934. Introduces a concept definition. Concepts are sets of syntactic
  42935. and semantic requirements on types and their values.
  42936. 'requires'
  42937. Introduces constraints on template arguments or requirements for a
  42938. member function of a class template.
  42939. The front end also exposes a number of internal mechanism that can be
  42940. used to simplify the writing of type traits. Note that some of these
  42941. traits are likely to be removed in the future.
  42942. '__is_same (type1, type2)'
  42943. A binary type trait: 'true' whenever the type arguments are the
  42944. same.
  42945. 
  42946. File: gcc.info, Node: Deprecated Features, Next: Backwards Compatibility, Prev: C++ Concepts, Up: C++ Extensions
  42947. 7.11 Deprecated Features
  42948. ========================
  42949. In the past, the GNU C++ compiler was extended to experiment with new
  42950. features, at a time when the C++ language was still evolving. Now that
  42951. the C++ standard is complete, some of those features are superseded by
  42952. superior alternatives. Using the old features might cause a warning in
  42953. some cases that the feature will be dropped in the future. In other
  42954. cases, the feature might be gone already.
  42955. G++ allows a virtual function returning 'void *' to be overridden by
  42956. one returning a different pointer type. This extension to the covariant
  42957. return type rules is now deprecated and will be removed from a future
  42958. version.
  42959. The use of default arguments in function pointers, function typedefs
  42960. and other places where they are not permitted by the standard is
  42961. deprecated and will be removed from a future version of G++.
  42962. G++ allows floating-point literals to appear in integral constant
  42963. expressions, e.g. ' enum E { e = int(2.2 * 3.7) } ' This extension is
  42964. deprecated and will be removed from a future version.
  42965. G++ allows static data members of const floating-point type to be
  42966. declared with an initializer in a class definition. The standard only
  42967. allows initializers for static members of const integral types and const
  42968. enumeration types so this extension has been deprecated and will be
  42969. removed from a future version.
  42970. G++ allows attributes to follow a parenthesized direct initializer,
  42971. e.g. ' int f (0) __attribute__ ((something)); ' This extension has been
  42972. ignored since G++ 3.3 and is deprecated.
  42973. G++ allows anonymous structs and unions to have members that are not
  42974. public non-static data members (i.e. fields). These extensions are
  42975. deprecated.
  42976. 
  42977. File: gcc.info, Node: Backwards Compatibility, Prev: Deprecated Features, Up: C++ Extensions
  42978. 7.12 Backwards Compatibility
  42979. ============================
  42980. Now that there is a definitive ISO standard C++, G++ has a specification
  42981. to adhere to. The C++ language evolved over time, and features that
  42982. used to be acceptable in previous drafts of the standard, such as the
  42983. ARM [Annotated C++ Reference Manual], are no longer accepted. In order
  42984. to allow compilation of C++ written to such drafts, G++ contains some
  42985. backwards compatibilities. _All such backwards compatibility features
  42986. are liable to disappear in future versions of G++._ They should be
  42987. considered deprecated. *Note Deprecated Features::.
  42988. 'Implicit C language'
  42989. Old C system header files did not contain an 'extern "C" {...}'
  42990. scope to set the language. On such systems, all system header
  42991. files are implicitly scoped inside a C language scope. Such
  42992. headers must correctly prototype function argument types, there is
  42993. no leeway for '()' to indicate an unspecified set of arguments.
  42994. 
  42995. File: gcc.info, Node: Objective-C, Next: Compatibility, Prev: C++ Extensions, Up: Top
  42996. 8 GNU Objective-C Features
  42997. **************************
  42998. This document is meant to describe some of the GNU Objective-C features.
  42999. It is not intended to teach you Objective-C. There are several resources
  43000. on the Internet that present the language.
  43001. * Menu:
  43002. * GNU Objective-C runtime API::
  43003. * Executing code before main::
  43004. * Type encoding::
  43005. * Garbage Collection::
  43006. * Constant string objects::
  43007. * compatibility_alias::
  43008. * Exceptions::
  43009. * Synchronization::
  43010. * Fast enumeration::
  43011. * Messaging with the GNU Objective-C runtime::
  43012. 
  43013. File: gcc.info, Node: GNU Objective-C runtime API, Next: Executing code before main, Up: Objective-C
  43014. 8.1 GNU Objective-C Runtime API
  43015. ===============================
  43016. This section is specific for the GNU Objective-C runtime. If you are
  43017. using a different runtime, you can skip it.
  43018. The GNU Objective-C runtime provides an API that allows you to interact
  43019. with the Objective-C runtime system, querying the live runtime
  43020. structures and even manipulating them. This allows you for example to
  43021. inspect and navigate classes, methods and protocols; to define new
  43022. classes or new methods, and even to modify existing classes or
  43023. protocols.
  43024. If you are using a "Foundation" library such as GNUstep-Base, this
  43025. library will provide you with a rich set of functionality to do most of
  43026. the inspection tasks, and you probably will only need direct access to
  43027. the GNU Objective-C runtime API to define new classes or methods.
  43028. * Menu:
  43029. * Modern GNU Objective-C runtime API::
  43030. * Traditional GNU Objective-C runtime API::
  43031. 
  43032. File: gcc.info, Node: Modern GNU Objective-C runtime API, Next: Traditional GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  43033. 8.1.1 Modern GNU Objective-C Runtime API
  43034. ----------------------------------------
  43035. The GNU Objective-C runtime provides an API which is similar to the one
  43036. provided by the "Objective-C 2.0" Apple/NeXT Objective-C runtime. The
  43037. API is documented in the public header files of the GNU Objective-C
  43038. runtime:
  43039. * 'objc/objc.h': this is the basic Objective-C header file, defining
  43040. the basic Objective-C types such as 'id', 'Class' and 'BOOL'. You
  43041. have to include this header to do almost anything with Objective-C.
  43042. * 'objc/runtime.h': this header declares most of the public runtime
  43043. API functions allowing you to inspect and manipulate the
  43044. Objective-C runtime data structures. These functions are fairly
  43045. standardized across Objective-C runtimes and are almost identical
  43046. to the Apple/NeXT Objective-C runtime ones. It does not declare
  43047. functions in some specialized areas (constructing and forwarding
  43048. message invocations, threading) which are in the other headers
  43049. below. You have to include 'objc/objc.h' and 'objc/runtime.h' to
  43050. use any of the functions, such as 'class_getName()', declared in
  43051. 'objc/runtime.h'.
  43052. * 'objc/message.h': this header declares public functions used to
  43053. construct, deconstruct and forward message invocations. Because
  43054. messaging is done in quite a different way on different runtimes,
  43055. functions in this header are specific to the GNU Objective-C
  43056. runtime implementation.
  43057. * 'objc/objc-exception.h': this header declares some public functions
  43058. related to Objective-C exceptions. For example functions in this
  43059. header allow you to throw an Objective-C exception from plain C/C++
  43060. code.
  43061. * 'objc/objc-sync.h': this header declares some public functions
  43062. related to the Objective-C '@synchronized()' syntax, allowing you
  43063. to emulate an Objective-C '@synchronized()' block in plain C/C++
  43064. code.
  43065. * 'objc/thr.h': this header declares a public runtime API threading
  43066. layer that is only provided by the GNU Objective-C runtime. It
  43067. declares functions such as 'objc_mutex_lock()', which provide a
  43068. platform-independent set of threading functions.
  43069. The header files contain detailed documentation for each function in
  43070. the GNU Objective-C runtime API.
  43071. 
  43072. File: gcc.info, Node: Traditional GNU Objective-C runtime API, Prev: Modern GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  43073. 8.1.2 Traditional GNU Objective-C Runtime API
  43074. ---------------------------------------------
  43075. The GNU Objective-C runtime used to provide a different API, which we
  43076. call the "traditional" GNU Objective-C runtime API. Functions belonging
  43077. to this API are easy to recognize because they use a different naming
  43078. convention, such as 'class_get_super_class()' (traditional API) instead
  43079. of 'class_getSuperclass()' (modern API). Software using this API
  43080. includes the file 'objc/objc-api.h' where it is declared.
  43081. Starting with GCC 4.7.0, the traditional GNU runtime API is no longer
  43082. available.
  43083. 
  43084. File: gcc.info, Node: Executing code before main, Next: Type encoding, Prev: GNU Objective-C runtime API, Up: Objective-C
  43085. 8.2 '+load': Executing Code before 'main'
  43086. =========================================
  43087. This section is specific for the GNU Objective-C runtime. If you are
  43088. using a different runtime, you can skip it.
  43089. The GNU Objective-C runtime provides a way that allows you to execute
  43090. code before the execution of the program enters the 'main' function.
  43091. The code is executed on a per-class and a per-category basis, through a
  43092. special class method '+load'.
  43093. This facility is very useful if you want to initialize global variables
  43094. which can be accessed by the program directly, without sending a message
  43095. to the class first. The usual way to initialize global variables, in
  43096. the '+initialize' method, might not be useful because '+initialize' is
  43097. only called when the first message is sent to a class object, which in
  43098. some cases could be too late.
  43099. Suppose for example you have a 'FileStream' class that declares
  43100. 'Stdin', 'Stdout' and 'Stderr' as global variables, like below:
  43101. FileStream *Stdin = nil;
  43102. FileStream *Stdout = nil;
  43103. FileStream *Stderr = nil;
  43104. @implementation FileStream
  43105. + (void)initialize
  43106. {
  43107. Stdin = [[FileStream new] initWithFd:0];
  43108. Stdout = [[FileStream new] initWithFd:1];
  43109. Stderr = [[FileStream new] initWithFd:2];
  43110. }
  43111. /* Other methods here */
  43112. @end
  43113. In this example, the initialization of 'Stdin', 'Stdout' and 'Stderr'
  43114. in '+initialize' occurs too late. The programmer can send a message to
  43115. one of these objects before the variables are actually initialized, thus
  43116. sending messages to the 'nil' object. The '+initialize' method which
  43117. actually initializes the global variables is not invoked until the first
  43118. message is sent to the class object. The solution would require these
  43119. variables to be initialized just before entering 'main'.
  43120. The correct solution of the above problem is to use the '+load' method
  43121. instead of '+initialize':
  43122. @implementation FileStream
  43123. + (void)load
  43124. {
  43125. Stdin = [[FileStream new] initWithFd:0];
  43126. Stdout = [[FileStream new] initWithFd:1];
  43127. Stderr = [[FileStream new] initWithFd:2];
  43128. }
  43129. /* Other methods here */
  43130. @end
  43131. The '+load' is a method that is not overridden by categories. If a
  43132. class and a category of it both implement '+load', both methods are
  43133. invoked. This allows some additional initializations to be performed in
  43134. a category.
  43135. This mechanism is not intended to be a replacement for '+initialize'.
  43136. You should be aware of its limitations when you decide to use it instead
  43137. of '+initialize'.
  43138. * Menu:
  43139. * What you can and what you cannot do in +load::
  43140. 
  43141. File: gcc.info, Node: What you can and what you cannot do in +load, Up: Executing code before main
  43142. 8.2.1 What You Can and Cannot Do in '+load'
  43143. -------------------------------------------
  43144. '+load' is to be used only as a last resort. Because it is executed
  43145. very early, most of the Objective-C runtime machinery will not be ready
  43146. when '+load' is executed; hence '+load' works best for executing C code
  43147. that is independent on the Objective-C runtime.
  43148. The '+load' implementation in the GNU runtime guarantees you the
  43149. following things:
  43150. * you can write whatever C code you like;
  43151. * you can allocate and send messages to objects whose class is
  43152. implemented in the same file;
  43153. * the '+load' implementation of all super classes of a class are
  43154. executed before the '+load' of that class is executed;
  43155. * the '+load' implementation of a class is executed before the
  43156. '+load' implementation of any category.
  43157. In particular, the following things, even if they can work in a
  43158. particular case, are not guaranteed:
  43159. * allocation of or sending messages to arbitrary objects;
  43160. * allocation of or sending messages to objects whose classes have a
  43161. category implemented in the same file;
  43162. * sending messages to Objective-C constant strings ('@"this is a
  43163. constant string"');
  43164. You should make no assumptions about receiving '+load' in sibling
  43165. classes when you write '+load' of a class. The order in which sibling
  43166. classes receive '+load' is not guaranteed.
  43167. The order in which '+load' and '+initialize' are called could be
  43168. problematic if this matters. If you don't allocate objects inside
  43169. '+load', it is guaranteed that '+load' is called before '+initialize'.
  43170. If you create an object inside '+load' the '+initialize' method of
  43171. object's class is invoked even if '+load' was not invoked. Note if you
  43172. explicitly call '+load' on a class, '+initialize' will be called first.
  43173. To avoid possible problems try to implement only one of these methods.
  43174. The '+load' method is also invoked when a bundle is dynamically loaded
  43175. into your running program. This happens automatically without any
  43176. intervening operation from you. When you write bundles and you need to
  43177. write '+load' you can safely create and send messages to objects whose
  43178. classes already exist in the running program. The same restrictions as
  43179. above apply to classes defined in bundle.
  43180. 
  43181. File: gcc.info, Node: Type encoding, Next: Garbage Collection, Prev: Executing code before main, Up: Objective-C
  43182. 8.3 Type Encoding
  43183. =================
  43184. This is an advanced section. Type encodings are used extensively by the
  43185. compiler and by the runtime, but you generally do not need to know about
  43186. them to use Objective-C.
  43187. The Objective-C compiler generates type encodings for all the types.
  43188. These type encodings are used at runtime to find out information about
  43189. selectors and methods and about objects and classes.
  43190. The types are encoded in the following way:
  43191. '_Bool' 'B'
  43192. 'char' 'c'
  43193. 'unsigned char' 'C'
  43194. 'short' 's'
  43195. 'unsigned short' 'S'
  43196. 'int' 'i'
  43197. 'unsigned int' 'I'
  43198. 'long' 'l'
  43199. 'unsigned long' 'L'
  43200. 'long long' 'q'
  43201. 'unsigned long 'Q'
  43202. long'
  43203. 'float' 'f'
  43204. 'double' 'd'
  43205. 'long double' 'D'
  43206. 'void' 'v'
  43207. 'id' '@'
  43208. 'Class' '#'
  43209. 'SEL' ':'
  43210. 'char*' '*'
  43211. 'enum' an 'enum' is encoded exactly as the integer type
  43212. that the compiler uses for it, which depends on the
  43213. enumeration values. Often the compiler users
  43214. 'unsigned int', which is then encoded as 'I'.
  43215. unknown type '?'
  43216. Complex types 'j' followed by the inner type. For example
  43217. '_Complex double' is encoded as "jd".
  43218. bit-fields 'b' followed by the starting position of the
  43219. bit-field, the type of the bit-field and the size of
  43220. the bit-field (the bit-fields encoding was changed
  43221. from the NeXT's compiler encoding, see below)
  43222. The encoding of bit-fields has changed to allow bit-fields to be
  43223. properly handled by the runtime functions that compute sizes and
  43224. alignments of types that contain bit-fields. The previous encoding
  43225. contained only the size of the bit-field. Using only this information
  43226. it is not possible to reliably compute the size occupied by the
  43227. bit-field. This is very important in the presence of the Boehm's
  43228. garbage collector because the objects are allocated using the typed
  43229. memory facility available in this collector. The typed memory
  43230. allocation requires information about where the pointers are located
  43231. inside the object.
  43232. The position in the bit-field is the position, counting in bits, of the
  43233. bit closest to the beginning of the structure.
  43234. The non-atomic types are encoded as follows:
  43235. pointers '^' followed by the pointed type.
  43236. arrays '[' followed by the number of elements in the array
  43237. followed by the type of the elements followed by ']'
  43238. structures '{' followed by the name of the structure (or '?' if the
  43239. structure is unnamed), the '=' sign, the type of the
  43240. members and by '}'
  43241. unions '(' followed by the name of the structure (or '?' if the
  43242. union is unnamed), the '=' sign, the type of the members
  43243. followed by ')'
  43244. vectors '![' followed by the vector_size (the number of bytes
  43245. composing the vector) followed by a comma, followed by
  43246. the alignment (in bytes) of the vector, followed by the
  43247. type of the elements followed by ']'
  43248. Here are some types and their encodings, as they are generated by the
  43249. compiler on an i386 machine:
  43250. Objective-C type Compiler encoding
  43251. int a[10]; '[10i]'
  43252. struct { '{?=i[3f]b128i3b131i2c}'
  43253. int i;
  43254. float f[3];
  43255. int a:3;
  43256. int b:2;
  43257. char c;
  43258. }
  43259. int a __attribute__ ((vector_size (16)));'![16,16i]' (alignment
  43260. depends on the machine)
  43261. In addition to the types the compiler also encodes the type specifiers.
  43262. The table below describes the encoding of the current Objective-C type
  43263. specifiers:
  43264. Specifier Encoding
  43265. 'const' 'r'
  43266. 'in' 'n'
  43267. 'inout' 'N'
  43268. 'out' 'o'
  43269. 'bycopy' 'O'
  43270. 'byref' 'R'
  43271. 'oneway' 'V'
  43272. The type specifiers are encoded just before the type. Unlike types
  43273. however, the type specifiers are only encoded when they appear in method
  43274. argument types.
  43275. Note how 'const' interacts with pointers:
  43276. Objective-C type Compiler encoding
  43277. const int 'ri'
  43278. const int* '^ri'
  43279. int *const 'r^i'
  43280. 'const int*' is a pointer to a 'const int', and so is encoded as '^ri'.
  43281. 'int* const', instead, is a 'const' pointer to an 'int', and so is
  43282. encoded as 'r^i'.
  43283. Finally, there is a complication when encoding 'const char *' versus
  43284. 'char * const'. Because 'char *' is encoded as '*' and not as '^c',
  43285. there is no way to express the fact that 'r' applies to the pointer or
  43286. to the pointee.
  43287. Hence, it is assumed as a convention that 'r*' means 'const char *'
  43288. (since it is what is most often meant), and there is no way to encode
  43289. 'char *const'. 'char *const' would simply be encoded as '*', and the
  43290. 'const' is lost.
  43291. * Menu:
  43292. * Legacy type encoding::
  43293. * @encode::
  43294. * Method signatures::
  43295. 
  43296. File: gcc.info, Node: Legacy type encoding, Next: @encode, Up: Type encoding
  43297. 8.3.1 Legacy Type Encoding
  43298. --------------------------
  43299. Unfortunately, historically GCC used to have a number of bugs in its
  43300. encoding code. The NeXT runtime expects GCC to emit type encodings in
  43301. this historical format (compatible with GCC-3.3), so when using the NeXT
  43302. runtime, GCC will introduce on purpose a number of incorrect encodings:
  43303. * the read-only qualifier of the pointee gets emitted before the '^'.
  43304. The read-only qualifier of the pointer itself gets ignored, unless
  43305. it is a typedef. Also, the 'r' is only emitted for the outermost
  43306. type.
  43307. * 32-bit longs are encoded as 'l' or 'L', but not always. For
  43308. typedefs, the compiler uses 'i' or 'I' instead if encoding a struct
  43309. field or a pointer.
  43310. * 'enum's are always encoded as 'i' (int) even if they are actually
  43311. unsigned or long.
  43312. In addition to that, the NeXT runtime uses a different encoding for
  43313. bitfields. It encodes them as 'b' followed by the size, without a bit
  43314. offset or the underlying field type.
  43315. 
  43316. File: gcc.info, Node: @encode, Next: Method signatures, Prev: Legacy type encoding, Up: Type encoding
  43317. 8.3.2 '@encode'
  43318. ---------------
  43319. GNU Objective-C supports the '@encode' syntax that allows you to create
  43320. a type encoding from a C/Objective-C type. For example, '@encode(int)'
  43321. is compiled by the compiler into '"i"'.
  43322. '@encode' does not support type qualifiers other than 'const'. For
  43323. example, '@encode(const char*)' is valid and is compiled into '"r*"',
  43324. while '@encode(bycopy char *)' is invalid and will cause a compilation
  43325. error.
  43326. 
  43327. File: gcc.info, Node: Method signatures, Prev: @encode, Up: Type encoding
  43328. 8.3.3 Method Signatures
  43329. -----------------------
  43330. This section documents the encoding of method types, which is rarely
  43331. needed to use Objective-C. You should skip it at a first reading; the
  43332. runtime provides functions that will work on methods and can walk
  43333. through the list of parameters and interpret them for you. These
  43334. functions are part of the public "API" and are the preferred way to
  43335. interact with method signatures from user code.
  43336. But if you need to debug a problem with method signatures and need to
  43337. know how they are implemented (i.e., the "ABI"), read on.
  43338. Methods have their "signature" encoded and made available to the
  43339. runtime. The "signature" encodes all the information required to
  43340. dynamically build invocations of the method at runtime: return type and
  43341. arguments.
  43342. The "signature" is a null-terminated string, composed of the following:
  43343. * The return type, including type qualifiers. For example, a method
  43344. returning 'int' would have 'i' here.
  43345. * The total size (in bytes) required to pass all the parameters.
  43346. This includes the two hidden parameters (the object 'self' and the
  43347. method selector '_cmd').
  43348. * Each argument, with the type encoding, followed by the offset (in
  43349. bytes) of the argument in the list of parameters.
  43350. For example, a method with no arguments and returning 'int' would have
  43351. the signature 'i8@0:4' if the size of a pointer is 4. The signature is
  43352. interpreted as follows: the 'i' is the return type (an 'int'), the '8'
  43353. is the total size of the parameters in bytes (two pointers each of size
  43354. 4), the '@0' is the first parameter (an object at byte offset '0') and
  43355. ':4' is the second parameter (a 'SEL' at byte offset '4').
  43356. You can easily find more examples by running the "strings" program on
  43357. an Objective-C object file compiled by GCC. You'll see a lot of strings
  43358. that look very much like 'i8@0:4'. They are signatures of Objective-C
  43359. methods.
  43360. 
  43361. File: gcc.info, Node: Garbage Collection, Next: Constant string objects, Prev: Type encoding, Up: Objective-C
  43362. 8.4 Garbage Collection
  43363. ======================
  43364. This section is specific for the GNU Objective-C runtime. If you are
  43365. using a different runtime, you can skip it.
  43366. Support for garbage collection with the GNU runtime has been added by
  43367. using a powerful conservative garbage collector, known as the
  43368. Boehm-Demers-Weiser conservative garbage collector.
  43369. To enable the support for it you have to configure the compiler using
  43370. an additional argument, '--enable-objc-gc'. This will build the
  43371. boehm-gc library, and build an additional runtime library which has
  43372. several enhancements to support the garbage collector. The new library
  43373. has a new name, 'libobjc_gc.a' to not conflict with the
  43374. non-garbage-collected library.
  43375. When the garbage collector is used, the objects are allocated using the
  43376. so-called typed memory allocation mechanism available in the
  43377. Boehm-Demers-Weiser collector. This mode requires precise information
  43378. on where pointers are located inside objects. This information is
  43379. computed once per class, immediately after the class has been
  43380. initialized.
  43381. There is a new runtime function 'class_ivar_set_gcinvisible()' which
  43382. can be used to declare a so-called "weak pointer" reference. Such a
  43383. pointer is basically hidden for the garbage collector; this can be
  43384. useful in certain situations, especially when you want to keep track of
  43385. the allocated objects, yet allow them to be collected. This kind of
  43386. pointers can only be members of objects, you cannot declare a global
  43387. pointer as a weak reference. Every type which is a pointer type can be
  43388. declared a weak pointer, including 'id', 'Class' and 'SEL'.
  43389. Here is an example of how to use this feature. Suppose you want to
  43390. implement a class whose instances hold a weak pointer reference; the
  43391. following class does this:
  43392. @interface WeakPointer : Object
  43393. {
  43394. const void* weakPointer;
  43395. }
  43396. - initWithPointer:(const void*)p;
  43397. - (const void*)weakPointer;
  43398. @end
  43399. @implementation WeakPointer
  43400. + (void)initialize
  43401. {
  43402. if (self == objc_lookUpClass ("WeakPointer"))
  43403. class_ivar_set_gcinvisible (self, "weakPointer", YES);
  43404. }
  43405. - initWithPointer:(const void*)p
  43406. {
  43407. weakPointer = p;
  43408. return self;
  43409. }
  43410. - (const void*)weakPointer
  43411. {
  43412. return weakPointer;
  43413. }
  43414. @end
  43415. Weak pointers are supported through a new type character specifier
  43416. represented by the '!' character. The 'class_ivar_set_gcinvisible()'
  43417. function adds or removes this specifier to the string type description
  43418. of the instance variable named as argument.
  43419. 
  43420. File: gcc.info, Node: Constant string objects, Next: compatibility_alias, Prev: Garbage Collection, Up: Objective-C
  43421. 8.5 Constant String Objects
  43422. ===========================
  43423. GNU Objective-C provides constant string objects that are generated
  43424. directly by the compiler. You declare a constant string object by
  43425. prefixing a C constant string with the character '@':
  43426. id myString = @"this is a constant string object";
  43427. The constant string objects are by default instances of the
  43428. 'NXConstantString' class which is provided by the GNU Objective-C
  43429. runtime. To get the definition of this class you must include the
  43430. 'objc/NXConstStr.h' header file.
  43431. User defined libraries may want to implement their own constant string
  43432. class. To be able to support them, the GNU Objective-C compiler
  43433. provides a new command line options
  43434. '-fconstant-string-class=CLASS-NAME'. The provided class should adhere
  43435. to a strict structure, the same as 'NXConstantString''s structure:
  43436. @interface MyConstantStringClass
  43437. {
  43438. Class isa;
  43439. char *c_string;
  43440. unsigned int len;
  43441. }
  43442. @end
  43443. 'NXConstantString' inherits from 'Object'; user class libraries may
  43444. choose to inherit the customized constant string class from a different
  43445. class than 'Object'. There is no requirement in the methods the
  43446. constant string class has to implement, but the final ivar layout of the
  43447. class must be the compatible with the given structure.
  43448. When the compiler creates the statically allocated constant string
  43449. object, the 'c_string' field will be filled by the compiler with the
  43450. string; the 'length' field will be filled by the compiler with the
  43451. string length; the 'isa' pointer will be filled with 'NULL' by the
  43452. compiler, and it will later be fixed up automatically at runtime by the
  43453. GNU Objective-C runtime library to point to the class which was set by
  43454. the '-fconstant-string-class' option when the object file is loaded (if
  43455. you wonder how it works behind the scenes, the name of the class to use,
  43456. and the list of static objects to fixup, are stored by the compiler in
  43457. the object file in a place where the GNU runtime library will find them
  43458. at runtime).
  43459. As a result, when a file is compiled with the '-fconstant-string-class'
  43460. option, all the constant string objects will be instances of the class
  43461. specified as argument to this option. It is possible to have multiple
  43462. compilation units referring to different constant string classes,
  43463. neither the compiler nor the linker impose any restrictions in doing
  43464. this.
  43465. 
  43466. File: gcc.info, Node: compatibility_alias, Next: Exceptions, Prev: Constant string objects, Up: Objective-C
  43467. 8.6 'compatibility_alias'
  43468. =========================
  43469. The keyword '@compatibility_alias' allows you to define a class name as
  43470. equivalent to another class name. For example:
  43471. @compatibility_alias WOApplication GSWApplication;
  43472. tells the compiler that each time it encounters 'WOApplication' as a
  43473. class name, it should replace it with 'GSWApplication' (that is,
  43474. 'WOApplication' is just an alias for 'GSWApplication').
  43475. There are some constraints on how this can be used--
  43476. * 'WOApplication' (the alias) must not be an existing class;
  43477. * 'GSWApplication' (the real class) must be an existing class.
  43478. 
  43479. File: gcc.info, Node: Exceptions, Next: Synchronization, Prev: compatibility_alias, Up: Objective-C
  43480. 8.7 Exceptions
  43481. ==============
  43482. GNU Objective-C provides exception support built into the language, as
  43483. in the following example:
  43484. @try {
  43485. ...
  43486. @throw expr;
  43487. ...
  43488. }
  43489. @catch (AnObjCClass *exc) {
  43490. ...
  43491. @throw expr;
  43492. ...
  43493. @throw;
  43494. ...
  43495. }
  43496. @catch (AnotherClass *exc) {
  43497. ...
  43498. }
  43499. @catch (id allOthers) {
  43500. ...
  43501. }
  43502. @finally {
  43503. ...
  43504. @throw expr;
  43505. ...
  43506. }
  43507. The '@throw' statement may appear anywhere in an Objective-C or
  43508. Objective-C++ program; when used inside of a '@catch' block, the
  43509. '@throw' may appear without an argument (as shown above), in which case
  43510. the object caught by the '@catch' will be rethrown.
  43511. Note that only (pointers to) Objective-C objects may be thrown and
  43512. caught using this scheme. When an object is thrown, it will be caught
  43513. by the nearest '@catch' clause capable of handling objects of that type,
  43514. analogously to how 'catch' blocks work in C++ and Java. A '@catch(id
  43515. ...)' clause (as shown above) may also be provided to catch any and all
  43516. Objective-C exceptions not caught by previous '@catch' clauses (if any).
  43517. The '@finally' clause, if present, will be executed upon exit from the
  43518. immediately preceding '@try ... @catch' section. This will happen
  43519. regardless of whether any exceptions are thrown, caught or rethrown
  43520. inside the '@try ... @catch' section, analogously to the behavior of the
  43521. 'finally' clause in Java.
  43522. There are several caveats to using the new exception mechanism:
  43523. * The '-fobjc-exceptions' command line option must be used when
  43524. compiling Objective-C files that use exceptions.
  43525. * With the GNU runtime, exceptions are always implemented as "native"
  43526. exceptions and it is recommended that the '-fexceptions' and
  43527. '-shared-libgcc' options are used when linking.
  43528. * With the NeXT runtime, although currently designed to be binary
  43529. compatible with 'NS_HANDLER'-style idioms provided by the
  43530. 'NSException' class, the new exceptions can only be used on Mac OS
  43531. X 10.3 (Panther) and later systems, due to additional functionality
  43532. needed in the NeXT Objective-C runtime.
  43533. * As mentioned above, the new exceptions do not support handling
  43534. types other than Objective-C objects. Furthermore, when used from
  43535. Objective-C++, the Objective-C exception model does not
  43536. interoperate with C++ exceptions at this time. This means you
  43537. cannot '@throw' an exception from Objective-C and 'catch' it in
  43538. C++, or vice versa (i.e., 'throw ... @catch').
  43539. 
  43540. File: gcc.info, Node: Synchronization, Next: Fast enumeration, Prev: Exceptions, Up: Objective-C
  43541. 8.8 Synchronization
  43542. ===================
  43543. GNU Objective-C provides support for synchronized blocks:
  43544. @synchronized (ObjCClass *guard) {
  43545. ...
  43546. }
  43547. Upon entering the '@synchronized' block, a thread of execution shall
  43548. first check whether a lock has been placed on the corresponding 'guard'
  43549. object by another thread. If it has, the current thread shall wait
  43550. until the other thread relinquishes its lock. Once 'guard' becomes
  43551. available, the current thread will place its own lock on it, execute the
  43552. code contained in the '@synchronized' block, and finally relinquish the
  43553. lock (thereby making 'guard' available to other threads).
  43554. Unlike Java, Objective-C does not allow for entire methods to be marked
  43555. '@synchronized'. Note that throwing exceptions out of '@synchronized'
  43556. blocks is allowed, and will cause the guarding object to be unlocked
  43557. properly.
  43558. Because of the interactions between synchronization and exception
  43559. handling, you can only use '@synchronized' when compiling with
  43560. exceptions enabled, that is with the command line option
  43561. '-fobjc-exceptions'.
  43562. 
  43563. File: gcc.info, Node: Fast enumeration, Next: Messaging with the GNU Objective-C runtime, Prev: Synchronization, Up: Objective-C
  43564. 8.9 Fast Enumeration
  43565. ====================
  43566. * Menu:
  43567. * Using fast enumeration::
  43568. * c99-like fast enumeration syntax::
  43569. * Fast enumeration details::
  43570. * Fast enumeration protocol::
  43571. 
  43572. File: gcc.info, Node: Using fast enumeration, Next: c99-like fast enumeration syntax, Up: Fast enumeration
  43573. 8.9.1 Using Fast Enumeration
  43574. ----------------------------
  43575. GNU Objective-C provides support for the fast enumeration syntax:
  43576. id array = ...;
  43577. id object;
  43578. for (object in array)
  43579. {
  43580. /* Do something with 'object' */
  43581. }
  43582. 'array' needs to be an Objective-C object (usually a collection object,
  43583. for example an array, a dictionary or a set) which implements the "Fast
  43584. Enumeration Protocol" (see below). If you are using a Foundation
  43585. library such as GNUstep Base or Apple Cocoa Foundation, all collection
  43586. objects in the library implement this protocol and can be used in this
  43587. way.
  43588. The code above would iterate over all objects in 'array'. For each of
  43589. them, it assigns it to 'object', then executes the 'Do something with
  43590. 'object'' statements.
  43591. Here is a fully worked-out example using a Foundation library (which
  43592. provides the implementation of 'NSArray', 'NSString' and 'NSLog'):
  43593. NSArray *array = [NSArray arrayWithObjects: @"1", @"2", @"3", nil];
  43594. NSString *object;
  43595. for (object in array)
  43596. NSLog (@"Iterating over %@", object);
  43597. 
  43598. File: gcc.info, Node: c99-like fast enumeration syntax, Next: Fast enumeration details, Prev: Using fast enumeration, Up: Fast enumeration
  43599. 8.9.2 C99-Like Fast Enumeration Syntax
  43600. --------------------------------------
  43601. A c99-like declaration syntax is also allowed:
  43602. id array = ...;
  43603. for (id object in array)
  43604. {
  43605. /* Do something with 'object' */
  43606. }
  43607. this is completely equivalent to:
  43608. id array = ...;
  43609. {
  43610. id object;
  43611. for (object in array)
  43612. {
  43613. /* Do something with 'object' */
  43614. }
  43615. }
  43616. but can save some typing.
  43617. Note that the option '-std=c99' is not required to allow this syntax in
  43618. Objective-C.
  43619. 
  43620. File: gcc.info, Node: Fast enumeration details, Next: Fast enumeration protocol, Prev: c99-like fast enumeration syntax, Up: Fast enumeration
  43621. 8.9.3 Fast Enumeration Details
  43622. ------------------------------
  43623. Here is a more technical description with the gory details. Consider
  43624. the code
  43625. for (OBJECT EXPRESSION in COLLECTION EXPRESSION)
  43626. {
  43627. STATEMENTS
  43628. }
  43629. here is what happens when you run it:
  43630. * 'COLLECTION EXPRESSION' is evaluated exactly once and the result is
  43631. used as the collection object to iterate over. This means it is
  43632. safe to write code such as 'for (object in [NSDictionary
  43633. keyEnumerator]) ...'.
  43634. * the iteration is implemented by the compiler by repeatedly getting
  43635. batches of objects from the collection object using the fast
  43636. enumeration protocol (see below), then iterating over all objects
  43637. in the batch. This is faster than a normal enumeration where
  43638. objects are retrieved one by one (hence the name "fast
  43639. enumeration").
  43640. * if there are no objects in the collection, then 'OBJECT EXPRESSION'
  43641. is set to 'nil' and the loop immediately terminates.
  43642. * if there are objects in the collection, then for each object in the
  43643. collection (in the order they are returned) 'OBJECT EXPRESSION' is
  43644. set to the object, then 'STATEMENTS' are executed.
  43645. * 'STATEMENTS' can contain 'break' and 'continue' commands, which
  43646. will abort the iteration or skip to the next loop iteration as
  43647. expected.
  43648. * when the iteration ends because there are no more objects to
  43649. iterate over, 'OBJECT EXPRESSION' is set to 'nil'. This allows you
  43650. to determine whether the iteration finished because a 'break'
  43651. command was used (in which case 'OBJECT EXPRESSION' will remain set
  43652. to the last object that was iterated over) or because it iterated
  43653. over all the objects (in which case 'OBJECT EXPRESSION' will be set
  43654. to 'nil').
  43655. * 'STATEMENTS' must not make any changes to the collection object; if
  43656. they do, it is a hard error and the fast enumeration terminates by
  43657. invoking 'objc_enumerationMutation', a runtime function that
  43658. normally aborts the program but which can be customized by
  43659. Foundation libraries via 'objc_set_mutation_handler' to do
  43660. something different, such as raising an exception.
  43661. 
  43662. File: gcc.info, Node: Fast enumeration protocol, Prev: Fast enumeration details, Up: Fast enumeration
  43663. 8.9.4 Fast Enumeration Protocol
  43664. -------------------------------
  43665. If you want your own collection object to be usable with fast
  43666. enumeration, you need to have it implement the method
  43667. - (unsigned long) countByEnumeratingWithState: (NSFastEnumerationState *)state
  43668. objects: (id *)objects
  43669. count: (unsigned long)len;
  43670. where 'NSFastEnumerationState' must be defined in your code as follows:
  43671. typedef struct
  43672. {
  43673. unsigned long state;
  43674. id *itemsPtr;
  43675. unsigned long *mutationsPtr;
  43676. unsigned long extra[5];
  43677. } NSFastEnumerationState;
  43678. If no 'NSFastEnumerationState' is defined in your code, the compiler
  43679. will automatically replace 'NSFastEnumerationState *' with 'struct
  43680. __objcFastEnumerationState *', where that type is silently defined by
  43681. the compiler in an identical way. This can be confusing and we
  43682. recommend that you define 'NSFastEnumerationState' (as shown above)
  43683. instead.
  43684. The method is called repeatedly during a fast enumeration to retrieve
  43685. batches of objects. Each invocation of the method should retrieve the
  43686. next batch of objects.
  43687. The return value of the method is the number of objects in the current
  43688. batch; this should not exceed 'len', which is the maximum size of a
  43689. batch as requested by the caller. The batch itself is returned in the
  43690. 'itemsPtr' field of the 'NSFastEnumerationState' struct.
  43691. To help with returning the objects, the 'objects' array is a C array
  43692. preallocated by the caller (on the stack) of size 'len'. In many cases
  43693. you can put the objects you want to return in that 'objects' array, then
  43694. do 'itemsPtr = objects'. But you don't have to; if your collection
  43695. already has the objects to return in some form of C array, it could
  43696. return them from there instead.
  43697. The 'state' and 'extra' fields of the 'NSFastEnumerationState'
  43698. structure allows your collection object to keep track of the state of
  43699. the enumeration. In a simple array implementation, 'state' may keep
  43700. track of the index of the last object that was returned, and 'extra' may
  43701. be unused.
  43702. The 'mutationsPtr' field of the 'NSFastEnumerationState' is used to
  43703. keep track of mutations. It should point to a number; before working on
  43704. each object, the fast enumeration loop will check that this number has
  43705. not changed. If it has, a mutation has happened and the fast
  43706. enumeration will abort. So, 'mutationsPtr' could be set to point to
  43707. some sort of version number of your collection, which is increased by
  43708. one every time there is a change (for example when an object is added or
  43709. removed). Or, if you are content with less strict mutation checks, it
  43710. could point to the number of objects in your collection or some other
  43711. value that can be checked to perform an approximate check that the
  43712. collection has not been mutated.
  43713. Finally, note how we declared the 'len' argument and the return value
  43714. to be of type 'unsigned long'. They could also be declared to be of
  43715. type 'unsigned int' and everything would still work.
  43716. 
  43717. File: gcc.info, Node: Messaging with the GNU Objective-C runtime, Prev: Fast enumeration, Up: Objective-C
  43718. 8.10 Messaging with the GNU Objective-C Runtime
  43719. ===============================================
  43720. This section is specific for the GNU Objective-C runtime. If you are
  43721. using a different runtime, you can skip it.
  43722. The implementation of messaging in the GNU Objective-C runtime is
  43723. designed to be portable, and so is based on standard C.
  43724. Sending a message in the GNU Objective-C runtime is composed of two
  43725. separate steps. First, there is a call to the lookup function,
  43726. 'objc_msg_lookup ()' (or, in the case of messages to super,
  43727. 'objc_msg_lookup_super ()'). This runtime function takes as argument
  43728. the receiver and the selector of the method to be called; it returns the
  43729. 'IMP', that is a pointer to the function implementing the method. The
  43730. second step of method invocation consists of casting this pointer
  43731. function to the appropriate function pointer type, and calling the
  43732. function pointed to it with the right arguments.
  43733. For example, when the compiler encounters a method invocation such as
  43734. '[object init]', it compiles it into a call to 'objc_msg_lookup (object,
  43735. @selector(init))' followed by a cast of the returned value to the
  43736. appropriate function pointer type, and then it calls it.
  43737. * Menu:
  43738. * Dynamically registering methods::
  43739. * Forwarding hook::
  43740. 
  43741. File: gcc.info, Node: Dynamically registering methods, Next: Forwarding hook, Up: Messaging with the GNU Objective-C runtime
  43742. 8.10.1 Dynamically Registering Methods
  43743. --------------------------------------
  43744. If 'objc_msg_lookup()' does not find a suitable method implementation,
  43745. because the receiver does not implement the required method, it tries to
  43746. see if the class can dynamically register the method.
  43747. To do so, the runtime checks if the class of the receiver implements
  43748. the method
  43749. + (BOOL) resolveInstanceMethod: (SEL)selector;
  43750. in the case of an instance method, or
  43751. + (BOOL) resolveClassMethod: (SEL)selector;
  43752. in the case of a class method. If the class implements it, the runtime
  43753. invokes it, passing as argument the selector of the original method, and
  43754. if it returns 'YES', the runtime tries the lookup again, which could now
  43755. succeed if a matching method was added dynamically by
  43756. '+resolveInstanceMethod:' or '+resolveClassMethod:'.
  43757. This allows classes to dynamically register methods (by adding them to
  43758. the class using 'class_addMethod') when they are first called. To do
  43759. so, a class should implement '+resolveInstanceMethod:' (or, depending on
  43760. the case, '+resolveClassMethod:') and have it recognize the selectors of
  43761. methods that can be registered dynamically at runtime, register them,
  43762. and return 'YES'. It should return 'NO' for methods that it does not
  43763. dynamically registered at runtime.
  43764. If '+resolveInstanceMethod:' (or '+resolveClassMethod:') is not
  43765. implemented or returns 'NO', the runtime then tries the forwarding hook.
  43766. Support for '+resolveInstanceMethod:' and 'resolveClassMethod:' was
  43767. added to the GNU Objective-C runtime in GCC version 4.6.
  43768. 
  43769. File: gcc.info, Node: Forwarding hook, Prev: Dynamically registering methods, Up: Messaging with the GNU Objective-C runtime
  43770. 8.10.2 Forwarding Hook
  43771. ----------------------
  43772. The GNU Objective-C runtime provides a hook, called
  43773. '__objc_msg_forward2', which is called by 'objc_msg_lookup()' when it
  43774. cannot find a method implementation in the runtime tables and after
  43775. calling '+resolveInstanceMethod:' and '+resolveClassMethod:' has been
  43776. attempted and did not succeed in dynamically registering the method.
  43777. To configure the hook, you set the global variable
  43778. '__objc_msg_forward2' to a function with the same argument and return
  43779. types of 'objc_msg_lookup()'. When 'objc_msg_lookup()' cannot find a
  43780. method implementation, it invokes the hook function you provided to get
  43781. a method implementation to return. So, in practice
  43782. '__objc_msg_forward2' allows you to extend 'objc_msg_lookup()' by adding
  43783. some custom code that is called to do a further lookup when no standard
  43784. method implementation can be found using the normal lookup.
  43785. This hook is generally reserved for "Foundation" libraries such as
  43786. GNUstep Base, which use it to implement their high-level method
  43787. forwarding API, typically based around the 'forwardInvocation:' method.
  43788. So, unless you are implementing your own "Foundation" library, you
  43789. should not set this hook.
  43790. In a typical forwarding implementation, the '__objc_msg_forward2' hook
  43791. function determines the argument and return type of the method that is
  43792. being looked up, and then creates a function that takes these arguments
  43793. and has that return type, and returns it to the caller. Creating this
  43794. function is non-trivial and is typically performed using a dedicated
  43795. library such as 'libffi'.
  43796. The forwarding method implementation thus created is returned by
  43797. 'objc_msg_lookup()' and is executed as if it was a normal method
  43798. implementation. When the forwarding method implementation is called, it
  43799. is usually expected to pack all arguments into some sort of object
  43800. (typically, an 'NSInvocation' in a "Foundation" library), and hand it
  43801. over to the programmer ('forwardInvocation:') who is then allowed to
  43802. manipulate the method invocation using a high-level API provided by the
  43803. "Foundation" library. For example, the programmer may want to examine
  43804. the method invocation arguments and name and potentially change them
  43805. before forwarding the method invocation to one or more local objects
  43806. ('performInvocation:') or even to remote objects (by using Distributed
  43807. Objects or some other mechanism). When all this completes, the return
  43808. value is passed back and must be returned correctly to the original
  43809. caller.
  43810. Note that the GNU Objective-C runtime currently provides no support for
  43811. method forwarding or method invocations other than the
  43812. '__objc_msg_forward2' hook.
  43813. If the forwarding hook does not exist or returns 'NULL', the runtime
  43814. currently attempts forwarding using an older, deprecated API, and if
  43815. that fails, it aborts the program. In future versions of the GNU
  43816. Objective-C runtime, the runtime will immediately abort.
  43817. 
  43818. File: gcc.info, Node: Compatibility, Next: Gcov, Prev: Objective-C, Up: Top
  43819. 9 Binary Compatibility
  43820. **********************
  43821. Binary compatibility encompasses several related concepts:
  43822. "application binary interface (ABI)"
  43823. The set of runtime conventions followed by all of the tools that
  43824. deal with binary representations of a program, including compilers,
  43825. assemblers, linkers, and language runtime support. Some ABIs are
  43826. formal with a written specification, possibly designed by multiple
  43827. interested parties. Others are simply the way things are actually
  43828. done by a particular set of tools.
  43829. "ABI conformance"
  43830. A compiler conforms to an ABI if it generates code that follows all
  43831. of the specifications enumerated by that ABI. A library conforms
  43832. to an ABI if it is implemented according to that ABI. An
  43833. application conforms to an ABI if it is built using tools that
  43834. conform to that ABI and does not contain source code that
  43835. specifically changes behavior specified by the ABI.
  43836. "calling conventions"
  43837. Calling conventions are a subset of an ABI that specify of how
  43838. arguments are passed and function results are returned.
  43839. "interoperability"
  43840. Different sets of tools are interoperable if they generate files
  43841. that can be used in the same program. The set of tools includes
  43842. compilers, assemblers, linkers, libraries, header files, startup
  43843. files, and debuggers. Binaries produced by different sets of tools
  43844. are not interoperable unless they implement the same ABI. This
  43845. applies to different versions of the same tools as well as tools
  43846. from different vendors.
  43847. "intercallability"
  43848. Whether a function in a binary built by one set of tools can call a
  43849. function in a binary built by a different set of tools is a subset
  43850. of interoperability.
  43851. "implementation-defined features"
  43852. Language standards include lists of implementation-defined features
  43853. whose behavior can vary from one implementation to another. Some
  43854. of these features are normally covered by a platform's ABI and
  43855. others are not. The features that are not covered by an ABI
  43856. generally affect how a program behaves, but not intercallability.
  43857. "compatibility"
  43858. Conformance to the same ABI and the same behavior of
  43859. implementation-defined features are both relevant for
  43860. compatibility.
  43861. The application binary interface implemented by a C or C++ compiler
  43862. affects code generation and runtime support for:
  43863. * size and alignment of data types
  43864. * layout of structured types
  43865. * calling conventions
  43866. * register usage conventions
  43867. * interfaces for runtime arithmetic support
  43868. * object file formats
  43869. In addition, the application binary interface implemented by a C++
  43870. compiler affects code generation and runtime support for:
  43871. * name mangling
  43872. * exception handling
  43873. * invoking constructors and destructors
  43874. * layout, alignment, and padding of classes
  43875. * layout and alignment of virtual tables
  43876. Some GCC compilation options cause the compiler to generate code that
  43877. does not conform to the platform's default ABI. Other options cause
  43878. different program behavior for implementation-defined features that are
  43879. not covered by an ABI. These options are provided for consistency with
  43880. other compilers that do not follow the platform's default ABI or the
  43881. usual behavior of implementation-defined features for the platform. Be
  43882. very careful about using such options.
  43883. Most platforms have a well-defined ABI that covers C code, but ABIs
  43884. that cover C++ functionality are not yet common.
  43885. Starting with GCC 3.2, GCC binary conventions for C++ are based on a
  43886. written, vendor-neutral C++ ABI that was designed to be specific to
  43887. 64-bit Itanium but also includes generic specifications that apply to
  43888. any platform. This C++ ABI is also implemented by other compiler
  43889. vendors on some platforms, notably GNU/Linux and BSD systems. We have
  43890. tried hard to provide a stable ABI that will be compatible with future
  43891. GCC releases, but it is possible that we will encounter problems that
  43892. make this difficult. Such problems could include different
  43893. interpretations of the C++ ABI by different vendors, bugs in the ABI, or
  43894. bugs in the implementation of the ABI in different compilers. GCC's
  43895. '-Wabi' switch warns when G++ generates code that is probably not
  43896. compatible with the C++ ABI.
  43897. The C++ library used with a C++ compiler includes the Standard C++
  43898. Library, with functionality defined in the C++ Standard, plus language
  43899. runtime support. The runtime support is included in a C++ ABI, but
  43900. there is no formal ABI for the Standard C++ Library. Two
  43901. implementations of that library are interoperable if one follows the
  43902. de-facto ABI of the other and if they are both built with the same
  43903. compiler, or with compilers that conform to the same ABI for C++
  43904. compiler and runtime support.
  43905. When G++ and another C++ compiler conform to the same C++ ABI, but the
  43906. implementations of the Standard C++ Library that they normally use do
  43907. not follow the same ABI for the Standard C++ Library, object files built
  43908. with those compilers can be used in the same program only if they use
  43909. the same C++ library. This requires specifying the location of the C++
  43910. library header files when invoking the compiler whose usual library is
  43911. not being used. The location of GCC's C++ header files depends on how
  43912. the GCC build was configured, but can be seen by using the G++ '-v'
  43913. option. With default configuration options for G++ 3.3 the compile line
  43914. for a different C++ compiler needs to include
  43915. -IGCC_INSTALL_DIRECTORY/include/c++/3.3
  43916. Similarly, compiling code with G++ that must use a C++ library other
  43917. than the GNU C++ library requires specifying the location of the header
  43918. files for that other library.
  43919. The most straightforward way to link a program to use a particular C++
  43920. library is to use a C++ driver that specifies that C++ library by
  43921. default. The 'g++' driver, for example, tells the linker where to find
  43922. GCC's C++ library ('libstdc++') plus the other libraries and startup
  43923. files it needs, in the proper order.
  43924. If a program must use a different C++ library and it's not possible to
  43925. do the final link using a C++ driver that uses that library by default,
  43926. it is necessary to tell 'g++' the location and name of that library. It
  43927. might also be necessary to specify different startup files and other
  43928. runtime support libraries, and to suppress the use of GCC's support
  43929. libraries with one or more of the options '-nostdlib', '-nostartfiles',
  43930. and '-nodefaultlibs'.
  43931. 
  43932. File: gcc.info, Node: Gcov, Next: Gcov-tool, Prev: Compatibility, Up: Top
  43933. 10 'gcov'--a Test Coverage Program
  43934. **********************************
  43935. 'gcov' is a tool you can use in conjunction with GCC to test code
  43936. coverage in your programs.
  43937. * Menu:
  43938. * Gcov Intro:: Introduction to gcov.
  43939. * Invoking Gcov:: How to use gcov.
  43940. * Gcov and Optimization:: Using gcov with GCC optimization.
  43941. * Gcov Data Files:: The files used by gcov.
  43942. * Cross-profiling:: Data file relocation.
  43943. 
  43944. File: gcc.info, Node: Gcov Intro, Next: Invoking Gcov, Up: Gcov
  43945. 10.1 Introduction to 'gcov'
  43946. ===========================
  43947. 'gcov' is a test coverage program. Use it in concert with GCC to
  43948. analyze your programs to help create more efficient, faster running code
  43949. and to discover untested parts of your program. You can use 'gcov' as a
  43950. profiling tool to help discover where your optimization efforts will
  43951. best affect your code. You can also use 'gcov' along with the other
  43952. profiling tool, 'gprof', to assess which parts of your code use the
  43953. greatest amount of computing time.
  43954. Profiling tools help you analyze your code's performance. Using a
  43955. profiler such as 'gcov' or 'gprof', you can find out some basic
  43956. performance statistics, such as:
  43957. * how often each line of code executes
  43958. * what lines of code are actually executed
  43959. * how much computing time each section of code uses
  43960. Once you know these things about how your code works when compiled, you
  43961. can look at each module to see which modules should be optimized.
  43962. 'gcov' helps you determine where to work on optimization.
  43963. Software developers also use coverage testing in concert with
  43964. testsuites, to make sure software is actually good enough for a release.
  43965. Testsuites can verify that a program works as expected; a coverage
  43966. program tests to see how much of the program is exercised by the
  43967. testsuite. Developers can then determine what kinds of test cases need
  43968. to be added to the testsuites to create both better testing and a better
  43969. final product.
  43970. You should compile your code without optimization if you plan to use
  43971. 'gcov' because the optimization, by combining some lines of code into
  43972. one function, may not give you as much information as you need to look
  43973. for 'hot spots' where the code is using a great deal of computer time.
  43974. Likewise, because 'gcov' accumulates statistics by line (at the lowest
  43975. resolution), it works best with a programming style that places only one
  43976. statement on each line. If you use complicated macros that expand to
  43977. loops or to other control structures, the statistics are less
  43978. helpful--they only report on the line where the macro call appears. If
  43979. your complex macros behave like functions, you can replace them with
  43980. inline functions to solve this problem.
  43981. 'gcov' creates a logfile called 'SOURCEFILE.gcov' which indicates how
  43982. many times each line of a source file 'SOURCEFILE.c' has executed. You
  43983. can use these logfiles along with 'gprof' to aid in fine-tuning the
  43984. performance of your programs. 'gprof' gives timing information you can
  43985. use along with the information you get from 'gcov'.
  43986. 'gcov' works only on code compiled with GCC. It is not compatible with
  43987. any other profiling or test coverage mechanism.
  43988. 
  43989. File: gcc.info, Node: Invoking Gcov, Next: Gcov and Optimization, Prev: Gcov Intro, Up: Gcov
  43990. 10.2 Invoking 'gcov'
  43991. ====================
  43992. gcov [OPTIONS] FILES
  43993. 'gcov' accepts the following options:
  43994. '-a'
  43995. '--all-blocks'
  43996. Write individual execution counts for every basic block. Normally
  43997. gcov outputs execution counts only for the main blocks of a line.
  43998. With this option you can determine if blocks within a single line
  43999. are not being executed.
  44000. '-b'
  44001. '--branch-probabilities'
  44002. Write branch frequencies to the output file, and write branch
  44003. summary info to the standard output. This option allows you to see
  44004. how often each branch in your program was taken. Unconditional
  44005. branches will not be shown, unless the '-u' option is given.
  44006. '-c'
  44007. '--branch-counts'
  44008. Write branch frequencies as the number of branches taken, rather
  44009. than the percentage of branches taken.
  44010. '-d'
  44011. '--display-progress'
  44012. Display the progress on the standard output.
  44013. '-f'
  44014. '--function-summaries'
  44015. Output summaries for each function in addition to the file level
  44016. summary.
  44017. '-h'
  44018. '--help'
  44019. Display help about using 'gcov' (on the standard output), and exit
  44020. without doing any further processing.
  44021. '-i'
  44022. '--json-format'
  44023. Output gcov file in an easy-to-parse JSON intermediate format which
  44024. does not require source code for generation. The JSON file is
  44025. compressed with gzip compression algorithm and the files have
  44026. '.gcov.json.gz' extension.
  44027. Structure of the JSON is following:
  44028. {
  44029. "current_working_directory": CURRENT_WORKING_DIRECTORY,
  44030. "data_file": DATA_FILE,
  44031. "format_version": FORMAT_VERSION,
  44032. "gcc_version": GCC_VERSION
  44033. "files": [FILE]
  44034. }
  44035. Fields of the root element have following semantics:
  44036. * CURRENT_WORKING_DIRECTORY: working directory where a
  44037. compilation unit was compiled
  44038. * DATA_FILE: name of the data file (GCDA)
  44039. * FORMAT_VERSION: semantic version of the format
  44040. * GCC_VERSION: version of the GCC compiler
  44041. Each FILE has the following form:
  44042. {
  44043. "file": FILE_NAME,
  44044. "functions": [FUNCTION],
  44045. "lines": [LINE]
  44046. }
  44047. Fields of the FILE element have following semantics:
  44048. * FILE_NAME: name of the source file
  44049. Each FUNCTION has the following form:
  44050. {
  44051. "blocks": BLOCKS,
  44052. "blocks_executed": BLOCKS_EXECUTED,
  44053. "demangled_name": "DEMANGLED_NAME,
  44054. "end_column": END_COLUMN,
  44055. "end_line": END_LINE,
  44056. "execution_count": EXECUTION_COUNT,
  44057. "name": NAME,
  44058. "start_column": START_COLUMN
  44059. "start_line": START_LINE
  44060. }
  44061. Fields of the FUNCTION element have following semantics:
  44062. * BLOCKS: number of blocks that are in the function
  44063. * BLOCKS_EXECUTED: number of executed blocks of the function
  44064. * DEMANGLED_NAME: demangled name of the function
  44065. * END_COLUMN: column in the source file where the function ends
  44066. * END_LINE: line in the source file where the function ends
  44067. * EXECUTION_COUNT: number of executions of the function
  44068. * NAME: name of the function
  44069. * START_COLUMN: column in the source file where the function
  44070. begins
  44071. * START_LINE: line in the source file where the function begins
  44072. Note that line numbers and column numbers number from 1. In the
  44073. current implementation, START_LINE and START_COLUMN do not include
  44074. any template parameters and the leading return type but that this
  44075. is likely to be fixed in the future.
  44076. Each LINE has the following form:
  44077. {
  44078. "branches": [BRANCH],
  44079. "count": COUNT,
  44080. "line_number": LINE_NUMBER,
  44081. "unexecuted_block": UNEXECUTED_BLOCK
  44082. "function_name": FUNCTION_NAME,
  44083. }
  44084. Branches are present only with -B option. Fields of the LINE
  44085. element have following semantics:
  44086. * COUNT: number of executions of the line
  44087. * LINE_NUMBER: line number
  44088. * UNEXECUTED_BLOCK: flag whether the line contains an unexecuted
  44089. block (not all statements on the line are executed)
  44090. * FUNCTION_NAME: a name of a function this LINE belongs to (for
  44091. a line with an inlined statements can be not set)
  44092. Each BRANCH has the following form:
  44093. {
  44094. "count": COUNT,
  44095. "fallthrough": FALLTHROUGH,
  44096. "throw": THROW
  44097. }
  44098. Fields of the BRANCH element have following semantics:
  44099. * COUNT: number of executions of the branch
  44100. * FALLTHROUGH: true when the branch is a fall through branch
  44101. * THROW: true when the branch is an exceptional branch
  44102. '-j'
  44103. '--human-readable'
  44104. Write counts in human readable format (like 24.6k).
  44105. '-k'
  44106. '--use-colors'
  44107. Use colors for lines of code that have zero coverage. We use red
  44108. color for non-exceptional lines and cyan for exceptional. Same
  44109. colors are used for basic blocks with '-a' option.
  44110. '-l'
  44111. '--long-file-names'
  44112. Create long file names for included source files. For example, if
  44113. the header file 'x.h' contains code, and was included in the file
  44114. 'a.c', then running 'gcov' on the file 'a.c' will produce an output
  44115. file called 'a.c##x.h.gcov' instead of 'x.h.gcov'. This can be
  44116. useful if 'x.h' is included in multiple source files and you want
  44117. to see the individual contributions. If you use the '-p' option,
  44118. both the including and included file names will be complete path
  44119. names.
  44120. '-m'
  44121. '--demangled-names'
  44122. Display demangled function names in output. The default is to show
  44123. mangled function names.
  44124. '-n'
  44125. '--no-output'
  44126. Do not create the 'gcov' output file.
  44127. '-o DIRECTORY|FILE'
  44128. '--object-directory DIRECTORY'
  44129. '--object-file FILE'
  44130. Specify either the directory containing the gcov data files, or the
  44131. object path name. The '.gcno', and '.gcda' data files are searched
  44132. for using this option. If a directory is specified, the data files
  44133. are in that directory and named after the input file name, without
  44134. its extension. If a file is specified here, the data files are
  44135. named after that file, without its extension.
  44136. '-p'
  44137. '--preserve-paths'
  44138. Preserve complete path information in the names of generated
  44139. '.gcov' files. Without this option, just the filename component is
  44140. used. With this option, all directories are used, with '/'
  44141. characters translated to '#' characters, '.' directory components
  44142. removed and unremoveable '..' components renamed to '^'. This is
  44143. useful if sourcefiles are in several different directories.
  44144. '-q'
  44145. '--use-hotness-colors'
  44146. Emit perf-like colored output for hot lines. Legend of the color
  44147. scale is printed at the very beginning of the output file.
  44148. '-r'
  44149. '--relative-only'
  44150. Only output information about source files with a relative pathname
  44151. (after source prefix elision). Absolute paths are usually system
  44152. header files and coverage of any inline functions therein is
  44153. normally uninteresting.
  44154. '-s DIRECTORY'
  44155. '--source-prefix DIRECTORY'
  44156. A prefix for source file names to remove when generating the output
  44157. coverage files. This option is useful when building in a separate
  44158. directory, and the pathname to the source directory is not wanted
  44159. when determining the output file names. Note that this prefix
  44160. detection is applied before determining whether the source file is
  44161. absolute.
  44162. '-t'
  44163. '--stdout'
  44164. Output to standard output instead of output files.
  44165. '-u'
  44166. '--unconditional-branches'
  44167. When branch probabilities are given, include those of unconditional
  44168. branches. Unconditional branches are normally not interesting.
  44169. '-v'
  44170. '--version'
  44171. Display the 'gcov' version number (on the standard output), and
  44172. exit without doing any further processing.
  44173. '-w'
  44174. '--verbose'
  44175. Print verbose informations related to basic blocks and arcs.
  44176. '-x'
  44177. '--hash-filenames'
  44178. When using -PRESERVE-PATHS, gcov uses the full pathname of the
  44179. source files to create an output filename. This can lead to long
  44180. filenames that can overflow filesystem limits. This option creates
  44181. names of the form 'SOURCE-FILE##MD5.gcov', where the SOURCE-FILE
  44182. component is the final filename part and the MD5 component is
  44183. calculated from the full mangled name that would have been used
  44184. otherwise. The option is an alternative to the -PRESERVE-PATHS on
  44185. systems which have a filesystem limit.
  44186. 'gcov' should be run with the current directory the same as that when
  44187. you invoked the compiler. Otherwise it will not be able to locate the
  44188. source files. 'gcov' produces files called 'MANGLEDNAME.gcov' in the
  44189. current directory. These contain the coverage information of the source
  44190. file they correspond to. One '.gcov' file is produced for each source
  44191. (or header) file containing code, which was compiled to produce the data
  44192. files. The MANGLEDNAME part of the output file name is usually simply
  44193. the source file name, but can be something more complicated if the '-l'
  44194. or '-p' options are given. Refer to those options for details.
  44195. If you invoke 'gcov' with multiple input files, the contributions from
  44196. each input file are summed. Typically you would invoke it with the same
  44197. list of files as the final link of your executable.
  44198. The '.gcov' files contain the ':' separated fields along with program
  44199. source code. The format is
  44200. EXECUTION_COUNT:LINE_NUMBER:SOURCE LINE TEXT
  44201. Additional block information may succeed each line, when requested by
  44202. command line option. The EXECUTION_COUNT is '-' for lines containing no
  44203. code. Unexecuted lines are marked '#####' or '=====', depending on
  44204. whether they are reachable by non-exceptional paths or only exceptional
  44205. paths such as C++ exception handlers, respectively. Given the '-a'
  44206. option, unexecuted blocks are marked '$$$$$' or '%%%%%', depending on
  44207. whether a basic block is reachable via non-exceptional or exceptional
  44208. paths. Executed basic blocks having a statement with zero
  44209. EXECUTION_COUNT end with '*' character and are colored with magenta
  44210. color with the '-k' option. This functionality is not supported in Ada.
  44211. Note that GCC can completely remove the bodies of functions that are
  44212. not needed - for instance if they are inlined everywhere. Such
  44213. functions are marked with '-', which can be confusing. Use the
  44214. '-fkeep-inline-functions' and '-fkeep-static-functions' options to
  44215. retain these functions and allow gcov to properly show their
  44216. EXECUTION_COUNT.
  44217. Some lines of information at the start have LINE_NUMBER of zero. These
  44218. preamble lines are of the form
  44219. -:0:TAG:VALUE
  44220. The ordering and number of these preamble lines will be augmented as
  44221. 'gcov' development progresses -- do not rely on them remaining
  44222. unchanged. Use TAG to locate a particular preamble line.
  44223. The additional block information is of the form
  44224. TAG INFORMATION
  44225. The INFORMATION is human readable, but designed to be simple enough for
  44226. machine parsing too.
  44227. When printing percentages, 0% and 100% are only printed when the values
  44228. are _exactly_ 0% and 100% respectively. Other values which would
  44229. conventionally be rounded to 0% or 100% are instead printed as the
  44230. nearest non-boundary value.
  44231. When using 'gcov', you must first compile your program with a special
  44232. GCC option '--coverage'. This tells the compiler to generate additional
  44233. information needed by gcov (basically a flow graph of the program) and
  44234. also includes additional code in the object files for generating the
  44235. extra profiling information needed by gcov. These additional files are
  44236. placed in the directory where the object file is located.
  44237. Running the program will cause profile output to be generated. For
  44238. each source file compiled with '-fprofile-arcs', an accompanying '.gcda'
  44239. file will be placed in the object file directory.
  44240. Running 'gcov' with your program's source file names as arguments will
  44241. now produce a listing of the code along with frequency of execution for
  44242. each line. For example, if your program is called 'tmp.cpp', this is
  44243. what you see when you use the basic 'gcov' facility:
  44244. $ g++ --coverage tmp.cpp
  44245. $ a.out
  44246. $ gcov tmp.cpp -m
  44247. File 'tmp.cpp'
  44248. Lines executed:92.86% of 14
  44249. Creating 'tmp.cpp.gcov'
  44250. The file 'tmp.cpp.gcov' contains output from 'gcov'. Here is a sample:
  44251. -: 0:Source:tmp.cpp
  44252. -: 0:Working directory:/home/gcc/testcase
  44253. -: 0:Graph:tmp.gcno
  44254. -: 0:Data:tmp.gcda
  44255. -: 0:Runs:1
  44256. -: 0:Programs:1
  44257. -: 1:#include <stdio.h>
  44258. -: 2:
  44259. -: 3:template<class T>
  44260. -: 4:class Foo
  44261. -: 5:{
  44262. -: 6: public:
  44263. 1*: 7: Foo(): b (1000) {}
  44264. ------------------
  44265. Foo<char>::Foo():
  44266. #####: 7: Foo(): b (1000) {}
  44267. ------------------
  44268. Foo<int>::Foo():
  44269. 1: 7: Foo(): b (1000) {}
  44270. ------------------
  44271. 2*: 8: void inc () { b++; }
  44272. ------------------
  44273. Foo<char>::inc():
  44274. #####: 8: void inc () { b++; }
  44275. ------------------
  44276. Foo<int>::inc():
  44277. 2: 8: void inc () { b++; }
  44278. ------------------
  44279. -: 9:
  44280. -: 10: private:
  44281. -: 11: int b;
  44282. -: 12:};
  44283. -: 13:
  44284. -: 14:template class Foo<int>;
  44285. -: 15:template class Foo<char>;
  44286. -: 16:
  44287. -: 17:int
  44288. 1: 18:main (void)
  44289. -: 19:{
  44290. -: 20: int i, total;
  44291. 1: 21: Foo<int> counter;
  44292. -: 22:
  44293. 1: 23: counter.inc();
  44294. 1: 24: counter.inc();
  44295. 1: 25: total = 0;
  44296. -: 26:
  44297. 11: 27: for (i = 0; i < 10; i++)
  44298. 10: 28: total += i;
  44299. -: 29:
  44300. 1*: 30: int v = total > 100 ? 1 : 2;
  44301. -: 31:
  44302. 1: 32: if (total != 45)
  44303. #####: 33: printf ("Failure\n");
  44304. -: 34: else
  44305. 1: 35: printf ("Success\n");
  44306. 1: 36: return 0;
  44307. -: 37:}
  44308. Note that line 7 is shown in the report multiple times. First
  44309. occurrence presents total number of execution of the line and the next
  44310. two belong to instances of class Foo constructors. As you can also see,
  44311. line 30 contains some unexecuted basic blocks and thus execution count
  44312. has asterisk symbol.
  44313. When you use the '-a' option, you will get individual block counts, and
  44314. the output looks like this:
  44315. -: 0:Source:tmp.cpp
  44316. -: 0:Working directory:/home/gcc/testcase
  44317. -: 0:Graph:tmp.gcno
  44318. -: 0:Data:tmp.gcda
  44319. -: 0:Runs:1
  44320. -: 0:Programs:1
  44321. -: 1:#include <stdio.h>
  44322. -: 2:
  44323. -: 3:template<class T>
  44324. -: 4:class Foo
  44325. -: 5:{
  44326. -: 6: public:
  44327. 1*: 7: Foo(): b (1000) {}
  44328. ------------------
  44329. Foo<char>::Foo():
  44330. #####: 7: Foo(): b (1000) {}
  44331. ------------------
  44332. Foo<int>::Foo():
  44333. 1: 7: Foo(): b (1000) {}
  44334. ------------------
  44335. 2*: 8: void inc () { b++; }
  44336. ------------------
  44337. Foo<char>::inc():
  44338. #####: 8: void inc () { b++; }
  44339. ------------------
  44340. Foo<int>::inc():
  44341. 2: 8: void inc () { b++; }
  44342. ------------------
  44343. -: 9:
  44344. -: 10: private:
  44345. -: 11: int b;
  44346. -: 12:};
  44347. -: 13:
  44348. -: 14:template class Foo<int>;
  44349. -: 15:template class Foo<char>;
  44350. -: 16:
  44351. -: 17:int
  44352. 1: 18:main (void)
  44353. -: 19:{
  44354. -: 20: int i, total;
  44355. 1: 21: Foo<int> counter;
  44356. 1: 21-block 0
  44357. -: 22:
  44358. 1: 23: counter.inc();
  44359. 1: 23-block 0
  44360. 1: 24: counter.inc();
  44361. 1: 24-block 0
  44362. 1: 25: total = 0;
  44363. -: 26:
  44364. 11: 27: for (i = 0; i < 10; i++)
  44365. 1: 27-block 0
  44366. 11: 27-block 1
  44367. 10: 28: total += i;
  44368. 10: 28-block 0
  44369. -: 29:
  44370. 1*: 30: int v = total > 100 ? 1 : 2;
  44371. 1: 30-block 0
  44372. %%%%%: 30-block 1
  44373. 1: 30-block 2
  44374. -: 31:
  44375. 1: 32: if (total != 45)
  44376. 1: 32-block 0
  44377. #####: 33: printf ("Failure\n");
  44378. %%%%%: 33-block 0
  44379. -: 34: else
  44380. 1: 35: printf ("Success\n");
  44381. 1: 35-block 0
  44382. 1: 36: return 0;
  44383. 1: 36-block 0
  44384. -: 37:}
  44385. In this mode, each basic block is only shown on one line - the last
  44386. line of the block. A multi-line block will only contribute to the
  44387. execution count of that last line, and other lines will not be shown to
  44388. contain code, unless previous blocks end on those lines. The total
  44389. execution count of a line is shown and subsequent lines show the
  44390. execution counts for individual blocks that end on that line. After
  44391. each block, the branch and call counts of the block will be shown, if
  44392. the '-b' option is given.
  44393. Because of the way GCC instruments calls, a call count can be shown
  44394. after a line with no individual blocks. As you can see, line 33
  44395. contains a basic block that was not executed.
  44396. When you use the '-b' option, your output looks like this:
  44397. -: 0:Source:tmp.cpp
  44398. -: 0:Working directory:/home/gcc/testcase
  44399. -: 0:Graph:tmp.gcno
  44400. -: 0:Data:tmp.gcda
  44401. -: 0:Runs:1
  44402. -: 0:Programs:1
  44403. -: 1:#include <stdio.h>
  44404. -: 2:
  44405. -: 3:template<class T>
  44406. -: 4:class Foo
  44407. -: 5:{
  44408. -: 6: public:
  44409. 1*: 7: Foo(): b (1000) {}
  44410. ------------------
  44411. Foo<char>::Foo():
  44412. function Foo<char>::Foo() called 0 returned 0% blocks executed 0%
  44413. #####: 7: Foo(): b (1000) {}
  44414. ------------------
  44415. Foo<int>::Foo():
  44416. function Foo<int>::Foo() called 1 returned 100% blocks executed 100%
  44417. 1: 7: Foo(): b (1000) {}
  44418. ------------------
  44419. 2*: 8: void inc () { b++; }
  44420. ------------------
  44421. Foo<char>::inc():
  44422. function Foo<char>::inc() called 0 returned 0% blocks executed 0%
  44423. #####: 8: void inc () { b++; }
  44424. ------------------
  44425. Foo<int>::inc():
  44426. function Foo<int>::inc() called 2 returned 100% blocks executed 100%
  44427. 2: 8: void inc () { b++; }
  44428. ------------------
  44429. -: 9:
  44430. -: 10: private:
  44431. -: 11: int b;
  44432. -: 12:};
  44433. -: 13:
  44434. -: 14:template class Foo<int>;
  44435. -: 15:template class Foo<char>;
  44436. -: 16:
  44437. -: 17:int
  44438. function main called 1 returned 100% blocks executed 81%
  44439. 1: 18:main (void)
  44440. -: 19:{
  44441. -: 20: int i, total;
  44442. 1: 21: Foo<int> counter;
  44443. call 0 returned 100%
  44444. branch 1 taken 100% (fallthrough)
  44445. branch 2 taken 0% (throw)
  44446. -: 22:
  44447. 1: 23: counter.inc();
  44448. call 0 returned 100%
  44449. branch 1 taken 100% (fallthrough)
  44450. branch 2 taken 0% (throw)
  44451. 1: 24: counter.inc();
  44452. call 0 returned 100%
  44453. branch 1 taken 100% (fallthrough)
  44454. branch 2 taken 0% (throw)
  44455. 1: 25: total = 0;
  44456. -: 26:
  44457. 11: 27: for (i = 0; i < 10; i++)
  44458. branch 0 taken 91% (fallthrough)
  44459. branch 1 taken 9%
  44460. 10: 28: total += i;
  44461. -: 29:
  44462. 1*: 30: int v = total > 100 ? 1 : 2;
  44463. branch 0 taken 0% (fallthrough)
  44464. branch 1 taken 100%
  44465. -: 31:
  44466. 1: 32: if (total != 45)
  44467. branch 0 taken 0% (fallthrough)
  44468. branch 1 taken 100%
  44469. #####: 33: printf ("Failure\n");
  44470. call 0 never executed
  44471. branch 1 never executed
  44472. branch 2 never executed
  44473. -: 34: else
  44474. 1: 35: printf ("Success\n");
  44475. call 0 returned 100%
  44476. branch 1 taken 100% (fallthrough)
  44477. branch 2 taken 0% (throw)
  44478. 1: 36: return 0;
  44479. -: 37:}
  44480. For each function, a line is printed showing how many times the
  44481. function is called, how many times it returns and what percentage of the
  44482. function's blocks were executed.
  44483. For each basic block, a line is printed after the last line of the
  44484. basic block describing the branch or call that ends the basic block.
  44485. There can be multiple branches and calls listed for a single source line
  44486. if there are multiple basic blocks that end on that line. In this case,
  44487. the branches and calls are each given a number. There is no simple way
  44488. to map these branches and calls back to source constructs. In general,
  44489. though, the lowest numbered branch or call will correspond to the
  44490. leftmost construct on the source line.
  44491. For a branch, if it was executed at least once, then a percentage
  44492. indicating the number of times the branch was taken divided by the
  44493. number of times the branch was executed will be printed. Otherwise, the
  44494. message "never executed" is printed.
  44495. For a call, if it was executed at least once, then a percentage
  44496. indicating the number of times the call returned divided by the number
  44497. of times the call was executed will be printed. This will usually be
  44498. 100%, but may be less for functions that call 'exit' or 'longjmp', and
  44499. thus may not return every time they are called.
  44500. The execution counts are cumulative. If the example program were
  44501. executed again without removing the '.gcda' file, the count for the
  44502. number of times each line in the source was executed would be added to
  44503. the results of the previous run(s). This is potentially useful in
  44504. several ways. For example, it could be used to accumulate data over a
  44505. number of program runs as part of a test verification suite, or to
  44506. provide more accurate long-term information over a large number of
  44507. program runs.
  44508. The data in the '.gcda' files is saved immediately before the program
  44509. exits. For each source file compiled with '-fprofile-arcs', the
  44510. profiling code first attempts to read in an existing '.gcda' file; if
  44511. the file doesn't match the executable (differing number of basic block
  44512. counts) it will ignore the contents of the file. It then adds in the
  44513. new execution counts and finally writes the data to the file.
  44514. 
  44515. File: gcc.info, Node: Gcov and Optimization, Next: Gcov Data Files, Prev: Invoking Gcov, Up: Gcov
  44516. 10.3 Using 'gcov' with GCC Optimization
  44517. =======================================
  44518. If you plan to use 'gcov' to help optimize your code, you must first
  44519. compile your program with a special GCC option '--coverage'. Aside from
  44520. that, you can use any other GCC options; but if you want to prove that
  44521. every single line in your program was executed, you should not compile
  44522. with optimization at the same time. On some machines the optimizer can
  44523. eliminate some simple code lines by combining them with other lines.
  44524. For example, code like this:
  44525. if (a != b)
  44526. c = 1;
  44527. else
  44528. c = 0;
  44529. can be compiled into one instruction on some machines. In this case,
  44530. there is no way for 'gcov' to calculate separate execution counts for
  44531. each line because there isn't separate code for each line. Hence the
  44532. 'gcov' output looks like this if you compiled the program with
  44533. optimization:
  44534. 100: 12:if (a != b)
  44535. 100: 13: c = 1;
  44536. 100: 14:else
  44537. 100: 15: c = 0;
  44538. The output shows that this block of code, combined by optimization,
  44539. executed 100 times. In one sense this result is correct, because there
  44540. was only one instruction representing all four of these lines. However,
  44541. the output does not indicate how many times the result was 0 and how
  44542. many times the result was 1.
  44543. Inlineable functions can create unexpected line counts. Line counts
  44544. are shown for the source code of the inlineable function, but what is
  44545. shown depends on where the function is inlined, or if it is not inlined
  44546. at all.
  44547. If the function is not inlined, the compiler must emit an out of line
  44548. copy of the function, in any object file that needs it. If 'fileA.o'
  44549. and 'fileB.o' both contain out of line bodies of a particular inlineable
  44550. function, they will also both contain coverage counts for that function.
  44551. When 'fileA.o' and 'fileB.o' are linked together, the linker will, on
  44552. many systems, select one of those out of line bodies for all calls to
  44553. that function, and remove or ignore the other. Unfortunately, it will
  44554. not remove the coverage counters for the unused function body. Hence
  44555. when instrumented, all but one use of that function will show zero
  44556. counts.
  44557. If the function is inlined in several places, the block structure in
  44558. each location might not be the same. For instance, a condition might
  44559. now be calculable at compile time in some instances. Because the
  44560. coverage of all the uses of the inline function will be shown for the
  44561. same source lines, the line counts themselves might seem inconsistent.
  44562. Long-running applications can use the '__gcov_reset' and '__gcov_dump'
  44563. facilities to restrict profile collection to the program region of
  44564. interest. Calling '__gcov_reset(void)' will clear all profile counters
  44565. to zero, and calling '__gcov_dump(void)' will cause the profile
  44566. information collected at that point to be dumped to '.gcda' output
  44567. files. Instrumented applications use a static destructor with priority
  44568. 99 to invoke the '__gcov_dump' function. Thus '__gcov_dump' is executed
  44569. after all user defined static destructors, as well as handlers
  44570. registered with 'atexit'. If an executable loads a dynamic shared
  44571. object via dlopen functionality, '-Wl,--dynamic-list-data' is needed to
  44572. dump all profile data.
  44573. Profiling run-time library reports various errors related to profile
  44574. manipulation and profile saving. Errors are printed into standard error
  44575. output or 'GCOV_ERROR_FILE' file, if environment variable is used. In
  44576. order to terminate immediately after an errors occurs set
  44577. 'GCOV_EXIT_AT_ERROR' environment variable. That can help users to find
  44578. profile clashing which leads to a misleading profile.
  44579. 
  44580. File: gcc.info, Node: Gcov Data Files, Next: Cross-profiling, Prev: Gcov and Optimization, Up: Gcov
  44581. 10.4 Brief Description of 'gcov' Data Files
  44582. ===========================================
  44583. 'gcov' uses two files for profiling. The names of these files are
  44584. derived from the original _object_ file by substituting the file suffix
  44585. with either '.gcno', or '.gcda'. The files contain coverage and profile
  44586. data stored in a platform-independent format. The '.gcno' files are
  44587. placed in the same directory as the object file. By default, the
  44588. '.gcda' files are also stored in the same directory as the object file,
  44589. but the GCC '-fprofile-dir' option may be used to store the '.gcda'
  44590. files in a separate directory.
  44591. The '.gcno' notes file is generated when the source file is compiled
  44592. with the GCC '-ftest-coverage' option. It contains information to
  44593. reconstruct the basic block graphs and assign source line numbers to
  44594. blocks.
  44595. The '.gcda' count data file is generated when a program containing
  44596. object files built with the GCC '-fprofile-arcs' option is executed. A
  44597. separate '.gcda' file is created for each object file compiled with this
  44598. option. It contains arc transition counts, value profile counts, and
  44599. some summary information.
  44600. It is not recommended to access the coverage files directly. Consumers
  44601. should use the intermediate format that is provided by 'gcov' tool via
  44602. '--json-format' option.
  44603. 
  44604. File: gcc.info, Node: Cross-profiling, Prev: Gcov Data Files, Up: Gcov
  44605. 10.5 Data File Relocation to Support Cross-Profiling
  44606. ====================================================
  44607. Running the program will cause profile output to be generated. For each
  44608. source file compiled with '-fprofile-arcs', an accompanying '.gcda' file
  44609. will be placed in the object file directory. That implicitly requires
  44610. running the program on the same system as it was built or having the
  44611. same absolute directory structure on the target system. The program
  44612. will try to create the needed directory structure, if it is not already
  44613. present.
  44614. To support cross-profiling, a program compiled with '-fprofile-arcs'
  44615. can relocate the data files based on two environment variables:
  44616. * GCOV_PREFIX contains the prefix to add to the absolute paths in the
  44617. object file. Prefix can be absolute, or relative. The default is
  44618. no prefix.
  44619. * GCOV_PREFIX_STRIP indicates the how many initial directory names to
  44620. strip off the hardwired absolute paths. Default value is 0.
  44621. _Note:_ If GCOV_PREFIX_STRIP is set without GCOV_PREFIX is
  44622. undefined, then a relative path is made out of the hardwired
  44623. absolute paths.
  44624. For example, if the object file '/user/build/foo.o' was built with
  44625. '-fprofile-arcs', the final executable will try to create the data file
  44626. '/user/build/foo.gcda' when running on the target system. This will
  44627. fail if the corresponding directory does not exist and it is unable to
  44628. create it. This can be overcome by, for example, setting the
  44629. environment as 'GCOV_PREFIX=/target/run' and 'GCOV_PREFIX_STRIP=1'.
  44630. Such a setting will name the data file '/target/run/build/foo.gcda'.
  44631. You must move the data files to the expected directory tree in order to
  44632. use them for profile directed optimizations ('-fprofile-use'), or to use
  44633. the 'gcov' tool.
  44634. 
  44635. File: gcc.info, Node: Gcov-tool, Next: Gcov-dump, Prev: Gcov, Up: Top
  44636. 11 'gcov-tool'--an Offline Gcda Profile Processing Tool
  44637. *******************************************************
  44638. 'gcov-tool' is a tool you can use in conjunction with GCC to manipulate
  44639. or process gcda profile files offline.
  44640. * Menu:
  44641. * Gcov-tool Intro:: Introduction to gcov-tool.
  44642. * Invoking Gcov-tool:: How to use gcov-tool.
  44643. 
  44644. File: gcc.info, Node: Gcov-tool Intro, Next: Invoking Gcov-tool, Up: Gcov-tool
  44645. 11.1 Introduction to 'gcov-tool'
  44646. ================================
  44647. 'gcov-tool' is an offline tool to process gcc's gcda profile files.
  44648. Current gcov-tool supports the following functionalities:
  44649. * merge two sets of profiles with weights.
  44650. * read one set of profile and rewrite profile contents. One can
  44651. scale or normalize the count values.
  44652. Examples of the use cases for this tool are:
  44653. * Collect the profiles for different set of inputs, and use this tool
  44654. to merge them. One can specify the weight to factor in the
  44655. relative importance of each input.
  44656. * Rewrite the profile after removing a subset of the gcda files,
  44657. while maintaining the consistency of the summary and the histogram.
  44658. * It can also be used to debug or libgcov code as the tools shares
  44659. the majority code as the runtime library.
  44660. Note that for the merging operation, this profile generated offline may
  44661. contain slight different values from the online merged profile. Here
  44662. are a list of typical differences:
  44663. * histogram difference: This offline tool recomputes the histogram
  44664. after merging the counters. The resulting histogram, therefore, is
  44665. precise. The online merging does not have this capability - the
  44666. histogram is merged from two histograms and the result is an
  44667. approximation.
  44668. * summary checksum difference: Summary checksum uses a CRC32
  44669. operation. The value depends on the link list order of gcov-info
  44670. objects. This order is different in gcov-tool from that in the
  44671. online merge. It's expected to have different summary checksums.
  44672. It does not really matter as the compiler does not use this
  44673. checksum anywhere.
  44674. * value profile counter values difference: Some counter values for
  44675. value profile are runtime dependent, like heap addresses. It's
  44676. normal to see some difference in these kind of counters.
  44677. 
  44678. File: gcc.info, Node: Invoking Gcov-tool, Prev: Gcov-tool Intro, Up: Gcov-tool
  44679. 11.2 Invoking 'gcov-tool'
  44680. =========================
  44681. gcov-tool [GLOBAL-OPTIONS] SUB_COMMAND [SUB_COMMAND-OPTIONS] PROFILE_DIR
  44682. 'gcov-tool' accepts the following options:
  44683. '-h'
  44684. '--help'
  44685. Display help about using 'gcov-tool' (on the standard output), and
  44686. exit without doing any further processing.
  44687. '-v'
  44688. '--version'
  44689. Display the 'gcov-tool' version number (on the standard output),
  44690. and exit without doing any further processing.
  44691. 'merge'
  44692. Merge two profile directories.
  44693. '-o DIRECTORY'
  44694. '--output DIRECTORY'
  44695. Set the output profile directory. Default output directory
  44696. name is MERGED_PROFILE.
  44697. '-v'
  44698. '--verbose'
  44699. Set the verbose mode.
  44700. '-w W1,W2'
  44701. '--weight W1,W2'
  44702. Set the merge weights of the DIRECTORY1 and DIRECTORY2,
  44703. respectively. The default weights are 1 for both.
  44704. 'rewrite'
  44705. Read the specified profile directory and rewrite to a new
  44706. directory.
  44707. '-n LONG_LONG_VALUE'
  44708. '--normalize <long_long_value>'
  44709. Normalize the profile. The specified value is the max counter
  44710. value in the new profile.
  44711. '-o DIRECTORY'
  44712. '--output DIRECTORY'
  44713. Set the output profile directory. Default output name is
  44714. REWRITE_PROFILE.
  44715. '-s FLOAT_OR_SIMPLE-FRAC_VALUE'
  44716. '--scale FLOAT_OR_SIMPLE-FRAC_VALUE'
  44717. Scale the profile counters. The specified value can be in
  44718. floating point value, or simple fraction value form, such 1,
  44719. 2, 2/3, and 5/3.
  44720. '-v'
  44721. '--verbose'
  44722. Set the verbose mode.
  44723. 'overlap'
  44724. Compute the overlap score between the two specified profile
  44725. directories. The overlap score is computed based on the arc
  44726. profiles. It is defined as the sum of min (p1_counter[i] /
  44727. p1_sum_all, p2_counter[i] / p2_sum_all), for all arc counter i,
  44728. where p1_counter[i] and p2_counter[i] are two matched counters and
  44729. p1_sum_all and p2_sum_all are the sum of counter values in profile
  44730. 1 and profile 2, respectively.
  44731. '-f'
  44732. '--function'
  44733. Print function level overlap score.
  44734. '-F'
  44735. '--fullname'
  44736. Print full gcda filename.
  44737. '-h'
  44738. '--hotonly'
  44739. Only print info for hot objects/functions.
  44740. '-o'
  44741. '--object'
  44742. Print object level overlap score.
  44743. '-t FLOAT'
  44744. '--hot_threshold <float>'
  44745. Set the threshold for hot counter value.
  44746. '-v'
  44747. '--verbose'
  44748. Set the verbose mode.
  44749. 
  44750. File: gcc.info, Node: Gcov-dump, Next: Trouble, Prev: Gcov-tool, Up: Top
  44751. 12 'gcov-dump'--an Offline Gcda and Gcno Profile Dump Tool
  44752. **********************************************************
  44753. * Menu:
  44754. * Gcov-dump Intro:: Introduction to gcov-dump.
  44755. * Invoking Gcov-dump:: How to use gcov-dump.
  44756. 
  44757. File: gcc.info, Node: Gcov-dump Intro, Next: Invoking Gcov-dump, Up: Gcov-dump
  44758. 12.1 Introduction to 'gcov-dump'
  44759. ================================
  44760. 'gcov-dump' is a tool you can use in conjunction with GCC to dump
  44761. content of gcda and gcno profile files offline.
  44762. 
  44763. File: gcc.info, Node: Invoking Gcov-dump, Prev: Gcov-dump Intro, Up: Gcov-dump
  44764. 12.2 Invoking 'gcov-dump'
  44765. =========================
  44766. Usage: gcov-dump [OPTION] ... GCOVFILES
  44767. 'gcov-dump' accepts the following options:
  44768. '-h'
  44769. '--help'
  44770. Display help about using 'gcov-dump' (on the standard output), and
  44771. exit without doing any further processing.
  44772. '-l'
  44773. '--long'
  44774. Dump content of records.
  44775. '-p'
  44776. '--positions'
  44777. Dump positions of records.
  44778. '-v'
  44779. '--version'
  44780. Display the 'gcov-dump' version number (on the standard output),
  44781. and exit without doing any further processing.
  44782. 
  44783. File: gcc.info, Node: Trouble, Next: Bugs, Prev: Gcov-dump, Up: Top
  44784. 13 Known Causes of Trouble with GCC
  44785. ***********************************
  44786. This section describes known problems that affect users of GCC. Most of
  44787. these are not GCC bugs per se--if they were, we would fix them. But the
  44788. result for a user may be like the result of a bug.
  44789. Some of these problems are due to bugs in other software, some are
  44790. missing features that are too much work to add, and some are places
  44791. where people's opinions differ as to what is best.
  44792. * Menu:
  44793. * Actual Bugs:: Bugs we will fix later.
  44794. * Interoperation:: Problems using GCC with other compilers,
  44795. and with certain linkers, assemblers and debuggers.
  44796. * Incompatibilities:: GCC is incompatible with traditional C.
  44797. * Fixed Headers:: GCC uses corrected versions of system header files.
  44798. This is necessary, but doesn't always work smoothly.
  44799. * Standard Libraries:: GCC uses the system C library, which might not be
  44800. compliant with the ISO C standard.
  44801. * Disappointments:: Regrettable things we cannot change, but not quite bugs.
  44802. * C++ Misunderstandings:: Common misunderstandings with GNU C++.
  44803. * Non-bugs:: Things we think are right, but some others disagree.
  44804. * Warnings and Errors:: Which problems in your code get warnings,
  44805. and which get errors.
  44806. 
  44807. File: gcc.info, Node: Actual Bugs, Next: Interoperation, Up: Trouble
  44808. 13.1 Actual Bugs We Haven't Fixed Yet
  44809. =====================================
  44810. * The 'fixincludes' script interacts badly with automounters; if the
  44811. directory of system header files is automounted, it tends to be
  44812. unmounted while 'fixincludes' is running. This would seem to be a
  44813. bug in the automounter. We don't know any good way to work around
  44814. it.
  44815. 
  44816. File: gcc.info, Node: Interoperation, Next: Incompatibilities, Prev: Actual Bugs, Up: Trouble
  44817. 13.2 Interoperation
  44818. ===================
  44819. This section lists various difficulties encountered in using GCC
  44820. together with other compilers or with the assemblers, linkers, libraries
  44821. and debuggers on certain systems.
  44822. * On many platforms, GCC supports a different ABI for C++ than do
  44823. other compilers, so the object files compiled by GCC cannot be used
  44824. with object files generated by another C++ compiler.
  44825. An area where the difference is most apparent is name mangling.
  44826. The use of different name mangling is intentional, to protect you
  44827. from more subtle problems. Compilers differ as to many internal
  44828. details of C++ implementation, including: how class instances are
  44829. laid out, how multiple inheritance is implemented, and how virtual
  44830. function calls are handled. If the name encoding were made the
  44831. same, your programs would link against libraries provided from
  44832. other compilers--but the programs would then crash when run.
  44833. Incompatible libraries are then detected at link time, rather than
  44834. at run time.
  44835. * On some BSD systems, including some versions of Ultrix, use of
  44836. profiling causes static variable destructors (currently used only
  44837. in C++) not to be run.
  44838. * On a SPARC, GCC aligns all values of type 'double' on an 8-byte
  44839. boundary, and it expects every 'double' to be so aligned. The Sun
  44840. compiler usually gives 'double' values 8-byte alignment, with one
  44841. exception: function arguments of type 'double' may not be aligned.
  44842. As a result, if a function compiled with Sun CC takes the address
  44843. of an argument of type 'double' and passes this pointer of type
  44844. 'double *' to a function compiled with GCC, dereferencing the
  44845. pointer may cause a fatal signal.
  44846. One way to solve this problem is to compile your entire program
  44847. with GCC. Another solution is to modify the function that is
  44848. compiled with Sun CC to copy the argument into a local variable;
  44849. local variables are always properly aligned. A third solution is
  44850. to modify the function that uses the pointer to dereference it via
  44851. the following function 'access_double' instead of directly with
  44852. '*':
  44853. inline double
  44854. access_double (double *unaligned_ptr)
  44855. {
  44856. union d2i { double d; int i[2]; };
  44857. union d2i *p = (union d2i *) unaligned_ptr;
  44858. union d2i u;
  44859. u.i[0] = p->i[0];
  44860. u.i[1] = p->i[1];
  44861. return u.d;
  44862. }
  44863. Storing into the pointer can be done likewise with the same union.
  44864. * On Solaris, the 'malloc' function in the 'libmalloc.a' library may
  44865. allocate memory that is only 4 byte aligned. Since GCC on the
  44866. SPARC assumes that doubles are 8 byte aligned, this may result in a
  44867. fatal signal if doubles are stored in memory allocated by the
  44868. 'libmalloc.a' library.
  44869. The solution is to not use the 'libmalloc.a' library. Use instead
  44870. 'malloc' and related functions from 'libc.a'; they do not have this
  44871. problem.
  44872. * On the HP PA machine, ADB sometimes fails to work on functions
  44873. compiled with GCC. Specifically, it fails to work on functions
  44874. that use 'alloca' or variable-size arrays. This is because GCC
  44875. doesn't generate HP-UX unwind descriptors for such functions. It
  44876. may even be impossible to generate them.
  44877. * Debugging ('-g') is not supported on the HP PA machine, unless you
  44878. use the preliminary GNU tools.
  44879. * Taking the address of a label may generate errors from the HP-UX PA
  44880. assembler. GAS for the PA does not have this problem.
  44881. * Using floating point parameters for indirect calls to static
  44882. functions will not work when using the HP assembler. There simply
  44883. is no way for GCC to specify what registers hold arguments for
  44884. static functions when using the HP assembler. GAS for the PA does
  44885. not have this problem.
  44886. * In extremely rare cases involving some very large functions you may
  44887. receive errors from the HP linker complaining about an out of
  44888. bounds unconditional branch offset. This used to occur more often
  44889. in previous versions of GCC, but is now exceptionally rare. If you
  44890. should run into it, you can work around by making your function
  44891. smaller.
  44892. * GCC compiled code sometimes emits warnings from the HP-UX assembler
  44893. of the form:
  44894. (warning) Use of GR3 when
  44895. frame >= 8192 may cause conflict.
  44896. These warnings are harmless and can be safely ignored.
  44897. * In extremely rare cases involving some very large functions you may
  44898. receive errors from the AIX Assembler complaining about a
  44899. displacement that is too large. If you should run into it, you can
  44900. work around by making your function smaller.
  44901. * The 'libstdc++.a' library in GCC relies on the SVR4 dynamic linker
  44902. semantics which merges global symbols between libraries and
  44903. applications, especially necessary for C++ streams functionality.
  44904. This is not the default behavior of AIX shared libraries and
  44905. dynamic linking. 'libstdc++.a' is built on AIX with
  44906. "runtime-linking" enabled so that symbol merging can occur. To
  44907. utilize this feature, the application linked with 'libstdc++.a'
  44908. must include the '-Wl,-brtl' flag on the link line. G++ cannot
  44909. impose this because this option may interfere with the semantics of
  44910. the user program and users may not always use 'g++' to link his or
  44911. her application. Applications are not required to use the
  44912. '-Wl,-brtl' flag on the link line--the rest of the 'libstdc++.a'
  44913. library which is not dependent on the symbol merging semantics will
  44914. continue to function correctly.
  44915. * An application can interpose its own definition of functions for
  44916. functions invoked by 'libstdc++.a' with "runtime-linking" enabled
  44917. on AIX. To accomplish this the application must be linked with
  44918. "runtime-linking" option and the functions explicitly must be
  44919. exported by the application ('-Wl,-brtl,-bE:exportfile').
  44920. * AIX on the RS/6000 provides support (NLS) for environments outside
  44921. of the United States. Compilers and assemblers use NLS to support
  44922. locale-specific representations of various objects including
  44923. floating-point numbers ('.' vs ',' for separating decimal
  44924. fractions). There have been problems reported where the library
  44925. linked with GCC does not produce the same floating-point formats
  44926. that the assembler accepts. If you have this problem, set the
  44927. 'LANG' environment variable to 'C' or 'En_US'.
  44928. * Even if you specify '-fdollars-in-identifiers', you cannot
  44929. successfully use '$' in identifiers on the RS/6000 due to a
  44930. restriction in the IBM assembler. GAS supports these identifiers.
  44931. 
  44932. File: gcc.info, Node: Incompatibilities, Next: Fixed Headers, Prev: Interoperation, Up: Trouble
  44933. 13.3 Incompatibilities of GCC
  44934. =============================
  44935. There are several noteworthy incompatibilities between GNU C and K&R
  44936. (non-ISO) versions of C.
  44937. * GCC normally makes string constants read-only. If several
  44938. identical-looking string constants are used, GCC stores only one
  44939. copy of the string.
  44940. One consequence is that you cannot call 'mktemp' with a string
  44941. constant argument. The function 'mktemp' always alters the string
  44942. its argument points to.
  44943. Another consequence is that 'sscanf' does not work on some very old
  44944. systems when passed a string constant as its format control string
  44945. or input. This is because 'sscanf' incorrectly tries to write into
  44946. the string constant. Likewise 'fscanf' and 'scanf'.
  44947. The solution to these problems is to change the program to use
  44948. 'char'-array variables with initialization strings for these
  44949. purposes instead of string constants.
  44950. * '-2147483648' is positive.
  44951. This is because 2147483648 cannot fit in the type 'int', so
  44952. (following the ISO C rules) its data type is 'unsigned long int'.
  44953. Negating this value yields 2147483648 again.
  44954. * GCC does not substitute macro arguments when they appear inside of
  44955. string constants. For example, the following macro in GCC
  44956. #define foo(a) "a"
  44957. will produce output '"a"' regardless of what the argument A is.
  44958. * When you use 'setjmp' and 'longjmp', the only automatic variables
  44959. guaranteed to remain valid are those declared 'volatile'. This is
  44960. a consequence of automatic register allocation. Consider this
  44961. function:
  44962. jmp_buf j;
  44963. foo ()
  44964. {
  44965. int a, b;
  44966. a = fun1 ();
  44967. if (setjmp (j))
  44968. return a;
  44969. a = fun2 ();
  44970. /* 'longjmp (j)' may occur in 'fun3'. */
  44971. return a + fun3 ();
  44972. }
  44973. Here 'a' may or may not be restored to its first value when the
  44974. 'longjmp' occurs. If 'a' is allocated in a register, then its
  44975. first value is restored; otherwise, it keeps the last value stored
  44976. in it.
  44977. If you use the '-W' option with the '-O' option, you will get a
  44978. warning when GCC thinks such a problem might be possible.
  44979. * Programs that use preprocessing directives in the middle of macro
  44980. arguments do not work with GCC. For example, a program like this
  44981. will not work:
  44982. foobar (
  44983. #define luser
  44984. hack)
  44985. ISO C does not permit such a construct.
  44986. * K&R compilers allow comments to cross over an inclusion boundary
  44987. (i.e. started in an include file and ended in the including file).
  44988. * Declarations of external variables and functions within a block
  44989. apply only to the block containing the declaration. In other
  44990. words, they have the same scope as any other declaration in the
  44991. same place.
  44992. In some other C compilers, an 'extern' declaration affects all the
  44993. rest of the file even if it happens within a block.
  44994. * In traditional C, you can combine 'long', etc., with a typedef
  44995. name, as shown here:
  44996. typedef int foo;
  44997. typedef long foo bar;
  44998. In ISO C, this is not allowed: 'long' and other type modifiers
  44999. require an explicit 'int'.
  45000. * PCC allows typedef names to be used as function parameters.
  45001. * Traditional C allows the following erroneous pair of declarations
  45002. to appear together in a given scope:
  45003. typedef int foo;
  45004. typedef foo foo;
  45005. * GCC treats all characters of identifiers as significant. According
  45006. to K&R-1 (2.2), "No more than the first eight characters are
  45007. significant, although more may be used.". Also according to K&R-1
  45008. (2.2), "An identifier is a sequence of letters and digits; the
  45009. first character must be a letter. The underscore _ counts as a
  45010. letter.", but GCC also allows dollar signs in identifiers.
  45011. * PCC allows whitespace in the middle of compound assignment
  45012. operators such as '+='. GCC, following the ISO standard, does not
  45013. allow this.
  45014. * GCC complains about unterminated character constants inside of
  45015. preprocessing conditionals that fail. Some programs have English
  45016. comments enclosed in conditionals that are guaranteed to fail; if
  45017. these comments contain apostrophes, GCC will probably report an
  45018. error. For example, this code would produce an error:
  45019. #if 0
  45020. You can't expect this to work.
  45021. #endif
  45022. The best solution to such a problem is to put the text into an
  45023. actual C comment delimited by '/*...*/'.
  45024. * Many user programs contain the declaration 'long time ();'. In the
  45025. past, the system header files on many systems did not actually
  45026. declare 'time', so it did not matter what type your program
  45027. declared it to return. But in systems with ISO C headers, 'time'
  45028. is declared to return 'time_t', and if that is not the same as
  45029. 'long', then 'long time ();' is erroneous.
  45030. The solution is to change your program to use appropriate system
  45031. headers ('<time.h>' on systems with ISO C headers) and not to
  45032. declare 'time' if the system header files declare it, or failing
  45033. that to use 'time_t' as the return type of 'time'.
  45034. * When compiling functions that return 'float', PCC converts it to a
  45035. double. GCC actually returns a 'float'. If you are concerned with
  45036. PCC compatibility, you should declare your functions to return
  45037. 'double'; you might as well say what you mean.
  45038. * When compiling functions that return structures or unions, GCC
  45039. output code normally uses a method different from that used on most
  45040. versions of Unix. As a result, code compiled with GCC cannot call
  45041. a structure-returning function compiled with PCC, and vice versa.
  45042. The method used by GCC is as follows: a structure or union which is
  45043. 1, 2, 4 or 8 bytes long is returned like a scalar. A structure or
  45044. union with any other size is stored into an address supplied by the
  45045. caller (usually in a special, fixed register, but on some machines
  45046. it is passed on the stack). The target hook
  45047. 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  45048. By contrast, PCC on most target machines returns structures and
  45049. unions of any size by copying the data into an area of static
  45050. storage, and then returning the address of that storage as if it
  45051. were a pointer value. The caller must copy the data from that
  45052. memory area to the place where the value is wanted. GCC does not
  45053. use this method because it is slower and nonreentrant.
  45054. On some newer machines, PCC uses a reentrant convention for all
  45055. structure and union returning. GCC on most of these machines uses
  45056. a compatible convention when returning structures and unions in
  45057. memory, but still returns small structures and unions in registers.
  45058. You can tell GCC to use a compatible convention for all structure
  45059. and union returning with the option '-fpcc-struct-return'.
  45060. * GCC complains about program fragments such as '0x74ae-0x4000' which
  45061. appear to be two hexadecimal constants separated by the minus
  45062. operator. Actually, this string is a single "preprocessing token".
  45063. Each such token must correspond to one token in C. Since this does
  45064. not, GCC prints an error message. Although it may appear obvious
  45065. that what is meant is an operator and two values, the ISO C
  45066. standard specifically requires that this be treated as erroneous.
  45067. A "preprocessing token" is a "preprocessing number" if it begins
  45068. with a digit and is followed by letters, underscores, digits,
  45069. periods and 'e+', 'e-', 'E+', 'E-', 'p+', 'p-', 'P+', or 'P-'
  45070. character sequences. (In strict C90 mode, the sequences 'p+',
  45071. 'p-', 'P+' and 'P-' cannot appear in preprocessing numbers.)
  45072. To make the above program fragment valid, place whitespace in front
  45073. of the minus sign. This whitespace will end the preprocessing
  45074. number.
  45075. 
  45076. File: gcc.info, Node: Fixed Headers, Next: Standard Libraries, Prev: Incompatibilities, Up: Trouble
  45077. 13.4 Fixed Header Files
  45078. =======================
  45079. GCC needs to install corrected versions of some system header files.
  45080. This is because most target systems have some header files that won't
  45081. work with GCC unless they are changed. Some have bugs, some are
  45082. incompatible with ISO C, and some depend on special features of other
  45083. compilers.
  45084. Installing GCC automatically creates and installs the fixed header
  45085. files, by running a program called 'fixincludes'. Normally, you don't
  45086. need to pay attention to this. But there are cases where it doesn't do
  45087. the right thing automatically.
  45088. * If you update the system's header files, such as by installing a
  45089. new system version, the fixed header files of GCC are not
  45090. automatically updated. They can be updated using the 'mkheaders'
  45091. script installed in 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  45092. * On some systems, header file directories contain machine-specific
  45093. symbolic links in certain places. This makes it possible to share
  45094. most of the header files among hosts running the same version of
  45095. the system on different machine models.
  45096. The programs that fix the header files do not understand this
  45097. special way of using symbolic links; therefore, the directory of
  45098. fixed header files is good only for the machine model used to build
  45099. it.
  45100. It is possible to make separate sets of fixed header files for the
  45101. different machine models, and arrange a structure of symbolic links
  45102. so as to use the proper set, but you'll have to do this by hand.
  45103. 
  45104. File: gcc.info, Node: Standard Libraries, Next: Disappointments, Prev: Fixed Headers, Up: Trouble
  45105. 13.5 Standard Libraries
  45106. =======================
  45107. GCC by itself attempts to be a conforming freestanding implementation.
  45108. *Note Language Standards Supported by GCC: Standards, for details of
  45109. what this means. Beyond the library facilities required of such an
  45110. implementation, the rest of the C library is supplied by the vendor of
  45111. the operating system. If that C library doesn't conform to the C
  45112. standards, then your programs might get warnings (especially when using
  45113. '-Wall') that you don't expect.
  45114. For example, the 'sprintf' function on SunOS 4.1.3 returns 'char *'
  45115. while the C standard says that 'sprintf' returns an 'int'. The
  45116. 'fixincludes' program could make the prototype for this function match
  45117. the Standard, but that would be wrong, since the function will still
  45118. return 'char *'.
  45119. If you need a Standard compliant library, then you need to find one, as
  45120. GCC does not provide one. The GNU C library (called 'glibc') provides
  45121. ISO C, POSIX, BSD, SystemV and X/Open compatibility for GNU/Linux and
  45122. HURD-based GNU systems; no recent version of it supports other systems,
  45123. though some very old versions did. Version 2.2 of the GNU C library
  45124. includes nearly complete C99 support. You could also ask your operating
  45125. system vendor if newer libraries are available.
  45126. 
  45127. File: gcc.info, Node: Disappointments, Next: C++ Misunderstandings, Prev: Standard Libraries, Up: Trouble
  45128. 13.6 Disappointments and Misunderstandings
  45129. ==========================================
  45130. These problems are perhaps regrettable, but we don't know any practical
  45131. way around them.
  45132. * Certain local variables aren't recognized by debuggers when you
  45133. compile with optimization.
  45134. This occurs because sometimes GCC optimizes the variable out of
  45135. existence. There is no way to tell the debugger how to compute the
  45136. value such a variable "would have had", and it is not clear that
  45137. would be desirable anyway. So GCC simply does not mention the
  45138. eliminated variable when it writes debugging information.
  45139. You have to expect a certain amount of disagreement between the
  45140. executable and your source code, when you use optimization.
  45141. * Users often think it is a bug when GCC reports an error for code
  45142. like this:
  45143. int foo (struct mumble *);
  45144. struct mumble { ... };
  45145. int foo (struct mumble *x)
  45146. { ... }
  45147. This code really is erroneous, because the scope of 'struct mumble'
  45148. in the prototype is limited to the argument list containing it. It
  45149. does not refer to the 'struct mumble' defined with file scope
  45150. immediately below--they are two unrelated types with similar names
  45151. in different scopes.
  45152. But in the definition of 'foo', the file-scope type is used because
  45153. that is available to be inherited. Thus, the definition and the
  45154. prototype do not match, and you get an error.
  45155. This behavior may seem silly, but it's what the ISO standard
  45156. specifies. It is easy enough for you to make your code work by
  45157. moving the definition of 'struct mumble' above the prototype. It's
  45158. not worth being incompatible with ISO C just to avoid an error for
  45159. the example shown above.
  45160. * Accesses to bit-fields even in volatile objects works by accessing
  45161. larger objects, such as a byte or a word. You cannot rely on what
  45162. size of object is accessed in order to read or write the bit-field;
  45163. it may even vary for a given bit-field according to the precise
  45164. usage.
  45165. If you care about controlling the amount of memory that is
  45166. accessed, use volatile but do not use bit-fields.
  45167. * GCC comes with shell scripts to fix certain known problems in
  45168. system header files. They install corrected copies of various
  45169. header files in a special directory where only GCC will normally
  45170. look for them. The scripts adapt to various systems by searching
  45171. all the system header files for the problem cases that we know
  45172. about.
  45173. If new system header files are installed, nothing automatically
  45174. arranges to update the corrected header files. They can be updated
  45175. using the 'mkheaders' script installed in
  45176. 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  45177. * On 68000 and x86 systems, for instance, you can get paradoxical
  45178. results if you test the precise values of floating point numbers.
  45179. For example, you can find that a floating point value which is not
  45180. a NaN is not equal to itself. This results from the fact that the
  45181. floating point registers hold a few more bits of precision than fit
  45182. in a 'double' in memory. Compiled code moves values between memory
  45183. and floating point registers at its convenience, and moving them
  45184. into memory truncates them.
  45185. You can partially avoid this problem by using the '-ffloat-store'
  45186. option (*note Optimize Options::).
  45187. * On AIX and other platforms without weak symbol support, templates
  45188. need to be instantiated explicitly and symbols for static members
  45189. of templates will not be generated.
  45190. * On AIX, GCC scans object files and library archives for static
  45191. constructors and destructors when linking an application before the
  45192. linker prunes unreferenced symbols. This is necessary to prevent
  45193. the AIX linker from mistakenly assuming that static constructor or
  45194. destructor are unused and removing them before the scanning can
  45195. occur. All static constructors and destructors found will be
  45196. referenced even though the modules in which they occur may not be
  45197. used by the program. This may lead to both increased executable
  45198. size and unexpected symbol references.
  45199. 
  45200. File: gcc.info, Node: C++ Misunderstandings, Next: Non-bugs, Prev: Disappointments, Up: Trouble
  45201. 13.7 Common Misunderstandings with GNU C++
  45202. ==========================================
  45203. C++ is a complex language and an evolving one, and its standard
  45204. definition (the ISO C++ standard) was only recently completed. As a
  45205. result, your C++ compiler may occasionally surprise you, even when its
  45206. behavior is correct. This section discusses some areas that frequently
  45207. give rise to questions of this sort.
  45208. * Menu:
  45209. * Static Definitions:: Static member declarations are not definitions
  45210. * Name lookup:: Name lookup, templates, and accessing members of base classes
  45211. * Temporaries:: Temporaries may vanish before you expect
  45212. * Copy Assignment:: Copy Assignment operators copy virtual bases twice
  45213. 
  45214. File: gcc.info, Node: Static Definitions, Next: Name lookup, Up: C++ Misunderstandings
  45215. 13.7.1 Declare _and_ Define Static Members
  45216. ------------------------------------------
  45217. When a class has static data members, it is not enough to _declare_ the
  45218. static member; you must also _define_ it. For example:
  45219. class Foo
  45220. {
  45221. ...
  45222. void method();
  45223. static int bar;
  45224. };
  45225. This declaration only establishes that the class 'Foo' has an 'int'
  45226. named 'Foo::bar', and a member function named 'Foo::method'. But you
  45227. still need to define _both_ 'method' and 'bar' elsewhere. According to
  45228. the ISO standard, you must supply an initializer in one (and only one)
  45229. source file, such as:
  45230. int Foo::bar = 0;
  45231. Other C++ compilers may not correctly implement the standard behavior.
  45232. As a result, when you switch to 'g++' from one of these compilers, you
  45233. may discover that a program that appeared to work correctly in fact does
  45234. not conform to the standard: 'g++' reports as undefined symbols any
  45235. static data members that lack definitions.
  45236. 
  45237. File: gcc.info, Node: Name lookup, Next: Temporaries, Prev: Static Definitions, Up: C++ Misunderstandings
  45238. 13.7.2 Name Lookup, Templates, and Accessing Members of Base Classes
  45239. --------------------------------------------------------------------
  45240. The C++ standard prescribes that all names that are not dependent on
  45241. template parameters are bound to their present definitions when parsing
  45242. a template function or class.(1) Only names that are dependent are
  45243. looked up at the point of instantiation. For example, consider
  45244. void foo(double);
  45245. struct A {
  45246. template <typename T>
  45247. void f () {
  45248. foo (1); // 1
  45249. int i = N; // 2
  45250. T t;
  45251. t.bar(); // 3
  45252. foo (t); // 4
  45253. }
  45254. static const int N;
  45255. };
  45256. Here, the names 'foo' and 'N' appear in a context that does not depend
  45257. on the type of 'T'. The compiler will thus require that they are
  45258. defined in the context of use in the template, not only before the point
  45259. of instantiation, and will here use '::foo(double)' and 'A::N',
  45260. respectively. In particular, it will convert the integer value to a
  45261. 'double' when passing it to '::foo(double)'.
  45262. Conversely, 'bar' and the call to 'foo' in the fourth marked line are
  45263. used in contexts that do depend on the type of 'T', so they are only
  45264. looked up at the point of instantiation, and you can provide
  45265. declarations for them after declaring the template, but before
  45266. instantiating it. In particular, if you instantiate 'A::f<int>', the
  45267. last line will call an overloaded '::foo(int)' if one was provided, even
  45268. if after the declaration of 'struct A'.
  45269. This distinction between lookup of dependent and non-dependent names is
  45270. called two-stage (or dependent) name lookup. G++ implements it since
  45271. version 3.4.
  45272. Two-stage name lookup sometimes leads to situations with behavior
  45273. different from non-template codes. The most common is probably this:
  45274. template <typename T> struct Base {
  45275. int i;
  45276. };
  45277. template <typename T> struct Derived : public Base<T> {
  45278. int get_i() { return i; }
  45279. };
  45280. In 'get_i()', 'i' is not used in a dependent context, so the compiler
  45281. will look for a name declared at the enclosing namespace scope (which is
  45282. the global scope here). It will not look into the base class, since
  45283. that is dependent and you may declare specializations of 'Base' even
  45284. after declaring 'Derived', so the compiler cannot really know what 'i'
  45285. would refer to. If there is no global variable 'i', then you will get
  45286. an error message.
  45287. In order to make it clear that you want the member of the base class,
  45288. you need to defer lookup until instantiation time, at which the base
  45289. class is known. For this, you need to access 'i' in a dependent
  45290. context, by either using 'this->i' (remember that 'this' is of type
  45291. 'Derived<T>*', so is obviously dependent), or using 'Base<T>::i'.
  45292. Alternatively, 'Base<T>::i' might be brought into scope by a
  45293. 'using'-declaration.
  45294. Another, similar example involves calling member functions of a base
  45295. class:
  45296. template <typename T> struct Base {
  45297. int f();
  45298. };
  45299. template <typename T> struct Derived : Base<T> {
  45300. int g() { return f(); };
  45301. };
  45302. Again, the call to 'f()' is not dependent on template arguments (there
  45303. are no arguments that depend on the type 'T', and it is also not
  45304. otherwise specified that the call should be in a dependent context).
  45305. Thus a global declaration of such a function must be available, since
  45306. the one in the base class is not visible until instantiation time. The
  45307. compiler will consequently produce the following error message:
  45308. x.cc: In member function `int Derived<T>::g()':
  45309. x.cc:6: error: there are no arguments to `f' that depend on a template
  45310. parameter, so a declaration of `f' must be available
  45311. x.cc:6: error: (if you use `-fpermissive', G++ will accept your code, but
  45312. allowing the use of an undeclared name is deprecated)
  45313. To make the code valid either use 'this->f()', or 'Base<T>::f()'.
  45314. Using the '-fpermissive' flag will also let the compiler accept the
  45315. code, by marking all function calls for which no declaration is visible
  45316. at the time of definition of the template for later lookup at
  45317. instantiation time, as if it were a dependent call. We do not recommend
  45318. using '-fpermissive' to work around invalid code, and it will also only
  45319. catch cases where functions in base classes are called, not where
  45320. variables in base classes are used (as in the example above).
  45321. Note that some compilers (including G++ versions prior to 3.4) get
  45322. these examples wrong and accept above code without an error. Those
  45323. compilers do not implement two-stage name lookup correctly.
  45324. ---------- Footnotes ----------
  45325. (1) The C++ standard just uses the term "dependent" for names that
  45326. depend on the type or value of template parameters. This shorter term
  45327. will also be used in the rest of this section.
  45328. 
  45329. File: gcc.info, Node: Temporaries, Next: Copy Assignment, Prev: Name lookup, Up: C++ Misunderstandings
  45330. 13.7.3 Temporaries May Vanish Before You Expect
  45331. -----------------------------------------------
  45332. It is dangerous to use pointers or references to _portions_ of a
  45333. temporary object. The compiler may very well delete the object before
  45334. you expect it to, leaving a pointer to garbage. The most common place
  45335. where this problem crops up is in classes like string classes,
  45336. especially ones that define a conversion function to type 'char *' or
  45337. 'const char *'--which is one reason why the standard 'string' class
  45338. requires you to call the 'c_str' member function. However, any class
  45339. that returns a pointer to some internal structure is potentially subject
  45340. to this problem.
  45341. For example, a program may use a function 'strfunc' that returns
  45342. 'string' objects, and another function 'charfunc' that operates on
  45343. pointers to 'char':
  45344. string strfunc ();
  45345. void charfunc (const char *);
  45346. void
  45347. f ()
  45348. {
  45349. const char *p = strfunc().c_str();
  45350. ...
  45351. charfunc (p);
  45352. ...
  45353. charfunc (p);
  45354. }
  45355. In this situation, it may seem reasonable to save a pointer to the C
  45356. string returned by the 'c_str' member function and use that rather than
  45357. call 'c_str' repeatedly. However, the temporary string created by the
  45358. call to 'strfunc' is destroyed after 'p' is initialized, at which point
  45359. 'p' is left pointing to freed memory.
  45360. Code like this may run successfully under some other compilers,
  45361. particularly obsolete cfront-based compilers that delete temporaries
  45362. along with normal local variables. However, the GNU C++ behavior is
  45363. standard-conforming, so if your program depends on late destruction of
  45364. temporaries it is not portable.
  45365. The safe way to write such code is to give the temporary a name, which
  45366. forces it to remain until the end of the scope of the name. For
  45367. example:
  45368. const string& tmp = strfunc ();
  45369. charfunc (tmp.c_str ());
  45370. 
  45371. File: gcc.info, Node: Copy Assignment, Prev: Temporaries, Up: C++ Misunderstandings
  45372. 13.7.4 Implicit Copy-Assignment for Virtual Bases
  45373. -------------------------------------------------
  45374. When a base class is virtual, only one subobject of the base class
  45375. belongs to each full object. Also, the constructors and destructors are
  45376. invoked only once, and called from the most-derived class. However,
  45377. such objects behave unspecified when being assigned. For example:
  45378. struct Base{
  45379. char *name;
  45380. Base(char *n) : name(strdup(n)){}
  45381. Base& operator= (const Base& other){
  45382. free (name);
  45383. name = strdup (other.name);
  45384. }
  45385. };
  45386. struct A:virtual Base{
  45387. int val;
  45388. A():Base("A"){}
  45389. };
  45390. struct B:virtual Base{
  45391. int bval;
  45392. B():Base("B"){}
  45393. };
  45394. struct Derived:public A, public B{
  45395. Derived():Base("Derived"){}
  45396. };
  45397. void func(Derived &d1, Derived &d2)
  45398. {
  45399. d1 = d2;
  45400. }
  45401. The C++ standard specifies that 'Base::Base' is only called once when
  45402. constructing or copy-constructing a Derived object. It is unspecified
  45403. whether 'Base::operator=' is called more than once when the implicit
  45404. copy-assignment for Derived objects is invoked (as it is inside 'func'
  45405. in the example).
  45406. G++ implements the "intuitive" algorithm for copy-assignment: assign
  45407. all direct bases, then assign all members. In that algorithm, the
  45408. virtual base subobject can be encountered more than once. In the
  45409. example, copying proceeds in the following order: 'val', 'name' (via
  45410. 'strdup'), 'bval', and 'name' again.
  45411. If application code relies on copy-assignment, a user-defined
  45412. copy-assignment operator removes any uncertainties. With such an
  45413. operator, the application can define whether and how the virtual base
  45414. subobject is assigned.
  45415. 
  45416. File: gcc.info, Node: Non-bugs, Next: Warnings and Errors, Prev: C++ Misunderstandings, Up: Trouble
  45417. 13.8 Certain Changes We Don't Want to Make
  45418. ==========================================
  45419. This section lists changes that people frequently request, but which we
  45420. do not make because we think GCC is better without them.
  45421. * Checking the number and type of arguments to a function which has
  45422. an old-fashioned definition and no prototype.
  45423. Such a feature would work only occasionally--only for calls that
  45424. appear in the same file as the called function, following the
  45425. definition. The only way to check all calls reliably is to add a
  45426. prototype for the function. But adding a prototype eliminates the
  45427. motivation for this feature. So the feature is not worthwhile.
  45428. * Warning about using an expression whose type is signed as a shift
  45429. count.
  45430. Shift count operands are probably signed more often than unsigned.
  45431. Warning about this would cause far more annoyance than good.
  45432. * Warning about assigning a signed value to an unsigned variable.
  45433. Such assignments must be very common; warning about them would
  45434. cause more annoyance than good.
  45435. * Warning when a non-void function value is ignored.
  45436. C contains many standard functions that return a value that most
  45437. programs choose to ignore. One obvious example is 'printf'.
  45438. Warning about this practice only leads the defensive programmer to
  45439. clutter programs with dozens of casts to 'void'. Such casts are
  45440. required so frequently that they become visual noise. Writing
  45441. those casts becomes so automatic that they no longer convey useful
  45442. information about the intentions of the programmer. For functions
  45443. where the return value should never be ignored, use the
  45444. 'warn_unused_result' function attribute (*note Function
  45445. Attributes::).
  45446. * Making '-fshort-enums' the default.
  45447. This would cause storage layout to be incompatible with most other
  45448. C compilers. And it doesn't seem very important, given that you
  45449. can get the same result in other ways. The case where it matters
  45450. most is when the enumeration-valued object is inside a structure,
  45451. and in that case you can specify a field width explicitly.
  45452. * Making bit-fields unsigned by default on particular machines where
  45453. "the ABI standard" says to do so.
  45454. The ISO C standard leaves it up to the implementation whether a
  45455. bit-field declared plain 'int' is signed or not. This in effect
  45456. creates two alternative dialects of C.
  45457. The GNU C compiler supports both dialects; you can specify the
  45458. signed dialect with '-fsigned-bitfields' and the unsigned dialect
  45459. with '-funsigned-bitfields'. However, this leaves open the
  45460. question of which dialect to use by default.
  45461. Currently, the preferred dialect makes plain bit-fields signed,
  45462. because this is simplest. Since 'int' is the same as 'signed int'
  45463. in every other context, it is cleanest for them to be the same in
  45464. bit-fields as well.
  45465. Some computer manufacturers have published Application Binary
  45466. Interface standards which specify that plain bit-fields should be
  45467. unsigned. It is a mistake, however, to say anything about this
  45468. issue in an ABI. This is because the handling of plain bit-fields
  45469. distinguishes two dialects of C. Both dialects are meaningful on
  45470. every type of machine. Whether a particular object file was
  45471. compiled using signed bit-fields or unsigned is of no concern to
  45472. other object files, even if they access the same bit-fields in the
  45473. same data structures.
  45474. A given program is written in one or the other of these two
  45475. dialects. The program stands a chance to work on most any machine
  45476. if it is compiled with the proper dialect. It is unlikely to work
  45477. at all if compiled with the wrong dialect.
  45478. Many users appreciate the GNU C compiler because it provides an
  45479. environment that is uniform across machines. These users would be
  45480. inconvenienced if the compiler treated plain bit-fields differently
  45481. on certain machines.
  45482. Occasionally users write programs intended only for a particular
  45483. machine type. On these occasions, the users would benefit if the
  45484. GNU C compiler were to support by default the same dialect as the
  45485. other compilers on that machine. But such applications are rare.
  45486. And users writing a program to run on more than one type of machine
  45487. cannot possibly benefit from this kind of compatibility.
  45488. This is why GCC does and will treat plain bit-fields in the same
  45489. fashion on all types of machines (by default).
  45490. There are some arguments for making bit-fields unsigned by default
  45491. on all machines. If, for example, this becomes a universal de
  45492. facto standard, it would make sense for GCC to go along with it.
  45493. This is something to be considered in the future.
  45494. (Of course, users strongly concerned about portability should
  45495. indicate explicitly in each bit-field whether it is signed or not.
  45496. In this way, they write programs which have the same meaning in
  45497. both C dialects.)
  45498. * Undefining '__STDC__' when '-ansi' is not used.
  45499. Currently, GCC defines '__STDC__' unconditionally. This provides
  45500. good results in practice.
  45501. Programmers normally use conditionals on '__STDC__' to ask whether
  45502. it is safe to use certain features of ISO C, such as function
  45503. prototypes or ISO token concatenation. Since plain 'gcc' supports
  45504. all the features of ISO C, the correct answer to these questions is
  45505. "yes".
  45506. Some users try to use '__STDC__' to check for the availability of
  45507. certain library facilities. This is actually incorrect usage in an
  45508. ISO C program, because the ISO C standard says that a conforming
  45509. freestanding implementation should define '__STDC__' even though it
  45510. does not have the library facilities. 'gcc -ansi -pedantic' is a
  45511. conforming freestanding implementation, and it is therefore
  45512. required to define '__STDC__', even though it does not come with an
  45513. ISO C library.
  45514. Sometimes people say that defining '__STDC__' in a compiler that
  45515. does not completely conform to the ISO C standard somehow violates
  45516. the standard. This is illogical. The standard is a standard for
  45517. compilers that claim to support ISO C, such as 'gcc -ansi'--not for
  45518. other compilers such as plain 'gcc'. Whatever the ISO C standard
  45519. says is relevant to the design of plain 'gcc' without '-ansi' only
  45520. for pragmatic reasons, not as a requirement.
  45521. GCC normally defines '__STDC__' to be 1, and in addition defines
  45522. '__STRICT_ANSI__' if you specify the '-ansi' option, or a '-std'
  45523. option for strict conformance to some version of ISO C. On some
  45524. hosts, system include files use a different convention, where
  45525. '__STDC__' is normally 0, but is 1 if the user specifies strict
  45526. conformance to the C Standard. GCC follows the host convention
  45527. when processing system include files, but when processing user
  45528. files it follows the usual GNU C convention.
  45529. * Undefining '__STDC__' in C++.
  45530. Programs written to compile with C++-to-C translators get the value
  45531. of '__STDC__' that goes with the C compiler that is subsequently
  45532. used. These programs must test '__STDC__' to determine what kind
  45533. of C preprocessor that compiler uses: whether they should
  45534. concatenate tokens in the ISO C fashion or in the traditional
  45535. fashion.
  45536. These programs work properly with GNU C++ if '__STDC__' is defined.
  45537. They would not work otherwise.
  45538. In addition, many header files are written to provide prototypes in
  45539. ISO C but not in traditional C. Many of these header files can
  45540. work without change in C++ provided '__STDC__' is defined. If
  45541. '__STDC__' is not defined, they will all fail, and will all need to
  45542. be changed to test explicitly for C++ as well.
  45543. * Deleting "empty" loops.
  45544. Historically, GCC has not deleted "empty" loops under the
  45545. assumption that the most likely reason you would put one in a
  45546. program is to have a delay, so deleting them will not make real
  45547. programs run any faster.
  45548. However, the rationale here is that optimization of a nonempty loop
  45549. cannot produce an empty one. This held for carefully written C
  45550. compiled with less powerful optimizers but is not always the case
  45551. for carefully written C++ or with more powerful optimizers. Thus
  45552. GCC will remove operations from loops whenever it can determine
  45553. those operations are not externally visible (apart from the time
  45554. taken to execute them, of course). In case the loop can be proved
  45555. to be finite, GCC will also remove the loop itself.
  45556. Be aware of this when performing timing tests, for instance the
  45557. following loop can be completely removed, provided
  45558. 'some_expression' can provably not change any global state.
  45559. {
  45560. int sum = 0;
  45561. int ix;
  45562. for (ix = 0; ix != 10000; ix++)
  45563. sum += some_expression;
  45564. }
  45565. Even though 'sum' is accumulated in the loop, no use is made of
  45566. that summation, so the accumulation can be removed.
  45567. * Making side effects happen in the same order as in some other
  45568. compiler.
  45569. It is never safe to depend on the order of evaluation of side
  45570. effects. For example, a function call like this may very well
  45571. behave differently from one compiler to another:
  45572. void func (int, int);
  45573. int i = 2;
  45574. func (i++, i++);
  45575. There is no guarantee (in either the C or the C++ standard language
  45576. definitions) that the increments will be evaluated in any
  45577. particular order. Either increment might happen first. 'func'
  45578. might get the arguments '2, 3', or it might get '3, 2', or even '2,
  45579. 2'.
  45580. * Making certain warnings into errors by default.
  45581. Some ISO C testsuites report failure when the compiler does not
  45582. produce an error message for a certain program.
  45583. ISO C requires a "diagnostic" message for certain kinds of invalid
  45584. programs, but a warning is defined by GCC to count as a diagnostic.
  45585. If GCC produces a warning but not an error, that is correct ISO C
  45586. support. If testsuites call this "failure", they should be run
  45587. with the GCC option '-pedantic-errors', which will turn these
  45588. warnings into errors.
  45589. 
  45590. File: gcc.info, Node: Warnings and Errors, Prev: Non-bugs, Up: Trouble
  45591. 13.9 Warning Messages and Error Messages
  45592. ========================================
  45593. The GNU compiler can produce two kinds of diagnostics: errors and
  45594. warnings. Each kind has a different purpose:
  45595. "Errors" report problems that make it impossible to compile your
  45596. program. GCC reports errors with the source file name and line
  45597. number where the problem is apparent.
  45598. "Warnings" report other unusual conditions in your code that _may_
  45599. indicate a problem, although compilation can (and does) proceed.
  45600. Warning messages also report the source file name and line number,
  45601. but include the text 'warning:' to distinguish them from error
  45602. messages.
  45603. Warnings may indicate danger points where you should check to make sure
  45604. that your program really does what you intend; or the use of obsolete
  45605. features; or the use of nonstandard features of GNU C or C++. Many
  45606. warnings are issued only if you ask for them, with one of the '-W'
  45607. options (for instance, '-Wall' requests a variety of useful warnings).
  45608. GCC always tries to compile your program if possible; it never
  45609. gratuitously rejects a program whose meaning is clear merely because
  45610. (for instance) it fails to conform to a standard. In some cases,
  45611. however, the C and C++ standards specify that certain extensions are
  45612. forbidden, and a diagnostic _must_ be issued by a conforming compiler.
  45613. The '-pedantic' option tells GCC to issue warnings in such cases;
  45614. '-pedantic-errors' says to make them errors instead. This does not mean
  45615. that _all_ non-ISO constructs get warnings or errors.
  45616. *Note Options to Request or Suppress Warnings: Warning Options, for
  45617. more detail on these and related command-line options.
  45618. 
  45619. File: gcc.info, Node: Bugs, Next: Service, Prev: Trouble, Up: Top
  45620. 14 Reporting Bugs
  45621. *****************
  45622. Your bug reports play an essential role in making GCC reliable.
  45623. When you encounter a problem, the first thing to do is to see if it is
  45624. already known. *Note Trouble::. If it isn't known, then you should
  45625. report the problem.
  45626. * Menu:
  45627. * Criteria: Bug Criteria. Have you really found a bug?
  45628. * Reporting: Bug Reporting. How to report a bug effectively.
  45629. 
  45630. File: gcc.info, Node: Bug Criteria, Next: Bug Reporting, Up: Bugs
  45631. 14.1 Have You Found a Bug?
  45632. ==========================
  45633. If you are not sure whether you have found a bug, here are some
  45634. guidelines:
  45635. * If the compiler gets a fatal signal, for any input whatever, that
  45636. is a compiler bug. Reliable compilers never crash.
  45637. * If the compiler produces invalid assembly code, for any input
  45638. whatever (except an 'asm' statement), that is a compiler bug,
  45639. unless the compiler reports errors (not just warnings) which would
  45640. ordinarily prevent the assembler from being run.
  45641. * If the compiler produces valid assembly code that does not
  45642. correctly execute the input source code, that is a compiler bug.
  45643. However, you must double-check to make sure, because you may have a
  45644. program whose behavior is undefined, which happened by chance to
  45645. give the desired results with another C or C++ compiler.
  45646. For example, in many nonoptimizing compilers, you can write 'x;' at
  45647. the end of a function instead of 'return x;', with the same
  45648. results. But the value of the function is undefined if 'return' is
  45649. omitted; it is not a bug when GCC produces different results.
  45650. Problems often result from expressions with two increment
  45651. operators, as in 'f (*p++, *p++)'. Your previous compiler might
  45652. have interpreted that expression the way you intended; GCC might
  45653. interpret it another way. Neither compiler is wrong. The bug is
  45654. in your code.
  45655. After you have localized the error to a single source line, it
  45656. should be easy to check for these things. If your program is
  45657. correct and well defined, you have found a compiler bug.
  45658. * If the compiler produces an error message for valid input, that is
  45659. a compiler bug.
  45660. * If the compiler does not produce an error message for invalid
  45661. input, that is a compiler bug. However, you should note that your
  45662. idea of "invalid input" might be someone else's idea of "an
  45663. extension" or "support for traditional practice".
  45664. * If you are an experienced user of one of the languages GCC
  45665. supports, your suggestions for improvement of GCC are welcome in
  45666. any case.
  45667. 
  45668. File: gcc.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Bugs
  45669. 14.2 How and Where to Report Bugs
  45670. =================================
  45671. Bugs should be reported to the bug database at
  45672. <https://gcc.gnu.org/bugs/>.
  45673. 
  45674. File: gcc.info, Node: Service, Next: Contributing, Prev: Bugs, Up: Top
  45675. 15 How To Get Help with GCC
  45676. ***************************
  45677. If you need help installing, using or changing GCC, there are two ways
  45678. to find it:
  45679. * Send a message to a suitable network mailing list. First try
  45680. <gcc-help@gcc.gnu.org> (for help installing or using GCC), and if
  45681. that brings no response, try <gcc@gcc.gnu.org>. For help changing
  45682. GCC, ask <gcc@gcc.gnu.org>. If you think you have found a bug in
  45683. GCC, please report it following the instructions at *note Bug
  45684. Reporting::.
  45685. * Look in the service directory for someone who might help you for a
  45686. fee. The service directory is found at
  45687. <https://www.fsf.org/resources/service>.
  45688. For further information, see <http://gcc.gnu.org/faq.html#support>.
  45689. 
  45690. File: gcc.info, Node: Contributing, Next: Funding, Prev: Service, Up: Top
  45691. 16 Contributing to GCC Development
  45692. **********************************
  45693. If you would like to help pretest GCC releases to assure they work well,
  45694. current development sources are available by SVN (see
  45695. <http://gcc.gnu.org/svn.html>). Source and binary snapshots are also
  45696. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  45697. If you would like to work on improvements to GCC, please read the
  45698. advice at these URLs:
  45699. <http://gcc.gnu.org/contribute.html>
  45700. <http://gcc.gnu.org/contributewhy.html>
  45701. for information on how to make useful contributions and avoid
  45702. duplication of effort. Suggested projects are listed at
  45703. <http://gcc.gnu.org/projects/>.
  45704. 
  45705. File: gcc.info, Node: Funding, Next: GNU Project, Prev: Contributing, Up: Top
  45706. Funding Free Software
  45707. *********************
  45708. If you want to have more free software a few years from now, it makes
  45709. sense for you to help encourage people to contribute funds for its
  45710. development. The most effective approach known is to encourage
  45711. commercial redistributors to donate.
  45712. Users of free software systems can boost the pace of development by
  45713. encouraging for-a-fee distributors to donate part of their selling price
  45714. to free software developers--the Free Software Foundation, and others.
  45715. The way to convince distributors to do this is to demand it and expect
  45716. it from them. So when you compare distributors, judge them partly by
  45717. how much they give to free software development. Show distributors they
  45718. must compete to be the one who gives the most.
  45719. To make this approach work, you must insist on numbers that you can
  45720. compare, such as, "We will donate ten dollars to the Frobnitz project
  45721. for each disk sold." Don't be satisfied with a vague promise, such as
  45722. "A portion of the profits are donated," since it doesn't give a basis
  45723. for comparison.
  45724. Even a precise fraction "of the profits from this disk" is not very
  45725. meaningful, since creative accounting and unrelated business decisions
  45726. can greatly alter what fraction of the sales price counts as profit. If
  45727. the price you pay is $50, ten percent of the profit is probably less
  45728. than a dollar; it might be a few cents, or nothing at all.
  45729. Some redistributors do development work themselves. This is useful
  45730. too; but to keep everyone honest, you need to inquire how much they do,
  45731. and what kind. Some kinds of development make much more long-term
  45732. difference than others. For example, maintaining a separate version of
  45733. a program contributes very little; maintaining the standard version of a
  45734. program for the whole community contributes much. Easy new ports
  45735. contribute little, since someone else would surely do them; difficult
  45736. ports such as adding a new CPU to the GNU Compiler Collection contribute
  45737. more; major new features or packages contribute the most.
  45738. By establishing the idea that supporting further development is "the
  45739. proper thing to do" when distributing free software for a fee, we can
  45740. assure a steady flow of resources into making more free software.
  45741. Copyright (C) 1994 Free Software Foundation, Inc.
  45742. Verbatim copying and redistribution of this section is permitted
  45743. without royalty; alteration is not permitted.
  45744. 
  45745. File: gcc.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  45746. The GNU Project and GNU/Linux
  45747. *****************************
  45748. The GNU Project was launched in 1984 to develop a complete Unix-like
  45749. operating system which is free software: the GNU system. (GNU is a
  45750. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  45751. Variants of the GNU operating system, which use the kernel Linux, are
  45752. now widely used; though these systems are often referred to as "Linux",
  45753. they are more accurately called GNU/Linux systems.
  45754. For more information, see:
  45755. <http://www.gnu.org/>
  45756. <http://www.gnu.org/gnu/linux-and-gnu.html>
  45757. 
  45758. File: gcc.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  45759. GNU General Public License
  45760. **************************
  45761. Version 3, 29 June 2007
  45762. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  45763. Everyone is permitted to copy and distribute verbatim copies of this
  45764. license document, but changing it is not allowed.
  45765. Preamble
  45766. ========
  45767. The GNU General Public License is a free, copyleft license for software
  45768. and other kinds of works.
  45769. The licenses for most software and other practical works are designed
  45770. to take away your freedom to share and change the works. By contrast,
  45771. the GNU General Public License is intended to guarantee your freedom to
  45772. share and change all versions of a program-to make sure it remains free
  45773. software for all its users. We, the Free Software Foundation, use the
  45774. GNU General Public License for most of our software; it applies also to
  45775. any other work released this way by its authors. You can apply it to
  45776. your programs, too.
  45777. When we speak of free software, we are referring to freedom, not price.
  45778. Our General Public Licenses are designed to make sure that you have the
  45779. freedom to distribute copies of free software (and charge for them if
  45780. you wish), that you receive source code or can get it if you want it,
  45781. that you can change the software or use pieces of it in new free
  45782. programs, and that you know you can do these things.
  45783. To protect your rights, we need to prevent others from denying you
  45784. these rights or asking you to surrender the rights. Therefore, you have
  45785. certain responsibilities if you distribute copies of the software, or if
  45786. you modify it: responsibilities to respect the freedom of others.
  45787. For example, if you distribute copies of such a program, whether gratis
  45788. or for a fee, you must pass on to the recipients the same freedoms that
  45789. you received. You must make sure that they, too, receive or can get the
  45790. source code. And you must show them these terms so they know their
  45791. rights.
  45792. Developers that use the GNU GPL protect your rights with two steps: (1)
  45793. assert copyright on the software, and (2) offer you this License giving
  45794. you legal permission to copy, distribute and/or modify it.
  45795. For the developers' and authors' protection, the GPL clearly explains
  45796. that there is no warranty for this free software. For both users' and
  45797. authors' sake, the GPL requires that modified versions be marked as
  45798. changed, so that their problems will not be attributed erroneously to
  45799. authors of previous versions.
  45800. Some devices are designed to deny users access to install or run
  45801. modified versions of the software inside them, although the manufacturer
  45802. can do so. This is fundamentally incompatible with the aim of
  45803. protecting users' freedom to change the software. The systematic
  45804. pattern of such abuse occurs in the area of products for individuals to
  45805. use, which is precisely where it is most unacceptable. Therefore, we
  45806. have designed this version of the GPL to prohibit the practice for those
  45807. products. If such problems arise substantially in other domains, we
  45808. stand ready to extend this provision to those domains in future versions
  45809. of the GPL, as needed to protect the freedom of users.
  45810. Finally, every program is threatened constantly by software patents.
  45811. States should not allow patents to restrict development and use of
  45812. software on general-purpose computers, but in those that do, we wish to
  45813. avoid the special danger that patents applied to a free program could
  45814. make it effectively proprietary. To prevent this, the GPL assures that
  45815. patents cannot be used to render the program non-free.
  45816. The precise terms and conditions for copying, distribution and
  45817. modification follow.
  45818. TERMS AND CONDITIONS
  45819. ====================
  45820. 0. Definitions.
  45821. "This License" refers to version 3 of the GNU General Public
  45822. License.
  45823. "Copyright" also means copyright-like laws that apply to other
  45824. kinds of works, such as semiconductor masks.
  45825. "The Program" refers to any copyrightable work licensed under this
  45826. License. Each licensee is addressed as "you". "Licensees" and
  45827. "recipients" may be individuals or organizations.
  45828. To "modify" a work means to copy from or adapt all or part of the
  45829. work in a fashion requiring copyright permission, other than the
  45830. making of an exact copy. The resulting work is called a "modified
  45831. version" of the earlier work or a work "based on" the earlier work.
  45832. A "covered work" means either the unmodified Program or a work
  45833. based on the Program.
  45834. To "propagate" a work means to do anything with it that, without
  45835. permission, would make you directly or secondarily liable for
  45836. infringement under applicable copyright law, except executing it on
  45837. a computer or modifying a private copy. Propagation includes
  45838. copying, distribution (with or without modification), making
  45839. available to the public, and in some countries other activities as
  45840. well.
  45841. To "convey" a work means any kind of propagation that enables other
  45842. parties to make or receive copies. Mere interaction with a user
  45843. through a computer network, with no transfer of a copy, is not
  45844. conveying.
  45845. An interactive user interface displays "Appropriate Legal Notices"
  45846. to the extent that it includes a convenient and prominently visible
  45847. feature that (1) displays an appropriate copyright notice, and (2)
  45848. tells the user that there is no warranty for the work (except to
  45849. the extent that warranties are provided), that licensees may convey
  45850. the work under this License, and how to view a copy of this
  45851. License. If the interface presents a list of user commands or
  45852. options, such as a menu, a prominent item in the list meets this
  45853. criterion.
  45854. 1. Source Code.
  45855. The "source code" for a work means the preferred form of the work
  45856. for making modifications to it. "Object code" means any non-source
  45857. form of a work.
  45858. A "Standard Interface" means an interface that either is an
  45859. official standard defined by a recognized standards body, or, in
  45860. the case of interfaces specified for a particular programming
  45861. language, one that is widely used among developers working in that
  45862. language.
  45863. The "System Libraries" of an executable work include anything,
  45864. other than the work as a whole, that (a) is included in the normal
  45865. form of packaging a Major Component, but which is not part of that
  45866. Major Component, and (b) serves only to enable use of the work with
  45867. that Major Component, or to implement a Standard Interface for
  45868. which an implementation is available to the public in source code
  45869. form. A "Major Component", in this context, means a major
  45870. essential component (kernel, window system, and so on) of the
  45871. specific operating system (if any) on which the executable work
  45872. runs, or a compiler used to produce the work, or an object code
  45873. interpreter used to run it.
  45874. The "Corresponding Source" for a work in object code form means all
  45875. the source code needed to generate, install, and (for an executable
  45876. work) run the object code and to modify the work, including scripts
  45877. to control those activities. However, it does not include the
  45878. work's System Libraries, or general-purpose tools or generally
  45879. available free programs which are used unmodified in performing
  45880. those activities but which are not part of the work. For example,
  45881. Corresponding Source includes interface definition files associated
  45882. with source files for the work, and the source code for shared
  45883. libraries and dynamically linked subprograms that the work is
  45884. specifically designed to require, such as by intimate data
  45885. communication or control flow between those subprograms and other
  45886. parts of the work.
  45887. The Corresponding Source need not include anything that users can
  45888. regenerate automatically from other parts of the Corresponding
  45889. Source.
  45890. The Corresponding Source for a work in source code form is that
  45891. same work.
  45892. 2. Basic Permissions.
  45893. All rights granted under this License are granted for the term of
  45894. copyright on the Program, and are irrevocable provided the stated
  45895. conditions are met. This License explicitly affirms your unlimited
  45896. permission to run the unmodified Program. The output from running
  45897. a covered work is covered by this License only if the output, given
  45898. its content, constitutes a covered work. This License acknowledges
  45899. your rights of fair use or other equivalent, as provided by
  45900. copyright law.
  45901. You may make, run and propagate covered works that you do not
  45902. convey, without conditions so long as your license otherwise
  45903. remains in force. You may convey covered works to others for the
  45904. sole purpose of having them make modifications exclusively for you,
  45905. or provide you with facilities for running those works, provided
  45906. that you comply with the terms of this License in conveying all
  45907. material for which you do not control copyright. Those thus making
  45908. or running the covered works for you must do so exclusively on your
  45909. behalf, under your direction and control, on terms that prohibit
  45910. them from making any copies of your copyrighted material outside
  45911. their relationship with you.
  45912. Conveying under any other circumstances is permitted solely under
  45913. the conditions stated below. Sublicensing is not allowed; section
  45914. 10 makes it unnecessary.
  45915. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  45916. No covered work shall be deemed part of an effective technological
  45917. measure under any applicable law fulfilling obligations under
  45918. article 11 of the WIPO copyright treaty adopted on 20 December
  45919. 1996, or similar laws prohibiting or restricting circumvention of
  45920. such measures.
  45921. When you convey a covered work, you waive any legal power to forbid
  45922. circumvention of technological measures to the extent such
  45923. circumvention is effected by exercising rights under this License
  45924. with respect to the covered work, and you disclaim any intention to
  45925. limit operation or modification of the work as a means of
  45926. enforcing, against the work's users, your or third parties' legal
  45927. rights to forbid circumvention of technological measures.
  45928. 4. Conveying Verbatim Copies.
  45929. You may convey verbatim copies of the Program's source code as you
  45930. receive it, in any medium, provided that you conspicuously and
  45931. appropriately publish on each copy an appropriate copyright notice;
  45932. keep intact all notices stating that this License and any
  45933. non-permissive terms added in accord with section 7 apply to the
  45934. code; keep intact all notices of the absence of any warranty; and
  45935. give all recipients a copy of this License along with the Program.
  45936. You may charge any price or no price for each copy that you convey,
  45937. and you may offer support or warranty protection for a fee.
  45938. 5. Conveying Modified Source Versions.
  45939. You may convey a work based on the Program, or the modifications to
  45940. produce it from the Program, in the form of source code under the
  45941. terms of section 4, provided that you also meet all of these
  45942. conditions:
  45943. a. The work must carry prominent notices stating that you
  45944. modified it, and giving a relevant date.
  45945. b. The work must carry prominent notices stating that it is
  45946. released under this License and any conditions added under
  45947. section 7. This requirement modifies the requirement in
  45948. section 4 to "keep intact all notices".
  45949. c. You must license the entire work, as a whole, under this
  45950. License to anyone who comes into possession of a copy. This
  45951. License will therefore apply, along with any applicable
  45952. section 7 additional terms, to the whole of the work, and all
  45953. its parts, regardless of how they are packaged. This License
  45954. gives no permission to license the work in any other way, but
  45955. it does not invalidate such permission if you have separately
  45956. received it.
  45957. d. If the work has interactive user interfaces, each must display
  45958. Appropriate Legal Notices; however, if the Program has
  45959. interactive interfaces that do not display Appropriate Legal
  45960. Notices, your work need not make them do so.
  45961. A compilation of a covered work with other separate and independent
  45962. works, which are not by their nature extensions of the covered
  45963. work, and which are not combined with it such as to form a larger
  45964. program, in or on a volume of a storage or distribution medium, is
  45965. called an "aggregate" if the compilation and its resulting
  45966. copyright are not used to limit the access or legal rights of the
  45967. compilation's users beyond what the individual works permit.
  45968. Inclusion of a covered work in an aggregate does not cause this
  45969. License to apply to the other parts of the aggregate.
  45970. 6. Conveying Non-Source Forms.
  45971. You may convey a covered work in object code form under the terms
  45972. of sections 4 and 5, provided that you also convey the
  45973. machine-readable Corresponding Source under the terms of this
  45974. License, in one of these ways:
  45975. a. Convey the object code in, or embodied in, a physical product
  45976. (including a physical distribution medium), accompanied by the
  45977. Corresponding Source fixed on a durable physical medium
  45978. customarily used for software interchange.
  45979. b. Convey the object code in, or embodied in, a physical product
  45980. (including a physical distribution medium), accompanied by a
  45981. written offer, valid for at least three years and valid for as
  45982. long as you offer spare parts or customer support for that
  45983. product model, to give anyone who possesses the object code
  45984. either (1) a copy of the Corresponding Source for all the
  45985. software in the product that is covered by this License, on a
  45986. durable physical medium customarily used for software
  45987. interchange, for a price no more than your reasonable cost of
  45988. physically performing this conveying of source, or (2) access
  45989. to copy the Corresponding Source from a network server at no
  45990. charge.
  45991. c. Convey individual copies of the object code with a copy of the
  45992. written offer to provide the Corresponding Source. This
  45993. alternative is allowed only occasionally and noncommercially,
  45994. and only if you received the object code with such an offer,
  45995. in accord with subsection 6b.
  45996. d. Convey the object code by offering access from a designated
  45997. place (gratis or for a charge), and offer equivalent access to
  45998. the Corresponding Source in the same way through the same
  45999. place at no further charge. You need not require recipients
  46000. to copy the Corresponding Source along with the object code.
  46001. If the place to copy the object code is a network server, the
  46002. Corresponding Source may be on a different server (operated by
  46003. you or a third party) that supports equivalent copying
  46004. facilities, provided you maintain clear directions next to the
  46005. object code saying where to find the Corresponding Source.
  46006. Regardless of what server hosts the Corresponding Source, you
  46007. remain obligated to ensure that it is available for as long as
  46008. needed to satisfy these requirements.
  46009. e. Convey the object code using peer-to-peer transmission,
  46010. provided you inform other peers where the object code and
  46011. Corresponding Source of the work are being offered to the
  46012. general public at no charge under subsection 6d.
  46013. A separable portion of the object code, whose source code is
  46014. excluded from the Corresponding Source as a System Library, need
  46015. not be included in conveying the object code work.
  46016. A "User Product" is either (1) a "consumer product", which means
  46017. any tangible personal property which is normally used for personal,
  46018. family, or household purposes, or (2) anything designed or sold for
  46019. incorporation into a dwelling. In determining whether a product is
  46020. a consumer product, doubtful cases shall be resolved in favor of
  46021. coverage. For a particular product received by a particular user,
  46022. "normally used" refers to a typical or common use of that class of
  46023. product, regardless of the status of the particular user or of the
  46024. way in which the particular user actually uses, or expects or is
  46025. expected to use, the product. A product is a consumer product
  46026. regardless of whether the product has substantial commercial,
  46027. industrial or non-consumer uses, unless such uses represent the
  46028. only significant mode of use of the product.
  46029. "Installation Information" for a User Product means any methods,
  46030. procedures, authorization keys, or other information required to
  46031. install and execute modified versions of a covered work in that
  46032. User Product from a modified version of its Corresponding Source.
  46033. The information must suffice to ensure that the continued
  46034. functioning of the modified object code is in no case prevented or
  46035. interfered with solely because modification has been made.
  46036. If you convey an object code work under this section in, or with,
  46037. or specifically for use in, a User Product, and the conveying
  46038. occurs as part of a transaction in which the right of possession
  46039. and use of the User Product is transferred to the recipient in
  46040. perpetuity or for a fixed term (regardless of how the transaction
  46041. is characterized), the Corresponding Source conveyed under this
  46042. section must be accompanied by the Installation Information. But
  46043. this requirement does not apply if neither you nor any third party
  46044. retains the ability to install modified object code on the User
  46045. Product (for example, the work has been installed in ROM).
  46046. The requirement to provide Installation Information does not
  46047. include a requirement to continue to provide support service,
  46048. warranty, or updates for a work that has been modified or installed
  46049. by the recipient, or for the User Product in which it has been
  46050. modified or installed. Access to a network may be denied when the
  46051. modification itself materially and adversely affects the operation
  46052. of the network or violates the rules and protocols for
  46053. communication across the network.
  46054. Corresponding Source conveyed, and Installation Information
  46055. provided, in accord with this section must be in a format that is
  46056. publicly documented (and with an implementation available to the
  46057. public in source code form), and must require no special password
  46058. or key for unpacking, reading or copying.
  46059. 7. Additional Terms.
  46060. "Additional permissions" are terms that supplement the terms of
  46061. this License by making exceptions from one or more of its
  46062. conditions. Additional permissions that are applicable to the
  46063. entire Program shall be treated as though they were included in
  46064. this License, to the extent that they are valid under applicable
  46065. law. If additional permissions apply only to part of the Program,
  46066. that part may be used separately under those permissions, but the
  46067. entire Program remains governed by this License without regard to
  46068. the additional permissions.
  46069. When you convey a copy of a covered work, you may at your option
  46070. remove any additional permissions from that copy, or from any part
  46071. of it. (Additional permissions may be written to require their own
  46072. removal in certain cases when you modify the work.) You may place
  46073. additional permissions on material, added by you to a covered work,
  46074. for which you have or can give appropriate copyright permission.
  46075. Notwithstanding any other provision of this License, for material
  46076. you add to a covered work, you may (if authorized by the copyright
  46077. holders of that material) supplement the terms of this License with
  46078. terms:
  46079. a. Disclaiming warranty or limiting liability differently from
  46080. the terms of sections 15 and 16 of this License; or
  46081. b. Requiring preservation of specified reasonable legal notices
  46082. or author attributions in that material or in the Appropriate
  46083. Legal Notices displayed by works containing it; or
  46084. c. Prohibiting misrepresentation of the origin of that material,
  46085. or requiring that modified versions of such material be marked
  46086. in reasonable ways as different from the original version; or
  46087. d. Limiting the use for publicity purposes of names of licensors
  46088. or authors of the material; or
  46089. e. Declining to grant rights under trademark law for use of some
  46090. trade names, trademarks, or service marks; or
  46091. f. Requiring indemnification of licensors and authors of that
  46092. material by anyone who conveys the material (or modified
  46093. versions of it) with contractual assumptions of liability to
  46094. the recipient, for any liability that these contractual
  46095. assumptions directly impose on those licensors and authors.
  46096. All other non-permissive additional terms are considered "further
  46097. restrictions" within the meaning of section 10. If the Program as
  46098. you received it, or any part of it, contains a notice stating that
  46099. it is governed by this License along with a term that is a further
  46100. restriction, you may remove that term. If a license document
  46101. contains a further restriction but permits relicensing or conveying
  46102. under this License, you may add to a covered work material governed
  46103. by the terms of that license document, provided that the further
  46104. restriction does not survive such relicensing or conveying.
  46105. If you add terms to a covered work in accord with this section, you
  46106. must place, in the relevant source files, a statement of the
  46107. additional terms that apply to those files, or a notice indicating
  46108. where to find the applicable terms.
  46109. Additional terms, permissive or non-permissive, may be stated in
  46110. the form of a separately written license, or stated as exceptions;
  46111. the above requirements apply either way.
  46112. 8. Termination.
  46113. You may not propagate or modify a covered work except as expressly
  46114. provided under this License. Any attempt otherwise to propagate or
  46115. modify it is void, and will automatically terminate your rights
  46116. under this License (including any patent licenses granted under the
  46117. third paragraph of section 11).
  46118. However, if you cease all violation of this License, then your
  46119. license from a particular copyright holder is reinstated (a)
  46120. provisionally, unless and until the copyright holder explicitly and
  46121. finally terminates your license, and (b) permanently, if the
  46122. copyright holder fails to notify you of the violation by some
  46123. reasonable means prior to 60 days after the cessation.
  46124. Moreover, your license from a particular copyright holder is
  46125. reinstated permanently if the copyright holder notifies you of the
  46126. violation by some reasonable means, this is the first time you have
  46127. received notice of violation of this License (for any work) from
  46128. that copyright holder, and you cure the violation prior to 30 days
  46129. after your receipt of the notice.
  46130. Termination of your rights under this section does not terminate
  46131. the licenses of parties who have received copies or rights from you
  46132. under this License. If your rights have been terminated and not
  46133. permanently reinstated, you do not qualify to receive new licenses
  46134. for the same material under section 10.
  46135. 9. Acceptance Not Required for Having Copies.
  46136. You are not required to accept this License in order to receive or
  46137. run a copy of the Program. Ancillary propagation of a covered work
  46138. occurring solely as a consequence of using peer-to-peer
  46139. transmission to receive a copy likewise does not require
  46140. acceptance. However, nothing other than this License grants you
  46141. permission to propagate or modify any covered work. These actions
  46142. infringe copyright if you do not accept this License. Therefore,
  46143. by modifying or propagating a covered work, you indicate your
  46144. acceptance of this License to do so.
  46145. 10. Automatic Licensing of Downstream Recipients.
  46146. Each time you convey a covered work, the recipient automatically
  46147. receives a license from the original licensors, to run, modify and
  46148. propagate that work, subject to this License. You are not
  46149. responsible for enforcing compliance by third parties with this
  46150. License.
  46151. An "entity transaction" is a transaction transferring control of an
  46152. organization, or substantially all assets of one, or subdividing an
  46153. organization, or merging organizations. If propagation of a
  46154. covered work results from an entity transaction, each party to that
  46155. transaction who receives a copy of the work also receives whatever
  46156. licenses to the work the party's predecessor in interest had or
  46157. could give under the previous paragraph, plus a right to possession
  46158. of the Corresponding Source of the work from the predecessor in
  46159. interest, if the predecessor has it or can get it with reasonable
  46160. efforts.
  46161. You may not impose any further restrictions on the exercise of the
  46162. rights granted or affirmed under this License. For example, you
  46163. may not impose a license fee, royalty, or other charge for exercise
  46164. of rights granted under this License, and you may not initiate
  46165. litigation (including a cross-claim or counterclaim in a lawsuit)
  46166. alleging that any patent claim is infringed by making, using,
  46167. selling, offering for sale, or importing the Program or any portion
  46168. of it.
  46169. 11. Patents.
  46170. A "contributor" is a copyright holder who authorizes use under this
  46171. License of the Program or a work on which the Program is based.
  46172. The work thus licensed is called the contributor's "contributor
  46173. version".
  46174. A contributor's "essential patent claims" are all patent claims
  46175. owned or controlled by the contributor, whether already acquired or
  46176. hereafter acquired, that would be infringed by some manner,
  46177. permitted by this License, of making, using, or selling its
  46178. contributor version, but do not include claims that would be
  46179. infringed only as a consequence of further modification of the
  46180. contributor version. For purposes of this definition, "control"
  46181. includes the right to grant patent sublicenses in a manner
  46182. consistent with the requirements of this License.
  46183. Each contributor grants you a non-exclusive, worldwide,
  46184. royalty-free patent license under the contributor's essential
  46185. patent claims, to make, use, sell, offer for sale, import and
  46186. otherwise run, modify and propagate the contents of its contributor
  46187. version.
  46188. In the following three paragraphs, a "patent license" is any
  46189. express agreement or commitment, however denominated, not to
  46190. enforce a patent (such as an express permission to practice a
  46191. patent or covenant not to sue for patent infringement). To "grant"
  46192. such a patent license to a party means to make such an agreement or
  46193. commitment not to enforce a patent against the party.
  46194. If you convey a covered work, knowingly relying on a patent
  46195. license, and the Corresponding Source of the work is not available
  46196. for anyone to copy, free of charge and under the terms of this
  46197. License, through a publicly available network server or other
  46198. readily accessible means, then you must either (1) cause the
  46199. Corresponding Source to be so available, or (2) arrange to deprive
  46200. yourself of the benefit of the patent license for this particular
  46201. work, or (3) arrange, in a manner consistent with the requirements
  46202. of this License, to extend the patent license to downstream
  46203. recipients. "Knowingly relying" means you have actual knowledge
  46204. that, but for the patent license, your conveying the covered work
  46205. in a country, or your recipient's use of the covered work in a
  46206. country, would infringe one or more identifiable patents in that
  46207. country that you have reason to believe are valid.
  46208. If, pursuant to or in connection with a single transaction or
  46209. arrangement, you convey, or propagate by procuring conveyance of, a
  46210. covered work, and grant a patent license to some of the parties
  46211. receiving the covered work authorizing them to use, propagate,
  46212. modify or convey a specific copy of the covered work, then the
  46213. patent license you grant is automatically extended to all
  46214. recipients of the covered work and works based on it.
  46215. A patent license is "discriminatory" if it does not include within
  46216. the scope of its coverage, prohibits the exercise of, or is
  46217. conditioned on the non-exercise of one or more of the rights that
  46218. are specifically granted under this License. You may not convey a
  46219. covered work if you are a party to an arrangement with a third
  46220. party that is in the business of distributing software, under which
  46221. you make payment to the third party based on the extent of your
  46222. activity of conveying the work, and under which the third party
  46223. grants, to any of the parties who would receive the covered work
  46224. from you, a discriminatory patent license (a) in connection with
  46225. copies of the covered work conveyed by you (or copies made from
  46226. those copies), or (b) primarily for and in connection with specific
  46227. products or compilations that contain the covered work, unless you
  46228. entered into that arrangement, or that patent license was granted,
  46229. prior to 28 March 2007.
  46230. Nothing in this License shall be construed as excluding or limiting
  46231. any implied license or other defenses to infringement that may
  46232. otherwise be available to you under applicable patent law.
  46233. 12. No Surrender of Others' Freedom.
  46234. If conditions are imposed on you (whether by court order, agreement
  46235. or otherwise) that contradict the conditions of this License, they
  46236. do not excuse you from the conditions of this License. If you
  46237. cannot convey a covered work so as to satisfy simultaneously your
  46238. obligations under this License and any other pertinent obligations,
  46239. then as a consequence you may not convey it at all. For example,
  46240. if you agree to terms that obligate you to collect a royalty for
  46241. further conveying from those to whom you convey the Program, the
  46242. only way you could satisfy both those terms and this License would
  46243. be to refrain entirely from conveying the Program.
  46244. 13. Use with the GNU Affero General Public License.
  46245. Notwithstanding any other provision of this License, you have
  46246. permission to link or combine any covered work with a work licensed
  46247. under version 3 of the GNU Affero General Public License into a
  46248. single combined work, and to convey the resulting work. The terms
  46249. of this License will continue to apply to the part which is the
  46250. covered work, but the special requirements of the GNU Affero
  46251. General Public License, section 13, concerning interaction through
  46252. a network will apply to the combination as such.
  46253. 14. Revised Versions of this License.
  46254. The Free Software Foundation may publish revised and/or new
  46255. versions of the GNU General Public License from time to time. Such
  46256. new versions will be similar in spirit to the present version, but
  46257. may differ in detail to address new problems or concerns.
  46258. Each version is given a distinguishing version number. If the
  46259. Program specifies that a certain numbered version of the GNU
  46260. General Public License "or any later version" applies to it, you
  46261. have the option of following the terms and conditions either of
  46262. that numbered version or of any later version published by the Free
  46263. Software Foundation. If the Program does not specify a version
  46264. number of the GNU General Public License, you may choose any
  46265. version ever published by the Free Software Foundation.
  46266. If the Program specifies that a proxy can decide which future
  46267. versions of the GNU General Public License can be used, that
  46268. proxy's public statement of acceptance of a version permanently
  46269. authorizes you to choose that version for the Program.
  46270. Later license versions may give you additional or different
  46271. permissions. However, no additional obligations are imposed on any
  46272. author or copyright holder as a result of your choosing to follow a
  46273. later version.
  46274. 15. Disclaimer of Warranty.
  46275. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  46276. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  46277. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  46278. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  46279. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  46280. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  46281. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  46282. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  46283. NECESSARY SERVICING, REPAIR OR CORRECTION.
  46284. 16. Limitation of Liability.
  46285. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  46286. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  46287. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  46288. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  46289. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  46290. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  46291. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  46292. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  46293. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  46294. THE POSSIBILITY OF SUCH DAMAGES.
  46295. 17. Interpretation of Sections 15 and 16.
  46296. If the disclaimer of warranty and limitation of liability provided
  46297. above cannot be given local legal effect according to their terms,
  46298. reviewing courts shall apply local law that most closely
  46299. approximates an absolute waiver of all civil liability in
  46300. connection with the Program, unless a warranty or assumption of
  46301. liability accompanies a copy of the Program in return for a fee.
  46302. END OF TERMS AND CONDITIONS
  46303. ===========================
  46304. How to Apply These Terms to Your New Programs
  46305. =============================================
  46306. If you develop a new program, and you want it to be of the greatest
  46307. possible use to the public, the best way to achieve this is to make it
  46308. free software which everyone can redistribute and change under these
  46309. terms.
  46310. To do so, attach the following notices to the program. It is safest to
  46311. attach them to the start of each source file to most effectively state
  46312. the exclusion of warranty; and each file should have at least the
  46313. "copyright" line and a pointer to where the full notice is found.
  46314. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  46315. Copyright (C) YEAR NAME OF AUTHOR
  46316. This program is free software: you can redistribute it and/or modify
  46317. it under the terms of the GNU General Public License as published by
  46318. the Free Software Foundation, either version 3 of the License, or (at
  46319. your option) any later version.
  46320. This program is distributed in the hope that it will be useful, but
  46321. WITHOUT ANY WARRANTY; without even the implied warranty of
  46322. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  46323. General Public License for more details.
  46324. You should have received a copy of the GNU General Public License
  46325. along with this program. If not, see <http://www.gnu.org/licenses/>.
  46326. Also add information on how to contact you by electronic and paper
  46327. mail.
  46328. If the program does terminal interaction, make it output a short notice
  46329. like this when it starts in an interactive mode:
  46330. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  46331. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  46332. This is free software, and you are welcome to redistribute it
  46333. under certain conditions; type 'show c' for details.
  46334. The hypothetical commands 'show w' and 'show c' should show the
  46335. appropriate parts of the General Public License. Of course, your
  46336. program's commands might be different; for a GUI interface, you would
  46337. use an "about box".
  46338. You should also get your employer (if you work as a programmer) or
  46339. school, if any, to sign a "copyright disclaimer" for the program, if
  46340. necessary. For more information on this, and how to apply and follow
  46341. the GNU GPL, see <http://www.gnu.org/licenses/>.
  46342. The GNU General Public License does not permit incorporating your
  46343. program into proprietary programs. If your program is a subroutine
  46344. library, you may consider it more useful to permit linking proprietary
  46345. applications with the library. If this is what you want to do, use the
  46346. GNU Lesser General Public License instead of this License. But first,
  46347. please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
  46348. 
  46349. File: gcc.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  46350. GNU Free Documentation License
  46351. ******************************
  46352. Version 1.3, 3 November 2008
  46353. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  46354. <http://fsf.org/>
  46355. Everyone is permitted to copy and distribute verbatim copies
  46356. of this license document, but changing it is not allowed.
  46357. 0. PREAMBLE
  46358. The purpose of this License is to make a manual, textbook, or other
  46359. functional and useful document "free" in the sense of freedom: to
  46360. assure everyone the effective freedom to copy and redistribute it,
  46361. with or without modifying it, either commercially or
  46362. noncommercially. Secondarily, this License preserves for the
  46363. author and publisher a way to get credit for their work, while not
  46364. being considered responsible for modifications made by others.
  46365. This License is a kind of "copyleft", which means that derivative
  46366. works of the document must themselves be free in the same sense.
  46367. It complements the GNU General Public License, which is a copyleft
  46368. license designed for free software.
  46369. We have designed this License in order to use it for manuals for
  46370. free software, because free software needs free documentation: a
  46371. free program should come with manuals providing the same freedoms
  46372. that the software does. But this License is not limited to
  46373. software manuals; it can be used for any textual work, regardless
  46374. of subject matter or whether it is published as a printed book. We
  46375. recommend this License principally for works whose purpose is
  46376. instruction or reference.
  46377. 1. APPLICABILITY AND DEFINITIONS
  46378. This License applies to any manual or other work, in any medium,
  46379. that contains a notice placed by the copyright holder saying it can
  46380. be distributed under the terms of this License. Such a notice
  46381. grants a world-wide, royalty-free license, unlimited in duration,
  46382. to use that work under the conditions stated herein. The
  46383. "Document", below, refers to any such manual or work. Any member
  46384. of the public is a licensee, and is addressed as "you". You accept
  46385. the license if you copy, modify or distribute the work in a way
  46386. requiring permission under copyright law.
  46387. A "Modified Version" of the Document means any work containing the
  46388. Document or a portion of it, either copied verbatim, or with
  46389. modifications and/or translated into another language.
  46390. A "Secondary Section" is a named appendix or a front-matter section
  46391. of the Document that deals exclusively with the relationship of the
  46392. publishers or authors of the Document to the Document's overall
  46393. subject (or to related matters) and contains nothing that could
  46394. fall directly within that overall subject. (Thus, if the Document
  46395. is in part a textbook of mathematics, a Secondary Section may not
  46396. explain any mathematics.) The relationship could be a matter of
  46397. historical connection with the subject or with related matters, or
  46398. of legal, commercial, philosophical, ethical or political position
  46399. regarding them.
  46400. The "Invariant Sections" are certain Secondary Sections whose
  46401. titles are designated, as being those of Invariant Sections, in the
  46402. notice that says that the Document is released under this License.
  46403. If a section does not fit the above definition of Secondary then it
  46404. is not allowed to be designated as Invariant. The Document may
  46405. contain zero Invariant Sections. If the Document does not identify
  46406. any Invariant Sections then there are none.
  46407. The "Cover Texts" are certain short passages of text that are
  46408. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  46409. that says that the Document is released under this License. A
  46410. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  46411. be at most 25 words.
  46412. A "Transparent" copy of the Document means a machine-readable copy,
  46413. represented in a format whose specification is available to the
  46414. general public, that is suitable for revising the document
  46415. straightforwardly with generic text editors or (for images composed
  46416. of pixels) generic paint programs or (for drawings) some widely
  46417. available drawing editor, and that is suitable for input to text
  46418. formatters or for automatic translation to a variety of formats
  46419. suitable for input to text formatters. A copy made in an otherwise
  46420. Transparent file format whose markup, or absence of markup, has
  46421. been arranged to thwart or discourage subsequent modification by
  46422. readers is not Transparent. An image format is not Transparent if
  46423. used for any substantial amount of text. A copy that is not
  46424. "Transparent" is called "Opaque".
  46425. Examples of suitable formats for Transparent copies include plain
  46426. ASCII without markup, Texinfo input format, LaTeX input format,
  46427. SGML or XML using a publicly available DTD, and standard-conforming
  46428. simple HTML, PostScript or PDF designed for human modification.
  46429. Examples of transparent image formats include PNG, XCF and JPG.
  46430. Opaque formats include proprietary formats that can be read and
  46431. edited only by proprietary word processors, SGML or XML for which
  46432. the DTD and/or processing tools are not generally available, and
  46433. the machine-generated HTML, PostScript or PDF produced by some word
  46434. processors for output purposes only.
  46435. The "Title Page" means, for a printed book, the title page itself,
  46436. plus such following pages as are needed to hold, legibly, the
  46437. material this License requires to appear in the title page. For
  46438. works in formats which do not have any title page as such, "Title
  46439. Page" means the text near the most prominent appearance of the
  46440. work's title, preceding the beginning of the body of the text.
  46441. The "publisher" means any person or entity that distributes copies
  46442. of the Document to the public.
  46443. A section "Entitled XYZ" means a named subunit of the Document
  46444. whose title either is precisely XYZ or contains XYZ in parentheses
  46445. following text that translates XYZ in another language. (Here XYZ
  46446. stands for a specific section name mentioned below, such as
  46447. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  46448. To "Preserve the Title" of such a section when you modify the
  46449. Document means that it remains a section "Entitled XYZ" according
  46450. to this definition.
  46451. The Document may include Warranty Disclaimers next to the notice
  46452. which states that this License applies to the Document. These
  46453. Warranty Disclaimers are considered to be included by reference in
  46454. this License, but only as regards disclaiming warranties: any other
  46455. implication that these Warranty Disclaimers may have is void and
  46456. has no effect on the meaning of this License.
  46457. 2. VERBATIM COPYING
  46458. You may copy and distribute the Document in any medium, either
  46459. commercially or noncommercially, provided that this License, the
  46460. copyright notices, and the license notice saying this License
  46461. applies to the Document are reproduced in all copies, and that you
  46462. add no other conditions whatsoever to those of this License. You
  46463. may not use technical measures to obstruct or control the reading
  46464. or further copying of the copies you make or distribute. However,
  46465. you may accept compensation in exchange for copies. If you
  46466. distribute a large enough number of copies you must also follow the
  46467. conditions in section 3.
  46468. You may also lend copies, under the same conditions stated above,
  46469. and you may publicly display copies.
  46470. 3. COPYING IN QUANTITY
  46471. If you publish printed copies (or copies in media that commonly
  46472. have printed covers) of the Document, numbering more than 100, and
  46473. the Document's license notice requires Cover Texts, you must
  46474. enclose the copies in covers that carry, clearly and legibly, all
  46475. these Cover Texts: Front-Cover Texts on the front cover, and
  46476. Back-Cover Texts on the back cover. Both covers must also clearly
  46477. and legibly identify you as the publisher of these copies. The
  46478. front cover must present the full title with all words of the title
  46479. equally prominent and visible. You may add other material on the
  46480. covers in addition. Copying with changes limited to the covers, as
  46481. long as they preserve the title of the Document and satisfy these
  46482. conditions, can be treated as verbatim copying in other respects.
  46483. If the required texts for either cover are too voluminous to fit
  46484. legibly, you should put the first ones listed (as many as fit
  46485. reasonably) on the actual cover, and continue the rest onto
  46486. adjacent pages.
  46487. If you publish or distribute Opaque copies of the Document
  46488. numbering more than 100, you must either include a machine-readable
  46489. Transparent copy along with each Opaque copy, or state in or with
  46490. each Opaque copy a computer-network location from which the general
  46491. network-using public has access to download using public-standard
  46492. network protocols a complete Transparent copy of the Document, free
  46493. of added material. If you use the latter option, you must take
  46494. reasonably prudent steps, when you begin distribution of Opaque
  46495. copies in quantity, to ensure that this Transparent copy will
  46496. remain thus accessible at the stated location until at least one
  46497. year after the last time you distribute an Opaque copy (directly or
  46498. through your agents or retailers) of that edition to the public.
  46499. It is requested, but not required, that you contact the authors of
  46500. the Document well before redistributing any large number of copies,
  46501. to give them a chance to provide you with an updated version of the
  46502. Document.
  46503. 4. MODIFICATIONS
  46504. You may copy and distribute a Modified Version of the Document
  46505. under the conditions of sections 2 and 3 above, provided that you
  46506. release the Modified Version under precisely this License, with the
  46507. Modified Version filling the role of the Document, thus licensing
  46508. distribution and modification of the Modified Version to whoever
  46509. possesses a copy of it. In addition, you must do these things in
  46510. the Modified Version:
  46511. A. Use in the Title Page (and on the covers, if any) a title
  46512. distinct from that of the Document, and from those of previous
  46513. versions (which should, if there were any, be listed in the
  46514. History section of the Document). You may use the same title
  46515. as a previous version if the original publisher of that
  46516. version gives permission.
  46517. B. List on the Title Page, as authors, one or more persons or
  46518. entities responsible for authorship of the modifications in
  46519. the Modified Version, together with at least five of the
  46520. principal authors of the Document (all of its principal
  46521. authors, if it has fewer than five), unless they release you
  46522. from this requirement.
  46523. C. State on the Title page the name of the publisher of the
  46524. Modified Version, as the publisher.
  46525. D. Preserve all the copyright notices of the Document.
  46526. E. Add an appropriate copyright notice for your modifications
  46527. adjacent to the other copyright notices.
  46528. F. Include, immediately after the copyright notices, a license
  46529. notice giving the public permission to use the Modified
  46530. Version under the terms of this License, in the form shown in
  46531. the Addendum below.
  46532. G. Preserve in that license notice the full lists of Invariant
  46533. Sections and required Cover Texts given in the Document's
  46534. license notice.
  46535. H. Include an unaltered copy of this License.
  46536. I. Preserve the section Entitled "History", Preserve its Title,
  46537. and add to it an item stating at least the title, year, new
  46538. authors, and publisher of the Modified Version as given on the
  46539. Title Page. If there is no section Entitled "History" in the
  46540. Document, create one stating the title, year, authors, and
  46541. publisher of the Document as given on its Title Page, then add
  46542. an item describing the Modified Version as stated in the
  46543. previous sentence.
  46544. J. Preserve the network location, if any, given in the Document
  46545. for public access to a Transparent copy of the Document, and
  46546. likewise the network locations given in the Document for
  46547. previous versions it was based on. These may be placed in the
  46548. "History" section. You may omit a network location for a work
  46549. that was published at least four years before the Document
  46550. itself, or if the original publisher of the version it refers
  46551. to gives permission.
  46552. K. For any section Entitled "Acknowledgements" or "Dedications",
  46553. Preserve the Title of the section, and preserve in the section
  46554. all the substance and tone of each of the contributor
  46555. acknowledgements and/or dedications given therein.
  46556. L. Preserve all the Invariant Sections of the Document, unaltered
  46557. in their text and in their titles. Section numbers or the
  46558. equivalent are not considered part of the section titles.
  46559. M. Delete any section Entitled "Endorsements". Such a section
  46560. may not be included in the Modified Version.
  46561. N. Do not retitle any existing section to be Entitled
  46562. "Endorsements" or to conflict in title with any Invariant
  46563. Section.
  46564. O. Preserve any Warranty Disclaimers.
  46565. If the Modified Version includes new front-matter sections or
  46566. appendices that qualify as Secondary Sections and contain no
  46567. material copied from the Document, you may at your option designate
  46568. some or all of these sections as invariant. To do this, add their
  46569. titles to the list of Invariant Sections in the Modified Version's
  46570. license notice. These titles must be distinct from any other
  46571. section titles.
  46572. You may add a section Entitled "Endorsements", provided it contains
  46573. nothing but endorsements of your Modified Version by various
  46574. parties--for example, statements of peer review or that the text
  46575. has been approved by an organization as the authoritative
  46576. definition of a standard.
  46577. You may add a passage of up to five words as a Front-Cover Text,
  46578. and a passage of up to 25 words as a Back-Cover Text, to the end of
  46579. the list of Cover Texts in the Modified Version. Only one passage
  46580. of Front-Cover Text and one of Back-Cover Text may be added by (or
  46581. through arrangements made by) any one entity. If the Document
  46582. already includes a cover text for the same cover, previously added
  46583. by you or by arrangement made by the same entity you are acting on
  46584. behalf of, you may not add another; but you may replace the old
  46585. one, on explicit permission from the previous publisher that added
  46586. the old one.
  46587. The author(s) and publisher(s) of the Document do not by this
  46588. License give permission to use their names for publicity for or to
  46589. assert or imply endorsement of any Modified Version.
  46590. 5. COMBINING DOCUMENTS
  46591. You may combine the Document with other documents released under
  46592. this License, under the terms defined in section 4 above for
  46593. modified versions, provided that you include in the combination all
  46594. of the Invariant Sections of all of the original documents,
  46595. unmodified, and list them all as Invariant Sections of your
  46596. combined work in its license notice, and that you preserve all
  46597. their Warranty Disclaimers.
  46598. The combined work need only contain one copy of this License, and
  46599. multiple identical Invariant Sections may be replaced with a single
  46600. copy. If there are multiple Invariant Sections with the same name
  46601. but different contents, make the title of each such section unique
  46602. by adding at the end of it, in parentheses, the name of the
  46603. original author or publisher of that section if known, or else a
  46604. unique number. Make the same adjustment to the section titles in
  46605. the list of Invariant Sections in the license notice of the
  46606. combined work.
  46607. In the combination, you must combine any sections Entitled
  46608. "History" in the various original documents, forming one section
  46609. Entitled "History"; likewise combine any sections Entitled
  46610. "Acknowledgements", and any sections Entitled "Dedications". You
  46611. must delete all sections Entitled "Endorsements."
  46612. 6. COLLECTIONS OF DOCUMENTS
  46613. You may make a collection consisting of the Document and other
  46614. documents released under this License, and replace the individual
  46615. copies of this License in the various documents with a single copy
  46616. that is included in the collection, provided that you follow the
  46617. rules of this License for verbatim copying of each of the documents
  46618. in all other respects.
  46619. You may extract a single document from such a collection, and
  46620. distribute it individually under this License, provided you insert
  46621. a copy of this License into the extracted document, and follow this
  46622. License in all other respects regarding verbatim copying of that
  46623. document.
  46624. 7. AGGREGATION WITH INDEPENDENT WORKS
  46625. A compilation of the Document or its derivatives with other
  46626. separate and independent documents or works, in or on a volume of a
  46627. storage or distribution medium, is called an "aggregate" if the
  46628. copyright resulting from the compilation is not used to limit the
  46629. legal rights of the compilation's users beyond what the individual
  46630. works permit. When the Document is included in an aggregate, this
  46631. License does not apply to the other works in the aggregate which
  46632. are not themselves derivative works of the Document.
  46633. If the Cover Text requirement of section 3 is applicable to these
  46634. copies of the Document, then if the Document is less than one half
  46635. of the entire aggregate, the Document's Cover Texts may be placed
  46636. on covers that bracket the Document within the aggregate, or the
  46637. electronic equivalent of covers if the Document is in electronic
  46638. form. Otherwise they must appear on printed covers that bracket
  46639. the whole aggregate.
  46640. 8. TRANSLATION
  46641. Translation is considered a kind of modification, so you may
  46642. distribute translations of the Document under the terms of section
  46643. 4. Replacing Invariant Sections with translations requires special
  46644. permission from their copyright holders, but you may include
  46645. translations of some or all Invariant Sections in addition to the
  46646. original versions of these Invariant Sections. You may include a
  46647. translation of this License, and all the license notices in the
  46648. Document, and any Warranty Disclaimers, provided that you also
  46649. include the original English version of this License and the
  46650. original versions of those notices and disclaimers. In case of a
  46651. disagreement between the translation and the original version of
  46652. this License or a notice or disclaimer, the original version will
  46653. prevail.
  46654. If a section in the Document is Entitled "Acknowledgements",
  46655. "Dedications", or "History", the requirement (section 4) to
  46656. Preserve its Title (section 1) will typically require changing the
  46657. actual title.
  46658. 9. TERMINATION
  46659. You may not copy, modify, sublicense, or distribute the Document
  46660. except as expressly provided under this License. Any attempt
  46661. otherwise to copy, modify, sublicense, or distribute it is void,
  46662. and will automatically terminate your rights under this License.
  46663. However, if you cease all violation of this License, then your
  46664. license from a particular copyright holder is reinstated (a)
  46665. provisionally, unless and until the copyright holder explicitly and
  46666. finally terminates your license, and (b) permanently, if the
  46667. copyright holder fails to notify you of the violation by some
  46668. reasonable means prior to 60 days after the cessation.
  46669. Moreover, your license from a particular copyright holder is
  46670. reinstated permanently if the copyright holder notifies you of the
  46671. violation by some reasonable means, this is the first time you have
  46672. received notice of violation of this License (for any work) from
  46673. that copyright holder, and you cure the violation prior to 30 days
  46674. after your receipt of the notice.
  46675. Termination of your rights under this section does not terminate
  46676. the licenses of parties who have received copies or rights from you
  46677. under this License. If your rights have been terminated and not
  46678. permanently reinstated, receipt of a copy of some or all of the
  46679. same material does not give you any rights to use it.
  46680. 10. FUTURE REVISIONS OF THIS LICENSE
  46681. The Free Software Foundation may publish new, revised versions of
  46682. the GNU Free Documentation License from time to time. Such new
  46683. versions will be similar in spirit to the present version, but may
  46684. differ in detail to address new problems or concerns. See
  46685. <http://www.gnu.org/copyleft/>.
  46686. Each version of the License is given a distinguishing version
  46687. number. If the Document specifies that a particular numbered
  46688. version of this License "or any later version" applies to it, you
  46689. have the option of following the terms and conditions either of
  46690. that specified version or of any later version that has been
  46691. published (not as a draft) by the Free Software Foundation. If the
  46692. Document does not specify a version number of this License, you may
  46693. choose any version ever published (not as a draft) by the Free
  46694. Software Foundation. If the Document specifies that a proxy can
  46695. decide which future versions of this License can be used, that
  46696. proxy's public statement of acceptance of a version permanently
  46697. authorizes you to choose that version for the Document.
  46698. 11. RELICENSING
  46699. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  46700. World Wide Web server that publishes copyrightable works and also
  46701. provides prominent facilities for anybody to edit those works. A
  46702. public wiki that anybody can edit is an example of such a server.
  46703. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  46704. site means any set of copyrightable works thus published on the MMC
  46705. site.
  46706. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  46707. license published by Creative Commons Corporation, a not-for-profit
  46708. corporation with a principal place of business in San Francisco,
  46709. California, as well as future copyleft versions of that license
  46710. published by that same organization.
  46711. "Incorporate" means to publish or republish a Document, in whole or
  46712. in part, as part of another Document.
  46713. An MMC is "eligible for relicensing" if it is licensed under this
  46714. License, and if all works that were first published under this
  46715. License somewhere other than this MMC, and subsequently
  46716. incorporated in whole or in part into the MMC, (1) had no cover
  46717. texts or invariant sections, and (2) were thus incorporated prior
  46718. to November 1, 2008.
  46719. The operator of an MMC Site may republish an MMC contained in the
  46720. site under CC-BY-SA on the same site at any time before August 1,
  46721. 2009, provided the MMC is eligible for relicensing.
  46722. ADDENDUM: How to use this License for your documents
  46723. ====================================================
  46724. To use this License in a document you have written, include a copy of
  46725. the License in the document and put the following copyright and license
  46726. notices just after the title page:
  46727. Copyright (C) YEAR YOUR NAME.
  46728. Permission is granted to copy, distribute and/or modify this document
  46729. under the terms of the GNU Free Documentation License, Version 1.3
  46730. or any later version published by the Free Software Foundation;
  46731. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  46732. Texts. A copy of the license is included in the section entitled ``GNU
  46733. Free Documentation License''.
  46734. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  46735. replace the "with...Texts." line with this:
  46736. with the Invariant Sections being LIST THEIR TITLES, with
  46737. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  46738. being LIST.
  46739. If you have Invariant Sections without Cover Texts, or some other
  46740. combination of the three, merge those two alternatives to suit the
  46741. situation.
  46742. If your document contains nontrivial examples of program code, we
  46743. recommend releasing these examples in parallel under your choice of free
  46744. software license, such as the GNU General Public License, to permit
  46745. their use in free software.
  46746. 
  46747. File: gcc.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  46748. Contributors to GCC
  46749. *******************
  46750. The GCC project would like to thank its many contributors. Without them
  46751. the project would not have been nearly as successful as it has been.
  46752. Any omissions in this list are accidental. Feel free to contact
  46753. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  46754. some of your contributions are not listed. Please keep this list in
  46755. alphabetical order.
  46756. * Analog Devices helped implement the support for complex data types
  46757. and iterators.
  46758. * John David Anglin for threading-related fixes and improvements to
  46759. libstdc++-v3, and the HP-UX port.
  46760. * James van Artsdalen wrote the code that makes efficient use of the
  46761. Intel 80387 register stack.
  46762. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  46763. Series port.
  46764. * Alasdair Baird for various bug fixes.
  46765. * Giovanni Bajo for analyzing lots of complicated C++ problem
  46766. reports.
  46767. * Peter Barada for his work to improve code generation for new
  46768. ColdFire cores.
  46769. * Gerald Baumgartner added the signature extension to the C++ front
  46770. end.
  46771. * Godmar Back for his Java improvements and encouragement.
  46772. * Scott Bambrough for help porting the Java compiler.
  46773. * Wolfgang Bangerth for processing tons of bug reports.
  46774. * Jon Beniston for his Microsoft Windows port of Java and port to
  46775. Lattice Mico32.
  46776. * Daniel Berlin for better DWARF 2 support, faster/better
  46777. optimizations, improved alias analysis, plus migrating GCC to
  46778. Bugzilla.
  46779. * Geoff Berry for his Java object serialization work and various
  46780. patches.
  46781. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  46782. Rawhide for several architectures.
  46783. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  46784. * Uros Bizjak for the implementation of x87 math built-in functions
  46785. and for various middle end and i386 back end improvements and bug
  46786. fixes.
  46787. * Eric Blake for helping to make GCJ and libgcj conform to the
  46788. specifications.
  46789. * Janne Blomqvist for contributions to GNU Fortran.
  46790. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  46791. other Java work.
  46792. * Segher Boessenkool for helping maintain the PowerPC port and the
  46793. instruction combiner plus various contributions to the middle end.
  46794. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  46795. miscellaneous clean-ups.
  46796. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  46797. and for contributing to the tree-ssa branch.
  46798. * Eric Botcazou for fixing middle- and backend bugs left and right.
  46799. * Per Bothner for his direction via the steering committee and
  46800. various improvements to the infrastructure for supporting new
  46801. languages. Chill front end implementation. Initial
  46802. implementations of cpplib, fix-header, config.guess, libio, and
  46803. past C++ library (libg++) maintainer. Dreaming up, designing and
  46804. implementing much of GCJ.
  46805. * Devon Bowen helped port GCC to the Tahoe.
  46806. * Don Bowman for mips-vxworks contributions.
  46807. * James Bowman for the FT32 port.
  46808. * Dave Brolley for work on cpplib and Chill.
  46809. * Paul Brook for work on the ARM architecture and maintaining GNU
  46810. Fortran.
  46811. * Robert Brown implemented the support for Encore 32000 systems.
  46812. * Christian Bruel for improvements to local store elimination.
  46813. * Herman A.J. ten Brugge for various fixes.
  46814. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  46815. FAQ.
  46816. * Joe Buck for his direction via the steering committee from its
  46817. creation to 2013.
  46818. * Iain Buclaw for the D frontend.
  46819. * Craig Burley for leadership of the G77 Fortran effort.
  46820. * Tobias Burnus for contributions to GNU Fortran.
  46821. * Stephan Buys for contributing Doxygen notes for libstdc++.
  46822. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  46823. to the C++ strings, streambufs and formatted I/O, hard detective
  46824. work on the frustrating localization issues, and keeping up with
  46825. the problem reports.
  46826. * John Carr for his alias work, SPARC hacking, infrastructure
  46827. improvements, previous contributions to the steering committee,
  46828. loop optimizations, etc.
  46829. * Stephane Carrez for 68HC11 and 68HC12 ports.
  46830. * Steve Chamberlain for support for the Renesas SH and H8 processors
  46831. and the PicoJava processor, and for GCJ config fixes.
  46832. * Glenn Chambers for help with the GCJ FAQ.
  46833. * John-Marc Chandonia for various libgcj patches.
  46834. * Denis Chertykov for contributing and maintaining the AVR port, the
  46835. first GCC port for an 8-bit architecture.
  46836. * Kito Cheng for his work on the RISC-V port, including bringing up
  46837. the test suite and maintenance.
  46838. * Scott Christley for his Objective-C contributions.
  46839. * Eric Christopher for his Java porting help and clean-ups.
  46840. * Branko Cibej for more warning contributions.
  46841. * The GNU Classpath project for all of their merged runtime code.
  46842. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  46843. '--help', and other random hacking.
  46844. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  46845. * R. Kelley Cook for making GCC buildable from a read-only directory
  46846. as well as other miscellaneous build process and documentation
  46847. clean-ups.
  46848. * Ralf Corsepius for SH testing and minor bug fixing.
  46849. * Franc,ois-Xavier Coudert for contributions to GNU Fortran.
  46850. * Stan Cox for care and feeding of the x86 port and lots of behind
  46851. the scenes hacking.
  46852. * Alex Crain provided changes for the 3b1.
  46853. * Ian Dall for major improvements to the NS32k port.
  46854. * Paul Dale for his work to add uClinux platform support to the m68k
  46855. backend.
  46856. * Palmer Dabbelt for his work maintaining the RISC-V port.
  46857. * Dario Dariol contributed the four varieties of sample programs that
  46858. print a copy of their source.
  46859. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  46860. * Bud Davis for work on the G77 and GNU Fortran compilers.
  46861. * Mo DeJong for GCJ and libgcj bug fixes.
  46862. * Jerry DeLisle for contributions to GNU Fortran.
  46863. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  46864. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  46865. * Arnaud Desitter for helping to debug GNU Fortran.
  46866. * Gabriel Dos Reis for contributions to G++, contributions and
  46867. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  46868. including 'valarray<>', 'complex<>', maintaining the numerics
  46869. library (including that pesky '<limits>' :-) and keeping up-to-date
  46870. anything to do with numbers.
  46871. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  46872. ISO C99 support, CFG dumping support, etc., plus support of the C++
  46873. runtime libraries including for all kinds of C interface issues,
  46874. contributing and maintaining 'complex<>', sanity checking and
  46875. disbursement, configuration architecture, libio maintenance, and
  46876. early math work.
  46877. * Franc,ois Dumont for his work on libstdc++-v3, especially
  46878. maintaining and improving 'debug-mode' and associative and
  46879. unordered containers.
  46880. * Zdenek Dvorak for a new loop unroller and various fixes.
  46881. * Michael Eager for his work on the Xilinx MicroBlaze port.
  46882. * Richard Earnshaw for his ongoing work with the ARM.
  46883. * David Edelsohn for his direction via the steering committee,
  46884. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  46885. loop changes, doing the entire AIX port of libstdc++ with his bare
  46886. hands, and for ensuring GCC properly keeps working on AIX.
  46887. * Kevin Ediger for the floating point formatting of num_put::do_put
  46888. in libstdc++.
  46889. * Phil Edwards for libstdc++ work including configuration hackery,
  46890. documentation maintainer, chief breaker of the web pages, the
  46891. occasional iostream bug fix, and work on shared library symbol
  46892. versioning.
  46893. * Paul Eggert for random hacking all over GCC.
  46894. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  46895. configuration support for locales and fstream-related fixes.
  46896. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  46897. iostreams.
  46898. * Christian Ehrhardt for dealing with bug reports.
  46899. * Ben Elliston for his work to move the Objective-C runtime into its
  46900. own subdirectory and for his work on autoconf.
  46901. * Revital Eres for work on the PowerPC 750CL port.
  46902. * Marc Espie for OpenBSD support.
  46903. * Doug Evans for much of the global optimization framework, arc,
  46904. m32r, and SPARC work.
  46905. * Christopher Faylor for his work on the Cygwin port and for caring
  46906. and feeding the gcc.gnu.org box and saving its users tons of spam.
  46907. * Fred Fish for BeOS support and Ada fixes.
  46908. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  46909. * Peter Gerwinski for various bug fixes and the Pascal front end.
  46910. * Kaveh R. Ghazi for his direction via the steering committee,
  46911. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  46912. on a plethora of platforms. Kaveh extends his gratitude to the
  46913. CAIP Center at Rutgers University for providing him with computing
  46914. resources to work on Free Software from the late 1980s to 2010.
  46915. * John Gilmore for a donation to the FSF earmarked improving GNU
  46916. Java.
  46917. * Judy Goldberg for c++ contributions.
  46918. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  46919. multiply- and divide-by-constant optimization, improved long long
  46920. support, improved leaf function register allocation, and his
  46921. direction via the steering committee.
  46922. * Jonny Grant for improvements to 'collect2's' '--help'
  46923. documentation.
  46924. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  46925. front end work.
  46926. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  46927. code.
  46928. * Michael K. Gschwind contributed the port to the PDP-11.
  46929. * Richard Biener for his ongoing middle-end contributions and bug
  46930. fixes and for release management.
  46931. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  46932. the support for DWARF 1 symbolic debugging information, and much of
  46933. the support for System V Release 4. He has also worked heavily on
  46934. the Intel 386 and 860 support.
  46935. * Sumanth Gundapaneni for contributing the CR16 port.
  46936. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  46937. GCSE.
  46938. * Bruno Haible for improvements in the runtime overhead for EH, new
  46939. warnings and assorted bug fixes.
  46940. * Andrew Haley for his amazing Java compiler and library efforts.
  46941. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  46942. series 300.
  46943. * Michael Hayes for various thankless work he's done trying to get
  46944. the c30/c40 ports functional. Lots of loop and unroll improvements
  46945. and fixes.
  46946. * Dara Hazeghi for wading through myriads of target-specific bug
  46947. reports.
  46948. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  46949. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  46950. work, loop opts, and generally fixing lots of old problems we've
  46951. ignored for years, flow rewrite and lots of further stuff,
  46952. including reviewing tons of patches.
  46953. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  46954. various fixes.
  46955. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  46956. contributed the support for the Sony NEWS machine.
  46957. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  46958. various fixes.
  46959. * Katherine Holcomb for work on GNU Fortran.
  46960. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  46961. of testing and bug fixing, particularly of GCC configury code.
  46962. * Steve Holmgren for MachTen patches.
  46963. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  46964. * Jan Hubicka for his x86 port improvements.
  46965. * Falk Hueffner for working on C and optimization bug reports.
  46966. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  46967. improvements and uClinux support.
  46968. * Christian Iseli for various bug fixes.
  46969. * Kamil Iskra for general m68k hacking.
  46970. * Lee Iverson for random fixes and MIPS testing.
  46971. * Balaji V. Iyer for Cilk+ development and merging.
  46972. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  46973. fixes.
  46974. * Martin Jambor for his work on inter-procedural optimizations, the
  46975. switch conversion pass, and scalar replacement of aggregates.
  46976. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  46977. well as lots of bug fixes and test cases, and for improving the
  46978. Java build system.
  46979. * Janis Johnson for ia64 testing and fixes, her quality improvement
  46980. sidetracks, and web page maintenance.
  46981. * Kean Johnston for SCO OpenServer support and various fixes.
  46982. * Tim Josling for the sample language treelang based originally on
  46983. Richard Kenner's "toy" language.
  46984. * Nicolai Josuttis for additional libstdc++ documentation.
  46985. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  46986. target.
  46987. * Steven G. Kargl for work on GNU Fortran.
  46988. * David Kashtan of SRI adapted GCC to VMS.
  46989. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  46990. optimizations of strings, especially member functions, and for
  46991. auto_ptr fixes.
  46992. * Geoffrey Keating for his ongoing work to make the PPC work for
  46993. GNU/Linux and his automatic regression tester.
  46994. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  46995. work in just about every part of libstdc++.
  46996. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  46997. MIL-STD-1750A.
  46998. * Richard Kenner of the New York University Ultracomputer Research
  46999. Laboratory wrote the machine descriptions for the AMD 29000, the
  47000. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  47001. support for instruction attributes. He also made changes to better
  47002. support RISC processors including changes to common subexpression
  47003. elimination, strength reduction, function calling sequence
  47004. handling, and condition code support, in addition to generalizing
  47005. the code for frame pointer elimination and delay slot scheduling.
  47006. Richard Kenner was also the head maintainer of GCC for several
  47007. years.
  47008. * Mumit Khan for various contributions to the Cygwin and Mingw32
  47009. ports and maintaining binary releases for Microsoft Windows hosts,
  47010. and for massive libstdc++ porting work to Cygwin/Mingw32.
  47011. * Robin Kirkham for cpu32 support.
  47012. * Mark Klein for PA improvements.
  47013. * Thomas Koenig for various bug fixes.
  47014. * Bruce Korb for the new and improved fixincludes code.
  47015. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  47016. effort.
  47017. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  47018. Android and m68k/Coldfire ports, and optimizations.
  47019. * Charles LaBrec contributed the support for the Integrated Solutions
  47020. 68020 system.
  47021. * Asher Langton and Mike Kumbera for contributing Cray pointer
  47022. support to GNU Fortran, and for other GNU Fortran improvements.
  47023. * Jeff Law for his direction via the steering committee, coordinating
  47024. the entire egcs project and GCC 2.95, rolling out snapshots and
  47025. releases, handling merges from GCC2, reviewing tons of patches that
  47026. might have fallen through the cracks else, and random but extensive
  47027. hacking.
  47028. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  47029. * Marc Lehmann for his direction via the steering committee and
  47030. helping with analysis and improvements of x86 performance.
  47031. * Victor Leikehman for work on GNU Fortran.
  47032. * Ted Lemon wrote parts of the RTL reader and printer.
  47033. * Kriang Lerdsuwanakij for C++ improvements including template as
  47034. template parameter support, and many C++ fixes.
  47035. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  47036. and random work on the Java front end.
  47037. * Alain Lichnewsky ported GCC to the MIPS CPU.
  47038. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  47039. and patches.
  47040. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  47041. * Chen Liqin for various S+core related fixes/improvement, and for
  47042. maintaining the S+core port.
  47043. * Martin Liska for his work on identical code folding, the
  47044. sanitizers, HSA, general bug fixing and for running automated
  47045. regression testing of GCC and reporting numerous bugs.
  47046. * Weiwen Liu for testing and various bug fixes.
  47047. * Manuel Lo'pez-Iba'n~ez for improving '-Wconversion' and many other
  47048. diagnostics fixes and improvements.
  47049. * Dave Love for his ongoing work with the Fortran front end and
  47050. runtime libraries.
  47051. * Martin von Lo"wis for internal consistency checking infrastructure,
  47052. various C++ improvements including namespace support, and tons of
  47053. assistance with libstdc++/compiler merges.
  47054. * H.J. Lu for his previous contributions to the steering committee,
  47055. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  47056. ports working.
  47057. * Greg McGary for random fixes and (someday) bounded pointers.
  47058. * Andrew MacLeod for his ongoing work in building a real EH system,
  47059. various code generation improvements, work on the global optimizer,
  47060. etc.
  47061. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  47062. hacking improvements to compile-time performance, overall knowledge
  47063. and direction in the area of instruction scheduling, design and
  47064. implementation of the automaton based instruction scheduler and
  47065. design and implementation of the integrated and local register
  47066. allocators.
  47067. * David Malcolm for his work on improving GCC diagnostics, JIT,
  47068. self-tests and unit testing.
  47069. * Bob Manson for his behind the scenes work on dejagnu.
  47070. * John Marino for contributing the DragonFly BSD port.
  47071. * Philip Martin for lots of libstdc++ string and vector iterator
  47072. fixes and improvements, and string clean up and testsuites.
  47073. * Michael Matz for his work on dominance tree discovery, the x86-64
  47074. port, link-time optimization framework and general optimization
  47075. improvements.
  47076. * All of the Mauve project contributors for Java test code.
  47077. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  47078. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  47079. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  47080. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  47081. * Jason Merrill for his direction via the steering committee and
  47082. leading the G++ effort.
  47083. * Martin Michlmayr for testing GCC on several architectures using the
  47084. entire Debian archive.
  47085. * David Miller for his direction via the steering committee, lots of
  47086. SPARC work, improvements in jump.c and interfacing with the Linux
  47087. kernel developers.
  47088. * Gary Miller ported GCC to Charles River Data Systems machines.
  47089. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  47090. the entire libstdc++ testsuite namespace-compatible.
  47091. * Mark Mitchell for his direction via the steering committee,
  47092. mountains of C++ work, load/store hoisting out of loops, alias
  47093. analysis improvements, ISO C 'restrict' support, and serving as
  47094. release manager from 2000 to 2011.
  47095. * Alan Modra for various GNU/Linux bits and testing.
  47096. * Toon Moene for his direction via the steering committee, Fortran
  47097. maintenance, and his ongoing work to make us make Fortran run fast.
  47098. * Jason Molenda for major help in the care and feeding of all the
  47099. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  47100. machine--mail, web services, ftp services, etc etc. Doing all this
  47101. work on scrap paper and the backs of envelopes would have been...
  47102. difficult.
  47103. * Catherine Moore for fixing various ugly problems we have sent her
  47104. way, including the haifa bug which was killing the Alpha & PowerPC
  47105. Linux kernels.
  47106. * Mike Moreton for his various Java patches.
  47107. * David Mosberger-Tang for various Alpha improvements, and for the
  47108. initial IA-64 port.
  47109. * Stephen Moshier contributed the floating point emulator that
  47110. assists in cross-compilation and permits support for floating point
  47111. numbers wider than 64 bits and for ISO C99 support.
  47112. * Bill Moyer for his behind the scenes work on various issues.
  47113. * Philippe De Muyter for his work on the m68k port.
  47114. * Joseph S. Myers for his work on the PDP-11 port, format checking
  47115. and ISO C99 support, and continuous emphasis on (and contributions
  47116. to) documentation.
  47117. * Nathan Myers for his work on libstdc++-v3: architecture and
  47118. authorship through the first three snapshots, including
  47119. implementation of locale infrastructure, string, shadow C headers,
  47120. and the initial project documentation (DESIGN, CHECKLIST, and so
  47121. forth). Later, more work on MT-safe string and shadow headers.
  47122. * Felix Natter for documentation on porting libstdc++.
  47123. * Nathanael Nerode for cleaning up the configuration/build process.
  47124. * NeXT, Inc. donated the front end that supports the Objective-C
  47125. language.
  47126. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  47127. search engine setup, various documentation fixes and other small
  47128. fixes.
  47129. * Geoff Noer for his work on getting cygwin native builds working.
  47130. * Vegard Nossum for running automated regression testing of GCC and
  47131. reporting numerous bugs.
  47132. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  47133. tracking web pages, GIMPLE tuples, and assorted fixes.
  47134. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  47135. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  47136. infrastructure improvements.
  47137. * Alexandre Oliva for various build infrastructure improvements,
  47138. scripts and amazing testing work, including keeping libtool issues
  47139. sane and happy.
  47140. * Stefan Olsson for work on mt_alloc.
  47141. * Melissa O'Neill for various NeXT fixes.
  47142. * Rainer Orth for random MIPS work, including improvements to GCC's
  47143. o32 ABI support, improvements to dejagnu's MIPS support, Java
  47144. configuration clean-ups and porting work, and maintaining the IRIX,
  47145. Solaris 2, and Tru64 UNIX ports.
  47146. * Steven Pemberton for his contribution of 'enquire' which allowed
  47147. GCC to determine various properties of the floating point unit and
  47148. generate 'float.h' in older versions of GCC.
  47149. * Hartmut Penner for work on the s390 port.
  47150. * Paul Petersen wrote the machine description for the Alliant FX/8.
  47151. * Alexandre Petit-Bianco for implementing much of the Java compiler
  47152. and continued Java maintainership.
  47153. * Matthias Pfaller for major improvements to the NS32k port.
  47154. * Gerald Pfeifer for his direction via the steering committee,
  47155. pointing out lots of problems we need to solve, maintenance of the
  47156. web pages, and taking care of documentation maintenance in general.
  47157. * Marek Polacek for his work on the C front end, the sanitizers and
  47158. general bug fixing.
  47159. * Andrew Pinski for processing bug reports by the dozen.
  47160. * Ovidiu Predescu for his work on the Objective-C front end and
  47161. runtime libraries.
  47162. * Jerry Quinn for major performance improvements in C++ formatted
  47163. I/O.
  47164. * Ken Raeburn for various improvements to checker, MIPS ports and
  47165. various cleanups in the compiler.
  47166. * Rolf W. Rasmussen for hacking on AWT.
  47167. * David Reese of Sun Microsystems contributed to the Solaris on
  47168. PowerPC port.
  47169. * John Regehr for running automated regression testing of GCC and
  47170. reporting numerous bugs.
  47171. * Volker Reichelt for running automated regression testing of GCC and
  47172. reporting numerous bugs and for keeping up with the problem
  47173. reports.
  47174. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  47175. hacking and developing and maintaining the Epiphany port.
  47176. * Loren J. Rittle for improvements to libstdc++-v3 including the
  47177. FreeBSD port, threading fixes, thread-related configury changes,
  47178. critical threading documentation, and solutions to really tricky
  47179. I/O problems, as well as keeping GCC properly working on FreeBSD
  47180. and continuous testing.
  47181. * Craig Rodrigues for processing tons of bug reports.
  47182. * Ola Ro"nnerup for work on mt_alloc.
  47183. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  47184. * David Ronis inspired and encouraged Craig to rewrite the G77
  47185. documentation in texinfo format by contributing a first pass at a
  47186. translation of the old 'g77-0.5.16/f/DOC' file.
  47187. * Ken Rose for fixes to GCC's delay slot filling code.
  47188. * Ira Rosen for her contributions to the auto-vectorizer.
  47189. * Paul Rubin wrote most of the preprocessor.
  47190. * Pe'tur Runo'lfsson for major performance improvements in C++
  47191. formatted I/O and large file support in C++ filebuf.
  47192. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  47193. traits, Makefiles, libio, libtool hackery, and "long long" support.
  47194. * Juha Sarlin for improvements to the H8 code generator.
  47195. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  47196. 300.
  47197. * Roger Sayle for improvements to constant folding and GCC's RTL
  47198. optimizers as well as for fixing numerous bugs.
  47199. * Bradley Schatz for his work on the GCJ FAQ.
  47200. * Peter Schauer wrote the code to allow debugging to work on the
  47201. Alpha.
  47202. * William Schelter did most of the work on the Intel 80386 support.
  47203. * Tobias Schlu"ter for work on GNU Fortran.
  47204. * Bernd Schmidt for various code generation improvements and major
  47205. work in the reload pass, serving as release manager for GCC 2.95.3,
  47206. and work on the Blackfin and C6X ports.
  47207. * Peter Schmid for constant testing of libstdc++--especially
  47208. application testing, going above and beyond what was requested for
  47209. the release criteria--and libstdc++ header file tweaks.
  47210. * Jason Schroeder for jcf-dump patches.
  47211. * Andreas Schwab for his work on the m68k port.
  47212. * Lars Segerlund for work on GNU Fortran.
  47213. * Dodji Seketeli for numerous C++ bug fixes and debug info
  47214. improvements.
  47215. * Tim Shen for major work on '<regex>'.
  47216. * Joel Sherrill for his direction via the steering committee, RTEMS
  47217. contributions and RTEMS testing.
  47218. * Nathan Sidwell for many C++ fixes/improvements.
  47219. * Jeffrey Siegal for helping RMS with the original design of GCC,
  47220. some code which handles the parse tree and RTL data structures,
  47221. constant folding and help with the original VAX & m68k ports.
  47222. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  47223. from the LWG (thereby keeping GCC in line with updates from the
  47224. ISO).
  47225. * Franz Sirl for his ongoing work with making the PPC port stable for
  47226. GNU/Linux.
  47227. * Andrey Slepuhin for assorted AIX hacking.
  47228. * Trevor Smigiel for contributing the SPU port.
  47229. * Christopher Smith did the port for Convex machines.
  47230. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  47231. Retired from GCC maintainership August 2010, having mentored two
  47232. new maintainers into the role.
  47233. * Randy Smith finished the Sun FPA support.
  47234. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  47235. functions, '<random>', and various improvements to C++11 features.
  47236. * Scott Snyder for queue, iterator, istream, and string fixes and
  47237. libstdc++ testsuite entries. Also for providing the patch to G77
  47238. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  47239. 'LOGICAL*1'.
  47240. * Zdenek Sojka for running automated regression testing of GCC and
  47241. reporting numerous bugs.
  47242. * Arseny Solokha for running automated regression testing of GCC and
  47243. reporting numerous bugs.
  47244. * Jayant Sonar for contributing the CR16 port.
  47245. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  47246. * Richard Stallman, for writing the original GCC and launching the
  47247. GNU project.
  47248. * Jan Stein of the Chalmers Computer Society provided support for
  47249. Genix, as well as part of the 32000 machine description.
  47250. * Gerhard Steinmetz for running automated regression testing of GCC
  47251. and reporting numerous bugs.
  47252. * Nigel Stephens for various mips16 related fixes/improvements.
  47253. * Jonathan Stone wrote the machine description for the Pyramid
  47254. computer.
  47255. * Graham Stott for various infrastructure improvements.
  47256. * John Stracke for his Java HTTP protocol fixes.
  47257. * Mike Stump for his Elxsi port, G++ contributions over the years and
  47258. more recently his vxworks contributions
  47259. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  47260. * Zhendong Su for running automated regression testing of GCC and
  47261. reporting numerous bugs.
  47262. * Chengnian Sun for running automated regression testing of GCC and
  47263. reporting numerous bugs.
  47264. * Shigeya Suzuki for this fixes for the bsdi platforms.
  47265. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  47266. support, general configury hacking, fixincludes, etc.
  47267. * Holger Teutsch provided the support for the Clipper CPU.
  47268. * Gary Thomas for his ongoing work to make the PPC work for
  47269. GNU/Linux.
  47270. * Paul Thomas for contributions to GNU Fortran.
  47271. * Philipp Thomas for random bug fixes throughout the compiler
  47272. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  47273. * Kresten Krab Thorup wrote the run time support for the Objective-C
  47274. language and the fantastic Java bytecode interpreter.
  47275. * Michael Tiemann for random bug fixes, the first instruction
  47276. scheduler, initial C++ support, function integration, NS32k, SPARC
  47277. and M88k machine description work, delay slot scheduling.
  47278. * Andreas Tobler for his work porting libgcj to Darwin.
  47279. * Teemu Torma for thread safe exception handling support.
  47280. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  47281. definitions, and of the VAX machine description.
  47282. * Daniel Towner and Hariharan Sandanagobalane contributed and
  47283. maintain the picoChip port.
  47284. * Tom Tromey for internationalization support and for his many Java
  47285. contributions and libgcj maintainership.
  47286. * Lassi Tuura for improvements to config.guess to determine HP
  47287. processor types.
  47288. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  47289. * Andy Vaught for the design and initial implementation of the GNU
  47290. Fortran front end.
  47291. * Brent Verner for work with the libstdc++ cshadow files and their
  47292. associated configure steps.
  47293. * Todd Vierling for contributions for NetBSD ports.
  47294. * Andrew Waterman for contributing the RISC-V port, as well as
  47295. maintaining it.
  47296. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  47297. guidance and maintaining libstdc++.
  47298. * Dean Wakerley for converting the install documentation from HTML to
  47299. texinfo in time for GCC 3.0.
  47300. * Krister Walfridsson for random bug fixes.
  47301. * Feng Wang for contributions to GNU Fortran.
  47302. * Stephen M. Webb for time and effort on making libstdc++ shadow
  47303. files work with the tricky Solaris 8+ headers, and for pushing the
  47304. build-time header tree. Also, for starting and driving the
  47305. '<regex>' effort.
  47306. * John Wehle for various improvements for the x86 code generator,
  47307. related infrastructure improvements to help x86 code generation,
  47308. value range propagation and other work, WE32k port.
  47309. * Ulrich Weigand for work on the s390 port.
  47310. * Janus Weil for contributions to GNU Fortran.
  47311. * Zack Weinberg for major work on cpplib and various other bug fixes.
  47312. * Matt Welsh for help with Linux Threads support in GCJ.
  47313. * Urban Widmark for help fixing java.io.
  47314. * Mark Wielaard for new Java library code and his work integrating
  47315. with Classpath.
  47316. * Dale Wiles helped port GCC to the Tahoe.
  47317. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  47318. * Jim Wilson for his direction via the steering committee, tackling
  47319. hard problems in various places that nobody else wanted to work on,
  47320. strength reduction and other loop optimizations.
  47321. * Paul Woegerer and Tal Agmon for the CRX port.
  47322. * Carlo Wood for various fixes.
  47323. * Tom Wood for work on the m88k port.
  47324. * Chung-Ju Wu for his work on the Andes NDS32 port.
  47325. * Canqun Yang for work on GNU Fortran.
  47326. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  47327. description for the Tron architecture (specifically, the Gmicro).
  47328. * Kevin Zachmann helped port GCC to the Tahoe.
  47329. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  47330. * Qirun Zhang for running automated regression testing of GCC and
  47331. reporting numerous bugs.
  47332. * Xiaoqiang Zhang for work on GNU Fortran.
  47333. * Gilles Zunino for help porting Java to Irix.
  47334. The following people are recognized for their contributions to GNAT,
  47335. the Ada front end of GCC:
  47336. * Bernard Banner
  47337. * Romain Berrendonner
  47338. * Geert Bosch
  47339. * Emmanuel Briot
  47340. * Joel Brobecker
  47341. * Ben Brosgol
  47342. * Vincent Celier
  47343. * Arnaud Charlet
  47344. * Chien Chieng
  47345. * Cyrille Comar
  47346. * Cyrille Crozes
  47347. * Robert Dewar
  47348. * Gary Dismukes
  47349. * Robert Duff
  47350. * Ed Falis
  47351. * Ramon Fernandez
  47352. * Sam Figueroa
  47353. * Vasiliy Fofanov
  47354. * Michael Friess
  47355. * Franco Gasperoni
  47356. * Ted Giering
  47357. * Matthew Gingell
  47358. * Laurent Guerby
  47359. * Jerome Guitton
  47360. * Olivier Hainque
  47361. * Jerome Hugues
  47362. * Hristian Kirtchev
  47363. * Jerome Lambourg
  47364. * Bruno Leclerc
  47365. * Albert Lee
  47366. * Sean McNeil
  47367. * Javier Miranda
  47368. * Laurent Nana
  47369. * Pascal Obry
  47370. * Dong-Ik Oh
  47371. * Laurent Pautet
  47372. * Brett Porter
  47373. * Thomas Quinot
  47374. * Nicolas Roche
  47375. * Pat Rogers
  47376. * Jose Ruiz
  47377. * Douglas Rupp
  47378. * Sergey Rybin
  47379. * Gail Schenker
  47380. * Ed Schonberg
  47381. * Nicolas Setton
  47382. * Samuel Tardieu
  47383. The following people are recognized for their contributions of new
  47384. features, bug reports, testing and integration of classpath/libgcj for
  47385. GCC version 4.1:
  47386. * Lillian Angel for 'JTree' implementation and lots Free Swing
  47387. additions and bug fixes.
  47388. * Wolfgang Baer for 'GapContent' bug fixes.
  47389. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  47390. event fixes, lots of Free Swing work including 'JTable' editing.
  47391. * Stuart Ballard for RMI constant fixes.
  47392. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  47393. * Gary Benson for 'MessageFormat' fixes.
  47394. * Daniel Bonniot for 'Serialization' fixes.
  47395. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  47396. and 'DOM xml:id' support.
  47397. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  47398. * Archie Cobbs for build fixes, VM interface updates,
  47399. 'URLClassLoader' updates.
  47400. * Kelley Cook for build fixes.
  47401. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  47402. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  47403. improvements.
  47404. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  47405. 2D support. Lots of imageio framework additions, lots of AWT and
  47406. Free Swing bug fixes.
  47407. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  47408. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  47409. * Santiago Gala for 'AccessControlContext' fixes.
  47410. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  47411. improvements.
  47412. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  47413. lots of documenting, Lots of Free Swing and metal theme additions.
  47414. 'MetalIconFactory' implementation.
  47415. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  47416. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  47417. build speedups.
  47418. * Kim Ho for 'JFileChooser' implementation.
  47419. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  47420. 'Serialization' fixes, 'Properties' XML support and generic branch
  47421. work, VMIntegration guide update.
  47422. * Bastiaan Huisman for 'TimeZone' bug fixing.
  47423. * Andreas Jaeger for mprec updates.
  47424. * Paul Jenner for better '-Werror' support.
  47425. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  47426. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  47427. bug fixes all over. Lots of Free Swing work including styled text.
  47428. * Simon Kitching for 'String' cleanups and optimization suggestions.
  47429. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  47430. build fixes.
  47431. * Guilhem Lavaux for configuration, thread and channel fixes and
  47432. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  47433. fixes.
  47434. * David Lichteblau for JCL support library global/local reference
  47435. cleanups.
  47436. * Aaron Luchko for JDWP updates and documentation fixes.
  47437. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  47438. features.
  47439. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  47440. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  47441. and implementing the Qt4 peers.
  47442. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  47443. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  47444. 'FileChannel.map' support, security and policy updates.
  47445. * Bryce McKinlay for RMI work.
  47446. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  47447. testing and documenting.
  47448. * Kalle Olavi Niemitalo for build fixes.
  47449. * Rainer Orth for build fixes.
  47450. * Andrew Overholt for 'File' locking fixes.
  47451. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  47452. * Olga Rodimina for 'MenuSelectionManager' implementation.
  47453. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  47454. * Julian Scheid for documentation updates and gjdoc support.
  47455. * Christian Schlichtherle for zip fixes and cleanups.
  47456. * Robert Schuster for documentation updates and beans fixes,
  47457. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  47458. and URL, AWT and Free Swing bug fixes.
  47459. * Keith Seitz for lots of JDWP work.
  47460. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  47461. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  47462. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  47463. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  47464. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  47465. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  47466. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  47467. 'GdkPixbugDecoder' updates.
  47468. * Tom Tromey for Eclipse integration, generics work, lots of bug
  47469. fixes and gcj integration including coordinating The Big Merge.
  47470. * Mark Wielaard for bug fixes, packaging and release management,
  47471. 'Clipboard' implementation, system call interrupts and network
  47472. timeouts and 'GdkPixpufDecoder' fixes.
  47473. In addition to the above, all of which also contributed time and energy
  47474. in testing GCC, we would like to thank the following for their
  47475. contributions to testing:
  47476. * Michael Abd-El-Malek
  47477. * Thomas Arend
  47478. * Bonzo Armstrong
  47479. * Steven Ashe
  47480. * Chris Baldwin
  47481. * David Billinghurst
  47482. * Jim Blandy
  47483. * Stephane Bortzmeyer
  47484. * Horst von Brand
  47485. * Frank Braun
  47486. * Rodney Brown
  47487. * Sidney Cadot
  47488. * Bradford Castalia
  47489. * Robert Clark
  47490. * Jonathan Corbet
  47491. * Ralph Doncaster
  47492. * Richard Emberson
  47493. * Levente Farkas
  47494. * Graham Fawcett
  47495. * Mark Fernyhough
  47496. * Robert A. French
  47497. * Jo"rgen Freyh
  47498. * Mark K. Gardner
  47499. * Charles-Antoine Gauthier
  47500. * Yung Shing Gene
  47501. * David Gilbert
  47502. * Simon Gornall
  47503. * Fred Gray
  47504. * John Griffin
  47505. * Patrik Hagglund
  47506. * Phil Hargett
  47507. * Amancio Hasty
  47508. * Takafumi Hayashi
  47509. * Bryan W. Headley
  47510. * Kevin B. Hendricks
  47511. * Joep Jansen
  47512. * Christian Joensson
  47513. * Michel Kern
  47514. * David Kidd
  47515. * Tobias Kuipers
  47516. * Anand Krishnaswamy
  47517. * A. O. V. Le Blanc
  47518. * llewelly
  47519. * Damon Love
  47520. * Brad Lucier
  47521. * Matthias Klose
  47522. * Martin Knoblauch
  47523. * Rick Lutowski
  47524. * Jesse Macnish
  47525. * Stefan Morrell
  47526. * Anon A. Mous
  47527. * Matthias Mueller
  47528. * Pekka Nikander
  47529. * Rick Niles
  47530. * Jon Olson
  47531. * Magnus Persson
  47532. * Chris Pollard
  47533. * Richard Polton
  47534. * Derk Reefman
  47535. * David Rees
  47536. * Paul Reilly
  47537. * Tom Reilly
  47538. * Torsten Rueger
  47539. * Danny Sadinoff
  47540. * Marc Schifer
  47541. * Erik Schnetter
  47542. * Wayne K. Schroll
  47543. * David Schuler
  47544. * Vin Shelton
  47545. * Tim Souder
  47546. * Adam Sulmicki
  47547. * Bill Thorson
  47548. * George Talbot
  47549. * Pedro A. M. Vazquez
  47550. * Gregory Warnes
  47551. * Ian Watson
  47552. * David E. Young
  47553. * And many others
  47554. And finally we'd like to thank everyone who uses the compiler, provides
  47555. feedback and generally reminds us why we're doing this work in the first
  47556. place.
  47557. 
  47558. File: gcc.info, Node: Option Index, Next: Keyword Index, Prev: Contributors, Up: Top
  47559. Option Index
  47560. ************
  47561. GCC's command line options are indexed here without any initial '-' or
  47562. '--'. Where an option has both positive and negative forms (such as
  47563. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  47564. indexed under the most appropriate form; it may sometimes be useful to
  47565. look up both forms.
  47566. �[index�]
  47567. * Menu:
  47568. * ###: Overall Options. (line 214)
  47569. * -Wattribute-alias: Warning Options. (line 1605)
  47570. * -Wno-attribute-alias: Warning Options. (line 1605)
  47571. * 80387: x86 Options. (line 497)
  47572. * A: Preprocessor Options.
  47573. (line 328)
  47574. * allowable_client: Darwin Options. (line 196)
  47575. * all_load: Darwin Options. (line 110)
  47576. * ansi: Standards. (line 13)
  47577. * ansi <1>: C Dialect Options. (line 11)
  47578. * ansi <2>: Other Builtins. (line 31)
  47579. * ansi <3>: Non-bugs. (line 107)
  47580. * arch_errors_fatal: Darwin Options. (line 114)
  47581. * aux-info: C Dialect Options. (line 227)
  47582. * B: Directory Options. (line 122)
  47583. * Bdynamic: VxWorks Options. (line 22)
  47584. * bind_at_load: Darwin Options. (line 118)
  47585. * Bstatic: VxWorks Options. (line 22)
  47586. * bundle: Darwin Options. (line 123)
  47587. * bundle_loader: Darwin Options. (line 127)
  47588. * c: Overall Options. (line 169)
  47589. * C: Preprocessor Options.
  47590. (line 337)
  47591. * c <1>: Link Options. (line 20)
  47592. * CC: Preprocessor Options.
  47593. (line 349)
  47594. * client_name: Darwin Options. (line 196)
  47595. * compatibility_version: Darwin Options. (line 196)
  47596. * coverage: Instrumentation Options.
  47597. (line 50)
  47598. * current_version: Darwin Options. (line 196)
  47599. * D: Preprocessor Options.
  47600. (line 19)
  47601. * d: Preprocessor Options.
  47602. (line 403)
  47603. * d <1>: Developer Options. (line 35)
  47604. * da: Developer Options. (line 229)
  47605. * dA: Developer Options. (line 232)
  47606. * dD: Preprocessor Options.
  47607. (line 427)
  47608. * dD <1>: Developer Options. (line 236)
  47609. * dead_strip: Darwin Options. (line 196)
  47610. * dependency-file: Darwin Options. (line 196)
  47611. * dH: Developer Options. (line 240)
  47612. * dI: Preprocessor Options.
  47613. (line 437)
  47614. * dM: Preprocessor Options.
  47615. (line 412)
  47616. * dN: Preprocessor Options.
  47617. (line 433)
  47618. * dp: Developer Options. (line 243)
  47619. * dP: Developer Options. (line 248)
  47620. * dU: Preprocessor Options.
  47621. (line 441)
  47622. * dumpfullversion: Developer Options. (line 1009)
  47623. * dumpmachine: Developer Options. (line 997)
  47624. * dumpspecs: Developer Options. (line 1014)
  47625. * dumpversion: Developer Options. (line 1001)
  47626. * dx: Developer Options. (line 252)
  47627. * dylib_file: Darwin Options. (line 196)
  47628. * dylinker_install_name: Darwin Options. (line 196)
  47629. * dynamic: Darwin Options. (line 196)
  47630. * dynamiclib: Darwin Options. (line 131)
  47631. * E: Overall Options. (line 190)
  47632. * E <1>: Link Options. (line 20)
  47633. * e: Link Options. (line 170)
  47634. * EB: ARC Options. (line 597)
  47635. * EB <1>: C-SKY Options. (line 29)
  47636. * EB <2>: MIPS Options. (line 7)
  47637. * EL: ARC Options. (line 606)
  47638. * EL <1>: C-SKY Options. (line 31)
  47639. * EL <2>: MIPS Options. (line 10)
  47640. * entry: Link Options. (line 170)
  47641. * exported_symbols_list: Darwin Options. (line 196)
  47642. * F: Darwin Options. (line 31)
  47643. * fabi-compat-version: C++ Dialect Options.
  47644. (line 85)
  47645. * fabi-version: C++ Dialect Options.
  47646. (line 24)
  47647. * faccess-control: C++ Dialect Options.
  47648. (line 101)
  47649. * fada-spec-parent: Overall Options. (line 396)
  47650. * faggressive-loop-optimizations: Optimize Options. (line 537)
  47651. * falign-functions: Optimize Options. (line 1647)
  47652. * falign-jumps: Optimize Options. (line 1726)
  47653. * falign-labels: Optimize Options. (line 1688)
  47654. * falign-loops: Optimize Options. (line 1708)
  47655. * faligned-new: C++ Dialect Options.
  47656. (line 105)
  47657. * fallow-parameterless-variadic-functions: C Dialect Options.
  47658. (line 243)
  47659. * fasan-shadow-offset: Instrumentation Options.
  47660. (line 404)
  47661. * fasm: C Dialect Options. (line 250)
  47662. * fassociative-math: Optimize Options. (line 2213)
  47663. * fasynchronous-unwind-tables: Code Gen Options. (line 156)
  47664. * fauto-inc-dec: Optimize Options. (line 559)
  47665. * fauto-profile: Optimize Options. (line 2088)
  47666. * fbranch-count-reg: Optimize Options. (line 417)
  47667. * fbranch-probabilities: Optimize Options. (line 2358)
  47668. * fbranch-target-load-optimize: Optimize Options. (line 2525)
  47669. * fbranch-target-load-optimize2: Optimize Options. (line 2531)
  47670. * fbtr-bb-exclusive: Optimize Options. (line 2535)
  47671. * fbuiltin: C Dialect Options. (line 264)
  47672. * fcall-saved: Code Gen Options. (line 454)
  47673. * fcall-used: Code Gen Options. (line 440)
  47674. * fcaller-saves: Optimize Options. (line 917)
  47675. * fcf-protection: Instrumentation Options.
  47676. (line 477)
  47677. * fchar8_t: C++ Dialect Options.
  47678. (line 115)
  47679. * fcheck-new: C++ Dialect Options.
  47680. (line 158)
  47681. * fchecking: Developer Options. (line 688)
  47682. * fcode-hoisting: Optimize Options. (line 958)
  47683. * fcombine-stack-adjustments: Optimize Options. (line 929)
  47684. * fcommon: Code Gen Options. (line 231)
  47685. * fcommon <1>: Common Variable Attributes.
  47686. (line 176)
  47687. * fcompare-debug: Developer Options. (line 782)
  47688. * fcompare-debug-second: Developer Options. (line 808)
  47689. * fcompare-elim: Optimize Options. (line 2031)
  47690. * fconcepts: C++ Dialect Options.
  47691. (line 168)
  47692. * fcond-mismatch: C Dialect Options. (line 394)
  47693. * fconserve-stack: Optimize Options. (line 948)
  47694. * fconstant-string-class: Objective-C and Objective-C++ Dialect Options.
  47695. (line 30)
  47696. * fconstexpr-depth: C++ Dialect Options.
  47697. (line 175)
  47698. * fconstexpr-loop-limit: C++ Dialect Options.
  47699. (line 181)
  47700. * fconstexpr-ops-limit: C++ Dialect Options.
  47701. (line 186)
  47702. * fcprop-registers: Optimize Options. (line 2043)
  47703. * fcrossjumping: Optimize Options. (line 552)
  47704. * fcse-follow-jumps: Optimize Options. (line 471)
  47705. * fcse-skip-blocks: Optimize Options. (line 480)
  47706. * fcx-fortran-rules: Optimize Options. (line 2345)
  47707. * fcx-limited-range: Optimize Options. (line 2333)
  47708. * fdata-sections: Optimize Options. (line 2496)
  47709. * fdbg-cnt: Developer Options. (line 918)
  47710. * fdbg-cnt-list: Developer Options. (line 915)
  47711. * fdce: Optimize Options. (line 565)
  47712. * fdebug-cpp: Preprocessor Options.
  47713. (line 448)
  47714. * fdebug-prefix-map: Debugging Options. (line 140)
  47715. * fdebug-types-section: Debugging Options. (line 191)
  47716. * fdeclone-ctor-dtor: Optimize Options. (line 588)
  47717. * fdeduce-init-list: C++ Dialect Options.
  47718. (line 195)
  47719. * fdefer-pop: Optimize Options. (line 218)
  47720. * fdelayed-branch: Optimize Options. (line 741)
  47721. * fdelete-dead-exceptions: Code Gen Options. (line 141)
  47722. * fdelete-null-pointer-checks: Optimize Options. (line 599)
  47723. * fdevirtualize: Optimize Options. (line 620)
  47724. * fdevirtualize-at-ltrans: Optimize Options. (line 637)
  47725. * fdevirtualize-speculatively: Optimize Options. (line 627)
  47726. * fdiagnostics-color: Diagnostic Message Formatting Options.
  47727. (line 40)
  47728. * fdiagnostics-format: Diagnostic Message Formatting Options.
  47729. (line 242)
  47730. * fdiagnostics-generate-patch: Diagnostic Message Formatting Options.
  47731. (line 187)
  47732. * fdiagnostics-minimum-margin-width: Diagnostic Message Formatting Options.
  47733. (line 156)
  47734. * fdiagnostics-parseable-fixits: Diagnostic Message Formatting Options.
  47735. (line 160)
  47736. * fdiagnostics-show-caret: Diagnostic Message Formatting Options.
  47737. (line 129)
  47738. * fdiagnostics-show-labels: Diagnostic Message Formatting Options.
  47739. (line 138)
  47740. * fdiagnostics-show-line-numbers: Diagnostic Message Formatting Options.
  47741. (line 151)
  47742. * fdiagnostics-show-location: Diagnostic Message Formatting Options.
  47743. (line 25)
  47744. * fdiagnostics-show-option: Diagnostic Message Formatting Options.
  47745. (line 123)
  47746. * fdiagnostics-show-template-tree: Diagnostic Message Formatting Options.
  47747. (line 205)
  47748. * fdirectives-only: Preprocessor Options.
  47749. (line 202)
  47750. * fdisable-: Developer Options. (line 619)
  47751. * fdollars-in-identifiers: Preprocessor Options.
  47752. (line 223)
  47753. * fdollars-in-identifiers <1>: Interoperation. (line 141)
  47754. * fdpic: SH Options. (line 388)
  47755. * fdse: Optimize Options. (line 569)
  47756. * fdump-ada-spec: Overall Options. (line 391)
  47757. * fdump-debug: Developer Options. (line 256)
  47758. * fdump-earlydebug: Developer Options. (line 260)
  47759. * fdump-final-insns: Developer Options. (line 776)
  47760. * fdump-go-spec: Overall Options. (line 400)
  47761. * fdump-ipa: Developer Options. (line 286)
  47762. * fdump-lang: Developer Options. (line 318)
  47763. * fdump-lang-all: Developer Options. (line 318)
  47764. * fdump-noaddr: Developer Options. (line 264)
  47765. * fdump-passes: Developer Options. (line 336)
  47766. * fdump-rtl-alignments: Developer Options. (line 48)
  47767. * fdump-rtl-all: Developer Options. (line 229)
  47768. * fdump-rtl-asmcons: Developer Options. (line 51)
  47769. * fdump-rtl-auto_inc_dec: Developer Options. (line 55)
  47770. * fdump-rtl-barriers: Developer Options. (line 59)
  47771. * fdump-rtl-bbpart: Developer Options. (line 62)
  47772. * fdump-rtl-bbro: Developer Options. (line 65)
  47773. * fdump-rtl-btl2: Developer Options. (line 69)
  47774. * fdump-rtl-btl2 <1>: Developer Options. (line 69)
  47775. * fdump-rtl-bypass: Developer Options. (line 73)
  47776. * fdump-rtl-ce1: Developer Options. (line 84)
  47777. * fdump-rtl-ce2: Developer Options. (line 84)
  47778. * fdump-rtl-ce3: Developer Options. (line 84)
  47779. * fdump-rtl-combine: Developer Options. (line 76)
  47780. * fdump-rtl-compgotos: Developer Options. (line 79)
  47781. * fdump-rtl-cprop_hardreg: Developer Options. (line 88)
  47782. * fdump-rtl-csa: Developer Options. (line 91)
  47783. * fdump-rtl-cse1: Developer Options. (line 95)
  47784. * fdump-rtl-cse2: Developer Options. (line 95)
  47785. * fdump-rtl-dbr: Developer Options. (line 102)
  47786. * fdump-rtl-dce: Developer Options. (line 99)
  47787. * fdump-rtl-dce1: Developer Options. (line 106)
  47788. * fdump-rtl-dce2: Developer Options. (line 106)
  47789. * fdump-rtl-dfinish: Developer Options. (line 225)
  47790. * fdump-rtl-dfinit: Developer Options. (line 225)
  47791. * fdump-rtl-eh: Developer Options. (line 110)
  47792. * fdump-rtl-eh_ranges: Developer Options. (line 113)
  47793. * fdump-rtl-expand: Developer Options. (line 116)
  47794. * fdump-rtl-fwprop1: Developer Options. (line 120)
  47795. * fdump-rtl-fwprop2: Developer Options. (line 120)
  47796. * fdump-rtl-gcse1: Developer Options. (line 125)
  47797. * fdump-rtl-gcse2: Developer Options. (line 125)
  47798. * fdump-rtl-init-regs: Developer Options. (line 129)
  47799. * fdump-rtl-initvals: Developer Options. (line 132)
  47800. * fdump-rtl-into_cfglayout: Developer Options. (line 135)
  47801. * fdump-rtl-ira: Developer Options. (line 138)
  47802. * fdump-rtl-jump: Developer Options. (line 141)
  47803. * fdump-rtl-loop2: Developer Options. (line 144)
  47804. * fdump-rtl-mach: Developer Options. (line 148)
  47805. * fdump-rtl-mode_sw: Developer Options. (line 152)
  47806. * fdump-rtl-outof_cfglayout: Developer Options. (line 158)
  47807. * fdump-rtl-PASS: Developer Options. (line 35)
  47808. * fdump-rtl-peephole2: Developer Options. (line 161)
  47809. * fdump-rtl-postreload: Developer Options. (line 164)
  47810. * fdump-rtl-pro_and_epilogue: Developer Options. (line 167)
  47811. * fdump-rtl-ree: Developer Options. (line 175)
  47812. * fdump-rtl-regclass: Developer Options. (line 225)
  47813. * fdump-rtl-rnreg: Developer Options. (line 155)
  47814. * fdump-rtl-sched1: Developer Options. (line 171)
  47815. * fdump-rtl-sched2: Developer Options. (line 171)
  47816. * fdump-rtl-seqabstr: Developer Options. (line 178)
  47817. * fdump-rtl-shorten: Developer Options. (line 181)
  47818. * fdump-rtl-sibling: Developer Options. (line 184)
  47819. * fdump-rtl-sms: Developer Options. (line 195)
  47820. * fdump-rtl-split1: Developer Options. (line 191)
  47821. * fdump-rtl-split2: Developer Options. (line 191)
  47822. * fdump-rtl-split3: Developer Options. (line 191)
  47823. * fdump-rtl-split4: Developer Options. (line 191)
  47824. * fdump-rtl-split5: Developer Options. (line 191)
  47825. * fdump-rtl-stack: Developer Options. (line 199)
  47826. * fdump-rtl-subreg1: Developer Options. (line 205)
  47827. * fdump-rtl-subreg2: Developer Options. (line 205)
  47828. * fdump-rtl-subregs_of_mode_finish: Developer Options. (line 225)
  47829. * fdump-rtl-subregs_of_mode_init: Developer Options. (line 225)
  47830. * fdump-rtl-unshare: Developer Options. (line 209)
  47831. * fdump-rtl-vartrack: Developer Options. (line 212)
  47832. * fdump-rtl-vregs: Developer Options. (line 215)
  47833. * fdump-rtl-web: Developer Options. (line 218)
  47834. * fdump-statistics: Developer Options. (line 340)
  47835. * fdump-tree: Developer Options. (line 353)
  47836. * fdump-tree-all: Developer Options. (line 353)
  47837. * fdump-unnumbered: Developer Options. (line 274)
  47838. * fdump-unnumbered-links: Developer Options. (line 280)
  47839. * fdwarf2-cfi-asm: Debugging Options. (line 396)
  47840. * fearly-inlining: Optimize Options. (line 317)
  47841. * felide-constructors: C++ Dialect Options.
  47842. (line 216)
  47843. * felide-type: Diagnostic Message Formatting Options.
  47844. (line 225)
  47845. * feliminate-unused-debug-symbols: Debugging Options. (line 121)
  47846. * feliminate-unused-debug-types: Debugging Options. (line 400)
  47847. * femit-class-debug-always: Debugging Options. (line 125)
  47848. * femit-struct-debug-baseonly: Debugging Options. (line 327)
  47849. * femit-struct-debug-detailed: Debugging Options. (line 354)
  47850. * femit-struct-debug-reduced: Debugging Options. (line 340)
  47851. * fenable-: Developer Options. (line 619)
  47852. * fenforce-eh-specs: C++ Dialect Options.
  47853. (line 227)
  47854. * fexceptions: Code Gen Options. (line 119)
  47855. * fexcess-precision: Optimize Options. (line 2139)
  47856. * fexec-charset: Preprocessor Options.
  47857. (line 266)
  47858. * fexpensive-optimizations: Optimize Options. (line 644)
  47859. * fext-numeric-literals: C++ Dialect Options.
  47860. (line 836)
  47861. * fextended-identifiers: Preprocessor Options.
  47862. (line 226)
  47863. * fextern-tls-init: C++ Dialect Options.
  47864. (line 237)
  47865. * ffast-math: Optimize Options. (line 2163)
  47866. * ffat-lto-objects: Optimize Options. (line 2008)
  47867. * ffile-prefix-map: Overall Options. (line 371)
  47868. * ffinite-math-only: Optimize Options. (line 2240)
  47869. * ffix-and-continue: Darwin Options. (line 104)
  47870. * ffixed: Code Gen Options. (line 428)
  47871. * ffloat-store: Optimize Options. (line 2125)
  47872. * ffloat-store <1>: Disappointments. (line 77)
  47873. * fforward-propagate: Optimize Options. (line 225)
  47874. * ffp-contract: Optimize Options. (line 234)
  47875. * ffp-int-builtin-inexact: Optimize Options. (line 2312)
  47876. * ffreestanding: Standards. (line 99)
  47877. * ffreestanding <1>: C Dialect Options. (line 312)
  47878. * ffreestanding <2>: Warning Options. (line 290)
  47879. * ffreestanding <3>: Common Function Attributes.
  47880. (line 350)
  47881. * ffunction-cse: Optimize Options. (line 431)
  47882. * ffunction-sections: Optimize Options. (line 2496)
  47883. * fgcse: Optimize Options. (line 494)
  47884. * fgcse-after-reload: Optimize Options. (line 530)
  47885. * fgcse-las: Optimize Options. (line 523)
  47886. * fgcse-lm: Optimize Options. (line 505)
  47887. * fgcse-sm: Optimize Options. (line 514)
  47888. * fgimple: C Dialect Options. (line 298)
  47889. * fgnu-keywords: C++ Dialect Options.
  47890. (line 257)
  47891. * fgnu-runtime: Objective-C and Objective-C++ Dialect Options.
  47892. (line 39)
  47893. * fgnu-tm: C Dialect Options. (line 351)
  47894. * fgnu-unique: Code Gen Options. (line 162)
  47895. * fgnu89-inline: C Dialect Options. (line 188)
  47896. * fgraphite-identity: Optimize Options. (line 1231)
  47897. * fguess-branch-probability: Optimize Options. (line 1527)
  47898. * fhoist-adjacent-loads: Optimize Options. (line 988)
  47899. * fhosted: C Dialect Options. (line 304)
  47900. * fident: Code Gen Options. (line 258)
  47901. * fif-conversion: Optimize Options. (line 573)
  47902. * fif-conversion2: Optimize Options. (line 582)
  47903. * fiji: AMD GCN Options. (line 13)
  47904. * filelist: Darwin Options. (line 196)
  47905. * fimplement-inlines: C++ Dialect Options.
  47906. (line 277)
  47907. * fimplicit-inline-templates: C++ Dialect Options.
  47908. (line 271)
  47909. * fimplicit-templates: C++ Dialect Options.
  47910. (line 263)
  47911. * findirect-data: Darwin Options. (line 104)
  47912. * findirect-inlining: Optimize Options. (line 289)
  47913. * finhibit-size-directive: Code Gen Options. (line 261)
  47914. * finline: Optimize Options. (line 272)
  47915. * finline-functions: Optimize Options. (line 297)
  47916. * finline-functions-called-once: Optimize Options. (line 309)
  47917. * finline-limit: Optimize Options. (line 333)
  47918. * finline-small-functions: Optimize Options. (line 280)
  47919. * finput-charset: Preprocessor Options.
  47920. (line 279)
  47921. * finstrument-functions: Instrumentation Options.
  47922. (line 670)
  47923. * finstrument-functions <1>: Common Function Attributes.
  47924. (line 620)
  47925. * finstrument-functions-exclude-file-list: Instrumentation Options.
  47926. (line 706)
  47927. * finstrument-functions-exclude-function-list: Instrumentation Options.
  47928. (line 727)
  47929. * fipa-bit-cp: Optimize Options. (line 1048)
  47930. * fipa-cp: Optimize Options. (line 1029)
  47931. * fipa-cp-clone: Optimize Options. (line 1038)
  47932. * fipa-icf: Optimize Options. (line 1058)
  47933. * fipa-profile: Optimize Options. (line 1021)
  47934. * fipa-pta: Optimize Options. (line 1015)
  47935. * fipa-pure-const: Optimize Options. (line 999)
  47936. * fipa-ra: Optimize Options. (line 935)
  47937. * fipa-reference: Optimize Options. (line 1003)
  47938. * fipa-reference-addressable: Optimize Options. (line 1007)
  47939. * fipa-sra: Optimize Options. (line 326)
  47940. * fipa-stack-alignment: Optimize Options. (line 1011)
  47941. * fipa-vrp: Optimize Options. (line 1053)
  47942. * fira-algorithm: Optimize Options. (line 678)
  47943. * fira-hoist-pressure: Optimize Options. (line 707)
  47944. * fira-loop-pressure: Optimize Options. (line 714)
  47945. * fira-region: Optimize Options. (line 686)
  47946. * fira-share-save-slots: Optimize Options. (line 722)
  47947. * fira-share-spill-slots: Optimize Options. (line 728)
  47948. * fira-verbose: Developer Options. (line 845)
  47949. * fisolate-erroneous-paths-attribute: Optimize Options. (line 1140)
  47950. * fisolate-erroneous-paths-dereference: Optimize Options. (line 1132)
  47951. * fivar-visibility: Objective-C and Objective-C++ Dialect Options.
  47952. (line 161)
  47953. * fivopts: Optimize Options. (line 1356)
  47954. * fjump-tables: Code Gen Options. (line 420)
  47955. * fkeep-inline-dllexport: Optimize Options. (line 358)
  47956. * fkeep-inline-functions: Optimize Options. (line 364)
  47957. * fkeep-inline-functions <1>: Inline. (line 51)
  47958. * fkeep-static-consts: Optimize Options. (line 375)
  47959. * fkeep-static-functions: Optimize Options. (line 371)
  47960. * flat_namespace: Darwin Options. (line 196)
  47961. * flax-vector-conversions: C Dialect Options. (line 399)
  47962. * fleading-underscore: Code Gen Options. (line 484)
  47963. * flifetime-dse: Optimize Options. (line 658)
  47964. * flinker-output: Link Options. (line 25)
  47965. * flive-patching: Optimize Options. (line 1072)
  47966. * flive-range-shrinkage: Optimize Options. (line 673)
  47967. * flocal-ivars: Objective-C and Objective-C++ Dialect Options.
  47968. (line 152)
  47969. * floop-block: Optimize Options. (line 1225)
  47970. * floop-interchange: Optimize Options. (line 1309)
  47971. * floop-nest-optimize: Optimize Options. (line 1239)
  47972. * floop-parallelize-all: Optimize Options. (line 1245)
  47973. * floop-strip-mine: Optimize Options. (line 1225)
  47974. * floop-unroll-and-jam: Optimize Options. (line 1326)
  47975. * flra-remat: Optimize Options. (line 734)
  47976. * flto: Optimize Options. (line 1782)
  47977. * flto-compression-level: Optimize Options. (line 1982)
  47978. * flto-odr-type-merging: Optimize Options. (line 1977)
  47979. * flto-partition: Optimize Options. (line 1963)
  47980. * flto-report: Developer Options. (line 851)
  47981. * flto-report-wpa: Developer Options. (line 859)
  47982. * fmacro-prefix-map: Preprocessor Options.
  47983. (line 257)
  47984. * fmath-errno: Optimize Options. (line 2177)
  47985. * fmax-errors: Warning Options. (line 18)
  47986. * fmem-report: Developer Options. (line 863)
  47987. * fmem-report-wpa: Developer Options. (line 867)
  47988. * fmerge-all-constants: Optimize Options. (line 394)
  47989. * fmerge-constants: Optimize Options. (line 384)
  47990. * fmerge-debug-strings: Debugging Options. (line 133)
  47991. * fmessage-length: Diagnostic Message Formatting Options.
  47992. (line 14)
  47993. * fmodulo-sched: Optimize Options. (line 405)
  47994. * fmodulo-sched-allow-regmoves: Optimize Options. (line 410)
  47995. * fmove-loop-invariants: Optimize Options. (line 2456)
  47996. * fms-extensions: C Dialect Options. (line 366)
  47997. * fms-extensions <1>: C++ Dialect Options.
  47998. (line 282)
  47999. * fms-extensions <2>: Unnamed Fields. (line 36)
  48000. * fnew-inheriting-ctors: C++ Dialect Options.
  48001. (line 287)
  48002. * fnew-ttp-matching: C++ Dialect Options.
  48003. (line 293)
  48004. * fnext-runtime: Objective-C and Objective-C++ Dialect Options.
  48005. (line 43)
  48006. * fnil-receivers: Objective-C and Objective-C++ Dialect Options.
  48007. (line 49)
  48008. * fno-access-control: C++ Dialect Options.
  48009. (line 101)
  48010. * fno-asm: C Dialect Options. (line 250)
  48011. * fno-branch-count-reg: Optimize Options. (line 417)
  48012. * fno-builtin: C Dialect Options. (line 264)
  48013. * fno-builtin <1>: Warning Options. (line 290)
  48014. * fno-builtin <2>: Common Function Attributes.
  48015. (line 350)
  48016. * fno-builtin <3>: Other Builtins. (line 21)
  48017. * fno-canonical-system-headers: Preprocessor Options.
  48018. (line 230)
  48019. * fno-char8_t: C++ Dialect Options.
  48020. (line 115)
  48021. * fno-checking: Developer Options. (line 688)
  48022. * fno-common: Code Gen Options. (line 231)
  48023. * fno-common <1>: Common Variable Attributes.
  48024. (line 176)
  48025. * fno-compare-debug: Developer Options. (line 782)
  48026. * fno-debug-types-section: Debugging Options. (line 191)
  48027. * fno-default-inline: Inline. (line 68)
  48028. * fno-defer-pop: Optimize Options. (line 218)
  48029. * fno-diagnostics-show-caret: Diagnostic Message Formatting Options.
  48030. (line 129)
  48031. * fno-diagnostics-show-labels: Diagnostic Message Formatting Options.
  48032. (line 138)
  48033. * fno-diagnostics-show-line-numbers: Diagnostic Message Formatting Options.
  48034. (line 151)
  48035. * fno-diagnostics-show-option: Diagnostic Message Formatting Options.
  48036. (line 123)
  48037. * fno-dwarf2-cfi-asm: Debugging Options. (line 396)
  48038. * fno-elide-constructors: C++ Dialect Options.
  48039. (line 216)
  48040. * fno-elide-type: Diagnostic Message Formatting Options.
  48041. (line 225)
  48042. * fno-eliminate-unused-debug-types: Debugging Options. (line 400)
  48043. * fno-enforce-eh-specs: C++ Dialect Options.
  48044. (line 227)
  48045. * fno-ext-numeric-literals: C++ Dialect Options.
  48046. (line 836)
  48047. * fno-extern-tls-init: C++ Dialect Options.
  48048. (line 237)
  48049. * fno-fp-int-builtin-inexact: Optimize Options. (line 2312)
  48050. * fno-function-cse: Optimize Options. (line 431)
  48051. * fno-gnu-keywords: C++ Dialect Options.
  48052. (line 257)
  48053. * fno-gnu-unique: Code Gen Options. (line 162)
  48054. * fno-guess-branch-probability: Optimize Options. (line 1527)
  48055. * fno-ident: Code Gen Options. (line 258)
  48056. * fno-implement-inlines: C++ Dialect Options.
  48057. (line 277)
  48058. * fno-implement-inlines <1>: C++ Interface. (line 66)
  48059. * fno-implicit-inline-templates: C++ Dialect Options.
  48060. (line 271)
  48061. * fno-implicit-templates: C++ Dialect Options.
  48062. (line 263)
  48063. * fno-implicit-templates <1>: Template Instantiation.
  48064. (line 118)
  48065. * fno-inline: Optimize Options. (line 272)
  48066. * fno-ira-share-save-slots: Optimize Options. (line 722)
  48067. * fno-ira-share-spill-slots: Optimize Options. (line 728)
  48068. * fno-jump-tables: Code Gen Options. (line 420)
  48069. * fno-keep-inline-dllexport: Optimize Options. (line 358)
  48070. * fno-lifetime-dse: Optimize Options. (line 658)
  48071. * fno-local-ivars: Objective-C and Objective-C++ Dialect Options.
  48072. (line 152)
  48073. * fno-math-errno: Optimize Options. (line 2177)
  48074. * fno-merge-debug-strings: Debugging Options. (line 133)
  48075. * fno-nil-receivers: Objective-C and Objective-C++ Dialect Options.
  48076. (line 49)
  48077. * fno-nonansi-builtins: C++ Dialect Options.
  48078. (line 300)
  48079. * fno-operator-names: C++ Dialect Options.
  48080. (line 316)
  48081. * fno-optional-diags: C++ Dialect Options.
  48082. (line 320)
  48083. * fno-peephole: Optimize Options. (line 1518)
  48084. * fno-peephole2: Optimize Options. (line 1518)
  48085. * fno-plt: Code Gen Options. (line 402)
  48086. * fno-pretty-templates: C++ Dialect Options.
  48087. (line 330)
  48088. * fno-printf-return-value: Optimize Options. (line 1495)
  48089. * fno-rtti: C++ Dialect Options.
  48090. (line 347)
  48091. * fno-sanitize-recover: Instrumentation Options.
  48092. (line 413)
  48093. * fno-sanitize=all: Instrumentation Options.
  48094. (line 398)
  48095. * fno-sched-interblock: Optimize Options. (line 767)
  48096. * fno-sched-spec: Optimize Options. (line 772)
  48097. * fno-set-stack-executable: x86 Windows Options.
  48098. (line 46)
  48099. * fno-show-column: Diagnostic Message Formatting Options.
  48100. (line 237)
  48101. * fno-signed-bitfields: C Dialect Options. (line 432)
  48102. * fno-signed-zeros: Optimize Options. (line 2252)
  48103. * fno-stack-limit: Instrumentation Options.
  48104. (line 582)
  48105. * fno-threadsafe-statics: C++ Dialect Options.
  48106. (line 402)
  48107. * fno-toplevel-reorder: Optimize Options. (line 1747)
  48108. * fno-trapping-math: Optimize Options. (line 2262)
  48109. * fno-unsigned-bitfields: C Dialect Options. (line 432)
  48110. * fno-use-cxa-get-exception-ptr: C++ Dialect Options.
  48111. (line 415)
  48112. * fno-var-tracking-assignments: Debugging Options. (line 160)
  48113. * fno-var-tracking-assignments-toggle: Developer Options. (line 829)
  48114. * fno-weak: C++ Dialect Options.
  48115. (line 477)
  48116. * fno-working-directory: Preprocessor Options.
  48117. (line 314)
  48118. * fno-writable-relocated-rdata: x86 Windows Options.
  48119. (line 53)
  48120. * fno-zero-initialized-in-bss: Optimize Options. (line 442)
  48121. * fnon-call-exceptions: Code Gen Options. (line 133)
  48122. * fnonansi-builtins: C++ Dialect Options.
  48123. (line 300)
  48124. * fnothrow-opt: C++ Dialect Options.
  48125. (line 305)
  48126. * fobjc-abi-version: Objective-C and Objective-C++ Dialect Options.
  48127. (line 56)
  48128. * fobjc-call-cxx-cdtors: Objective-C and Objective-C++ Dialect Options.
  48129. (line 67)
  48130. * fobjc-direct-dispatch: Objective-C and Objective-C++ Dialect Options.
  48131. (line 92)
  48132. * fobjc-exceptions: Objective-C and Objective-C++ Dialect Options.
  48133. (line 96)
  48134. * fobjc-gc: Objective-C and Objective-C++ Dialect Options.
  48135. (line 104)
  48136. * fobjc-nilcheck: Objective-C and Objective-C++ Dialect Options.
  48137. (line 110)
  48138. * fobjc-std: Objective-C and Objective-C++ Dialect Options.
  48139. (line 119)
  48140. * fomit-frame-pointer: Optimize Options. (line 245)
  48141. * fopenacc: C Dialect Options. (line 323)
  48142. * fopenacc-dim: C Dialect Options. (line 332)
  48143. * fopenmp: C Dialect Options. (line 338)
  48144. * fopenmp-simd: C Dialect Options. (line 347)
  48145. * foperator-names: C++ Dialect Options.
  48146. (line 316)
  48147. * fopt-info: Developer Options. (line 459)
  48148. * foptimize-sibling-calls: Optimize Options. (line 260)
  48149. * foptimize-strlen: Optimize Options. (line 265)
  48150. * foptional-diags: C++ Dialect Options.
  48151. (line 320)
  48152. * force_cpusubtype_ALL: Darwin Options. (line 135)
  48153. * force_flat_namespace: Darwin Options. (line 196)
  48154. * fpack-struct: Code Gen Options. (line 471)
  48155. * fpartial-inlining: Optimize Options. (line 1470)
  48156. * fpatchable-function-entry: Instrumentation Options.
  48157. (line 739)
  48158. * fpcc-struct-return: Code Gen Options. (line 175)
  48159. * fpcc-struct-return <1>: Incompatibilities. (line 170)
  48160. * fpch-deps: Preprocessor Options.
  48161. (line 289)
  48162. * fpch-preprocess: Preprocessor Options.
  48163. (line 297)
  48164. * fpeel-loops: Optimize Options. (line 2448)
  48165. * fpeephole: Optimize Options. (line 1518)
  48166. * fpeephole2: Optimize Options. (line 1518)
  48167. * fpermissive: C++ Dialect Options.
  48168. (line 325)
  48169. * fpermitted-flt-eval-methods: C Dialect Options. (line 205)
  48170. * fpermitted-flt-eval-methods=c11: C Dialect Options. (line 205)
  48171. * fpermitted-flt-eval-methods=ts-18661-3: C Dialect Options. (line 205)
  48172. * fpic: Code Gen Options. (line 359)
  48173. * fPIC: Code Gen Options. (line 380)
  48174. * fpie: Code Gen Options. (line 393)
  48175. * fPIE: Code Gen Options. (line 393)
  48176. * fplan9-extensions: C Dialect Options. (line 384)
  48177. * fplan9-extensions <1>: Unnamed Fields. (line 43)
  48178. * fplt: Code Gen Options. (line 402)
  48179. * fplugin: Overall Options. (line 380)
  48180. * fplugin-arg: Overall Options. (line 387)
  48181. * fpost-ipa-mem-report: Developer Options. (line 872)
  48182. * fpre-ipa-mem-report: Developer Options. (line 871)
  48183. * fpredictive-commoning: Optimize Options. (line 1477)
  48184. * fprefetch-loop-arrays: Optimize Options. (line 1485)
  48185. * fpreprocessed: Preprocessor Options.
  48186. (line 189)
  48187. * fpretty-templates: C++ Dialect Options.
  48188. (line 330)
  48189. * fprintf-return-value: Optimize Options. (line 1495)
  48190. * fprofile-abs-path: Instrumentation Options.
  48191. (line 106)
  48192. * fprofile-arcs: Instrumentation Options.
  48193. (line 30)
  48194. * fprofile-arcs <1>: Other Builtins. (line 563)
  48195. * fprofile-correction: Optimize Options. (line 2050)
  48196. * fprofile-dir: Instrumentation Options.
  48197. (line 112)
  48198. * fprofile-exclude-files: Instrumentation Options.
  48199. (line 179)
  48200. * fprofile-filter-files: Instrumentation Options.
  48201. (line 171)
  48202. * fprofile-generate: Instrumentation Options.
  48203. (line 137)
  48204. * fprofile-reorder-functions: Optimize Options. (line 2388)
  48205. * fprofile-report: Developer Options. (line 876)
  48206. * fprofile-update: Instrumentation Options.
  48207. (line 154)
  48208. * fprofile-use: Optimize Options. (line 2060)
  48209. * fprofile-values: Optimize Options. (line 2378)
  48210. * fpu: RX Options. (line 17)
  48211. * frandom-seed: Developer Options. (line 693)
  48212. * freciprocal-math: Optimize Options. (line 2230)
  48213. * frecord-gcc-switches: Code Gen Options. (line 347)
  48214. * free: Optimize Options. (line 650)
  48215. * freg-struct-return: Code Gen Options. (line 193)
  48216. * frename-registers: Optimize Options. (line 2407)
  48217. * freorder-blocks: Optimize Options. (line 1548)
  48218. * freorder-blocks-algorithm: Optimize Options. (line 1554)
  48219. * freorder-blocks-and-partition: Optimize Options. (line 1565)
  48220. * freorder-functions: Optimize Options. (line 1582)
  48221. * freplace-objc-classes: Objective-C and Objective-C++ Dialect Options.
  48222. (line 130)
  48223. * frepo: C++ Dialect Options.
  48224. (line 342)
  48225. * frepo <1>: Template Instantiation.
  48226. (line 94)
  48227. * freport-bug: Developer Options. (line 270)
  48228. * frerun-cse-after-loop: Optimize Options. (line 488)
  48229. * freschedule-modulo-scheduled-loops: Optimize Options. (line 866)
  48230. * frounding-math: Optimize Options. (line 2277)
  48231. * frtti: C++ Dialect Options.
  48232. (line 347)
  48233. * fsanitize-address-use-after-scope: Instrumentation Options.
  48234. (line 449)
  48235. * fsanitize-coverage=trace-cmp: Instrumentation Options.
  48236. (line 464)
  48237. * fsanitize-coverage=trace-pc: Instrumentation Options.
  48238. (line 460)
  48239. * fsanitize-recover: Instrumentation Options.
  48240. (line 413)
  48241. * fsanitize-sections: Instrumentation Options.
  48242. (line 409)
  48243. * fsanitize-undefined-trap-on-error: Instrumentation Options.
  48244. (line 453)
  48245. * fsanitize=address: Instrumentation Options.
  48246. (line 187)
  48247. * fsanitize=alignment: Instrumentation Options.
  48248. (line 324)
  48249. * fsanitize=bool: Instrumentation Options.
  48250. (line 362)
  48251. * fsanitize=bounds: Instrumentation Options.
  48252. (line 311)
  48253. * fsanitize=bounds-strict: Instrumentation Options.
  48254. (line 317)
  48255. * fsanitize=builtin: Instrumentation Options.
  48256. (line 386)
  48257. * fsanitize=enum: Instrumentation Options.
  48258. (line 367)
  48259. * fsanitize=float-cast-overflow: Instrumentation Options.
  48260. (line 342)
  48261. * fsanitize=float-divide-by-zero: Instrumentation Options.
  48262. (line 336)
  48263. * fsanitize=integer-divide-by-zero: Instrumentation Options.
  48264. (line 274)
  48265. * fsanitize=kernel-address: Instrumentation Options.
  48266. (line 201)
  48267. * fsanitize=leak: Instrumentation Options.
  48268. (line 239)
  48269. * fsanitize=nonnull-attribute: Instrumentation Options.
  48270. (line 350)
  48271. * fsanitize=null: Instrumentation Options.
  48272. (line 288)
  48273. * fsanitize=object-size: Instrumentation Options.
  48274. (line 331)
  48275. * fsanitize=pointer-compare: Instrumentation Options.
  48276. (line 205)
  48277. * fsanitize=pointer-overflow: Instrumentation Options.
  48278. (line 380)
  48279. * fsanitize=pointer-subtract: Instrumentation Options.
  48280. (line 215)
  48281. * fsanitize=return: Instrumentation Options.
  48282. (line 296)
  48283. * fsanitize=returns-nonnull-attribute: Instrumentation Options.
  48284. (line 356)
  48285. * fsanitize=shift: Instrumentation Options.
  48286. (line 254)
  48287. * fsanitize=shift-base: Instrumentation Options.
  48288. (line 267)
  48289. * fsanitize=shift-exponent: Instrumentation Options.
  48290. (line 262)
  48291. * fsanitize=signed-integer-overflow: Instrumentation Options.
  48292. (line 302)
  48293. * fsanitize=thread: Instrumentation Options.
  48294. (line 225)
  48295. * fsanitize=undefined: Instrumentation Options.
  48296. (line 249)
  48297. * fsanitize=unreachable: Instrumentation Options.
  48298. (line 278)
  48299. * fsanitize=vla-bound: Instrumentation Options.
  48300. (line 284)
  48301. * fsanitize=vptr: Instrumentation Options.
  48302. (line 373)
  48303. * fsave-optimization-record: Developer Options. (line 565)
  48304. * fsched-critical-path-heuristic: Optimize Options. (line 832)
  48305. * fsched-dep-count-heuristic: Optimize Options. (line 859)
  48306. * fsched-group-heuristic: Optimize Options. (line 826)
  48307. * fsched-interblock: Optimize Options. (line 767)
  48308. * fsched-last-insn-heuristic: Optimize Options. (line 852)
  48309. * fsched-pressure: Optimize Options. (line 777)
  48310. * fsched-rank-heuristic: Optimize Options. (line 845)
  48311. * fsched-spec: Optimize Options. (line 772)
  48312. * fsched-spec-insn-heuristic: Optimize Options. (line 838)
  48313. * fsched-spec-load: Optimize Options. (line 786)
  48314. * fsched-spec-load-dangerous: Optimize Options. (line 791)
  48315. * fsched-stalled-insns: Optimize Options. (line 797)
  48316. * fsched-stalled-insns-dep: Optimize Options. (line 807)
  48317. * fsched-verbose: Developer Options. (line 605)
  48318. * fsched2-use-superblocks: Optimize Options. (line 816)
  48319. * fschedule-fusion: Optimize Options. (line 2417)
  48320. * fschedule-insns: Optimize Options. (line 748)
  48321. * fschedule-insns2: Optimize Options. (line 758)
  48322. * fsection-anchors: Optimize Options. (line 2543)
  48323. * fsel-sched-pipelining: Optimize Options. (line 879)
  48324. * fsel-sched-pipelining-outer-loops: Optimize Options. (line 884)
  48325. * fselective-scheduling: Optimize Options. (line 871)
  48326. * fselective-scheduling2: Optimize Options. (line 875)
  48327. * fsemantic-interposition: Optimize Options. (line 889)
  48328. * fset-stack-executable: x86 Windows Options.
  48329. (line 46)
  48330. * fshort-enums: Code Gen Options. (line 211)
  48331. * fshort-enums <1>: Structures unions enumerations and bit-fields implementation.
  48332. (line 48)
  48333. * fshort-enums <2>: Common Type Attributes.
  48334. (line 288)
  48335. * fshort-enums <3>: Non-bugs. (line 42)
  48336. * fshort-wchar: Code Gen Options. (line 221)
  48337. * fshow-column: Diagnostic Message Formatting Options.
  48338. (line 237)
  48339. * fshrink-wrap: Optimize Options. (line 906)
  48340. * fshrink-wrap-separate: Optimize Options. (line 911)
  48341. * fsignaling-nans: Optimize Options. (line 2297)
  48342. * fsigned-bitfields: C Dialect Options. (line 432)
  48343. * fsigned-bitfields <1>: Non-bugs. (line 57)
  48344. * fsigned-char: C Dialect Options. (line 422)
  48345. * fsigned-char <1>: Characters implementation.
  48346. (line 31)
  48347. * fsigned-zeros: Optimize Options. (line 2252)
  48348. * fsimd-cost-model: Optimize Options. (line 1430)
  48349. * fsingle-precision-constant: Optimize Options. (line 2329)
  48350. * fsized-deallocation: C++ Dialect Options.
  48351. (line 362)
  48352. * fsplit-ivs-in-unroller: Optimize Options. (line 1451)
  48353. * fsplit-loops: Optimize Options. (line 2460)
  48354. * fsplit-paths: Optimize Options. (line 1446)
  48355. * fsplit-stack: Instrumentation Options.
  48356. (line 599)
  48357. * fsplit-stack <1>: Common Function Attributes.
  48358. (line 670)
  48359. * fsplit-wide-types: Optimize Options. (line 463)
  48360. * fssa-backprop: Optimize Options. (line 1164)
  48361. * fssa-phiopt: Optimize Options. (line 1170)
  48362. * fsso-struct: C Dialect Options. (line 438)
  48363. * fstack-check: Instrumentation Options.
  48364. (line 525)
  48365. * fstack-clash-protection: Instrumentation Options.
  48366. (line 567)
  48367. * fstack-limit-register: Instrumentation Options.
  48368. (line 582)
  48369. * fstack-limit-symbol: Instrumentation Options.
  48370. (line 582)
  48371. * fstack-protector: Instrumentation Options.
  48372. (line 504)
  48373. * fstack-protector-all: Instrumentation Options.
  48374. (line 513)
  48375. * fstack-protector-explicit: Instrumentation Options.
  48376. (line 521)
  48377. * fstack-protector-strong: Instrumentation Options.
  48378. (line 516)
  48379. * fstack-usage: Developer Options. (line 880)
  48380. * fstack_reuse: Code Gen Options. (line 15)
  48381. * fstats: Developer Options. (line 909)
  48382. * fstdarg-opt: Optimize Options. (line 2539)
  48383. * fstore-merging: Optimize Options. (line 1380)
  48384. * fstrict-aliasing: Optimize Options. (line 1597)
  48385. * fstrict-enums: C++ Dialect Options.
  48386. (line 372)
  48387. * fstrict-overflow: Code Gen Options. (line 115)
  48388. * fstrict-volatile-bitfields: Code Gen Options. (line 595)
  48389. * fstrong-eval-order: C++ Dialect Options.
  48390. (line 381)
  48391. * fsync-libcalls: Code Gen Options. (line 627)
  48392. * fsyntax-only: Warning Options. (line 14)
  48393. * ftabstop: Preprocessor Options.
  48394. (line 234)
  48395. * ftemplate-backtrace-limit: C++ Dialect Options.
  48396. (line 389)
  48397. * ftemplate-depth: C++ Dialect Options.
  48398. (line 393)
  48399. * ftest-coverage: Instrumentation Options.
  48400. (line 97)
  48401. * fthread-jumps: Optimize Options. (line 454)
  48402. * fthreadsafe-statics: C++ Dialect Options.
  48403. (line 402)
  48404. * ftime-report: Developer Options. (line 837)
  48405. * ftime-report-details: Developer Options. (line 841)
  48406. * ftls-model: Code Gen Options. (line 495)
  48407. * ftoplevel-reorder: Optimize Options. (line 1747)
  48408. * ftracer: Optimize Options. (line 2425)
  48409. * ftrack-macro-expansion: Preprocessor Options.
  48410. (line 240)
  48411. * ftrampolines: Code Gen Options. (line 506)
  48412. * ftrapping-math: Optimize Options. (line 2262)
  48413. * ftrapv: Code Gen Options. (line 91)
  48414. * ftree-bit-ccp: Optimize Options. (line 1152)
  48415. * ftree-builtin-call-dce: Optimize Options. (line 1192)
  48416. * ftree-ccp: Optimize Options. (line 1159)
  48417. * ftree-ch: Optimize Options. (line 1212)
  48418. * ftree-coalesce-vars: Optimize Options. (line 1251)
  48419. * ftree-copy-prop: Optimize Options. (line 994)
  48420. * ftree-dce: Optimize Options. (line 1188)
  48421. * ftree-dominator-opts: Optimize Options. (line 1198)
  48422. * ftree-dse: Optimize Options. (line 1205)
  48423. * ftree-forwprop: Optimize Options. (line 973)
  48424. * ftree-fre: Optimize Options. (line 977)
  48425. * ftree-loop-distribute-patterns: Optimize Options. (line 1287)
  48426. * ftree-loop-distribution: Optimize Options. (line 1268)
  48427. * ftree-loop-if-convert: Optimize Options. (line 1261)
  48428. * ftree-loop-im: Optimize Options. (line 1332)
  48429. * ftree-loop-ivcanon: Optimize Options. (line 1341)
  48430. * ftree-loop-linear: Optimize Options. (line 1225)
  48431. * ftree-loop-optimize: Optimize Options. (line 1219)
  48432. * ftree-loop-vectorize: Optimize Options. (line 1406)
  48433. * ftree-parallelize-loops: Optimize Options. (line 1361)
  48434. * ftree-partial-pre: Optimize Options. (line 969)
  48435. * ftree-phiprop: Optimize Options. (line 984)
  48436. * ftree-pre: Optimize Options. (line 965)
  48437. * ftree-pta: Optimize Options. (line 1370)
  48438. * ftree-reassoc: Optimize Options. (line 954)
  48439. * ftree-scev-cprop: Optimize Options. (line 1347)
  48440. * ftree-sink: Optimize Options. (line 1148)
  48441. * ftree-slp-vectorize: Optimize Options. (line 1411)
  48442. * ftree-slsr: Optimize Options. (line 1395)
  48443. * ftree-sra: Optimize Options. (line 1374)
  48444. * ftree-switch-conversion: Optimize Options. (line 1175)
  48445. * ftree-tail-merge: Optimize Options. (line 1180)
  48446. * ftree-ter: Optimize Options. (line 1387)
  48447. * ftree-vectorize: Optimize Options. (line 1401)
  48448. * ftree-vrp: Optimize Options. (line 1437)
  48449. * funconstrained-commons: Optimize Options. (line 546)
  48450. * funit-at-a-time: Optimize Options. (line 1740)
  48451. * funroll-all-loops: Optimize Options. (line 2442)
  48452. * funroll-loops: Optimize Options. (line 2432)
  48453. * funsafe-math-optimizations: Optimize Options. (line 2195)
  48454. * funsigned-bitfields: C Dialect Options. (line 432)
  48455. * funsigned-bitfields <1>: Structures unions enumerations and bit-fields implementation.
  48456. (line 17)
  48457. * funsigned-bitfields <2>: Non-bugs. (line 57)
  48458. * funsigned-char: C Dialect Options. (line 404)
  48459. * funsigned-char <1>: Characters implementation.
  48460. (line 31)
  48461. * funswitch-loops: Optimize Options. (line 2466)
  48462. * funwind-tables: Code Gen Options. (line 149)
  48463. * fuse-cxa-atexit: C++ Dialect Options.
  48464. (line 408)
  48465. * fuse-cxa-get-exception-ptr: C++ Dialect Options.
  48466. (line 415)
  48467. * fuse-ld=bfd: Link Options. (line 75)
  48468. * fuse-ld=gold: Link Options. (line 78)
  48469. * fuse-ld=lld: Link Options. (line 81)
  48470. * fuse-linker-plugin: Optimize Options. (line 1990)
  48471. * fvar-tracking: Debugging Options. (line 150)
  48472. * fvar-tracking-assignments: Debugging Options. (line 160)
  48473. * fvar-tracking-assignments-toggle: Developer Options. (line 829)
  48474. * fvariable-expansion-in-unroller: Optimize Options. (line 1465)
  48475. * fvect-cost-model: Optimize Options. (line 1416)
  48476. * fverbose-asm: Code Gen Options. (line 268)
  48477. * fversion-loops-for-strides: Optimize Options. (line 2473)
  48478. * fvisibility: Code Gen Options. (line 530)
  48479. * fvisibility-inlines-hidden: C++ Dialect Options.
  48480. (line 420)
  48481. * fvisibility-ms-compat: C++ Dialect Options.
  48482. (line 448)
  48483. * fvpt: Optimize Options. (line 2395)
  48484. * fvtable-verify: Instrumentation Options.
  48485. (line 617)
  48486. * fvtv-counts: Instrumentation Options.
  48487. (line 653)
  48488. * fvtv-debug: Instrumentation Options.
  48489. (line 640)
  48490. * fweak: C++ Dialect Options.
  48491. (line 477)
  48492. * fweb: Optimize Options. (line 1760)
  48493. * fwhole-program: Optimize Options. (line 1771)
  48494. * fwide-exec-charset: Preprocessor Options.
  48495. (line 271)
  48496. * fworking-directory: Preprocessor Options.
  48497. (line 314)
  48498. * fwrapv: Code Gen Options. (line 99)
  48499. * fwrapv-pointer: Code Gen Options. (line 109)
  48500. * fwritable-relocated-rdata: x86 Windows Options.
  48501. (line 53)
  48502. * fzero-initialized-in-bss: Optimize Options. (line 442)
  48503. * fzero-link: Objective-C and Objective-C++ Dialect Options.
  48504. (line 140)
  48505. * g: Debugging Options. (line 25)
  48506. * G: ARC Options. (line 416)
  48507. * G <1>: M32R/D Options. (line 57)
  48508. * G <2>: MIPS Options. (line 460)
  48509. * G <3>: Nios II Options. (line 9)
  48510. * G <4>: RS/6000 and PowerPC Options.
  48511. (line 718)
  48512. * G <5>: System V Options. (line 10)
  48513. * gas-loc-support: Debugging Options. (line 220)
  48514. * gas-locview-support: Debugging Options. (line 236)
  48515. * gcolumn-info: Debugging Options. (line 248)
  48516. * gdescribe-dies: Debugging Options. (line 178)
  48517. * gdwarf: Debugging Options. (line 45)
  48518. * gen-decls: Objective-C and Objective-C++ Dialect Options.
  48519. (line 166)
  48520. * gfull: Darwin Options. (line 69)
  48521. * ggdb: Debugging Options. (line 38)
  48522. * ggnu-pubnames: Debugging Options. (line 186)
  48523. * ginline-points: Debugging Options. (line 307)
  48524. * ginternal-reset-location-views: Debugging Options. (line 296)
  48525. * gno-as-loc-support: Debugging Options. (line 232)
  48526. * gno-column-info: Debugging Options. (line 248)
  48527. * gno-inline-points: Debugging Options. (line 307)
  48528. * gno-internal-reset-location-views: Debugging Options. (line 296)
  48529. * gno-record-gcc-switches: Debugging Options. (line 201)
  48530. * gno-statement-frontiers: Debugging Options. (line 253)
  48531. * gno-strict-dwarf: Debugging Options. (line 216)
  48532. * gno-variable-location-views: Debugging Options. (line 264)
  48533. * gpubnames: Debugging Options. (line 183)
  48534. * grecord-gcc-switches: Debugging Options. (line 201)
  48535. * gsplit-dwarf: Debugging Options. (line 171)
  48536. * gstabs: Debugging Options. (line 63)
  48537. * gstabs+: Debugging Options. (line 71)
  48538. * gstatement-frontiers: Debugging Options. (line 253)
  48539. * gstrict-dwarf: Debugging Options. (line 210)
  48540. * gtoggle: Developer Options. (line 821)
  48541. * gused: Darwin Options. (line 64)
  48542. * gvariable-location-views: Debugging Options. (line 264)
  48543. * gvariable-location-views=incompat5: Debugging Options. (line 264)
  48544. * gvms: Debugging Options. (line 90)
  48545. * gxcoff: Debugging Options. (line 77)
  48546. * gxcoff+: Debugging Options. (line 82)
  48547. * gz: Debugging Options. (line 316)
  48548. * H: Preprocessor Options.
  48549. (line 396)
  48550. * headerpad_max_install_names: Darwin Options. (line 196)
  48551. * help: Overall Options. (line 220)
  48552. * I: Directory Options. (line 13)
  48553. * I-: Directory Options. (line 65)
  48554. * idirafter: Directory Options. (line 13)
  48555. * iframework: Darwin Options. (line 57)
  48556. * imacros: Preprocessor Options.
  48557. (line 57)
  48558. * image_base: Darwin Options. (line 196)
  48559. * imultilib: Directory Options. (line 98)
  48560. * include: Preprocessor Options.
  48561. (line 46)
  48562. * init: Darwin Options. (line 196)
  48563. * install_name: Darwin Options. (line 196)
  48564. * iplugindir=: Directory Options. (line 113)
  48565. * iprefix: Directory Options. (line 80)
  48566. * iquote: Directory Options. (line 13)
  48567. * isysroot: Directory Options. (line 92)
  48568. * isystem: Directory Options. (line 13)
  48569. * iwithprefix: Directory Options. (line 86)
  48570. * iwithprefixbefore: Directory Options. (line 86)
  48571. * keep_private_externs: Darwin Options. (line 196)
  48572. * l: Link Options. (line 85)
  48573. * L: Directory Options. (line 118)
  48574. * lobjc: Link Options. (line 111)
  48575. * M: Preprocessor Options.
  48576. (line 77)
  48577. * m: RS/6000 and PowerPC Options.
  48578. (line 526)
  48579. * m1: SH Options. (line 9)
  48580. * m10: PDP-11 Options. (line 29)
  48581. * m128bit-long-double: x86 Options. (line 549)
  48582. * m16: x86 Options. (line 1384)
  48583. * m16-bit: CRIS Options. (line 64)
  48584. * m16-bit <1>: NDS32 Options. (line 51)
  48585. * m1reg-: Adapteva Epiphany Options.
  48586. (line 131)
  48587. * m2: SH Options. (line 12)
  48588. * m210: MCore Options. (line 43)
  48589. * m2a: SH Options. (line 30)
  48590. * m2a-nofpu: SH Options. (line 18)
  48591. * m2a-single: SH Options. (line 26)
  48592. * m2a-single-only: SH Options. (line 22)
  48593. * m3: SH Options. (line 34)
  48594. * m31: S/390 and zSeries Options.
  48595. (line 86)
  48596. * m32: Nvidia PTX Options. (line 10)
  48597. * m32 <1>: RS/6000 and PowerPC Options.
  48598. (line 250)
  48599. * m32 <2>: SPARC Options. (line 315)
  48600. * m32 <3>: TILE-Gx Options. (line 23)
  48601. * m32 <4>: TILEPro Options. (line 13)
  48602. * m32 <5>: x86 Options. (line 1384)
  48603. * m32-bit: CRIS Options. (line 64)
  48604. * m32bit-doubles: RL78 Options. (line 73)
  48605. * m32bit-doubles <1>: RX Options. (line 10)
  48606. * m32r: M32R/D Options. (line 15)
  48607. * m32r2: M32R/D Options. (line 9)
  48608. * m32rx: M32R/D Options. (line 12)
  48609. * m340: MCore Options. (line 43)
  48610. * m3dnow: x86 Options. (line 775)
  48611. * m3dnowa: x86 Options. (line 776)
  48612. * m3e: SH Options. (line 37)
  48613. * m4: SH Options. (line 51)
  48614. * m4-100: SH Options. (line 54)
  48615. * m4-100-nofpu: SH Options. (line 57)
  48616. * m4-100-single: SH Options. (line 61)
  48617. * m4-100-single-only: SH Options. (line 65)
  48618. * m4-200: SH Options. (line 69)
  48619. * m4-200-nofpu: SH Options. (line 72)
  48620. * m4-200-single: SH Options. (line 76)
  48621. * m4-200-single-only: SH Options. (line 80)
  48622. * m4-300: SH Options. (line 84)
  48623. * m4-300-nofpu: SH Options. (line 87)
  48624. * m4-300-single: SH Options. (line 91)
  48625. * m4-300-single-only: SH Options. (line 95)
  48626. * m4-340: SH Options. (line 99)
  48627. * m4-500: SH Options. (line 102)
  48628. * m4-nofpu: SH Options. (line 40)
  48629. * m4-single: SH Options. (line 47)
  48630. * m4-single-only: SH Options. (line 43)
  48631. * m40: PDP-11 Options. (line 23)
  48632. * m45: PDP-11 Options. (line 26)
  48633. * m4a: SH Options. (line 118)
  48634. * m4a-nofpu: SH Options. (line 106)
  48635. * m4a-single: SH Options. (line 114)
  48636. * m4a-single-only: SH Options. (line 110)
  48637. * m4al: SH Options. (line 121)
  48638. * m4byte-functions: MCore Options. (line 27)
  48639. * m5200: M680x0 Options. (line 144)
  48640. * m5206e: M680x0 Options. (line 153)
  48641. * m528x: M680x0 Options. (line 157)
  48642. * m5307: M680x0 Options. (line 161)
  48643. * m5407: M680x0 Options. (line 165)
  48644. * m64: Nvidia PTX Options. (line 10)
  48645. * m64 <1>: RS/6000 and PowerPC Options.
  48646. (line 250)
  48647. * m64 <2>: S/390 and zSeries Options.
  48648. (line 86)
  48649. * m64 <3>: SPARC Options. (line 315)
  48650. * m64 <4>: TILE-Gx Options. (line 23)
  48651. * m64 <5>: x86 Options. (line 1384)
  48652. * m64bit-doubles: RL78 Options. (line 73)
  48653. * m64bit-doubles <1>: RX Options. (line 10)
  48654. * m68000: M680x0 Options. (line 93)
  48655. * m68010: M680x0 Options. (line 101)
  48656. * m68020: M680x0 Options. (line 107)
  48657. * m68020-40: M680x0 Options. (line 175)
  48658. * m68020-60: M680x0 Options. (line 184)
  48659. * m68030: M680x0 Options. (line 112)
  48660. * m68040: M680x0 Options. (line 117)
  48661. * m68060: M680x0 Options. (line 126)
  48662. * m68881: M680x0 Options. (line 194)
  48663. * m8-bit: CRIS Options. (line 64)
  48664. * m8bit-idiv: x86 Options. (line 1309)
  48665. * m8byte-align: V850 Options. (line 170)
  48666. * m96bit-long-double: x86 Options. (line 549)
  48667. * mA6: ARC Options. (line 23)
  48668. * mA7: ARC Options. (line 30)
  48669. * mabi: AArch64 Options. (line 9)
  48670. * mabi <1>: ARM Options. (line 9)
  48671. * mabi <2>: RISC-V Options. (line 17)
  48672. * mabi <3>: RS/6000 and PowerPC Options.
  48673. (line 557)
  48674. * mabi <4>: x86 Options. (line 1003)
  48675. * mabi=32: MIPS Options. (line 156)
  48676. * mabi=64: MIPS Options. (line 156)
  48677. * mabi=eabi: MIPS Options. (line 156)
  48678. * mabi=elfv1: RS/6000 and PowerPC Options.
  48679. (line 578)
  48680. * mabi=elfv2: RS/6000 and PowerPC Options.
  48681. (line 584)
  48682. * mabi=gnu: MMIX Options. (line 20)
  48683. * mabi=ibmlongdouble: RS/6000 and PowerPC Options.
  48684. (line 562)
  48685. * mabi=ieeelongdouble: RS/6000 and PowerPC Options.
  48686. (line 570)
  48687. * mabi=mmixware: MMIX Options. (line 20)
  48688. * mabi=n32: MIPS Options. (line 156)
  48689. * mabi=o64: MIPS Options. (line 156)
  48690. * mabicalls: MIPS Options. (line 192)
  48691. * mabm: x86 Options. (line 778)
  48692. * mabort-on-noreturn: ARM Options. (line 654)
  48693. * mabs=2008: MIPS Options. (line 300)
  48694. * mabs=legacy: MIPS Options. (line 300)
  48695. * mabsdata: AVR Options. (line 159)
  48696. * mabsdiff: MeP Options. (line 7)
  48697. * mac0: PDP-11 Options. (line 16)
  48698. * macc-4: FRV Options. (line 139)
  48699. * macc-8: FRV Options. (line 143)
  48700. * maccumulate-args: AVR Options. (line 166)
  48701. * maccumulate-outgoing-args: SH Options. (line 314)
  48702. * maccumulate-outgoing-args <1>: x86 Options. (line 1047)
  48703. * maddress-mode=long: x86 Options. (line 1434)
  48704. * maddress-mode=short: x86 Options. (line 1439)
  48705. * maddress-space-conversion: SPU Options. (line 68)
  48706. * mads: RS/6000 and PowerPC Options.
  48707. (line 618)
  48708. * madx: x86 Options. (line 779)
  48709. * maes: x86 Options. (line 756)
  48710. * maix-struct-return: RS/6000 and PowerPC Options.
  48711. (line 550)
  48712. * maix32: RS/6000 and PowerPC Options.
  48713. (line 288)
  48714. * maix64: RS/6000 and PowerPC Options.
  48715. (line 288)
  48716. * malign-300: H8/300 Options. (line 41)
  48717. * malign-call: ARC Options. (line 435)
  48718. * malign-data: x86 Options. (line 589)
  48719. * malign-double: x86 Options. (line 534)
  48720. * malign-int: M680x0 Options. (line 261)
  48721. * malign-labels: FRV Options. (line 128)
  48722. * malign-loops: M32R/D Options. (line 73)
  48723. * malign-natural: RS/6000 and PowerPC Options.
  48724. (line 326)
  48725. * malign-power: RS/6000 and PowerPC Options.
  48726. (line 326)
  48727. * malign-stringops: x86 Options. (line 1183)
  48728. * mall-opts: MeP Options. (line 11)
  48729. * malloc-cc: FRV Options. (line 31)
  48730. * mallow-string-insns: RX Options. (line 150)
  48731. * mallregs: RL78 Options. (line 66)
  48732. * maltivec: RS/6000 and PowerPC Options.
  48733. (line 141)
  48734. * mam33: MN10300 Options. (line 17)
  48735. * mam33-2: MN10300 Options. (line 24)
  48736. * mam34: MN10300 Options. (line 27)
  48737. * manchor: C-SKY Options. (line 110)
  48738. * mandroid: GNU/Linux Options. (line 26)
  48739. * mannotate-align: ARC Options. (line 382)
  48740. * mapcs: ARM Options. (line 21)
  48741. * mapcs-frame: ARM Options. (line 13)
  48742. * mapp-regs: SPARC Options. (line 10)
  48743. * mapp-regs <1>: V850 Options. (line 181)
  48744. * mARC600: ARC Options. (line 23)
  48745. * mARC601: ARC Options. (line 27)
  48746. * mARC700: ARC Options. (line 30)
  48747. * march: AArch64 Options. (line 149)
  48748. * march <1>: AMD GCN Options. (line 9)
  48749. * march <2>: ARM Options. (line 80)
  48750. * march <3>: C6X Options. (line 7)
  48751. * march <4>: CRIS Options. (line 10)
  48752. * march <5>: HPPA Options. (line 9)
  48753. * march <6>: HPPA Options. (line 162)
  48754. * march <7>: M680x0 Options. (line 12)
  48755. * march <8>: MIPS Options. (line 14)
  48756. * march <9>: NDS32 Options. (line 64)
  48757. * march <10>: Nios II Options. (line 94)
  48758. * march <11>: Nvidia PTX Options. (line 13)
  48759. * march <12>: RISC-V Options. (line 54)
  48760. * march <13>: S/390 and zSeries Options.
  48761. (line 148)
  48762. * march <14>: x86 Options. (line 9)
  48763. * march=: C-SKY Options. (line 9)
  48764. * marclinux: ARC Options. (line 388)
  48765. * marclinux_prof: ARC Options. (line 395)
  48766. * margonaut: ARC Options. (line 593)
  48767. * marm: ARM Options. (line 726)
  48768. * mas100-syntax: RX Options. (line 76)
  48769. * masm-hex: MSP430 Options. (line 9)
  48770. * masm-syntax-unified: ARM Options. (line 827)
  48771. * masm=DIALECT: x86 Options. (line 483)
  48772. * matomic: ARC Options. (line 155)
  48773. * matomic-model=MODEL: SH Options. (line 193)
  48774. * matomic-updates: SPU Options. (line 83)
  48775. * mauto-litpools: Xtensa Options. (line 60)
  48776. * mauto-modify-reg: ARC Options. (line 438)
  48777. * mauto-pic: IA-64 Options. (line 50)
  48778. * maverage: MeP Options. (line 16)
  48779. * mavoid-indexed-addresses: RS/6000 and PowerPC Options.
  48780. (line 365)
  48781. * mavx: x86 Options. (line 744)
  48782. * mavx2: x86 Options. (line 745)
  48783. * mavx256-split-unaligned-load: x86 Options. (line 1317)
  48784. * mavx256-split-unaligned-store: x86 Options. (line 1317)
  48785. * mavx5124fmaps: x86 Options. (line 803)
  48786. * mavx5124vnniw: x86 Options. (line 805)
  48787. * mavx512bitalg: x86 Options. (line 799)
  48788. * mavx512bw: x86 Options. (line 751)
  48789. * mavx512cd: x86 Options. (line 749)
  48790. * mavx512dq: x86 Options. (line 752)
  48791. * mavx512er: x86 Options. (line 748)
  48792. * mavx512f: x86 Options. (line 746)
  48793. * mavx512ifma: x86 Options. (line 753)
  48794. * mavx512pf: x86 Options. (line 747)
  48795. * mavx512vbmi: x86 Options. (line 754)
  48796. * mavx512vbmi2: x86 Options. (line 794)
  48797. * mavx512vl: x86 Options. (line 750)
  48798. * mavx512vnni: x86 Options. (line 804)
  48799. * mavx512vpopcntdq: x86 Options. (line 802)
  48800. * max-vect-align: Adapteva Epiphany Options.
  48801. (line 119)
  48802. * mb: SH Options. (line 126)
  48803. * mbackchain: S/390 and zSeries Options.
  48804. (line 35)
  48805. * mbarrel-shift-enabled: LM32 Options. (line 9)
  48806. * mbarrel-shifter: ARC Options. (line 10)
  48807. * mbarrel_shifter: ARC Options. (line 613)
  48808. * mbase-addresses: MMIX Options. (line 53)
  48809. * mbased=: MeP Options. (line 20)
  48810. * mbbit-peephole: ARC Options. (line 441)
  48811. * mbe8: ARM Options. (line 72)
  48812. * mbig: RS/6000 and PowerPC Options.
  48813. (line 445)
  48814. * mbig-endian: AArch64 Options. (line 20)
  48815. * mbig-endian <1>: ARC Options. (line 596)
  48816. * mbig-endian <2>: ARM Options. (line 67)
  48817. * mbig-endian <3>: C6X Options. (line 13)
  48818. * mbig-endian <4>: C-SKY Options. (line 28)
  48819. * mbig-endian <5>: IA-64 Options. (line 9)
  48820. * mbig-endian <6>: MCore Options. (line 39)
  48821. * mbig-endian <7>: MicroBlaze Options. (line 56)
  48822. * mbig-endian <8>: NDS32 Options. (line 9)
  48823. * mbig-endian <9>: RS/6000 and PowerPC Options.
  48824. (line 445)
  48825. * mbig-endian <10>: TILE-Gx Options. (line 29)
  48826. * mbig-endian-data: RX Options. (line 42)
  48827. * mbig-switch: V850 Options. (line 176)
  48828. * mbigtable: SH Options. (line 141)
  48829. * mbionic: GNU/Linux Options. (line 22)
  48830. * mbit-align: RS/6000 and PowerPC Options.
  48831. (line 397)
  48832. * mbit-ops: CR16 Options. (line 25)
  48833. * mbitfield: M680x0 Options. (line 231)
  48834. * mbitops: MeP Options. (line 26)
  48835. * mbitops <1>: SH Options. (line 145)
  48836. * mblock-compare-inline-limit: RS/6000 and PowerPC Options.
  48837. (line 698)
  48838. * mblock-compare-inline-loop-limit: RS/6000 and PowerPC Options.
  48839. (line 704)
  48840. * mblock-move-inline-limit: RS/6000 and PowerPC Options.
  48841. (line 692)
  48842. * mbmi: x86 Options. (line 780)
  48843. * mbmi2: x86 Options. (line 781)
  48844. * mboard: OpenRISC Options. (line 9)
  48845. * mbranch-cost: Adapteva Epiphany Options.
  48846. (line 18)
  48847. * mbranch-cost <1>: AVR Options. (line 181)
  48848. * mbranch-cost <2>: MIPS Options. (line 785)
  48849. * mbranch-cost <3>: RISC-V Options. (line 9)
  48850. * mbranch-cost=: C-SKY Options. (line 143)
  48851. * mbranch-cost=NUM: SH Options. (line 334)
  48852. * mbranch-cost=NUMBER: M32R/D Options. (line 82)
  48853. * mbranch-hints: SPU Options. (line 29)
  48854. * mbranch-index: ARC Options. (line 329)
  48855. * mbranch-likely: MIPS Options. (line 792)
  48856. * mbranch-predict: MMIX Options. (line 48)
  48857. * mbranch-protection: AArch64 Options. (line 262)
  48858. * mbss-plt: RS/6000 and PowerPC Options.
  48859. (line 165)
  48860. * mbuild-constants: DEC Alpha Options. (line 141)
  48861. * mbwx: DEC Alpha Options. (line 163)
  48862. * mbypass-cache: Nios II Options. (line 103)
  48863. * mc68000: M680x0 Options. (line 93)
  48864. * mc68020: M680x0 Options. (line 107)
  48865. * mc=: MeP Options. (line 31)
  48866. * mcache: C-SKY Options. (line 77)
  48867. * mcache-block-size: NDS32 Options. (line 60)
  48868. * mcache-size: SPU Options. (line 75)
  48869. * mcache-volatile: Nios II Options. (line 109)
  48870. * mcall-eabi: RS/6000 and PowerPC Options.
  48871. (line 520)
  48872. * mcall-freebsd: RS/6000 and PowerPC Options.
  48873. (line 534)
  48874. * mcall-linux: RS/6000 and PowerPC Options.
  48875. (line 530)
  48876. * mcall-ms2sysv-xlogues: x86 Options. (line 1023)
  48877. * mcall-netbsd: RS/6000 and PowerPC Options.
  48878. (line 538)
  48879. * mcall-netbsd <1>: RS/6000 and PowerPC Options.
  48880. (line 542)
  48881. * mcall-prologues: AVR Options. (line 186)
  48882. * mcall-sysv: RS/6000 and PowerPC Options.
  48883. (line 512)
  48884. * mcall-sysv-eabi: RS/6000 and PowerPC Options.
  48885. (line 520)
  48886. * mcall-sysv-noeabi: RS/6000 and PowerPC Options.
  48887. (line 523)
  48888. * mcallee-super-interworking: ARM Options. (line 755)
  48889. * mcaller-copies: HPPA Options. (line 23)
  48890. * mcaller-super-interworking: ARM Options. (line 762)
  48891. * mcallgraph-data: MCore Options. (line 31)
  48892. * mcase-vector-pcrel: ARC Options. (line 450)
  48893. * mcbcond: SPARC Options. (line 260)
  48894. * mcbranch-force-delay-slot: SH Options. (line 349)
  48895. * mcc-init: CRIS Options. (line 42)
  48896. * mccrt: C-SKY Options. (line 139)
  48897. * mcfv4e: M680x0 Options. (line 169)
  48898. * mcheck-zero-division: MIPS Options. (line 570)
  48899. * mcix: DEC Alpha Options. (line 163)
  48900. * mcld: x86 Options. (line 856)
  48901. * mcldemote: x86 Options. (line 806)
  48902. * mclear-hwcap: Solaris 2 Options. (line 9)
  48903. * mclflushopt: x86 Options. (line 758)
  48904. * mclip: MeP Options. (line 35)
  48905. * mclwb: x86 Options. (line 759)
  48906. * mclzero: x86 Options. (line 792)
  48907. * mcmodel: NDS32 Options. (line 67)
  48908. * mcmodel <1>: SPARC Options. (line 320)
  48909. * mcmodel=kernel: x86 Options. (line 1418)
  48910. * mcmodel=large: AArch64 Options. (line 45)
  48911. * mcmodel=large <1>: RS/6000 and PowerPC Options.
  48912. (line 135)
  48913. * mcmodel=large <2>: TILE-Gx Options. (line 14)
  48914. * mcmodel=large <3>: x86 Options. (line 1430)
  48915. * mcmodel=medany: RISC-V Options. (line 105)
  48916. * mcmodel=medium: RS/6000 and PowerPC Options.
  48917. (line 130)
  48918. * mcmodel=medium <1>: x86 Options. (line 1423)
  48919. * mcmodel=medlow: RISC-V Options. (line 98)
  48920. * mcmodel=small: AArch64 Options. (line 39)
  48921. * mcmodel=small <1>: RS/6000 and PowerPC Options.
  48922. (line 126)
  48923. * mcmodel=small <2>: TILE-Gx Options. (line 9)
  48924. * mcmodel=small <3>: x86 Options. (line 1412)
  48925. * mcmodel=tiny: AArch64 Options. (line 34)
  48926. * mcmov: NDS32 Options. (line 21)
  48927. * mcmov <1>: OpenRISC Options. (line 24)
  48928. * mcmove: Adapteva Epiphany Options.
  48929. (line 23)
  48930. * mcmpb: RS/6000 and PowerPC Options.
  48931. (line 27)
  48932. * mcmse: ARM Options. (line 856)
  48933. * mcode-density: ARC Options. (line 163)
  48934. * mcode-density-frame: ARC Options. (line 511)
  48935. * mcode-readable: MIPS Options. (line 530)
  48936. * mcode-region: MSP430 Options. (line 93)
  48937. * mcompact-branches=always: MIPS Options. (line 804)
  48938. * mcompact-branches=never: MIPS Options. (line 804)
  48939. * mcompact-branches=optimal: MIPS Options. (line 804)
  48940. * mcompact-casesi: ARC Options. (line 454)
  48941. * mcompat-align-parm: RS/6000 and PowerPC Options.
  48942. (line 903)
  48943. * mcompress: FT32 Options. (line 26)
  48944. * mcond-exec: FRV Options. (line 187)
  48945. * mcond-move: FRV Options. (line 159)
  48946. * mconfig=: MeP Options. (line 39)
  48947. * mconsole: x86 Windows Options.
  48948. (line 9)
  48949. * mconst-align: CRIS Options. (line 55)
  48950. * mconst16: Xtensa Options. (line 10)
  48951. * mconstant-gp: IA-64 Options. (line 46)
  48952. * mconstpool: C-SKY Options. (line 127)
  48953. * mcop: MeP Options. (line 48)
  48954. * mcop32: MeP Options. (line 53)
  48955. * mcop64: MeP Options. (line 56)
  48956. * mcorea: Blackfin Options. (line 154)
  48957. * mcoreb: Blackfin Options. (line 161)
  48958. * mcp: C-SKY Options. (line 74)
  48959. * mcpu: AArch64 Options. (line 218)
  48960. * mcpu <1>: ARC Options. (line 18)
  48961. * mcpu <2>: ARM Options. (line 525)
  48962. * mcpu <3>: CRIS Options. (line 10)
  48963. * mcpu <4>: DEC Alpha Options. (line 215)
  48964. * mcpu <5>: FRV Options. (line 258)
  48965. * mcpu <6>: M680x0 Options. (line 28)
  48966. * mcpu <7>: picoChip Options. (line 9)
  48967. * mcpu <8>: RL78 Options. (line 32)
  48968. * mcpu <9>: RS/6000 and PowerPC Options.
  48969. (line 68)
  48970. * mcpu <10>: RX Options. (line 30)
  48971. * mcpu <11>: SPARC Options. (line 115)
  48972. * mcpu <12>: TILE-Gx Options. (line 18)
  48973. * mcpu <13>: TILEPro Options. (line 9)
  48974. * mcpu <14>: Visium Options. (line 33)
  48975. * mcpu <15>: x86 Options. (line 429)
  48976. * mcpu32: M680x0 Options. (line 135)
  48977. * mcpu=: Blackfin Options. (line 7)
  48978. * mcpu= <1>: C-SKY Options. (line 14)
  48979. * mcpu= <2>: M32C Options. (line 7)
  48980. * mcpu= <3>: MicroBlaze Options. (line 20)
  48981. * mcpu= <4>: MSP430 Options. (line 42)
  48982. * mcr16c: CR16 Options. (line 14)
  48983. * mcr16cplus: CR16 Options. (line 14)
  48984. * mcrc: MIPS Options. (line 416)
  48985. * mcrc32: x86 Options. (line 924)
  48986. * mcrypto: RS/6000 and PowerPC Options.
  48987. (line 182)
  48988. * mcsync-anomaly: Blackfin Options. (line 57)
  48989. * mcsync-anomaly <1>: Blackfin Options. (line 63)
  48990. * mctor-dtor: NDS32 Options. (line 81)
  48991. * mcustom-fpu-cfg: Nios II Options. (line 259)
  48992. * mcustom-INSN: Nios II Options. (line 139)
  48993. * mcx16: x86 Options. (line 897)
  48994. * MD: Preprocessor Options.
  48995. (line 169)
  48996. * mdalign: SH Options. (line 132)
  48997. * mdata-align: CRIS Options. (line 55)
  48998. * mdata-model: CR16 Options. (line 28)
  48999. * mdata-region: MSP430 Options. (line 93)
  49000. * mdc: MeP Options. (line 62)
  49001. * mdebug: M32R/D Options. (line 69)
  49002. * mdebug <1>: S/390 and zSeries Options.
  49003. (line 144)
  49004. * mdebug <2>: Visium Options. (line 7)
  49005. * mdebug-main=PREFIX: VMS Options. (line 13)
  49006. * mdec-asm: PDP-11 Options. (line 46)
  49007. * mdisable-callt: V850 Options. (line 92)
  49008. * mdisable-fpregs: HPPA Options. (line 34)
  49009. * mdisable-indexing: HPPA Options. (line 40)
  49010. * mdiv: C-SKY Options. (line 93)
  49011. * mdiv <1>: M680x0 Options. (line 206)
  49012. * mdiv <2>: MCore Options. (line 15)
  49013. * mdiv <3>: MeP Options. (line 65)
  49014. * mdiv <4>: RISC-V Options. (line 49)
  49015. * mdiv-rem: ARC Options. (line 160)
  49016. * mdiv=STRATEGY: SH Options. (line 284)
  49017. * mdivide-breaks: MIPS Options. (line 576)
  49018. * mdivide-enabled: LM32 Options. (line 12)
  49019. * mdivide-traps: MIPS Options. (line 576)
  49020. * mdivsi3_libfunc=NAME: SH Options. (line 320)
  49021. * mdll: x86 Windows Options.
  49022. (line 16)
  49023. * mdlmzb: RS/6000 and PowerPC Options.
  49024. (line 390)
  49025. * mdmx: MIPS Options. (line 376)
  49026. * mdouble: FRV Options. (line 48)
  49027. * mdouble-float: C-SKY Options. (line 42)
  49028. * mdouble-float <1>: MIPS Options. (line 288)
  49029. * mdpfp: ARC Options. (line 99)
  49030. * mdpfp-compact: ARC Options. (line 100)
  49031. * mdpfp-fast: ARC Options. (line 104)
  49032. * mdpfp_compact: ARC Options. (line 616)
  49033. * mdpfp_fast: ARC Options. (line 619)
  49034. * mdsp: C-SKY Options. (line 86)
  49035. * mdsp <1>: MIPS Options. (line 353)
  49036. * mdsp-packa: ARC Options. (line 335)
  49037. * mdspr2: MIPS Options. (line 359)
  49038. * mdsp_packa: ARC Options. (line 622)
  49039. * mdual-nops: SPU Options. (line 95)
  49040. * mdump-tune-features: x86 Options. (line 838)
  49041. * mdvbf: ARC Options. (line 340)
  49042. * mdwarf2-asm: IA-64 Options. (line 94)
  49043. * mdword: FRV Options. (line 40)
  49044. * mdword <1>: FRV Options. (line 44)
  49045. * mdynamic-no-pic: RS/6000 and PowerPC Options.
  49046. (line 450)
  49047. * mea: ARC Options. (line 112)
  49048. * mEA: ARC Options. (line 625)
  49049. * mea32: SPU Options. (line 60)
  49050. * mea64: SPU Options. (line 60)
  49051. * meabi: RS/6000 and PowerPC Options.
  49052. (line 637)
  49053. * mearly-cbranchsi: ARC Options. (line 476)
  49054. * mearly-stop-bits: IA-64 Options. (line 100)
  49055. * meb: MeP Options. (line 68)
  49056. * meb <1>: Moxie Options. (line 7)
  49057. * meb <2>: Nios II Options. (line 90)
  49058. * meb <3>: Score Options. (line 9)
  49059. * medsp: C-SKY Options. (line 87)
  49060. * mel: MeP Options. (line 71)
  49061. * mel <1>: Moxie Options. (line 11)
  49062. * mel <2>: Nios II Options. (line 90)
  49063. * mel <3>: Score Options. (line 12)
  49064. * melf: CRIS Options. (line 87)
  49065. * melf <1>: MMIX Options. (line 43)
  49066. * melrw: C-SKY Options. (line 60)
  49067. * memb: RS/6000 and PowerPC Options.
  49068. (line 632)
  49069. * membedded-data: MIPS Options. (line 517)
  49070. * memregs=: M32C Options. (line 21)
  49071. * mep: V850 Options. (line 16)
  49072. * mepsilon: MMIX Options. (line 15)
  49073. * merror-reloc: SPU Options. (line 10)
  49074. * mesa: S/390 and zSeries Options.
  49075. (line 94)
  49076. * metrax100: CRIS Options. (line 27)
  49077. * metrax4: CRIS Options. (line 27)
  49078. * meva: MIPS Options. (line 403)
  49079. * mexpand-adddi: ARC Options. (line 479)
  49080. * mexplicit-relocs: DEC Alpha Options. (line 176)
  49081. * mexplicit-relocs <1>: MIPS Options. (line 561)
  49082. * mexr: H8/300 Options. (line 28)
  49083. * mexr <1>: H8/300 Options. (line 33)
  49084. * mext-perf: NDS32 Options. (line 27)
  49085. * mext-perf2: NDS32 Options. (line 33)
  49086. * mext-string: NDS32 Options. (line 39)
  49087. * mextern-sdata: MIPS Options. (line 480)
  49088. * MF: Preprocessor Options.
  49089. (line 111)
  49090. * mf16c: x86 Options. (line 763)
  49091. * mfancy-math-387: x86 Options. (line 524)
  49092. * mfast-fp: Blackfin Options. (line 130)
  49093. * mfast-indirect-calls: HPPA Options. (line 52)
  49094. * mfast-sw-div: Nios II Options. (line 115)
  49095. * mfaster-structs: SPARC Options. (line 91)
  49096. * mfdiv: RISC-V Options. (line 42)
  49097. * mfdivdu: C-SKY Options. (line 48)
  49098. * mfdpic: FRV Options. (line 72)
  49099. * mfentry: x86 Options. (line 1256)
  49100. * mfentry-name: x86 Options. (line 1287)
  49101. * mfentry-section: x86 Options. (line 1291)
  49102. * mfix: DEC Alpha Options. (line 163)
  49103. * mfix-24k: MIPS Options. (line 641)
  49104. * mfix-and-continue: Darwin Options. (line 104)
  49105. * mfix-at697f: SPARC Options. (line 294)
  49106. * mfix-cortex-a53-835769: AArch64 Options. (line 104)
  49107. * mfix-cortex-a53-843419: AArch64 Options. (line 111)
  49108. * mfix-cortex-m3-ldrd: ARM Options. (line 796)
  49109. * mfix-gr712rc: SPARC Options. (line 307)
  49110. * mfix-r10000: MIPS Options. (line 663)
  49111. * mfix-r4000: MIPS Options. (line 647)
  49112. * mfix-r4400: MIPS Options. (line 657)
  49113. * mfix-r5900: MIPS Options. (line 674)
  49114. * mfix-rm7000: MIPS Options. (line 684)
  49115. * mfix-sb1: MIPS Options. (line 709)
  49116. * mfix-ut699: SPARC Options. (line 299)
  49117. * mfix-ut700: SPARC Options. (line 303)
  49118. * mfix-vr4120: MIPS Options. (line 689)
  49119. * mfix-vr4130: MIPS Options. (line 702)
  49120. * mfixed-cc: FRV Options. (line 35)
  49121. * mfixed-range: HPPA Options. (line 59)
  49122. * mfixed-range <1>: IA-64 Options. (line 105)
  49123. * mfixed-range <2>: SH Options. (line 327)
  49124. * mfixed-range <3>: SPU Options. (line 52)
  49125. * mflat: SPARC Options. (line 22)
  49126. * mflip-mips16: MIPS Options. (line 128)
  49127. * mflip-thumb: ARM Options. (line 738)
  49128. * mfloat-abi: ARM Options. (line 41)
  49129. * mfloat-ieee: DEC Alpha Options. (line 171)
  49130. * mfloat-vax: DEC Alpha Options. (line 171)
  49131. * mfloat128: RS/6000 and PowerPC Options.
  49132. (line 219)
  49133. * mfloat128-hardware: RS/6000 and PowerPC Options.
  49134. (line 241)
  49135. * mflush-func: MIPS Options. (line 776)
  49136. * mflush-func=NAME: M32R/D Options. (line 93)
  49137. * mflush-trap=NUMBER: M32R/D Options. (line 86)
  49138. * mfma: x86 Options. (line 764)
  49139. * mfma4: x86 Options. (line 767)
  49140. * mfmaf: SPARC Options. (line 267)
  49141. * mfmovd: SH Options. (line 148)
  49142. * mforce-indirect-call: x86 Options. (line 1012)
  49143. * mforce-no-pic: Xtensa Options. (line 41)
  49144. * mfp-exceptions: MIPS Options. (line 824)
  49145. * mfp-mode: Adapteva Epiphany Options.
  49146. (line 71)
  49147. * mfp-reg: DEC Alpha Options. (line 25)
  49148. * mfp-ret-in-387: x86 Options. (line 514)
  49149. * mfp-rounding-mode: DEC Alpha Options. (line 85)
  49150. * mfp-trap-mode: DEC Alpha Options. (line 63)
  49151. * mfp16-format: ARM Options. (line 632)
  49152. * mfp32: MIPS Options. (line 258)
  49153. * mfp64: MIPS Options. (line 261)
  49154. * mfpmath: Optimize Options. (line 2156)
  49155. * mfpmath <1>: x86 Options. (line 432)
  49156. * mfpr-32: FRV Options. (line 15)
  49157. * mfpr-64: FRV Options. (line 19)
  49158. * mfprnd: RS/6000 and PowerPC Options.
  49159. (line 27)
  49160. * mfpu: ARC Options. (line 231)
  49161. * mfpu <1>: ARM Options. (line 604)
  49162. * mfpu <2>: PDP-11 Options. (line 9)
  49163. * mfpu <3>: SPARC Options. (line 34)
  49164. * mfpu <4>: Visium Options. (line 19)
  49165. * mfpu=: C-SKY Options. (line 53)
  49166. * mfpxx: MIPS Options. (line 264)
  49167. * mfract-convert-truncate: AVR Options. (line 273)
  49168. * mframe-header-opt: MIPS Options. (line 885)
  49169. * mfriz: RS/6000 and PowerPC Options.
  49170. (line 874)
  49171. * mfsca: SH Options. (line 365)
  49172. * mfsgsbase: x86 Options. (line 760)
  49173. * mfsmuld: SPARC Options. (line 274)
  49174. * mfsrra: SH Options. (line 374)
  49175. * mft32b: FT32 Options. (line 23)
  49176. * mfull-regs: NDS32 Options. (line 18)
  49177. * mfull-toc: RS/6000 and PowerPC Options.
  49178. (line 261)
  49179. * mfunction-return: x86 Options. (line 1359)
  49180. * mfused-madd: IA-64 Options. (line 88)
  49181. * mfused-madd <1>: MIPS Options. (line 624)
  49182. * mfused-madd <2>: RS/6000 and PowerPC Options.
  49183. (line 374)
  49184. * mfused-madd <3>: S/390 and zSeries Options.
  49185. (line 174)
  49186. * mfused-madd <4>: SH Options. (line 356)
  49187. * mfused-madd <5>: Xtensa Options. (line 19)
  49188. * mfxsr: x86 Options. (line 783)
  49189. * MG: Preprocessor Options.
  49190. (line 122)
  49191. * mg: VAX Options. (line 17)
  49192. * mg10: RL78 Options. (line 62)
  49193. * mg13: RL78 Options. (line 62)
  49194. * mg14: RL78 Options. (line 62)
  49195. * mgas: HPPA Options. (line 75)
  49196. * mgas-isr-prologues: AVR Options. (line 190)
  49197. * mgcc-abi: V850 Options. (line 148)
  49198. * mgeneral-regs-only: AArch64 Options. (line 24)
  49199. * mgeneral-regs-only <1>: ARM Options. (line 57)
  49200. * mgeneral-regs-only <2>: x86 Options. (line 1335)
  49201. * mgfni: x86 Options. (line 795)
  49202. * mghs: V850 Options. (line 127)
  49203. * mginv: MIPS Options. (line 421)
  49204. * mglibc: GNU/Linux Options. (line 9)
  49205. * mgnu: VAX Options. (line 13)
  49206. * mgnu-as: IA-64 Options. (line 18)
  49207. * mgnu-asm: PDP-11 Options. (line 49)
  49208. * mgnu-attribute: RS/6000 and PowerPC Options.
  49209. (line 591)
  49210. * mgnu-ld: HPPA Options. (line 111)
  49211. * mgnu-ld <1>: IA-64 Options. (line 23)
  49212. * mgomp: Nvidia PTX Options. (line 53)
  49213. * mgotplt: CRIS Options. (line 81)
  49214. * mgp32: MIPS Options. (line 252)
  49215. * mgp64: MIPS Options. (line 255)
  49216. * mgpopt: MIPS Options. (line 502)
  49217. * mgpopt <1>: Nios II Options. (line 16)
  49218. * mgpr-32: FRV Options. (line 7)
  49219. * mgpr-64: FRV Options. (line 11)
  49220. * mgprel-ro: FRV Options. (line 99)
  49221. * mgprel-sec: Nios II Options. (line 65)
  49222. * mh: H8/300 Options. (line 14)
  49223. * mhal: Nios II Options. (line 304)
  49224. * mhalf-reg-file: Adapteva Epiphany Options.
  49225. (line 9)
  49226. * mhard-dfp: RS/6000 and PowerPC Options.
  49227. (line 27)
  49228. * mhard-dfp <1>: S/390 and zSeries Options.
  49229. (line 20)
  49230. * mhard-div: OpenRISC Options. (line 16)
  49231. * mhard-float: C-SKY Options. (line 35)
  49232. * mhard-float <1>: FRV Options. (line 23)
  49233. * mhard-float <2>: M680x0 Options. (line 194)
  49234. * mhard-float <3>: MicroBlaze Options. (line 10)
  49235. * mhard-float <4>: MIPS Options. (line 267)
  49236. * mhard-float <5>: RS/6000 and PowerPC Options.
  49237. (line 338)
  49238. * mhard-float <6>: S/390 and zSeries Options.
  49239. (line 11)
  49240. * mhard-float <7>: SPARC Options. (line 34)
  49241. * mhard-float <8>: V850 Options. (line 113)
  49242. * mhard-float <9>: Visium Options. (line 19)
  49243. * mhard-float <10>: x86 Options. (line 497)
  49244. * mhard-mul: OpenRISC Options. (line 20)
  49245. * mhard-quad-float: SPARC Options. (line 55)
  49246. * mhardlit: MCore Options. (line 10)
  49247. * mhigh-registers: C-SKY Options. (line 104)
  49248. * mhint-max-distance: SPU Options. (line 107)
  49249. * mhint-max-nops: SPU Options. (line 101)
  49250. * mhle: x86 Options. (line 789)
  49251. * mhotpatch: S/390 and zSeries Options.
  49252. (line 209)
  49253. * mhp-ld: HPPA Options. (line 123)
  49254. * mhtm: RS/6000 and PowerPC Options.
  49255. (line 188)
  49256. * mhtm <1>: S/390 and zSeries Options.
  49257. (line 104)
  49258. * mhw-div: Nios II Options. (line 124)
  49259. * mhw-mul: Nios II Options. (line 124)
  49260. * mhw-mulx: Nios II Options. (line 124)
  49261. * mhwmult=: MSP430 Options. (line 63)
  49262. * miamcu: x86 Options. (line 1384)
  49263. * micplb: Blackfin Options. (line 175)
  49264. * mid-shared-library: Blackfin Options. (line 78)
  49265. * mid-shared-library <1>: Blackfin Options. (line 85)
  49266. * mieee: DEC Alpha Options. (line 39)
  49267. * mieee <1>: SH Options. (line 165)
  49268. * mieee-conformant: DEC Alpha Options. (line 134)
  49269. * mieee-fp: x86 Options. (line 491)
  49270. * mieee-with-inexact: DEC Alpha Options. (line 52)
  49271. * milp32: IA-64 Options. (line 121)
  49272. * mimadd: MIPS Options. (line 617)
  49273. * mimpure-text: Solaris 2 Options. (line 15)
  49274. * mincoming-stack-boundary: x86 Options. (line 710)
  49275. * mindexed-loads: ARC Options. (line 483)
  49276. * mindirect-branch: x86 Options. (line 1340)
  49277. * mindirect-branch-register: x86 Options. (line 1374)
  49278. * minline-all-stringops: x86 Options. (line 1188)
  49279. * minline-float-divide-max-throughput: IA-64 Options. (line 58)
  49280. * minline-float-divide-min-latency: IA-64 Options. (line 54)
  49281. * minline-ic_invalidate: SH Options. (line 174)
  49282. * minline-int-divide: IA-64 Options. (line 73)
  49283. * minline-int-divide-max-throughput: IA-64 Options. (line 69)
  49284. * minline-int-divide-min-latency: IA-64 Options. (line 65)
  49285. * minline-plt: Blackfin Options. (line 135)
  49286. * minline-plt <1>: FRV Options. (line 81)
  49287. * minline-sqrt-max-throughput: IA-64 Options. (line 80)
  49288. * minline-sqrt-min-latency: IA-64 Options. (line 76)
  49289. * minline-stringops-dynamically: x86 Options. (line 1195)
  49290. * minrt: MSP430 Options. (line 85)
  49291. * minsert-sched-nops: RS/6000 and PowerPC Options.
  49292. (line 490)
  49293. * minstrument-return: x86 Options. (line 1275)
  49294. * mint-register: RX Options. (line 100)
  49295. * mint16: PDP-11 Options. (line 33)
  49296. * mint32: CR16 Options. (line 22)
  49297. * mint32 <1>: H8/300 Options. (line 38)
  49298. * mint32 <2>: PDP-11 Options. (line 37)
  49299. * mint8: AVR Options. (line 200)
  49300. * minterlink-compressed: MIPS Options. (line 135)
  49301. * minterlink-mips16: MIPS Options. (line 147)
  49302. * mio-volatile: MeP Options. (line 74)
  49303. * mips1: MIPS Options. (line 80)
  49304. * mips16: MIPS Options. (line 120)
  49305. * mips2: MIPS Options. (line 83)
  49306. * mips3: MIPS Options. (line 86)
  49307. * mips32: MIPS Options. (line 92)
  49308. * mips32r3: MIPS Options. (line 95)
  49309. * mips32r5: MIPS Options. (line 98)
  49310. * mips32r6: MIPS Options. (line 101)
  49311. * mips3d: MIPS Options. (line 382)
  49312. * mips4: MIPS Options. (line 89)
  49313. * mips64: MIPS Options. (line 104)
  49314. * mips64r2: MIPS Options. (line 107)
  49315. * mips64r3: MIPS Options. (line 110)
  49316. * mips64r5: MIPS Options. (line 113)
  49317. * mips64r6: MIPS Options. (line 116)
  49318. * mirq-ctrl-saved: ARC Options. (line 296)
  49319. * misel: RS/6000 and PowerPC Options.
  49320. (line 171)
  49321. * misize: ARC Options. (line 379)
  49322. * misize <1>: SH Options. (line 186)
  49323. * misr-vector-size: NDS32 Options. (line 57)
  49324. * missue-rate=NUMBER: M32R/D Options. (line 79)
  49325. * mistack: C-SKY Options. (line 65)
  49326. * mivc2: MeP Options. (line 59)
  49327. * mjli-alawys: ARC Options. (line 14)
  49328. * mjsr: RX Options. (line 169)
  49329. * mjump-in-delay: HPPA Options. (line 30)
  49330. * mkernel: Darwin Options. (line 82)
  49331. * mknuthdiv: MMIX Options. (line 32)
  49332. * ml: MeP Options. (line 78)
  49333. * ml <1>: SH Options. (line 129)
  49334. * mlarge: MSP430 Options. (line 52)
  49335. * mlarge-data: DEC Alpha Options. (line 187)
  49336. * mlarge-data-threshold: x86 Options. (line 596)
  49337. * mlarge-mem: SPU Options. (line 38)
  49338. * mlarge-text: DEC Alpha Options. (line 205)
  49339. * mleadz: MeP Options. (line 81)
  49340. * mleaf-id-shared-library: Blackfin Options. (line 89)
  49341. * mleaf-id-shared-library <1>: Blackfin Options. (line 95)
  49342. * mlibfuncs: MMIX Options. (line 10)
  49343. * mlibrary-pic: FRV Options. (line 135)
  49344. * mlinked-fp: FRV Options. (line 116)
  49345. * mlinker-opt: HPPA Options. (line 85)
  49346. * mlinux: CRIS Options. (line 91)
  49347. * mlittle: RS/6000 and PowerPC Options.
  49348. (line 439)
  49349. * mlittle-endian: AArch64 Options. (line 30)
  49350. * mlittle-endian <1>: ARC Options. (line 605)
  49351. * mlittle-endian <2>: ARM Options. (line 63)
  49352. * mlittle-endian <3>: C6X Options. (line 16)
  49353. * mlittle-endian <4>: C-SKY Options. (line 30)
  49354. * mlittle-endian <5>: IA-64 Options. (line 13)
  49355. * mlittle-endian <6>: MCore Options. (line 39)
  49356. * mlittle-endian <7>: MicroBlaze Options. (line 59)
  49357. * mlittle-endian <8>: NDS32 Options. (line 12)
  49358. * mlittle-endian <9>: RS/6000 and PowerPC Options.
  49359. (line 439)
  49360. * mlittle-endian <10>: TILE-Gx Options. (line 29)
  49361. * mlittle-endian-data: RX Options. (line 42)
  49362. * mliw: MN10300 Options. (line 54)
  49363. * mll64: ARC Options. (line 167)
  49364. * mllsc: MIPS Options. (line 339)
  49365. * mload-store-pairs: MIPS Options. (line 590)
  49366. * mlocal-sdata: MIPS Options. (line 468)
  49367. * mlock: ARC Options. (line 345)
  49368. * mlong-calls: Adapteva Epiphany Options.
  49369. (line 55)
  49370. * mlong-calls <1>: ARC Options. (line 404)
  49371. * mlong-calls <2>: ARM Options. (line 659)
  49372. * mlong-calls <3>: Blackfin Options. (line 118)
  49373. * mlong-calls <4>: FRV Options. (line 122)
  49374. * mlong-calls <5>: HPPA Options. (line 136)
  49375. * mlong-calls <6>: MIPS Options. (line 603)
  49376. * mlong-calls <7>: V850 Options. (line 10)
  49377. * mlong-double-128: S/390 and zSeries Options.
  49378. (line 29)
  49379. * mlong-double-128 <1>: x86 Options. (line 575)
  49380. * mlong-double-64: S/390 and zSeries Options.
  49381. (line 29)
  49382. * mlong-double-64 <1>: x86 Options. (line 575)
  49383. * mlong-double-80: x86 Options. (line 575)
  49384. * mlong-jump-table-offsets: M680x0 Options. (line 340)
  49385. * mlong-jumps: V850 Options. (line 108)
  49386. * mlong-load-store: HPPA Options. (line 66)
  49387. * mlong32: MIPS Options. (line 443)
  49388. * mlong64: MIPS Options. (line 438)
  49389. * mlongcall: RS/6000 and PowerPC Options.
  49390. (line 732)
  49391. * mlongcalls: Xtensa Options. (line 87)
  49392. * mloongson-ext: MIPS Options. (line 430)
  49393. * mloongson-ext2: MIPS Options. (line 434)
  49394. * mloongson-mmi: MIPS Options. (line 425)
  49395. * mloop: V850 Options. (line 121)
  49396. * mlow-precision-div: AArch64 Options. (line 134)
  49397. * mlow-precision-recip-sqrt: AArch64 Options. (line 117)
  49398. * mlow-precision-sqrt: AArch64 Options. (line 125)
  49399. * mlow64k: Blackfin Options. (line 67)
  49400. * mlp64: IA-64 Options. (line 121)
  49401. * mlpc-width: ARC Options. (line 313)
  49402. * mlra: ARC Options. (line 488)
  49403. * mlra <1>: FT32 Options. (line 16)
  49404. * mlra <2>: PDP-11 Options. (line 52)
  49405. * mlra <3>: SPARC Options. (line 111)
  49406. * mlra-priority-compact: ARC Options. (line 496)
  49407. * mlra-priority-noncompact: ARC Options. (line 499)
  49408. * mlra-priority-none: ARC Options. (line 493)
  49409. * mlwp: x86 Options. (line 774)
  49410. * mlxc1-sxc1: MIPS Options. (line 895)
  49411. * mlzcnt: x86 Options. (line 782)
  49412. * MM: Preprocessor Options.
  49413. (line 102)
  49414. * mm: MeP Options. (line 84)
  49415. * mmac: CR16 Options. (line 9)
  49416. * mmac <1>: Score Options. (line 21)
  49417. * mmac-24: ARC Options. (line 354)
  49418. * mmac-d16: ARC Options. (line 350)
  49419. * mmac_24: ARC Options. (line 628)
  49420. * mmac_d16: ARC Options. (line 631)
  49421. * mmad: MIPS Options. (line 612)
  49422. * mmadd4: MIPS Options. (line 900)
  49423. * mmain-is-OS_task: AVR Options. (line 206)
  49424. * mmainkernel: Nvidia PTX Options. (line 18)
  49425. * mmalloc64: VMS Options. (line 17)
  49426. * mmanual-endbr: x86 Options. (line 1017)
  49427. * mmax: DEC Alpha Options. (line 163)
  49428. * mmax-constant-size: RX Options. (line 82)
  49429. * mmax-stack-frame: CRIS Options. (line 23)
  49430. * mmcount-ra-address: MIPS Options. (line 872)
  49431. * mmcu: AVR Options. (line 9)
  49432. * mmcu <1>: MIPS Options. (line 399)
  49433. * mmcu=: MSP430 Options. (line 14)
  49434. * MMD: Preprocessor Options.
  49435. (line 185)
  49436. * mmedia: FRV Options. (line 56)
  49437. * mmedium-calls: ARC Options. (line 408)
  49438. * mmemcpy: MicroBlaze Options. (line 13)
  49439. * mmemcpy <1>: MIPS Options. (line 597)
  49440. * mmemcpy-strategy=STRATEGY: x86 Options. (line 1217)
  49441. * mmemory-latency: DEC Alpha Options. (line 268)
  49442. * mmemory-model: SPARC Options. (line 348)
  49443. * mmemset-strategy=STRATEGY: x86 Options. (line 1229)
  49444. * mmfcrf: RS/6000 and PowerPC Options.
  49445. (line 27)
  49446. * mmfpgpr: RS/6000 and PowerPC Options.
  49447. (line 27)
  49448. * mmicromips: MIPS Options. (line 387)
  49449. * mmillicode: ARC Options. (line 502)
  49450. * mminimal-toc: RS/6000 and PowerPC Options.
  49451. (line 261)
  49452. * mminmax: MeP Options. (line 87)
  49453. * mmixed-code: ARC Options. (line 516)
  49454. * mmmx: x86 Options. (line 735)
  49455. * mmodel=large: M32R/D Options. (line 33)
  49456. * mmodel=medium: M32R/D Options. (line 27)
  49457. * mmodel=small: M32R/D Options. (line 18)
  49458. * mmovbe: x86 Options. (line 916)
  49459. * mmovdir64b: x86 Options. (line 801)
  49460. * mmovdiri: x86 Options. (line 800)
  49461. * mmp: C-SKY Options. (line 71)
  49462. * mmpy: ARC Options. (line 117)
  49463. * mmpy-option: ARC Options. (line 173)
  49464. * mms-bitfields: x86 Options. (line 1063)
  49465. * mmt: MIPS Options. (line 395)
  49466. * mmul: RL78 Options. (line 15)
  49467. * mmul-bug-workaround: CRIS Options. (line 32)
  49468. * mmul.x: Moxie Options. (line 14)
  49469. * mmul32x16: ARC Options. (line 121)
  49470. * mmul64: ARC Options. (line 124)
  49471. * mmuladd: FRV Options. (line 64)
  49472. * mmulhw: RS/6000 and PowerPC Options.
  49473. (line 383)
  49474. * mmult: MeP Options. (line 90)
  49475. * mmult-bug: MN10300 Options. (line 9)
  49476. * mmultcost: ARC Options. (line 578)
  49477. * mmulti-cond-exec: FRV Options. (line 215)
  49478. * mmulticore: Blackfin Options. (line 139)
  49479. * mmultiple: RS/6000 and PowerPC Options.
  49480. (line 344)
  49481. * mmultiple-stld: C-SKY Options. (line 121)
  49482. * mmusl: GNU/Linux Options. (line 18)
  49483. * mmvcle: S/390 and zSeries Options.
  49484. (line 138)
  49485. * mmvme: RS/6000 and PowerPC Options.
  49486. (line 613)
  49487. * mmwaitx: x86 Options. (line 791)
  49488. * mn: H8/300 Options. (line 20)
  49489. * mn-flash: AVR Options. (line 211)
  49490. * mnan=2008: MIPS Options. (line 320)
  49491. * mnan=legacy: MIPS Options. (line 320)
  49492. * mneon-for-64bits: ARM Options. (line 816)
  49493. * mnested-cond-exec: FRV Options. (line 230)
  49494. * mnewlib: OpenRISC Options. (line 13)
  49495. * mnhwloop: Score Options. (line 15)
  49496. * mno-16-bit: NDS32 Options. (line 54)
  49497. * mno-4byte-functions: MCore Options. (line 27)
  49498. * mno-8byte-align: V850 Options. (line 170)
  49499. * mno-abicalls: MIPS Options. (line 192)
  49500. * mno-ac0: PDP-11 Options. (line 20)
  49501. * mno-address-space-conversion: SPU Options. (line 68)
  49502. * mno-align-double: x86 Options. (line 534)
  49503. * mno-align-int: M680x0 Options. (line 261)
  49504. * mno-align-loops: M32R/D Options. (line 76)
  49505. * mno-align-stringops: x86 Options. (line 1183)
  49506. * mno-allow-string-insns: RX Options. (line 150)
  49507. * mno-altivec: RS/6000 and PowerPC Options.
  49508. (line 141)
  49509. * mno-am33: MN10300 Options. (line 20)
  49510. * mno-app-regs: SPARC Options. (line 10)
  49511. * mno-app-regs <1>: V850 Options. (line 185)
  49512. * mno-as100-syntax: RX Options. (line 76)
  49513. * mno-atomic-updates: SPU Options. (line 83)
  49514. * mno-auto-litpools: Xtensa Options. (line 60)
  49515. * mno-avoid-indexed-addresses: RS/6000 and PowerPC Options.
  49516. (line 365)
  49517. * mno-backchain: S/390 and zSeries Options.
  49518. (line 35)
  49519. * mno-base-addresses: MMIX Options. (line 53)
  49520. * mno-bit-align: RS/6000 and PowerPC Options.
  49521. (line 397)
  49522. * mno-bitfield: M680x0 Options. (line 227)
  49523. * mno-branch-likely: MIPS Options. (line 792)
  49524. * mno-branch-predict: MMIX Options. (line 48)
  49525. * mno-brcc: ARC Options. (line 444)
  49526. * mno-bwx: DEC Alpha Options. (line 163)
  49527. * mno-bypass-cache: Nios II Options. (line 103)
  49528. * mno-cache-volatile: Nios II Options. (line 109)
  49529. * mno-call-ms2sysv-xlogues: x86 Options. (line 1023)
  49530. * mno-callgraph-data: MCore Options. (line 31)
  49531. * mno-cbcond: SPARC Options. (line 260)
  49532. * mno-check-zero-division: MIPS Options. (line 570)
  49533. * mno-cix: DEC Alpha Options. (line 163)
  49534. * mno-clearbss: MicroBlaze Options. (line 16)
  49535. * mno-cmov: NDS32 Options. (line 24)
  49536. * mno-cmpb: RS/6000 and PowerPC Options.
  49537. (line 27)
  49538. * mno-cond-exec: ARC Options. (line 458)
  49539. * mno-cond-exec <1>: FRV Options. (line 194)
  49540. * mno-cond-move: FRV Options. (line 166)
  49541. * mno-const-align: CRIS Options. (line 55)
  49542. * mno-const16: Xtensa Options. (line 10)
  49543. * mno-crc: MIPS Options. (line 416)
  49544. * mno-crt0: MN10300 Options. (line 43)
  49545. * mno-crt0 <1>: Moxie Options. (line 18)
  49546. * mno-crypto: RS/6000 and PowerPC Options.
  49547. (line 182)
  49548. * mno-csync-anomaly: Blackfin Options. (line 63)
  49549. * mno-custom-INSN: Nios II Options. (line 139)
  49550. * mno-data-align: CRIS Options. (line 55)
  49551. * mno-debug: S/390 and zSeries Options.
  49552. (line 144)
  49553. * mno-default: x86 Options. (line 852)
  49554. * mno-disable-callt: V850 Options. (line 92)
  49555. * mno-div: M680x0 Options. (line 206)
  49556. * mno-div <1>: MCore Options. (line 15)
  49557. * mno-dlmzb: RS/6000 and PowerPC Options.
  49558. (line 390)
  49559. * mno-double: FRV Options. (line 52)
  49560. * mno-dpfp-lrsr: ARC Options. (line 108)
  49561. * mno-dsp: MIPS Options. (line 353)
  49562. * mno-dspr2: MIPS Options. (line 359)
  49563. * mno-dwarf2-asm: IA-64 Options. (line 94)
  49564. * mno-dword: FRV Options. (line 44)
  49565. * mno-eabi: RS/6000 and PowerPC Options.
  49566. (line 637)
  49567. * mno-early-stop-bits: IA-64 Options. (line 100)
  49568. * mno-eflags: FRV Options. (line 155)
  49569. * mno-embedded-data: MIPS Options. (line 517)
  49570. * mno-ep: V850 Options. (line 16)
  49571. * mno-epsilon: MMIX Options. (line 15)
  49572. * mno-eva: MIPS Options. (line 403)
  49573. * mno-explicit-relocs: DEC Alpha Options. (line 176)
  49574. * mno-explicit-relocs <1>: MIPS Options. (line 561)
  49575. * mno-exr: H8/300 Options. (line 33)
  49576. * mno-ext-perf: NDS32 Options. (line 30)
  49577. * mno-ext-perf2: NDS32 Options. (line 36)
  49578. * mno-ext-string: NDS32 Options. (line 42)
  49579. * mno-extern-sdata: MIPS Options. (line 480)
  49580. * mno-fancy-math-387: x86 Options. (line 524)
  49581. * mno-fast-sw-div: Nios II Options. (line 115)
  49582. * mno-faster-structs: SPARC Options. (line 91)
  49583. * mno-fix: DEC Alpha Options. (line 163)
  49584. * mno-fix-24k: MIPS Options. (line 641)
  49585. * mno-fix-cortex-a53-835769: AArch64 Options. (line 104)
  49586. * mno-fix-cortex-a53-843419: AArch64 Options. (line 111)
  49587. * mno-fix-r10000: MIPS Options. (line 663)
  49588. * mno-fix-r4000: MIPS Options. (line 647)
  49589. * mno-fix-r4400: MIPS Options. (line 657)
  49590. * mno-flat: SPARC Options. (line 22)
  49591. * mno-float: MIPS Options. (line 274)
  49592. * mno-float128: RS/6000 and PowerPC Options.
  49593. (line 219)
  49594. * mno-float128-hardware: RS/6000 and PowerPC Options.
  49595. (line 241)
  49596. * mno-flush-func: M32R/D Options. (line 98)
  49597. * mno-flush-trap: M32R/D Options. (line 90)
  49598. * mno-fmaf: SPARC Options. (line 267)
  49599. * mno-fp-in-toc: RS/6000 and PowerPC Options.
  49600. (line 261)
  49601. * mno-fp-regs: DEC Alpha Options. (line 25)
  49602. * mno-fp-ret-in-387: x86 Options. (line 514)
  49603. * mno-fprnd: RS/6000 and PowerPC Options.
  49604. (line 27)
  49605. * mno-fpu: SPARC Options. (line 39)
  49606. * mno-fpu <1>: Visium Options. (line 24)
  49607. * mno-fsca: SH Options. (line 365)
  49608. * mno-fsmuld: SPARC Options. (line 274)
  49609. * mno-fsrra: SH Options. (line 374)
  49610. * mno-fused-madd: IA-64 Options. (line 88)
  49611. * mno-fused-madd <1>: MIPS Options. (line 624)
  49612. * mno-fused-madd <2>: RS/6000 and PowerPC Options.
  49613. (line 374)
  49614. * mno-fused-madd <3>: S/390 and zSeries Options.
  49615. (line 174)
  49616. * mno-fused-madd <4>: SH Options. (line 356)
  49617. * mno-fused-madd <5>: Xtensa Options. (line 19)
  49618. * mno-ginv: MIPS Options. (line 421)
  49619. * mno-gnu-as: IA-64 Options. (line 18)
  49620. * mno-gnu-attribute: RS/6000 and PowerPC Options.
  49621. (line 591)
  49622. * mno-gnu-ld: IA-64 Options. (line 23)
  49623. * mno-gotplt: CRIS Options. (line 81)
  49624. * mno-gpopt: MIPS Options. (line 502)
  49625. * mno-gpopt <1>: Nios II Options. (line 16)
  49626. * mno-hard-dfp: RS/6000 and PowerPC Options.
  49627. (line 27)
  49628. * mno-hard-dfp <1>: S/390 and zSeries Options.
  49629. (line 20)
  49630. * mno-hardlit: MCore Options. (line 10)
  49631. * mno-htm: RS/6000 and PowerPC Options.
  49632. (line 188)
  49633. * mno-htm <1>: S/390 and zSeries Options.
  49634. (line 104)
  49635. * mno-hw-div: Nios II Options. (line 124)
  49636. * mno-hw-mul: Nios II Options. (line 124)
  49637. * mno-hw-mulx: Nios II Options. (line 124)
  49638. * mno-id-shared-library: Blackfin Options. (line 85)
  49639. * mno-ieee: SH Options. (line 165)
  49640. * mno-ieee-fp: x86 Options. (line 491)
  49641. * mno-imadd: MIPS Options. (line 617)
  49642. * mno-inline-float-divide: IA-64 Options. (line 62)
  49643. * mno-inline-int-divide: IA-64 Options. (line 73)
  49644. * mno-inline-sqrt: IA-64 Options. (line 84)
  49645. * mno-int16: PDP-11 Options. (line 37)
  49646. * mno-int32: PDP-11 Options. (line 33)
  49647. * mno-interlink-compressed: MIPS Options. (line 135)
  49648. * mno-interlink-mips16: MIPS Options. (line 147)
  49649. * mno-interrupts: AVR Options. (line 214)
  49650. * mno-isel: RS/6000 and PowerPC Options.
  49651. (line 171)
  49652. * mno-jsr: RX Options. (line 169)
  49653. * mno-knuthdiv: MMIX Options. (line 32)
  49654. * mno-leaf-id-shared-library: Blackfin Options. (line 95)
  49655. * mno-libfuncs: MMIX Options. (line 10)
  49656. * mno-liw: MN10300 Options. (line 59)
  49657. * mno-llsc: MIPS Options. (line 339)
  49658. * mno-load-store-pairs: MIPS Options. (line 590)
  49659. * mno-local-sdata: MIPS Options. (line 468)
  49660. * mno-long-calls: ARM Options. (line 659)
  49661. * mno-long-calls <1>: Blackfin Options. (line 118)
  49662. * mno-long-calls <2>: HPPA Options. (line 136)
  49663. * mno-long-calls <3>: MIPS Options. (line 603)
  49664. * mno-long-calls <4>: V850 Options. (line 10)
  49665. * mno-long-jumps: V850 Options. (line 108)
  49666. * mno-longcall: RS/6000 and PowerPC Options.
  49667. (line 732)
  49668. * mno-longcalls: Xtensa Options. (line 87)
  49669. * mno-loongson-ext: MIPS Options. (line 430)
  49670. * mno-loongson-ext2: MIPS Options. (line 434)
  49671. * mno-loongson-mmi: MIPS Options. (line 425)
  49672. * mno-low-precision-div: AArch64 Options. (line 134)
  49673. * mno-low-precision-recip-sqrt: AArch64 Options. (line 117)
  49674. * mno-low-precision-sqrt: AArch64 Options. (line 125)
  49675. * mno-low64k: Blackfin Options. (line 71)
  49676. * mno-lra: SPARC Options. (line 111)
  49677. * mno-lsim: FR30 Options. (line 14)
  49678. * mno-lsim <1>: MCore Options. (line 46)
  49679. * mno-mad: MIPS Options. (line 612)
  49680. * mno-max: DEC Alpha Options. (line 163)
  49681. * mno-mcount-ra-address: MIPS Options. (line 872)
  49682. * mno-mcu: MIPS Options. (line 399)
  49683. * mno-mdmx: MIPS Options. (line 376)
  49684. * mno-media: FRV Options. (line 60)
  49685. * mno-memcpy: MIPS Options. (line 597)
  49686. * mno-mfcrf: RS/6000 and PowerPC Options.
  49687. (line 27)
  49688. * mno-mfpgpr: RS/6000 and PowerPC Options.
  49689. (line 27)
  49690. * mno-mips16: MIPS Options. (line 120)
  49691. * mno-mips3d: MIPS Options. (line 382)
  49692. * mno-mmicromips: MIPS Options. (line 387)
  49693. * mno-mpy: ARC Options. (line 117)
  49694. * mno-ms-bitfields: x86 Options. (line 1063)
  49695. * mno-mt: MIPS Options. (line 395)
  49696. * mno-mul-bug-workaround: CRIS Options. (line 32)
  49697. * mno-muladd: FRV Options. (line 68)
  49698. * mno-mulhw: RS/6000 and PowerPC Options.
  49699. (line 383)
  49700. * mno-mult-bug: MN10300 Options. (line 13)
  49701. * mno-multi-cond-exec: FRV Options. (line 223)
  49702. * mno-multiple: RS/6000 and PowerPC Options.
  49703. (line 344)
  49704. * mno-mvcle: S/390 and zSeries Options.
  49705. (line 138)
  49706. * mno-nested-cond-exec: FRV Options. (line 237)
  49707. * mno-odd-spreg: MIPS Options. (line 293)
  49708. * mno-omit-leaf-frame-pointer: AArch64 Options. (line 57)
  49709. * mno-optimize-membar: FRV Options. (line 249)
  49710. * mno-opts: MeP Options. (line 93)
  49711. * mno-pack: FRV Options. (line 151)
  49712. * mno-packed-stack: S/390 and zSeries Options.
  49713. (line 54)
  49714. * mno-paired-single: MIPS Options. (line 370)
  49715. * mno-pc-relative-literal-loads: AArch64 Options. (line 248)
  49716. * mno-pic: IA-64 Options. (line 26)
  49717. * mno-pid: RX Options. (line 117)
  49718. * mno-plt: MIPS Options. (line 219)
  49719. * mno-pltseq: RS/6000 and PowerPC Options.
  49720. (line 769)
  49721. * mno-popc: SPARC Options. (line 281)
  49722. * mno-popcntb: RS/6000 and PowerPC Options.
  49723. (line 27)
  49724. * mno-popcntd: RS/6000 and PowerPC Options.
  49725. (line 27)
  49726. * mno-postinc: Adapteva Epiphany Options.
  49727. (line 109)
  49728. * mno-postmodify: Adapteva Epiphany Options.
  49729. (line 109)
  49730. * mno-power8-fusion: RS/6000 and PowerPC Options.
  49731. (line 194)
  49732. * mno-power8-vector: RS/6000 and PowerPC Options.
  49733. (line 200)
  49734. * mno-powerpc-gfxopt: RS/6000 and PowerPC Options.
  49735. (line 27)
  49736. * mno-powerpc-gpopt: RS/6000 and PowerPC Options.
  49737. (line 27)
  49738. * mno-powerpc64: RS/6000 and PowerPC Options.
  49739. (line 27)
  49740. * mno-prolog-function: V850 Options. (line 23)
  49741. * mno-prologue-epilogue: CRIS Options. (line 71)
  49742. * mno-prototype: RS/6000 and PowerPC Options.
  49743. (line 597)
  49744. * mno-push-args: x86 Options. (line 1040)
  49745. * mno-quad-memory: RS/6000 and PowerPC Options.
  49746. (line 207)
  49747. * mno-quad-memory-atomic: RS/6000 and PowerPC Options.
  49748. (line 213)
  49749. * mno-readonly-in-sdata: RS/6000 and PowerPC Options.
  49750. (line 688)
  49751. * mno-red-zone: x86 Options. (line 1404)
  49752. * mno-register-names: IA-64 Options. (line 37)
  49753. * mno-regnames: RS/6000 and PowerPC Options.
  49754. (line 726)
  49755. * mno-relax: V850 Options. (line 103)
  49756. * mno-relax-immediate: MCore Options. (line 19)
  49757. * mno-relocatable: RS/6000 and PowerPC Options.
  49758. (line 413)
  49759. * mno-relocatable-lib: RS/6000 and PowerPC Options.
  49760. (line 424)
  49761. * mno-renesas: SH Options. (line 155)
  49762. * mno-round-nearest: Adapteva Epiphany Options.
  49763. (line 51)
  49764. * mno-save-mduc-in-interrupts: RL78 Options. (line 79)
  49765. * mno-scc: FRV Options. (line 180)
  49766. * mno-sched-ar-data-spec: IA-64 Options. (line 135)
  49767. * mno-sched-ar-in-data-spec: IA-64 Options. (line 157)
  49768. * mno-sched-br-data-spec: IA-64 Options. (line 128)
  49769. * mno-sched-br-in-data-spec: IA-64 Options. (line 150)
  49770. * mno-sched-control-spec: IA-64 Options. (line 142)
  49771. * mno-sched-count-spec-in-critical-path: IA-64 Options. (line 185)
  49772. * mno-sched-in-control-spec: IA-64 Options. (line 164)
  49773. * mno-sched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  49774. * mno-sched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  49775. * mno-sched-prolog: ARM Options. (line 32)
  49776. * mno-sdata: ARC Options. (line 422)
  49777. * mno-sdata <1>: IA-64 Options. (line 42)
  49778. * mno-sdata <2>: RS/6000 and PowerPC Options.
  49779. (line 683)
  49780. * mno-sep-data: Blackfin Options. (line 113)
  49781. * mno-serialize-volatile: Xtensa Options. (line 35)
  49782. * mno-setlb: MN10300 Options. (line 69)
  49783. * mno-short: M680x0 Options. (line 222)
  49784. * mno-side-effects: CRIS Options. (line 46)
  49785. * mno-sim: RX Options. (line 71)
  49786. * mno-single-exit: MMIX Options. (line 65)
  49787. * mno-slow-bytes: MCore Options. (line 35)
  49788. * mno-small-exec: S/390 and zSeries Options.
  49789. (line 79)
  49790. * mno-smartmips: MIPS Options. (line 366)
  49791. * mno-soft-cmpsf: Adapteva Epiphany Options.
  49792. (line 29)
  49793. * mno-soft-float: DEC Alpha Options. (line 10)
  49794. * mno-space-regs: HPPA Options. (line 45)
  49795. * mno-specld-anomaly: Blackfin Options. (line 53)
  49796. * mno-split-addresses: MIPS Options. (line 555)
  49797. * mno-split-lohi: Adapteva Epiphany Options.
  49798. (line 109)
  49799. * mno-stack-align: CRIS Options. (line 55)
  49800. * mno-stack-bias: SPARC Options. (line 372)
  49801. * mno-std-struct-return: SPARC Options. (line 102)
  49802. * mno-strict-align: AArch64 Options. (line 51)
  49803. * mno-strict-align <1>: M680x0 Options. (line 281)
  49804. * mno-strict-align <2>: RS/6000 and PowerPC Options.
  49805. (line 408)
  49806. * mno-subxc: SPARC Options. (line 288)
  49807. * mno-sum-in-toc: RS/6000 and PowerPC Options.
  49808. (line 261)
  49809. * mno-sym32: MIPS Options. (line 453)
  49810. * mno-target-align: Xtensa Options. (line 74)
  49811. * mno-text-section-literals: Xtensa Options. (line 47)
  49812. * mno-tls-markers: RS/6000 and PowerPC Options.
  49813. (line 781)
  49814. * mno-toc: RS/6000 and PowerPC Options.
  49815. (line 433)
  49816. * mno-toplevel-symbols: MMIX Options. (line 39)
  49817. * mno-tpf-trace: S/390 and zSeries Options.
  49818. (line 168)
  49819. * mno-unaligned-access: ARM Options. (line 803)
  49820. * mno-unaligned-doubles: SPARC Options. (line 73)
  49821. * mno-uninit-const-in-rodata: MIPS Options. (line 525)
  49822. * mno-update: RS/6000 and PowerPC Options.
  49823. (line 355)
  49824. * mno-user-mode: SPARC Options. (line 85)
  49825. * mno-usermode: SH Options. (line 274)
  49826. * mno-v3push: NDS32 Options. (line 48)
  49827. * mno-v8plus: SPARC Options. (line 214)
  49828. * mno-vect-double: Adapteva Epiphany Options.
  49829. (line 115)
  49830. * mno-virt: MIPS Options. (line 407)
  49831. * mno-vis: SPARC Options. (line 221)
  49832. * mno-vis2: SPARC Options. (line 227)
  49833. * mno-vis3: SPARC Options. (line 235)
  49834. * mno-vis4: SPARC Options. (line 243)
  49835. * mno-vis4b: SPARC Options. (line 251)
  49836. * mno-vliw-branch: FRV Options. (line 208)
  49837. * mno-volatile-asm-stop: IA-64 Options. (line 32)
  49838. * mno-volatile-cache: ARC Options. (line 431)
  49839. * mno-vrsave: RS/6000 and PowerPC Options.
  49840. (line 157)
  49841. * mno-vsx: RS/6000 and PowerPC Options.
  49842. (line 176)
  49843. * mno-vx: S/390 and zSeries Options.
  49844. (line 112)
  49845. * mno-warn-mcu: MSP430 Options. (line 35)
  49846. * mno-warn-multiple-fast-interrupts: RX Options. (line 143)
  49847. * mno-wide-bitfields: MCore Options. (line 23)
  49848. * mno-xgot: M680x0 Options. (line 313)
  49849. * mno-xgot <1>: MIPS Options. (line 229)
  49850. * mno-xl-compat: RS/6000 and PowerPC Options.
  49851. (line 296)
  49852. * mno-xpa: MIPS Options. (line 411)
  49853. * mno-zdcbranch: SH Options. (line 341)
  49854. * mno-zero-extend: MMIX Options. (line 26)
  49855. * mno-zvector: S/390 and zSeries Options.
  49856. (line 123)
  49857. * mnobitfield: M680x0 Options. (line 227)
  49858. * mnodiv: FT32 Options. (line 20)
  49859. * mnomacsave: SH Options. (line 160)
  49860. * mnop-fun-dllimport: x86 Windows Options.
  49861. (line 22)
  49862. * mnop-mcount: x86 Options. (line 1269)
  49863. * mnopm: FT32 Options. (line 29)
  49864. * mnops: Adapteva Epiphany Options.
  49865. (line 26)
  49866. * mnorm: ARC Options. (line 128)
  49867. * modd-spreg: MIPS Options. (line 293)
  49868. * momit-leaf-frame-pointer: AArch64 Options. (line 57)
  49869. * momit-leaf-frame-pointer <1>: Blackfin Options. (line 43)
  49870. * momit-leaf-frame-pointer <2>: x86 Options. (line 1233)
  49871. * mone-byte-bool: Darwin Options. (line 90)
  49872. * moptimize: Nvidia PTX Options. (line 22)
  49873. * moptimize-membar: FRV Options. (line 244)
  49874. * moptimize-membar <1>: FRV Options. (line 249)
  49875. * moverride: AArch64 Options. (line 235)
  49876. * MP: Preprocessor Options.
  49877. (line 132)
  49878. * mpa-risc-1-0: HPPA Options. (line 19)
  49879. * mpa-risc-1-1: HPPA Options. (line 19)
  49880. * mpa-risc-2-0: HPPA Options. (line 19)
  49881. * mpack: FRV Options. (line 147)
  49882. * mpacked-stack: S/390 and zSeries Options.
  49883. (line 54)
  49884. * mpadstruct: SH Options. (line 189)
  49885. * mpaired-single: MIPS Options. (line 370)
  49886. * mpc-relative-literal-loads: AArch64 Options. (line 248)
  49887. * mpc32: x86 Options. (line 659)
  49888. * mpc64: x86 Options. (line 659)
  49889. * mpc80: x86 Options. (line 659)
  49890. * mpclmul: x86 Options. (line 757)
  49891. * mpconfig: x86 Options. (line 765)
  49892. * mpcrel: M680x0 Options. (line 273)
  49893. * mpdebug: CRIS Options. (line 36)
  49894. * mpe: RS/6000 and PowerPC Options.
  49895. (line 315)
  49896. * mpe-aligned-commons: x86 Windows Options.
  49897. (line 59)
  49898. * mpic-data-is-text-relative: ARM Options. (line 696)
  49899. * mpic-data-is-text-relative <1>: MicroBlaze Options. (line 70)
  49900. * mpic-register: ARM Options. (line 689)
  49901. * mpid: RX Options. (line 117)
  49902. * mpku: x86 Options. (line 793)
  49903. * mplt: MIPS Options. (line 219)
  49904. * mpltseq: RS/6000 and PowerPC Options.
  49905. (line 769)
  49906. * mpointer-size=SIZE: VMS Options. (line 20)
  49907. * mpointers-to-nested-functions: RS/6000 and PowerPC Options.
  49908. (line 882)
  49909. * mpoke-function-name: ARM Options. (line 704)
  49910. * mpopc: SPARC Options. (line 281)
  49911. * mpopcnt: x86 Options. (line 777)
  49912. * mpopcntb: RS/6000 and PowerPC Options.
  49913. (line 27)
  49914. * mpopcntd: RS/6000 and PowerPC Options.
  49915. (line 27)
  49916. * mportable-runtime: HPPA Options. (line 71)
  49917. * mpostinc: Adapteva Epiphany Options.
  49918. (line 109)
  49919. * mpostmodify: Adapteva Epiphany Options.
  49920. (line 109)
  49921. * mpower8-fusion: RS/6000 and PowerPC Options.
  49922. (line 194)
  49923. * mpower8-vector: RS/6000 and PowerPC Options.
  49924. (line 200)
  49925. * mpowerpc-gfxopt: RS/6000 and PowerPC Options.
  49926. (line 27)
  49927. * mpowerpc-gpopt: RS/6000 and PowerPC Options.
  49928. (line 27)
  49929. * mpowerpc64: RS/6000 and PowerPC Options.
  49930. (line 27)
  49931. * mprefer-avx128: x86 Options. (line 876)
  49932. * mprefer-short-insn-regs: Adapteva Epiphany Options.
  49933. (line 13)
  49934. * mprefer-vector-width: x86 Options. (line 880)
  49935. * mprefergot: SH Options. (line 268)
  49936. * mpreferred-stack-boundary: RISC-V Options. (line 73)
  49937. * mpreferred-stack-boundary <1>: x86 Options. (line 689)
  49938. * mprefetchwt1: x86 Options. (line 770)
  49939. * mpretend-cmove: SH Options. (line 383)
  49940. * mprfchw: x86 Options. (line 768)
  49941. * mprint-tune-info: ARM Options. (line 839)
  49942. * mprioritize-restricted-insns: RS/6000 and PowerPC Options.
  49943. (line 462)
  49944. * mprolog-function: V850 Options. (line 23)
  49945. * mprologue-epilogue: CRIS Options. (line 71)
  49946. * mprototype: RS/6000 and PowerPC Options.
  49947. (line 597)
  49948. * mptwrite: x86 Options. (line 761)
  49949. * mpure-code: ARM Options. (line 849)
  49950. * mpush-args: x86 Options. (line 1040)
  49951. * mpushpop: C-SKY Options. (line 114)
  49952. * MQ: Preprocessor Options.
  49953. (line 159)
  49954. * mq-class: ARC Options. (line 521)
  49955. * mquad-memory: RS/6000 and PowerPC Options.
  49956. (line 207)
  49957. * mquad-memory-atomic: RS/6000 and PowerPC Options.
  49958. (line 213)
  49959. * mr0rel-sec: Nios II Options. (line 76)
  49960. * mr10k-cache-barrier: MIPS Options. (line 714)
  49961. * mRcq: ARC Options. (line 525)
  49962. * mRcw: ARC Options. (line 529)
  49963. * mrdpid: x86 Options. (line 769)
  49964. * mrdrnd: x86 Options. (line 762)
  49965. * mrdseed: x86 Options. (line 771)
  49966. * mreadonly-in-sdata: RS/6000 and PowerPC Options.
  49967. (line 688)
  49968. * mrecip: RS/6000 and PowerPC Options.
  49969. (line 789)
  49970. * mrecip <1>: x86 Options. (line 930)
  49971. * mrecip-precision: RS/6000 and PowerPC Options.
  49972. (line 846)
  49973. * mrecip=opt: RS/6000 and PowerPC Options.
  49974. (line 802)
  49975. * mrecip=opt <1>: x86 Options. (line 952)
  49976. * mrecord-mcount: x86 Options. (line 1263)
  49977. * mrecord-return: x86 Options. (line 1283)
  49978. * mred-zone: x86 Options. (line 1404)
  49979. * mreduced-regs: NDS32 Options. (line 15)
  49980. * mregister-names: IA-64 Options. (line 37)
  49981. * mregnames: RS/6000 and PowerPC Options.
  49982. (line 726)
  49983. * mregparm: x86 Options. (line 626)
  49984. * mrelax: AVR Options. (line 218)
  49985. * mrelax <1>: H8/300 Options. (line 9)
  49986. * mrelax <2>: MN10300 Options. (line 46)
  49987. * mrelax <3>: MSP430 Options. (line 58)
  49988. * mrelax <4>: NDS32 Options. (line 84)
  49989. * mrelax <5>: RX Options. (line 95)
  49990. * mrelax <6>: SH Options. (line 137)
  49991. * mrelax <7>: V850 Options. (line 103)
  49992. * mrelax-immediate: MCore Options. (line 19)
  49993. * mrelax-pic-calls: MIPS Options. (line 859)
  49994. * mrelocatable: RS/6000 and PowerPC Options.
  49995. (line 413)
  49996. * mrelocatable-lib: RS/6000 and PowerPC Options.
  49997. (line 424)
  49998. * mrenesas: SH Options. (line 152)
  49999. * mrepeat: MeP Options. (line 96)
  50000. * mrestrict-it: ARM Options. (line 833)
  50001. * mreturn-pointer-on-d0: MN10300 Options. (line 36)
  50002. * mrf16: ARC Options. (line 324)
  50003. * mrgf-banked-regs: ARC Options. (line 304)
  50004. * mrh850-abi: V850 Options. (line 127)
  50005. * mrl78: RL78 Options. (line 62)
  50006. * mrmw: AVR Options. (line 232)
  50007. * mror: OpenRISC Options. (line 28)
  50008. * mround-nearest: Adapteva Epiphany Options.
  50009. (line 51)
  50010. * mrtd: M680x0 Options. (line 236)
  50011. * mrtd <1>: x86 Options. (line 602)
  50012. * mrtd <2>: x86 Function Attributes.
  50013. (line 9)
  50014. * mrtm: x86 Options. (line 788)
  50015. * mrtp: VxWorks Options. (line 11)
  50016. * mrtsc: ARC Options. (line 358)
  50017. * ms: H8/300 Options. (line 17)
  50018. * ms <1>: MeP Options. (line 100)
  50019. * ms2600: H8/300 Options. (line 24)
  50020. * msafe-dma: SPU Options. (line 18)
  50021. * msafe-hints: SPU Options. (line 112)
  50022. * msahf: x86 Options. (line 906)
  50023. * msatur: MeP Options. (line 105)
  50024. * msave-acc-in-interrupts: RX Options. (line 109)
  50025. * msave-mduc-in-interrupts: RL78 Options. (line 79)
  50026. * msave-restore: RISC-V Options. (line 87)
  50027. * msave-toc-indirect: RS/6000 and PowerPC Options.
  50028. (line 894)
  50029. * mscc: FRV Options. (line 173)
  50030. * msched-ar-data-spec: IA-64 Options. (line 135)
  50031. * msched-ar-in-data-spec: IA-64 Options. (line 157)
  50032. * msched-br-data-spec: IA-64 Options. (line 128)
  50033. * msched-br-in-data-spec: IA-64 Options. (line 150)
  50034. * msched-control-spec: IA-64 Options. (line 142)
  50035. * msched-costly-dep: RS/6000 and PowerPC Options.
  50036. (line 469)
  50037. * msched-count-spec-in-critical-path: IA-64 Options. (line 185)
  50038. * msched-fp-mem-deps-zero-cost: IA-64 Options. (line 202)
  50039. * msched-in-control-spec: IA-64 Options. (line 164)
  50040. * msched-max-memory-insns: IA-64 Options. (line 211)
  50041. * msched-max-memory-insns-hard-limit: IA-64 Options. (line 217)
  50042. * msched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  50043. * msched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  50044. * msched-prolog: ARM Options. (line 32)
  50045. * msched-prolog <1>: C-SKY Options. (line 148)
  50046. * msched-spec-ldc: IA-64 Options. (line 191)
  50047. * msched-spec-ldc <1>: IA-64 Options. (line 194)
  50048. * msched-stop-bits-after-every-cycle: IA-64 Options. (line 198)
  50049. * mschedule: HPPA Options. (line 78)
  50050. * mscore5: Score Options. (line 25)
  50051. * mscore5u: Score Options. (line 28)
  50052. * mscore7: Score Options. (line 31)
  50053. * mscore7d: Score Options. (line 35)
  50054. * msda: V850 Options. (line 40)
  50055. * msdata: ARC Options. (line 422)
  50056. * msdata <1>: IA-64 Options. (line 42)
  50057. * msdata <2>: RS/6000 and PowerPC Options.
  50058. (line 670)
  50059. * msdata=all: C6X Options. (line 30)
  50060. * msdata=data: RS/6000 and PowerPC Options.
  50061. (line 675)
  50062. * msdata=default: C6X Options. (line 22)
  50063. * msdata=default <1>: RS/6000 and PowerPC Options.
  50064. (line 670)
  50065. * msdata=eabi: RS/6000 and PowerPC Options.
  50066. (line 651)
  50067. * msdata=none: C6X Options. (line 35)
  50068. * msdata=none <1>: M32R/D Options. (line 40)
  50069. * msdata=none <2>: RS/6000 and PowerPC Options.
  50070. (line 683)
  50071. * msdata=sdata: M32R/D Options. (line 49)
  50072. * msdata=sysv: RS/6000 and PowerPC Options.
  50073. (line 661)
  50074. * msdata=use: M32R/D Options. (line 53)
  50075. * msdram: Blackfin Options. (line 169)
  50076. * msdram <1>: MeP Options. (line 110)
  50077. * msecure-plt: RS/6000 and PowerPC Options.
  50078. (line 160)
  50079. * msecurity: C-SKY Options. (line 80)
  50080. * msel-sched-dont-check-control-spec: IA-64 Options. (line 207)
  50081. * msep-data: Blackfin Options. (line 107)
  50082. * msep-data <1>: Blackfin Options. (line 113)
  50083. * mserialize-volatile: Xtensa Options. (line 35)
  50084. * msetlb: MN10300 Options. (line 64)
  50085. * msext: OpenRISC Options. (line 32)
  50086. * msfimm: OpenRISC Options. (line 36)
  50087. * msgx: x86 Options. (line 772)
  50088. * msha: x86 Options. (line 755)
  50089. * mshared-library-id: Blackfin Options. (line 100)
  50090. * mshftimm: OpenRISC Options. (line 40)
  50091. * mshort: M680x0 Options. (line 216)
  50092. * mshort-calls: AVR Options. (line 236)
  50093. * mshstk: x86 Options. (line 920)
  50094. * mside-effects: CRIS Options. (line 46)
  50095. * msign-extend-enabled: LM32 Options. (line 18)
  50096. * msign-return-address: AArch64 Options. (line 254)
  50097. * msilicon-errata: MSP430 Options. (line 102)
  50098. * msilicon-errata-warn: MSP430 Options. (line 106)
  50099. * msim: Blackfin Options. (line 36)
  50100. * msim <1>: C6X Options. (line 19)
  50101. * msim <2>: CR16 Options. (line 18)
  50102. * msim <3>: FT32 Options. (line 9)
  50103. * msim <4>: M32C Options. (line 13)
  50104. * msim <5>: MeP Options. (line 114)
  50105. * msim <6>: MSP430 Options. (line 47)
  50106. * msim <7>: RL78 Options. (line 7)
  50107. * msim <8>: RS/6000 and PowerPC Options.
  50108. (line 607)
  50109. * msim <9>: RX Options. (line 71)
  50110. * msim <10>: Visium Options. (line 13)
  50111. * msim <11>: Xstormy16 Options. (line 9)
  50112. * msimd: ARC Options. (line 141)
  50113. * msimnovec: MeP Options. (line 117)
  50114. * msingle-exit: MMIX Options. (line 65)
  50115. * msingle-float: MIPS Options. (line 284)
  50116. * msingle-pic-base: ARM Options. (line 683)
  50117. * msingle-pic-base <1>: RS/6000 and PowerPC Options.
  50118. (line 456)
  50119. * msio: HPPA Options. (line 105)
  50120. * msize-level: ARC Options. (line 533)
  50121. * mskip-rax-setup: x86 Options. (line 1296)
  50122. * mslow-bytes: MCore Options. (line 35)
  50123. * mslow-flash-data: ARM Options. (line 821)
  50124. * msmall: MSP430 Options. (line 55)
  50125. * msmall-data: DEC Alpha Options. (line 187)
  50126. * msmall-data-limit: RISC-V Options. (line 82)
  50127. * msmall-data-limit <1>: RX Options. (line 47)
  50128. * msmall-divides: MicroBlaze Options. (line 38)
  50129. * msmall-exec: S/390 and zSeries Options.
  50130. (line 79)
  50131. * msmall-mem: SPU Options. (line 38)
  50132. * msmall-model: FR30 Options. (line 9)
  50133. * msmall-text: DEC Alpha Options. (line 205)
  50134. * msmall16: Adapteva Epiphany Options.
  50135. (line 66)
  50136. * msmallc: Nios II Options. (line 310)
  50137. * msmart: C-SKY Options. (line 97)
  50138. * msmartmips: MIPS Options. (line 366)
  50139. * msoft-cmpsf: Adapteva Epiphany Options.
  50140. (line 29)
  50141. * msoft-div: OpenRISC Options. (line 46)
  50142. * msoft-float: ARC Options. (line 145)
  50143. * msoft-float <1>: C-SKY Options. (line 36)
  50144. * msoft-float <2>: DEC Alpha Options. (line 10)
  50145. * msoft-float <3>: FRV Options. (line 27)
  50146. * msoft-float <4>: HPPA Options. (line 91)
  50147. * msoft-float <5>: M680x0 Options. (line 200)
  50148. * msoft-float <6>: MicroBlaze Options. (line 7)
  50149. * msoft-float <7>: MIPS Options. (line 270)
  50150. * msoft-float <8>: PDP-11 Options. (line 13)
  50151. * msoft-float <9>: RS/6000 and PowerPC Options.
  50152. (line 338)
  50153. * msoft-float <10>: S/390 and zSeries Options.
  50154. (line 11)
  50155. * msoft-float <11>: SPARC Options. (line 39)
  50156. * msoft-float <12>: V850 Options. (line 113)
  50157. * msoft-float <13>: Visium Options. (line 24)
  50158. * msoft-float <14>: x86 Options. (line 501)
  50159. * msoft-mul: OpenRISC Options. (line 50)
  50160. * msoft-quad-float: SPARC Options. (line 59)
  50161. * msoft-stack: Nvidia PTX Options. (line 26)
  50162. * msp8: AVR Options. (line 243)
  50163. * mspace: V850 Options. (line 30)
  50164. * mspace-regs: HPPA Options. (line 45)
  50165. * mspecld-anomaly: Blackfin Options. (line 48)
  50166. * mspecld-anomaly <1>: Blackfin Options. (line 53)
  50167. * mspfp: ARC Options. (line 132)
  50168. * mspfp-compact: ARC Options. (line 133)
  50169. * mspfp-fast: ARC Options. (line 137)
  50170. * mspfp_compact: ARC Options. (line 634)
  50171. * mspfp_fast: ARC Options. (line 637)
  50172. * msplit: PDP-11 Options. (line 40)
  50173. * msplit-addresses: MIPS Options. (line 555)
  50174. * msplit-lohi: Adapteva Epiphany Options.
  50175. (line 109)
  50176. * msplit-vecmove-early: Adapteva Epiphany Options.
  50177. (line 126)
  50178. * msse: x86 Options. (line 736)
  50179. * msse2: x86 Options. (line 737)
  50180. * msse2avx: x86 Options. (line 1251)
  50181. * msse3: x86 Options. (line 738)
  50182. * msse4: x86 Options. (line 740)
  50183. * msse4.1: x86 Options. (line 742)
  50184. * msse4.2: x86 Options. (line 743)
  50185. * msse4a: x86 Options. (line 741)
  50186. * msseregparm: x86 Options. (line 637)
  50187. * mssse3: x86 Options. (line 739)
  50188. * mstack-align: CRIS Options. (line 55)
  50189. * mstack-bias: SPARC Options. (line 372)
  50190. * mstack-check-l1: Blackfin Options. (line 74)
  50191. * mstack-guard: S/390 and zSeries Options.
  50192. (line 193)
  50193. * mstack-increment: MCore Options. (line 50)
  50194. * mstack-offset: Adapteva Epiphany Options.
  50195. (line 37)
  50196. * mstack-protector-guard: AArch64 Options. (line 63)
  50197. * mstack-protector-guard <1>: AArch64 Options. (line 78)
  50198. * mstack-protector-guard <2>: RS/6000 and PowerPC Options.
  50199. (line 920)
  50200. * mstack-protector-guard <3>: x86 Options. (line 1322)
  50201. * mstack-protector-guard-offset: AArch64 Options. (line 63)
  50202. * mstack-protector-guard-offset <1>: AArch64 Options. (line 78)
  50203. * mstack-protector-guard-offset <2>: RS/6000 and PowerPC Options.
  50204. (line 920)
  50205. * mstack-protector-guard-offset <3>: x86 Options. (line 1322)
  50206. * mstack-protector-guard-reg: AArch64 Options. (line 63)
  50207. * mstack-protector-guard-reg <1>: AArch64 Options. (line 78)
  50208. * mstack-protector-guard-reg <2>: RS/6000 and PowerPC Options.
  50209. (line 920)
  50210. * mstack-protector-guard-reg <3>: x86 Options. (line 1322)
  50211. * mstack-protector-guard-symbol: RS/6000 and PowerPC Options.
  50212. (line 920)
  50213. * mstack-size: AMD GCN Options. (line 20)
  50214. * mstack-size <1>: C-SKY Options. (line 134)
  50215. * mstack-size <2>: S/390 and zSeries Options.
  50216. (line 193)
  50217. * mstackrealign: x86 Options. (line 680)
  50218. * mstd-struct-return: SPARC Options. (line 102)
  50219. * mstdmain: SPU Options. (line 44)
  50220. * mstrict-align: AArch64 Options. (line 51)
  50221. * mstrict-align <1>: M680x0 Options. (line 281)
  50222. * mstrict-align <2>: RISC-V Options. (line 93)
  50223. * mstrict-align <3>: RS/6000 and PowerPC Options.
  50224. (line 408)
  50225. * mstrict-X: AVR Options. (line 256)
  50226. * mstring-compare-inline-limit: RS/6000 and PowerPC Options.
  50227. (line 712)
  50228. * mstringop-strategy=ALG: x86 Options. (line 1199)
  50229. * mstructure-size-boundary: ARM Options. (line 638)
  50230. * msubxc: SPARC Options. (line 288)
  50231. * msv-mode: Visium Options. (line 52)
  50232. * msve-vector-bits: AArch64 Options. (line 274)
  50233. * msvr4-struct-return: RS/6000 and PowerPC Options.
  50234. (line 553)
  50235. * mswap: ARC Options. (line 152)
  50236. * mswape: ARC Options. (line 363)
  50237. * msym32: MIPS Options. (line 453)
  50238. * msynci: MIPS Options. (line 845)
  50239. * msys-crt0: Nios II Options. (line 314)
  50240. * msys-lib: Nios II Options. (line 318)
  50241. * MT: Preprocessor Options.
  50242. (line 144)
  50243. * mtarget-align: Xtensa Options. (line 74)
  50244. * mtas: SH Options. (line 259)
  50245. * mtbm: x86 Options. (line 790)
  50246. * mtda: V850 Options. (line 34)
  50247. * mtelephony: ARC Options. (line 368)
  50248. * mtext-section-literals: Xtensa Options. (line 47)
  50249. * mtf: MeP Options. (line 121)
  50250. * mthread: x86 Windows Options.
  50251. (line 26)
  50252. * mthreads: x86 Options. (line 1055)
  50253. * mthumb: ARM Options. (line 726)
  50254. * mthumb-interwork: ARM Options. (line 24)
  50255. * mtiny-stack: AVR Options. (line 270)
  50256. * mtiny=: MeP Options. (line 125)
  50257. * mTLS: FRV Options. (line 90)
  50258. * mtls: FRV Options. (line 94)
  50259. * mtls-dialect: ARM Options. (line 778)
  50260. * mtls-dialect <1>: x86 Options. (line 1033)
  50261. * mtls-dialect=desc: AArch64 Options. (line 91)
  50262. * mtls-dialect=traditional: AArch64 Options. (line 95)
  50263. * mtls-direct-seg-refs: x86 Options. (line 1241)
  50264. * mtls-markers: RS/6000 and PowerPC Options.
  50265. (line 781)
  50266. * mtls-size: AArch64 Options. (line 99)
  50267. * mtls-size <1>: IA-64 Options. (line 112)
  50268. * mtoc: RS/6000 and PowerPC Options.
  50269. (line 433)
  50270. * mtomcat-stats: FRV Options. (line 254)
  50271. * mtoplevel-symbols: MMIX Options. (line 39)
  50272. * mtp: ARM Options. (line 770)
  50273. * mtp-regno: ARC Options. (line 170)
  50274. * mtpcs-frame: ARM Options. (line 743)
  50275. * mtpcs-leaf-frame: ARM Options. (line 749)
  50276. * mtpf-trace: S/390 and zSeries Options.
  50277. (line 168)
  50278. * mtraceback: RS/6000 and PowerPC Options.
  50279. (line 546)
  50280. * mtrap-precision: DEC Alpha Options. (line 109)
  50281. * mtrust: C-SKY Options. (line 83)
  50282. * mtune: AArch64 Options. (line 189)
  50283. * mtune <1>: AMD GCN Options. (line 10)
  50284. * mtune <2>: ARC Options. (line 554)
  50285. * mtune <3>: ARC Options. (line 640)
  50286. * mtune <4>: ARM Options. (line 477)
  50287. * mtune <5>: CRIS Options. (line 17)
  50288. * mtune <6>: DEC Alpha Options. (line 259)
  50289. * mtune <7>: IA-64 Options. (line 116)
  50290. * mtune <8>: M680x0 Options. (line 68)
  50291. * mtune <9>: MIPS Options. (line 66)
  50292. * mtune <10>: MN10300 Options. (line 30)
  50293. * mtune <11>: RISC-V Options. (line 59)
  50294. * mtune <12>: RS/6000 and PowerPC Options.
  50295. (line 118)
  50296. * mtune <13>: S/390 and zSeries Options.
  50297. (line 161)
  50298. * mtune <14>: SPARC Options. (line 199)
  50299. * mtune <15>: Visium Options. (line 47)
  50300. * mtune <16>: x86 Options. (line 375)
  50301. * mtune-ctrl=FEATURE-LIST: x86 Options. (line 843)
  50302. * muclibc: GNU/Linux Options. (line 14)
  50303. * muls: Score Options. (line 18)
  50304. * multcost: ARC Options. (line 645)
  50305. * multcost=NUMBER: SH Options. (line 281)
  50306. * multilib-library-pic: FRV Options. (line 110)
  50307. * multiply-enabled: LM32 Options. (line 15)
  50308. * multiply_defined: Darwin Options. (line 196)
  50309. * multiply_defined_unused: Darwin Options. (line 196)
  50310. * multi_module: Darwin Options. (line 196)
  50311. * munalign-prob-threshold: ARC Options. (line 582)
  50312. * munaligned-access: ARM Options. (line 803)
  50313. * munaligned-doubles: SPARC Options. (line 73)
  50314. * municode: x86 Windows Options.
  50315. (line 30)
  50316. * muniform-simt: Nvidia PTX Options. (line 38)
  50317. * muninit-const-in-rodata: MIPS Options. (line 525)
  50318. * munix: VAX Options. (line 9)
  50319. * munix-asm: PDP-11 Options. (line 43)
  50320. * munsafe-dma: SPU Options. (line 18)
  50321. * mupdate: RS/6000 and PowerPC Options.
  50322. (line 355)
  50323. * muser-enabled: LM32 Options. (line 21)
  50324. * muser-mode: SPARC Options. (line 85)
  50325. * muser-mode <1>: Visium Options. (line 57)
  50326. * musermode: SH Options. (line 274)
  50327. * mv3push: NDS32 Options. (line 45)
  50328. * mv850: V850 Options. (line 49)
  50329. * mv850e: V850 Options. (line 79)
  50330. * mv850e1: V850 Options. (line 70)
  50331. * mv850e2: V850 Options. (line 66)
  50332. * mv850e2v3: V850 Options. (line 61)
  50333. * mv850e2v4: V850 Options. (line 57)
  50334. * mv850e3v5: V850 Options. (line 52)
  50335. * mv850es: V850 Options. (line 75)
  50336. * mv8plus: SPARC Options. (line 214)
  50337. * mvaes: x86 Options. (line 796)
  50338. * mvdsp: C-SKY Options. (line 88)
  50339. * mveclibabi: RS/6000 and PowerPC Options.
  50340. (line 855)
  50341. * mveclibabi <1>: x86 Options. (line 981)
  50342. * mvect-double: Adapteva Epiphany Options.
  50343. (line 115)
  50344. * mvect8-ret-in-mem: x86 Options. (line 647)
  50345. * mverbose-cost-dump: AArch64 Options. (line 243)
  50346. * mverbose-cost-dump <1>: ARM Options. (line 845)
  50347. * mvirt: MIPS Options. (line 407)
  50348. * mvis: SPARC Options. (line 221)
  50349. * mvis2: SPARC Options. (line 227)
  50350. * mvis3: SPARC Options. (line 235)
  50351. * mvis4: SPARC Options. (line 243)
  50352. * mvis4b: SPARC Options. (line 251)
  50353. * mvliw-branch: FRV Options. (line 201)
  50354. * mvms-return-codes: VMS Options. (line 9)
  50355. * mvolatile-asm-stop: IA-64 Options. (line 32)
  50356. * mvolatile-cache: ARC Options. (line 427)
  50357. * mvolatile-cache <1>: ARC Options. (line 431)
  50358. * mvpclmulqdq: x86 Options. (line 798)
  50359. * mvr4130-align: MIPS Options. (line 834)
  50360. * mvrsave: RS/6000 and PowerPC Options.
  50361. (line 157)
  50362. * mvsx: RS/6000 and PowerPC Options.
  50363. (line 176)
  50364. * mvx: S/390 and zSeries Options.
  50365. (line 112)
  50366. * mvxworks: RS/6000 and PowerPC Options.
  50367. (line 628)
  50368. * mvzeroupper: x86 Options. (line 870)
  50369. * mwaitpkg: x86 Options. (line 797)
  50370. * mwarn-dynamicstack: S/390 and zSeries Options.
  50371. (line 187)
  50372. * mwarn-framesize: S/390 and zSeries Options.
  50373. (line 179)
  50374. * mwarn-mcu: MSP430 Options. (line 35)
  50375. * mwarn-multiple-fast-interrupts: RX Options. (line 143)
  50376. * mwarn-reloc: SPU Options. (line 10)
  50377. * mwbnoinvd: x86 Options. (line 766)
  50378. * mwide-bitfields: MCore Options. (line 23)
  50379. * mwin32: x86 Windows Options.
  50380. (line 35)
  50381. * mwindows: x86 Windows Options.
  50382. (line 41)
  50383. * mword-relocations: ARM Options. (line 789)
  50384. * mx32: x86 Options. (line 1384)
  50385. * mxgot: M680x0 Options. (line 313)
  50386. * mxgot <1>: MIPS Options. (line 229)
  50387. * mxl-barrel-shift: MicroBlaze Options. (line 32)
  50388. * mxl-compat: RS/6000 and PowerPC Options.
  50389. (line 296)
  50390. * mxl-float-convert: MicroBlaze Options. (line 50)
  50391. * mxl-float-sqrt: MicroBlaze Options. (line 53)
  50392. * mxl-gp-opt: MicroBlaze Options. (line 44)
  50393. * mxl-multiply-high: MicroBlaze Options. (line 47)
  50394. * mxl-pattern-compare: MicroBlaze Options. (line 35)
  50395. * mxl-reorder: MicroBlaze Options. (line 62)
  50396. * mxl-soft-div: MicroBlaze Options. (line 29)
  50397. * mxl-soft-mul: MicroBlaze Options. (line 26)
  50398. * mxl-stack-check: MicroBlaze Options. (line 41)
  50399. * mxop: x86 Options. (line 773)
  50400. * mxpa: MIPS Options. (line 411)
  50401. * mxsave: x86 Options. (line 784)
  50402. * mxsavec: x86 Options. (line 786)
  50403. * mxsaveopt: x86 Options. (line 785)
  50404. * mxsaves: x86 Options. (line 787)
  50405. * mxy: ARC Options. (line 373)
  50406. * myellowknife: RS/6000 and PowerPC Options.
  50407. (line 623)
  50408. * mzarch: S/390 and zSeries Options.
  50409. (line 94)
  50410. * mzda: V850 Options. (line 45)
  50411. * mzdcbranch: SH Options. (line 341)
  50412. * mzero-extend: MMIX Options. (line 26)
  50413. * mzvector: S/390 and zSeries Options.
  50414. (line 123)
  50415. * no-80387: x86 Options. (line 501)
  50416. * no-canonical-prefixes: Directory Options. (line 164)
  50417. * no-integrated-cpp: Preprocessor Options.
  50418. (line 476)
  50419. * no-pie: Link Options. (line 182)
  50420. * no-sysroot-suffix: Directory Options. (line 183)
  50421. * noall_load: Darwin Options. (line 196)
  50422. * nocpp: MIPS Options. (line 636)
  50423. * nodefaultlibs: Link Options. (line 120)
  50424. * nodevicelib: AVR Options. (line 277)
  50425. * nofixprebinding: Darwin Options. (line 196)
  50426. * nofpu: RX Options. (line 17)
  50427. * nolibc: Link Options. (line 132)
  50428. * nolibdld: HPPA Options. (line 188)
  50429. * nomultidefs: Darwin Options. (line 196)
  50430. * non-static: VxWorks Options. (line 16)
  50431. * noprebind: Darwin Options. (line 196)
  50432. * noseglinkedit: Darwin Options. (line 196)
  50433. * nostartfiles: Link Options. (line 115)
  50434. * nostdinc: Directory Options. (line 102)
  50435. * nostdinc++: C++ Dialect Options.
  50436. (line 484)
  50437. * nostdinc++ <1>: Directory Options. (line 108)
  50438. * nostdlib: Link Options. (line 144)
  50439. * no_dead_strip_inits_and_terms: Darwin Options. (line 196)
  50440. * o: Overall Options. (line 197)
  50441. * O: Optimize Options. (line 39)
  50442. * O0: Optimize Options. (line 162)
  50443. * O1: Optimize Options. (line 39)
  50444. * O2: Optimize Options. (line 95)
  50445. * O3: Optimize Options. (line 141)
  50446. * Ofast: Optimize Options. (line 178)
  50447. * Og: Optimize Options. (line 185)
  50448. * Os: Optimize Options. (line 166)
  50449. * p: Instrumentation Options.
  50450. (line 20)
  50451. * P: Preprocessor Options.
  50452. (line 361)
  50453. * p <1>: Common Function Attributes.
  50454. (line 620)
  50455. * pagezero_size: Darwin Options. (line 196)
  50456. * param: Optimize Options. (line 2567)
  50457. * pass-exit-codes: Overall Options. (line 338)
  50458. * pedantic: Standards. (line 13)
  50459. * pedantic <1>: Warning Options. (line 80)
  50460. * pedantic <2>: C Extensions. (line 6)
  50461. * pedantic <3>: Alternate Keywords. (line 30)
  50462. * pedantic <4>: Warnings and Errors.
  50463. (line 25)
  50464. * pedantic-errors: Standards. (line 13)
  50465. * pedantic-errors <1>: Warning Options. (line 121)
  50466. * pedantic-errors <2>: Non-bugs. (line 216)
  50467. * pedantic-errors <3>: Warnings and Errors.
  50468. (line 25)
  50469. * pg: Instrumentation Options.
  50470. (line 20)
  50471. * pg <1>: Common Function Attributes.
  50472. (line 620)
  50473. * pie: Link Options. (line 176)
  50474. * pipe: Overall Options. (line 346)
  50475. * plt: RISC-V Options. (line 13)
  50476. * prebind: Darwin Options. (line 196)
  50477. * prebind_all_twolevel_modules: Darwin Options. (line 196)
  50478. * print-file-name: Developer Options. (line 930)
  50479. * print-libgcc-file-name: Developer Options. (line 964)
  50480. * print-multi-directory: Developer Options. (line 936)
  50481. * print-multi-lib: Developer Options. (line 941)
  50482. * print-multi-os-directory: Developer Options. (line 948)
  50483. * print-multiarch: Developer Options. (line 957)
  50484. * print-objc-runtime-info: Objective-C and Objective-C++ Dialect Options.
  50485. (line 216)
  50486. * print-prog-name: Developer Options. (line 961)
  50487. * print-search-dirs: Developer Options. (line 972)
  50488. * print-sysroot: Developer Options. (line 985)
  50489. * print-sysroot-headers-suffix: Developer Options. (line 992)
  50490. * private_bundle: Darwin Options. (line 196)
  50491. * pthread: Preprocessor Options.
  50492. (line 70)
  50493. * pthread <1>: Link Options. (line 193)
  50494. * pthreads: Solaris 2 Options. (line 30)
  50495. * Q: Developer Options. (line 833)
  50496. * Qn: System V Options. (line 18)
  50497. * Qy: System V Options. (line 14)
  50498. * r: Link Options. (line 200)
  50499. * rdynamic: Link Options. (line 204)
  50500. * read_only_relocs: Darwin Options. (line 196)
  50501. * remap: Preprocessor Options.
  50502. (line 392)
  50503. * S: Overall Options. (line 180)
  50504. * S <1>: Link Options. (line 20)
  50505. * s: Link Options. (line 211)
  50506. * save-temps: Developer Options. (line 708)
  50507. * save-temps=obj: Developer Options. (line 734)
  50508. * sectalign: Darwin Options. (line 196)
  50509. * sectcreate: Darwin Options. (line 196)
  50510. * sectobjectsymbols: Darwin Options. (line 196)
  50511. * sectobjectsymbols <1>: Darwin Options. (line 196)
  50512. * sectorder: Darwin Options. (line 196)
  50513. * seg1addr: Darwin Options. (line 196)
  50514. * segaddr: Darwin Options. (line 196)
  50515. * seglinkedit: Darwin Options. (line 196)
  50516. * segprot: Darwin Options. (line 196)
  50517. * segs_read_only_addr: Darwin Options. (line 196)
  50518. * segs_read_only_addr <1>: Darwin Options. (line 196)
  50519. * segs_read_write_addr: Darwin Options. (line 196)
  50520. * segs_read_write_addr <1>: Darwin Options. (line 196)
  50521. * seg_addr_table: Darwin Options. (line 196)
  50522. * seg_addr_table_filename: Darwin Options. (line 196)
  50523. * shared: Link Options. (line 220)
  50524. * shared-libgcc: Link Options. (line 228)
  50525. * short-calls: Adapteva Epiphany Options.
  50526. (line 61)
  50527. * sim: CRIS Options. (line 95)
  50528. * sim2: CRIS Options. (line 101)
  50529. * single_module: Darwin Options. (line 196)
  50530. * specs: Overall Options. (line 352)
  50531. * static: Link Options. (line 215)
  50532. * static <1>: Darwin Options. (line 196)
  50533. * static <2>: HPPA Options. (line 192)
  50534. * static-libasan: Link Options. (line 262)
  50535. * static-libgcc: Link Options. (line 228)
  50536. * static-liblsan: Link Options. (line 278)
  50537. * static-libstdc++: Link Options. (line 295)
  50538. * static-libtsan: Link Options. (line 270)
  50539. * static-libubsan: Link Options. (line 286)
  50540. * static-pie: Link Options. (line 185)
  50541. * std: Standards. (line 13)
  50542. * std <1>: C Dialect Options. (line 46)
  50543. * std <2>: Other Builtins. (line 31)
  50544. * std <3>: Non-bugs. (line 107)
  50545. * sub_library: Darwin Options. (line 196)
  50546. * sub_umbrella: Darwin Options. (line 196)
  50547. * symbolic: Link Options. (line 306)
  50548. * sysroot: Directory Options. (line 168)
  50549. * T: Link Options. (line 312)
  50550. * target-help: Overall Options. (line 229)
  50551. * threads: HPPA Options. (line 205)
  50552. * time: Developer Options. (line 749)
  50553. * tno-android-cc: GNU/Linux Options. (line 36)
  50554. * tno-android-ld: GNU/Linux Options. (line 40)
  50555. * traditional: Preprocessor Options.
  50556. (line 368)
  50557. * traditional <1>: Incompatibilities. (line 6)
  50558. * traditional-cpp: Preprocessor Options.
  50559. (line 368)
  50560. * trigraphs: Preprocessor Options.
  50561. (line 378)
  50562. * twolevel_namespace: Darwin Options. (line 196)
  50563. * U: Preprocessor Options.
  50564. (line 42)
  50565. * u: Link Options. (line 344)
  50566. * umbrella: Darwin Options. (line 196)
  50567. * undef: Preprocessor Options.
  50568. (line 66)
  50569. * undefined: Darwin Options. (line 196)
  50570. * unexported_symbols_list: Darwin Options. (line 196)
  50571. * v: Overall Options. (line 208)
  50572. * version: Overall Options. (line 335)
  50573. * w: Warning Options. (line 25)
  50574. * W: Warning Options. (line 200)
  50575. * W <1>: Warning Options. (line 2542)
  50576. * W <2>: Warning Options. (line 2651)
  50577. * W <3>: Incompatibilities. (line 64)
  50578. * Wa: Assembler Options. (line 9)
  50579. * Wabi: C++ Dialect Options.
  50580. (line 492)
  50581. * Wabi-tag: C++ Dialect Options.
  50582. (line 596)
  50583. * Wabi-tag <1>: C++ Dialect Options.
  50584. (line 596)
  50585. * Wabsolute-value: Warning Options. (line 2042)
  50586. * Waddr-space-convert: AVR Options. (line 280)
  50587. * Waddress: Warning Options. (line 2415)
  50588. * Waddress-of-packed-member: Warning Options. (line 2428)
  50589. * Waggregate-return: Warning Options. (line 2456)
  50590. * Waggressive-loop-optimizations: Warning Options. (line 2461)
  50591. * Waligned-new: Warning Options. (line 1969)
  50592. * Wall: Warning Options. (line 130)
  50593. * Wall <1>: Standard Libraries. (line 6)
  50594. * Walloc-size-larger-than=: Warning Options. (line 1504)
  50595. * Walloc-zero: Warning Options. (line 1494)
  50596. * Walloca: Warning Options. (line 1519)
  50597. * Walloca-larger-than=: Warning Options. (line 1522)
  50598. * Warray-bounds: Warning Options. (line 1588)
  50599. * Wassign-intercept: Objective-C and Objective-C++ Dialect Options.
  50600. (line 170)
  50601. * Wattribute-warning: Warning Options. (line 2621)
  50602. * Wattributes: Warning Options. (line 2466)
  50603. * Wbad-function-cast: Warning Options. (line 2111)
  50604. * Wbool-compare: Warning Options. (line 1637)
  50605. * Wbool-operation: Warning Options. (line 1646)
  50606. * Wbuiltin-declaration-mismatch: Warning Options. (line 2472)
  50607. * Wbuiltin-macro-redefined: Warning Options. (line 2493)
  50608. * Wc++-compat: Warning Options. (line 2131)
  50609. * Wc++11-compat: Warning Options. (line 2136)
  50610. * Wc++14-compat: Warning Options. (line 2142)
  50611. * Wc++17-compat: Warning Options. (line 2146)
  50612. * Wc90-c99-compat: Warning Options. (line 2116)
  50613. * Wc99-c11-compat: Warning Options. (line 2123)
  50614. * Wcast-align: Warning Options. (line 2166)
  50615. * Wcast-align=strict: Warning Options. (line 2172)
  50616. * Wcast-function-type: Warning Options. (line 2177)
  50617. * Wcast-qual: Warning Options. (line 2150)
  50618. * Wcatch-value: Warning Options. (line 2204)
  50619. * Wchar-subscripts: Warning Options. (line 243)
  50620. * Wclass-conversion: C++ Dialect Options.
  50621. (line 958)
  50622. * Wclass-memaccess: C++ Dialect Options.
  50623. (line 726)
  50624. * Wclobbered: Warning Options. (line 2212)
  50625. * Wcomment: Warning Options. (line 2053)
  50626. * Wcomments: Warning Options. (line 2053)
  50627. * Wconditionally-supported: Warning Options. (line 2216)
  50628. * Wconversion: Warning Options. (line 2219)
  50629. * Wconversion-null: Warning Options. (line 2237)
  50630. * Wcoverage-mismatch: Warning Options. (line 248)
  50631. * Wctor-dtor-privacy: C++ Dialect Options.
  50632. (line 601)
  50633. * Wdangling-else: Warning Options. (line 2258)
  50634. * Wdate-time: Warning Options. (line 2292)
  50635. * Wdeclaration-after-statement: Warning Options. (line 1843)
  50636. * Wdelete-incomplete: Warning Options. (line 2297)
  50637. * Wdelete-non-virtual-dtor: C++ Dialect Options.
  50638. (line 608)
  50639. * Wdeprecated: Warning Options. (line 2628)
  50640. * Wdeprecated-copy: C++ Dialect Options.
  50641. (line 615)
  50642. * Wdeprecated-declarations: Warning Options. (line 2632)
  50643. * Wdisabled-optimization: Warning Options. (line 2861)
  50644. * Wdiscarded-array-qualifiers: Warning Options. (line 1685)
  50645. * Wdiscarded-qualifiers: Warning Options. (line 1679)
  50646. * Wdiv-by-zero: Warning Options. (line 1703)
  50647. * Wdouble-promotion: Warning Options. (line 267)
  50648. * Wduplicate-decl-specifier: Warning Options. (line 285)
  50649. * Wduplicated-branches: Warning Options. (line 1656)
  50650. * Wduplicated-cond: Warning Options. (line 1667)
  50651. * weak_reference_mismatches: Darwin Options. (line 196)
  50652. * Weffc++: C++ Dialect Options.
  50653. (line 847)
  50654. * Wempty-body: Warning Options. (line 2304)
  50655. * Wendif-labels: Warning Options. (line 2097)
  50656. * Wenum-compare: Warning Options. (line 2308)
  50657. * Werror: Warning Options. (line 28)
  50658. * Werror=: Warning Options. (line 31)
  50659. * Wexpansion-to-defined: Warning Options. (line 2072)
  50660. * Wextra: Warning Options. (line 200)
  50661. * Wextra <1>: Warning Options. (line 2542)
  50662. * Wextra <2>: Warning Options. (line 2651)
  50663. * Wextra-semi: Warning Options. (line 2314)
  50664. * Wfatal-errors: Warning Options. (line 48)
  50665. * Wfloat-conversion: Warning Options. (line 2340)
  50666. * Wfloat-equal: Warning Options. (line 1743)
  50667. * Wformat: Warning Options. (line 290)
  50668. * Wformat <1>: Warning Options. (line 315)
  50669. * Wformat <2>: Warning Options. (line 1442)
  50670. * Wformat <3>: Common Function Attributes.
  50671. (line 310)
  50672. * Wformat-contains-nul: Warning Options. (line 324)
  50673. * Wformat-extra-args: Warning Options. (line 328)
  50674. * Wformat-nonliteral: Warning Options. (line 433)
  50675. * Wformat-nonliteral <1>: Common Function Attributes.
  50676. (line 375)
  50677. * Wformat-overflow: Warning Options. (line 343)
  50678. * Wformat-overflow <1>: Warning Options. (line 354)
  50679. * Wformat-security: Warning Options. (line 438)
  50680. * Wformat-signedness: Warning Options. (line 450)
  50681. * Wformat-truncation: Warning Options. (line 456)
  50682. * Wformat-truncation <1>: Warning Options. (line 468)
  50683. * Wformat-y2k: Warning Options. (line 479)
  50684. * Wformat-zero-length: Warning Options. (line 423)
  50685. * Wformat=: Warning Options. (line 290)
  50686. * Wformat=1: Warning Options. (line 315)
  50687. * Wformat=2: Warning Options. (line 428)
  50688. * Wframe-address: Warning Options. (line 1673)
  50689. * Wframe-larger-than=: Warning Options. (line 1908)
  50690. * Wfree-nonheap-object: Warning Options. (line 1925)
  50691. * whatsloaded: Darwin Options. (line 196)
  50692. * whyload: Darwin Options. (line 196)
  50693. * Wif-not-aligned: Warning Options. (line 651)
  50694. * Wignored-attributes: Warning Options. (line 667)
  50695. * Wignored-qualifiers: Warning Options. (line 656)
  50696. * Wimplicit: Warning Options. (line 529)
  50697. * Wimplicit-fallthrough: Warning Options. (line 533)
  50698. * Wimplicit-fallthrough=: Warning Options. (line 538)
  50699. * Wimplicit-function-declaration: Warning Options. (line 523)
  50700. * Wimplicit-int: Warning Options. (line 519)
  50701. * Wincompatible-pointer-types: Warning Options. (line 1691)
  50702. * Winherited-variadic-ctor: Warning Options. (line 2744)
  50703. * Winit-list-lifetime: C++ Dialect Options.
  50704. (line 623)
  50705. * Winit-self: Warning Options. (line 504)
  50706. * Winline: Warning Options. (line 2749)
  50707. * Winline <1>: Inline. (line 60)
  50708. * Wint-conversion: Warning Options. (line 1697)
  50709. * Wint-in-bool-context: Warning Options. (line 2774)
  50710. * Wint-to-pointer-cast: Warning Options. (line 2782)
  50711. * Winvalid-memory-model: Warning Options. (line 1122)
  50712. * Winvalid-offsetof: Warning Options. (line 2762)
  50713. * Winvalid-pch: Warning Options. (line 2791)
  50714. * Wjump-misses-init: Warning Options. (line 2317)
  50715. * Wl: Link Options. (line 336)
  50716. * Wlarger-than-BYTE-SIZE: Warning Options. (line 1898)
  50717. * Wlarger-than=: Warning Options. (line 1898)
  50718. * Wliteral-suffix: C++ Dialect Options.
  50719. (line 658)
  50720. * Wlogical-not-parentheses: Warning Options. (line 2441)
  50721. * Wlogical-op: Warning Options. (line 2433)
  50722. * Wlong-long: Warning Options. (line 2795)
  50723. * Wlto-type-mismatch: C++ Dialect Options.
  50724. (line 684)
  50725. * Wmain: Warning Options. (line 674)
  50726. * Wmaybe-uninitialized: Warning Options. (line 1139)
  50727. * Wmemset-elt-size: Warning Options. (line 2396)
  50728. * Wmemset-transposed-args: Warning Options. (line 2404)
  50729. * Wmisleading-indentation: Warning Options. (line 681)
  50730. * Wmissing-attributes: Warning Options. (line 715)
  50731. * Wmissing-braces: Warning Options. (line 759)
  50732. * Wmissing-declarations: Warning Options. (line 2532)
  50733. * Wmissing-field-initializers: Warning Options. (line 2542)
  50734. * Wmissing-format-attribute: Warning Options. (line 1442)
  50735. * Wmissing-include-dirs: Warning Options. (line 770)
  50736. * Wmissing-noreturn: Warning Options. (line 1428)
  50737. * Wmissing-parameter-type: Warning Options. (line 2514)
  50738. * Wmissing-profile: Warning Options. (line 773)
  50739. * Wmissing-prototypes: Warning Options. (line 2522)
  50740. * Wmisspelled-isr: AVR Options. (line 285)
  50741. * Wmultichar: Warning Options. (line 2572)
  50742. * Wmultiple-inheritance: C++ Dialect Options.
  50743. (line 933)
  50744. * Wmultistatement-macros: Warning Options. (line 789)
  50745. * Wnamespaces: C++ Dialect Options.
  50746. (line 947)
  50747. * Wnarrowing: C++ Dialect Options.
  50748. (line 690)
  50749. * Wnested-externs: Warning Options. (line 2741)
  50750. * Wno-abi: C++ Dialect Options.
  50751. (line 492)
  50752. * Wno-absolute-value: Warning Options. (line 2042)
  50753. * Wno-addr-space-convert: AVR Options. (line 280)
  50754. * Wno-address: Warning Options. (line 2415)
  50755. * Wno-address-of-packed-member: Warning Options. (line 2428)
  50756. * Wno-aggregate-return: Warning Options. (line 2456)
  50757. * Wno-aggressive-loop-optimizations: Warning Options. (line 2461)
  50758. * Wno-aligned-new: Warning Options. (line 1969)
  50759. * Wno-all: Warning Options. (line 130)
  50760. * Wno-alloc-size-larger-than: Warning Options. (line 1504)
  50761. * Wno-alloc-size-larger-than <1>: Warning Options. (line 1515)
  50762. * Wno-alloc-zero: Warning Options. (line 1494)
  50763. * Wno-alloca: Warning Options. (line 1519)
  50764. * Wno-alloca-larger-than: Warning Options. (line 1522)
  50765. * Wno-alloca-larger-than <1>: Warning Options. (line 1583)
  50766. * Wno-array-bounds: Warning Options. (line 1588)
  50767. * Wno-assign-intercept: Objective-C and Objective-C++ Dialect Options.
  50768. (line 170)
  50769. * Wno-attribute-warning: Warning Options. (line 2621)
  50770. * Wno-attributes: Warning Options. (line 2466)
  50771. * Wno-bad-function-cast: Warning Options. (line 2111)
  50772. * Wno-bool-compare: Warning Options. (line 1637)
  50773. * Wno-bool-operation: Warning Options. (line 1646)
  50774. * Wno-builtin-declaration-mismatch: Warning Options. (line 2472)
  50775. * Wno-builtin-macro-redefined: Warning Options. (line 2493)
  50776. * Wno-c++-compat: Warning Options. (line 2131)
  50777. * Wno-c++11-compat: Warning Options. (line 2136)
  50778. * Wno-c++14-compat: Warning Options. (line 2142)
  50779. * Wno-c++17-compat: Warning Options. (line 2146)
  50780. * Wno-c90-c99-compat: Warning Options. (line 2116)
  50781. * Wno-c99-c11-compat: Warning Options. (line 2123)
  50782. * Wno-cast-align: Warning Options. (line 2166)
  50783. * Wno-cast-function-type: Warning Options. (line 2177)
  50784. * Wno-cast-qual: Warning Options. (line 2150)
  50785. * Wno-catch-value: Warning Options. (line 2204)
  50786. * Wno-char-subscripts: Warning Options. (line 243)
  50787. * Wno-class-conversion: C++ Dialect Options.
  50788. (line 958)
  50789. * Wno-class-memaccess: C++ Dialect Options.
  50790. (line 726)
  50791. * Wno-clobbered: Warning Options. (line 2212)
  50792. * Wno-conditionally-supported: Warning Options. (line 2216)
  50793. * Wno-conversion: Warning Options. (line 2219)
  50794. * Wno-conversion-null: Warning Options. (line 2237)
  50795. * Wno-coverage-mismatch: Warning Options. (line 248)
  50796. * Wno-ctor-dtor-privacy: C++ Dialect Options.
  50797. (line 601)
  50798. * Wno-dangling-else: Warning Options. (line 2258)
  50799. * Wno-date-time: Warning Options. (line 2292)
  50800. * Wno-declaration-after-statement: Warning Options. (line 1843)
  50801. * Wno-delete-incomplete: Warning Options. (line 2297)
  50802. * Wno-delete-non-virtual-dtor: C++ Dialect Options.
  50803. (line 608)
  50804. * Wno-deprecated: Warning Options. (line 2628)
  50805. * Wno-deprecated-copy: C++ Dialect Options.
  50806. (line 615)
  50807. * Wno-deprecated-declarations: Warning Options. (line 2632)
  50808. * Wno-disabled-optimization: Warning Options. (line 2861)
  50809. * Wno-discarded-array-qualifiers: Warning Options. (line 1685)
  50810. * Wno-discarded-qualifiers: Warning Options. (line 1679)
  50811. * Wno-div-by-zero: Warning Options. (line 1703)
  50812. * Wno-double-promotion: Warning Options. (line 267)
  50813. * Wno-duplicate-decl-specifier: Warning Options. (line 285)
  50814. * Wno-duplicated-branches: Warning Options. (line 1656)
  50815. * Wno-duplicated-cond: Warning Options. (line 1667)
  50816. * Wno-effc++: C++ Dialect Options.
  50817. (line 847)
  50818. * Wno-empty-body: Warning Options. (line 2304)
  50819. * Wno-endif-labels: Warning Options. (line 2097)
  50820. * Wno-enum-compare: Warning Options. (line 2308)
  50821. * Wno-error: Warning Options. (line 28)
  50822. * Wno-error=: Warning Options. (line 31)
  50823. * Wno-extra: Warning Options. (line 200)
  50824. * Wno-extra <1>: Warning Options. (line 2542)
  50825. * Wno-extra <2>: Warning Options. (line 2651)
  50826. * Wno-extra-semi: Warning Options. (line 2314)
  50827. * Wno-fatal-errors: Warning Options. (line 48)
  50828. * Wno-float-conversion: Warning Options. (line 2340)
  50829. * Wno-float-equal: Warning Options. (line 1743)
  50830. * Wno-format: Warning Options. (line 290)
  50831. * Wno-format <1>: Warning Options. (line 1442)
  50832. * Wno-format-contains-nul: Warning Options. (line 324)
  50833. * Wno-format-extra-args: Warning Options. (line 328)
  50834. * Wno-format-nonliteral: Warning Options. (line 433)
  50835. * Wno-format-overflow: Warning Options. (line 343)
  50836. * Wno-format-overflow <1>: Warning Options. (line 354)
  50837. * Wno-format-security: Warning Options. (line 438)
  50838. * Wno-format-signedness: Warning Options. (line 450)
  50839. * Wno-format-truncation: Warning Options. (line 456)
  50840. * Wno-format-truncation <1>: Warning Options. (line 468)
  50841. * Wno-format-y2k: Warning Options. (line 479)
  50842. * Wno-format-zero-length: Warning Options. (line 423)
  50843. * Wno-frame-address: Warning Options. (line 1673)
  50844. * Wno-frame-larger-than: Warning Options. (line 1908)
  50845. * Wno-frame-larger-than <1>: Warning Options. (line 1921)
  50846. * Wno-free-nonheap-object: Warning Options. (line 1925)
  50847. * Wno-if-not-aligned: Warning Options. (line 651)
  50848. * Wno-ignored-attributes: Warning Options. (line 667)
  50849. * Wno-ignored-qualifiers: Warning Options. (line 656)
  50850. * Wno-implicit: Warning Options. (line 529)
  50851. * Wno-implicit-fallthrough: Warning Options. (line 533)
  50852. * Wno-implicit-function-declaration: Warning Options. (line 523)
  50853. * Wno-implicit-int: Warning Options. (line 519)
  50854. * Wno-incompatible-pointer-types: Warning Options. (line 1691)
  50855. * Wno-inherited-variadic-ctor: Warning Options. (line 2744)
  50856. * Wno-init-list-lifetime: C++ Dialect Options.
  50857. (line 623)
  50858. * Wno-init-self: Warning Options. (line 504)
  50859. * Wno-inline: Warning Options. (line 2749)
  50860. * Wno-int-conversion: Warning Options. (line 1697)
  50861. * Wno-int-in-bool-context: Warning Options. (line 2774)
  50862. * Wno-int-to-pointer-cast: Warning Options. (line 2782)
  50863. * Wno-invalid-memory-model: Warning Options. (line 1122)
  50864. * Wno-invalid-offsetof: Warning Options. (line 2762)
  50865. * Wno-invalid-pch: Warning Options. (line 2791)
  50866. * Wno-jump-misses-init: Warning Options. (line 2317)
  50867. * Wno-larger-than: Warning Options. (line 1904)
  50868. * Wno-literal-suffix: C++ Dialect Options.
  50869. (line 658)
  50870. * Wno-logical-not-parentheses: Warning Options. (line 2441)
  50871. * Wno-logical-op: Warning Options. (line 2433)
  50872. * Wno-long-long: Warning Options. (line 2795)
  50873. * Wno-lto-type-mismatch: C++ Dialect Options.
  50874. (line 684)
  50875. * Wno-main: Warning Options. (line 674)
  50876. * Wno-maybe-uninitialized: Warning Options. (line 1139)
  50877. * Wno-memset-elt-size: Warning Options. (line 2396)
  50878. * Wno-memset-transposed-args: Warning Options. (line 2404)
  50879. * Wno-misleading-indentation: Warning Options. (line 681)
  50880. * Wno-missing-attributes: Warning Options. (line 715)
  50881. * Wno-missing-braces: Warning Options. (line 759)
  50882. * Wno-missing-declarations: Warning Options. (line 2532)
  50883. * Wno-missing-field-initializers: Warning Options. (line 2542)
  50884. * Wno-missing-format-attribute: Warning Options. (line 1442)
  50885. * Wno-missing-include-dirs: Warning Options. (line 770)
  50886. * Wno-missing-noreturn: Warning Options. (line 1428)
  50887. * Wno-missing-parameter-type: Warning Options. (line 2514)
  50888. * Wno-missing-profile: Warning Options. (line 773)
  50889. * Wno-missing-prototypes: Warning Options. (line 2522)
  50890. * Wno-misspelled-isr: AVR Options. (line 285)
  50891. * Wno-multichar: Warning Options. (line 2572)
  50892. * Wno-multiple-inheritance: C++ Dialect Options.
  50893. (line 933)
  50894. * Wno-multistatement-macros: Warning Options. (line 789)
  50895. * Wno-namespaces: C++ Dialect Options.
  50896. (line 947)
  50897. * Wno-narrowing: C++ Dialect Options.
  50898. (line 690)
  50899. * Wno-nested-externs: Warning Options. (line 2741)
  50900. * Wno-noexcept: C++ Dialect Options.
  50901. (line 706)
  50902. * Wno-noexcept-type: C++ Dialect Options.
  50903. (line 712)
  50904. * Wno-non-template-friend: C++ Dialect Options.
  50905. (line 882)
  50906. * Wno-non-virtual-dtor: C++ Dialect Options.
  50907. (line 746)
  50908. * Wno-nonnull: Warning Options. (line 483)
  50909. * Wno-nonnull-compare: Warning Options. (line 490)
  50910. * Wno-normalized: Warning Options. (line 2578)
  50911. * Wno-null-dereference: Warning Options. (line 497)
  50912. * Wno-odr: Warning Options. (line 2641)
  50913. * Wno-old-style-cast: C++ Dialect Options.
  50914. (line 891)
  50915. * Wno-old-style-declaration: Warning Options. (line 2504)
  50916. * Wno-old-style-definition: Warning Options. (line 2510)
  50917. * Wno-openmp-simd: Warning Options. (line 2646)
  50918. * Wno-overflow: Warning Options. (line 2638)
  50919. * Wno-overlength-strings: Warning Options. (line 2881)
  50920. * Wno-overloaded-virtual: C++ Dialect Options.
  50921. (line 897)
  50922. * Wno-override-init: Warning Options. (line 2651)
  50923. * Wno-override-init-side-effects: Warning Options. (line 2659)
  50924. * Wno-packed: Warning Options. (line 2664)
  50925. * Wno-packed-bitfield-compat: Warning Options. (line 2681)
  50926. * Wno-packed-not-aligned: Warning Options. (line 2698)
  50927. * Wno-padded: Warning Options. (line 2711)
  50928. * Wno-parentheses: Warning Options. (line 809)
  50929. * Wno-pedantic: Warning Options. (line 80)
  50930. * Wno-pedantic-ms-format: Warning Options. (line 1963)
  50931. * Wno-pessimizing-move: C++ Dialect Options.
  50932. (line 775)
  50933. * Wno-placement-new: Warning Options. (line 1980)
  50934. * Wno-pmf-conversions: C++ Dialect Options.
  50935. (line 916)
  50936. * Wno-pmf-conversions <1>: Bound member functions.
  50937. (line 35)
  50938. * Wno-pointer-arith: Warning Options. (line 2015)
  50939. * Wno-pointer-compare: Warning Options. (line 2022)
  50940. * Wno-pointer-sign: Warning Options. (line 2870)
  50941. * Wno-pointer-to-int-cast: Warning Options. (line 2787)
  50942. * Wno-pragmas: Warning Options. (line 1191)
  50943. * Wno-prio-ctor-dtor: Warning Options. (line 1196)
  50944. * Wno-protocol: Objective-C and Objective-C++ Dialect Options.
  50945. (line 174)
  50946. * Wno-redundant-decls: Warning Options. (line 2718)
  50947. * Wno-redundant-move: C++ Dialect Options.
  50948. (line 797)
  50949. * Wno-register: C++ Dialect Options.
  50950. (line 754)
  50951. * Wno-reorder: C++ Dialect Options.
  50952. (line 761)
  50953. * Wno-restrict: Warning Options. (line 2722)
  50954. * Wno-return-local-addr: Warning Options. (line 889)
  50955. * Wno-return-type: Warning Options. (line 893)
  50956. * Wno-scalar-storage-order: Warning Options. (line 2346)
  50957. * Wno-selector: Objective-C and Objective-C++ Dialect Options.
  50958. (line 184)
  50959. * Wno-sequence-point: Warning Options. (line 836)
  50960. * Wno-shadow: Warning Options. (line 1849)
  50961. * Wno-shadow-ivar: Warning Options. (line 1857)
  50962. * Wno-shift-count-negative: Warning Options. (line 914)
  50963. * Wno-shift-count-overflow: Warning Options. (line 918)
  50964. * Wno-shift-negative-value: Warning Options. (line 922)
  50965. * Wno-shift-overflow: Warning Options. (line 927)
  50966. * Wno-sign-compare: Warning Options. (line 2328)
  50967. * Wno-sign-conversion: Warning Options. (line 2334)
  50968. * Wno-sign-promo: C++ Dialect Options.
  50969. (line 920)
  50970. * Wno-sized-deallocation: Warning Options. (line 2350)
  50971. * Wno-sizeof-array-argument: Warning Options. (line 2391)
  50972. * Wno-sizeof-pointer-div: Warning Options. (line 2361)
  50973. * Wno-sizeof-pointer-memaccess: Warning Options. (line 2369)
  50974. * Wno-stack-protector: Warning Options. (line 2876)
  50975. * Wno-stack-usage: Warning Options. (line 1929)
  50976. * Wno-stack-usage <1>: Warning Options. (line 1953)
  50977. * Wno-strict-aliasing: Warning Options. (line 1204)
  50978. * Wno-strict-null-sentinel: C++ Dialect Options.
  50979. (line 875)
  50980. * Wno-strict-overflow: Warning Options. (line 1243)
  50981. * Wno-strict-prototypes: Warning Options. (line 2498)
  50982. * Wno-strict-selector-match: Objective-C and Objective-C++ Dialect Options.
  50983. (line 196)
  50984. * Wno-stringop-overflow: Warning Options. (line 1292)
  50985. * Wno-stringop-overflow <1>: Warning Options. (line 1331)
  50986. * Wno-stringop-truncation: Warning Options. (line 1369)
  50987. * Wno-subobject-linkage: Warning Options. (line 2245)
  50988. * Wno-suggest-attribute=: Warning Options. (line 1420)
  50989. * Wno-suggest-attribute=cold: Warning Options. (line 1463)
  50990. * Wno-suggest-attribute=const: Warning Options. (line 1428)
  50991. * Wno-suggest-attribute=format: Warning Options. (line 1442)
  50992. * Wno-suggest-attribute=malloc: Warning Options. (line 1428)
  50993. * Wno-suggest-attribute=noreturn: Warning Options. (line 1428)
  50994. * Wno-suggest-attribute=pure: Warning Options. (line 1428)
  50995. * Wno-suggest-final-methods: Warning Options. (line 1480)
  50996. * Wno-suggest-final-types: Warning Options. (line 1471)
  50997. * Wno-switch: Warning Options. (line 944)
  50998. * Wno-switch-bool: Warning Options. (line 964)
  50999. * Wno-switch-default: Warning Options. (line 952)
  51000. * Wno-switch-enum: Warning Options. (line 955)
  51001. * Wno-switch-unreachable: Warning Options. (line 975)
  51002. * Wno-sync-nand: Warning Options. (line 999)
  51003. * Wno-system-headers: Warning Options. (line 1708)
  51004. * Wno-tautological-compare: Warning Options. (line 1719)
  51005. * Wno-templates: C++ Dialect Options.
  51006. (line 926)
  51007. * Wno-terminate: C++ Dialect Options.
  51008. (line 954)
  51009. * Wno-traditional: Warning Options. (line 1758)
  51010. * Wno-traditional-conversion: Warning Options. (line 1835)
  51011. * Wno-trampolines: Warning Options. (line 1733)
  51012. * Wno-type-limits: Warning Options. (line 2035)
  51013. * Wno-undeclared-selector: Objective-C and Objective-C++ Dialect Options.
  51014. (line 204)
  51015. * Wno-undef: Warning Options. (line 2068)
  51016. * Wno-uninitialized: Warning Options. (line 1100)
  51017. * Wno-unknown-pragmas: Warning Options. (line 1184)
  51018. * Wno-unsafe-loop-optimizations: Warning Options. (line 1957)
  51019. * Wno-unsuffixed-float-constants: Warning Options. (line 2896)
  51020. * Wno-unused: Warning Options. (line 1093)
  51021. * Wno-unused-but-set-parameter: Warning Options. (line 1004)
  51022. * Wno-unused-but-set-variable: Warning Options. (line 1013)
  51023. * Wno-unused-const-variable: Warning Options. (line 1060)
  51024. * Wno-unused-function: Warning Options. (line 1023)
  51025. * Wno-unused-label: Warning Options. (line 1028)
  51026. * Wno-unused-local-typedefs: Warning Options. (line 1035)
  51027. * Wno-unused-parameter: Warning Options. (line 1039)
  51028. * Wno-unused-result: Warning Options. (line 1046)
  51029. * Wno-unused-value: Warning Options. (line 1083)
  51030. * Wno-unused-variable: Warning Options. (line 1051)
  51031. * Wno-useless-cast: Warning Options. (line 2301)
  51032. * Wno-varargs: Warning Options. (line 2806)
  51033. * Wno-variadic-macros: Warning Options. (line 2800)
  51034. * Wno-vector-operation-performance: Warning Options. (line 2811)
  51035. * Wno-virtual-inheritance: C++ Dialect Options.
  51036. (line 940)
  51037. * Wno-virtual-move-assign: Warning Options. (line 2821)
  51038. * Wno-vla: Warning Options. (line 2830)
  51039. * Wno-vla-larger-than: Warning Options. (line 2834)
  51040. * Wno-vla-larger-than <1>: Warning Options. (line 2851)
  51041. * Wno-volatile-register-var: Warning Options. (line 2855)
  51042. * Wno-write-strings: Warning Options. (line 2190)
  51043. * Wno-zero-as-null-pointer-constant: Warning Options. (line 2241)
  51044. * Wnoexcept: C++ Dialect Options.
  51045. (line 706)
  51046. * Wnoexcept-type: C++ Dialect Options.
  51047. (line 712)
  51048. * Wnon-template-friend: C++ Dialect Options.
  51049. (line 882)
  51050. * Wnon-virtual-dtor: C++ Dialect Options.
  51051. (line 746)
  51052. * Wnonnull: Warning Options. (line 483)
  51053. * Wnonnull-compare: Warning Options. (line 490)
  51054. * Wnormalized: Warning Options. (line 2578)
  51055. * Wnormalized=: Warning Options. (line 2578)
  51056. * Wnull-dereference: Warning Options. (line 497)
  51057. * Wodr: Warning Options. (line 2641)
  51058. * Wold-style-cast: C++ Dialect Options.
  51059. (line 891)
  51060. * Wold-style-declaration: Warning Options. (line 2504)
  51061. * Wold-style-definition: Warning Options. (line 2510)
  51062. * Wopenmp-simd: Warning Options. (line 2646)
  51063. * Woverflow: Warning Options. (line 2638)
  51064. * Woverlength-strings: Warning Options. (line 2881)
  51065. * Woverloaded-virtual: C++ Dialect Options.
  51066. (line 897)
  51067. * Woverride-init: Warning Options. (line 2651)
  51068. * Woverride-init-side-effects: Warning Options. (line 2659)
  51069. * Wp: Preprocessor Options.
  51070. (line 456)
  51071. * Wpacked: Warning Options. (line 2664)
  51072. * Wpacked-bitfield-compat: Warning Options. (line 2681)
  51073. * Wpacked-not-aligned: Warning Options. (line 2698)
  51074. * Wpadded: Warning Options. (line 2711)
  51075. * Wparentheses: Warning Options. (line 809)
  51076. * Wpedantic: Warning Options. (line 80)
  51077. * Wpedantic-ms-format: Warning Options. (line 1963)
  51078. * Wpessimizing-move: C++ Dialect Options.
  51079. (line 775)
  51080. * Wplacement-new: Warning Options. (line 1980)
  51081. * Wpmf-conversions: C++ Dialect Options.
  51082. (line 916)
  51083. * Wpointer-arith: Warning Options. (line 2015)
  51084. * Wpointer-arith <1>: Pointer Arith. (line 13)
  51085. * Wpointer-compare: Warning Options. (line 2022)
  51086. * Wpointer-sign: Warning Options. (line 2870)
  51087. * Wpointer-to-int-cast: Warning Options. (line 2787)
  51088. * Wpragmas: Warning Options. (line 1191)
  51089. * Wprio-ctor-dtor: Warning Options. (line 1196)
  51090. * Wprotocol: Objective-C and Objective-C++ Dialect Options.
  51091. (line 174)
  51092. * wrapper: Overall Options. (line 361)
  51093. * Wredundant-decls: Warning Options. (line 2718)
  51094. * Wredundant-move: C++ Dialect Options.
  51095. (line 797)
  51096. * Wregister: C++ Dialect Options.
  51097. (line 754)
  51098. * Wreorder: C++ Dialect Options.
  51099. (line 761)
  51100. * Wrestrict: Warning Options. (line 2722)
  51101. * Wreturn-local-addr: Warning Options. (line 889)
  51102. * Wreturn-type: Warning Options. (line 893)
  51103. * Wscalar-storage-order: Warning Options. (line 2346)
  51104. * Wselector: Objective-C and Objective-C++ Dialect Options.
  51105. (line 184)
  51106. * Wsequence-point: Warning Options. (line 836)
  51107. * Wshadow: Warning Options. (line 1849)
  51108. * Wshadow-ivar: Warning Options. (line 1857)
  51109. * Wshadow=compatible-local: Warning Options. (line 1868)
  51110. * Wshadow=local: Warning Options. (line 1861)
  51111. * Wshadow=local <1>: Warning Options. (line 1864)
  51112. * Wshift-count-negative: Warning Options. (line 914)
  51113. * Wshift-count-overflow: Warning Options. (line 918)
  51114. * Wshift-negative-value: Warning Options. (line 922)
  51115. * Wshift-overflow: Warning Options. (line 927)
  51116. * Wsign-compare: Warning Options. (line 2328)
  51117. * Wsign-conversion: Warning Options. (line 2334)
  51118. * Wsign-promo: C++ Dialect Options.
  51119. (line 920)
  51120. * Wsized-deallocation: Warning Options. (line 2350)
  51121. * Wsizeof-array-argument: Warning Options. (line 2391)
  51122. * Wsizeof-pointer-div: Warning Options. (line 2361)
  51123. * Wsizeof-pointer-memaccess: Warning Options. (line 2369)
  51124. * Wstack-protector: Warning Options. (line 2876)
  51125. * Wstack-usage: Warning Options. (line 1929)
  51126. * Wstrict-aliasing: Warning Options. (line 1204)
  51127. * Wstrict-aliasing=n: Warning Options. (line 1211)
  51128. * Wstrict-null-sentinel: C++ Dialect Options.
  51129. (line 875)
  51130. * Wstrict-overflow: Warning Options. (line 1243)
  51131. * Wstrict-prototypes: Warning Options. (line 2498)
  51132. * Wstrict-selector-match: Objective-C and Objective-C++ Dialect Options.
  51133. (line 196)
  51134. * Wstringop-overflow: Warning Options. (line 1292)
  51135. * Wstringop-overflow <1>: Warning Options. (line 1331)
  51136. * Wstringop-truncation: Warning Options. (line 1369)
  51137. * Wsubobject-linkage: Warning Options. (line 2245)
  51138. * Wsuggest-attribute=: Warning Options. (line 1420)
  51139. * Wsuggest-attribute=cold: Warning Options. (line 1463)
  51140. * Wsuggest-attribute=const: Warning Options. (line 1428)
  51141. * Wsuggest-attribute=format: Warning Options. (line 1442)
  51142. * Wsuggest-attribute=malloc: Warning Options. (line 1428)
  51143. * Wsuggest-attribute=noreturn: Warning Options. (line 1428)
  51144. * Wsuggest-attribute=pure: Warning Options. (line 1428)
  51145. * Wsuggest-final-methods: Warning Options. (line 1480)
  51146. * Wsuggest-final-types: Warning Options. (line 1471)
  51147. * Wswitch: Warning Options. (line 944)
  51148. * Wswitch-bool: Warning Options. (line 964)
  51149. * Wswitch-default: Warning Options. (line 952)
  51150. * Wswitch-enum: Warning Options. (line 955)
  51151. * Wswitch-unreachable: Warning Options. (line 975)
  51152. * Wsync-nand: Warning Options. (line 999)
  51153. * Wsystem-headers: Warning Options. (line 1708)
  51154. * Wtautological-compare: Warning Options. (line 1719)
  51155. * Wtemplates: C++ Dialect Options.
  51156. (line 926)
  51157. * Wterminate: C++ Dialect Options.
  51158. (line 954)
  51159. * Wtraditional: Warning Options. (line 1758)
  51160. * Wtraditional-conversion: Warning Options. (line 1835)
  51161. * Wtrampolines: Warning Options. (line 1733)
  51162. * Wtrigraphs: Warning Options. (line 2058)
  51163. * Wtype-limits: Warning Options. (line 2035)
  51164. * Wundeclared-selector: Objective-C and Objective-C++ Dialect Options.
  51165. (line 204)
  51166. * Wundef: Warning Options. (line 2068)
  51167. * Wuninitialized: Warning Options. (line 1100)
  51168. * Wunknown-pragmas: Warning Options. (line 1184)
  51169. * Wunsafe-loop-optimizations: Warning Options. (line 1957)
  51170. * Wunsuffixed-float-constants: Warning Options. (line 2896)
  51171. * Wunused: Warning Options. (line 1093)
  51172. * Wunused-but-set-parameter: Warning Options. (line 1004)
  51173. * Wunused-but-set-variable: Warning Options. (line 1013)
  51174. * Wunused-const-variable: Warning Options. (line 1060)
  51175. * Wunused-function: Warning Options. (line 1023)
  51176. * Wunused-label: Warning Options. (line 1028)
  51177. * Wunused-local-typedefs: Warning Options. (line 1035)
  51178. * Wunused-macros: Warning Options. (line 2078)
  51179. * Wunused-parameter: Warning Options. (line 1039)
  51180. * Wunused-result: Warning Options. (line 1046)
  51181. * Wunused-value: Warning Options. (line 1083)
  51182. * Wunused-variable: Warning Options. (line 1051)
  51183. * Wuseless-cast: Warning Options. (line 2301)
  51184. * Wvarargs: Warning Options. (line 2806)
  51185. * Wvariadic-macros: Warning Options. (line 2800)
  51186. * Wvector-operation-performance: Warning Options. (line 2811)
  51187. * Wvirtual-inheritance: C++ Dialect Options.
  51188. (line 940)
  51189. * Wvirtual-move-assign: Warning Options. (line 2821)
  51190. * Wvla: Warning Options. (line 2830)
  51191. * Wvla-larger-than=: Warning Options. (line 2834)
  51192. * Wvolatile-register-var: Warning Options. (line 2855)
  51193. * Wwrite-strings: Warning Options. (line 2190)
  51194. * Wzero-as-null-pointer-constant: Warning Options. (line 2241)
  51195. * x: Overall Options. (line 138)
  51196. * Xassembler: Assembler Options. (line 13)
  51197. * Xbind-lazy: VxWorks Options. (line 26)
  51198. * Xbind-now: VxWorks Options. (line 30)
  51199. * Xlinker: Link Options. (line 318)
  51200. * Xpreprocessor: Preprocessor Options.
  51201. (line 467)
  51202. * Ym: System V Options. (line 26)
  51203. * YP: System V Options. (line 22)
  51204. * z: Link Options. (line 349)
  51205. 
  51206. File: gcc.info, Node: Keyword Index, Prev: Option Index, Up: Top
  51207. Keyword Index
  51208. *************
  51209. �[index�]
  51210. * Menu:
  51211. * #pragma: Pragmas. (line 6)
  51212. * #pragma implementation: C++ Interface. (line 36)
  51213. * #pragma implementation, implied: C++ Interface. (line 43)
  51214. * #pragma interface: C++ Interface. (line 17)
  51215. * $: Dollar Signs. (line 6)
  51216. * % in constraint: Modifiers. (line 52)
  51217. * %include: Spec Files. (line 26)
  51218. * %include_noerr: Spec Files. (line 30)
  51219. * %rename: Spec Files. (line 34)
  51220. * & in constraint: Modifiers. (line 25)
  51221. * ': Incompatibilities. (line 116)
  51222. * *__builtin_alloca: Other Builtins. (line 129)
  51223. * *__builtin_alloca_with_align: Other Builtins. (line 166)
  51224. * *__builtin_alloca_with_align_and_max: Other Builtins. (line 211)
  51225. * + in constraint: Modifiers. (line 12)
  51226. * -lgcc, use with -nodefaultlibs: Link Options. (line 155)
  51227. * -lgcc, use with -nostdlib: Link Options. (line 155)
  51228. * -march feature modifiers: AArch64 Options. (line 296)
  51229. * -mcpu feature modifiers: AArch64 Options. (line 296)
  51230. * -nodefaultlibs and unresolved references: Link Options. (line 155)
  51231. * -nostdlib and unresolved references: Link Options. (line 155)
  51232. * .sdata/.sdata2 references (PowerPC): RS/6000 and PowerPC Options.
  51233. (line 718)
  51234. * //: C++ Comments. (line 6)
  51235. * 0 in constraint: Simple Constraints. (line 125)
  51236. * < in constraint: Simple Constraints. (line 47)
  51237. * = in constraint: Modifiers. (line 8)
  51238. * > in constraint: Simple Constraints. (line 59)
  51239. * ?: extensions: Conditionals. (line 6)
  51240. * ?: side effect: Conditionals. (line 20)
  51241. * _ in variables in macros: Typeof. (line 46)
  51242. * _Accum data type: Fixed-Point. (line 6)
  51243. * _Complex keyword: Complex. (line 6)
  51244. * _Decimal128 data type: Decimal Float. (line 6)
  51245. * _Decimal32 data type: Decimal Float. (line 6)
  51246. * _Decimal64 data type: Decimal Float. (line 6)
  51247. * _Exit: Other Builtins. (line 6)
  51248. * _exit: Other Builtins. (line 6)
  51249. * _FloatN data types: Floating Types. (line 6)
  51250. * _FloatNx data types: Floating Types. (line 6)
  51251. * _Fract data type: Fixed-Point. (line 6)
  51252. * _get_ssp: x86 control-flow protection intrinsics.
  51253. (line 6)
  51254. * _HTM_FIRST_USER_ABORT_CODE: S/390 System z Built-in Functions.
  51255. (line 44)
  51256. * _inc_ssp: x86 control-flow protection intrinsics.
  51257. (line 12)
  51258. * _Sat data type: Fixed-Point. (line 6)
  51259. * _xabort: x86 transactional memory intrinsics.
  51260. (line 57)
  51261. * _xbegin: x86 transactional memory intrinsics.
  51262. (line 19)
  51263. * _xend: x86 transactional memory intrinsics.
  51264. (line 48)
  51265. * _xtest: x86 transactional memory intrinsics.
  51266. (line 53)
  51267. * __atomic_add_fetch: __atomic Builtins. (line 179)
  51268. * __atomic_always_lock_free: __atomic Builtins. (line 267)
  51269. * __atomic_and_fetch: __atomic Builtins. (line 183)
  51270. * __atomic_clear: __atomic Builtins. (line 241)
  51271. * __atomic_compare_exchange: __atomic Builtins. (line 171)
  51272. * __atomic_compare_exchange_n: __atomic Builtins. (line 147)
  51273. * __atomic_exchange: __atomic Builtins. (line 141)
  51274. * __atomic_exchange_n: __atomic Builtins. (line 131)
  51275. * __atomic_fetch_add: __atomic Builtins. (line 204)
  51276. * __atomic_fetch_and: __atomic Builtins. (line 208)
  51277. * __atomic_fetch_nand: __atomic Builtins. (line 214)
  51278. * __atomic_fetch_or: __atomic Builtins. (line 212)
  51279. * __atomic_fetch_sub: __atomic Builtins. (line 206)
  51280. * __atomic_fetch_xor: __atomic Builtins. (line 210)
  51281. * __atomic_is_lock_free: __atomic Builtins. (line 281)
  51282. * __atomic_load: __atomic Builtins. (line 113)
  51283. * __atomic_load_n: __atomic Builtins. (line 106)
  51284. * __atomic_nand_fetch: __atomic Builtins. (line 189)
  51285. * __atomic_or_fetch: __atomic Builtins. (line 187)
  51286. * __atomic_signal_fence: __atomic Builtins. (line 260)
  51287. * __atomic_store: __atomic Builtins. (line 126)
  51288. * __atomic_store_n: __atomic Builtins. (line 118)
  51289. * __atomic_sub_fetch: __atomic Builtins. (line 181)
  51290. * __atomic_test_and_set: __atomic Builtins. (line 229)
  51291. * __atomic_thread_fence: __atomic Builtins. (line 253)
  51292. * __atomic_xor_fetch: __atomic Builtins. (line 185)
  51293. * __builtin_addf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  51294. (line 17)
  51295. * __builtin_add_overflow: Integer Overflow Builtins.
  51296. (line 9)
  51297. * __builtin_add_overflow_p: Integer Overflow Builtins.
  51298. (line 86)
  51299. * __builtin_alloca: Other Builtins. (line 6)
  51300. * __builtin_alloca_with_align: Other Builtins. (line 6)
  51301. * __builtin_alloca_with_align_and_max: Other Builtins. (line 6)
  51302. * __builtin_apply: Constructing Calls. (line 29)
  51303. * __builtin_apply_args: Constructing Calls. (line 19)
  51304. * __builtin_arc_aligned: ARC Built-in Functions.
  51305. (line 18)
  51306. * __builtin_arc_brk: ARC Built-in Functions.
  51307. (line 28)
  51308. * __builtin_arc_core_read: ARC Built-in Functions.
  51309. (line 32)
  51310. * __builtin_arc_core_write: ARC Built-in Functions.
  51311. (line 39)
  51312. * __builtin_arc_divaw: ARC Built-in Functions.
  51313. (line 46)
  51314. * __builtin_arc_flag: ARC Built-in Functions.
  51315. (line 53)
  51316. * __builtin_arc_lr: ARC Built-in Functions.
  51317. (line 57)
  51318. * __builtin_arc_mul64: ARC Built-in Functions.
  51319. (line 64)
  51320. * __builtin_arc_mulu64: ARC Built-in Functions.
  51321. (line 68)
  51322. * __builtin_arc_nop: ARC Built-in Functions.
  51323. (line 73)
  51324. * __builtin_arc_norm: ARC Built-in Functions.
  51325. (line 77)
  51326. * __builtin_arc_normw: ARC Built-in Functions.
  51327. (line 84)
  51328. * __builtin_arc_rtie: ARC Built-in Functions.
  51329. (line 91)
  51330. * __builtin_arc_sleep: ARC Built-in Functions.
  51331. (line 95)
  51332. * __builtin_arc_sr: ARC Built-in Functions.
  51333. (line 99)
  51334. * __builtin_arc_swap: ARC Built-in Functions.
  51335. (line 106)
  51336. * __builtin_arc_swi: ARC Built-in Functions.
  51337. (line 112)
  51338. * __builtin_arc_sync: ARC Built-in Functions.
  51339. (line 116)
  51340. * __builtin_arc_trap_s: ARC Built-in Functions.
  51341. (line 120)
  51342. * __builtin_arc_unimp_s: ARC Built-in Functions.
  51343. (line 124)
  51344. * __builtin_assume_aligned: Other Builtins. (line 658)
  51345. * __builtin_bswap16: Other Builtins. (line 979)
  51346. * __builtin_bswap32: Other Builtins. (line 983)
  51347. * __builtin_bswap64: Other Builtins. (line 987)
  51348. * __builtin_call_with_static_chain: Other Builtins. (line 6)
  51349. * __builtin_call_with_static_chain <1>: Other Builtins. (line 385)
  51350. * __builtin_choose_expr: Other Builtins. (line 396)
  51351. * __builtin_clrsb: Other Builtins. (line 909)
  51352. * __builtin_clrsbl: Other Builtins. (line 931)
  51353. * __builtin_clrsbll: Other Builtins. (line 954)
  51354. * __builtin_clz: Other Builtins. (line 901)
  51355. * __builtin_clzl: Other Builtins. (line 923)
  51356. * __builtin_clzll: Other Builtins. (line 946)
  51357. * __builtin_complex: Other Builtins. (line 490)
  51358. * __builtin_constant_p: Other Builtins. (line 499)
  51359. * __builtin_convertvector: Vector Extensions. (line 165)
  51360. * __builtin_cpu_init: Basic PowerPC Built-in Functions Available on all Configurations.
  51361. (line 6)
  51362. * __builtin_cpu_init <1>: x86 Built-in Functions.
  51363. (line 68)
  51364. * __builtin_cpu_is: Basic PowerPC Built-in Functions Available on all Configurations.
  51365. (line 10)
  51366. * __builtin_cpu_is <1>: x86 Built-in Functions.
  51367. (line 96)
  51368. * __builtin_cpu_supports: Basic PowerPC Built-in Functions Available on all Configurations.
  51369. (line 68)
  51370. * __builtin_cpu_supports <1>: x86 Built-in Functions.
  51371. (line 228)
  51372. * __builtin_ctz: Other Builtins. (line 905)
  51373. * __builtin_ctzl: Other Builtins. (line 927)
  51374. * __builtin_ctzll: Other Builtins. (line 950)
  51375. * __builtin_divf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  51376. (line 29)
  51377. * __builtin_expect: Other Builtins. (line 562)
  51378. * __builtin_expect_with_probability: Other Builtins. (line 593)
  51379. * __builtin_extend_pointer: Other Builtins. (line 6)
  51380. * __builtin_extend_pointer <1>: Other Builtins. (line 991)
  51381. * __builtin_extract_return_addr: Return Address. (line 38)
  51382. * __builtin_ffs: Other Builtins. (line 897)
  51383. * __builtin_ffsl: Other Builtins. (line 920)
  51384. * __builtin_ffsll: Other Builtins. (line 942)
  51385. * __builtin_FILE: Other Builtins. (line 691)
  51386. * __builtin_fmaf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  51387. (line 37)
  51388. * __builtin_fpclassify: Other Builtins. (line 6)
  51389. * __builtin_fpclassify <1>: Other Builtins. (line 793)
  51390. * __builtin_frame_address: Return Address. (line 50)
  51391. * __builtin_frob_return_address: Return Address. (line 47)
  51392. * __builtin_FUNCTION: Other Builtins. (line 683)
  51393. * __builtin_goacc_parlevel_id: Other Builtins. (line 998)
  51394. * __builtin_goacc_parlevel_size: Other Builtins. (line 1002)
  51395. * __builtin_has_attribute: Other Builtins. (line 6)
  51396. * __builtin_has_attribute <1>: Other Builtins. (line 220)
  51397. * __builtin_huge_val: Other Builtins. (line 773)
  51398. * __builtin_huge_valf: Other Builtins. (line 778)
  51399. * __builtin_huge_valfN: Other Builtins. (line 785)
  51400. * __builtin_huge_valfNx: Other Builtins. (line 789)
  51401. * __builtin_huge_vall: Other Builtins. (line 781)
  51402. * __builtin_huge_valq: x86 Built-in Functions.
  51403. (line 50)
  51404. * __builtin_inf: Other Builtins. (line 804)
  51405. * __builtin_infd128: Other Builtins. (line 814)
  51406. * __builtin_infd32: Other Builtins. (line 808)
  51407. * __builtin_infd64: Other Builtins. (line 811)
  51408. * __builtin_inff: Other Builtins. (line 818)
  51409. * __builtin_inffN: Other Builtins. (line 827)
  51410. * __builtin_inffNx: Other Builtins. (line 830)
  51411. * __builtin_infl: Other Builtins. (line 823)
  51412. * __builtin_infq: x86 Built-in Functions.
  51413. (line 47)
  51414. * __builtin_isfinite: Other Builtins. (line 6)
  51415. * __builtin_isgreater: Other Builtins. (line 6)
  51416. * __builtin_isgreaterequal: Other Builtins. (line 6)
  51417. * __builtin_isinf_sign: Other Builtins. (line 6)
  51418. * __builtin_isinf_sign <1>: Other Builtins. (line 833)
  51419. * __builtin_isless: Other Builtins. (line 6)
  51420. * __builtin_islessequal: Other Builtins. (line 6)
  51421. * __builtin_islessgreater: Other Builtins. (line 6)
  51422. * __builtin_isnormal: Other Builtins. (line 6)
  51423. * __builtin_isunordered: Other Builtins. (line 6)
  51424. * __builtin_is_constant_evaluated: Other Builtins. (line 544)
  51425. * __builtin_LINE: Other Builtins. (line 676)
  51426. * __builtin_longjmp: Nonlocal Gotos. (line 37)
  51427. * __builtin_mulf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  51428. (line 25)
  51429. * __builtin_mul_overflow: Integer Overflow Builtins.
  51430. (line 63)
  51431. * __builtin_mul_overflow_p: Integer Overflow Builtins.
  51432. (line 90)
  51433. * __builtin_nan: Other Builtins. (line 841)
  51434. * __builtin_nand128: Other Builtins. (line 863)
  51435. * __builtin_nand32: Other Builtins. (line 857)
  51436. * __builtin_nand64: Other Builtins. (line 860)
  51437. * __builtin_nanf: Other Builtins. (line 867)
  51438. * __builtin_nanfN: Other Builtins. (line 874)
  51439. * __builtin_nanfNx: Other Builtins. (line 877)
  51440. * __builtin_nanl: Other Builtins. (line 870)
  51441. * __builtin_nanq: x86 Built-in Functions.
  51442. (line 54)
  51443. * __builtin_nans: Other Builtins. (line 880)
  51444. * __builtin_nansf: Other Builtins. (line 884)
  51445. * __builtin_nansfN: Other Builtins. (line 891)
  51446. * __builtin_nansfNx: Other Builtins. (line 894)
  51447. * __builtin_nansl: Other Builtins. (line 887)
  51448. * __builtin_nansq: x86 Built-in Functions.
  51449. (line 57)
  51450. * __builtin_nds32_isb: NDS32 Built-in Functions.
  51451. (line 12)
  51452. * __builtin_nds32_isync: NDS32 Built-in Functions.
  51453. (line 8)
  51454. * __builtin_nds32_mfsr: NDS32 Built-in Functions.
  51455. (line 15)
  51456. * __builtin_nds32_mfusr: NDS32 Built-in Functions.
  51457. (line 18)
  51458. * __builtin_nds32_mtsr: NDS32 Built-in Functions.
  51459. (line 21)
  51460. * __builtin_nds32_mtusr: NDS32 Built-in Functions.
  51461. (line 24)
  51462. * __builtin_nds32_setgie_dis: NDS32 Built-in Functions.
  51463. (line 30)
  51464. * __builtin_nds32_setgie_en: NDS32 Built-in Functions.
  51465. (line 27)
  51466. * __builtin_non_tx_store: S/390 System z Built-in Functions.
  51467. (line 98)
  51468. * __builtin_object_size: Object Size Checking.
  51469. (line 6)
  51470. * __builtin_object_size <1>: Object Size Checking.
  51471. (line 16)
  51472. * __builtin_object_size <2>: Other Builtins. (line 6)
  51473. * __builtin_object_size <3>: Other Builtins. (line 768)
  51474. * __builtin_offsetof: Offsetof. (line 6)
  51475. * __builtin_parity: Other Builtins. (line 917)
  51476. * __builtin_parityl: Other Builtins. (line 938)
  51477. * __builtin_parityll: Other Builtins. (line 962)
  51478. * __builtin_popcount: Other Builtins. (line 914)
  51479. * __builtin_popcountl: Other Builtins. (line 934)
  51480. * __builtin_popcountll: Other Builtins. (line 958)
  51481. * __builtin_powi: Other Builtins. (line 6)
  51482. * __builtin_powi <1>: Other Builtins. (line 966)
  51483. * __builtin_powif: Other Builtins. (line 6)
  51484. * __builtin_powif <1>: Other Builtins. (line 971)
  51485. * __builtin_powil: Other Builtins. (line 6)
  51486. * __builtin_powil <1>: Other Builtins. (line 975)
  51487. * __builtin_prefetch: Other Builtins. (line 729)
  51488. * __builtin_return: Constructing Calls. (line 47)
  51489. * __builtin_return_address: Return Address. (line 9)
  51490. * __builtin_rx_brk: RX Built-in Functions.
  51491. (line 10)
  51492. * __builtin_rx_clrpsw: RX Built-in Functions.
  51493. (line 13)
  51494. * __builtin_rx_int: RX Built-in Functions.
  51495. (line 17)
  51496. * __builtin_rx_machi: RX Built-in Functions.
  51497. (line 21)
  51498. * __builtin_rx_maclo: RX Built-in Functions.
  51499. (line 26)
  51500. * __builtin_rx_mulhi: RX Built-in Functions.
  51501. (line 31)
  51502. * __builtin_rx_mullo: RX Built-in Functions.
  51503. (line 36)
  51504. * __builtin_rx_mvfachi: RX Built-in Functions.
  51505. (line 41)
  51506. * __builtin_rx_mvfacmi: RX Built-in Functions.
  51507. (line 45)
  51508. * __builtin_rx_mvfc: RX Built-in Functions.
  51509. (line 49)
  51510. * __builtin_rx_mvtachi: RX Built-in Functions.
  51511. (line 53)
  51512. * __builtin_rx_mvtaclo: RX Built-in Functions.
  51513. (line 57)
  51514. * __builtin_rx_mvtc: RX Built-in Functions.
  51515. (line 61)
  51516. * __builtin_rx_mvtipl: RX Built-in Functions.
  51517. (line 65)
  51518. * __builtin_rx_racw: RX Built-in Functions.
  51519. (line 69)
  51520. * __builtin_rx_revw: RX Built-in Functions.
  51521. (line 73)
  51522. * __builtin_rx_rmpa: RX Built-in Functions.
  51523. (line 78)
  51524. * __builtin_rx_round: RX Built-in Functions.
  51525. (line 82)
  51526. * __builtin_rx_sat: RX Built-in Functions.
  51527. (line 87)
  51528. * __builtin_rx_setpsw: RX Built-in Functions.
  51529. (line 91)
  51530. * __builtin_rx_wait: RX Built-in Functions.
  51531. (line 95)
  51532. * __builtin_saddll_overflow: Integer Overflow Builtins.
  51533. (line 15)
  51534. * __builtin_saddl_overflow: Integer Overflow Builtins.
  51535. (line 13)
  51536. * __builtin_sadd_overflow: Integer Overflow Builtins.
  51537. (line 11)
  51538. * __builtin_setjmp: Nonlocal Gotos. (line 32)
  51539. * __builtin_set_thread_pointer: SH Built-in Functions.
  51540. (line 9)
  51541. * __builtin_shuffle: Vector Extensions. (line 127)
  51542. * __builtin_sh_get_fpscr: SH Built-in Functions.
  51543. (line 35)
  51544. * __builtin_sh_set_fpscr: SH Built-in Functions.
  51545. (line 38)
  51546. * __builtin_smulll_overflow: Integer Overflow Builtins.
  51547. (line 69)
  51548. * __builtin_smull_overflow: Integer Overflow Builtins.
  51549. (line 67)
  51550. * __builtin_smul_overflow: Integer Overflow Builtins.
  51551. (line 65)
  51552. * __builtin_speculation_safe_value: Other Builtins. (line 6)
  51553. * __builtin_speculation_safe_value <1>: Other Builtins. (line 261)
  51554. * __builtin_sqrtf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  51555. (line 33)
  51556. * __builtin_ssubll_overflow: Integer Overflow Builtins.
  51557. (line 49)
  51558. * __builtin_ssubl_overflow: Integer Overflow Builtins.
  51559. (line 47)
  51560. * __builtin_ssub_overflow: Integer Overflow Builtins.
  51561. (line 45)
  51562. * __builtin_subf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  51563. (line 21)
  51564. * __builtin_sub_overflow: Integer Overflow Builtins.
  51565. (line 43)
  51566. * __builtin_sub_overflow_p: Integer Overflow Builtins.
  51567. (line 88)
  51568. * __builtin_tabort: S/390 System z Built-in Functions.
  51569. (line 82)
  51570. * __builtin_tbegin: S/390 System z Built-in Functions.
  51571. (line 6)
  51572. * __builtin_tbeginc: S/390 System z Built-in Functions.
  51573. (line 73)
  51574. * __builtin_tbegin_nofloat: S/390 System z Built-in Functions.
  51575. (line 54)
  51576. * __builtin_tbegin_retry: S/390 System z Built-in Functions.
  51577. (line 60)
  51578. * __builtin_tbegin_retry_nofloat: S/390 System z Built-in Functions.
  51579. (line 67)
  51580. * __builtin_tend: S/390 System z Built-in Functions.
  51581. (line 77)
  51582. * __builtin_tgmath: Other Builtins. (line 436)
  51583. * __builtin_thread_pointer: SH Built-in Functions.
  51584. (line 18)
  51585. * __builtin_trap: Other Builtins. (line 602)
  51586. * __builtin_truncf128_round_to_odd: Basic PowerPC Built-in Functions Available on ISA 3.0.
  51587. (line 41)
  51588. * __builtin_tx_assist: S/390 System z Built-in Functions.
  51589. (line 87)
  51590. * __builtin_tx_nesting_depth: S/390 System z Built-in Functions.
  51591. (line 93)
  51592. * __builtin_types_compatible_p: Other Builtins. (line 340)
  51593. * __builtin_uaddll_overflow: Integer Overflow Builtins.
  51594. (line 21)
  51595. * __builtin_uaddl_overflow: Integer Overflow Builtins.
  51596. (line 19)
  51597. * __builtin_uadd_overflow: Integer Overflow Builtins.
  51598. (line 17)
  51599. * __builtin_umulll_overflow: Integer Overflow Builtins.
  51600. (line 75)
  51601. * __builtin_umull_overflow: Integer Overflow Builtins.
  51602. (line 73)
  51603. * __builtin_umul_overflow: Integer Overflow Builtins.
  51604. (line 71)
  51605. * __builtin_unreachable: Other Builtins. (line 609)
  51606. * __builtin_usubll_overflow: Integer Overflow Builtins.
  51607. (line 55)
  51608. * __builtin_usubl_overflow: Integer Overflow Builtins.
  51609. (line 53)
  51610. * __builtin_usub_overflow: Integer Overflow Builtins.
  51611. (line 51)
  51612. * __builtin_va_arg_pack: Constructing Calls. (line 52)
  51613. * __builtin_va_arg_pack_len: Constructing Calls. (line 75)
  51614. * __builtin___clear_cache: Other Builtins. (line 716)
  51615. * __builtin___fprintf_chk: Object Size Checking.
  51616. (line 6)
  51617. * __builtin___memcpy_chk: Object Size Checking.
  51618. (line 6)
  51619. * __builtin___memmove_chk: Object Size Checking.
  51620. (line 6)
  51621. * __builtin___mempcpy_chk: Object Size Checking.
  51622. (line 6)
  51623. * __builtin___memset_chk: Object Size Checking.
  51624. (line 6)
  51625. * __builtin___printf_chk: Object Size Checking.
  51626. (line 6)
  51627. * __builtin___snprintf_chk: Object Size Checking.
  51628. (line 6)
  51629. * __builtin___sprintf_chk: Object Size Checking.
  51630. (line 6)
  51631. * __builtin___stpcpy_chk: Object Size Checking.
  51632. (line 6)
  51633. * __builtin___strcat_chk: Object Size Checking.
  51634. (line 6)
  51635. * __builtin___strcpy_chk: Object Size Checking.
  51636. (line 6)
  51637. * __builtin___strncat_chk: Object Size Checking.
  51638. (line 6)
  51639. * __builtin___strncpy_chk: Object Size Checking.
  51640. (line 6)
  51641. * __builtin___vfprintf_chk: Object Size Checking.
  51642. (line 6)
  51643. * __builtin___vprintf_chk: Object Size Checking.
  51644. (line 6)
  51645. * __builtin___vsnprintf_chk: Object Size Checking.
  51646. (line 6)
  51647. * __builtin___vsprintf_chk: Object Size Checking.
  51648. (line 6)
  51649. * __complex__ keyword: Complex. (line 6)
  51650. * __declspec(dllexport): Microsoft Windows Function Attributes.
  51651. (line 10)
  51652. * __declspec(dllimport): Microsoft Windows Function Attributes.
  51653. (line 42)
  51654. * __ea SPU Named Address Spaces: Named Address Spaces.
  51655. (line 170)
  51656. * __extension__: Alternate Keywords. (line 30)
  51657. * __far M32C Named Address Spaces: Named Address Spaces.
  51658. (line 153)
  51659. * __far RL78 Named Address Spaces: Named Address Spaces.
  51660. (line 162)
  51661. * __flash AVR Named Address Spaces: Named Address Spaces.
  51662. (line 44)
  51663. * __flash1 AVR Named Address Spaces: Named Address Spaces.
  51664. (line 53)
  51665. * __flash2 AVR Named Address Spaces: Named Address Spaces.
  51666. (line 53)
  51667. * __flash3 AVR Named Address Spaces: Named Address Spaces.
  51668. (line 53)
  51669. * __flash4 AVR Named Address Spaces: Named Address Spaces.
  51670. (line 53)
  51671. * __flash5 AVR Named Address Spaces: Named Address Spaces.
  51672. (line 53)
  51673. * __float128 data type: Floating Types. (line 6)
  51674. * __float80 data type: Floating Types. (line 6)
  51675. * __fp16 data type: Half-Precision. (line 6)
  51676. * __FUNCTION__ identifier: Function Names. (line 6)
  51677. * __func__ identifier: Function Names. (line 6)
  51678. * __ibm128 data type: Floating Types. (line 6)
  51679. * __imag__ keyword: Complex. (line 31)
  51680. * __int128 data types: __int128. (line 6)
  51681. * __memx AVR Named Address Spaces: Named Address Spaces.
  51682. (line 59)
  51683. * __PRETTY_FUNCTION__ identifier: Function Names. (line 6)
  51684. * __real__ keyword: Complex. (line 31)
  51685. * __seg_fs x86 named address space: Named Address Spaces.
  51686. (line 188)
  51687. * __seg_gs x86 named address space: Named Address Spaces.
  51688. (line 188)
  51689. * __STDC_HOSTED__: Standards. (line 13)
  51690. * __sync_add_and_fetch: __sync Builtins. (line 72)
  51691. * __sync_and_and_fetch: __sync Builtins. (line 72)
  51692. * __sync_bool_compare_and_swap: __sync Builtins. (line 88)
  51693. * __sync_fetch_and_add: __sync Builtins. (line 50)
  51694. * __sync_fetch_and_and: __sync Builtins. (line 50)
  51695. * __sync_fetch_and_nand: __sync Builtins. (line 50)
  51696. * __sync_fetch_and_or: __sync Builtins. (line 50)
  51697. * __sync_fetch_and_sub: __sync Builtins. (line 50)
  51698. * __sync_fetch_and_xor: __sync Builtins. (line 50)
  51699. * __sync_lock_release: __sync Builtins. (line 118)
  51700. * __sync_lock_test_and_set: __sync Builtins. (line 100)
  51701. * __sync_nand_and_fetch: __sync Builtins. (line 72)
  51702. * __sync_or_and_fetch: __sync Builtins. (line 72)
  51703. * __sync_sub_and_fetch: __sync Builtins. (line 72)
  51704. * __sync_synchronize: __sync Builtins. (line 97)
  51705. * __sync_val_compare_and_swap: __sync Builtins. (line 88)
  51706. * __sync_xor_and_fetch: __sync Builtins. (line 72)
  51707. * __thread: Thread-Local. (line 6)
  51708. * AArch64 Options: AArch64 Options. (line 6)
  51709. * ABI: Compatibility. (line 6)
  51710. * abi_tag function attribute: C++ Attributes. (line 9)
  51711. * abi_tag type attribute: C++ Attributes. (line 9)
  51712. * abi_tag variable attribute: C++ Attributes. (line 9)
  51713. * abort: Other Builtins. (line 6)
  51714. * abs: Other Builtins. (line 6)
  51715. * absdata variable attribute, AVR: AVR Variable Attributes.
  51716. (line 104)
  51717. * accessing volatiles: Volatiles. (line 6)
  51718. * accessing volatiles <1>: C++ Volatiles. (line 6)
  51719. * acos: Other Builtins. (line 6)
  51720. * acosf: Other Builtins. (line 6)
  51721. * acosh: Other Builtins. (line 6)
  51722. * acoshf: Other Builtins. (line 6)
  51723. * acoshl: Other Builtins. (line 6)
  51724. * acosl: Other Builtins. (line 6)
  51725. * Ada: G++ and GCC. (line 6)
  51726. * Ada <1>: G++ and GCC. (line 29)
  51727. * additional floating types: Floating Types. (line 6)
  51728. * address constraints: Simple Constraints. (line 152)
  51729. * address of a label: Labels as Values. (line 6)
  51730. * address variable attribute, AVR: AVR Variable Attributes.
  51731. (line 97)
  51732. * address_operand: Simple Constraints. (line 156)
  51733. * alias function attribute: Common Function Attributes.
  51734. (line 9)
  51735. * alias variable attribute: Common Variable Attributes.
  51736. (line 9)
  51737. * aligned function attribute: Common Function Attributes.
  51738. (line 24)
  51739. * aligned type attribute: Common Type Attributes.
  51740. (line 8)
  51741. * aligned variable attribute: Common Variable Attributes.
  51742. (line 31)
  51743. * alignment: Alignment. (line 6)
  51744. * alloca: Other Builtins. (line 6)
  51745. * alloca vs variable-length arrays: Variable Length. (line 35)
  51746. * alloc_align function attribute: Common Function Attributes.
  51747. (line 52)
  51748. * alloc_size function attribute: Common Function Attributes.
  51749. (line 72)
  51750. * alloc_size type attribute: Common Type Attributes.
  51751. (line 136)
  51752. * alloc_size variable attribute: Common Variable Attributes.
  51753. (line 137)
  51754. * Allow nesting in an interrupt handler on the Blackfin processor: Blackfin Function Attributes.
  51755. (line 45)
  51756. * Altera Nios II options: Nios II Options. (line 6)
  51757. * alternate keywords: Alternate Keywords. (line 6)
  51758. * altivec type attribute, PowerPC: PowerPC Type Attributes.
  51759. (line 12)
  51760. * altivec variable attribute, PowerPC: PowerPC Variable Attributes.
  51761. (line 12)
  51762. * always_inline function attribute: Common Function Attributes.
  51763. (line 98)
  51764. * AMD GCN Options: AMD GCN Options. (line 6)
  51765. * AMD1: Standards. (line 13)
  51766. * amdgpu_hsa_kernel function attribute, AMD GCN: AMD GCN Function Attributes.
  51767. (line 9)
  51768. * ANSI C: Standards. (line 13)
  51769. * ANSI C standard: Standards. (line 13)
  51770. * ANSI C89: Standards. (line 13)
  51771. * ANSI support: C Dialect Options. (line 10)
  51772. * ANSI X3.159-1989: Standards. (line 13)
  51773. * apostrophes: Incompatibilities. (line 116)
  51774. * application binary interface: Compatibility. (line 6)
  51775. * ARC options: ARC Options. (line 6)
  51776. * arch= function attribute, AArch64: AArch64 Function Attributes.
  51777. (line 53)
  51778. * arch= function attribute, ARM: ARM Function Attributes.
  51779. (line 98)
  51780. * ARM options: ARM Options. (line 6)
  51781. * ARM [Annotated C++ Reference Manual]: Backwards Compatibility.
  51782. (line 6)
  51783. * arrays of length zero: Zero Length. (line 6)
  51784. * arrays of variable length: Variable Length. (line 6)
  51785. * arrays, non-lvalue: Subscripting. (line 6)
  51786. * artificial function attribute: Common Function Attributes.
  51787. (line 108)
  51788. * asin: Other Builtins. (line 6)
  51789. * asinf: Other Builtins. (line 6)
  51790. * asinh: Other Builtins. (line 6)
  51791. * asinhf: Other Builtins. (line 6)
  51792. * asinhl: Other Builtins. (line 6)
  51793. * asinl: Other Builtins. (line 6)
  51794. * asm assembler template: Extended Asm. (line 226)
  51795. * asm clobbers: Extended Asm. (line 654)
  51796. * asm constraints: Constraints. (line 6)
  51797. * asm expressions: Extended Asm. (line 559)
  51798. * asm flag output operands: Extended Asm. (line 488)
  51799. * asm goto labels: Extended Asm. (line 841)
  51800. * asm inline: Size of an asm. (line 25)
  51801. * asm input operands: Extended Asm. (line 559)
  51802. * asm keyword: Using Assembly Language with C.
  51803. (line 6)
  51804. * asm output operands: Extended Asm. (line 329)
  51805. * asm scratch registers: Extended Asm. (line 654)
  51806. * asm volatile: Extended Asm. (line 116)
  51807. * assembler names for identifiers: Asm Labels. (line 6)
  51808. * assembly code, invalid: Bug Criteria. (line 12)
  51809. * assembly language in C: Using Assembly Language with C.
  51810. (line 6)
  51811. * assembly language in C, basic: Basic Asm. (line 6)
  51812. * assembly language in C, extended: Extended Asm. (line 6)
  51813. * assume_aligned function attribute: Common Function Attributes.
  51814. (line 116)
  51815. * atan: Other Builtins. (line 6)
  51816. * atan2: Other Builtins. (line 6)
  51817. * atan2f: Other Builtins. (line 6)
  51818. * atan2l: Other Builtins. (line 6)
  51819. * atanf: Other Builtins. (line 6)
  51820. * atanh: Other Builtins. (line 6)
  51821. * atanhf: Other Builtins. (line 6)
  51822. * atanhl: Other Builtins. (line 6)
  51823. * atanl: Other Builtins. (line 6)
  51824. * attribute of types: Type Attributes. (line 6)
  51825. * attribute of variables: Variable Attributes.
  51826. (line 6)
  51827. * attribute syntax: Attribute Syntax. (line 6)
  51828. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  51829. * automatic inline for C++ member fns: Inline. (line 68)
  51830. * aux variable attribute, ARC: ARC Variable Attributes.
  51831. (line 7)
  51832. * AVR Options: AVR Options. (line 6)
  51833. * Backwards Compatibility: Backwards Compatibility.
  51834. (line 6)
  51835. * bank_switch function attribute, M32C: M32C Function Attributes.
  51836. (line 9)
  51837. * base class members: Name lookup. (line 6)
  51838. * based type attribute, MeP: MeP Type Attributes.
  51839. (line 6)
  51840. * based variable attribute, MeP: MeP Variable Attributes.
  51841. (line 16)
  51842. * basic asm: Basic Asm. (line 6)
  51843. * bcmp: Other Builtins. (line 6)
  51844. * below100 variable attribute, Xstormy16: Xstormy16 Variable Attributes.
  51845. (line 10)
  51846. * binary compatibility: Compatibility. (line 6)
  51847. * Binary constants using the 0b prefix: Binary constants. (line 6)
  51848. * Blackfin Options: Blackfin Options. (line 6)
  51849. * bound pointer to member function: Bound member functions.
  51850. (line 6)
  51851. * branch-protection function attribute, AArch64: AArch64 Function Attributes.
  51852. (line 76)
  51853. * break handler functions: MicroBlaze Function Attributes.
  51854. (line 17)
  51855. * break_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  51856. (line 17)
  51857. * brk_interrupt function attribute, RL78: RL78 Function Attributes.
  51858. (line 10)
  51859. * bug criteria: Bug Criteria. (line 6)
  51860. * bugs: Bugs. (line 6)
  51861. * bugs, known: Trouble. (line 6)
  51862. * built-in functions: C Dialect Options. (line 264)
  51863. * built-in functions <1>: Other Builtins. (line 6)
  51864. * bzero: Other Builtins. (line 6)
  51865. * C compilation options: Invoking GCC. (line 18)
  51866. * C intermediate output, nonexistent: G++ and GCC. (line 34)
  51867. * C language extensions: C Extensions. (line 6)
  51868. * C language, traditional: Preprocessor Options.
  51869. (line 366)
  51870. * C standard: Standards. (line 13)
  51871. * C standards: Standards. (line 13)
  51872. * c++: Invoking G++. (line 14)
  51873. * C++: G++ and GCC. (line 29)
  51874. * C++ comments: C++ Comments. (line 6)
  51875. * C++ interface and implementation headers: C++ Interface. (line 6)
  51876. * C++ language extensions: C++ Extensions. (line 6)
  51877. * C++ member fns, automatically inline: Inline. (line 68)
  51878. * C++ misunderstandings: C++ Misunderstandings.
  51879. (line 6)
  51880. * C++ options, command-line: C++ Dialect Options.
  51881. (line 6)
  51882. * C++ pragmas, effect on inlining: C++ Interface. (line 57)
  51883. * C++ source file suffixes: Invoking G++. (line 6)
  51884. * C++ static data, declaring and defining: Static Definitions.
  51885. (line 6)
  51886. * C-SKY Options: C-SKY Options. (line 6)
  51887. * C11: Standards. (line 13)
  51888. * C17: Standards. (line 13)
  51889. * C1X: Standards. (line 13)
  51890. * C2X: Standards. (line 13)
  51891. * C6X Options: C6X Options. (line 6)
  51892. * C89: Standards. (line 13)
  51893. * C90: Standards. (line 13)
  51894. * C94: Standards. (line 13)
  51895. * C95: Standards. (line 13)
  51896. * C99: Standards. (line 13)
  51897. * C9X: Standards. (line 13)
  51898. * cabs: Other Builtins. (line 6)
  51899. * cabsf: Other Builtins. (line 6)
  51900. * cabsl: Other Builtins. (line 6)
  51901. * cacos: Other Builtins. (line 6)
  51902. * cacosf: Other Builtins. (line 6)
  51903. * cacosh: Other Builtins. (line 6)
  51904. * cacoshf: Other Builtins. (line 6)
  51905. * cacoshl: Other Builtins. (line 6)
  51906. * cacosl: Other Builtins. (line 6)
  51907. * callee_pop_aggregate_return function attribute, x86: x86 Function Attributes.
  51908. (line 47)
  51909. * calling functions through the function vector on SH2A: SH Function Attributes.
  51910. (line 9)
  51911. * calloc: Other Builtins. (line 6)
  51912. * carg: Other Builtins. (line 6)
  51913. * cargf: Other Builtins. (line 6)
  51914. * cargl: Other Builtins. (line 6)
  51915. * case labels in initializers: Designated Inits. (line 6)
  51916. * case ranges: Case Ranges. (line 6)
  51917. * casin: Other Builtins. (line 6)
  51918. * casinf: Other Builtins. (line 6)
  51919. * casinh: Other Builtins. (line 6)
  51920. * casinhf: Other Builtins. (line 6)
  51921. * casinhl: Other Builtins. (line 6)
  51922. * casinl: Other Builtins. (line 6)
  51923. * cast to a union: Cast to Union. (line 6)
  51924. * catan: Other Builtins. (line 6)
  51925. * catanf: Other Builtins. (line 6)
  51926. * catanh: Other Builtins. (line 6)
  51927. * catanhf: Other Builtins. (line 6)
  51928. * catanhl: Other Builtins. (line 6)
  51929. * catanl: Other Builtins. (line 6)
  51930. * cb variable attribute, MeP: MeP Variable Attributes.
  51931. (line 46)
  51932. * cbrt: Other Builtins. (line 6)
  51933. * cbrtf: Other Builtins. (line 6)
  51934. * cbrtl: Other Builtins. (line 6)
  51935. * ccos: Other Builtins. (line 6)
  51936. * ccosf: Other Builtins. (line 6)
  51937. * ccosh: Other Builtins. (line 6)
  51938. * ccoshf: Other Builtins. (line 6)
  51939. * ccoshl: Other Builtins. (line 6)
  51940. * ccosl: Other Builtins. (line 6)
  51941. * cdecl function attribute, x86-32: x86 Function Attributes.
  51942. (line 9)
  51943. * ceil: Other Builtins. (line 6)
  51944. * ceilf: Other Builtins. (line 6)
  51945. * ceill: Other Builtins. (line 6)
  51946. * cexp: Other Builtins. (line 6)
  51947. * cexpf: Other Builtins. (line 6)
  51948. * cexpl: Other Builtins. (line 6)
  51949. * cf_check function attribute, x86: x86 Function Attributes.
  51950. (line 625)
  51951. * character set, execution: Preprocessor Options.
  51952. (line 266)
  51953. * character set, input: Preprocessor Options.
  51954. (line 279)
  51955. * character set, input normalization: Warning Options. (line 2578)
  51956. * character set, wide execution: Preprocessor Options.
  51957. (line 271)
  51958. * cimag: Other Builtins. (line 6)
  51959. * cimagf: Other Builtins. (line 6)
  51960. * cimagl: Other Builtins. (line 6)
  51961. * cleanup variable attribute: Common Variable Attributes.
  51962. (line 161)
  51963. * clog: Other Builtins. (line 6)
  51964. * clog10: Other Builtins. (line 6)
  51965. * clog10f: Other Builtins. (line 6)
  51966. * clog10l: Other Builtins. (line 6)
  51967. * clogf: Other Builtins. (line 6)
  51968. * clogl: Other Builtins. (line 6)
  51969. * cmodel= function attribute, AArch64: AArch64 Function Attributes.
  51970. (line 27)
  51971. * COBOL: G++ and GCC. (line 23)
  51972. * code generation conventions: Code Gen Options. (line 6)
  51973. * code, mixed with declarations: Mixed Declarations. (line 6)
  51974. * cold function attribute: Common Function Attributes.
  51975. (line 132)
  51976. * cold label attribute: Label Attributes. (line 45)
  51977. * command options: Invoking GCC. (line 6)
  51978. * comments, C++ style: C++ Comments. (line 6)
  51979. * common variable attribute: Common Variable Attributes.
  51980. (line 176)
  51981. * comparison of signed and unsigned values, warning: Warning Options.
  51982. (line 2328)
  51983. * compilation statistics: Developer Options. (line 6)
  51984. * compiler bugs, reporting: Bug Reporting. (line 6)
  51985. * compiler compared to C++ preprocessor: G++ and GCC. (line 34)
  51986. * compiler options, C++: C++ Dialect Options.
  51987. (line 6)
  51988. * compiler options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  51989. (line 6)
  51990. * compiler version, specifying: Invoking GCC. (line 24)
  51991. * COMPILER_PATH: Environment Variables.
  51992. (line 91)
  51993. * complex conjugation: Complex. (line 38)
  51994. * complex numbers: Complex. (line 6)
  51995. * compound literals: Compound Literals. (line 6)
  51996. * computed gotos: Labels as Values. (line 6)
  51997. * conditional expressions, extensions: Conditionals. (line 6)
  51998. * conflicting types: Disappointments. (line 21)
  51999. * conj: Other Builtins. (line 6)
  52000. * conjf: Other Builtins. (line 6)
  52001. * conjl: Other Builtins. (line 6)
  52002. * const applied to function: Function Attributes.
  52003. (line 6)
  52004. * const function attribute: Common Function Attributes.
  52005. (line 148)
  52006. * const qualifier: Pointers to Arrays. (line 6)
  52007. * constants in constraints: Simple Constraints. (line 68)
  52008. * constraint modifier characters: Modifiers. (line 6)
  52009. * constraint, matching: Simple Constraints. (line 137)
  52010. * constraints, asm: Constraints. (line 6)
  52011. * constraints, machine specific: Machine Constraints.
  52012. (line 6)
  52013. * constructing calls: Constructing Calls. (line 6)
  52014. * constructor expressions: Compound Literals. (line 6)
  52015. * constructor function attribute: Common Function Attributes.
  52016. (line 189)
  52017. * contributors: Contributors. (line 6)
  52018. * copy function attribute: Common Function Attributes.
  52019. (line 217)
  52020. * copy type attribute: Common Type Attributes.
  52021. (line 161)
  52022. * copy variable attribute: Common Variable Attributes.
  52023. (line 185)
  52024. * copysign: Other Builtins. (line 6)
  52025. * copysignf: Other Builtins. (line 6)
  52026. * copysignl: Other Builtins. (line 6)
  52027. * core dump: Bug Criteria. (line 9)
  52028. * cos: Other Builtins. (line 6)
  52029. * cosf: Other Builtins. (line 6)
  52030. * cosh: Other Builtins. (line 6)
  52031. * coshf: Other Builtins. (line 6)
  52032. * coshl: Other Builtins. (line 6)
  52033. * cosl: Other Builtins. (line 6)
  52034. * CPATH: Environment Variables.
  52035. (line 127)
  52036. * CPLUS_INCLUDE_PATH: Environment Variables.
  52037. (line 129)
  52038. * cpow: Other Builtins. (line 6)
  52039. * cpowf: Other Builtins. (line 6)
  52040. * cpowl: Other Builtins. (line 6)
  52041. * cproj: Other Builtins. (line 6)
  52042. * cprojf: Other Builtins. (line 6)
  52043. * cprojl: Other Builtins. (line 6)
  52044. * cpu= function attribute, AArch64: AArch64 Function Attributes.
  52045. (line 63)
  52046. * CR16 Options: CR16 Options. (line 6)
  52047. * creal: Other Builtins. (line 6)
  52048. * crealf: Other Builtins. (line 6)
  52049. * creall: Other Builtins. (line 6)
  52050. * CRIS Options: CRIS Options. (line 6)
  52051. * critical function attribute, MSP430: MSP430 Function Attributes.
  52052. (line 9)
  52053. * cross compiling: Invoking GCC. (line 24)
  52054. * csin: Other Builtins. (line 6)
  52055. * csinf: Other Builtins. (line 6)
  52056. * csinh: Other Builtins. (line 6)
  52057. * csinhf: Other Builtins. (line 6)
  52058. * csinhl: Other Builtins. (line 6)
  52059. * csinl: Other Builtins. (line 6)
  52060. * csqrt: Other Builtins. (line 6)
  52061. * csqrtf: Other Builtins. (line 6)
  52062. * csqrtl: Other Builtins. (line 6)
  52063. * ctan: Other Builtins. (line 6)
  52064. * ctanf: Other Builtins. (line 6)
  52065. * ctanh: Other Builtins. (line 6)
  52066. * ctanhf: Other Builtins. (line 6)
  52067. * ctanhl: Other Builtins. (line 6)
  52068. * ctanl: Other Builtins. (line 6)
  52069. * C_INCLUDE_PATH: Environment Variables.
  52070. (line 128)
  52071. * D: G++ and GCC. (line 6)
  52072. * Darwin options: Darwin Options. (line 6)
  52073. * dcgettext: Other Builtins. (line 6)
  52074. * dd integer suffix: Decimal Float. (line 6)
  52075. * DD integer suffix: Decimal Float. (line 6)
  52076. * deallocating variable length arrays: Variable Length. (line 22)
  52077. * debug dump options: Developer Options. (line 6)
  52078. * debugging GCC: Developer Options. (line 6)
  52079. * debugging information options: Debugging Options. (line 6)
  52080. * decimal floating types: Decimal Float. (line 6)
  52081. * declaration scope: Incompatibilities. (line 80)
  52082. * declarations inside expressions: Statement Exprs. (line 6)
  52083. * declarations, mixed with code: Mixed Declarations. (line 6)
  52084. * declaring attributes of functions: Function Attributes.
  52085. (line 6)
  52086. * declaring static data in C++: Static Definitions. (line 6)
  52087. * defining static data in C++: Static Definitions. (line 6)
  52088. * dependencies for make as output: Environment Variables.
  52089. (line 156)
  52090. * dependencies for make as output <1>: Environment Variables.
  52091. (line 172)
  52092. * dependencies, make: Preprocessor Options.
  52093. (line 77)
  52094. * DEPENDENCIES_OUTPUT: Environment Variables.
  52095. (line 155)
  52096. * dependent name lookup: Name lookup. (line 6)
  52097. * deprecated enumerator attribute: Enumerator Attributes.
  52098. (line 28)
  52099. * deprecated function attribute: Common Function Attributes.
  52100. (line 248)
  52101. * deprecated type attribute: Common Type Attributes.
  52102. (line 189)
  52103. * deprecated variable attribute: Common Variable Attributes.
  52104. (line 201)
  52105. * designated initializers: Designated Inits. (line 6)
  52106. * designated_init type attribute: Common Type Attributes.
  52107. (line 223)
  52108. * designator lists: Designated Inits. (line 96)
  52109. * designators: Designated Inits. (line 64)
  52110. * destructor function attribute: Common Function Attributes.
  52111. (line 189)
  52112. * developer options: Developer Options. (line 6)
  52113. * df integer suffix: Decimal Float. (line 6)
  52114. * DF integer suffix: Decimal Float. (line 6)
  52115. * dgettext: Other Builtins. (line 6)
  52116. * diagnostic messages: Diagnostic Message Formatting Options.
  52117. (line 6)
  52118. * dialect options: C Dialect Options. (line 6)
  52119. * diff-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  52120. (line 113)
  52121. * diff-filename GCC_COLORS capability: Diagnostic Message Formatting Options.
  52122. (line 106)
  52123. * diff-hunk GCC_COLORS capability: Diagnostic Message Formatting Options.
  52124. (line 109)
  52125. * diff-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  52126. (line 116)
  52127. * digits in constraint: Simple Constraints. (line 125)
  52128. * directory options: Directory Options. (line 6)
  52129. * disinterrupt function attribute, Epiphany: Epiphany Function Attributes.
  52130. (line 9)
  52131. * disinterrupt function attribute, MeP: MeP Function Attributes.
  52132. (line 9)
  52133. * dl integer suffix: Decimal Float. (line 6)
  52134. * DL integer suffix: Decimal Float. (line 6)
  52135. * dllexport function attribute: Microsoft Windows Function Attributes.
  52136. (line 10)
  52137. * dllexport variable attribute: Microsoft Windows Variable Attributes.
  52138. (line 12)
  52139. * dllimport function attribute: Microsoft Windows Function Attributes.
  52140. (line 42)
  52141. * dllimport variable attribute: Microsoft Windows Variable Attributes.
  52142. (line 12)
  52143. * dollar signs in identifier names: Dollar Signs. (line 6)
  52144. * double-word arithmetic: Long Long. (line 6)
  52145. * downward funargs: Nested Functions. (line 6)
  52146. * drem: Other Builtins. (line 6)
  52147. * dremf: Other Builtins. (line 6)
  52148. * dreml: Other Builtins. (line 6)
  52149. * dump options: Developer Options. (line 6)
  52150. * E in constraint: Simple Constraints. (line 87)
  52151. * earlyclobber operand: Modifiers. (line 25)
  52152. * eight-bit data on the H8/300, H8/300H, and H8S: H8/300 Variable Attributes.
  52153. (line 9)
  52154. * eightbit_data variable attribute, H8/300: H8/300 Variable Attributes.
  52155. (line 9)
  52156. * EIND: AVR Options. (line 291)
  52157. * either function attribute, MSP430: MSP430 Function Attributes.
  52158. (line 57)
  52159. * either variable attribute, MSP430: MSP430 Variable Attributes.
  52160. (line 24)
  52161. * empty structures: Empty Structures. (line 6)
  52162. * Enumerator Attributes: Enumerator Attributes.
  52163. (line 6)
  52164. * environment variables: Environment Variables.
  52165. (line 6)
  52166. * erf: Other Builtins. (line 6)
  52167. * erfc: Other Builtins. (line 6)
  52168. * erfcf: Other Builtins. (line 6)
  52169. * erfcl: Other Builtins. (line 6)
  52170. * erff: Other Builtins. (line 6)
  52171. * erfl: Other Builtins. (line 6)
  52172. * error function attribute: Common Function Attributes.
  52173. (line 272)
  52174. * error GCC_COLORS capability: Diagnostic Message Formatting Options.
  52175. (line 77)
  52176. * error messages: Warnings and Errors.
  52177. (line 6)
  52178. * escaped newlines: Escaped Newlines. (line 6)
  52179. * exception function attribute: NDS32 Function Attributes.
  52180. (line 9)
  52181. * exception handler functions, Blackfin: Blackfin Function Attributes.
  52182. (line 9)
  52183. * exception handler functions, NDS32: NDS32 Function Attributes.
  52184. (line 9)
  52185. * exception_handler function attribute: Blackfin Function Attributes.
  52186. (line 9)
  52187. * exit: Other Builtins. (line 6)
  52188. * exp: Other Builtins. (line 6)
  52189. * exp10: Other Builtins. (line 6)
  52190. * exp10f: Other Builtins. (line 6)
  52191. * exp10l: Other Builtins. (line 6)
  52192. * exp2: Other Builtins. (line 6)
  52193. * exp2f: Other Builtins. (line 6)
  52194. * exp2l: Other Builtins. (line 6)
  52195. * expf: Other Builtins. (line 6)
  52196. * expl: Other Builtins. (line 6)
  52197. * explicit register variables: Explicit Register Variables.
  52198. (line 6)
  52199. * expm1: Other Builtins. (line 6)
  52200. * expm1f: Other Builtins. (line 6)
  52201. * expm1l: Other Builtins. (line 6)
  52202. * expressions containing statements: Statement Exprs. (line 6)
  52203. * expressions, constructor: Compound Literals. (line 6)
  52204. * extended asm: Extended Asm. (line 6)
  52205. * extensible constraints: Simple Constraints. (line 161)
  52206. * extensions, ?:: Conditionals. (line 6)
  52207. * extensions, C language: C Extensions. (line 6)
  52208. * extensions, C++ language: C++ Extensions. (line 6)
  52209. * external declaration scope: Incompatibilities. (line 80)
  52210. * externally_visible function attribute: Common Function Attributes.
  52211. (line 289)
  52212. * extra NOP instructions at the function entry point: Common Function Attributes.
  52213. (line 834)
  52214. * F in constraint: Simple Constraints. (line 92)
  52215. * fabs: Other Builtins. (line 6)
  52216. * fabsf: Other Builtins. (line 6)
  52217. * fabsl: Other Builtins. (line 6)
  52218. * fallthrough statement attribute: Statement Attributes.
  52219. (line 26)
  52220. * far function attribute, MeP: MeP Function Attributes.
  52221. (line 25)
  52222. * far function attribute, MIPS: MIPS Function Attributes.
  52223. (line 63)
  52224. * far type attribute, MeP: MeP Type Attributes.
  52225. (line 6)
  52226. * far variable attribute, MeP: MeP Variable Attributes.
  52227. (line 30)
  52228. * fastcall function attribute, x86-32: x86 Function Attributes.
  52229. (line 15)
  52230. * fast_interrupt function attribute, M32C: M32C Function Attributes.
  52231. (line 14)
  52232. * fast_interrupt function attribute, MicroBlaze: MicroBlaze Function Attributes.
  52233. (line 27)
  52234. * fast_interrupt function attribute, RX: RX Function Attributes.
  52235. (line 9)
  52236. * fatal signal: Bug Criteria. (line 9)
  52237. * fdim: Other Builtins. (line 6)
  52238. * fdimf: Other Builtins. (line 6)
  52239. * fdiml: Other Builtins. (line 6)
  52240. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  52241. (line 6)
  52242. * fentry_name function attribute, x86: x86 Function Attributes.
  52243. (line 637)
  52244. * fentry_section function attribute, x86: x86 Function Attributes.
  52245. (line 643)
  52246. * ffs: Other Builtins. (line 6)
  52247. * file name suffix: Overall Options. (line 14)
  52248. * file names: Link Options. (line 10)
  52249. * fix-cortex-a53-835769 function attribute, AArch64: AArch64 Function Attributes.
  52250. (line 19)
  52251. * fixed-point types: Fixed-Point. (line 6)
  52252. * fixit-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  52253. (line 103)
  52254. * fixit-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  52255. (line 99)
  52256. * flatten function attribute: Common Function Attributes.
  52257. (line 302)
  52258. * flexible array members: Zero Length. (line 6)
  52259. * float as function value type: Incompatibilities. (line 141)
  52260. * floating point precision: Disappointments. (line 68)
  52261. * floating-point precision: Optimize Options. (line 2129)
  52262. * floor: Other Builtins. (line 6)
  52263. * floorf: Other Builtins. (line 6)
  52264. * floorl: Other Builtins. (line 6)
  52265. * fma: Other Builtins. (line 6)
  52266. * fmaf: Other Builtins. (line 6)
  52267. * fmal: Other Builtins. (line 6)
  52268. * fmax: Other Builtins. (line 6)
  52269. * fmaxf: Other Builtins. (line 6)
  52270. * fmaxl: Other Builtins. (line 6)
  52271. * fmin: Other Builtins. (line 6)
  52272. * fminf: Other Builtins. (line 6)
  52273. * fminl: Other Builtins. (line 6)
  52274. * fmod: Other Builtins. (line 6)
  52275. * fmodf: Other Builtins. (line 6)
  52276. * fmodl: Other Builtins. (line 6)
  52277. * force_align_arg_pointer function attribute, x86: x86 Function Attributes.
  52278. (line 100)
  52279. * format function attribute: Common Function Attributes.
  52280. (line 310)
  52281. * format_arg function attribute: Common Function Attributes.
  52282. (line 375)
  52283. * Fortran: G++ and GCC. (line 6)
  52284. * forwarder_section function attribute, Epiphany: Epiphany Function Attributes.
  52285. (line 13)
  52286. * forwarding calls: Constructing Calls. (line 6)
  52287. * fprintf: Other Builtins. (line 6)
  52288. * fprintf_unlocked: Other Builtins. (line 6)
  52289. * fputs: Other Builtins. (line 6)
  52290. * fputs_unlocked: Other Builtins. (line 6)
  52291. * FR30 Options: FR30 Options. (line 6)
  52292. * freestanding environment: Standards. (line 13)
  52293. * freestanding implementation: Standards. (line 13)
  52294. * frexp: Other Builtins. (line 6)
  52295. * frexpf: Other Builtins. (line 6)
  52296. * frexpl: Other Builtins. (line 6)
  52297. * FRV Options: FRV Options. (line 6)
  52298. * fscanf: Other Builtins. (line 6)
  52299. * fscanf, and constant strings: Incompatibilities. (line 17)
  52300. * FT32 Options: FT32 Options. (line 6)
  52301. * function addressability on the M32R/D: M32R/D Function Attributes.
  52302. (line 15)
  52303. * function attributes: Function Attributes.
  52304. (line 6)
  52305. * function pointers, arithmetic: Pointer Arith. (line 6)
  52306. * function prototype declarations: Function Prototypes.
  52307. (line 6)
  52308. * function versions: Function Multiversioning.
  52309. (line 6)
  52310. * function, size of pointer to: Pointer Arith. (line 6)
  52311. * functions in arbitrary sections: Common Function Attributes.
  52312. (line 918)
  52313. * functions that are dynamically resolved: Common Function Attributes.
  52314. (line 476)
  52315. * functions that are passed arguments in registers on x86-32: x86 Function Attributes.
  52316. (line 76)
  52317. * functions that behave like malloc: Common Function Attributes.
  52318. (line 603)
  52319. * functions that have no side effects: Common Function Attributes.
  52320. (line 148)
  52321. * functions that have no side effects <1>: Common Function Attributes.
  52322. (line 852)
  52323. * functions that never return: Common Function Attributes.
  52324. (line 766)
  52325. * functions that pop the argument stack on x86-32: x86 Function Attributes.
  52326. (line 9)
  52327. * functions that pop the argument stack on x86-32 <1>: x86 Function Attributes.
  52328. (line 15)
  52329. * functions that pop the argument stack on x86-32 <2>: x86 Function Attributes.
  52330. (line 23)
  52331. * functions that pop the argument stack on x86-32 <3>: x86 Function Attributes.
  52332. (line 108)
  52333. * functions that return more than once: Common Function Attributes.
  52334. (line 909)
  52335. * functions with non-null pointer arguments: Common Function Attributes.
  52336. (line 712)
  52337. * functions with printf, scanf, strftime or strfmon style arguments: Common Function Attributes.
  52338. (line 310)
  52339. * function_return function attribute, x86: x86 Function Attributes.
  52340. (line 562)
  52341. * function_vector function attribute, H8/300: H8/300 Function Attributes.
  52342. (line 9)
  52343. * function_vector function attribute, M16C/M32C: M32C Function Attributes.
  52344. (line 20)
  52345. * function_vector function attribute, SH: SH Function Attributes.
  52346. (line 9)
  52347. * G in constraint: Simple Constraints. (line 96)
  52348. * g in constraint: Simple Constraints. (line 118)
  52349. * g++: Invoking G++. (line 14)
  52350. * G++: G++ and GCC. (line 29)
  52351. * gamma: Other Builtins. (line 6)
  52352. * gammaf: Other Builtins. (line 6)
  52353. * gammaf_r: Other Builtins. (line 6)
  52354. * gammal: Other Builtins. (line 6)
  52355. * gammal_r: Other Builtins. (line 6)
  52356. * gamma_r: Other Builtins. (line 6)
  52357. * GCC: G++ and GCC. (line 6)
  52358. * GCC command options: Invoking GCC. (line 6)
  52359. * GCC_COLORS environment variable: Diagnostic Message Formatting Options.
  52360. (line 40)
  52361. * GCC_COMPARE_DEBUG: Environment Variables.
  52362. (line 52)
  52363. * GCC_EXEC_PREFIX: Environment Variables.
  52364. (line 57)
  52365. * gcc_struct type attribute, PowerPC: PowerPC Type Attributes.
  52366. (line 9)
  52367. * gcc_struct type attribute, x86: x86 Type Attributes.
  52368. (line 11)
  52369. * gcc_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  52370. (line 9)
  52371. * gcc_struct variable attribute, x86: x86 Variable Attributes.
  52372. (line 11)
  52373. * gcov: Instrumentation Options.
  52374. (line 49)
  52375. * general-regs-only function attribute, AArch64: AArch64 Function Attributes.
  52376. (line 12)
  52377. * general-regs-only function attribute, ARM: ARM Function Attributes.
  52378. (line 9)
  52379. * gettext: Other Builtins. (line 6)
  52380. * global offset table: Code Gen Options. (line 359)
  52381. * global register after longjmp: Global Register Variables.
  52382. (line 92)
  52383. * global register variables: Global Register Variables.
  52384. (line 6)
  52385. * GNAT: G++ and GCC. (line 29)
  52386. * GNU C Compiler: G++ and GCC. (line 6)
  52387. * GNU Compiler Collection: G++ and GCC. (line 6)
  52388. * gnu_inline function attribute: Common Function Attributes.
  52389. (line 430)
  52390. * Go: G++ and GCC. (line 6)
  52391. * goto with computed label: Labels as Values. (line 6)
  52392. * gprof: Instrumentation Options.
  52393. (line 18)
  52394. * grouping options: Invoking GCC. (line 31)
  52395. * H in constraint: Simple Constraints. (line 96)
  52396. * half-precision floating point: Half-Precision. (line 6)
  52397. * hardware models and configurations, specifying: Submodel Options.
  52398. (line 6)
  52399. * hex floats: Hex Floats. (line 6)
  52400. * highlight, color: Diagnostic Message Formatting Options.
  52401. (line 40)
  52402. * hk fixed-suffix: Fixed-Point. (line 6)
  52403. * HK fixed-suffix: Fixed-Point. (line 6)
  52404. * hosted environment: Standards. (line 13)
  52405. * hosted environment <1>: C Dialect Options. (line 304)
  52406. * hosted environment <2>: C Dialect Options. (line 312)
  52407. * hosted implementation: Standards. (line 13)
  52408. * hot function attribute: Common Function Attributes.
  52409. (line 466)
  52410. * hot label attribute: Label Attributes. (line 38)
  52411. * hotpatch function attribute, S/390: S/390 Function Attributes.
  52412. (line 9)
  52413. * HPPA Options: HPPA Options. (line 6)
  52414. * hr fixed-suffix: Fixed-Point. (line 6)
  52415. * HR fixed-suffix: Fixed-Point. (line 6)
  52416. * hypot: Other Builtins. (line 6)
  52417. * hypotf: Other Builtins. (line 6)
  52418. * hypotl: Other Builtins. (line 6)
  52419. * i in constraint: Simple Constraints. (line 68)
  52420. * I in constraint: Simple Constraints. (line 79)
  52421. * IA-64 Options: IA-64 Options. (line 6)
  52422. * IBM RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  52423. (line 6)
  52424. * identifier names, dollar signs in: Dollar Signs. (line 6)
  52425. * identifiers, names in assembler code: Asm Labels. (line 6)
  52426. * ifunc function attribute: Common Function Attributes.
  52427. (line 476)
  52428. * ilogb: Other Builtins. (line 6)
  52429. * ilogbf: Other Builtins. (line 6)
  52430. * ilogbl: Other Builtins. (line 6)
  52431. * imaxabs: Other Builtins. (line 6)
  52432. * implementation-defined behavior, C language: C Implementation.
  52433. (line 6)
  52434. * implementation-defined behavior, C++ language: C++ Implementation.
  52435. (line 6)
  52436. * implied #pragma implementation: C++ Interface. (line 43)
  52437. * incompatibilities of GCC: Incompatibilities. (line 6)
  52438. * increment operators: Bug Criteria. (line 17)
  52439. * index: Other Builtins. (line 6)
  52440. * indirect calls, ARC: ARC Function Attributes.
  52441. (line 24)
  52442. * indirect calls, ARM: ARM Function Attributes.
  52443. (line 38)
  52444. * indirect calls, Blackfin: Blackfin Function Attributes.
  52445. (line 38)
  52446. * indirect calls, Epiphany: Epiphany Function Attributes.
  52447. (line 57)
  52448. * indirect calls, MIPS: MIPS Function Attributes.
  52449. (line 63)
  52450. * indirect calls, PowerPC: PowerPC Function Attributes.
  52451. (line 10)
  52452. * indirect functions: Common Function Attributes.
  52453. (line 476)
  52454. * indirect_branch function attribute, x86: x86 Function Attributes.
  52455. (line 552)
  52456. * indirect_return function attribute, x86: x86 Function Attributes.
  52457. (line 631)
  52458. * initializations in expressions: Compound Literals. (line 6)
  52459. * initializers with labeled elements: Designated Inits. (line 6)
  52460. * initializers, non-constant: Initializers. (line 6)
  52461. * init_priority variable attribute: C++ Attributes. (line 50)
  52462. * inline assembly language: Using Assembly Language with C.
  52463. (line 6)
  52464. * inline automatic for C++ member fns: Inline. (line 68)
  52465. * inline functions: Inline. (line 6)
  52466. * inline functions, omission of: Inline. (line 51)
  52467. * inlining and C++ pragmas: C++ Interface. (line 57)
  52468. * installation trouble: Trouble. (line 6)
  52469. * instrumentation options: Instrumentation Options.
  52470. (line 6)
  52471. * integrating function code: Inline. (line 6)
  52472. * interface and implementation headers, C++: C++ Interface. (line 6)
  52473. * intermediate C version, nonexistent: G++ and GCC. (line 34)
  52474. * interrupt function attribute, ARC: ARC Function Attributes.
  52475. (line 9)
  52476. * interrupt function attribute, ARM: ARM Function Attributes.
  52477. (line 16)
  52478. * interrupt function attribute, AVR: AVR Function Attributes.
  52479. (line 9)
  52480. * interrupt function attribute, C-SKY: C-SKY Function Attributes.
  52481. (line 10)
  52482. * interrupt function attribute, CR16: CR16 Function Attributes.
  52483. (line 9)
  52484. * interrupt function attribute, Epiphany: Epiphany Function Attributes.
  52485. (line 20)
  52486. * interrupt function attribute, M32C: M32C Function Attributes.
  52487. (line 53)
  52488. * interrupt function attribute, M32R/D: M32R/D Function Attributes.
  52489. (line 9)
  52490. * interrupt function attribute, m68k: m68k Function Attributes.
  52491. (line 10)
  52492. * interrupt function attribute, MeP: MeP Function Attributes.
  52493. (line 14)
  52494. * interrupt function attribute, MIPS: MIPS Function Attributes.
  52495. (line 9)
  52496. * interrupt function attribute, MSP430: MSP430 Function Attributes.
  52497. (line 19)
  52498. * interrupt function attribute, NDS32: NDS32 Function Attributes.
  52499. (line 14)
  52500. * interrupt function attribute, RISC-V: RISC-V Function Attributes.
  52501. (line 19)
  52502. * interrupt function attribute, RL78: RL78 Function Attributes.
  52503. (line 10)
  52504. * interrupt function attribute, RX: RX Function Attributes.
  52505. (line 15)
  52506. * interrupt function attribute, V850: V850 Function Attributes.
  52507. (line 10)
  52508. * interrupt function attribute, Visium: Visium Function Attributes.
  52509. (line 9)
  52510. * interrupt function attribute, x86: x86 Function Attributes.
  52511. (line 124)
  52512. * interrupt function attribute, Xstormy16: Xstormy16 Function Attributes.
  52513. (line 9)
  52514. * interrupt_handler function attribute, Blackfin: Blackfin Function Attributes.
  52515. (line 15)
  52516. * interrupt_handler function attribute, H8/300: H8/300 Function Attributes.
  52517. (line 17)
  52518. * interrupt_handler function attribute, m68k: m68k Function Attributes.
  52519. (line 10)
  52520. * interrupt_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  52521. (line 27)
  52522. * interrupt_handler function attribute, SH: SH Function Attributes.
  52523. (line 28)
  52524. * interrupt_handler function attribute, V850: V850 Function Attributes.
  52525. (line 10)
  52526. * interrupt_thread function attribute, fido: m68k Function Attributes.
  52527. (line 16)
  52528. * introduction: Top. (line 6)
  52529. * invalid assembly code: Bug Criteria. (line 12)
  52530. * invalid input: Bug Criteria. (line 42)
  52531. * invoking g++: Invoking G++. (line 22)
  52532. * io variable attribute, AVR: AVR Variable Attributes.
  52533. (line 73)
  52534. * io variable attribute, MeP: MeP Variable Attributes.
  52535. (line 36)
  52536. * io_low variable attribute, AVR: AVR Variable Attributes.
  52537. (line 91)
  52538. * isalnum: Other Builtins. (line 6)
  52539. * isalpha: Other Builtins. (line 6)
  52540. * isascii: Other Builtins. (line 6)
  52541. * isblank: Other Builtins. (line 6)
  52542. * iscntrl: Other Builtins. (line 6)
  52543. * isdigit: Other Builtins. (line 6)
  52544. * isgraph: Other Builtins. (line 6)
  52545. * islower: Other Builtins. (line 6)
  52546. * ISO 9899: Standards. (line 13)
  52547. * ISO C: Standards. (line 13)
  52548. * ISO C standard: Standards. (line 13)
  52549. * ISO C11: Standards. (line 13)
  52550. * ISO C17: Standards. (line 13)
  52551. * ISO C1X: Standards. (line 13)
  52552. * ISO C2X: Standards. (line 13)
  52553. * ISO C90: Standards. (line 13)
  52554. * ISO C94: Standards. (line 13)
  52555. * ISO C95: Standards. (line 13)
  52556. * ISO C99: Standards. (line 13)
  52557. * ISO C9X: Standards. (line 13)
  52558. * ISO support: C Dialect Options. (line 10)
  52559. * ISO/IEC 9899: Standards. (line 13)
  52560. * isprint: Other Builtins. (line 6)
  52561. * ispunct: Other Builtins. (line 6)
  52562. * isr function attribute, ARM: ARM Function Attributes.
  52563. (line 33)
  52564. * isr function attribute, C-SKY: C-SKY Function Attributes.
  52565. (line 10)
  52566. * isspace: Other Builtins. (line 6)
  52567. * isupper: Other Builtins. (line 6)
  52568. * iswalnum: Other Builtins. (line 6)
  52569. * iswalpha: Other Builtins. (line 6)
  52570. * iswblank: Other Builtins. (line 6)
  52571. * iswcntrl: Other Builtins. (line 6)
  52572. * iswdigit: Other Builtins. (line 6)
  52573. * iswgraph: Other Builtins. (line 6)
  52574. * iswlower: Other Builtins. (line 6)
  52575. * iswprint: Other Builtins. (line 6)
  52576. * iswpunct: Other Builtins. (line 6)
  52577. * iswspace: Other Builtins. (line 6)
  52578. * iswupper: Other Builtins. (line 6)
  52579. * iswxdigit: Other Builtins. (line 6)
  52580. * isxdigit: Other Builtins. (line 6)
  52581. * j0: Other Builtins. (line 6)
  52582. * j0f: Other Builtins. (line 6)
  52583. * j0l: Other Builtins. (line 6)
  52584. * j1: Other Builtins. (line 6)
  52585. * j1f: Other Builtins. (line 6)
  52586. * j1l: Other Builtins. (line 6)
  52587. * jli_always function attribute, ARC: ARC Function Attributes.
  52588. (line 41)
  52589. * jli_fixed function attribute, ARC: ARC Function Attributes.
  52590. (line 47)
  52591. * jn: Other Builtins. (line 6)
  52592. * jnf: Other Builtins. (line 6)
  52593. * jnl: Other Builtins. (line 6)
  52594. * k fixed-suffix: Fixed-Point. (line 6)
  52595. * K fixed-suffix: Fixed-Point. (line 6)
  52596. * keep_interrupts_masked function attribute, MIPS: MIPS Function Attributes.
  52597. (line 34)
  52598. * kernel attribute, Nvidia PTX: Nvidia PTX Function Attributes.
  52599. (line 9)
  52600. * keywords, alternate: Alternate Keywords. (line 6)
  52601. * known causes of trouble: Trouble. (line 6)
  52602. * kspisusp function attribute, Blackfin: Blackfin Function Attributes.
  52603. (line 21)
  52604. * l1_data variable attribute, Blackfin: Blackfin Variable Attributes.
  52605. (line 11)
  52606. * l1_data_A variable attribute, Blackfin: Blackfin Variable Attributes.
  52607. (line 11)
  52608. * l1_data_B variable attribute, Blackfin: Blackfin Variable Attributes.
  52609. (line 11)
  52610. * l1_text function attribute, Blackfin: Blackfin Function Attributes.
  52611. (line 26)
  52612. * l2 function attribute, Blackfin: Blackfin Function Attributes.
  52613. (line 32)
  52614. * l2 variable attribute, Blackfin: Blackfin Variable Attributes.
  52615. (line 19)
  52616. * Label Attributes: Label Attributes. (line 6)
  52617. * labeled elements in initializers: Designated Inits. (line 6)
  52618. * labels as values: Labels as Values. (line 6)
  52619. * labs: Other Builtins. (line 6)
  52620. * LANG: Environment Variables.
  52621. (line 21)
  52622. * LANG <1>: Environment Variables.
  52623. (line 106)
  52624. * language dialect options: C Dialect Options. (line 6)
  52625. * LC_ALL: Environment Variables.
  52626. (line 21)
  52627. * LC_CTYPE: Environment Variables.
  52628. (line 21)
  52629. * LC_MESSAGES: Environment Variables.
  52630. (line 21)
  52631. * ldexp: Other Builtins. (line 6)
  52632. * ldexpf: Other Builtins. (line 6)
  52633. * ldexpl: Other Builtins. (line 6)
  52634. * leaf function attribute: Common Function Attributes.
  52635. (line 566)
  52636. * length-zero arrays: Zero Length. (line 6)
  52637. * lgamma: Other Builtins. (line 6)
  52638. * lgammaf: Other Builtins. (line 6)
  52639. * lgammaf_r: Other Builtins. (line 6)
  52640. * lgammal: Other Builtins. (line 6)
  52641. * lgammal_r: Other Builtins. (line 6)
  52642. * lgamma_r: Other Builtins. (line 6)
  52643. * Libraries: Link Options. (line 83)
  52644. * LIBRARY_PATH: Environment Variables.
  52645. (line 97)
  52646. * link options: Link Options. (line 6)
  52647. * linker script: Link Options. (line 312)
  52648. * lk fixed-suffix: Fixed-Point. (line 6)
  52649. * LK fixed-suffix: Fixed-Point. (line 6)
  52650. * LL integer suffix: Long Long. (line 6)
  52651. * llabs: Other Builtins. (line 6)
  52652. * llk fixed-suffix: Fixed-Point. (line 6)
  52653. * LLK fixed-suffix: Fixed-Point. (line 6)
  52654. * llr fixed-suffix: Fixed-Point. (line 6)
  52655. * LLR fixed-suffix: Fixed-Point. (line 6)
  52656. * llrint: Other Builtins. (line 6)
  52657. * llrintf: Other Builtins. (line 6)
  52658. * llrintl: Other Builtins. (line 6)
  52659. * llround: Other Builtins. (line 6)
  52660. * llroundf: Other Builtins. (line 6)
  52661. * llroundl: Other Builtins. (line 6)
  52662. * LM32 options: LM32 Options. (line 6)
  52663. * load address instruction: Simple Constraints. (line 152)
  52664. * local labels: Local Labels. (line 6)
  52665. * local variables in macros: Typeof. (line 46)
  52666. * local variables, specifying registers: Local Register Variables.
  52667. (line 6)
  52668. * locale: Environment Variables.
  52669. (line 21)
  52670. * locale definition: Environment Variables.
  52671. (line 106)
  52672. * locus GCC_COLORS capability: Diagnostic Message Formatting Options.
  52673. (line 92)
  52674. * log: Other Builtins. (line 6)
  52675. * log10: Other Builtins. (line 6)
  52676. * log10f: Other Builtins. (line 6)
  52677. * log10l: Other Builtins. (line 6)
  52678. * log1p: Other Builtins. (line 6)
  52679. * log1pf: Other Builtins. (line 6)
  52680. * log1pl: Other Builtins. (line 6)
  52681. * log2: Other Builtins. (line 6)
  52682. * log2f: Other Builtins. (line 6)
  52683. * log2l: Other Builtins. (line 6)
  52684. * logb: Other Builtins. (line 6)
  52685. * logbf: Other Builtins. (line 6)
  52686. * logbl: Other Builtins. (line 6)
  52687. * logf: Other Builtins. (line 6)
  52688. * logl: Other Builtins. (line 6)
  52689. * long long data types: Long Long. (line 6)
  52690. * longcall function attribute, Blackfin: Blackfin Function Attributes.
  52691. (line 38)
  52692. * longcall function attribute, PowerPC: PowerPC Function Attributes.
  52693. (line 10)
  52694. * longjmp: Global Register Variables.
  52695. (line 92)
  52696. * longjmp incompatibilities: Incompatibilities. (line 39)
  52697. * longjmp warnings: Warning Options. (line 1169)
  52698. * long_call function attribute, ARC: ARC Function Attributes.
  52699. (line 24)
  52700. * long_call function attribute, ARM: ARM Function Attributes.
  52701. (line 38)
  52702. * long_call function attribute, Epiphany: Epiphany Function Attributes.
  52703. (line 57)
  52704. * long_call function attribute, MIPS: MIPS Function Attributes.
  52705. (line 63)
  52706. * lower function attribute, MSP430: MSP430 Function Attributes.
  52707. (line 57)
  52708. * lower variable attribute, MSP430: MSP430 Variable Attributes.
  52709. (line 24)
  52710. * lr fixed-suffix: Fixed-Point. (line 6)
  52711. * LR fixed-suffix: Fixed-Point. (line 6)
  52712. * lrint: Other Builtins. (line 6)
  52713. * lrintf: Other Builtins. (line 6)
  52714. * lrintl: Other Builtins. (line 6)
  52715. * lround: Other Builtins. (line 6)
  52716. * lroundf: Other Builtins. (line 6)
  52717. * lroundl: Other Builtins. (line 6)
  52718. * m in constraint: Simple Constraints. (line 17)
  52719. * M32C options: M32C Options. (line 6)
  52720. * M32R/D options: M32R/D Options. (line 6)
  52721. * M680x0 options: M680x0 Options. (line 6)
  52722. * machine specific constraints: Machine Constraints.
  52723. (line 6)
  52724. * machine-dependent options: Submodel Options. (line 6)
  52725. * macro with variable arguments: Variadic Macros. (line 6)
  52726. * macros, inline alternative: Inline. (line 6)
  52727. * macros, local labels: Local Labels. (line 6)
  52728. * macros, local variables in: Typeof. (line 46)
  52729. * macros, statements in expressions: Statement Exprs. (line 6)
  52730. * macros, types of arguments: Typeof. (line 6)
  52731. * make: Preprocessor Options.
  52732. (line 77)
  52733. * malloc: Other Builtins. (line 6)
  52734. * malloc function attribute: Common Function Attributes.
  52735. (line 603)
  52736. * matching constraint: Simple Constraints. (line 137)
  52737. * may_alias type attribute: Common Type Attributes.
  52738. (line 234)
  52739. * MCore options: MCore Options. (line 6)
  52740. * medium_call function attribute, ARC: ARC Function Attributes.
  52741. (line 24)
  52742. * member fns, automatically inline: Inline. (line 68)
  52743. * memchr: Other Builtins. (line 6)
  52744. * memcmp: Other Builtins. (line 6)
  52745. * memcpy: Other Builtins. (line 6)
  52746. * memory references in constraints: Simple Constraints. (line 17)
  52747. * mempcpy: Other Builtins. (line 6)
  52748. * memset: Other Builtins. (line 6)
  52749. * MeP options: MeP Options. (line 6)
  52750. * Mercury: G++ and GCC. (line 23)
  52751. * message formatting: Diagnostic Message Formatting Options.
  52752. (line 6)
  52753. * messages, warning: Warning Options. (line 6)
  52754. * messages, warning and error: Warnings and Errors.
  52755. (line 6)
  52756. * MicroBlaze Options: MicroBlaze Options. (line 6)
  52757. * micromips function attribute: MIPS Function Attributes.
  52758. (line 91)
  52759. * middle-operands, omitted: Conditionals. (line 6)
  52760. * MIPS options: MIPS Options. (line 6)
  52761. * mips16 function attribute, MIPS: MIPS Function Attributes.
  52762. (line 75)
  52763. * misunderstandings in C++: C++ Misunderstandings.
  52764. (line 6)
  52765. * mixed declarations and code: Mixed Declarations. (line 6)
  52766. * mixing assembly language and C: Using Assembly Language with C.
  52767. (line 6)
  52768. * mktemp, and constant strings: Incompatibilities. (line 13)
  52769. * MMIX Options: MMIX Options. (line 6)
  52770. * MN10300 options: MN10300 Options. (line 6)
  52771. * mode type attribute: Common Type Attributes.
  52772. (line 270)
  52773. * mode variable attribute: Common Variable Attributes.
  52774. (line 225)
  52775. * model function attribute, M32R/D: M32R/D Function Attributes.
  52776. (line 15)
  52777. * model variable attribute, IA-64: IA-64 Variable Attributes.
  52778. (line 9)
  52779. * model-name variable attribute, M32R/D: M32R/D Variable Attributes.
  52780. (line 9)
  52781. * modf: Other Builtins. (line 6)
  52782. * modff: Other Builtins. (line 6)
  52783. * modfl: Other Builtins. (line 6)
  52784. * modifiers in constraints: Modifiers. (line 6)
  52785. * Moxie Options: Moxie Options. (line 6)
  52786. * MSP430 Options: MSP430 Options. (line 6)
  52787. * ms_abi function attribute, x86: x86 Function Attributes.
  52788. (line 34)
  52789. * ms_hook_prologue function attribute, x86: x86 Function Attributes.
  52790. (line 59)
  52791. * ms_struct type attribute, PowerPC: PowerPC Type Attributes.
  52792. (line 9)
  52793. * ms_struct type attribute, x86: x86 Type Attributes.
  52794. (line 11)
  52795. * ms_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  52796. (line 9)
  52797. * ms_struct variable attribute, x86: x86 Variable Attributes.
  52798. (line 11)
  52799. * multiple alternative constraints: Multi-Alternative. (line 6)
  52800. * multiprecision arithmetic: Long Long. (line 6)
  52801. * n in constraint: Simple Constraints. (line 73)
  52802. * naked function attribute, ARM: ARM Function Attributes.
  52803. (line 48)
  52804. * naked function attribute, AVR: AVR Function Attributes.
  52805. (line 23)
  52806. * naked function attribute, C-SKY: C-SKY Function Attributes.
  52807. (line 20)
  52808. * naked function attribute, MCORE: MCORE Function Attributes.
  52809. (line 9)
  52810. * naked function attribute, MSP430: MSP430 Function Attributes.
  52811. (line 34)
  52812. * naked function attribute, NDS32: NDS32 Function Attributes.
  52813. (line 35)
  52814. * naked function attribute, RISC-V: RISC-V Function Attributes.
  52815. (line 9)
  52816. * naked function attribute, RL78: RL78 Function Attributes.
  52817. (line 20)
  52818. * naked function attribute, RX: RX Function Attributes.
  52819. (line 39)
  52820. * naked function attribute, SPU: SPU Function Attributes.
  52821. (line 9)
  52822. * naked function attribute, x86: x86 Function Attributes.
  52823. (line 66)
  52824. * Named Address Spaces: Named Address Spaces.
  52825. (line 6)
  52826. * names used in assembler code: Asm Labels. (line 6)
  52827. * naming convention, implementation headers: C++ Interface. (line 43)
  52828. * NDS32 Options: NDS32 Options. (line 6)
  52829. * near function attribute, MeP: MeP Function Attributes.
  52830. (line 20)
  52831. * near function attribute, MIPS: MIPS Function Attributes.
  52832. (line 63)
  52833. * near type attribute, MeP: MeP Type Attributes.
  52834. (line 6)
  52835. * near variable attribute, MeP: MeP Variable Attributes.
  52836. (line 24)
  52837. * nearbyint: Other Builtins. (line 6)
  52838. * nearbyintf: Other Builtins. (line 6)
  52839. * nearbyintl: Other Builtins. (line 6)
  52840. * nested function attribute, NDS32: NDS32 Function Attributes.
  52841. (line 19)
  52842. * nested functions: Nested Functions. (line 6)
  52843. * nested_ready function attribute, NDS32: NDS32 Function Attributes.
  52844. (line 23)
  52845. * nesting function attribute, Blackfin: Blackfin Function Attributes.
  52846. (line 45)
  52847. * newlines (escaped): Escaped Newlines. (line 6)
  52848. * nextafter: Other Builtins. (line 6)
  52849. * nextafterf: Other Builtins. (line 6)
  52850. * nextafterl: Other Builtins. (line 6)
  52851. * nexttoward: Other Builtins. (line 6)
  52852. * nexttowardf: Other Builtins. (line 6)
  52853. * nexttowardl: Other Builtins. (line 6)
  52854. * NFC: Warning Options. (line 2578)
  52855. * NFKC: Warning Options. (line 2578)
  52856. * Nios II options: Nios II Options. (line 6)
  52857. * nmi function attribute, NDS32: NDS32 Function Attributes.
  52858. (line 50)
  52859. * NMI handler functions on the Blackfin processor: Blackfin Function Attributes.
  52860. (line 50)
  52861. * nmi_handler function attribute, Blackfin: Blackfin Function Attributes.
  52862. (line 50)
  52863. * nocf_check function attribute: x86 Function Attributes.
  52864. (line 571)
  52865. * noclone function attribute: Common Function Attributes.
  52866. (line 681)
  52867. * nocommon variable attribute: Common Variable Attributes.
  52868. (line 176)
  52869. * nocompression function attribute, MIPS: MIPS Function Attributes.
  52870. (line 108)
  52871. * noinit variable attribute, MSP430: MSP430 Variable Attributes.
  52872. (line 7)
  52873. * noinline function attribute: Common Function Attributes.
  52874. (line 687)
  52875. * noipa function attribute: Common Function Attributes.
  52876. (line 698)
  52877. * nomicromips function attribute: MIPS Function Attributes.
  52878. (line 91)
  52879. * nomips16 function attribute, MIPS: MIPS Function Attributes.
  52880. (line 75)
  52881. * non-constant initializers: Initializers. (line 6)
  52882. * non-static inline function: Inline. (line 82)
  52883. * nonlocal gotos: Nonlocal Gotos. (line 6)
  52884. * nonnull function attribute: Common Function Attributes.
  52885. (line 712)
  52886. * nonstring variable attribute: Common Variable Attributes.
  52887. (line 237)
  52888. * noplt function attribute: Common Function Attributes.
  52889. (line 742)
  52890. * noreturn function attribute: Common Function Attributes.
  52891. (line 766)
  52892. * nosave_low_regs function attribute, SH: SH Function Attributes.
  52893. (line 34)
  52894. * note GCC_COLORS capability: Diagnostic Message Formatting Options.
  52895. (line 83)
  52896. * nothrow function attribute: Common Function Attributes.
  52897. (line 800)
  52898. * notshared type attribute, ARM: ARM Type Attributes.
  52899. (line 6)
  52900. * not_nested function attribute, NDS32: NDS32 Function Attributes.
  52901. (line 21)
  52902. * no_caller_saved_registers function attribute, x86: x86 Function Attributes.
  52903. (line 113)
  52904. * no_gccisr function attribute, AVR: AVR Function Attributes.
  52905. (line 33)
  52906. * no_icf function attribute: Common Function Attributes.
  52907. (line 616)
  52908. * no_instrument_function function attribute: Common Function Attributes.
  52909. (line 620)
  52910. * no_profile_instrument_function function attribute: Common Function Attributes.
  52911. (line 626)
  52912. * no_reorder function attribute: Common Function Attributes.
  52913. (line 631)
  52914. * no_sanitize function attribute: Common Function Attributes.
  52915. (line 639)
  52916. * no_sanitize_address function attribute: Common Function Attributes.
  52917. (line 651)
  52918. * no_sanitize_thread function attribute: Common Function Attributes.
  52919. (line 659)
  52920. * no_sanitize_undefined function attribute: Common Function Attributes.
  52921. (line 664)
  52922. * no_split_stack function attribute: Common Function Attributes.
  52923. (line 670)
  52924. * no_stack_limit function attribute: Common Function Attributes.
  52925. (line 676)
  52926. * Nvidia PTX options: Nvidia PTX Options. (line 6)
  52927. * nvptx options: Nvidia PTX Options. (line 6)
  52928. * o in constraint: Simple Constraints. (line 23)
  52929. * OBJC_INCLUDE_PATH: Environment Variables.
  52930. (line 130)
  52931. * Objective-C: G++ and GCC. (line 6)
  52932. * Objective-C <1>: Standards. (line 189)
  52933. * Objective-C and Objective-C++ options, command-line: Objective-C and Objective-C++ Dialect Options.
  52934. (line 6)
  52935. * Objective-C++: G++ and GCC. (line 6)
  52936. * Objective-C++ <1>: Standards. (line 189)
  52937. * offsettable address: Simple Constraints. (line 23)
  52938. * old-style function definitions: Function Prototypes.
  52939. (line 6)
  52940. * omit-leaf-frame-pointer function attribute, AArch64: AArch64 Function Attributes.
  52941. (line 41)
  52942. * omitted middle-operands: Conditionals. (line 6)
  52943. * open coding: Inline. (line 6)
  52944. * OpenACC accelerator programming: C Dialect Options. (line 323)
  52945. * OpenACC accelerator programming <1>: C Dialect Options. (line 332)
  52946. * OpenMP parallel: C Dialect Options. (line 338)
  52947. * OpenMP SIMD: C Dialect Options. (line 347)
  52948. * OpenRISC Options: OpenRISC Options. (line 6)
  52949. * operand constraints, asm: Constraints. (line 6)
  52950. * optimize function attribute: Common Function Attributes.
  52951. (line 808)
  52952. * optimize options: Optimize Options. (line 6)
  52953. * options to control diagnostics formatting: Diagnostic Message Formatting Options.
  52954. (line 6)
  52955. * options to control warnings: Warning Options. (line 6)
  52956. * options, C++: C++ Dialect Options.
  52957. (line 6)
  52958. * options, code generation: Code Gen Options. (line 6)
  52959. * options, debugging: Debugging Options. (line 6)
  52960. * options, dialect: C Dialect Options. (line 6)
  52961. * options, directory search: Directory Options. (line 6)
  52962. * options, GCC command: Invoking GCC. (line 6)
  52963. * options, grouping: Invoking GCC. (line 31)
  52964. * options, linking: Link Options. (line 6)
  52965. * options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  52966. (line 6)
  52967. * options, optimization: Optimize Options. (line 6)
  52968. * options, order: Invoking GCC. (line 35)
  52969. * options, preprocessor: Preprocessor Options.
  52970. (line 6)
  52971. * options, profiling: Instrumentation Options.
  52972. (line 6)
  52973. * options, program instrumentation: Instrumentation Options.
  52974. (line 6)
  52975. * options, run-time error checking: Instrumentation Options.
  52976. (line 6)
  52977. * order of evaluation, side effects: Non-bugs. (line 196)
  52978. * order of options: Invoking GCC. (line 35)
  52979. * OS_main function attribute, AVR: AVR Function Attributes.
  52980. (line 56)
  52981. * OS_task function attribute, AVR: AVR Function Attributes.
  52982. (line 56)
  52983. * other register constraints: Simple Constraints. (line 161)
  52984. * output file option: Overall Options. (line 196)
  52985. * overloaded virtual function, warning: C++ Dialect Options.
  52986. (line 897)
  52987. * p in constraint: Simple Constraints. (line 152)
  52988. * packed type attribute: Common Type Attributes.
  52989. (line 282)
  52990. * packed variable attribute: Common Variable Attributes.
  52991. (line 270)
  52992. * parameter forward declaration: Variable Length. (line 66)
  52993. * partial_save function attribute, NDS32: NDS32 Function Attributes.
  52994. (line 31)
  52995. * patchable_function_entry function attribute: Common Function Attributes.
  52996. (line 834)
  52997. * pcs function attribute, ARM: ARM Function Attributes.
  52998. (line 58)
  52999. * PDP-11 Options: PDP-11 Options. (line 6)
  53000. * persistent variable attribute, MSP430: MSP430 Variable Attributes.
  53001. (line 12)
  53002. * PIC: Code Gen Options. (line 359)
  53003. * picoChip options: picoChip Options. (line 6)
  53004. * pmf: Bound member functions.
  53005. (line 6)
  53006. * pointer arguments: Common Function Attributes.
  53007. (line 177)
  53008. * pointer arguments in variadic functions: Variadic Pointer Args.
  53009. (line 6)
  53010. * pointer to member function: Bound member functions.
  53011. (line 6)
  53012. * pointers to arrays: Pointers to Arrays. (line 6)
  53013. * portions of temporary objects, pointers to: Temporaries. (line 6)
  53014. * pow: Other Builtins. (line 6)
  53015. * pow10: Other Builtins. (line 6)
  53016. * pow10f: Other Builtins. (line 6)
  53017. * pow10l: Other Builtins. (line 6)
  53018. * PowerPC options: PowerPC Options. (line 6)
  53019. * powf: Other Builtins. (line 6)
  53020. * powl: Other Builtins. (line 6)
  53021. * pragma GCC ivdep: Loop-Specific Pragmas.
  53022. (line 7)
  53023. * pragma GCC optimize: Function Specific Option Pragmas.
  53024. (line 21)
  53025. * pragma GCC pop_options: Function Specific Option Pragmas.
  53026. (line 33)
  53027. * pragma GCC push_options: Function Specific Option Pragmas.
  53028. (line 33)
  53029. * pragma GCC reset_options: Function Specific Option Pragmas.
  53030. (line 41)
  53031. * pragma GCC target: Function Specific Option Pragmas.
  53032. (line 7)
  53033. * pragma GCC unroll N: Loop-Specific Pragmas.
  53034. (line 37)
  53035. * pragma, address: M32C Pragmas. (line 15)
  53036. * pragma, align: Solaris Pragmas. (line 11)
  53037. * pragma, call: MeP Pragmas. (line 48)
  53038. * pragma, coprocessor available: MeP Pragmas. (line 13)
  53039. * pragma, coprocessor call_saved: MeP Pragmas. (line 20)
  53040. * pragma, coprocessor subclass: MeP Pragmas. (line 28)
  53041. * pragma, custom io_volatile: MeP Pragmas. (line 7)
  53042. * pragma, diagnostic: Diagnostic Pragmas. (line 14)
  53043. * pragma, diagnostic <1>: Diagnostic Pragmas. (line 57)
  53044. * pragma, diagnostic <2>: Diagnostic Pragmas. (line 77)
  53045. * pragma, diagnostic <3>: Diagnostic Pragmas. (line 99)
  53046. * pragma, disinterrupt: MeP Pragmas. (line 38)
  53047. * pragma, fini: Solaris Pragmas. (line 20)
  53048. * pragma, init: Solaris Pragmas. (line 26)
  53049. * pragma, longcall: RS/6000 and PowerPC Pragmas.
  53050. (line 14)
  53051. * pragma, long_calls: ARM Pragmas. (line 11)
  53052. * pragma, long_calls_off: ARM Pragmas. (line 17)
  53053. * pragma, mark: Darwin Pragmas. (line 11)
  53054. * pragma, memregs: M32C Pragmas. (line 7)
  53055. * pragma, no_long_calls: ARM Pragmas. (line 14)
  53056. * pragma, options align: Darwin Pragmas. (line 14)
  53057. * pragma, pop_macro: Push/Pop Macro Pragmas.
  53058. (line 15)
  53059. * pragma, push_macro: Push/Pop Macro Pragmas.
  53060. (line 11)
  53061. * pragma, redefine_extname: Symbol-Renaming Pragmas.
  53062. (line 13)
  53063. * pragma, segment: Darwin Pragmas. (line 21)
  53064. * pragma, unused: Darwin Pragmas. (line 24)
  53065. * pragma, visibility: Visibility Pragmas. (line 8)
  53066. * pragma, weak: Weak Pragmas. (line 10)
  53067. * pragmas: Pragmas. (line 6)
  53068. * pragmas in C++, effect on inlining: C++ Interface. (line 57)
  53069. * pragmas, interface and implementation: C++ Interface. (line 6)
  53070. * pragmas, warning of unknown: Warning Options. (line 1184)
  53071. * precompiled headers: Precompiled Headers.
  53072. (line 6)
  53073. * preprocessing numbers: Incompatibilities. (line 173)
  53074. * preprocessing tokens: Incompatibilities. (line 173)
  53075. * preprocessor options: Preprocessor Options.
  53076. (line 6)
  53077. * printf: Other Builtins. (line 6)
  53078. * printf_unlocked: Other Builtins. (line 6)
  53079. * prof: Instrumentation Options.
  53080. (line 18)
  53081. * profiling options: Instrumentation Options.
  53082. (line 6)
  53083. * progmem variable attribute, AVR: AVR Variable Attributes.
  53084. (line 7)
  53085. * program instrumentation options: Instrumentation Options.
  53086. (line 6)
  53087. * promotion of formal parameters: Function Prototypes.
  53088. (line 6)
  53089. * pure function attribute: Common Function Attributes.
  53090. (line 852)
  53091. * push address instruction: Simple Constraints. (line 152)
  53092. * putchar: Other Builtins. (line 6)
  53093. * puts: Other Builtins. (line 6)
  53094. * q floating point suffix: Floating Types. (line 6)
  53095. * Q floating point suffix: Floating Types. (line 6)
  53096. * qsort, and global register variables: Global Register Variables.
  53097. (line 75)
  53098. * quote GCC_COLORS capability: Diagnostic Message Formatting Options.
  53099. (line 96)
  53100. * r fixed-suffix: Fixed-Point. (line 6)
  53101. * R fixed-suffix: Fixed-Point. (line 6)
  53102. * r in constraint: Simple Constraints. (line 64)
  53103. * RAMPD: AVR Options. (line 402)
  53104. * RAMPX: AVR Options. (line 402)
  53105. * RAMPY: AVR Options. (line 402)
  53106. * RAMPZ: AVR Options. (line 402)
  53107. * range1 GCC_COLORS capability: Diagnostic Message Formatting Options.
  53108. (line 86)
  53109. * range2 GCC_COLORS capability: Diagnostic Message Formatting Options.
  53110. (line 89)
  53111. * ranges in case statements: Case Ranges. (line 6)
  53112. * read-only strings: Incompatibilities. (line 9)
  53113. * reentrant function attribute, MSP430: MSP430 Function Attributes.
  53114. (line 44)
  53115. * register variable after longjmp: Global Register Variables.
  53116. (line 92)
  53117. * registers for local variables: Local Register Variables.
  53118. (line 6)
  53119. * registers in constraints: Simple Constraints. (line 64)
  53120. * registers, global allocation: Global Register Variables.
  53121. (line 6)
  53122. * registers, global variables in: Global Register Variables.
  53123. (line 6)
  53124. * regparm function attribute, x86: x86 Function Attributes.
  53125. (line 76)
  53126. * relocation truncated to fit (ColdFire): M680x0 Options. (line 323)
  53127. * relocation truncated to fit (MIPS): MIPS Options. (line 237)
  53128. * remainder: Other Builtins. (line 6)
  53129. * remainderf: Other Builtins. (line 6)
  53130. * remainderl: Other Builtins. (line 6)
  53131. * remquo: Other Builtins. (line 6)
  53132. * remquof: Other Builtins. (line 6)
  53133. * remquol: Other Builtins. (line 6)
  53134. * renesas function attribute, SH: SH Function Attributes.
  53135. (line 40)
  53136. * reordering, warning: C++ Dialect Options.
  53137. (line 761)
  53138. * reporting bugs: Bugs. (line 6)
  53139. * resbank function attribute, SH: SH Function Attributes.
  53140. (line 44)
  53141. * reset function attribute, NDS32: NDS32 Function Attributes.
  53142. (line 45)
  53143. * reset handler functions: NDS32 Function Attributes.
  53144. (line 45)
  53145. * rest argument (in macro): Variadic Macros. (line 6)
  53146. * restricted pointers: Restricted Pointers.
  53147. (line 6)
  53148. * restricted references: Restricted Pointers.
  53149. (line 6)
  53150. * restricted this pointer: Restricted Pointers.
  53151. (line 6)
  53152. * returns_nonnull function attribute: Common Function Attributes.
  53153. (line 899)
  53154. * returns_twice function attribute: Common Function Attributes.
  53155. (line 909)
  53156. * rindex: Other Builtins. (line 6)
  53157. * rint: Other Builtins. (line 6)
  53158. * rintf: Other Builtins. (line 6)
  53159. * rintl: Other Builtins. (line 6)
  53160. * RISC-V Options: RISC-V Options. (line 6)
  53161. * RL78 Options: RL78 Options. (line 6)
  53162. * round: Other Builtins. (line 6)
  53163. * roundf: Other Builtins. (line 6)
  53164. * roundl: Other Builtins. (line 6)
  53165. * RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  53166. (line 6)
  53167. * RTTI: Vague Linkage. (line 42)
  53168. * run-time error checking options: Instrumentation Options.
  53169. (line 6)
  53170. * run-time options: Code Gen Options. (line 6)
  53171. * RX Options: RX Options. (line 6)
  53172. * s in constraint: Simple Constraints. (line 100)
  53173. * S/390 and zSeries Options: S/390 and zSeries Options.
  53174. (line 6)
  53175. * saddr variable attribute, RL78: RL78 Variable Attributes.
  53176. (line 6)
  53177. * save all registers on the Blackfin: Blackfin Function Attributes.
  53178. (line 56)
  53179. * save all registers on the H8/300, H8/300H, and H8S: H8/300 Function Attributes.
  53180. (line 23)
  53181. * saveall function attribute, Blackfin: Blackfin Function Attributes.
  53182. (line 56)
  53183. * saveall function attribute, H8/300: H8/300 Function Attributes.
  53184. (line 23)
  53185. * save_all function attribute, NDS32: NDS32 Function Attributes.
  53186. (line 28)
  53187. * save_volatiles function attribute, MicroBlaze: MicroBlaze Function Attributes.
  53188. (line 9)
  53189. * scalar_storage_order type attribute: Common Type Attributes.
  53190. (line 317)
  53191. * scalb: Other Builtins. (line 6)
  53192. * scalbf: Other Builtins. (line 6)
  53193. * scalbl: Other Builtins. (line 6)
  53194. * scalbln: Other Builtins. (line 6)
  53195. * scalblnf: Other Builtins. (line 6)
  53196. * scalblnf <1>: Other Builtins. (line 6)
  53197. * scalbn: Other Builtins. (line 6)
  53198. * scalbnf: Other Builtins. (line 6)
  53199. * scanf, and constant strings: Incompatibilities. (line 17)
  53200. * scanfnl: Other Builtins. (line 6)
  53201. * scope of a variable length array: Variable Length. (line 22)
  53202. * scope of declaration: Disappointments. (line 21)
  53203. * scope of external declarations: Incompatibilities. (line 80)
  53204. * Score Options: Score Options. (line 6)
  53205. * sda variable attribute, V850: V850 Variable Attributes.
  53206. (line 9)
  53207. * search path: Directory Options. (line 6)
  53208. * section function attribute: Common Function Attributes.
  53209. (line 918)
  53210. * section variable attribute: Common Variable Attributes.
  53211. (line 292)
  53212. * secure_call function attribute, ARC: ARC Function Attributes.
  53213. (line 51)
  53214. * selectany variable attribute: Microsoft Windows Variable Attributes.
  53215. (line 16)
  53216. * sentinel function attribute: Common Function Attributes.
  53217. (line 935)
  53218. * setjmp: Global Register Variables.
  53219. (line 92)
  53220. * setjmp incompatibilities: Incompatibilities. (line 39)
  53221. * shared attribute, Nvidia PTX: Nvidia PTX Variable Attributes.
  53222. (line 9)
  53223. * shared strings: Incompatibilities. (line 9)
  53224. * shared variable attribute: Microsoft Windows Variable Attributes.
  53225. (line 37)
  53226. * shortcall function attribute, Blackfin: Blackfin Function Attributes.
  53227. (line 38)
  53228. * shortcall function attribute, PowerPC: PowerPC Function Attributes.
  53229. (line 10)
  53230. * short_call function attribute, ARC: ARC Function Attributes.
  53231. (line 24)
  53232. * short_call function attribute, ARM: ARM Function Attributes.
  53233. (line 38)
  53234. * short_call function attribute, Epiphany: Epiphany Function Attributes.
  53235. (line 57)
  53236. * short_call function attribute, MIPS: MIPS Function Attributes.
  53237. (line 63)
  53238. * side effect in ?:: Conditionals. (line 20)
  53239. * side effects, macro argument: Statement Exprs. (line 35)
  53240. * side effects, order of evaluation: Non-bugs. (line 196)
  53241. * sign-return-address function attribute, AArch64: AArch64 Function Attributes.
  53242. (line 69)
  53243. * signal function attribute, AVR: AVR Function Attributes.
  53244. (line 80)
  53245. * signbit: Other Builtins. (line 6)
  53246. * signbitd128: Other Builtins. (line 6)
  53247. * signbitd32: Other Builtins. (line 6)
  53248. * signbitd64: Other Builtins. (line 6)
  53249. * signbitf: Other Builtins. (line 6)
  53250. * signbitl: Other Builtins. (line 6)
  53251. * signed and unsigned values, comparison warning: Warning Options.
  53252. (line 2328)
  53253. * significand: Other Builtins. (line 6)
  53254. * significandf: Other Builtins. (line 6)
  53255. * significandl: Other Builtins. (line 6)
  53256. * SIMD: C Dialect Options. (line 347)
  53257. * simd function attribute: Common Function Attributes.
  53258. (line 962)
  53259. * simple constraints: Simple Constraints. (line 6)
  53260. * sin: Other Builtins. (line 6)
  53261. * sincos: Other Builtins. (line 6)
  53262. * sincosf: Other Builtins. (line 6)
  53263. * sincosl: Other Builtins. (line 6)
  53264. * sinf: Other Builtins. (line 6)
  53265. * sinh: Other Builtins. (line 6)
  53266. * sinhf: Other Builtins. (line 6)
  53267. * sinhl: Other Builtins. (line 6)
  53268. * sinl: Other Builtins. (line 6)
  53269. * sizeof: Typeof. (line 6)
  53270. * smaller data references: M32R/D Options. (line 57)
  53271. * smaller data references <1>: Nios II Options. (line 9)
  53272. * smaller data references (PowerPC): RS/6000 and PowerPC Options.
  53273. (line 718)
  53274. * snprintf: Other Builtins. (line 6)
  53275. * Solaris 2 options: Solaris 2 Options. (line 6)
  53276. * SOURCE_DATE_EPOCH: Environment Variables.
  53277. (line 177)
  53278. * SPARC options: SPARC Options. (line 6)
  53279. * Spec Files: Spec Files. (line 6)
  53280. * specified registers: Explicit Register Variables.
  53281. (line 6)
  53282. * specifying compiler version and target machine: Invoking GCC.
  53283. (line 24)
  53284. * specifying hardware config: Submodel Options. (line 6)
  53285. * specifying machine version: Invoking GCC. (line 24)
  53286. * specifying registers for local variables: Local Register Variables.
  53287. (line 6)
  53288. * speed of compilation: Precompiled Headers.
  53289. (line 6)
  53290. * sprintf: Other Builtins. (line 6)
  53291. * SPU options: SPU Options. (line 6)
  53292. * spu_vector type attribute, SPU: SPU Type Attributes.
  53293. (line 6)
  53294. * spu_vector variable attribute, SPU: SPU Variable Attributes.
  53295. (line 6)
  53296. * sp_switch function attribute, SH: SH Function Attributes.
  53297. (line 58)
  53298. * sqrt: Other Builtins. (line 6)
  53299. * sqrtf: Other Builtins. (line 6)
  53300. * sqrtl: Other Builtins. (line 6)
  53301. * sscanf: Other Builtins. (line 6)
  53302. * sscanf, and constant strings: Incompatibilities. (line 17)
  53303. * sseregparm function attribute, x86: x86 Function Attributes.
  53304. (line 93)
  53305. * stack_protect function attribute: Common Function Attributes.
  53306. (line 981)
  53307. * Statement Attributes: Statement Attributes.
  53308. (line 6)
  53309. * statements inside expressions: Statement Exprs. (line 6)
  53310. * static data in C++, declaring and defining: Static Definitions.
  53311. (line 6)
  53312. * stdcall function attribute, x86-32: x86 Function Attributes.
  53313. (line 108)
  53314. * stpcpy: Other Builtins. (line 6)
  53315. * stpncpy: Other Builtins. (line 6)
  53316. * strcasecmp: Other Builtins. (line 6)
  53317. * strcat: Other Builtins. (line 6)
  53318. * strchr: Other Builtins. (line 6)
  53319. * strcmp: Other Builtins. (line 6)
  53320. * strcpy: Other Builtins. (line 6)
  53321. * strcspn: Other Builtins. (line 6)
  53322. * strdup: Other Builtins. (line 6)
  53323. * strfmon: Other Builtins. (line 6)
  53324. * strftime: Other Builtins. (line 6)
  53325. * strict-align function attribute, AArch64: AArch64 Function Attributes.
  53326. (line 33)
  53327. * string constants: Incompatibilities. (line 9)
  53328. * strlen: Other Builtins. (line 6)
  53329. * strncasecmp: Other Builtins. (line 6)
  53330. * strncat: Other Builtins. (line 6)
  53331. * strncmp: Other Builtins. (line 6)
  53332. * strncpy: Other Builtins. (line 6)
  53333. * strndup: Other Builtins. (line 6)
  53334. * strnlen: Other Builtins. (line 6)
  53335. * strpbrk: Other Builtins. (line 6)
  53336. * strrchr: Other Builtins. (line 6)
  53337. * strspn: Other Builtins. (line 6)
  53338. * strstr: Other Builtins. (line 6)
  53339. * struct: Unnamed Fields. (line 6)
  53340. * struct __htm_tdb: S/390 System z Built-in Functions.
  53341. (line 49)
  53342. * structures: Incompatibilities. (line 146)
  53343. * structures, constructor expression: Compound Literals. (line 6)
  53344. * submodel options: Submodel Options. (line 6)
  53345. * subscripting: Subscripting. (line 6)
  53346. * subscripting and function values: Subscripting. (line 6)
  53347. * suffixes for C++ source: Invoking G++. (line 6)
  53348. * SUNPRO_DEPENDENCIES: Environment Variables.
  53349. (line 171)
  53350. * suppressing warnings: Warning Options. (line 6)
  53351. * surprises in C++: C++ Misunderstandings.
  53352. (line 6)
  53353. * syntax checking: Warning Options. (line 13)
  53354. * syscall_linkage function attribute, IA-64: IA-64 Function Attributes.
  53355. (line 9)
  53356. * system headers, warnings from: Warning Options. (line 1708)
  53357. * sysv_abi function attribute, x86: x86 Function Attributes.
  53358. (line 34)
  53359. * tan: Other Builtins. (line 6)
  53360. * tanf: Other Builtins. (line 6)
  53361. * tanh: Other Builtins. (line 6)
  53362. * tanhf: Other Builtins. (line 6)
  53363. * tanhl: Other Builtins. (line 6)
  53364. * tanl: Other Builtins. (line 6)
  53365. * target function attribute: Common Function Attributes.
  53366. (line 986)
  53367. * target function attribute <1>: ARM Function Attributes.
  53368. (line 77)
  53369. * target function attribute <2>: Nios II Function Attributes.
  53370. (line 9)
  53371. * target function attribute <3>: PowerPC Function Attributes.
  53372. (line 21)
  53373. * target function attribute <4>: S/390 Function Attributes.
  53374. (line 22)
  53375. * target function attribute <5>: x86 Function Attributes.
  53376. (line 180)
  53377. * target machine, specifying: Invoking GCC. (line 24)
  53378. * target("3dnow") function attribute, x86: x86 Function Attributes.
  53379. (line 186)
  53380. * target("3dnowa") function attribute, x86: x86 Function Attributes.
  53381. (line 190)
  53382. * target("abm") function attribute, x86: x86 Function Attributes.
  53383. (line 195)
  53384. * target("adx") function attribute, x86: x86 Function Attributes.
  53385. (line 200)
  53386. * target("aes") function attribute, x86: x86 Function Attributes.
  53387. (line 204)
  53388. * target("align-stringops") function attribute, x86: x86 Function Attributes.
  53389. (line 529)
  53390. * target("altivec") function attribute, PowerPC: PowerPC Function Attributes.
  53391. (line 28)
  53392. * target("arch=ARCH") function attribute, x86: x86 Function Attributes.
  53393. (line 538)
  53394. * target("arm") function attribute, ARM: ARM Function Attributes.
  53395. (line 87)
  53396. * target("avoid-indexed-addresses") function attribute, PowerPC: PowerPC Function Attributes.
  53397. (line 149)
  53398. * target("avx") function attribute, x86: x86 Function Attributes.
  53399. (line 208)
  53400. * target("avx2") function attribute, x86: x86 Function Attributes.
  53401. (line 212)
  53402. * target("avx5124fmaps") function attribute, x86: x86 Function Attributes.
  53403. (line 216)
  53404. * target("avx5124vnniw") function attribute, x86: x86 Function Attributes.
  53405. (line 221)
  53406. * target("avx512bitalg") function attribute, x86: x86 Function Attributes.
  53407. (line 226)
  53408. * target("avx512bw") function attribute, x86: x86 Function Attributes.
  53409. (line 231)
  53410. * target("avx512cd") function attribute, x86: x86 Function Attributes.
  53411. (line 235)
  53412. * target("avx512dq") function attribute, x86: x86 Function Attributes.
  53413. (line 239)
  53414. * target("avx512er") function attribute, x86: x86 Function Attributes.
  53415. (line 243)
  53416. * target("avx512f") function attribute, x86: x86 Function Attributes.
  53417. (line 247)
  53418. * target("avx512ifma") function attribute, x86: x86 Function Attributes.
  53419. (line 251)
  53420. * target("avx512pf") function attribute, x86: x86 Function Attributes.
  53421. (line 255)
  53422. * target("avx512vbmi") function attribute, x86: x86 Function Attributes.
  53423. (line 259)
  53424. * target("avx512vbmi2") function attribute, x86: x86 Function Attributes.
  53425. (line 263)
  53426. * target("avx512vl") function attribute, x86: x86 Function Attributes.
  53427. (line 267)
  53428. * target("avx512vnni") function attribute, x86: x86 Function Attributes.
  53429. (line 271)
  53430. * target("avx512vpopcntdq") function attribute, x86: x86 Function Attributes.
  53431. (line 275)
  53432. * target("bmi") function attribute, x86: x86 Function Attributes.
  53433. (line 280)
  53434. * target("bmi2") function attribute, x86: x86 Function Attributes.
  53435. (line 284)
  53436. * target("cld") function attribute, x86: x86 Function Attributes.
  53437. (line 505)
  53438. * target("cldemote") function attribute, x86: x86 Function Attributes.
  53439. (line 288)
  53440. * target("clflushopt") function attribute, x86: x86 Function Attributes.
  53441. (line 292)
  53442. * target("clwb") function attribute, x86: x86 Function Attributes.
  53443. (line 296)
  53444. * target("clzero") function attribute, x86: x86 Function Attributes.
  53445. (line 300)
  53446. * target("cmpb") function attribute, PowerPC: PowerPC Function Attributes.
  53447. (line 34)
  53448. * target("cpu=CPU") function attribute, PowerPC: PowerPC Function Attributes.
  53449. (line 164)
  53450. * target("crc32") function attribute, x86: x86 Function Attributes.
  53451. (line 304)
  53452. * target("custom-fpu-cfg=NAME") function attribute, Nios II: Nios II Function Attributes.
  53453. (line 25)
  53454. * target("custom-INSN=N") function attribute, Nios II: Nios II Function Attributes.
  53455. (line 16)
  53456. * target("cx16") function attribute, x86: x86 Function Attributes.
  53457. (line 308)
  53458. * target("default") function attribute, x86: x86 Function Attributes.
  53459. (line 311)
  53460. * target("dlmzb") function attribute, PowerPC: PowerPC Function Attributes.
  53461. (line 40)
  53462. * target("f16c") function attribute, x86: x86 Function Attributes.
  53463. (line 316)
  53464. * target("fancy-math-387") function attribute, x86: x86 Function Attributes.
  53465. (line 509)
  53466. * target("fma") function attribute, x86: x86 Function Attributes.
  53467. (line 320)
  53468. * target("fma4") function attribute, x86: x86 Function Attributes.
  53469. (line 324)
  53470. * target("fpmath=FPMATH") function attribute, x86: x86 Function Attributes.
  53471. (line 546)
  53472. * target("fprnd") function attribute, PowerPC: PowerPC Function Attributes.
  53473. (line 47)
  53474. * target("fpu=") function attribute, ARM: ARM Function Attributes.
  53475. (line 93)
  53476. * target("friz") function attribute, PowerPC: PowerPC Function Attributes.
  53477. (line 140)
  53478. * target("fsgsbase") function attribute, x86: x86 Function Attributes.
  53479. (line 328)
  53480. * target("fxsr") function attribute, x86: x86 Function Attributes.
  53481. (line 332)
  53482. * target("gfni") function attribute, x86: x86 Function Attributes.
  53483. (line 336)
  53484. * target("hard-dfp") function attribute, PowerPC: PowerPC Function Attributes.
  53485. (line 53)
  53486. * target("hle") function attribute, x86: x86 Function Attributes.
  53487. (line 340)
  53488. * target("ieee-fp") function attribute, x86: x86 Function Attributes.
  53489. (line 514)
  53490. * target("inline-all-stringops") function attribute, x86: x86 Function Attributes.
  53491. (line 519)
  53492. * target("inline-stringops-dynamically") function attribute, x86: x86 Function Attributes.
  53493. (line 523)
  53494. * target("isel") function attribute, PowerPC: PowerPC Function Attributes.
  53495. (line 59)
  53496. * target("longcall") function attribute, PowerPC: PowerPC Function Attributes.
  53497. (line 159)
  53498. * target("lwp") function attribute, x86: x86 Function Attributes.
  53499. (line 344)
  53500. * target("lzcnt") function attribute, x86: x86 Function Attributes.
  53501. (line 348)
  53502. * target("mfcrf") function attribute, PowerPC: PowerPC Function Attributes.
  53503. (line 63)
  53504. * target("mfpgpr") function attribute, PowerPC: PowerPC Function Attributes.
  53505. (line 70)
  53506. * target("mmx") function attribute, x86: x86 Function Attributes.
  53507. (line 352)
  53508. * target("movbe") function attribute, x86: x86 Function Attributes.
  53509. (line 356)
  53510. * target("movdir64b") function attribute, x86: x86 Function Attributes.
  53511. (line 360)
  53512. * target("movdiri") function attribute, x86: x86 Function Attributes.
  53513. (line 364)
  53514. * target("mulhw") function attribute, PowerPC: PowerPC Function Attributes.
  53515. (line 77)
  53516. * target("multiple") function attribute, PowerPC: PowerPC Function Attributes.
  53517. (line 84)
  53518. * target("mwaitx") function attribute, x86: x86 Function Attributes.
  53519. (line 368)
  53520. * target("no-custom-INSN") function attribute, Nios II: Nios II Function Attributes.
  53521. (line 16)
  53522. * target("paired") function attribute, PowerPC: PowerPC Function Attributes.
  53523. (line 154)
  53524. * target("pclmul") function attribute, x86: x86 Function Attributes.
  53525. (line 372)
  53526. * target("pconfig") function attribute, x86: x86 Function Attributes.
  53527. (line 376)
  53528. * target("pku") function attribute, x86: x86 Function Attributes.
  53529. (line 380)
  53530. * target("popcnt") function attribute, x86: x86 Function Attributes.
  53531. (line 384)
  53532. * target("popcntb") function attribute, PowerPC: PowerPC Function Attributes.
  53533. (line 95)
  53534. * target("popcntd") function attribute, PowerPC: PowerPC Function Attributes.
  53535. (line 102)
  53536. * target("powerpc-gfxopt") function attribute, PowerPC: PowerPC Function Attributes.
  53537. (line 108)
  53538. * target("powerpc-gpopt") function attribute, PowerPC: PowerPC Function Attributes.
  53539. (line 114)
  53540. * target("prefetchwt1") function attribute, x86: x86 Function Attributes.
  53541. (line 388)
  53542. * target("prfchw") function attribute, x86: x86 Function Attributes.
  53543. (line 392)
  53544. * target("ptwrite") function attribute, x86: x86 Function Attributes.
  53545. (line 396)
  53546. * target("rdpid") function attribute, x86: x86 Function Attributes.
  53547. (line 400)
  53548. * target("rdrnd") function attribute, x86: x86 Function Attributes.
  53549. (line 404)
  53550. * target("rdseed") function attribute, x86: x86 Function Attributes.
  53551. (line 408)
  53552. * target("recip") function attribute, x86: x86 Function Attributes.
  53553. (line 533)
  53554. * target("recip-precision") function attribute, PowerPC: PowerPC Function Attributes.
  53555. (line 120)
  53556. * target("rtm") function attribute, x86: x86 Function Attributes.
  53557. (line 412)
  53558. * target("sahf") function attribute, x86: x86 Function Attributes.
  53559. (line 416)
  53560. * target("sgx") function attribute, x86: x86 Function Attributes.
  53561. (line 420)
  53562. * target("sha") function attribute, x86: x86 Function Attributes.
  53563. (line 424)
  53564. * target("shstk") function attribute, x86: x86 Function Attributes.
  53565. (line 428)
  53566. * target("sse") function attribute, x86: x86 Function Attributes.
  53567. (line 432)
  53568. * target("sse2") function attribute, x86: x86 Function Attributes.
  53569. (line 436)
  53570. * target("sse3") function attribute, x86: x86 Function Attributes.
  53571. (line 440)
  53572. * target("sse4") function attribute, x86: x86 Function Attributes.
  53573. (line 444)
  53574. * target("sse4.1") function attribute, x86: x86 Function Attributes.
  53575. (line 449)
  53576. * target("sse4.2") function attribute, x86: x86 Function Attributes.
  53577. (line 453)
  53578. * target("sse4a") function attribute, x86: x86 Function Attributes.
  53579. (line 457)
  53580. * target("ssse3") function attribute, x86: x86 Function Attributes.
  53581. (line 461)
  53582. * target("string") function attribute, PowerPC: PowerPC Function Attributes.
  53583. (line 126)
  53584. * target("tbm") function attribute, x86: x86 Function Attributes.
  53585. (line 465)
  53586. * target("thumb") function attribute, ARM: ARM Function Attributes.
  53587. (line 83)
  53588. * target("tune=TUNE") function attribute, PowerPC: PowerPC Function Attributes.
  53589. (line 171)
  53590. * target("tune=TUNE") function attribute, x86: x86 Function Attributes.
  53591. (line 542)
  53592. * target("update") function attribute, PowerPC: PowerPC Function Attributes.
  53593. (line 89)
  53594. * target("vaes") function attribute, x86: x86 Function Attributes.
  53595. (line 469)
  53596. * target("vpclmulqdq") function attribute, x86: x86 Function Attributes.
  53597. (line 473)
  53598. * target("vsx") function attribute, PowerPC: PowerPC Function Attributes.
  53599. (line 132)
  53600. * target("waitpkg") function attribute, x86: x86 Function Attributes.
  53601. (line 477)
  53602. * target("wbnoinvd") function attribute, x86: x86 Function Attributes.
  53603. (line 481)
  53604. * target("xop") function attribute, x86: x86 Function Attributes.
  53605. (line 485)
  53606. * target("xsave") function attribute, x86: x86 Function Attributes.
  53607. (line 489)
  53608. * target("xsavec") function attribute, x86: x86 Function Attributes.
  53609. (line 493)
  53610. * target("xsaveopt") function attribute, x86: x86 Function Attributes.
  53611. (line 497)
  53612. * target("xsaves") function attribute, x86: x86 Function Attributes.
  53613. (line 501)
  53614. * target-dependent options: Submodel Options. (line 6)
  53615. * target_clones function attribute: Common Function Attributes.
  53616. (line 1025)
  53617. * TC1: Standards. (line 13)
  53618. * TC2: Standards. (line 13)
  53619. * TC3: Standards. (line 13)
  53620. * tda variable attribute, V850: V850 Variable Attributes.
  53621. (line 13)
  53622. * Technical Corrigenda: Standards. (line 13)
  53623. * Technical Corrigendum 1: Standards. (line 13)
  53624. * Technical Corrigendum 2: Standards. (line 13)
  53625. * Technical Corrigendum 3: Standards. (line 13)
  53626. * template instantiation: Template Instantiation.
  53627. (line 6)
  53628. * temporaries, lifetime of: Temporaries. (line 6)
  53629. * tentative definitions: Code Gen Options. (line 231)
  53630. * tgamma: Other Builtins. (line 6)
  53631. * tgammaf: Other Builtins. (line 6)
  53632. * tgammal: Other Builtins. (line 6)
  53633. * thiscall function attribute, x86-32: x86 Function Attributes.
  53634. (line 23)
  53635. * Thread-Local Storage: Thread-Local. (line 6)
  53636. * thunks: Nested Functions. (line 6)
  53637. * TILE-Gx options: TILE-Gx Options. (line 6)
  53638. * TILEPro options: TILEPro Options. (line 6)
  53639. * tiny data section on the H8/300H and H8S: H8/300 Variable Attributes.
  53640. (line 19)
  53641. * tiny type attribute, MeP: MeP Type Attributes.
  53642. (line 6)
  53643. * tiny variable attribute, MeP: MeP Variable Attributes.
  53644. (line 20)
  53645. * tiny_data variable attribute, H8/300: H8/300 Variable Attributes.
  53646. (line 19)
  53647. * TLS: Thread-Local. (line 6)
  53648. * tls-dialect= function attribute, AArch64: AArch64 Function Attributes.
  53649. (line 48)
  53650. * tls_model variable attribute: Common Variable Attributes.
  53651. (line 337)
  53652. * TMPDIR: Environment Variables.
  53653. (line 45)
  53654. * toascii: Other Builtins. (line 6)
  53655. * tolower: Other Builtins. (line 6)
  53656. * toupper: Other Builtins. (line 6)
  53657. * towlower: Other Builtins. (line 6)
  53658. * towupper: Other Builtins. (line 6)
  53659. * traditional C language: Preprocessor Options.
  53660. (line 366)
  53661. * transparent_union type attribute: Common Type Attributes.
  53662. (line 357)
  53663. * trapa_handler function attribute, SH: SH Function Attributes.
  53664. (line 73)
  53665. * trap_exit function attribute, SH: SH Function Attributes.
  53666. (line 68)
  53667. * trunc: Other Builtins. (line 6)
  53668. * truncf: Other Builtins. (line 6)
  53669. * truncl: Other Builtins. (line 6)
  53670. * tune= function attribute, AArch64: AArch64 Function Attributes.
  53671. (line 58)
  53672. * two-stage name lookup: Name lookup. (line 6)
  53673. * type alignment: Alignment. (line 6)
  53674. * type attributes: Type Attributes. (line 6)
  53675. * type-diff GCC_COLORS capability: Diagnostic Message Formatting Options.
  53676. (line 119)
  53677. * typedef names as function parameters: Incompatibilities. (line 97)
  53678. * typeof: Typeof. (line 6)
  53679. * type_info: Vague Linkage. (line 42)
  53680. * uhk fixed-suffix: Fixed-Point. (line 6)
  53681. * UHK fixed-suffix: Fixed-Point. (line 6)
  53682. * uhr fixed-suffix: Fixed-Point. (line 6)
  53683. * UHR fixed-suffix: Fixed-Point. (line 6)
  53684. * uk fixed-suffix: Fixed-Point. (line 6)
  53685. * UK fixed-suffix: Fixed-Point. (line 6)
  53686. * ulk fixed-suffix: Fixed-Point. (line 6)
  53687. * ULK fixed-suffix: Fixed-Point. (line 6)
  53688. * ULL integer suffix: Long Long. (line 6)
  53689. * ullk fixed-suffix: Fixed-Point. (line 6)
  53690. * ULLK fixed-suffix: Fixed-Point. (line 6)
  53691. * ullr fixed-suffix: Fixed-Point. (line 6)
  53692. * ULLR fixed-suffix: Fixed-Point. (line 6)
  53693. * ulr fixed-suffix: Fixed-Point. (line 6)
  53694. * ULR fixed-suffix: Fixed-Point. (line 6)
  53695. * uncached type attribute, ARC: ARC Type Attributes.
  53696. (line 6)
  53697. * undefined behavior: Bug Criteria. (line 17)
  53698. * undefined function value: Bug Criteria. (line 17)
  53699. * underscores in variables in macros: Typeof. (line 46)
  53700. * union: Unnamed Fields. (line 6)
  53701. * union, casting to a: Cast to Union. (line 6)
  53702. * unions: Incompatibilities. (line 146)
  53703. * unknown pragmas, warning: Warning Options. (line 1184)
  53704. * unresolved references and -nodefaultlibs: Link Options. (line 155)
  53705. * unresolved references and -nostdlib: Link Options. (line 155)
  53706. * unused function attribute: Common Function Attributes.
  53707. (line 1046)
  53708. * unused label attribute: Label Attributes. (line 31)
  53709. * unused type attribute: Common Type Attributes.
  53710. (line 410)
  53711. * unused variable attribute: Common Variable Attributes.
  53712. (line 346)
  53713. * upper function attribute, MSP430: MSP430 Function Attributes.
  53714. (line 57)
  53715. * upper variable attribute, MSP430: MSP430 Variable Attributes.
  53716. (line 24)
  53717. * ur fixed-suffix: Fixed-Point. (line 6)
  53718. * UR fixed-suffix: Fixed-Point. (line 6)
  53719. * used function attribute: Common Function Attributes.
  53720. (line 1051)
  53721. * used variable attribute: Common Variable Attributes.
  53722. (line 351)
  53723. * User stack pointer in interrupts on the Blackfin: Blackfin Function Attributes.
  53724. (line 21)
  53725. * use_debug_exception_return function attribute, MIPS: MIPS Function Attributes.
  53726. (line 39)
  53727. * use_shadow_register_set function attribute, MIPS: MIPS Function Attributes.
  53728. (line 28)
  53729. * V in constraint: Simple Constraints. (line 43)
  53730. * V850 Options: V850 Options. (line 6)
  53731. * vague linkage: Vague Linkage. (line 6)
  53732. * value after longjmp: Global Register Variables.
  53733. (line 92)
  53734. * variable addressability on the M32R/D: M32R/D Variable Attributes.
  53735. (line 9)
  53736. * variable alignment: Alignment. (line 6)
  53737. * variable attributes: Variable Attributes.
  53738. (line 6)
  53739. * variable number of arguments: Variadic Macros. (line 6)
  53740. * variable-length array in a structure: Variable Length. (line 26)
  53741. * variable-length array scope: Variable Length. (line 22)
  53742. * variable-length arrays: Variable Length. (line 6)
  53743. * variables in specified registers: Explicit Register Variables.
  53744. (line 6)
  53745. * variables, local, in macros: Typeof. (line 46)
  53746. * variadic functions, pointer arguments: Variadic Pointer Args.
  53747. (line 6)
  53748. * variadic macros: Variadic Macros. (line 6)
  53749. * VAX options: VAX Options. (line 6)
  53750. * vector function attribute, RX: RX Function Attributes.
  53751. (line 49)
  53752. * vector types, using with x86 intrinsics: Vector Extensions.
  53753. (line 188)
  53754. * vector_size type attribute: Common Type Attributes.
  53755. (line 419)
  53756. * vector_size variable attribute: Common Variable Attributes.
  53757. (line 360)
  53758. * version_id function attribute, IA-64: IA-64 Function Attributes.
  53759. (line 16)
  53760. * vfprintf: Other Builtins. (line 6)
  53761. * vfscanf: Other Builtins. (line 6)
  53762. * visibility function attribute: Common Function Attributes.
  53763. (line 1061)
  53764. * visibility type attribute: Common Type Attributes.
  53765. (line 446)
  53766. * visibility variable attribute: Common Variable Attributes.
  53767. (line 388)
  53768. * Visium options: Visium Options. (line 6)
  53769. * VLAs: Variable Length. (line 6)
  53770. * vliw function attribute, MeP: MeP Function Attributes.
  53771. (line 30)
  53772. * void pointers, arithmetic: Pointer Arith. (line 6)
  53773. * void, size of pointer to: Pointer Arith. (line 6)
  53774. * volatile access: Volatiles. (line 6)
  53775. * volatile access <1>: C++ Volatiles. (line 6)
  53776. * volatile applied to function: Function Attributes.
  53777. (line 6)
  53778. * volatile asm: Extended Asm. (line 116)
  53779. * volatile read: Volatiles. (line 6)
  53780. * volatile read <1>: C++ Volatiles. (line 6)
  53781. * volatile write: Volatiles. (line 6)
  53782. * volatile write <1>: C++ Volatiles. (line 6)
  53783. * vprintf: Other Builtins. (line 6)
  53784. * vscanf: Other Builtins. (line 6)
  53785. * vsnprintf: Other Builtins. (line 6)
  53786. * vsprintf: Other Builtins. (line 6)
  53787. * vsscanf: Other Builtins. (line 6)
  53788. * vtable: Vague Linkage. (line 27)
  53789. * VxWorks Options: VxWorks Options. (line 6)
  53790. * w floating point suffix: Floating Types. (line 6)
  53791. * W floating point suffix: Floating Types. (line 6)
  53792. * wakeup function attribute, MSP430: MSP430 Function Attributes.
  53793. (line 49)
  53794. * warm function attribute, NDS32: NDS32 Function Attributes.
  53795. (line 52)
  53796. * warning for comparison of signed and unsigned values: Warning Options.
  53797. (line 2328)
  53798. * warning for overloaded virtual function: C++ Dialect Options.
  53799. (line 897)
  53800. * warning for reordering of member initializers: C++ Dialect Options.
  53801. (line 761)
  53802. * warning for unknown pragmas: Warning Options. (line 1184)
  53803. * warning function attribute: Common Function Attributes.
  53804. (line 272)
  53805. * warning GCC_COLORS capability: Diagnostic Message Formatting Options.
  53806. (line 80)
  53807. * warning messages: Warning Options. (line 6)
  53808. * warnings from system headers: Warning Options. (line 1708)
  53809. * warnings vs errors: Warnings and Errors.
  53810. (line 6)
  53811. * warn_if_not_aligned type attribute: Common Type Attributes.
  53812. (line 91)
  53813. * warn_if_not_aligned variable attribute: Common Variable Attributes.
  53814. (line 106)
  53815. * warn_unused type attribute: C++ Attributes. (line 71)
  53816. * warn_unused_result function attribute: Common Function Attributes.
  53817. (line 1161)
  53818. * weak function attribute: Common Function Attributes.
  53819. (line 1178)
  53820. * weak variable attribute: Common Variable Attributes.
  53821. (line 393)
  53822. * weakref function attribute: Common Function Attributes.
  53823. (line 1187)
  53824. * whitespace: Incompatibilities. (line 112)
  53825. * Windows Options for x86: x86 Windows Options.
  53826. (line 6)
  53827. * X in constraint: Simple Constraints. (line 122)
  53828. * X3.159-1989: Standards. (line 13)
  53829. * x86 named address spaces: Named Address Spaces.
  53830. (line 183)
  53831. * x86 Options: x86 Options. (line 6)
  53832. * x86 Windows Options: x86 Windows Options.
  53833. (line 6)
  53834. * Xstormy16 Options: Xstormy16 Options. (line 6)
  53835. * Xtensa Options: Xtensa Options. (line 6)
  53836. * y0: Other Builtins. (line 6)
  53837. * y0f: Other Builtins. (line 6)
  53838. * y0l: Other Builtins. (line 6)
  53839. * y1: Other Builtins. (line 6)
  53840. * y1f: Other Builtins. (line 6)
  53841. * y1l: Other Builtins. (line 6)
  53842. * yn: Other Builtins. (line 6)
  53843. * ynf: Other Builtins. (line 6)
  53844. * ynl: Other Builtins. (line 6)
  53845. * zda variable attribute, V850: V850 Variable Attributes.
  53846. (line 17)
  53847. * zero-length arrays: Zero Length. (line 6)
  53848. * zero-size structures: Empty Structures. (line 6)
  53849. * zSeries options: zSeries Options. (line 6)
  53850. 
  53851. Tag Table:
  53852. Node: Top2057
  53853. Node: G++ and GCC3980
  53854. Node: Standards6040
  53855. Node: Invoking GCC19657
  53856. Node: Option Summary24780
  53857. Node: Overall Options77150
  53858. Node: Invoking G++92387
  53859. Node: C Dialect Options93910
  53860. Node: C++ Dialect Options113120
  53861. Node: Objective-C and Objective-C++ Dialect Options156495
  53862. Node: Diagnostic Message Formatting Options167725
  53863. Node: Warning Options184363
  53864. Ref: Wtrigraphs276686
  53865. Node: Debugging Options314917
  53866. Node: Optimize Options334107
  53867. Ref: Type-punning402907
  53868. Node: Instrumentation Options502361
  53869. Node: Preprocessor Options539402
  53870. Ref: dashMF544249
  53871. Ref: fdollars-in-identifiers548828
  53872. Node: Assembler Options561078
  53873. Node: Link Options561769
  53874. Ref: Link Options-Footnote-1578766
  53875. Node: Directory Options579102
  53876. Node: Code Gen Options587505
  53877. Node: Developer Options616191
  53878. Node: Submodel Options657326
  53879. Node: AArch64 Options659119
  53880. Ref: aarch64-feature-modifiers672400
  53881. Node: Adapteva Epiphany Options676080
  53882. Node: AMD GCN Options682032
  53883. Node: ARC Options682858
  53884. Node: ARM Options704070
  53885. Node: AVR Options740640
  53886. Node: Blackfin Options764669
  53887. Node: C6X Options772561
  53888. Node: CRIS Options774104
  53889. Node: CR16 Options777843
  53890. Node: C-SKY Options778755
  53891. Node: Darwin Options783615
  53892. Node: DEC Alpha Options791056
  53893. Node: FR30 Options802672
  53894. Node: FT32 Options803237
  53895. Node: FRV Options804183
  53896. Node: GNU/Linux Options810947
  53897. Node: H8/300 Options812328
  53898. Node: HPPA Options813780
  53899. Node: IA-64 Options823312
  53900. Node: LM32 Options831440
  53901. Node: M32C Options831963
  53902. Node: M32R/D Options833236
  53903. Node: M680x0 Options836781
  53904. Node: MCore Options850866
  53905. Node: MeP Options852368
  53906. Node: MicroBlaze Options856328
  53907. Node: MIPS Options859418
  53908. Node: MMIX Options895957
  53909. Node: MN10300 Options898434
  53910. Node: Moxie Options900977
  53911. Node: MSP430 Options901464
  53912. Node: NDS32 Options906168
  53913. Node: Nios II Options908338
  53914. Node: Nvidia PTX Options920500
  53915. Node: OpenRISC Options922969
  53916. Node: PDP-11 Options924465
  53917. Node: picoChip Options925714
  53918. Node: PowerPC Options927852
  53919. Node: RISC-V Options928075
  53920. Node: RL78 Options933300
  53921. Node: RS/6000 and PowerPC Options937075
  53922. Node: RX Options977687
  53923. Node: S/390 and zSeries Options986289
  53924. Node: Score Options996668
  53925. Node: SH Options997517
  53926. Node: Solaris 2 Options1012657
  53927. Node: SPARC Options1013895
  53928. Node: SPU Options1029516
  53929. Node: System V Options1034455
  53930. Node: TILE-Gx Options1035281
  53931. Node: TILEPro Options1036299
  53932. Node: V850 Options1036803
  53933. Node: VAX Options1043490
  53934. Node: Visium Options1044028
  53935. Node: VMS Options1046336
  53936. Node: VxWorks Options1047152
  53937. Node: x86 Options1048304
  53938. Node: x86 Windows Options1109269
  53939. Node: Xstormy16 Options1112074
  53940. Node: Xtensa Options1112368
  53941. Node: zSeries Options1117517
  53942. Node: Spec Files1117713
  53943. Node: Environment Variables1139871
  53944. Node: Precompiled Headers1148597
  53945. Node: C Implementation1154603
  53946. Node: Translation implementation1156293
  53947. Node: Environment implementation1156884
  53948. Node: Identifiers implementation1157438
  53949. Node: Characters implementation1158524
  53950. Node: Integers implementation1162174
  53951. Node: Floating point implementation1164223
  53952. Node: Arrays and pointers implementation1167286
  53953. Ref: Arrays and pointers implementation-Footnote-11168746
  53954. Node: Hints implementation1168872
  53955. Node: Structures unions enumerations and bit-fields implementation1170367
  53956. Node: Qualifiers implementation1172591
  53957. Node: Declarators implementation1174370
  53958. Node: Statements implementation1174711
  53959. Node: Preprocessing directives implementation1175037
  53960. Node: Library functions implementation1177358
  53961. Node: Architecture implementation1178007
  53962. Node: Locale-specific behavior implementation1179652
  53963. Node: C++ Implementation1179957
  53964. Node: Conditionally-supported behavior1181240
  53965. Node: Exception handling1181857
  53966. Node: C Extensions1182324
  53967. Node: Statement Exprs1187528
  53968. Node: Local Labels1192900
  53969. Node: Labels as Values1195873
  53970. Ref: Labels as Values-Footnote-11198400
  53971. Node: Nested Functions1198585
  53972. Node: Nonlocal Gotos1202539
  53973. Node: Constructing Calls1204805
  53974. Node: Typeof1209520
  53975. Node: Conditionals1213449
  53976. Node: __int1281214338
  53977. Node: Long Long1214863
  53978. Node: Complex1216354
  53979. Node: Floating Types1219122
  53980. Node: Half-Precision1222589
  53981. Node: Decimal Float1225000
  53982. Node: Hex Floats1226854
  53983. Node: Fixed-Point1227928
  53984. Node: Named Address Spaces1231186
  53985. Ref: AVR Named Address Spaces1231872
  53986. Node: Zero Length1238895
  53987. Node: Empty Structures1243076
  53988. Node: Variable Length1243482
  53989. Node: Variadic Macros1246200
  53990. Node: Escaped Newlines1248578
  53991. Node: Subscripting1249439
  53992. Node: Pointer Arith1250164
  53993. Node: Variadic Pointer Args1250741
  53994. Node: Pointers to Arrays1251466
  53995. Node: Initializers1252219
  53996. Node: Compound Literals1252720
  53997. Node: Designated Inits1256287
  53998. Node: Case Ranges1260211
  53999. Node: Cast to Union1260892
  54000. Node: Mixed Declarations1262615
  54001. Node: Function Attributes1263125
  54002. Node: Common Function Attributes1267581
  54003. Node: AArch64 Function Attributes1326237
  54004. Node: AMD GCN Function Attributes1332208
  54005. Node: ARC Function Attributes1335261
  54006. Node: ARM Function Attributes1337583
  54007. Node: AVR Function Attributes1342722
  54008. Node: Blackfin Function Attributes1347257
  54009. Node: CR16 Function Attributes1349755
  54010. Node: C-SKY Function Attributes1350279
  54011. Node: Epiphany Function Attributes1351576
  54012. Node: H8/300 Function Attributes1354331
  54013. Node: IA-64 Function Attributes1355529
  54014. Node: M32C Function Attributes1356571
  54015. Node: M32R/D Function Attributes1358909
  54016. Node: m68k Function Attributes1360383
  54017. Node: MCORE Function Attributes1361327
  54018. Node: MeP Function Attributes1362138
  54019. Node: MicroBlaze Function Attributes1363439
  54020. Node: Microsoft Windows Function Attributes1364946
  54021. Node: MIPS Function Attributes1369515
  54022. Node: MSP430 Function Attributes1375133
  54023. Node: NDS32 Function Attributes1379186
  54024. Node: Nios II Function Attributes1381610
  54025. Node: Nvidia PTX Function Attributes1382907
  54026. Node: PowerPC Function Attributes1383522
  54027. Node: RISC-V Function Attributes1390577
  54028. Node: RL78 Function Attributes1391993
  54029. Node: RX Function Attributes1393232
  54030. Node: S/390 Function Attributes1395779
  54031. Node: SH Function Attributes1397607
  54032. Node: SPU Function Attributes1401028
  54033. Node: Symbian OS Function Attributes1401836
  54034. Node: V850 Function Attributes1402173
  54035. Node: Visium Function Attributes1402718
  54036. Node: x86 Function Attributes1403246
  54037. Node: Xstormy16 Function Attributes1425735
  54038. Node: Variable Attributes1426242
  54039. Node: Common Variable Attributes1427803
  54040. Node: ARC Variable Attributes1445604
  54041. Node: AVR Variable Attributes1445986
  54042. Node: Blackfin Variable Attributes1451148
  54043. Node: H8/300 Variable Attributes1452006
  54044. Node: IA-64 Variable Attributes1453079
  54045. Node: M32R/D Variable Attributes1453830
  54046. Node: MeP Variable Attributes1454613
  54047. Node: Microsoft Windows Variable Attributes1456706
  54048. Node: MSP430 Variable Attributes1459159
  54049. Node: Nvidia PTX Variable Attributes1460360
  54050. Node: PowerPC Variable Attributes1460977
  54051. Node: RL78 Variable Attributes1461534
  54052. Node: SPU Variable Attributes1461952
  54053. Node: V850 Variable Attributes1462317
  54054. Node: x86 Variable Attributes1462949
  54055. Node: Xstormy16 Variable Attributes1464005
  54056. Node: Type Attributes1464575
  54057. Node: Common Type Attributes1466263
  54058. Node: ARC Type Attributes1487755
  54059. Node: ARM Type Attributes1488227
  54060. Node: MeP Type Attributes1489009
  54061. Node: PowerPC Type Attributes1489411
  54062. Node: SPU Type Attributes1490400
  54063. Node: x86 Type Attributes1490819
  54064. Node: Label Attributes1491807
  54065. Node: Enumerator Attributes1493740
  54066. Node: Statement Attributes1495059
  54067. Node: Attribute Syntax1496542
  54068. Node: Function Prototypes1507800
  54069. Node: C++ Comments1509580
  54070. Node: Dollar Signs1510099
  54071. Node: Character Escapes1510564
  54072. Node: Alignment1510848
  54073. Node: Inline1512501
  54074. Node: Volatiles1517318
  54075. Node: Using Assembly Language with C1520217
  54076. Node: Basic Asm1521454
  54077. Node: Extended Asm1526904
  54078. Ref: Volatile1531003
  54079. Ref: AssemblerTemplate1535123
  54080. Ref: OutputOperands1539363
  54081. Ref: FlagOutputOperands1546326
  54082. Ref: InputOperands1548367
  54083. Ref: Clobbers and Scratch Registers1552635
  54084. Ref: GotoLabels1561276
  54085. Ref: x86Operandmodifiers1563411
  54086. Ref: x86floatingpointasmoperands1566568
  54087. Node: Constraints1569897
  54088. Node: Simple Constraints1571003
  54089. Node: Multi-Alternative1578317
  54090. Node: Modifiers1579992
  54091. Node: Machine Constraints1582790
  54092. Node: Asm Labels1645985
  54093. Node: Explicit Register Variables1647605
  54094. Ref: Explicit Reg Vars1647819
  54095. Node: Global Register Variables1648428
  54096. Ref: Global Reg Vars1648636
  54097. Node: Local Register Variables1653418
  54098. Ref: Local Reg Vars1653638
  54099. Node: Size of an asm1657266
  54100. Node: Alternate Keywords1658744
  54101. Node: Incomplete Enums1660243
  54102. Node: Function Names1661000
  54103. Node: Return Address1662898
  54104. Node: Vector Extensions1666839
  54105. Node: Offsetof1676604
  54106. Node: __sync Builtins1677437
  54107. Node: __atomic Builtins1683880
  54108. Node: Integer Overflow Builtins1697505
  54109. Node: x86 specific memory model extensions for transactional memory1703988
  54110. Node: Object Size Checking1705254
  54111. Node: Other Builtins1711510
  54112. Node: Target Builtins1760738
  54113. Node: AArch64 Built-in Functions1762402
  54114. Node: Alpha Built-in Functions1762857
  54115. Node: Altera Nios II Built-in Functions1765905
  54116. Node: ARC Built-in Functions1770274
  54117. Node: ARC SIMD Built-in Functions1775486
  54118. Node: ARM iWMMXt Built-in Functions1784382
  54119. Node: ARM C Language Extensions (ACLE)1791378
  54120. Node: ARM Floating Point Status and Control Intrinsics1792717
  54121. Node: ARM ARMv8-M Security Extensions1793202
  54122. Node: AVR Built-in Functions1794547
  54123. Node: Blackfin Built-in Functions1798308
  54124. Node: FR-V Built-in Functions1798927
  54125. Node: Argument Types1799795
  54126. Node: Directly-mapped Integer Functions1801549
  54127. Node: Directly-mapped Media Functions1802633
  54128. Node: Raw read/write Functions1810839
  54129. Node: Other Built-in Functions1811747
  54130. Node: MIPS DSP Built-in Functions1812933
  54131. Node: MIPS Paired-Single Support1825430
  54132. Node: MIPS Loongson Built-in Functions1826929
  54133. Node: Paired-Single Arithmetic1833451
  54134. Node: Paired-Single Built-in Functions1834399
  54135. Node: MIPS-3D Built-in Functions1837066
  54136. Node: MIPS SIMD Architecture (MSA) Support1842460
  54137. Node: MIPS SIMD Architecture Built-in Functions1845300
  54138. Node: Other MIPS Built-in Functions1872130
  54139. Node: MSP430 Built-in Functions1873139
  54140. Node: NDS32 Built-in Functions1874540
  54141. Node: picoChip Built-in Functions1875833
  54142. Node: Basic PowerPC Built-in Functions1877182
  54143. Node: Basic PowerPC Built-in Functions Available on all Configurations1877982
  54144. Node: Basic PowerPC Built-in Functions Available on ISA 2.051886037
  54145. Node: Basic PowerPC Built-in Functions Available on ISA 2.061890896
  54146. Node: Basic PowerPC Built-in Functions Available on ISA 2.071892976
  54147. Node: Basic PowerPC Built-in Functions Available on ISA 3.01893830
  54148. Node: PowerPC AltiVec/VSX Built-in Functions1900746
  54149. Node: PowerPC AltiVec Built-in Functions on ISA 2.051904420
  54150. Node: PowerPC AltiVec Built-in Functions Available on ISA 2.061993658
  54151. Node: PowerPC AltiVec Built-in Functions Available on ISA 2.072018103
  54152. Node: PowerPC AltiVec Built-in Functions Available on ISA 3.02039307
  54153. Node: PowerPC Hardware Transactional Memory Built-in Functions2074022
  54154. Node: PowerPC Atomic Memory Operation Functions2082537
  54155. Node: RX Built-in Functions2085072
  54156. Node: S/390 System z Built-in Functions2089090
  54157. Node: SH Built-in Functions2094320
  54158. Node: SPARC VIS Built-in Functions2096048
  54159. Node: SPU Built-in Functions2104577
  54160. Node: TI C6X Built-in Functions2106294
  54161. Node: TILE-Gx Built-in Functions2107319
  54162. Node: TILEPro Built-in Functions2108438
  54163. Node: x86 Built-in Functions2109538
  54164. Node: x86 transactional memory intrinsics2173228
  54165. Node: x86 control-flow protection intrinsics2176495
  54166. Node: Target Format Checks2178266
  54167. Node: Solaris Format Checks2178698
  54168. Node: Darwin Format Checks2179124
  54169. Node: Pragmas2180087
  54170. Node: AArch64 Pragmas2181012
  54171. Node: ARM Pragmas2181469
  54172. Node: M32C Pragmas2182096
  54173. Node: MeP Pragmas2183168
  54174. Node: RS/6000 and PowerPC Pragmas2185236
  54175. Node: S/390 Pragmas2185976
  54176. Node: Darwin Pragmas2186542
  54177. Node: Solaris Pragmas2187595
  54178. Node: Symbol-Renaming Pragmas2188759
  54179. Node: Structure-Layout Pragmas2190394
  54180. Node: Weak Pragmas2192674
  54181. Node: Diagnostic Pragmas2193409
  54182. Node: Visibility Pragmas2197600
  54183. Node: Push/Pop Macro Pragmas2198285
  54184. Node: Function Specific Option Pragmas2199258
  54185. Node: Loop-Specific Pragmas2201224
  54186. Node: Unnamed Fields2202824
  54187. Node: Thread-Local2205021
  54188. Node: C99 Thread-Local Edits2207127
  54189. Node: C++98 Thread-Local Edits2209125
  54190. Node: Binary constants2212570
  54191. Node: C++ Extensions2213241
  54192. Node: C++ Volatiles2214871
  54193. Node: Restricted Pointers2217219
  54194. Node: Vague Linkage2218810
  54195. Node: C++ Interface2222433
  54196. Ref: C++ Interface-Footnote-12226230
  54197. Node: Template Instantiation2226368
  54198. Node: Bound member functions2233851
  54199. Node: C++ Attributes2235383
  54200. Node: Function Multiversioning2239455
  54201. Node: Type Traits2241262
  54202. Node: C++ Concepts2248212
  54203. Node: Deprecated Features2249718
  54204. Node: Backwards Compatibility2251543
  54205. Node: Objective-C2252615
  54206. Node: GNU Objective-C runtime API2253222
  54207. Node: Modern GNU Objective-C runtime API2254229
  54208. Node: Traditional GNU Objective-C runtime API2256665
  54209. Node: Executing code before main2257392
  54210. Node: What you can and what you cannot do in +load2260136
  54211. Node: Type encoding2262506
  54212. Node: Legacy type encoding2267647
  54213. Node: @encode2268737
  54214. Node: Method signatures2269282
  54215. Node: Garbage Collection2271274
  54216. Node: Constant string objects2273964
  54217. Node: compatibility_alias2276473
  54218. Node: Exceptions2277198
  54219. Node: Synchronization2279908
  54220. Node: Fast enumeration2281092
  54221. Node: Using fast enumeration2281404
  54222. Node: c99-like fast enumeration syntax2282615
  54223. Node: Fast enumeration details2283318
  54224. Node: Fast enumeration protocol2285658
  54225. Node: Messaging with the GNU Objective-C runtime2288810
  54226. Node: Dynamically registering methods2290182
  54227. Node: Forwarding hook2291873
  54228. Node: Compatibility2294913
  54229. Node: Gcov2301469
  54230. Node: Gcov Intro2302004
  54231. Node: Invoking Gcov2304722
  54232. Node: Gcov and Optimization2327557
  54233. Node: Gcov Data Files2331300
  54234. Node: Cross-profiling2332709
  54235. Node: Gcov-tool2334563
  54236. Node: Gcov-tool Intro2334988
  54237. Node: Invoking Gcov-tool2336958
  54238. Node: Gcov-dump2339536
  54239. Node: Gcov-dump Intro2339858
  54240. Node: Invoking Gcov-dump2340125
  54241. Node: Trouble2340726
  54242. Node: Actual Bugs2342144
  54243. Node: Interoperation2342591
  54244. Node: Incompatibilities2349482
  54245. Node: Fixed Headers2357634
  54246. Node: Standard Libraries2359292
  54247. Node: Disappointments2360664
  54248. Node: C++ Misunderstandings2365023
  54249. Node: Static Definitions2365834
  54250. Node: Name lookup2366887
  54251. Ref: Name lookup-Footnote-12371668
  54252. Node: Temporaries2371857
  54253. Node: Copy Assignment2373833
  54254. Node: Non-bugs2375640
  54255. Node: Warnings and Errors2386146
  54256. Node: Bugs2387908
  54257. Node: Bug Criteria2388375
  54258. Node: Bug Reporting2390585
  54259. Node: Service2390803
  54260. Node: Contributing2391623
  54261. Node: Funding2392363
  54262. Node: GNU Project2394853
  54263. Node: Copying2395499
  54264. Node: GNU Free Documentation License2433008
  54265. Node: Contributors2458126
  54266. Node: Option Index2499099
  54267. Node: Keyword Index2762359
  54268. 
  54269. End Tag Table