gcc.info 2.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350
  1. This is gcc.info, produced by makeinfo version 6.7 from gcc.texi.
  2. Copyright (C) 1988-2018 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-2018 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, Up: (dir)
  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 RISC-V Embedded GCC\x2C 64-bit) version
  46. 8.3.0. The internals of the GNU compilers, including how to port them
  47. to new targets and some information about how to write front ends for
  48. new 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, 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 Pascal,
  97. Mercury, and COBOL. To use these, they must be built together with GCC
  98. proper.
  99. Most of the compilers for languages other than C have their own names.
  100. The C++ compiler is G++, the Ada compiler is GNAT, and so on. When we
  101. talk about compiling one of those languages, we might refer to that
  102. compiler by its own name, or as GCC. Either is correct.
  103. Historically, compilers for many languages, including C++ and Fortran,
  104. have been implemented as "preprocessors" which emit another high level
  105. language such as C. None of the compilers included in GCC are
  106. implemented this way; they all generate machine code directly. This
  107. sort of preprocessor should not be confused with the "C preprocessor",
  108. which is an integral feature of the C, C++, Objective-C and
  109. Objective-C++ languages.
  110. 
  111. File: gcc.info, Node: Standards, Next: Invoking GCC, Prev: G++ and GCC, Up: Top
  112. 2 Language Standards Supported by GCC
  113. *************************************
  114. For each language compiled by GCC for which there is a standard, GCC
  115. attempts to follow one or more versions of that standard, possibly with
  116. some exceptions, and possibly with some extensions.
  117. 2.1 C Language
  118. ==============
  119. The original ANSI C standard (X3.159-1989) was ratified in 1989 and
  120. published in 1990. This standard was ratified as an ISO standard
  121. (ISO/IEC 9899:1990) later in 1990. There were no technical differences
  122. between these publications, although the sections of the ANSI standard
  123. were renumbered and became clauses in the ISO standard. The ANSI
  124. standard, but not the ISO standard, also came with a Rationale document.
  125. This standard, in both its forms, is commonly known as "C89", or
  126. occasionally as "C90", from the dates of ratification. To select this
  127. standard in GCC, use one of the options '-ansi', '-std=c90' or
  128. '-std=iso9899:1990'; to obtain all the diagnostics required by the
  129. standard, you should also specify '-pedantic' (or '-pedantic-errors' if
  130. you want them to be errors rather than warnings). *Note Options
  131. Controlling C Dialect: C Dialect Options.
  132. Errors in the 1990 ISO C standard were corrected in two Technical
  133. Corrigenda published in 1994 and 1996. GCC does not support the
  134. uncorrected version.
  135. An amendment to the 1990 standard was published in 1995. This
  136. amendment added digraphs and '__STDC_VERSION__' to the language, but
  137. otherwise concerned the library. This amendment is commonly known as
  138. "AMD1"; the amended standard is sometimes known as "C94" or "C95". To
  139. select this standard in GCC, use the option '-std=iso9899:199409' (with,
  140. as for other standard versions, '-pedantic' to receive all required
  141. diagnostics).
  142. A new edition of the ISO C standard was published in 1999 as ISO/IEC
  143. 9899:1999, and is commonly known as "C99". (While in development,
  144. drafts of this standard version were referred to as "C9X".) GCC has
  145. substantially complete support for this standard version; see
  146. <http://gcc.gnu.org/c99status.html> for details. To select this
  147. standard, use '-std=c99' or '-std=iso9899:1999'.
  148. Errors in the 1999 ISO C standard were corrected in three Technical
  149. Corrigenda published in 2001, 2004 and 2007. GCC does not support the
  150. uncorrected version.
  151. A fourth version of the C standard, known as "C11", was published in
  152. 2011 as ISO/IEC 9899:2011. (While in development, drafts of this
  153. standard version were referred to as "C1X".) GCC has substantially
  154. complete support for this standard, enabled with '-std=c11' or
  155. '-std=iso9899:2011'. A version with corrections integrated is known as
  156. "C17" and is supported with '-std=c17' or '-std=iso9899:2017'; the
  157. corrections are also applied with '-std=c11', and the only difference
  158. between the options is the value of '__STDC_VERSION__'.
  159. By default, GCC provides some extensions to the C language that, on
  160. rare occasions conflict with the C standard. *Note Extensions to the C
  161. Language Family: C Extensions. Some features that are part of the C99
  162. standard are accepted as extensions in C90 mode, and some features that
  163. are part of the C11 standard are accepted as extensions in C90 and C99
  164. modes. Use of the '-std' options listed above disables these extensions
  165. where they conflict with the C standard version selected. You may also
  166. select an extended version of the C language explicitly with
  167. '-std=gnu90' (for C90 with GNU extensions), '-std=gnu99' (for C99 with
  168. GNU extensions) or '-std=gnu11' (for C11 with GNU extensions).
  169. The default, if no C language dialect options are given, is
  170. '-std=gnu11'.
  171. The ISO C standard defines (in clause 4) two classes of conforming
  172. implementation. A "conforming hosted implementation" supports the whole
  173. standard including all the library facilities; a "conforming
  174. freestanding implementation" is only required to provide certain library
  175. facilities: those in '<float.h>', '<limits.h>', '<stdarg.h>', and
  176. '<stddef.h>'; since AMD1, also those in '<iso646.h>'; since C99, also
  177. those in '<stdbool.h>' and '<stdint.h>'; and since C11, also those in
  178. '<stdalign.h>' and '<stdnoreturn.h>'. In addition, complex types, added
  179. in C99, are not required for freestanding implementations.
  180. The standard also defines two environments for programs, a
  181. "freestanding environment", required of all implementations and which
  182. may not have library facilities beyond those required of freestanding
  183. implementations, where the handling of program startup and termination
  184. are implementation-defined; and a "hosted environment", which is not
  185. required, in which all the library facilities are provided and startup
  186. is through a function 'int main (void)' or 'int main (int, char *[])'.
  187. An OS kernel is an example of a program running in a freestanding
  188. environment; a program using the facilities of an operating system is an
  189. example of a program running in a hosted environment.
  190. GCC aims towards being usable as a conforming freestanding
  191. implementation, or as the compiler for a conforming hosted
  192. implementation. By default, it acts as the compiler for a hosted
  193. implementation, defining '__STDC_HOSTED__' as '1' and presuming that
  194. when the names of ISO C functions are used, they have the semantics
  195. defined in the standard. To make it act as a conforming freestanding
  196. implementation for a freestanding environment, use the option
  197. '-ffreestanding'; it then defines '__STDC_HOSTED__' to '0' and does not
  198. make assumptions about the meanings of function names from the standard
  199. library, with exceptions noted below. To build an OS kernel, you may
  200. well still need to make your own arrangements for linking and startup.
  201. *Note Options Controlling C Dialect: C Dialect Options.
  202. GCC does not provide the library facilities required only of hosted
  203. implementations, nor yet all the facilities required by C99 of
  204. freestanding implementations on all platforms. To use the facilities of
  205. a hosted environment, you need to find them elsewhere (for example, in
  206. the GNU C library). *Note Standard Libraries: Standard Libraries.
  207. Most of the compiler support routines used by GCC are present in
  208. 'libgcc', but there are a few exceptions. GCC requires the freestanding
  209. environment provide 'memcpy', 'memmove', 'memset' and 'memcmp'.
  210. Finally, if '__builtin_trap' is used, and the target does not implement
  211. the 'trap' pattern, then GCC emits a call to 'abort'.
  212. For references to Technical Corrigenda, Rationale documents and
  213. information concerning the history of C that is available online, see
  214. <http://gcc.gnu.org/readings.html>
  215. 2.2 C++ Language
  216. ================
  217. GCC supports the original ISO C++ standard published in 1998, and the
  218. 2011 and 2014 revisions.
  219. The original ISO C++ standard was published as the ISO standard
  220. (ISO/IEC 14882:1998) and amended by a Technical Corrigenda published in
  221. 2003 (ISO/IEC 14882:2003). These standards are referred to as C++98 and
  222. C++03, respectively. GCC implements the majority of C++98 ('export' is
  223. a notable exception) and most of the changes in C++03. To select this
  224. standard in GCC, use one of the options '-ansi', '-std=c++98', or
  225. '-std=c++03'; to obtain all the diagnostics required by the standard,
  226. you should also specify '-pedantic' (or '-pedantic-errors' if you want
  227. them to be errors rather than warnings).
  228. A revised ISO C++ standard was published in 2011 as ISO/IEC 14882:2011,
  229. and is referred to as C++11; before its publication it was commonly
  230. referred to as C++0x. C++11 contains several changes to the C++
  231. language, all of which have been implemented in GCC. For details see
  232. <https://gcc.gnu.org/projects/cxx-status.html#cxx11>. To select this
  233. standard in GCC, use the option '-std=c++11'.
  234. Another revised ISO C++ standard was published in 2014 as ISO/IEC
  235. 14882:2014, and is referred to as C++14; before its publication it was
  236. sometimes referred to as C++1y. C++14 contains several further changes
  237. to the C++ language, all of which have been implemented in GCC. For
  238. details see <https://gcc.gnu.org/projects/cxx-status.html#cxx14>. To
  239. select this standard in GCC, use the option '-std=c++14'.
  240. The C++ language was further revised in 2017 and ISO/IEC 14882:2017 was
  241. published. This is referred to as C++17, and before publication was
  242. often referred to as C++1z. GCC supports all the changes in the new
  243. specification. For further details see
  244. <https://gcc.gnu.org/projects/cxx-status.html#cxx1z>. Use the option
  245. '-std=c++17' to select this variant of C++.
  246. More information about the C++ standards is available on the ISO C++
  247. committee's web site at <http://www.open-std.org/jtc1/sc22/wg21/>.
  248. To obtain all the diagnostics required by any of the standard versions
  249. described above you should specify '-pedantic' or '-pedantic-errors',
  250. otherwise GCC will allow some non-ISO C++ features as extensions. *Note
  251. Warning Options::.
  252. By default, GCC also provides some additional extensions to the C++
  253. language that on rare occasions conflict with the C++ standard. *Note
  254. Options Controlling C++ Dialect: C++ Dialect Options. Use of the '-std'
  255. options listed above disables these extensions where they they conflict
  256. with the C++ standard version selected. You may also select an extended
  257. version of the C++ language explicitly with '-std=gnu++98' (for C++98
  258. with GNU extensions), or '-std=gnu++11' (for C++11 with GNU extensions),
  259. or '-std=gnu++14' (for C++14 with GNU extensions), or '-std=gnu++17'
  260. (for C++17 with GNU extensions).
  261. The default, if no C++ language dialect options are given, is
  262. '-std=gnu++14'.
  263. 2.3 Objective-C and Objective-C++ Languages
  264. ===========================================
  265. GCC supports "traditional" Objective-C (also known as "Objective-C 1.0")
  266. and contains support for the Objective-C exception and synchronization
  267. syntax. It has also support for a number of "Objective-C 2.0" language
  268. extensions, including properties, fast enumeration (only for
  269. Objective-C), method attributes and the @optional and @required keywords
  270. in protocols. GCC supports Objective-C++ and features available in
  271. Objective-C are also available in Objective-C++.
  272. GCC by default uses the GNU Objective-C runtime library, which is part
  273. of GCC and is not the same as the Apple/NeXT Objective-C runtime library
  274. used on Apple systems. There are a number of differences documented in
  275. this manual. The options '-fgnu-runtime' and '-fnext-runtime' allow you
  276. to switch between producing output that works with the GNU Objective-C
  277. runtime library and output that works with the Apple/NeXT Objective-C
  278. runtime library.
  279. There is no formal written standard for Objective-C or Objective-C++.
  280. The authoritative manual on traditional Objective-C (1.0) is
  281. "Object-Oriented Programming and the Objective-C Language":
  282. <http://www.gnustep.org/resources/documentation/ObjectivCBook.pdf> is
  283. the original NeXTstep document.
  284. The Objective-C exception and synchronization syntax (that is, the
  285. keywords '@try', '@throw', '@catch', '@finally' and '@synchronized') is
  286. supported by GCC and is enabled with the option '-fobjc-exceptions'.
  287. The syntax is briefly documented in this manual and in the Objective-C
  288. 2.0 manuals from Apple.
  289. The Objective-C 2.0 language extensions and features are automatically
  290. enabled; they include properties (via the '@property', '@synthesize' and
  291. '@dynamic keywords'), fast enumeration (not available in Objective-C++),
  292. attributes for methods (such as 'deprecated', 'noreturn', 'sentinel',
  293. 'format'), the 'unused' attribute for method arguments, the '@package'
  294. keyword for instance variables and the '@optional' and '@required'
  295. keywords in protocols. You can disable all these Objective-C 2.0
  296. language extensions with the option '-fobjc-std=objc1', which causes the
  297. compiler to recognize the same Objective-C language syntax recognized by
  298. GCC 4.0, and to produce an error if one of the new features is used.
  299. GCC has currently no support for non-fragile instance variables.
  300. The authoritative manual on Objective-C 2.0 is available from Apple:
  301. *
  302. <https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html>
  303. For more information concerning the history of Objective-C that is
  304. available online, see <http://gcc.gnu.org/readings.html>
  305. 2.4 Go Language
  306. ===============
  307. As of the GCC 4.7.1 release, GCC supports the Go 1 language standard,
  308. described at <https://golang.org/doc/go1>.
  309. 2.5 HSA Intermediate Language (HSAIL)
  310. =====================================
  311. GCC can compile the binary representation (BRIG) of the HSAIL text
  312. format as described in HSA Programmer's Reference Manual version 1.0.1.
  313. This capability is typically utilized to implement the HSA runtime API's
  314. HSAIL finalization extension for a gcc supported processor. HSA
  315. standards are freely available at
  316. <http://www.hsafoundation.com/standards/>.
  317. 2.6 References for Other Languages
  318. ==================================
  319. *Note GNAT Reference Manual: (gnat_rm)Top, for information on standard
  320. conformance and compatibility of the Ada compiler.
  321. *Note Standards: (gfortran)Standards, for details of standards
  322. supported by GNU Fortran.
  323. 
  324. File: gcc.info, Node: Invoking GCC, Next: C Implementation, Prev: Standards, Up: Top
  325. 3 GCC Command Options
  326. *********************
  327. When you invoke GCC, it normally does preprocessing, compilation,
  328. assembly and linking. The "overall options" allow you to stop this
  329. process at an intermediate stage. For example, the '-c' option says not
  330. to run the linker. Then the output consists of object files output by
  331. the assembler. *Note Options Controlling the Kind of Output: Overall
  332. Options.
  333. Other options are passed on to one or more stages of processing. Some
  334. options control the preprocessor and others the compiler itself. Yet
  335. other options control the assembler and linker; most of these are not
  336. documented here, since you rarely need to use any of them.
  337. Most of the command-line options that you can use with GCC are useful
  338. for C programs; when an option is only useful with another language
  339. (usually C++), the explanation says so explicitly. If the description
  340. for a particular option does not mention a source language, you can use
  341. that option with all supported languages.
  342. The usual way to run GCC is to run the executable called 'gcc', or
  343. 'MACHINE-gcc' when cross-compiling, or 'MACHINE-gcc-VERSION' to run a
  344. specific version of GCC. When you compile C++ programs, you should
  345. invoke GCC as 'g++' instead. *Note Compiling C++ Programs: Invoking
  346. G++, for information about the differences in behavior between 'gcc' and
  347. 'g++' when compiling C++ programs.
  348. The 'gcc' program accepts options and file names as operands. Many
  349. options have multi-letter names; therefore multiple single-letter
  350. options may _not_ be grouped: '-dv' is very different from '-d -v'.
  351. You can mix options and other arguments. For the most part, the order
  352. you use doesn't matter. Order does matter when you use several options
  353. of the same kind; for example, if you specify '-L' more than once, the
  354. directories are searched in the order specified. Also, the placement of
  355. the '-l' option is significant.
  356. Many options have long names starting with '-f' or with '-W'--for
  357. example, '-fmove-loop-invariants', '-Wformat' and so on. Most of these
  358. have both positive and negative forms; the negative form of '-ffoo' is
  359. '-fno-foo'. This manual documents only one of these two forms,
  360. whichever one is not the default.
  361. *Note Option Index::, for an index to GCC's options.
  362. * Menu:
  363. * Option Summary:: Brief list of all options, without explanations.
  364. * Overall Options:: Controlling the kind of output:
  365. an executable, object files, assembler files,
  366. or preprocessed source.
  367. * Invoking G++:: Compiling C++ programs.
  368. * C Dialect Options:: Controlling the variant of C language compiled.
  369. * C++ Dialect Options:: Variations on C++.
  370. * Objective-C and Objective-C++ Dialect Options:: Variations on Objective-C
  371. and Objective-C++.
  372. * Diagnostic Message Formatting Options:: Controlling how diagnostics should
  373. be formatted.
  374. * Warning Options:: How picky should the compiler be?
  375. * Debugging Options:: Producing debuggable code.
  376. * Optimize Options:: How much optimization?
  377. * Instrumentation Options:: Enabling profiling and extra run-time error checking.
  378. * Preprocessor Options:: Controlling header files and macro definitions.
  379. Also, getting dependency information for Make.
  380. * Assembler Options:: Passing options to the assembler.
  381. * Link Options:: Specifying libraries and so on.
  382. * Directory Options:: Where to find header files and libraries.
  383. Where to find the compiler executable files.
  384. * Code Gen Options:: Specifying conventions for function calls, data layout
  385. and register usage.
  386. * Developer Options:: Printing GCC configuration info, statistics, and
  387. debugging dumps.
  388. * Submodel Options:: Target-specific options, such as compiling for a
  389. specific processor variant.
  390. * Spec Files:: How to pass switches to sub-processes.
  391. * Environment Variables:: Env vars that affect GCC.
  392. * Precompiled Headers:: Compiling a header once, and using it many times.
  393. 
  394. File: gcc.info, Node: Option Summary, Next: Overall Options, Up: Invoking GCC
  395. 3.1 Option Summary
  396. ==================
  397. Here is a summary of all the options, grouped by type. Explanations are
  398. in the following sections.
  399. _Overall Options_
  400. *Note Options Controlling the Kind of Output: Overall Options.
  401. -c -S -E -o FILE -x LANGUAGE
  402. -v -### --help[=CLASS[,...]] --target-help --version
  403. -pass-exit-codes -pipe -specs=FILE -wrapper
  404. @FILE -ffile-prefix-map=OLD=NEW
  405. -fplugin=FILE -fplugin-arg-NAME=ARG
  406. -fdump-ada-spec[-slim] -fada-spec-parent=UNIT -fdump-go-spec=FILE
  407. _C Language Options_
  408. *Note Options Controlling C Dialect: C Dialect Options.
  409. -ansi -std=STANDARD -fgnu89-inline
  410. -fpermitted-flt-eval-methods=STANDARD
  411. -aux-info FILENAME -fallow-parameterless-variadic-functions
  412. -fno-asm -fno-builtin -fno-builtin-FUNCTION -fgimple
  413. -fhosted -ffreestanding -fopenacc -fopenmp -fopenmp-simd
  414. -fms-extensions -fplan9-extensions -fsso-struct=ENDIANNESS
  415. -fallow-single-precision -fcond-mismatch -flax-vector-conversions
  416. -fsigned-bitfields -fsigned-char
  417. -funsigned-bitfields -funsigned-char
  418. _C++ Language Options_
  419. *Note Options Controlling C++ Dialect: C++ Dialect Options.
  420. -fabi-version=N -fno-access-control
  421. -faligned-new=N -fargs-in-order=N -fcheck-new
  422. -fconstexpr-depth=N -fconstexpr-loop-limit=N
  423. -ffriend-injection
  424. -fno-elide-constructors
  425. -fno-enforce-eh-specs
  426. -ffor-scope -fno-for-scope -fno-gnu-keywords
  427. -fno-implicit-templates
  428. -fno-implicit-inline-templates
  429. -fno-implement-inlines -fms-extensions
  430. -fnew-inheriting-ctors
  431. -fnew-ttp-matching
  432. -fno-nonansi-builtins -fnothrow-opt -fno-operator-names
  433. -fno-optional-diags -fpermissive
  434. -fno-pretty-templates
  435. -frepo -fno-rtti -fsized-deallocation
  436. -ftemplate-backtrace-limit=N
  437. -ftemplate-depth=N
  438. -fno-threadsafe-statics -fuse-cxa-atexit
  439. -fno-weak -nostdinc++
  440. -fvisibility-inlines-hidden
  441. -fvisibility-ms-compat
  442. -fext-numeric-literals
  443. -Wabi=N -Wabi-tag -Wconversion-null -Wctor-dtor-privacy
  444. -Wdelete-non-virtual-dtor -Wliteral-suffix -Wmultiple-inheritance
  445. -Wnamespaces -Wnarrowing
  446. -Wnoexcept -Wnoexcept-type -Wclass-memaccess
  447. -Wnon-virtual-dtor -Wreorder -Wregister
  448. -Weffc++ -Wstrict-null-sentinel -Wtemplates
  449. -Wno-non-template-friend -Wold-style-cast
  450. -Woverloaded-virtual -Wno-pmf-conversions
  451. -Wsign-promo -Wvirtual-inheritance
  452. _Objective-C and Objective-C++ Language Options_
  453. *Note Options Controlling Objective-C and Objective-C++ Dialects:
  454. Objective-C and Objective-C++ Dialect Options.
  455. -fconstant-string-class=CLASS-NAME
  456. -fgnu-runtime -fnext-runtime
  457. -fno-nil-receivers
  458. -fobjc-abi-version=N
  459. -fobjc-call-cxx-cdtors
  460. -fobjc-direct-dispatch
  461. -fobjc-exceptions
  462. -fobjc-gc
  463. -fobjc-nilcheck
  464. -fobjc-std=objc1
  465. -fno-local-ivars
  466. -fivar-visibility=[public|protected|private|package]
  467. -freplace-objc-classes
  468. -fzero-link
  469. -gen-decls
  470. -Wassign-intercept
  471. -Wno-protocol -Wselector
  472. -Wstrict-selector-match
  473. -Wundeclared-selector
  474. _Diagnostic Message Formatting Options_
  475. *Note Options to Control Diagnostic Messages Formatting: Diagnostic
  476. Message Formatting Options.
  477. -fmessage-length=N
  478. -fdiagnostics-show-location=[once|every-line]
  479. -fdiagnostics-color=[auto|never|always]
  480. -fno-diagnostics-show-option -fno-diagnostics-show-caret
  481. -fdiagnostics-parseable-fixits -fdiagnostics-generate-patch
  482. -fdiagnostics-show-template-tree -fno-elide-type
  483. -fno-show-column
  484. _Warning Options_
  485. *Note Options to Request or Suppress Warnings: Warning Options.
  486. -fsyntax-only -fmax-errors=N -Wpedantic
  487. -pedantic-errors
  488. -w -Wextra -Wall -Waddress -Waggregate-return -Waligned-new
  489. -Walloc-zero -Walloc-size-larger-than=N
  490. -Walloca -Walloca-larger-than=N
  491. -Wno-aggressive-loop-optimizations -Warray-bounds -Warray-bounds=N
  492. -Wno-attributes -Wbool-compare -Wbool-operation
  493. -Wno-builtin-declaration-mismatch
  494. -Wno-builtin-macro-redefined -Wc90-c99-compat -Wc99-c11-compat
  495. -Wc++-compat -Wc++11-compat -Wc++14-compat
  496. -Wcast-align -Wcast-align=strict -Wcast-function-type -Wcast-qual
  497. -Wchar-subscripts -Wchkp -Wcatch-value -Wcatch-value=N
  498. -Wclobbered -Wcomment -Wconditionally-supported
  499. -Wconversion -Wcoverage-mismatch -Wno-cpp -Wdangling-else -Wdate-time
  500. -Wdelete-incomplete
  501. -Wno-deprecated -Wno-deprecated-declarations -Wno-designated-init
  502. -Wdisabled-optimization
  503. -Wno-discarded-qualifiers -Wno-discarded-array-qualifiers
  504. -Wno-div-by-zero -Wdouble-promotion
  505. -Wduplicated-branches -Wduplicated-cond
  506. -Wempty-body -Wenum-compare -Wno-endif-labels -Wexpansion-to-defined
  507. -Werror -Werror=* -Wextra-semi -Wfatal-errors
  508. -Wfloat-equal -Wformat -Wformat=2
  509. -Wno-format-contains-nul -Wno-format-extra-args
  510. -Wformat-nonliteral -Wformat-overflow=N
  511. -Wformat-security -Wformat-signedness -Wformat-truncation=N
  512. -Wformat-y2k -Wframe-address
  513. -Wframe-larger-than=LEN -Wno-free-nonheap-object -Wjump-misses-init
  514. -Wif-not-aligned
  515. -Wignored-qualifiers -Wignored-attributes -Wincompatible-pointer-types
  516. -Wimplicit -Wimplicit-fallthrough -Wimplicit-fallthrough=N
  517. -Wimplicit-function-declaration -Wimplicit-int
  518. -Winit-self -Winline -Wno-int-conversion -Wint-in-bool-context
  519. -Wno-int-to-pointer-cast -Winvalid-memory-model -Wno-invalid-offsetof
  520. -Winvalid-pch -Wlarger-than=LEN
  521. -Wlogical-op -Wlogical-not-parentheses -Wlong-long
  522. -Wmain -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args
  523. -Wmisleading-indentation -Wmissing-attributes -Wmissing-braces
  524. -Wmissing-field-initializers -Wmissing-include-dirs
  525. -Wno-multichar -Wmultistatement-macros -Wnonnull -Wnonnull-compare
  526. -Wnormalized=[none|id|nfc|nfkc]
  527. -Wnull-dereference -Wodr -Wno-overflow -Wopenmp-simd
  528. -Woverride-init-side-effects -Woverlength-strings
  529. -Wpacked -Wpacked-bitfield-compat -Wpacked-not-aligned -Wpadded
  530. -Wparentheses -Wno-pedantic-ms-format
  531. -Wplacement-new -Wplacement-new=N
  532. -Wpointer-arith -Wpointer-compare -Wno-pointer-to-int-cast
  533. -Wno-pragmas -Wredundant-decls -Wrestrict -Wno-return-local-addr
  534. -Wreturn-type -Wsequence-point -Wshadow -Wno-shadow-ivar
  535. -Wshadow=global, -Wshadow=local, -Wshadow=compatible-local
  536. -Wshift-overflow -Wshift-overflow=N
  537. -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value
  538. -Wsign-compare -Wsign-conversion -Wfloat-conversion
  539. -Wno-scalar-storage-order -Wsizeof-pointer-div
  540. -Wsizeof-pointer-memaccess -Wsizeof-array-argument
  541. -Wstack-protector -Wstack-usage=LEN -Wstrict-aliasing
  542. -Wstrict-aliasing=n -Wstrict-overflow -Wstrict-overflow=N
  543. -Wstringop-overflow=N -Wstringop-truncation
  544. -Wsuggest-attribute=[pure|const|noreturn|format|malloc]
  545. -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override
  546. -Wmissing-format-attribute -Wsubobject-linkage
  547. -Wswitch -Wswitch-bool -Wswitch-default -Wswitch-enum
  548. -Wswitch-unreachable -Wsync-nand
  549. -Wsystem-headers -Wtautological-compare -Wtrampolines -Wtrigraphs
  550. -Wtype-limits -Wundef
  551. -Wuninitialized -Wunknown-pragmas
  552. -Wunsuffixed-float-constants -Wunused -Wunused-function
  553. -Wunused-label -Wunused-local-typedefs -Wunused-macros
  554. -Wunused-parameter -Wno-unused-result
  555. -Wunused-value -Wunused-variable
  556. -Wunused-const-variable -Wunused-const-variable=N
  557. -Wunused-but-set-parameter -Wunused-but-set-variable
  558. -Wuseless-cast -Wvariadic-macros -Wvector-operation-performance
  559. -Wvla -Wvla-larger-than=N -Wvolatile-register-var -Wwrite-strings
  560. -Wzero-as-null-pointer-constant -Whsa
  561. _C and Objective-C-only Warning Options_
  562. -Wbad-function-cast -Wmissing-declarations
  563. -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
  564. -Wold-style-declaration -Wold-style-definition
  565. -Wstrict-prototypes -Wtraditional -Wtraditional-conversion
  566. -Wdeclaration-after-statement -Wpointer-sign
  567. _Debugging Options_
  568. *Note Options for Debugging Your Program: Debugging Options.
  569. -g -gLEVEL -gdwarf -gdwarf-VERSION
  570. -ggdb -grecord-gcc-switches -gno-record-gcc-switches
  571. -gstabs -gstabs+ -gstrict-dwarf -gno-strict-dwarf
  572. -gas-loc-support -gno-as-loc-support
  573. -gas-locview-support -gno-as-locview-support
  574. -gcolumn-info -gno-column-info
  575. -gstatement-frontiers -gno-statement-frontiers
  576. -gvariable-location-views -gno-variable-location-views
  577. -ginternal-reset-location-views -gno-internal-reset-location-views
  578. -ginline-points -gno-inline-points
  579. -gvms -gxcoff -gxcoff+ -gz[=TYPE]
  580. -fdebug-prefix-map=OLD=NEW -fdebug-types-section
  581. -fno-eliminate-unused-debug-types
  582. -femit-struct-debug-baseonly -femit-struct-debug-reduced
  583. -femit-struct-debug-detailed[=SPEC-LIST]
  584. -feliminate-unused-debug-symbols -femit-class-debug-always
  585. -fno-merge-debug-strings -fno-dwarf2-cfi-asm
  586. -fvar-tracking -fvar-tracking-assignments
  587. _Optimization Options_
  588. *Note Options that Control Optimization: Optimize Options.
  589. -faggressive-loop-optimizations -falign-functions[=N]
  590. -falign-jumps[=N]
  591. -falign-labels[=N] -falign-loops[=N]
  592. -fassociative-math -fauto-profile -fauto-profile[=PATH]
  593. -fauto-inc-dec -fbranch-probabilities
  594. -fbranch-target-load-optimize -fbranch-target-load-optimize2
  595. -fbtr-bb-exclusive -fcaller-saves
  596. -fcombine-stack-adjustments -fconserve-stack
  597. -fcompare-elim -fcprop-registers -fcrossjumping
  598. -fcse-follow-jumps -fcse-skip-blocks -fcx-fortran-rules
  599. -fcx-limited-range
  600. -fdata-sections -fdce -fdelayed-branch
  601. -fdelete-null-pointer-checks -fdevirtualize -fdevirtualize-speculatively
  602. -fdevirtualize-at-ltrans -fdse
  603. -fearly-inlining -fipa-sra -fexpensive-optimizations -ffat-lto-objects
  604. -ffast-math -ffinite-math-only -ffloat-store -fexcess-precision=STYLE
  605. -fforward-propagate -ffp-contract=STYLE -ffunction-sections
  606. -fgcse -fgcse-after-reload -fgcse-las -fgcse-lm -fgraphite-identity
  607. -fgcse-sm -fhoist-adjacent-loads -fif-conversion
  608. -fif-conversion2 -findirect-inlining
  609. -finline-functions -finline-functions-called-once -finline-limit=N
  610. -finline-small-functions -fipa-cp -fipa-cp-clone
  611. -fipa-bit-cp -fipa-vrp
  612. -fipa-pta -fipa-profile -fipa-pure-const -fipa-reference -fipa-icf
  613. -fira-algorithm=ALGORITHM
  614. -fira-region=REGION -fira-hoist-pressure
  615. -fira-loop-pressure -fno-ira-share-save-slots
  616. -fno-ira-share-spill-slots
  617. -fisolate-erroneous-paths-dereference -fisolate-erroneous-paths-attribute
  618. -fivopts -fkeep-inline-functions -fkeep-static-functions
  619. -fkeep-static-consts -flimit-function-alignment -flive-range-shrinkage
  620. -floop-block -floop-interchange -floop-strip-mine
  621. -floop-unroll-and-jam -floop-nest-optimize
  622. -floop-parallelize-all -flra-remat -flto -flto-compression-level
  623. -flto-partition=ALG -fmerge-all-constants
  624. -fmerge-constants -fmodulo-sched -fmodulo-sched-allow-regmoves
  625. -fmove-loop-invariants -fno-branch-count-reg
  626. -fno-defer-pop -fno-fp-int-builtin-inexact -fno-function-cse
  627. -fno-guess-branch-probability -fno-inline -fno-math-errno -fno-peephole
  628. -fno-peephole2 -fno-printf-return-value -fno-sched-interblock
  629. -fno-sched-spec -fno-signed-zeros
  630. -fno-toplevel-reorder -fno-trapping-math -fno-zero-initialized-in-bss
  631. -fomit-frame-pointer -foptimize-sibling-calls
  632. -fpartial-inlining -fpeel-loops -fpredictive-commoning
  633. -fprefetch-loop-arrays
  634. -fprofile-correction
  635. -fprofile-use -fprofile-use=PATH -fprofile-values
  636. -fprofile-reorder-functions
  637. -freciprocal-math -free -frename-registers -freorder-blocks
  638. -freorder-blocks-algorithm=ALGORITHM
  639. -freorder-blocks-and-partition -freorder-functions
  640. -frerun-cse-after-loop -freschedule-modulo-scheduled-loops
  641. -frounding-math -fsched2-use-superblocks -fsched-pressure
  642. -fsched-spec-load -fsched-spec-load-dangerous
  643. -fsched-stalled-insns-dep[=N] -fsched-stalled-insns[=N]
  644. -fsched-group-heuristic -fsched-critical-path-heuristic
  645. -fsched-spec-insn-heuristic -fsched-rank-heuristic
  646. -fsched-last-insn-heuristic -fsched-dep-count-heuristic
  647. -fschedule-fusion
  648. -fschedule-insns -fschedule-insns2 -fsection-anchors
  649. -fselective-scheduling -fselective-scheduling2
  650. -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
  651. -fsemantic-interposition -fshrink-wrap -fshrink-wrap-separate
  652. -fsignaling-nans
  653. -fsingle-precision-constant -fsplit-ivs-in-unroller -fsplit-loops
  654. -fsplit-paths
  655. -fsplit-wide-types -fssa-backprop -fssa-phiopt
  656. -fstdarg-opt -fstore-merging -fstrict-aliasing
  657. -fthread-jumps -ftracer -ftree-bit-ccp
  658. -ftree-builtin-call-dce -ftree-ccp -ftree-ch
  659. -ftree-coalesce-vars -ftree-copy-prop -ftree-dce -ftree-dominator-opts
  660. -ftree-dse -ftree-forwprop -ftree-fre -fcode-hoisting
  661. -ftree-loop-if-convert -ftree-loop-im
  662. -ftree-phiprop -ftree-loop-distribution -ftree-loop-distribute-patterns
  663. -ftree-loop-ivcanon -ftree-loop-linear -ftree-loop-optimize
  664. -ftree-loop-vectorize
  665. -ftree-parallelize-loops=N -ftree-pre -ftree-partial-pre -ftree-pta
  666. -ftree-reassoc -ftree-sink -ftree-slsr -ftree-sra
  667. -ftree-switch-conversion -ftree-tail-merge
  668. -ftree-ter -ftree-vectorize -ftree-vrp -funconstrained-commons
  669. -funit-at-a-time -funroll-all-loops -funroll-loops
  670. -funsafe-math-optimizations -funswitch-loops
  671. -fipa-ra -fvariable-expansion-in-unroller -fvect-cost-model -fvpt
  672. -fweb -fwhole-program -fwpa -fuse-linker-plugin
  673. --param NAME=VALUE
  674. -O -O0 -O1 -O2 -O3 -Os -Ofast -Og
  675. _Program Instrumentation Options_
  676. *Note Program Instrumentation Options: Instrumentation Options.
  677. -p -pg -fprofile-arcs --coverage -ftest-coverage
  678. -fprofile-abs-path
  679. -fprofile-dir=PATH -fprofile-generate -fprofile-generate=PATH
  680. -fsanitize=STYLE -fsanitize-recover -fsanitize-recover=STYLE
  681. -fasan-shadow-offset=NUMBER -fsanitize-sections=S1,S2,...
  682. -fsanitize-undefined-trap-on-error -fbounds-check
  683. -fcheck-pointer-bounds -fchkp-check-incomplete-type
  684. -fchkp-first-field-has-own-bounds -fchkp-narrow-bounds
  685. -fchkp-narrow-to-innermost-array -fchkp-optimize
  686. -fchkp-use-fast-string-functions -fchkp-use-nochk-string-functions
  687. -fchkp-use-static-bounds -fchkp-use-static-const-bounds
  688. -fchkp-treat-zero-dynamic-size-as-infinite -fchkp-check-read
  689. -fchkp-check-read -fchkp-check-write -fchkp-store-bounds
  690. -fchkp-instrument-calls -fchkp-instrument-marked-only
  691. -fchkp-use-wrappers -fchkp-flexible-struct-trailing-arrays
  692. -fcf-protection=[full|branch|return|none]
  693. -fstack-protector -fstack-protector-all -fstack-protector-strong
  694. -fstack-protector-explicit -fstack-check
  695. -fstack-limit-register=REG -fstack-limit-symbol=SYM
  696. -fno-stack-limit -fsplit-stack
  697. -fvtable-verify=[std|preinit|none]
  698. -fvtv-counts -fvtv-debug
  699. -finstrument-functions
  700. -finstrument-functions-exclude-function-list=SYM,SYM,...
  701. -finstrument-functions-exclude-file-list=FILE,FILE,...
  702. _Preprocessor Options_
  703. *Note Options Controlling the Preprocessor: Preprocessor Options.
  704. -AQUESTION=ANSWER
  705. -A-QUESTION[=ANSWER]
  706. -C -CC -DMACRO[=DEFN]
  707. -dD -dI -dM -dN -dU
  708. -fdebug-cpp -fdirectives-only -fdollars-in-identifiers
  709. -fexec-charset=CHARSET -fextended-identifiers
  710. -finput-charset=CHARSET -fmacro-prefix-map=OLD=NEW
  711. -fno-canonical-system-headers -fpch-deps -fpch-preprocess
  712. -fpreprocessed -ftabstop=WIDTH -ftrack-macro-expansion
  713. -fwide-exec-charset=CHARSET -fworking-directory
  714. -H -imacros FILE -include FILE
  715. -M -MD -MF -MG -MM -MMD -MP -MQ -MT
  716. -no-integrated-cpp -P -pthread -remap
  717. -traditional -traditional-cpp -trigraphs
  718. -UMACRO -undef
  719. -Wp,OPTION -Xpreprocessor OPTION
  720. _Assembler Options_
  721. *Note Passing Options to the Assembler: Assembler Options.
  722. -Wa,OPTION -Xassembler OPTION
  723. _Linker Options_
  724. *Note Options for Linking: Link Options.
  725. OBJECT-FILE-NAME -fuse-ld=LINKER -lLIBRARY
  726. -nostartfiles -nodefaultlibs -nostdlib -pie -pthread -rdynamic
  727. -s -static -static-pie -static-libgcc -static-libstdc++
  728. -static-libasan -static-libtsan -static-liblsan -static-libubsan
  729. -static-libmpx -static-libmpxwrappers
  730. -shared -shared-libgcc -symbolic
  731. -T SCRIPT -Wl,OPTION -Xlinker OPTION
  732. -u SYMBOL -z KEYWORD
  733. _Directory Options_
  734. *Note Options for Directory Search: Directory Options.
  735. -BPREFIX -IDIR -I-
  736. -idirafter DIR
  737. -imacros FILE -imultilib DIR
  738. -iplugindir=DIR -iprefix FILE
  739. -iquote DIR -isysroot DIR -isystem DIR
  740. -iwithprefix DIR -iwithprefixbefore DIR
  741. -LDIR -no-canonical-prefixes --no-sysroot-suffix
  742. -nostdinc -nostdinc++ --sysroot=DIR
  743. _Code Generation Options_
  744. *Note Options for Code Generation Conventions: Code Gen Options.
  745. -fcall-saved-REG -fcall-used-REG
  746. -ffixed-REG -fexceptions
  747. -fnon-call-exceptions -fdelete-dead-exceptions -funwind-tables
  748. -fasynchronous-unwind-tables
  749. -fno-gnu-unique
  750. -finhibit-size-directive -fno-common -fno-ident
  751. -fpcc-struct-return -fpic -fPIC -fpie -fPIE -fno-plt
  752. -fno-jump-tables
  753. -frecord-gcc-switches
  754. -freg-struct-return -fshort-enums -fshort-wchar
  755. -fverbose-asm -fpack-struct[=N]
  756. -fleading-underscore -ftls-model=MODEL
  757. -fstack-reuse=REUSE_LEVEL
  758. -ftrampolines -ftrapv -fwrapv
  759. -fvisibility=[default|internal|hidden|protected]
  760. -fstrict-volatile-bitfields -fsync-libcalls
  761. _Developer Options_
  762. *Note GCC Developer Options: Developer Options.
  763. -dLETTERS -dumpspecs -dumpmachine -dumpversion
  764. -dumpfullversion -fchecking -fchecking=N -fdbg-cnt-list
  765. -fdbg-cnt=COUNTER-VALUE-LIST
  766. -fdisable-ipa-PASS_NAME
  767. -fdisable-rtl-PASS_NAME
  768. -fdisable-rtl-PASS-NAME=RANGE-LIST
  769. -fdisable-tree-PASS_NAME
  770. -fdisable-tree-PASS-NAME=RANGE-LIST
  771. -fdump-noaddr -fdump-unnumbered -fdump-unnumbered-links
  772. -fdump-class-hierarchy[-N]
  773. -fdump-final-insns[=FILE]
  774. -fdump-ipa-all -fdump-ipa-cgraph -fdump-ipa-inline
  775. -fdump-lang-all
  776. -fdump-lang-SWITCH
  777. -fdump-lang-SWITCH-OPTIONS
  778. -fdump-lang-SWITCH-OPTIONS=FILENAME
  779. -fdump-passes
  780. -fdump-rtl-PASS -fdump-rtl-PASS=FILENAME
  781. -fdump-statistics
  782. -fdump-tree-all
  783. -fdump-tree-SWITCH
  784. -fdump-tree-SWITCH-OPTIONS
  785. -fdump-tree-SWITCH-OPTIONS=FILENAME
  786. -fcompare-debug[=OPTS] -fcompare-debug-second
  787. -fenable-KIND-PASS
  788. -fenable-KIND-PASS=RANGE-LIST
  789. -fira-verbose=N
  790. -flto-report -flto-report-wpa -fmem-report-wpa
  791. -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report
  792. -fopt-info -fopt-info-OPTIONS[=FILE]
  793. -fprofile-report
  794. -frandom-seed=STRING -fsched-verbose=N
  795. -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose
  796. -fstats -fstack-usage -ftime-report -ftime-report-details
  797. -fvar-tracking-assignments-toggle -gtoggle
  798. -print-file-name=LIBRARY -print-libgcc-file-name
  799. -print-multi-directory -print-multi-lib -print-multi-os-directory
  800. -print-prog-name=PROGRAM -print-search-dirs -Q
  801. -print-sysroot -print-sysroot-headers-suffix
  802. -save-temps -save-temps=cwd -save-temps=obj -time[=FILE]
  803. _Machine-Dependent Options_
  804. *Note Machine-Dependent Options: Submodel Options.
  805. _AArch64 Options_
  806. -mabi=NAME -mbig-endian -mlittle-endian
  807. -mgeneral-regs-only
  808. -mcmodel=tiny -mcmodel=small -mcmodel=large
  809. -mstrict-align
  810. -momit-leaf-frame-pointer
  811. -mtls-dialect=desc -mtls-dialect=traditional
  812. -mtls-size=SIZE
  813. -mfix-cortex-a53-835769 -mfix-cortex-a53-843419
  814. -mlow-precision-recip-sqrt -mlow-precision-sqrt -mlow-precision-div
  815. -mpc-relative-literal-loads
  816. -msign-return-address=SCOPE
  817. -march=NAME -mcpu=NAME -mtune=NAME
  818. -moverride=STRING -mverbose-cost-dump
  819. _Adapteva Epiphany Options_
  820. -mhalf-reg-file -mprefer-short-insn-regs
  821. -mbranch-cost=NUM -mcmove -mnops=NUM -msoft-cmpsf
  822. -msplit-lohi -mpost-inc -mpost-modify -mstack-offset=NUM
  823. -mround-nearest -mlong-calls -mshort-calls -msmall16
  824. -mfp-mode=MODE -mvect-double -max-vect-align=NUM
  825. -msplit-vecmove-early -m1reg-REG
  826. _ARC Options_
  827. -mbarrel-shifter -mjli-always
  828. -mcpu=CPU -mA6 -mARC600 -mA7 -mARC700
  829. -mdpfp -mdpfp-compact -mdpfp-fast -mno-dpfp-lrsr
  830. -mea -mno-mpy -mmul32x16 -mmul64 -matomic
  831. -mnorm -mspfp -mspfp-compact -mspfp-fast -msimd -msoft-float -mswap
  832. -mcrc -mdsp-packa -mdvbf -mlock -mmac-d16 -mmac-24 -mrtsc -mswape
  833. -mtelephony -mxy -misize -mannotate-align -marclinux -marclinux_prof
  834. -mlong-calls -mmedium-calls -msdata -mirq-ctrl-saved
  835. -mrgf-banked-regs -mlpc-width=WIDTH -G NUM
  836. -mvolatile-cache -mtp-regno=REGNO
  837. -malign-call -mauto-modify-reg -mbbit-peephole -mno-brcc
  838. -mcase-vector-pcrel -mcompact-casesi -mno-cond-exec -mearly-cbranchsi
  839. -mexpand-adddi -mindexed-loads -mlra -mlra-priority-none
  840. -mlra-priority-compact mlra-priority-noncompact -mno-millicode
  841. -mmixed-code -mq-class -mRcq -mRcw -msize-level=LEVEL
  842. -mtune=CPU -mmultcost=NUM
  843. -munalign-prob-threshold=PROBABILITY -mmpy-option=MULTO
  844. -mdiv-rem -mcode-density -mll64 -mfpu=FPU -mrf16
  845. _ARM Options_
  846. -mapcs-frame -mno-apcs-frame
  847. -mabi=NAME
  848. -mapcs-stack-check -mno-apcs-stack-check
  849. -mapcs-reentrant -mno-apcs-reentrant
  850. -msched-prolog -mno-sched-prolog
  851. -mlittle-endian -mbig-endian
  852. -mbe8 -mbe32
  853. -mfloat-abi=NAME
  854. -mfp16-format=NAME
  855. -mthumb-interwork -mno-thumb-interwork
  856. -mcpu=NAME -march=NAME -mfpu=NAME
  857. -mtune=NAME -mprint-tune-info
  858. -mstructure-size-boundary=N
  859. -mabort-on-noreturn
  860. -mlong-calls -mno-long-calls
  861. -msingle-pic-base -mno-single-pic-base
  862. -mpic-register=REG
  863. -mnop-fun-dllimport
  864. -mpoke-function-name
  865. -mthumb -marm -mflip-thumb
  866. -mtpcs-frame -mtpcs-leaf-frame
  867. -mcaller-super-interworking -mcallee-super-interworking
  868. -mtp=NAME -mtls-dialect=DIALECT
  869. -mword-relocations
  870. -mfix-cortex-m3-ldrd
  871. -munaligned-access
  872. -mneon-for-64bits
  873. -mslow-flash-data
  874. -masm-syntax-unified
  875. -mrestrict-it
  876. -mverbose-cost-dump
  877. -mpure-code
  878. -mcmse
  879. _AVR Options_
  880. -mmcu=MCU -mabsdata -maccumulate-args
  881. -mbranch-cost=COST
  882. -mcall-prologues -mgas-isr-prologues -mint8
  883. -mn_flash=SIZE -mno-interrupts
  884. -mmain-is-OS_task -mrelax -mrmw -mstrict-X -mtiny-stack
  885. -mfract-convert-truncate
  886. -mshort-calls -nodevicelib
  887. -Waddr-space-convert -Wmisspelled-isr
  888. _Blackfin Options_
  889. -mcpu=CPU[-SIREVISION]
  890. -msim -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer
  891. -mspecld-anomaly -mno-specld-anomaly -mcsync-anomaly -mno-csync-anomaly
  892. -mlow-64k -mno-low64k -mstack-check-l1 -mid-shared-library
  893. -mno-id-shared-library -mshared-library-id=N
  894. -mleaf-id-shared-library -mno-leaf-id-shared-library
  895. -msep-data -mno-sep-data -mlong-calls -mno-long-calls
  896. -mfast-fp -minline-plt -mmulticore -mcorea -mcoreb -msdram
  897. -micplb
  898. _C6X Options_
  899. -mbig-endian -mlittle-endian -march=CPU
  900. -msim -msdata=SDATA-TYPE
  901. _CRIS Options_
  902. -mcpu=CPU -march=CPU -mtune=CPU
  903. -mmax-stack-frame=N -melinux-stacksize=N
  904. -metrax4 -metrax100 -mpdebug -mcc-init -mno-side-effects
  905. -mstack-align -mdata-align -mconst-align
  906. -m32-bit -m16-bit -m8-bit -mno-prologue-epilogue -mno-gotplt
  907. -melf -maout -melinux -mlinux -sim -sim2
  908. -mmul-bug-workaround -mno-mul-bug-workaround
  909. _CR16 Options_
  910. -mmac
  911. -mcr16cplus -mcr16c
  912. -msim -mint32 -mbit-ops
  913. -mdata-model=MODEL
  914. _Darwin Options_
  915. -all_load -allowable_client -arch -arch_errors_fatal
  916. -arch_only -bind_at_load -bundle -bundle_loader
  917. -client_name -compatibility_version -current_version
  918. -dead_strip
  919. -dependency-file -dylib_file -dylinker_install_name
  920. -dynamic -dynamiclib -exported_symbols_list
  921. -filelist -flat_namespace -force_cpusubtype_ALL
  922. -force_flat_namespace -headerpad_max_install_names
  923. -iframework
  924. -image_base -init -install_name -keep_private_externs
  925. -multi_module -multiply_defined -multiply_defined_unused
  926. -noall_load -no_dead_strip_inits_and_terms
  927. -nofixprebinding -nomultidefs -noprebind -noseglinkedit
  928. -pagezero_size -prebind -prebind_all_twolevel_modules
  929. -private_bundle -read_only_relocs -sectalign
  930. -sectobjectsymbols -whyload -seg1addr
  931. -sectcreate -sectobjectsymbols -sectorder
  932. -segaddr -segs_read_only_addr -segs_read_write_addr
  933. -seg_addr_table -seg_addr_table_filename -seglinkedit
  934. -segprot -segs_read_only_addr -segs_read_write_addr
  935. -single_module -static -sub_library -sub_umbrella
  936. -twolevel_namespace -umbrella -undefined
  937. -unexported_symbols_list -weak_reference_mismatches
  938. -whatsloaded -F -gused -gfull -mmacosx-version-min=VERSION
  939. -mkernel -mone-byte-bool
  940. _DEC Alpha Options_
  941. -mno-fp-regs -msoft-float
  942. -mieee -mieee-with-inexact -mieee-conformant
  943. -mfp-trap-mode=MODE -mfp-rounding-mode=MODE
  944. -mtrap-precision=MODE -mbuild-constants
  945. -mcpu=CPU-TYPE -mtune=CPU-TYPE
  946. -mbwx -mmax -mfix -mcix
  947. -mfloat-vax -mfloat-ieee
  948. -mexplicit-relocs -msmall-data -mlarge-data
  949. -msmall-text -mlarge-text
  950. -mmemory-latency=TIME
  951. _FR30 Options_
  952. -msmall-model -mno-lsim
  953. _FT32 Options_
  954. -msim -mlra -mnodiv -mft32b -mcompress -mnopm
  955. _FRV Options_
  956. -mgpr-32 -mgpr-64 -mfpr-32 -mfpr-64
  957. -mhard-float -msoft-float
  958. -malloc-cc -mfixed-cc -mdword -mno-dword
  959. -mdouble -mno-double
  960. -mmedia -mno-media -mmuladd -mno-muladd
  961. -mfdpic -minline-plt -mgprel-ro -multilib-library-pic
  962. -mlinked-fp -mlong-calls -malign-labels
  963. -mlibrary-pic -macc-4 -macc-8
  964. -mpack -mno-pack -mno-eflags -mcond-move -mno-cond-move
  965. -moptimize-membar -mno-optimize-membar
  966. -mscc -mno-scc -mcond-exec -mno-cond-exec
  967. -mvliw-branch -mno-vliw-branch
  968. -mmulti-cond-exec -mno-multi-cond-exec -mnested-cond-exec
  969. -mno-nested-cond-exec -mtomcat-stats
  970. -mTLS -mtls
  971. -mcpu=CPU
  972. _GNU/Linux Options_
  973. -mglibc -muclibc -mmusl -mbionic -mandroid
  974. -tno-android-cc -tno-android-ld
  975. _H8/300 Options_
  976. -mrelax -mh -ms -mn -mexr -mno-exr -mint32 -malign-300
  977. _HPPA Options_
  978. -march=ARCHITECTURE-TYPE
  979. -mcaller-copies -mdisable-fpregs -mdisable-indexing
  980. -mfast-indirect-calls -mgas -mgnu-ld -mhp-ld
  981. -mfixed-range=REGISTER-RANGE
  982. -mjump-in-delay -mlinker-opt -mlong-calls
  983. -mlong-load-store -mno-disable-fpregs
  984. -mno-disable-indexing -mno-fast-indirect-calls -mno-gas
  985. -mno-jump-in-delay -mno-long-load-store
  986. -mno-portable-runtime -mno-soft-float
  987. -mno-space-regs -msoft-float -mpa-risc-1-0
  988. -mpa-risc-1-1 -mpa-risc-2-0 -mportable-runtime
  989. -mschedule=CPU-TYPE -mspace-regs -msio -mwsio
  990. -munix=UNIX-STD -nolibdld -static -threads
  991. _IA-64 Options_
  992. -mbig-endian -mlittle-endian -mgnu-as -mgnu-ld -mno-pic
  993. -mvolatile-asm-stop -mregister-names -msdata -mno-sdata
  994. -mconstant-gp -mauto-pic -mfused-madd
  995. -minline-float-divide-min-latency
  996. -minline-float-divide-max-throughput
  997. -mno-inline-float-divide
  998. -minline-int-divide-min-latency
  999. -minline-int-divide-max-throughput
  1000. -mno-inline-int-divide
  1001. -minline-sqrt-min-latency -minline-sqrt-max-throughput
  1002. -mno-inline-sqrt
  1003. -mdwarf2-asm -mearly-stop-bits
  1004. -mfixed-range=REGISTER-RANGE -mtls-size=TLS-SIZE
  1005. -mtune=CPU-TYPE -milp32 -mlp64
  1006. -msched-br-data-spec -msched-ar-data-spec -msched-control-spec
  1007. -msched-br-in-data-spec -msched-ar-in-data-spec -msched-in-control-spec
  1008. -msched-spec-ldc -msched-spec-control-ldc
  1009. -msched-prefer-non-data-spec-insns -msched-prefer-non-control-spec-insns
  1010. -msched-stop-bits-after-every-cycle -msched-count-spec-in-critical-path
  1011. -msel-sched-dont-check-control-spec -msched-fp-mem-deps-zero-cost
  1012. -msched-max-memory-insns-hard-limit -msched-max-memory-insns=MAX-INSNS
  1013. _LM32 Options_
  1014. -mbarrel-shift-enabled -mdivide-enabled -mmultiply-enabled
  1015. -msign-extend-enabled -muser-enabled
  1016. _M32R/D Options_
  1017. -m32r2 -m32rx -m32r
  1018. -mdebug
  1019. -malign-loops -mno-align-loops
  1020. -missue-rate=NUMBER
  1021. -mbranch-cost=NUMBER
  1022. -mmodel=CODE-SIZE-MODEL-TYPE
  1023. -msdata=SDATA-TYPE
  1024. -mno-flush-func -mflush-func=NAME
  1025. -mno-flush-trap -mflush-trap=NUMBER
  1026. -G NUM
  1027. _M32C Options_
  1028. -mcpu=CPU -msim -memregs=NUMBER
  1029. _M680x0 Options_
  1030. -march=ARCH -mcpu=CPU -mtune=TUNE
  1031. -m68000 -m68020 -m68020-40 -m68020-60 -m68030 -m68040
  1032. -m68060 -mcpu32 -m5200 -m5206e -m528x -m5307 -m5407
  1033. -mcfv4e -mbitfield -mno-bitfield -mc68000 -mc68020
  1034. -mnobitfield -mrtd -mno-rtd -mdiv -mno-div -mshort
  1035. -mno-short -mhard-float -m68881 -msoft-float -mpcrel
  1036. -malign-int -mstrict-align -msep-data -mno-sep-data
  1037. -mshared-library-id=n -mid-shared-library -mno-id-shared-library
  1038. -mxgot -mno-xgot -mlong-jump-table-offsets
  1039. _MCore Options_
  1040. -mhardlit -mno-hardlit -mdiv -mno-div -mrelax-immediates
  1041. -mno-relax-immediates -mwide-bitfields -mno-wide-bitfields
  1042. -m4byte-functions -mno-4byte-functions -mcallgraph-data
  1043. -mno-callgraph-data -mslow-bytes -mno-slow-bytes -mno-lsim
  1044. -mlittle-endian -mbig-endian -m210 -m340 -mstack-increment
  1045. _MeP Options_
  1046. -mabsdiff -mall-opts -maverage -mbased=N -mbitops
  1047. -mc=N -mclip -mconfig=NAME -mcop -mcop32 -mcop64 -mivc2
  1048. -mdc -mdiv -meb -mel -mio-volatile -ml -mleadz -mm -mminmax
  1049. -mmult -mno-opts -mrepeat -ms -msatur -msdram -msim -msimnovec -mtf
  1050. -mtiny=N
  1051. _MicroBlaze Options_
  1052. -msoft-float -mhard-float -msmall-divides -mcpu=CPU
  1053. -mmemcpy -mxl-soft-mul -mxl-soft-div -mxl-barrel-shift
  1054. -mxl-pattern-compare -mxl-stack-check -mxl-gp-opt -mno-clearbss
  1055. -mxl-multiply-high -mxl-float-convert -mxl-float-sqrt
  1056. -mbig-endian -mlittle-endian -mxl-reorder -mxl-mode-APP-MODEL
  1057. _MIPS Options_
  1058. -EL -EB -march=ARCH -mtune=ARCH
  1059. -mips1 -mips2 -mips3 -mips4 -mips32 -mips32r2 -mips32r3 -mips32r5
  1060. -mips32r6 -mips64 -mips64r2 -mips64r3 -mips64r5 -mips64r6
  1061. -mips16 -mno-mips16 -mflip-mips16
  1062. -minterlink-compressed -mno-interlink-compressed
  1063. -minterlink-mips16 -mno-interlink-mips16
  1064. -mabi=ABI -mabicalls -mno-abicalls
  1065. -mshared -mno-shared -mplt -mno-plt -mxgot -mno-xgot
  1066. -mgp32 -mgp64 -mfp32 -mfpxx -mfp64 -mhard-float -msoft-float
  1067. -mno-float -msingle-float -mdouble-float
  1068. -modd-spreg -mno-odd-spreg
  1069. -mabs=MODE -mnan=ENCODING
  1070. -mdsp -mno-dsp -mdspr2 -mno-dspr2
  1071. -mmcu -mmno-mcu
  1072. -meva -mno-eva
  1073. -mvirt -mno-virt
  1074. -mxpa -mno-xpa
  1075. -mmicromips -mno-micromips
  1076. -mmsa -mno-msa
  1077. -mfpu=FPU-TYPE
  1078. -msmartmips -mno-smartmips
  1079. -mpaired-single -mno-paired-single -mdmx -mno-mdmx
  1080. -mips3d -mno-mips3d -mmt -mno-mt -mllsc -mno-llsc
  1081. -mlong64 -mlong32 -msym32 -mno-sym32
  1082. -GNUM -mlocal-sdata -mno-local-sdata
  1083. -mextern-sdata -mno-extern-sdata -mgpopt -mno-gopt
  1084. -membedded-data -mno-embedded-data
  1085. -muninit-const-in-rodata -mno-uninit-const-in-rodata
  1086. -mcode-readable=SETTING
  1087. -msplit-addresses -mno-split-addresses
  1088. -mexplicit-relocs -mno-explicit-relocs
  1089. -mcheck-zero-division -mno-check-zero-division
  1090. -mdivide-traps -mdivide-breaks
  1091. -mload-store-pairs -mno-load-store-pairs
  1092. -mmemcpy -mno-memcpy -mlong-calls -mno-long-calls
  1093. -mmad -mno-mad -mimadd -mno-imadd -mfused-madd -mno-fused-madd -nocpp
  1094. -mfix-24k -mno-fix-24k
  1095. -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
  1096. -mfix-r10000 -mno-fix-r10000 -mfix-rm7000 -mno-fix-rm7000
  1097. -mfix-vr4120 -mno-fix-vr4120
  1098. -mfix-vr4130 -mno-fix-vr4130 -mfix-sb1 -mno-fix-sb1
  1099. -mflush-func=FUNC -mno-flush-func
  1100. -mbranch-cost=NUM -mbranch-likely -mno-branch-likely
  1101. -mcompact-branches=POLICY
  1102. -mfp-exceptions -mno-fp-exceptions
  1103. -mvr4130-align -mno-vr4130-align -msynci -mno-synci
  1104. -mlxc1-sxc1 -mno-lxc1-sxc1 -mmadd4 -mno-madd4
  1105. -mrelax-pic-calls -mno-relax-pic-calls -mmcount-ra-address
  1106. -mframe-header-opt -mno-frame-header-opt
  1107. _MMIX Options_
  1108. -mlibfuncs -mno-libfuncs -mepsilon -mno-epsilon -mabi=gnu
  1109. -mabi=mmixware -mzero-extend -mknuthdiv -mtoplevel-symbols
  1110. -melf -mbranch-predict -mno-branch-predict -mbase-addresses
  1111. -mno-base-addresses -msingle-exit -mno-single-exit
  1112. _MN10300 Options_
  1113. -mmult-bug -mno-mult-bug
  1114. -mno-am33 -mam33 -mam33-2 -mam34
  1115. -mtune=CPU-TYPE
  1116. -mreturn-pointer-on-d0
  1117. -mno-crt0 -mrelax -mliw -msetlb
  1118. _Moxie Options_
  1119. -meb -mel -mmul.x -mno-crt0
  1120. _MSP430 Options_
  1121. -msim -masm-hex -mmcu= -mcpu= -mlarge -msmall -mrelax
  1122. -mwarn-mcu
  1123. -mcode-region= -mdata-region=
  1124. -msilicon-errata= -msilicon-errata-warn=
  1125. -mhwmult= -minrt
  1126. _NDS32 Options_
  1127. -mbig-endian -mlittle-endian
  1128. -mreduced-regs -mfull-regs
  1129. -mcmov -mno-cmov
  1130. -mext-perf -mno-ext-perf
  1131. -mext-perf2 -mno-ext-perf2
  1132. -mext-string -mno-ext-string
  1133. -mv3push -mno-v3push
  1134. -m16bit -mno-16bit
  1135. -misr-vector-size=NUM
  1136. -mcache-block-size=NUM
  1137. -march=ARCH
  1138. -mcmodel=CODE-MODEL
  1139. -mctor-dtor -mrelax
  1140. _Nios II Options_
  1141. -G NUM -mgpopt=OPTION -mgpopt -mno-gpopt
  1142. -mgprel-sec=REGEXP -mr0rel-sec=REGEXP
  1143. -mel -meb
  1144. -mno-bypass-cache -mbypass-cache
  1145. -mno-cache-volatile -mcache-volatile
  1146. -mno-fast-sw-div -mfast-sw-div
  1147. -mhw-mul -mno-hw-mul -mhw-mulx -mno-hw-mulx -mno-hw-div -mhw-div
  1148. -mcustom-INSN=N -mno-custom-INSN
  1149. -mcustom-fpu-cfg=NAME
  1150. -mhal -msmallc -msys-crt0=NAME -msys-lib=NAME
  1151. -march=ARCH -mbmx -mno-bmx -mcdx -mno-cdx
  1152. _Nvidia PTX Options_
  1153. -m32 -m64 -mmainkernel -moptimize
  1154. _PDP-11 Options_
  1155. -mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10
  1156. -mbcopy -mbcopy-builtin -mint32 -mno-int16
  1157. -mint16 -mno-int32 -mfloat32 -mno-float64
  1158. -mfloat64 -mno-float32 -mabshi -mno-abshi
  1159. -mbranch-expensive -mbranch-cheap
  1160. -munix-asm -mdec-asm
  1161. _picoChip Options_
  1162. -mae=AE_TYPE -mvliw-lookahead=N
  1163. -msymbol-as-address -mno-inefficient-warnings
  1164. _PowerPC Options_ See RS/6000 and PowerPC Options.
  1165. _PowerPC SPE Options_
  1166. -mcpu=CPU-TYPE
  1167. -mtune=CPU-TYPE
  1168. -mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb
  1169. -mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc
  1170. -m32 -mxl-compat -mno-xl-compat
  1171. -malign-power -malign-natural
  1172. -msoft-float -mhard-float -mmultiple -mno-multiple
  1173. -msingle-float -mdouble-float
  1174. -mupdate -mno-update
  1175. -mavoid-indexed-addresses -mno-avoid-indexed-addresses
  1176. -mstrict-align -mno-strict-align -mrelocatable
  1177. -mno-relocatable -mrelocatable-lib -mno-relocatable-lib
  1178. -mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian
  1179. -msingle-pic-base
  1180. -mprioritize-restricted-insns=PRIORITY
  1181. -msched-costly-dep=DEPENDENCE_TYPE
  1182. -minsert-sched-nops=SCHEME
  1183. -mcall-sysv -mcall-netbsd
  1184. -maix-struct-return -msvr4-struct-return
  1185. -mabi=ABI-TYPE -msecure-plt -mbss-plt
  1186. -mblock-move-inline-limit=NUM
  1187. -misel -mno-isel
  1188. -misel=yes -misel=no
  1189. -mspe -mno-spe
  1190. -mspe=yes -mspe=no
  1191. -mfloat-gprs=yes -mfloat-gprs=no -mfloat-gprs=single -mfloat-gprs=double
  1192. -mprototype -mno-prototype
  1193. -msim -mmvme -mads -myellowknife -memb -msdata
  1194. -msdata=OPT -mvxworks -G NUM
  1195. -mrecip -mrecip=OPT -mno-recip -mrecip-precision
  1196. -mno-recip-precision
  1197. -mpointers-to-nested-functions -mno-pointers-to-nested-functions
  1198. -msave-toc-indirect -mno-save-toc-indirect
  1199. -mcompat-align-parm -mno-compat-align-parm
  1200. -mfloat128 -mno-float128
  1201. -mgnu-attribute -mno-gnu-attribute
  1202. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=REG
  1203. -mstack-protector-guard-offset=OFFSET
  1204. _RISC-V Options_
  1205. -mbranch-cost=N-INSTRUCTION
  1206. -mplt -mno-plt
  1207. -mabi=ABI-STRING
  1208. -mfdiv -mno-fdiv
  1209. -mdiv -mno-div
  1210. -march=ISA-STRING
  1211. -mtune=PROCESSOR-STRING
  1212. -mpreferred-stack-boundary=NUM
  1213. -msmall-data-limit=N-BYTES
  1214. -msave-restore -mno-save-restore
  1215. -mstrict-align -mno-strict-align
  1216. -mcmodel=medlow -mcmodel=medany
  1217. -mexplicit-relocs -mno-explicit-relocs
  1218. -mrelax -mno-relax
  1219. -mriscv-attribute -mmo-riscv-attribute
  1220. -malign-data=TYPE
  1221. _RL78 Options_
  1222. -msim -mmul=none -mmul=g13 -mmul=g14 -mallregs
  1223. -mcpu=g10 -mcpu=g13 -mcpu=g14 -mg10 -mg13 -mg14
  1224. -m64bit-doubles -m32bit-doubles -msave-mduc-in-interrupts
  1225. _RS/6000 and PowerPC Options_
  1226. -mcpu=CPU-TYPE
  1227. -mtune=CPU-TYPE
  1228. -mcmodel=CODE-MODEL
  1229. -mpowerpc64
  1230. -maltivec -mno-altivec
  1231. -mpowerpc-gpopt -mno-powerpc-gpopt
  1232. -mpowerpc-gfxopt -mno-powerpc-gfxopt
  1233. -mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb -mpopcntd -mno-popcntd
  1234. -mfprnd -mno-fprnd
  1235. -mcmpb -mno-cmpb -mmfpgpr -mno-mfpgpr -mhard-dfp -mno-hard-dfp
  1236. -mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc
  1237. -m64 -m32 -mxl-compat -mno-xl-compat -mpe
  1238. -malign-power -malign-natural
  1239. -msoft-float -mhard-float -mmultiple -mno-multiple
  1240. -msingle-float -mdouble-float -msimple-fpu
  1241. -mupdate -mno-update
  1242. -mavoid-indexed-addresses -mno-avoid-indexed-addresses
  1243. -mfused-madd -mno-fused-madd -mbit-align -mno-bit-align
  1244. -mstrict-align -mno-strict-align -mrelocatable
  1245. -mno-relocatable -mrelocatable-lib -mno-relocatable-lib
  1246. -mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian
  1247. -mdynamic-no-pic -maltivec -mswdiv -msingle-pic-base
  1248. -mprioritize-restricted-insns=PRIORITY
  1249. -msched-costly-dep=DEPENDENCE_TYPE
  1250. -minsert-sched-nops=SCHEME
  1251. -mcall-aixdesc -mcall-eabi -mcall-freebsd
  1252. -mcall-linux -mcall-netbsd -mcall-openbsd
  1253. -mcall-sysv -mcall-sysv-eabi -mcall-sysv-noeabi
  1254. -mtraceback=TRACEBACK_TYPE
  1255. -maix-struct-return -msvr4-struct-return
  1256. -mabi=ABI-TYPE -msecure-plt -mbss-plt
  1257. -mblock-move-inline-limit=NUM
  1258. -mblock-compare-inline-limit=NUM
  1259. -mblock-compare-inline-loop-limit=NUM
  1260. -mstring-compare-inline-limit=NUM
  1261. -misel -mno-isel
  1262. -misel=yes -misel=no
  1263. -mpaired
  1264. -mvrsave -mno-vrsave
  1265. -mmulhw -mno-mulhw
  1266. -mdlmzb -mno-dlmzb
  1267. -mprototype -mno-prototype
  1268. -msim -mmvme -mads -myellowknife -memb -msdata
  1269. -msdata=OPT -mreadonly-in-sdata -mvxworks -G NUM
  1270. -mrecip -mrecip=OPT -mno-recip -mrecip-precision
  1271. -mno-recip-precision
  1272. -mveclibabi=TYPE -mfriz -mno-friz
  1273. -mpointers-to-nested-functions -mno-pointers-to-nested-functions
  1274. -msave-toc-indirect -mno-save-toc-indirect
  1275. -mpower8-fusion -mno-mpower8-fusion -mpower8-vector -mno-power8-vector
  1276. -mcrypto -mno-crypto -mhtm -mno-htm
  1277. -mquad-memory -mno-quad-memory
  1278. -mquad-memory-atomic -mno-quad-memory-atomic
  1279. -mcompat-align-parm -mno-compat-align-parm
  1280. -mfloat128 -mno-float128 -mfloat128-hardware -mno-float128-hardware
  1281. -mgnu-attribute -mno-gnu-attribute
  1282. -mstack-protector-guard=GUARD -mstack-protector-guard-reg=REG
  1283. -mstack-protector-guard-offset=OFFSET
  1284. _RX Options_
  1285. -m64bit-doubles -m32bit-doubles -fpu -nofpu
  1286. -mcpu=
  1287. -mbig-endian-data -mlittle-endian-data
  1288. -msmall-data
  1289. -msim -mno-sim
  1290. -mas100-syntax -mno-as100-syntax
  1291. -mrelax
  1292. -mmax-constant-size=
  1293. -mint-register=
  1294. -mpid
  1295. -mallow-string-insns -mno-allow-string-insns
  1296. -mjsr
  1297. -mno-warn-multiple-fast-interrupts
  1298. -msave-acc-in-interrupts
  1299. _S/390 and zSeries Options_
  1300. -mtune=CPU-TYPE -march=CPU-TYPE
  1301. -mhard-float -msoft-float -mhard-dfp -mno-hard-dfp
  1302. -mlong-double-64 -mlong-double-128
  1303. -mbackchain -mno-backchain -mpacked-stack -mno-packed-stack
  1304. -msmall-exec -mno-small-exec -mmvcle -mno-mvcle
  1305. -m64 -m31 -mdebug -mno-debug -mesa -mzarch
  1306. -mhtm -mvx -mzvector
  1307. -mtpf-trace -mno-tpf-trace -mfused-madd -mno-fused-madd
  1308. -mwarn-framesize -mwarn-dynamicstack -mstack-size -mstack-guard
  1309. -mhotpatch=HALFWORDS,HALFWORDS
  1310. _Score Options_
  1311. -meb -mel
  1312. -mnhwloop
  1313. -muls
  1314. -mmac
  1315. -mscore5 -mscore5u -mscore7 -mscore7d
  1316. _SH Options_
  1317. -m1 -m2 -m2e
  1318. -m2a-nofpu -m2a-single-only -m2a-single -m2a
  1319. -m3 -m3e
  1320. -m4-nofpu -m4-single-only -m4-single -m4
  1321. -m4a-nofpu -m4a-single-only -m4a-single -m4a -m4al
  1322. -mb -ml -mdalign -mrelax
  1323. -mbigtable -mfmovd -mrenesas -mno-renesas -mnomacsave
  1324. -mieee -mno-ieee -mbitops -misize -minline-ic_invalidate -mpadstruct
  1325. -mprefergot -musermode -multcost=NUMBER -mdiv=STRATEGY
  1326. -mdivsi3_libfunc=NAME -mfixed-range=REGISTER-RANGE
  1327. -maccumulate-outgoing-args
  1328. -matomic-model=ATOMIC-MODEL
  1329. -mbranch-cost=NUM -mzdcbranch -mno-zdcbranch
  1330. -mcbranch-force-delay-slot
  1331. -mfused-madd -mno-fused-madd -mfsca -mno-fsca -mfsrra -mno-fsrra
  1332. -mpretend-cmove -mtas
  1333. _Solaris 2 Options_
  1334. -mclear-hwcap -mno-clear-hwcap -mimpure-text -mno-impure-text
  1335. -pthreads
  1336. _SPARC Options_
  1337. -mcpu=CPU-TYPE
  1338. -mtune=CPU-TYPE
  1339. -mcmodel=CODE-MODEL
  1340. -mmemory-model=MEM-MODEL
  1341. -m32 -m64 -mapp-regs -mno-app-regs
  1342. -mfaster-structs -mno-faster-structs -mflat -mno-flat
  1343. -mfpu -mno-fpu -mhard-float -msoft-float
  1344. -mhard-quad-float -msoft-quad-float
  1345. -mstack-bias -mno-stack-bias
  1346. -mstd-struct-return -mno-std-struct-return
  1347. -munaligned-doubles -mno-unaligned-doubles
  1348. -muser-mode -mno-user-mode
  1349. -mv8plus -mno-v8plus -mvis -mno-vis
  1350. -mvis2 -mno-vis2 -mvis3 -mno-vis3
  1351. -mvis4 -mno-vis4 -mvis4b -mno-vis4b
  1352. -mcbcond -mno-cbcond -mfmaf -mno-fmaf -mfsmuld -mno-fsmuld
  1353. -mpopc -mno-popc -msubxc -mno-subxc
  1354. -mfix-at697f -mfix-ut699 -mfix-ut700 -mfix-gr712rc
  1355. -mlra -mno-lra
  1356. _SPU Options_
  1357. -mwarn-reloc -merror-reloc
  1358. -msafe-dma -munsafe-dma
  1359. -mbranch-hints
  1360. -msmall-mem -mlarge-mem -mstdmain
  1361. -mfixed-range=REGISTER-RANGE
  1362. -mea32 -mea64
  1363. -maddress-space-conversion -mno-address-space-conversion
  1364. -mcache-size=CACHE-SIZE
  1365. -matomic-updates -mno-atomic-updates
  1366. _System V Options_
  1367. -Qy -Qn -YP,PATHS -Ym,DIR
  1368. _TILE-Gx Options_
  1369. -mcpu=CPU -m32 -m64 -mbig-endian -mlittle-endian
  1370. -mcmodel=CODE-MODEL
  1371. _TILEPro Options_
  1372. -mcpu=CPU -m32
  1373. _V850 Options_
  1374. -mlong-calls -mno-long-calls -mep -mno-ep
  1375. -mprolog-function -mno-prolog-function -mspace
  1376. -mtda=N -msda=N -mzda=N
  1377. -mapp-regs -mno-app-regs
  1378. -mdisable-callt -mno-disable-callt
  1379. -mv850e2v3 -mv850e2 -mv850e1 -mv850es
  1380. -mv850e -mv850 -mv850e3v5
  1381. -mloop
  1382. -mrelax
  1383. -mlong-jumps
  1384. -msoft-float
  1385. -mhard-float
  1386. -mgcc-abi
  1387. -mrh850-abi
  1388. -mbig-switch
  1389. _VAX Options_
  1390. -mg -mgnu -munix
  1391. _Visium Options_
  1392. -mdebug -msim -mfpu -mno-fpu -mhard-float -msoft-float
  1393. -mcpu=CPU-TYPE -mtune=CPU-TYPE -msv-mode -muser-mode
  1394. _VMS Options_
  1395. -mvms-return-codes -mdebug-main=PREFIX -mmalloc64
  1396. -mpointer-size=SIZE
  1397. _VxWorks Options_
  1398. -mrtp -non-static -Bstatic -Bdynamic
  1399. -Xbind-lazy -Xbind-now
  1400. _x86 Options_
  1401. -mtune=CPU-TYPE -march=CPU-TYPE
  1402. -mtune-ctrl=FEATURE-LIST -mdump-tune-features -mno-default
  1403. -mfpmath=UNIT
  1404. -masm=DIALECT -mno-fancy-math-387
  1405. -mno-fp-ret-in-387 -m80387 -mhard-float -msoft-float
  1406. -mno-wide-multiply -mrtd -malign-double
  1407. -mpreferred-stack-boundary=NUM
  1408. -mincoming-stack-boundary=NUM
  1409. -mcld -mcx16 -msahf -mmovbe -mcrc32
  1410. -mrecip -mrecip=OPT
  1411. -mvzeroupper -mprefer-avx128 -mprefer-vector-width=OPT
  1412. -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx
  1413. -mavx2 -mavx512f -mavx512pf -mavx512er -mavx512cd -mavx512vl
  1414. -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -msha -maes
  1415. -mpclmul -mfsgsbase -mrdrnd -mf16c -mfma -mpconfig -mwbnoinvd
  1416. -mprefetchwt1 -mclflushopt -mclwb -mxsavec -mxsaves
  1417. -msse4a -m3dnow -m3dnowa -mpopcnt -mabm -mbmi -mtbm -mfma4 -mxop
  1418. -madx -mlzcnt -mbmi2 -mfxsr -mxsave -mxsaveopt -mrtm -mlwp -mmpx
  1419. -mmwaitx -mclzero -mpku -mthreads -mgfni -mvaes
  1420. -mshstk -mforce-indirect-call -mavx512vbmi2
  1421. -mvpclmulqdq -mavx512bitalg -mmovdiri -mmovdir64b -mavx512vpopcntdq
  1422. -mavx5124fmaps -mavx512vnni -mavx5124vnniw -mprfchw -mrdpid
  1423. -mrdseed -msgx
  1424. -mms-bitfields -mno-align-stringops -minline-all-stringops
  1425. -minline-stringops-dynamically -mstringop-strategy=ALG
  1426. -mmemcpy-strategy=STRATEGY -mmemset-strategy=STRATEGY
  1427. -mpush-args -maccumulate-outgoing-args -m128bit-long-double
  1428. -m96bit-long-double -mlong-double-64 -mlong-double-80 -mlong-double-128
  1429. -mregparm=NUM -msseregparm
  1430. -mveclibabi=TYPE -mvect8-ret-in-mem
  1431. -mpc32 -mpc64 -mpc80 -mstackrealign
  1432. -momit-leaf-frame-pointer -mno-red-zone -mno-tls-direct-seg-refs
  1433. -mcmodel=CODE-MODEL -mabi=NAME -maddress-mode=MODE
  1434. -m32 -m64 -mx32 -m16 -miamcu -mlarge-data-threshold=NUM
  1435. -msse2avx -mfentry -mrecord-mcount -mnop-mcount -m8bit-idiv
  1436. -mavx256-split-unaligned-load -mavx256-split-unaligned-store
  1437. -malign-data=TYPE -mstack-protector-guard=GUARD
  1438. -mstack-protector-guard-reg=REG
  1439. -mstack-protector-guard-offset=OFFSET
  1440. -mstack-protector-guard-symbol=SYMBOL -mmitigate-rop
  1441. -mgeneral-regs-only -mcall-ms2sysv-xlogues
  1442. -mindirect-branch=CHOICE -mfunction-return=CHOICE
  1443. -mindirect-branch-register
  1444. _x86 Windows Options_
  1445. -mconsole -mcygwin -mno-cygwin -mdll
  1446. -mnop-fun-dllimport -mthread
  1447. -municode -mwin32 -mwindows -fno-set-stack-executable
  1448. _Xstormy16 Options_
  1449. -msim
  1450. _Xtensa Options_
  1451. -mconst16 -mno-const16
  1452. -mfused-madd -mno-fused-madd
  1453. -mforce-no-pic
  1454. -mserialize-volatile -mno-serialize-volatile
  1455. -mtext-section-literals -mno-text-section-literals
  1456. -mauto-litpools -mno-auto-litpools
  1457. -mtarget-align -mno-target-align
  1458. -mlongcalls -mno-longcalls
  1459. _zSeries Options_ See S/390 and zSeries Options.
  1460. 
  1461. File: gcc.info, Node: Overall Options, Next: Invoking G++, Prev: Option Summary, Up: Invoking GCC
  1462. 3.2 Options Controlling the Kind of Output
  1463. ==========================================
  1464. Compilation can involve up to four stages: preprocessing, compilation
  1465. proper, assembly and linking, always in that order. GCC is capable of
  1466. preprocessing and compiling several files either into several assembler
  1467. input files, or into one assembler input file; then each assembler input
  1468. file produces an object file, and linking combines all the object files
  1469. (those newly compiled, and those specified as input) into an executable
  1470. file.
  1471. For any given input file, the file name suffix determines what kind of
  1472. compilation is done:
  1473. 'FILE.c'
  1474. C source code that must be preprocessed.
  1475. 'FILE.i'
  1476. C source code that should not be preprocessed.
  1477. 'FILE.ii'
  1478. C++ source code that should not be preprocessed.
  1479. 'FILE.m'
  1480. Objective-C source code. Note that you must link with the
  1481. 'libobjc' library to make an Objective-C program work.
  1482. 'FILE.mi'
  1483. Objective-C source code that should not be preprocessed.
  1484. 'FILE.mm'
  1485. 'FILE.M'
  1486. Objective-C++ source code. Note that you must link with the
  1487. 'libobjc' library to make an Objective-C++ program work. Note that
  1488. '.M' refers to a literal capital M.
  1489. 'FILE.mii'
  1490. Objective-C++ source code that should not be preprocessed.
  1491. 'FILE.h'
  1492. C, C++, Objective-C or Objective-C++ header file to be turned into
  1493. a precompiled header (default), or C, C++ header file to be turned
  1494. into an Ada spec (via the '-fdump-ada-spec' switch).
  1495. 'FILE.cc'
  1496. 'FILE.cp'
  1497. 'FILE.cxx'
  1498. 'FILE.cpp'
  1499. 'FILE.CPP'
  1500. 'FILE.c++'
  1501. 'FILE.C'
  1502. C++ source code that must be preprocessed. Note that in '.cxx',
  1503. the last two letters must both be literally 'x'. Likewise, '.C'
  1504. refers to a literal capital C.
  1505. 'FILE.mm'
  1506. 'FILE.M'
  1507. Objective-C++ source code that must be preprocessed.
  1508. 'FILE.mii'
  1509. Objective-C++ source code that should not be preprocessed.
  1510. 'FILE.hh'
  1511. 'FILE.H'
  1512. 'FILE.hp'
  1513. 'FILE.hxx'
  1514. 'FILE.hpp'
  1515. 'FILE.HPP'
  1516. 'FILE.h++'
  1517. 'FILE.tcc'
  1518. C++ header file to be turned into a precompiled header or Ada spec.
  1519. 'FILE.f'
  1520. 'FILE.for'
  1521. 'FILE.ftn'
  1522. Fixed form Fortran source code that should not be preprocessed.
  1523. 'FILE.F'
  1524. 'FILE.FOR'
  1525. 'FILE.fpp'
  1526. 'FILE.FPP'
  1527. 'FILE.FTN'
  1528. Fixed form Fortran source code that must be preprocessed (with the
  1529. traditional preprocessor).
  1530. 'FILE.f90'
  1531. 'FILE.f95'
  1532. 'FILE.f03'
  1533. 'FILE.f08'
  1534. Free form Fortran source code that should not be preprocessed.
  1535. 'FILE.F90'
  1536. 'FILE.F95'
  1537. 'FILE.F03'
  1538. 'FILE.F08'
  1539. Free form Fortran source code that must be preprocessed (with the
  1540. traditional preprocessor).
  1541. 'FILE.go'
  1542. Go source code.
  1543. 'FILE.brig'
  1544. BRIG files (binary representation of HSAIL).
  1545. 'FILE.ads'
  1546. Ada source code file that contains a library unit declaration (a
  1547. declaration of a package, subprogram, or generic, or a generic
  1548. instantiation), or a library unit renaming declaration (a package,
  1549. generic, or subprogram renaming declaration). Such files are also
  1550. called "specs".
  1551. 'FILE.adb'
  1552. Ada source code file containing a library unit body (a subprogram
  1553. or package body). Such files are also called "bodies".
  1554. 'FILE.s'
  1555. Assembler code.
  1556. 'FILE.S'
  1557. 'FILE.sx'
  1558. Assembler code that must be preprocessed.
  1559. 'OTHER'
  1560. An object file to be fed straight into linking. Any file name with
  1561. no recognized suffix is treated this way.
  1562. You can specify the input language explicitly with the '-x' option:
  1563. '-x LANGUAGE'
  1564. Specify explicitly the LANGUAGE for the following input files
  1565. (rather than letting the compiler choose a default based on the
  1566. file name suffix). This option applies to all following input
  1567. files until the next '-x' option. Possible values for LANGUAGE
  1568. are:
  1569. c c-header cpp-output
  1570. c++ c++-header c++-cpp-output
  1571. objective-c objective-c-header objective-c-cpp-output
  1572. objective-c++ objective-c++-header objective-c++-cpp-output
  1573. assembler assembler-with-cpp
  1574. ada
  1575. f77 f77-cpp-input f95 f95-cpp-input
  1576. go
  1577. brig
  1578. '-x none'
  1579. Turn off any specification of a language, so that subsequent files
  1580. are handled according to their file name suffixes (as they are if
  1581. '-x' has not been used at all).
  1582. If you only want some of the stages of compilation, you can use '-x'
  1583. (or filename suffixes) to tell 'gcc' where to start, and one of the
  1584. options '-c', '-S', or '-E' to say where 'gcc' is to stop. Note that
  1585. some combinations (for example, '-x cpp-output -E') instruct 'gcc' to do
  1586. nothing at all.
  1587. '-c'
  1588. Compile or assemble the source files, but do not link. The linking
  1589. stage simply is not done. The ultimate output is in the form of an
  1590. object file for each source file.
  1591. By default, the object file name for a source file is made by
  1592. replacing the suffix '.c', '.i', '.s', etc., with '.o'.
  1593. Unrecognized input files, not requiring compilation or assembly,
  1594. are ignored.
  1595. '-S'
  1596. Stop after the stage of compilation proper; do not assemble. The
  1597. output is in the form of an assembler code file for each
  1598. non-assembler input file specified.
  1599. By default, the assembler file name for a source file is made by
  1600. replacing the suffix '.c', '.i', etc., with '.s'.
  1601. Input files that don't require compilation are ignored.
  1602. '-E'
  1603. Stop after the preprocessing stage; do not run the compiler proper.
  1604. The output is in the form of preprocessed source code, which is
  1605. sent to the standard output.
  1606. Input files that don't require preprocessing are ignored.
  1607. '-o FILE'
  1608. Place output in file FILE. This applies to whatever sort of output
  1609. is being produced, whether it be an executable file, an object
  1610. file, an assembler file or preprocessed C code.
  1611. If '-o' is not specified, the default is to put an executable file
  1612. in 'a.out', the object file for 'SOURCE.SUFFIX' in 'SOURCE.o', its
  1613. assembler file in 'SOURCE.s', a precompiled header file in
  1614. 'SOURCE.SUFFIX.gch', and all preprocessed C source on standard
  1615. output.
  1616. '-v'
  1617. Print (on standard error output) the commands executed to run the
  1618. stages of compilation. Also print the version number of the
  1619. compiler driver program and of the preprocessor and the compiler
  1620. proper.
  1621. '-###'
  1622. Like '-v' except the commands are not executed and arguments are
  1623. quoted unless they contain only alphanumeric characters or './-_'.
  1624. This is useful for shell scripts to capture the driver-generated
  1625. command lines.
  1626. '--help'
  1627. Print (on the standard output) a description of the command-line
  1628. options understood by 'gcc'. If the '-v' option is also specified
  1629. then '--help' is also passed on to the various processes invoked by
  1630. 'gcc', so that they can display the command-line options they
  1631. accept. If the '-Wextra' option has also been specified (prior to
  1632. the '--help' option), then command-line options that have no
  1633. documentation associated with them are also displayed.
  1634. '--target-help'
  1635. Print (on the standard output) a description of target-specific
  1636. command-line options for each tool. For some targets extra
  1637. target-specific information may also be printed.
  1638. '--help={CLASS|[^]QUALIFIER}[,...]'
  1639. Print (on the standard output) a description of the command-line
  1640. options understood by the compiler that fit into all specified
  1641. classes and qualifiers. These are the supported classes:
  1642. 'optimizers'
  1643. Display all of the optimization options supported by the
  1644. compiler.
  1645. 'warnings'
  1646. Display all of the options controlling warning messages
  1647. produced by the compiler.
  1648. 'target'
  1649. Display target-specific options. Unlike the '--target-help'
  1650. option however, target-specific options of the linker and
  1651. assembler are not displayed. This is because those tools do
  1652. not currently support the extended '--help=' syntax.
  1653. 'params'
  1654. Display the values recognized by the '--param' option.
  1655. LANGUAGE
  1656. Display the options supported for LANGUAGE, where LANGUAGE is
  1657. the name of one of the languages supported in this version of
  1658. GCC.
  1659. 'common'
  1660. Display the options that are common to all languages.
  1661. These are the supported qualifiers:
  1662. 'undocumented'
  1663. Display only those options that are undocumented.
  1664. 'joined'
  1665. Display options taking an argument that appears after an equal
  1666. sign in the same continuous piece of text, such as:
  1667. '--help=target'.
  1668. 'separate'
  1669. Display options taking an argument that appears as a separate
  1670. word following the original option, such as: '-o output-file'.
  1671. Thus for example to display all the undocumented target-specific
  1672. switches supported by the compiler, use:
  1673. --help=target,undocumented
  1674. The sense of a qualifier can be inverted by prefixing it with the
  1675. '^' character, so for example to display all binary warning options
  1676. (i.e., ones that are either on or off and that do not take an
  1677. argument) that have a description, use:
  1678. --help=warnings,^joined,^undocumented
  1679. The argument to '--help=' should not consist solely of inverted
  1680. qualifiers.
  1681. Combining several classes is possible, although this usually
  1682. restricts the output so much that there is nothing to display. One
  1683. case where it does work, however, is when one of the classes is
  1684. TARGET. For example, to display all the target-specific
  1685. optimization options, use:
  1686. --help=target,optimizers
  1687. The '--help=' option can be repeated on the command line. Each
  1688. successive use displays its requested class of options, skipping
  1689. those that have already been displayed.
  1690. If the '-Q' option appears on the command line before the '--help='
  1691. option, then the descriptive text displayed by '--help=' is
  1692. changed. Instead of describing the displayed options, an
  1693. indication is given as to whether the option is enabled, disabled
  1694. or set to a specific value (assuming that the compiler knows this
  1695. at the point where the '--help=' option is used).
  1696. Here is a truncated example from the ARM port of 'gcc':
  1697. % gcc -Q -mabi=2 --help=target -c
  1698. The following options are target specific:
  1699. -mabi= 2
  1700. -mabort-on-noreturn [disabled]
  1701. -mapcs [disabled]
  1702. The output is sensitive to the effects of previous command-line
  1703. options, so for example it is possible to find out which
  1704. optimizations are enabled at '-O2' by using:
  1705. -Q -O2 --help=optimizers
  1706. Alternatively you can discover which binary optimizations are
  1707. enabled by '-O3' by using:
  1708. gcc -c -Q -O3 --help=optimizers > /tmp/O3-opts
  1709. gcc -c -Q -O2 --help=optimizers > /tmp/O2-opts
  1710. diff /tmp/O2-opts /tmp/O3-opts | grep enabled
  1711. '--version'
  1712. Display the version number and copyrights of the invoked GCC.
  1713. '-pass-exit-codes'
  1714. Normally the 'gcc' program exits with the code of 1 if any phase of
  1715. the compiler returns a non-success return code. If you specify
  1716. '-pass-exit-codes', the 'gcc' program instead returns with the
  1717. numerically highest error produced by any phase returning an error
  1718. indication. The C, C++, and Fortran front ends return 4 if an
  1719. internal compiler error is encountered.
  1720. '-pipe'
  1721. Use pipes rather than temporary files for communication between the
  1722. various stages of compilation. This fails to work on some systems
  1723. where the assembler is unable to read from a pipe; but the GNU
  1724. assembler has no trouble.
  1725. '-specs=FILE'
  1726. Process FILE after the compiler reads in the standard 'specs' file,
  1727. in order to override the defaults which the 'gcc' driver program
  1728. uses when determining what switches to pass to 'cc1', 'cc1plus',
  1729. 'as', 'ld', etc. More than one '-specs=FILE' can be specified on
  1730. the command line, and they are processed in order, from left to
  1731. right. *Note Spec Files::, for information about the format of the
  1732. FILE.
  1733. '-wrapper'
  1734. Invoke all subcommands under a wrapper program. The name of the
  1735. wrapper program and its parameters are passed as a comma separated
  1736. list.
  1737. gcc -c t.c -wrapper gdb,--args
  1738. This invokes all subprograms of 'gcc' under 'gdb --args', thus the
  1739. invocation of 'cc1' is 'gdb --args cc1 ...'.
  1740. '-ffile-prefix-map=OLD=NEW'
  1741. When compiling files residing in directory 'OLD', record any
  1742. references to them in the result of the compilation as if the files
  1743. resided in directory 'NEW' instead. Specifying this option is
  1744. equivalent to specifying all the individual '-f*-prefix-map'
  1745. options. This can be used to make reproducible builds that are
  1746. location independent. See also '-fmacro-prefix-map' and
  1747. '-fdebug-prefix-map'.
  1748. '-fplugin=NAME.so'
  1749. Load the plugin code in file NAME.so, assumed to be a shared object
  1750. to be dlopen'd by the compiler. The base name of the shared object
  1751. file is used to identify the plugin for the purposes of argument
  1752. parsing (See '-fplugin-arg-NAME-KEY=VALUE' below). Each plugin
  1753. should define the callback functions specified in the Plugins API.
  1754. '-fplugin-arg-NAME-KEY=VALUE'
  1755. Define an argument called KEY with a value of VALUE for the plugin
  1756. called NAME.
  1757. '-fdump-ada-spec[-slim]'
  1758. For C and C++ source and include files, generate corresponding Ada
  1759. specs. *Note (gnat_ugn)Generating Ada Bindings for C and C++
  1760. headers::, which provides detailed documentation on this feature.
  1761. '-fada-spec-parent=UNIT'
  1762. In conjunction with '-fdump-ada-spec[-slim]' above, generate Ada
  1763. specs as child units of parent UNIT.
  1764. '-fdump-go-spec=FILE'
  1765. For input files in any language, generate corresponding Go
  1766. declarations in FILE. This generates Go 'const', 'type', 'var',
  1767. and 'func' declarations which may be a useful way to start writing
  1768. a Go interface to code written in some other language.
  1769. '@FILE'
  1770. Read command-line options from FILE. The options read are inserted
  1771. in place of the original @FILE option. If FILE does not exist, or
  1772. cannot be read, then the option will be treated literally, and not
  1773. removed.
  1774. Options in FILE are separated by whitespace. A whitespace
  1775. character may be included in an option by surrounding the entire
  1776. option in either single or double quotes. Any character (including
  1777. a backslash) may be included by prefixing the character to be
  1778. included with a backslash. The FILE may itself contain additional
  1779. @FILE options; any such options will be processed recursively.
  1780. 
  1781. File: gcc.info, Node: Invoking G++, Next: C Dialect Options, Prev: Overall Options, Up: Invoking GCC
  1782. 3.3 Compiling C++ Programs
  1783. ==========================
  1784. C++ source files conventionally use one of the suffixes '.C', '.cc',
  1785. '.cpp', '.CPP', '.c++', '.cp', or '.cxx'; C++ header files often use
  1786. '.hh', '.hpp', '.H', or (for shared template code) '.tcc'; and
  1787. preprocessed C++ files use the suffix '.ii'. GCC recognizes files with
  1788. these names and compiles them as C++ programs even if you call the
  1789. compiler the same way as for compiling C programs (usually with the name
  1790. 'gcc').
  1791. However, the use of 'gcc' does not add the C++ library. 'g++' is a
  1792. program that calls GCC and automatically specifies linking against the
  1793. C++ library. It treats '.c', '.h' and '.i' files as C++ source files
  1794. instead of C source files unless '-x' is used. This program is also
  1795. useful when precompiling a C header file with a '.h' extension for use
  1796. in C++ compilations. On many systems, 'g++' is also installed with the
  1797. name 'c++'.
  1798. When you compile C++ programs, you may specify many of the same
  1799. command-line options that you use for compiling programs in any
  1800. language; or command-line options meaningful for C and related
  1801. languages; or options that are meaningful only for C++ programs. *Note
  1802. Options Controlling C Dialect: C Dialect Options, for explanations of
  1803. options for languages related to C. *Note Options Controlling C++
  1804. Dialect: C++ Dialect Options, for explanations of options that are
  1805. meaningful only for C++ programs.
  1806. 
  1807. File: gcc.info, Node: C Dialect Options, Next: C++ Dialect Options, Prev: Invoking G++, Up: Invoking GCC
  1808. 3.4 Options Controlling C Dialect
  1809. =================================
  1810. The following options control the dialect of C (or languages derived
  1811. from C, such as C++, Objective-C and Objective-C++) that the compiler
  1812. accepts:
  1813. '-ansi'
  1814. In C mode, this is equivalent to '-std=c90'. In C++ mode, it is
  1815. equivalent to '-std=c++98'.
  1816. This turns off certain features of GCC that are incompatible with
  1817. ISO C90 (when compiling C code), or of standard C++ (when compiling
  1818. C++ code), such as the 'asm' and 'typeof' keywords, and predefined
  1819. macros such as 'unix' and 'vax' that identify the type of system
  1820. you are using. It also enables the undesirable and rarely used ISO
  1821. trigraph feature. For the C compiler, it disables recognition of
  1822. C++ style '//' comments as well as the 'inline' keyword.
  1823. The alternate keywords '__asm__', '__extension__', '__inline__' and
  1824. '__typeof__' continue to work despite '-ansi'. You would not want
  1825. to use them in an ISO C program, of course, but it is useful to put
  1826. them in header files that might be included in compilations done
  1827. with '-ansi'. Alternate predefined macros such as '__unix__' and
  1828. '__vax__' are also available, with or without '-ansi'.
  1829. The '-ansi' option does not cause non-ISO programs to be rejected
  1830. gratuitously. For that, '-Wpedantic' is required in addition to
  1831. '-ansi'. *Note Warning Options::.
  1832. The macro '__STRICT_ANSI__' is predefined when the '-ansi' option
  1833. is used. Some header files may notice this macro and refrain from
  1834. declaring certain functions or defining certain macros that the ISO
  1835. standard doesn't call for; this is to avoid interfering with any
  1836. programs that might use these names for other things.
  1837. Functions that are normally built in but do not have semantics
  1838. defined by ISO C (such as 'alloca' and 'ffs') are not built-in
  1839. functions when '-ansi' is used. *Note Other built-in functions
  1840. provided by GCC: Other Builtins, for details of the functions
  1841. affected.
  1842. '-std='
  1843. Determine the language standard. *Note Language Standards
  1844. Supported by GCC: Standards, for details of these standard
  1845. versions. This option is currently only supported when compiling C
  1846. or C++.
  1847. The compiler can accept several base standards, such as 'c90' or
  1848. 'c++98', and GNU dialects of those standards, such as 'gnu90' or
  1849. 'gnu++98'. When a base standard is specified, the compiler accepts
  1850. all programs following that standard plus those using GNU
  1851. extensions that do not contradict it. For example, '-std=c90'
  1852. turns off certain features of GCC that are incompatible with ISO
  1853. C90, such as the 'asm' and 'typeof' keywords, but not other GNU
  1854. extensions that do not have a meaning in ISO C90, such as omitting
  1855. the middle term of a '?:' expression. On the other hand, when a
  1856. GNU dialect of a standard is specified, all features supported by
  1857. the compiler are enabled, even when those features change the
  1858. meaning of the base standard. As a result, some strict-conforming
  1859. programs may be rejected. The particular standard is used by
  1860. '-Wpedantic' to identify which features are GNU extensions given
  1861. that version of the standard. For example '-std=gnu90 -Wpedantic'
  1862. warns about C++ style '//' comments, while '-std=gnu99 -Wpedantic'
  1863. does not.
  1864. A value for this option must be provided; possible values are
  1865. 'c90'
  1866. 'c89'
  1867. 'iso9899:1990'
  1868. Support all ISO C90 programs (certain GNU extensions that
  1869. conflict with ISO C90 are disabled). Same as '-ansi' for C
  1870. code.
  1871. 'iso9899:199409'
  1872. ISO C90 as modified in amendment 1.
  1873. 'c99'
  1874. 'c9x'
  1875. 'iso9899:1999'
  1876. 'iso9899:199x'
  1877. ISO C99. This standard is substantially completely supported,
  1878. modulo bugs and floating-point issues (mainly but not entirely
  1879. relating to optional C99 features from Annexes F and G). See
  1880. <http://gcc.gnu.org/c99status.html> for more information. The
  1881. names 'c9x' and 'iso9899:199x' are deprecated.
  1882. 'c11'
  1883. 'c1x'
  1884. 'iso9899:2011'
  1885. ISO C11, the 2011 revision of the ISO C standard. This
  1886. standard is substantially completely supported, modulo bugs,
  1887. floating-point issues (mainly but not entirely relating to
  1888. optional C11 features from Annexes F and G) and the optional
  1889. Annexes K (Bounds-checking interfaces) and L (Analyzability).
  1890. The name 'c1x' is deprecated.
  1891. 'c17'
  1892. 'c18'
  1893. 'iso9899:2017'
  1894. 'iso9899:2018'
  1895. ISO C17, the 2017 revision of the ISO C standard (expected to
  1896. be published in 2018). This standard is same as C11 except
  1897. for corrections of defects (all of which are also applied with
  1898. '-std=c11') and a new value of '__STDC_VERSION__', and so is
  1899. supported to the same extent as C11.
  1900. 'gnu90'
  1901. 'gnu89'
  1902. GNU dialect of ISO C90 (including some C99 features).
  1903. 'gnu99'
  1904. 'gnu9x'
  1905. GNU dialect of ISO C99. The name 'gnu9x' is deprecated.
  1906. 'gnu11'
  1907. 'gnu1x'
  1908. GNU dialect of ISO C11. The name 'gnu1x' is deprecated.
  1909. 'gnu17'
  1910. 'gnu18'
  1911. GNU dialect of ISO C17. This is the default for C code.
  1912. 'c++98'
  1913. 'c++03'
  1914. The 1998 ISO C++ standard plus the 2003 technical corrigendum
  1915. and some additional defect reports. Same as '-ansi' for C++
  1916. code.
  1917. 'gnu++98'
  1918. 'gnu++03'
  1919. GNU dialect of '-std=c++98'.
  1920. 'c++11'
  1921. 'c++0x'
  1922. The 2011 ISO C++ standard plus amendments. The name 'c++0x'
  1923. is deprecated.
  1924. 'gnu++11'
  1925. 'gnu++0x'
  1926. GNU dialect of '-std=c++11'. The name 'gnu++0x' is
  1927. deprecated.
  1928. 'c++14'
  1929. 'c++1y'
  1930. The 2014 ISO C++ standard plus amendments. The name 'c++1y'
  1931. is deprecated.
  1932. 'gnu++14'
  1933. 'gnu++1y'
  1934. GNU dialect of '-std=c++14'. This is the default for C++
  1935. code. The name 'gnu++1y' is deprecated.
  1936. 'c++17'
  1937. 'c++1z'
  1938. The 2017 ISO C++ standard plus amendments. The name 'c++1z'
  1939. is deprecated.
  1940. 'gnu++17'
  1941. 'gnu++1z'
  1942. GNU dialect of '-std=c++17'. The name 'gnu++1z' is
  1943. deprecated.
  1944. 'c++2a'
  1945. The next revision of the ISO C++ standard, tentatively planned
  1946. for 2020. Support is highly experimental, and will almost
  1947. certainly change in incompatible ways in future releases.
  1948. 'gnu++2a'
  1949. GNU dialect of '-std=c++2a'. Support is highly experimental,
  1950. and will almost certainly change in incompatible ways in
  1951. future releases.
  1952. '-fgnu89-inline'
  1953. The option '-fgnu89-inline' tells GCC to use the traditional GNU
  1954. semantics for 'inline' functions when in C99 mode. *Note An Inline
  1955. Function is As Fast As a Macro: Inline. Using this option is
  1956. roughly equivalent to adding the 'gnu_inline' function attribute to
  1957. all inline functions (*note Function Attributes::).
  1958. The option '-fno-gnu89-inline' explicitly tells GCC to use the C99
  1959. semantics for 'inline' when in C99 or gnu99 mode (i.e., it
  1960. specifies the default behavior). This option is not supported in
  1961. '-std=c90' or '-std=gnu90' mode.
  1962. The preprocessor macros '__GNUC_GNU_INLINE__' and
  1963. '__GNUC_STDC_INLINE__' may be used to check which semantics are in
  1964. effect for 'inline' functions. *Note (cpp)Common Predefined
  1965. Macros::.
  1966. '-fpermitted-flt-eval-methods=STYLE'
  1967. ISO/IEC TS 18661-3 defines new permissible values for
  1968. 'FLT_EVAL_METHOD' that indicate that operations and constants with
  1969. a semantic type that is an interchange or extended format should be
  1970. evaluated to the precision and range of that type. These new
  1971. values are a superset of those permitted under C99/C11, which does
  1972. not specify the meaning of other positive values of
  1973. 'FLT_EVAL_METHOD'. As such, code conforming to C11 may not have
  1974. been written expecting the possibility of the new values.
  1975. '-fpermitted-flt-eval-methods' specifies whether the compiler
  1976. should allow only the values of 'FLT_EVAL_METHOD' specified in
  1977. C99/C11, or the extended set of values specified in ISO/IEC TS
  1978. 18661-3.
  1979. STYLE is either 'c11' or 'ts-18661-3' as appropriate.
  1980. The default when in a standards compliant mode ('-std=c11' or
  1981. similar) is '-fpermitted-flt-eval-methods=c11'. The default when
  1982. in a GNU dialect ('-std=gnu11' or similar) is
  1983. '-fpermitted-flt-eval-methods=ts-18661-3'.
  1984. '-aux-info FILENAME'
  1985. Output to the given filename prototyped declarations for all
  1986. functions declared and/or defined in a translation unit, including
  1987. those in header files. This option is silently ignored in any
  1988. language other than C.
  1989. Besides declarations, the file indicates, in comments, the origin
  1990. of each declaration (source file and line), whether the declaration
  1991. was implicit, prototyped or unprototyped ('I', 'N' for new or 'O'
  1992. for old, respectively, in the first character after the line number
  1993. and the colon), and whether it came from a declaration or a
  1994. definition ('C' or 'F', respectively, in the following character).
  1995. In the case of function definitions, a K&R-style list of arguments
  1996. followed by their declarations is also provided, inside comments,
  1997. after the declaration.
  1998. '-fallow-parameterless-variadic-functions'
  1999. Accept variadic functions without named parameters.
  2000. Although it is possible to define such a function, this is not very
  2001. useful as it is not possible to read the arguments. This is only
  2002. supported for C as this construct is allowed by C++.
  2003. '-fno-asm'
  2004. Do not recognize 'asm', 'inline' or 'typeof' as a keyword, so that
  2005. code can use these words as identifiers. You can use the keywords
  2006. '__asm__', '__inline__' and '__typeof__' instead. '-ansi' implies
  2007. '-fno-asm'.
  2008. In C++, this switch only affects the 'typeof' keyword, since 'asm'
  2009. and 'inline' are standard keywords. You may want to use the
  2010. '-fno-gnu-keywords' flag instead, which has the same effect. In
  2011. C99 mode ('-std=c99' or '-std=gnu99'), this switch only affects the
  2012. 'asm' and 'typeof' keywords, since 'inline' is a standard keyword
  2013. in ISO C99.
  2014. '-fno-builtin'
  2015. '-fno-builtin-FUNCTION'
  2016. Don't recognize built-in functions that do not begin with
  2017. '__builtin_' as prefix. *Note Other built-in functions provided by
  2018. GCC: Other Builtins, for details of the functions affected,
  2019. including those which are not built-in functions when '-ansi' or
  2020. '-std' options for strict ISO C conformance are used because they
  2021. do not have an ISO standard meaning.
  2022. GCC normally generates special code to handle certain built-in
  2023. functions more efficiently; for instance, calls to 'alloca' may
  2024. become single instructions which adjust the stack directly, and
  2025. calls to 'memcpy' may become inline copy loops. The resulting code
  2026. is often both smaller and faster, but since the function calls no
  2027. longer appear as such, you cannot set a breakpoint on those calls,
  2028. nor can you change the behavior of the functions by linking with a
  2029. different library. In addition, when a function is recognized as a
  2030. built-in function, GCC may use information about that function to
  2031. warn about problems with calls to that function, or to generate
  2032. more efficient code, even if the resulting code still contains
  2033. calls to that function. For example, warnings are given with
  2034. '-Wformat' for bad calls to 'printf' when 'printf' is built in and
  2035. 'strlen' is known not to modify global memory.
  2036. With the '-fno-builtin-FUNCTION' option only the built-in function
  2037. FUNCTION is disabled. FUNCTION must not begin with '__builtin_'.
  2038. If a function is named that is not built-in in this version of GCC,
  2039. this option is ignored. There is no corresponding
  2040. '-fbuiltin-FUNCTION' option; if you wish to enable built-in
  2041. functions selectively when using '-fno-builtin' or
  2042. '-ffreestanding', you may define macros such as:
  2043. #define abs(n) __builtin_abs ((n))
  2044. #define strcpy(d, s) __builtin_strcpy ((d), (s))
  2045. '-fgimple'
  2046. Enable parsing of function definitions marked with '__GIMPLE'.
  2047. This is an experimental feature that allows unit testing of GIMPLE
  2048. passes.
  2049. '-fhosted'
  2050. Assert that compilation targets a hosted environment. This implies
  2051. '-fbuiltin'. A hosted environment is one in which the entire
  2052. standard library is available, and in which 'main' has a return
  2053. type of 'int'. Examples are nearly everything except a kernel.
  2054. This is equivalent to '-fno-freestanding'.
  2055. '-ffreestanding'
  2056. Assert that compilation targets a freestanding environment. This
  2057. implies '-fno-builtin'. A freestanding environment is one in which
  2058. the standard library may not exist, and program startup may not
  2059. necessarily be at 'main'. The most obvious example is an OS
  2060. kernel. This is equivalent to '-fno-hosted'.
  2061. *Note Language Standards Supported by GCC: Standards, for details
  2062. of freestanding and hosted environments.
  2063. '-fopenacc'
  2064. Enable handling of OpenACC directives '#pragma acc' in C/C++ and
  2065. '!$acc' in Fortran. When '-fopenacc' is specified, the compiler
  2066. generates accelerated code according to the OpenACC Application
  2067. Programming Interface v2.0 <https://www.openacc.org>. This option
  2068. implies '-pthread', and thus is only supported on targets that have
  2069. support for '-pthread'.
  2070. '-fopenacc-dim=GEOM'
  2071. Specify default compute dimensions for parallel offload regions
  2072. that do not explicitly specify. The GEOM value is a triple of
  2073. ':'-separated sizes, in order 'gang', 'worker' and, 'vector'. A
  2074. size can be omitted, to use a target-specific default value.
  2075. '-fopenmp'
  2076. Enable handling of OpenMP directives '#pragma omp' in C/C++ and
  2077. '!$omp' in Fortran. When '-fopenmp' is specified, the compiler
  2078. generates parallel code according to the OpenMP Application Program
  2079. Interface v4.5 <http://www.openmp.org/>. This option implies
  2080. '-pthread', and thus is only supported on targets that have support
  2081. for '-pthread'. '-fopenmp' implies '-fopenmp-simd'.
  2082. '-fopenmp-simd'
  2083. Enable handling of OpenMP's SIMD directives with '#pragma omp' in
  2084. C/C++ and '!$omp' in Fortran. Other OpenMP directives are ignored.
  2085. '-fgnu-tm'
  2086. When the option '-fgnu-tm' is specified, the compiler generates
  2087. code for the Linux variant of Intel's current Transactional Memory
  2088. ABI specification document (Revision 1.1, May 6 2009). This is an
  2089. experimental feature whose interface may change in future versions
  2090. of GCC, as the official specification changes. Please note that
  2091. not all architectures are supported for this feature.
  2092. For more information on GCC's support for transactional memory,
  2093. *Note The GNU Transactional Memory Library: (libitm)Enabling
  2094. libitm.
  2095. Note that the transactional memory feature is not supported with
  2096. non-call exceptions ('-fnon-call-exceptions').
  2097. '-fms-extensions'
  2098. Accept some non-standard constructs used in Microsoft header files.
  2099. In C++ code, this allows member names in structures to be similar
  2100. to previous types declarations.
  2101. typedef int UOW;
  2102. struct ABC {
  2103. UOW UOW;
  2104. };
  2105. Some cases of unnamed fields in structures and unions are only
  2106. accepted with this option. *Note Unnamed struct/union fields
  2107. within structs/unions: Unnamed Fields, for details.
  2108. Note that this option is off for all targets but x86 targets using
  2109. ms-abi.
  2110. '-fplan9-extensions'
  2111. Accept some non-standard constructs used in Plan 9 code.
  2112. This enables '-fms-extensions', permits passing pointers to
  2113. structures with anonymous fields to functions that expect pointers
  2114. to elements of the type of the field, and permits referring to
  2115. anonymous fields declared using a typedef. *Note Unnamed
  2116. struct/union fields within structs/unions: Unnamed Fields, for
  2117. details. This is only supported for C, not C++.
  2118. '-fcond-mismatch'
  2119. Allow conditional expressions with mismatched types in the second
  2120. and third arguments. The value of such an expression is void.
  2121. This option is not supported for C++.
  2122. '-flax-vector-conversions'
  2123. Allow implicit conversions between vectors with differing numbers
  2124. of elements and/or incompatible element types. This option should
  2125. not be used for new code.
  2126. '-funsigned-char'
  2127. Let the type 'char' be unsigned, like 'unsigned char'.
  2128. Each kind of machine has a default for what 'char' should be. It
  2129. is either like 'unsigned char' by default or like 'signed char' by
  2130. default.
  2131. Ideally, a portable program should always use 'signed char' or
  2132. 'unsigned char' when it depends on the signedness of an object.
  2133. But many programs have been written to use plain 'char' and expect
  2134. it to be signed, or expect it to be unsigned, depending on the
  2135. machines they were written for. This option, and its inverse, let
  2136. you make such a program work with the opposite default.
  2137. The type 'char' is always a distinct type from each of 'signed
  2138. char' or 'unsigned char', even though its behavior is always just
  2139. like one of those two.
  2140. '-fsigned-char'
  2141. Let the type 'char' be signed, like 'signed char'.
  2142. Note that this is equivalent to '-fno-unsigned-char', which is the
  2143. negative form of '-funsigned-char'. Likewise, the option
  2144. '-fno-signed-char' is equivalent to '-funsigned-char'.
  2145. '-fsigned-bitfields'
  2146. '-funsigned-bitfields'
  2147. '-fno-signed-bitfields'
  2148. '-fno-unsigned-bitfields'
  2149. These options control whether a bit-field is signed or unsigned,
  2150. when the declaration does not use either 'signed' or 'unsigned'.
  2151. By default, such a bit-field is signed, because this is consistent:
  2152. the basic integer types such as 'int' are signed types.
  2153. '-fsso-struct=ENDIANNESS'
  2154. Set the default scalar storage order of structures and unions to
  2155. the specified endianness. The accepted values are 'big-endian',
  2156. 'little-endian' and 'native' for the native endianness of the
  2157. target (the default). This option is not supported for C++.
  2158. *Warning:* the '-fsso-struct' switch causes GCC to generate code
  2159. that is not binary compatible with code generated without it if the
  2160. specified endianness is not the native endianness of the target.
  2161. 
  2162. File: gcc.info, Node: C++ Dialect Options, Next: Objective-C and Objective-C++ Dialect Options, Prev: C Dialect Options, Up: Invoking GCC
  2163. 3.5 Options Controlling C++ Dialect
  2164. ===================================
  2165. This section describes the command-line options that are only meaningful
  2166. for C++ programs. You can also use most of the GNU compiler options
  2167. regardless of what language your program is in. For example, you might
  2168. compile a file 'firstClass.C' like this:
  2169. g++ -g -fstrict-enums -O -c firstClass.C
  2170. In this example, only '-fstrict-enums' is an option meant only for C++
  2171. programs; you can use the other options with any language supported by
  2172. GCC.
  2173. Some options for compiling C programs, such as '-std', are also
  2174. relevant for C++ programs. *Note Options Controlling C Dialect: C
  2175. Dialect Options.
  2176. Here is a list of options that are _only_ for compiling C++ programs:
  2177. '-fabi-version=N'
  2178. Use version N of the C++ ABI. The default is version 0.
  2179. Version 0 refers to the version conforming most closely to the C++
  2180. ABI specification. Therefore, the ABI obtained using version 0
  2181. will change in different versions of G++ as ABI bugs are fixed.
  2182. Version 1 is the version of the C++ ABI that first appeared in G++
  2183. 3.2.
  2184. Version 2 is the version of the C++ ABI that first appeared in G++
  2185. 3.4, and was the default through G++ 4.9.
  2186. Version 3 corrects an error in mangling a constant address as a
  2187. template argument.
  2188. Version 4, which first appeared in G++ 4.5, implements a standard
  2189. mangling for vector types.
  2190. Version 5, which first appeared in G++ 4.6, corrects the mangling
  2191. of attribute const/volatile on function pointer types, decltype of
  2192. a plain decl, and use of a function parameter in the declaration of
  2193. another parameter.
  2194. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2195. behavior of C++11 scoped enums and the mangling of template
  2196. argument packs, const/static_cast, prefix ++ and -, and a class
  2197. scope function used as a template argument.
  2198. Version 7, which first appeared in G++ 4.8, that treats nullptr_t
  2199. as a builtin type and corrects the mangling of lambdas in default
  2200. argument scope.
  2201. Version 8, which first appeared in G++ 4.9, corrects the
  2202. substitution behavior of function types with
  2203. function-cv-qualifiers.
  2204. Version 9, which first appeared in G++ 5.2, corrects the alignment
  2205. of 'nullptr_t'.
  2206. Version 10, which first appeared in G++ 6.1, adds mangling of
  2207. attributes that affect type identity, such as ia32 calling
  2208. convention attributes (e.g. 'stdcall').
  2209. Version 11, which first appeared in G++ 7, corrects the mangling of
  2210. sizeof... expressions and operator names. For multiple entities
  2211. with the same name within a function, that are declared in
  2212. different scopes, the mangling now changes starting with the
  2213. twelfth occurrence. It also implies '-fnew-inheriting-ctors'.
  2214. Version 12, which first appeared in G++ 8, corrects the calling
  2215. conventions for empty classes on the x86_64 target and for classes
  2216. with only deleted copy/move constructors. It accidentally changes
  2217. the calling convention for classes with a deleted copy constructor
  2218. and a trivial move constructor.
  2219. Version 13, which first appeared in G++ 8.2, fixes the accidental
  2220. change in version 12.
  2221. See also '-Wabi'.
  2222. '-fabi-compat-version=N'
  2223. On targets that support strong aliases, G++ works around mangling
  2224. changes by creating an alias with the correct mangled name when
  2225. defining a symbol with an incorrect mangled name. This switch
  2226. specifies which ABI version to use for the alias.
  2227. With '-fabi-version=0' (the default), this defaults to 11 (GCC 7
  2228. compatibility). If another ABI version is explicitly selected,
  2229. this defaults to 0. For compatibility with GCC versions 3.2
  2230. through 4.9, use '-fabi-compat-version=2'.
  2231. If this option is not provided but '-Wabi=N' is, that version is
  2232. used for compatibility aliases. If this option is provided along
  2233. with '-Wabi' (without the version), the version from this option is
  2234. used for the warning.
  2235. '-fno-access-control'
  2236. Turn off all access checking. This switch is mainly useful for
  2237. working around bugs in the access control code.
  2238. '-faligned-new'
  2239. Enable support for C++17 'new' of types that require more alignment
  2240. than 'void* ::operator new(std::size_t)' provides. A numeric
  2241. argument such as '-faligned-new=32' can be used to specify how much
  2242. alignment (in bytes) is provided by that function, but few users
  2243. will need to override the default of 'alignof(std::max_align_t)'.
  2244. This flag is enabled by default for '-std=c++17'.
  2245. '-fcheck-new'
  2246. Check that the pointer returned by 'operator new' is non-null
  2247. before attempting to modify the storage allocated. This check is
  2248. normally unnecessary because the C++ standard specifies that
  2249. 'operator new' only returns '0' if it is declared 'throw()', in
  2250. which case the compiler always checks the return value even without
  2251. this option. In all other cases, when 'operator new' has a
  2252. non-empty exception specification, memory exhaustion is signalled
  2253. by throwing 'std::bad_alloc'. See also 'new (nothrow)'.
  2254. '-fconcepts'
  2255. Enable support for the C++ Extensions for Concepts Technical
  2256. Specification, ISO 19217 (2015), which allows code like
  2257. template <class T> concept bool Addable = requires (T t) { t + t; };
  2258. template <Addable T> T add (T a, T b) { return a + b; }
  2259. '-fconstexpr-depth=N'
  2260. Set the maximum nested evaluation depth for C++11 constexpr
  2261. functions to N. A limit is needed to detect endless recursion
  2262. during constant expression evaluation. The minimum specified by
  2263. the standard is 512.
  2264. '-fconstexpr-loop-limit=N'
  2265. Set the maximum number of iterations for a loop in C++14 constexpr
  2266. functions to N. A limit is needed to detect infinite loops during
  2267. constant expression evaluation. The default is 262144 (1<<18).
  2268. '-fdeduce-init-list'
  2269. Enable deduction of a template type parameter as
  2270. 'std::initializer_list' from a brace-enclosed initializer list,
  2271. i.e.
  2272. template <class T> auto forward(T t) -> decltype (realfn (t))
  2273. {
  2274. return realfn (t);
  2275. }
  2276. void f()
  2277. {
  2278. forward({1,2}); // call forward<std::initializer_list<int>>
  2279. }
  2280. This deduction was implemented as a possible extension to the
  2281. originally proposed semantics for the C++11 standard, but was not
  2282. part of the final standard, so it is disabled by default. This
  2283. option is deprecated, and may be removed in a future version of
  2284. G++.
  2285. '-ffriend-injection'
  2286. Inject friend functions into the enclosing namespace, so that they
  2287. are visible outside the scope of the class in which they are
  2288. declared. Friend functions were documented to work this way in the
  2289. old Annotated C++ Reference Manual. However, in ISO C++ a friend
  2290. function that is not declared in an enclosing scope can only be
  2291. found using argument dependent lookup. GCC defaults to the
  2292. standard behavior.
  2293. This option is deprecated and will be removed.
  2294. '-fno-elide-constructors'
  2295. The C++ standard allows an implementation to omit creating a
  2296. temporary that is only used to initialize another object of the
  2297. same type. Specifying this option disables that optimization, and
  2298. forces G++ to call the copy constructor in all cases. This option
  2299. also causes G++ to call trivial member functions which otherwise
  2300. would be expanded inline.
  2301. In C++17, the compiler is required to omit these temporaries, but
  2302. this option still affects trivial member functions.
  2303. '-fno-enforce-eh-specs'
  2304. Don't generate code to check for violation of exception
  2305. specifications at run time. This option violates the C++ standard,
  2306. but may be useful for reducing code size in production builds, much
  2307. like defining 'NDEBUG'. This does not give user code permission to
  2308. throw exceptions in violation of the exception specifications; the
  2309. compiler still optimizes based on the specifications, so throwing
  2310. an unexpected exception results in undefined behavior at run time.
  2311. '-fextern-tls-init'
  2312. '-fno-extern-tls-init'
  2313. The C++11 and OpenMP standards allow 'thread_local' and
  2314. 'threadprivate' variables to have dynamic (runtime) initialization.
  2315. To support this, any use of such a variable goes through a wrapper
  2316. function that performs any necessary initialization. When the use
  2317. and definition of the variable are in the same translation unit,
  2318. this overhead can be optimized away, but when the use is in a
  2319. different translation unit there is significant overhead even if
  2320. the variable doesn't actually need dynamic initialization. If the
  2321. programmer can be sure that no use of the variable in a
  2322. non-defining TU needs to trigger dynamic initialization (either
  2323. because the variable is statically initialized, or a use of the
  2324. variable in the defining TU will be executed before any uses in
  2325. another TU), they can avoid this overhead with the
  2326. '-fno-extern-tls-init' option.
  2327. On targets that support symbol aliases, the default is
  2328. '-fextern-tls-init'. On targets that do not support symbol
  2329. aliases, the default is '-fno-extern-tls-init'.
  2330. '-ffor-scope'
  2331. '-fno-for-scope'
  2332. If '-ffor-scope' is specified, the scope of variables declared in a
  2333. for-init-statement is limited to the 'for' loop itself, as
  2334. specified by the C++ standard. If '-fno-for-scope' is specified,
  2335. the scope of variables declared in a for-init-statement extends to
  2336. the end of the enclosing scope, as was the case in old versions of
  2337. G++, and other (traditional) implementations of C++.
  2338. This option is deprecated and the associated non-standard
  2339. functionality will be removed.
  2340. '-fno-gnu-keywords'
  2341. Do not recognize 'typeof' as a keyword, so that code can use this
  2342. word as an identifier. You can use the keyword '__typeof__'
  2343. instead. This option is implied by the strict ISO C++ dialects:
  2344. '-ansi', '-std=c++98', '-std=c++11', etc.
  2345. '-fno-implicit-templates'
  2346. Never emit code for non-inline templates that are instantiated
  2347. implicitly (i.e. by use); only emit code for explicit
  2348. instantiations. *Note Template Instantiation::, for more
  2349. information.
  2350. '-fno-implicit-inline-templates'
  2351. Don't emit code for implicit instantiations of inline templates,
  2352. either. The default is to handle inlines differently so that
  2353. compiles with and without optimization need the same set of
  2354. explicit instantiations.
  2355. '-fno-implement-inlines'
  2356. To save space, do not emit out-of-line copies of inline functions
  2357. controlled by '#pragma implementation'. This causes linker errors
  2358. if these functions are not inlined everywhere they are called.
  2359. '-fms-extensions'
  2360. Disable Wpedantic warnings about constructs used in MFC, such as
  2361. implicit int and getting a pointer to member function via
  2362. non-standard syntax.
  2363. '-fnew-inheriting-ctors'
  2364. Enable the P0136 adjustment to the semantics of C++11 constructor
  2365. inheritance. This is part of C++17 but also considered to be a
  2366. Defect Report against C++11 and C++14. This flag is enabled by
  2367. default unless '-fabi-version=10' or lower is specified.
  2368. '-fnew-ttp-matching'
  2369. Enable the P0522 resolution to Core issue 150, template template
  2370. parameters and default arguments: this allows a template with
  2371. default template arguments as an argument for a template template
  2372. parameter with fewer template parameters. This flag is enabled by
  2373. default for '-std=c++17'.
  2374. '-fno-nonansi-builtins'
  2375. Disable built-in declarations of functions that are not mandated by
  2376. ANSI/ISO C. These include 'ffs', 'alloca', '_exit', 'index',
  2377. 'bzero', 'conjf', and other related functions.
  2378. '-fnothrow-opt'
  2379. Treat a 'throw()' exception specification as if it were a
  2380. 'noexcept' specification to reduce or eliminate the text size
  2381. overhead relative to a function with no exception specification.
  2382. If the function has local variables of types with non-trivial
  2383. destructors, the exception specification actually makes the
  2384. function smaller because the EH cleanups for those variables can be
  2385. optimized away. The semantic effect is that an exception thrown
  2386. out of a function with such an exception specification results in a
  2387. call to 'terminate' rather than 'unexpected'.
  2388. '-fno-operator-names'
  2389. Do not treat the operator name keywords 'and', 'bitand', 'bitor',
  2390. 'compl', 'not', 'or' and 'xor' as synonyms as keywords.
  2391. '-fno-optional-diags'
  2392. Disable diagnostics that the standard says a compiler does not need
  2393. to issue. Currently, the only such diagnostic issued by G++ is the
  2394. one for a name having multiple meanings within a class.
  2395. '-fpermissive'
  2396. Downgrade some diagnostics about nonconformant code from errors to
  2397. warnings. Thus, using '-fpermissive' allows some nonconforming
  2398. code to compile.
  2399. '-fno-pretty-templates'
  2400. When an error message refers to a specialization of a function
  2401. template, the compiler normally prints the signature of the
  2402. template followed by the template arguments and any typedefs or
  2403. typenames in the signature (e.g. 'void f(T) [with T = int]' rather
  2404. than 'void f(int)') so that it's clear which template is involved.
  2405. When an error message refers to a specialization of a class
  2406. template, the compiler omits any template arguments that match the
  2407. default template arguments for that template. If either of these
  2408. behaviors make it harder to understand the error message rather
  2409. than easier, you can use '-fno-pretty-templates' to disable them.
  2410. '-frepo'
  2411. Enable automatic template instantiation at link time. This option
  2412. also implies '-fno-implicit-templates'. *Note Template
  2413. Instantiation::, for more information.
  2414. '-fno-rtti'
  2415. Disable generation of information about every class with virtual
  2416. functions for use by the C++ run-time type identification features
  2417. ('dynamic_cast' and 'typeid'). If you don't use those parts of the
  2418. language, you can save some space by using this flag. Note that
  2419. exception handling uses the same information, but G++ generates it
  2420. as needed. The 'dynamic_cast' operator can still be used for casts
  2421. that do not require run-time type information, i.e. casts to 'void
  2422. *' or to unambiguous base classes.
  2423. '-fsized-deallocation'
  2424. Enable the built-in global declarations
  2425. void operator delete (void *, std::size_t) noexcept;
  2426. void operator delete[] (void *, std::size_t) noexcept;
  2427. as introduced in C++14. This is useful for user-defined
  2428. replacement deallocation functions that, for example, use the size
  2429. of the object to make deallocation faster. Enabled by default
  2430. under '-std=c++14' and above. The flag '-Wsized-deallocation'
  2431. warns about places that might want to add a definition.
  2432. '-fstrict-enums'
  2433. Allow the compiler to optimize using the assumption that a value of
  2434. enumerated type can only be one of the values of the enumeration
  2435. (as defined in the C++ standard; basically, a value that can be
  2436. represented in the minimum number of bits needed to represent all
  2437. the enumerators). This assumption may not be valid if the program
  2438. uses a cast to convert an arbitrary integer value to the enumerated
  2439. type.
  2440. '-fstrong-eval-order'
  2441. Evaluate member access, array subscripting, and shift expressions
  2442. in left-to-right order, and evaluate assignment in right-to-left
  2443. order, as adopted for C++17. Enabled by default with '-std=c++17'.
  2444. '-fstrong-eval-order=some' enables just the ordering of member
  2445. access and shift expressions, and is the default without
  2446. '-std=c++17'.
  2447. '-ftemplate-backtrace-limit=N'
  2448. Set the maximum number of template instantiation notes for a single
  2449. warning or error to N. The default value is 10.
  2450. '-ftemplate-depth=N'
  2451. Set the maximum instantiation depth for template classes to N. A
  2452. limit on the template instantiation depth is needed to detect
  2453. endless recursions during template class instantiation. ANSI/ISO
  2454. C++ conforming programs must not rely on a maximum depth greater
  2455. than 17 (changed to 1024 in C++11). The default value is 900, as
  2456. the compiler can run out of stack space before hitting 1024 in some
  2457. situations.
  2458. '-fno-threadsafe-statics'
  2459. Do not emit the extra code to use the routines specified in the C++
  2460. ABI for thread-safe initialization of local statics. You can use
  2461. this option to reduce code size slightly in code that doesn't need
  2462. to be thread-safe.
  2463. '-fuse-cxa-atexit'
  2464. Register destructors for objects with static storage duration with
  2465. the '__cxa_atexit' function rather than the 'atexit' function.
  2466. This option is required for fully standards-compliant handling of
  2467. static destructors, but only works if your C library supports
  2468. '__cxa_atexit'.
  2469. '-fno-use-cxa-get-exception-ptr'
  2470. Don't use the '__cxa_get_exception_ptr' runtime routine. This
  2471. causes 'std::uncaught_exception' to be incorrect, but is necessary
  2472. if the runtime routine is not available.
  2473. '-fvisibility-inlines-hidden'
  2474. This switch declares that the user does not attempt to compare
  2475. pointers to inline functions or methods where the addresses of the
  2476. two functions are taken in different shared objects.
  2477. The effect of this is that GCC may, effectively, mark inline
  2478. methods with '__attribute__ ((visibility ("hidden")))' so that they
  2479. do not appear in the export table of a DSO and do not require a PLT
  2480. indirection when used within the DSO. Enabling this option can
  2481. have a dramatic effect on load and link times of a DSO as it
  2482. massively reduces the size of the dynamic export table when the
  2483. library makes heavy use of templates.
  2484. The behavior of this switch is not quite the same as marking the
  2485. methods as hidden directly, because it does not affect static
  2486. variables local to the function or cause the compiler to deduce
  2487. that the function is defined in only one shared object.
  2488. You may mark a method as having a visibility explicitly to negate
  2489. the effect of the switch for that method. For example, if you do
  2490. want to compare pointers to a particular inline method, you might
  2491. mark it as having default visibility. Marking the enclosing class
  2492. with explicit visibility has no effect.
  2493. Explicitly instantiated inline methods are unaffected by this
  2494. option as their linkage might otherwise cross a shared library
  2495. boundary. *Note Template Instantiation::.
  2496. '-fvisibility-ms-compat'
  2497. This flag attempts to use visibility settings to make GCC's C++
  2498. linkage model compatible with that of Microsoft Visual Studio.
  2499. The flag makes these changes to GCC's linkage model:
  2500. 1. It sets the default visibility to 'hidden', like
  2501. '-fvisibility=hidden'.
  2502. 2. Types, but not their members, are not hidden by default.
  2503. 3. The One Definition Rule is relaxed for types without explicit
  2504. visibility specifications that are defined in more than one
  2505. shared object: those declarations are permitted if they are
  2506. permitted when this option is not used.
  2507. In new code it is better to use '-fvisibility=hidden' and export
  2508. those classes that are intended to be externally visible.
  2509. Unfortunately it is possible for code to rely, perhaps
  2510. accidentally, on the Visual Studio behavior.
  2511. Among the consequences of these changes are that static data
  2512. members of the same type with the same name but defined in
  2513. different shared objects are different, so changing one does not
  2514. change the other; and that pointers to function members defined in
  2515. different shared objects may not compare equal. When this flag is
  2516. given, it is a violation of the ODR to define types with the same
  2517. name differently.
  2518. '-fno-weak'
  2519. Do not use weak symbol support, even if it is provided by the
  2520. linker. By default, G++ uses weak symbols if they are available.
  2521. This option exists only for testing, and should not be used by
  2522. end-users; it results in inferior code and has no benefits. This
  2523. option may be removed in a future release of G++.
  2524. '-nostdinc++'
  2525. Do not search for header files in the standard directories specific
  2526. to C++, but do still search the other standard directories. (This
  2527. option is used when building the C++ library.)
  2528. In addition, these optimization, warning, and code generation options
  2529. have meanings only for C++ programs:
  2530. '-Wabi (C, Objective-C, C++ and Objective-C++ only)'
  2531. Warn when G++ it generates code that is probably not compatible
  2532. with the vendor-neutral C++ ABI. Since G++ now defaults to
  2533. updating the ABI with each major release, normally '-Wabi' will
  2534. warn only if there is a check added later in a release series for
  2535. an ABI issue discovered since the initial release. '-Wabi' will
  2536. warn about more things if an older ABI version is selected (with
  2537. '-fabi-version=N').
  2538. '-Wabi' can also be used with an explicit version number to warn
  2539. about compatibility with a particular '-fabi-version' level, e.g.
  2540. '-Wabi=2' to warn about changes relative to '-fabi-version=2'.
  2541. If an explicit version number is provided and
  2542. '-fabi-compat-version' is not specified, the version number from
  2543. this option is used for compatibility aliases. If no explicit
  2544. version number is provided with this option, but
  2545. '-fabi-compat-version' is specified, that version number is used
  2546. for ABI warnings.
  2547. Although an effort has been made to warn about all such cases,
  2548. there are probably some cases that are not warned about, even
  2549. though G++ is generating incompatible code. There may also be
  2550. cases where warnings are emitted even though the code that is
  2551. generated is compatible.
  2552. You should rewrite your code to avoid these warnings if you are
  2553. concerned about the fact that code generated by G++ may not be
  2554. binary compatible with code generated by other compilers.
  2555. Known incompatibilities in '-fabi-version=2' (which was the default
  2556. from GCC 3.4 to 4.9) include:
  2557. * A template with a non-type template parameter of reference
  2558. type was mangled incorrectly:
  2559. extern int N;
  2560. template <int &> struct S {};
  2561. void n (S<N>) {2}
  2562. This was fixed in '-fabi-version=3'.
  2563. * SIMD vector types declared using '__attribute ((vector_size))'
  2564. were mangled in a non-standard way that does not allow for
  2565. overloading of functions taking vectors of different sizes.
  2566. The mangling was changed in '-fabi-version=4'.
  2567. * '__attribute ((const))' and 'noreturn' were mangled as type
  2568. qualifiers, and 'decltype' of a plain declaration was folded
  2569. away.
  2570. These mangling issues were fixed in '-fabi-version=5'.
  2571. * Scoped enumerators passed as arguments to a variadic function
  2572. are promoted like unscoped enumerators, causing 'va_arg' to
  2573. complain. On most targets this does not actually affect the
  2574. parameter passing ABI, as there is no way to pass an argument
  2575. smaller than 'int'.
  2576. Also, the ABI changed the mangling of template argument packs,
  2577. 'const_cast', 'static_cast', prefix increment/decrement, and a
  2578. class scope function used as a template argument.
  2579. These issues were corrected in '-fabi-version=6'.
  2580. * Lambdas in default argument scope were mangled incorrectly,
  2581. and the ABI changed the mangling of 'nullptr_t'.
  2582. These issues were corrected in '-fabi-version=7'.
  2583. * When mangling a function type with function-cv-qualifiers, the
  2584. un-qualified function type was incorrectly treated as a
  2585. substitution candidate.
  2586. This was fixed in '-fabi-version=8', the default for GCC 5.1.
  2587. * 'decltype(nullptr)' incorrectly had an alignment of 1, leading
  2588. to unaligned accesses. Note that this did not affect the ABI
  2589. of a function with a 'nullptr_t' parameter, as parameters have
  2590. a minimum alignment.
  2591. This was fixed in '-fabi-version=9', the default for GCC 5.2.
  2592. * Target-specific attributes that affect the identity of a type,
  2593. such as ia32 calling conventions on a function type (stdcall,
  2594. regparm, etc.), did not affect the mangled name, leading to
  2595. name collisions when function pointers were used as template
  2596. arguments.
  2597. This was fixed in '-fabi-version=10', the default for GCC 6.1.
  2598. It also warns about psABI-related changes. The known psABI changes
  2599. at this point include:
  2600. * For SysV/x86-64, unions with 'long double' members are passed
  2601. in memory as specified in psABI. For example:
  2602. union U {
  2603. long double ld;
  2604. int i;
  2605. };
  2606. 'union U' is always passed in memory.
  2607. '-Wabi-tag (C++ and Objective-C++ only)'
  2608. Warn when a type with an ABI tag is used in a context that does not
  2609. have that ABI tag. See *note C++ Attributes:: for more information
  2610. about ABI tags.
  2611. '-Wctor-dtor-privacy (C++ and Objective-C++ only)'
  2612. Warn when a class seems unusable because all the constructors or
  2613. destructors in that class are private, and it has neither friends
  2614. nor public static member functions. Also warn if there are no
  2615. non-private methods, and there's at least one private member
  2616. function that isn't a constructor or destructor.
  2617. '-Wdelete-non-virtual-dtor (C++ and Objective-C++ only)'
  2618. Warn when 'delete' is used to destroy an instance of a class that
  2619. has virtual functions and non-virtual destructor. It is unsafe to
  2620. delete an instance of a derived class through a pointer to a base
  2621. class if the base class does not have a virtual destructor. This
  2622. warning is enabled by '-Wall'.
  2623. '-Wliteral-suffix (C++ and Objective-C++ only)'
  2624. Warn when a string or character literal is followed by a ud-suffix
  2625. which does not begin with an underscore. As a conforming
  2626. extension, GCC treats such suffixes as separate preprocessing
  2627. tokens in order to maintain backwards compatibility with code that
  2628. uses formatting macros from '<inttypes.h>'. For example:
  2629. #define __STDC_FORMAT_MACROS
  2630. #include <inttypes.h>
  2631. #include <stdio.h>
  2632. int main() {
  2633. int64_t i64 = 123;
  2634. printf("My int64: %" PRId64"\n", i64);
  2635. }
  2636. In this case, 'PRId64' is treated as a separate preprocessing
  2637. token.
  2638. Additionally, warn when a user-defined literal operator is declared
  2639. with a literal suffix identifier that doesn't begin with an
  2640. underscore. Literal suffix identifiers that don't begin with an
  2641. underscore are reserved for future standardization.
  2642. This warning is enabled by default.
  2643. '-Wlto-type-mismatch'
  2644. During the link-time optimization warn about type mismatches in
  2645. global declarations from different compilation units. Requires
  2646. '-flto' to be enabled. Enabled by default.
  2647. '-Wno-narrowing (C++ and Objective-C++ only)'
  2648. For C++11 and later standards, narrowing conversions are diagnosed
  2649. by default, as required by the standard. A narrowing conversion
  2650. from a constant produces an error, and a narrowing conversion from
  2651. a non-constant produces a warning, but '-Wno-narrowing' suppresses
  2652. the diagnostic. Note that this does not affect the meaning of
  2653. well-formed code; narrowing conversions are still considered
  2654. ill-formed in SFINAE contexts.
  2655. With '-Wnarrowing' in C++98, warn when a narrowing conversion
  2656. prohibited by C++11 occurs within '{ }', e.g.
  2657. int i = { 2.2 }; // error: narrowing from double to int
  2658. This flag is included in '-Wall' and '-Wc++11-compat'.
  2659. '-Wnoexcept (C++ and Objective-C++ only)'
  2660. Warn when a noexcept-expression evaluates to false because of a
  2661. call to a function that does not have a non-throwing exception
  2662. specification (i.e. 'throw()' or 'noexcept') but is known by the
  2663. compiler to never throw an exception.
  2664. '-Wnoexcept-type (C++ and Objective-C++ only)'
  2665. Warn if the C++17 feature making 'noexcept' part of a function type
  2666. changes the mangled name of a symbol relative to C++14. Enabled by
  2667. '-Wabi' and '-Wc++17-compat'.
  2668. As an example:
  2669. template <class T> void f(T t) { t(); };
  2670. void g() noexcept;
  2671. void h() { f(g); }
  2672. In C++14, 'f' calls 'f<void(*)()>', but in C++17 it calls
  2673. 'f<void(*)()noexcept>'.
  2674. '-Wclass-memaccess (C++ and Objective-C++ only)'
  2675. Warn when the destination of a call to a raw memory function such
  2676. as 'memset' or 'memcpy' is an object of class type, and when
  2677. writing into such an object might bypass the class non-trivial or
  2678. deleted constructor or copy assignment, violate const-correctness
  2679. or encapsulation, or corrupt virtual table pointers. Modifying the
  2680. representation of such objects may violate invariants maintained by
  2681. member functions of the class. For example, the call to 'memset'
  2682. below is undefined because it modifies a non-trivial class object
  2683. and is, therefore, diagnosed. The safe way to either initialize or
  2684. clear the storage of objects of such types is by using the
  2685. appropriate constructor or assignment operator, if one is
  2686. available.
  2687. std::string str = "abc";
  2688. memset (&str, 0, sizeof str);
  2689. The '-Wclass-memaccess' option is enabled by '-Wall'. Explicitly
  2690. casting the pointer to the class object to 'void *' or to a type
  2691. that can be safely accessed by the raw memory function suppresses
  2692. the warning.
  2693. '-Wnon-virtual-dtor (C++ and Objective-C++ only)'
  2694. Warn when a class has virtual functions and an accessible
  2695. non-virtual destructor itself or in an accessible polymorphic base
  2696. class, in which case it is possible but unsafe to delete an
  2697. instance of a derived class through a pointer to the class itself
  2698. or base class. This warning is automatically enabled if '-Weffc++'
  2699. is specified.
  2700. '-Wregister (C++ and Objective-C++ only)'
  2701. Warn on uses of the 'register' storage class specifier, except when
  2702. it is part of the GNU *note Explicit Register Variables::
  2703. extension. The use of the 'register' keyword as storage class
  2704. specifier has been deprecated in C++11 and removed in C++17.
  2705. Enabled by default with '-std=c++17'.
  2706. '-Wreorder (C++ and Objective-C++ only)'
  2707. Warn when the order of member initializers given in the code does
  2708. not match the order in which they must be executed. For instance:
  2709. struct A {
  2710. int i;
  2711. int j;
  2712. A(): j (0), i (1) { }
  2713. };
  2714. The compiler rearranges the member initializers for 'i' and 'j' to
  2715. match the declaration order of the members, emitting a warning to
  2716. that effect. This warning is enabled by '-Wall'.
  2717. '-fext-numeric-literals (C++ and Objective-C++ only)'
  2718. Accept imaginary, fixed-point, or machine-defined literal number
  2719. suffixes as GNU extensions. When this option is turned off these
  2720. suffixes are treated as C++11 user-defined literal numeric
  2721. suffixes. This is on by default for all pre-C++11 dialects and all
  2722. GNU dialects: '-std=c++98', '-std=gnu++98', '-std=gnu++11',
  2723. '-std=gnu++14'. This option is off by default for ISO C++11
  2724. onwards ('-std=c++11', ...).
  2725. The following '-W...' options are not affected by '-Wall'.
  2726. '-Weffc++ (C++ and Objective-C++ only)'
  2727. Warn about violations of the following style guidelines from Scott
  2728. Meyers' 'Effective C++' series of books:
  2729. * Define a copy constructor and an assignment operator for
  2730. classes with dynamically-allocated memory.
  2731. * Prefer initialization to assignment in constructors.
  2732. * Have 'operator=' return a reference to '*this'.
  2733. * Don't try to return a reference when you must return an
  2734. object.
  2735. * Distinguish between prefix and postfix forms of increment and
  2736. decrement operators.
  2737. * Never overload '&&', '||', or ','.
  2738. This option also enables '-Wnon-virtual-dtor', which is also one of
  2739. the effective C++ recommendations. However, the check is extended
  2740. to warn about the lack of virtual destructor in accessible
  2741. non-polymorphic bases classes too.
  2742. When selecting this option, be aware that the standard library
  2743. headers do not obey all of these guidelines; use 'grep -v' to
  2744. filter out those warnings.
  2745. '-Wstrict-null-sentinel (C++ and Objective-C++ only)'
  2746. Warn about the use of an uncasted 'NULL' as sentinel. When
  2747. compiling only with GCC this is a valid sentinel, as 'NULL' is
  2748. defined to '__null'. Although it is a null pointer constant rather
  2749. than a null pointer, it is guaranteed to be of the same size as a
  2750. pointer. But this use is not portable across different compilers.
  2751. '-Wno-non-template-friend (C++ and Objective-C++ only)'
  2752. Disable warnings when non-template friend functions are declared
  2753. within a template. In very old versions of GCC that predate
  2754. implementation of the ISO standard, declarations such as 'friend
  2755. int foo(int)', where the name of the friend is an unqualified-id,
  2756. could be interpreted as a particular specialization of a template
  2757. function; the warning exists to diagnose compatibility problems,
  2758. and is enabled by default.
  2759. '-Wold-style-cast (C++ and Objective-C++ only)'
  2760. Warn if an old-style (C-style) cast to a non-void type is used
  2761. within a C++ program. The new-style casts ('dynamic_cast',
  2762. 'static_cast', 'reinterpret_cast', and 'const_cast') are less
  2763. vulnerable to unintended effects and much easier to search for.
  2764. '-Woverloaded-virtual (C++ and Objective-C++ only)'
  2765. Warn when a function declaration hides virtual functions from a
  2766. base class. For example, in:
  2767. struct A {
  2768. virtual void f();
  2769. };
  2770. struct B: public A {
  2771. void f(int);
  2772. };
  2773. the 'A' class version of 'f' is hidden in 'B', and code like:
  2774. B* b;
  2775. b->f();
  2776. fails to compile.
  2777. '-Wno-pmf-conversions (C++ and Objective-C++ only)'
  2778. Disable the diagnostic for converting a bound pointer to member
  2779. function to a plain pointer.
  2780. '-Wsign-promo (C++ and Objective-C++ only)'
  2781. Warn when overload resolution chooses a promotion from unsigned or
  2782. enumerated type to a signed type, over a conversion to an unsigned
  2783. type of the same size. Previous versions of G++ tried to preserve
  2784. unsignedness, but the standard mandates the current behavior.
  2785. '-Wtemplates (C++ and Objective-C++ only)'
  2786. Warn when a primary template declaration is encountered. Some
  2787. coding rules disallow templates, and this may be used to enforce
  2788. that rule. The warning is inactive inside a system header file,
  2789. such as the STL, so one can still use the STL. One may also
  2790. instantiate or specialize templates.
  2791. '-Wmultiple-inheritance (C++ and Objective-C++ only)'
  2792. Warn when a class is defined with multiple direct base classes.
  2793. Some coding rules disallow multiple inheritance, and this may be
  2794. used to enforce that rule. The warning is inactive inside a system
  2795. header file, such as the STL, so one can still use the STL. One may
  2796. also define classes that indirectly use multiple inheritance.
  2797. '-Wvirtual-inheritance'
  2798. Warn when a class is defined with a virtual direct base class.
  2799. Some coding rules disallow multiple inheritance, and this may be
  2800. used to enforce that rule. The warning is inactive inside a system
  2801. header file, such as the STL, so one can still use the STL. One may
  2802. also define classes that indirectly use virtual inheritance.
  2803. '-Wnamespaces'
  2804. Warn when a namespace definition is opened. Some coding rules
  2805. disallow namespaces, and this may be used to enforce that rule.
  2806. The warning is inactive inside a system header file, such as the
  2807. STL, so one can still use the STL. One may also use using
  2808. directives and qualified names.
  2809. '-Wno-terminate (C++ and Objective-C++ only)'
  2810. Disable the warning about a throw-expression that will immediately
  2811. result in a call to 'terminate'.
  2812. 
  2813. File: gcc.info, Node: Objective-C and Objective-C++ Dialect Options, Next: Diagnostic Message Formatting Options, Prev: C++ Dialect Options, Up: Invoking GCC
  2814. 3.6 Options Controlling Objective-C and Objective-C++ Dialects
  2815. ==============================================================
  2816. (NOTE: This manual does not describe the Objective-C and Objective-C++
  2817. languages themselves. *Note Language Standards Supported by GCC:
  2818. Standards, for references.)
  2819. This section describes the command-line options that are only
  2820. meaningful for Objective-C and Objective-C++ programs. You can also use
  2821. most of the language-independent GNU compiler options. For example, you
  2822. might compile a file 'some_class.m' like this:
  2823. gcc -g -fgnu-runtime -O -c some_class.m
  2824. In this example, '-fgnu-runtime' is an option meant only for Objective-C
  2825. and Objective-C++ programs; you can use the other options with any
  2826. language supported by GCC.
  2827. Note that since Objective-C is an extension of the C language,
  2828. Objective-C compilations may also use options specific to the C
  2829. front-end (e.g., '-Wtraditional'). Similarly, Objective-C++
  2830. compilations may use C++-specific options (e.g., '-Wabi').
  2831. Here is a list of options that are _only_ for compiling Objective-C and
  2832. Objective-C++ programs:
  2833. '-fconstant-string-class=CLASS-NAME'
  2834. Use CLASS-NAME as the name of the class to instantiate for each
  2835. literal string specified with the syntax '@"..."'. The default
  2836. class name is 'NXConstantString' if the GNU runtime is being used,
  2837. and 'NSConstantString' if the NeXT runtime is being used (see
  2838. below). The '-fconstant-cfstrings' option, if also present,
  2839. overrides the '-fconstant-string-class' setting and cause '@"..."'
  2840. literals to be laid out as constant CoreFoundation strings.
  2841. '-fgnu-runtime'
  2842. Generate object code compatible with the standard GNU Objective-C
  2843. runtime. This is the default for most types of systems.
  2844. '-fnext-runtime'
  2845. Generate output compatible with the NeXT runtime. This is the
  2846. default for NeXT-based systems, including Darwin and Mac OS X. The
  2847. macro '__NEXT_RUNTIME__' is predefined if (and only if) this option
  2848. is used.
  2849. '-fno-nil-receivers'
  2850. Assume that all Objective-C message dispatches ('[receiver
  2851. message:arg]') in this translation unit ensure that the receiver is
  2852. not 'nil'. This allows for more efficient entry points in the
  2853. runtime to be used. This option is only available in conjunction
  2854. with the NeXT runtime and ABI version 0 or 1.
  2855. '-fobjc-abi-version=N'
  2856. Use version N of the Objective-C ABI for the selected runtime.
  2857. This option is currently supported only for the NeXT runtime. In
  2858. that case, Version 0 is the traditional (32-bit) ABI without
  2859. support for properties and other Objective-C 2.0 additions.
  2860. Version 1 is the traditional (32-bit) ABI with support for
  2861. properties and other Objective-C 2.0 additions. Version 2 is the
  2862. modern (64-bit) ABI. If nothing is specified, the default is
  2863. Version 0 on 32-bit target machines, and Version 2 on 64-bit target
  2864. machines.
  2865. '-fobjc-call-cxx-cdtors'
  2866. For each Objective-C class, check if any of its instance variables
  2867. is a C++ object with a non-trivial default constructor. If so,
  2868. synthesize a special '- (id) .cxx_construct' instance method which
  2869. runs non-trivial default constructors on any such instance
  2870. variables, in order, and then return 'self'. Similarly, check if
  2871. any instance variable is a C++ object with a non-trivial
  2872. destructor, and if so, synthesize a special '- (void)
  2873. .cxx_destruct' method which runs all such default destructors, in
  2874. reverse order.
  2875. The '- (id) .cxx_construct' and '- (void) .cxx_destruct' methods
  2876. thusly generated only operate on instance variables declared in the
  2877. current Objective-C class, and not those inherited from
  2878. superclasses. It is the responsibility of the Objective-C runtime
  2879. to invoke all such methods in an object's inheritance hierarchy.
  2880. The '- (id) .cxx_construct' methods are invoked by the runtime
  2881. immediately after a new object instance is allocated; the '- (void)
  2882. .cxx_destruct' methods are invoked immediately before the runtime
  2883. deallocates an object instance.
  2884. As of this writing, only the NeXT runtime on Mac OS X 10.4 and
  2885. later has support for invoking the '- (id) .cxx_construct' and '-
  2886. (void) .cxx_destruct' methods.
  2887. '-fobjc-direct-dispatch'
  2888. Allow fast jumps to the message dispatcher. On Darwin this is
  2889. accomplished via the comm page.
  2890. '-fobjc-exceptions'
  2891. Enable syntactic support for structured exception handling in
  2892. Objective-C, similar to what is offered by C++. This option is
  2893. required to use the Objective-C keywords '@try', '@throw',
  2894. '@catch', '@finally' and '@synchronized'. This option is available
  2895. with both the GNU runtime and the NeXT runtime (but not available
  2896. in conjunction with the NeXT runtime on Mac OS X 10.2 and earlier).
  2897. '-fobjc-gc'
  2898. Enable garbage collection (GC) in Objective-C and Objective-C++
  2899. programs. This option is only available with the NeXT runtime; the
  2900. GNU runtime has a different garbage collection implementation that
  2901. does not require special compiler flags.
  2902. '-fobjc-nilcheck'
  2903. For the NeXT runtime with version 2 of the ABI, check for a nil
  2904. receiver in method invocations before doing the actual method call.
  2905. This is the default and can be disabled using '-fno-objc-nilcheck'.
  2906. Class methods and super calls are never checked for nil in this way
  2907. no matter what this flag is set to. Currently this flag does
  2908. nothing when the GNU runtime, or an older version of the NeXT
  2909. runtime ABI, is used.
  2910. '-fobjc-std=objc1'
  2911. Conform to the language syntax of Objective-C 1.0, the language
  2912. recognized by GCC 4.0. This only affects the Objective-C additions
  2913. to the C/C++ language; it does not affect conformance to C/C++
  2914. standards, which is controlled by the separate C/C++ dialect option
  2915. flags. When this option is used with the Objective-C or
  2916. Objective-C++ compiler, any Objective-C syntax that is not
  2917. recognized by GCC 4.0 is rejected. This is useful if you need to
  2918. make sure that your Objective-C code can be compiled with older
  2919. versions of GCC.
  2920. '-freplace-objc-classes'
  2921. Emit a special marker instructing 'ld(1)' not to statically link in
  2922. the resulting object file, and allow 'dyld(1)' to load it in at run
  2923. time instead. This is used in conjunction with the
  2924. Fix-and-Continue debugging mode, where the object file in question
  2925. may be recompiled and dynamically reloaded in the course of program
  2926. execution, without the need to restart the program itself.
  2927. Currently, Fix-and-Continue functionality is only available in
  2928. conjunction with the NeXT runtime on Mac OS X 10.3 and later.
  2929. '-fzero-link'
  2930. When compiling for the NeXT runtime, the compiler ordinarily
  2931. replaces calls to 'objc_getClass("...")' (when the name of the
  2932. class is known at compile time) with static class references that
  2933. get initialized at load time, which improves run-time performance.
  2934. Specifying the '-fzero-link' flag suppresses this behavior and
  2935. causes calls to 'objc_getClass("...")' to be retained. This is
  2936. useful in Zero-Link debugging mode, since it allows for individual
  2937. class implementations to be modified during program execution. The
  2938. GNU runtime currently always retains calls to
  2939. 'objc_get_class("...")' regardless of command-line options.
  2940. '-fno-local-ivars'
  2941. By default instance variables in Objective-C can be accessed as if
  2942. they were local variables from within the methods of the class
  2943. they're declared in. This can lead to shadowing between instance
  2944. variables and other variables declared either locally inside a
  2945. class method or globally with the same name. Specifying the
  2946. '-fno-local-ivars' flag disables this behavior thus avoiding
  2947. variable shadowing issues.
  2948. '-fivar-visibility=[public|protected|private|package]'
  2949. Set the default instance variable visibility to the specified
  2950. option so that instance variables declared outside the scope of any
  2951. access modifier directives default to the specified visibility.
  2952. '-gen-decls'
  2953. Dump interface declarations for all classes seen in the source file
  2954. to a file named 'SOURCENAME.decl'.
  2955. '-Wassign-intercept (Objective-C and Objective-C++ only)'
  2956. Warn whenever an Objective-C assignment is being intercepted by the
  2957. garbage collector.
  2958. '-Wno-protocol (Objective-C and Objective-C++ only)'
  2959. If a class is declared to implement a protocol, a warning is issued
  2960. for every method in the protocol that is not implemented by the
  2961. class. The default behavior is to issue a warning for every method
  2962. not explicitly implemented in the class, even if a method
  2963. implementation is inherited from the superclass. If you use the
  2964. '-Wno-protocol' option, then methods inherited from the superclass
  2965. are considered to be implemented, and no warning is issued for
  2966. them.
  2967. '-Wselector (Objective-C and Objective-C++ only)'
  2968. Warn if multiple methods of different types for the same selector
  2969. are found during compilation. The check is performed on the list
  2970. of methods in the final stage of compilation. Additionally, a
  2971. check is performed for each selector appearing in a
  2972. '@selector(...)' expression, and a corresponding method for that
  2973. selector has been found during compilation. Because these checks
  2974. scan the method table only at the end of compilation, these
  2975. warnings are not produced if the final stage of compilation is not
  2976. reached, for example because an error is found during compilation,
  2977. or because the '-fsyntax-only' option is being used.
  2978. '-Wstrict-selector-match (Objective-C and Objective-C++ only)'
  2979. Warn if multiple methods with differing argument and/or return
  2980. types are found for a given selector when attempting to send a
  2981. message using this selector to a receiver of type 'id' or 'Class'.
  2982. When this flag is off (which is the default behavior), the compiler
  2983. omits such warnings if any differences found are confined to types
  2984. that share the same size and alignment.
  2985. '-Wundeclared-selector (Objective-C and Objective-C++ only)'
  2986. Warn if a '@selector(...)' expression referring to an undeclared
  2987. selector is found. A selector is considered undeclared if no
  2988. method with that name has been declared before the '@selector(...)'
  2989. expression, either explicitly in an '@interface' or '@protocol'
  2990. declaration, or implicitly in an '@implementation' section. This
  2991. option always performs its checks as soon as a '@selector(...)'
  2992. expression is found, while '-Wselector' only performs its checks in
  2993. the final stage of compilation. This also enforces the coding
  2994. style convention that methods and selectors must be declared before
  2995. being used.
  2996. '-print-objc-runtime-info'
  2997. Generate C header describing the largest structure that is passed
  2998. by value, if any.
  2999. 
  3000. File: gcc.info, Node: Diagnostic Message Formatting Options, Next: Warning Options, Prev: Objective-C and Objective-C++ Dialect Options, Up: Invoking GCC
  3001. 3.7 Options to Control Diagnostic Messages Formatting
  3002. =====================================================
  3003. Traditionally, diagnostic messages have been formatted irrespective of
  3004. the output device's aspect (e.g. its width, ...). You can use the
  3005. options described below to control the formatting algorithm for
  3006. diagnostic messages, e.g. how many characters per line, how often source
  3007. location information should be reported. Note that some language front
  3008. ends may not honor these options.
  3009. '-fmessage-length=N'
  3010. Try to format error messages so that they fit on lines of about N
  3011. characters. If N is zero, then no line-wrapping is done; each
  3012. error message appears on a single line. This is the default for
  3013. all front ends.
  3014. '-fdiagnostics-show-location=once'
  3015. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3016. messages reporter to emit source location information _once_; that
  3017. is, in case the message is too long to fit on a single physical
  3018. line and has to be wrapped, the source location won't be emitted
  3019. (as prefix) again, over and over, in subsequent continuation lines.
  3020. This is the default behavior.
  3021. '-fdiagnostics-show-location=every-line'
  3022. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3023. messages reporter to emit the same source location information (as
  3024. prefix) for physical lines that result from the process of breaking
  3025. a message which is too long to fit on a single line.
  3026. '-fdiagnostics-color[=WHEN]'
  3027. '-fno-diagnostics-color'
  3028. Use color in diagnostics. WHEN is 'never', 'always', or 'auto'.
  3029. The default depends on how the compiler has been configured, it can
  3030. be any of the above WHEN options or also 'never' if 'GCC_COLORS'
  3031. environment variable isn't present in the environment, and 'auto'
  3032. otherwise. 'auto' means to use color only when the standard error
  3033. is a terminal. The forms '-fdiagnostics-color' and
  3034. '-fno-diagnostics-color' are aliases for
  3035. '-fdiagnostics-color=always' and '-fdiagnostics-color=never',
  3036. respectively.
  3037. The colors are defined by the environment variable 'GCC_COLORS'.
  3038. Its value is a colon-separated list of capabilities and Select
  3039. Graphic Rendition (SGR) substrings. SGR commands are interpreted
  3040. by the terminal or terminal emulator. (See the section in the
  3041. documentation of your text terminal for permitted values and their
  3042. meanings as character attributes.) These substring values are
  3043. integers in decimal representation and can be concatenated with
  3044. semicolons. Common values to concatenate include '1' for bold, '4'
  3045. for underline, '5' for blink, '7' for inverse, '39' for default
  3046. foreground color, '30' to '37' for foreground colors, '90' to '97'
  3047. for 16-color mode foreground colors, '38;5;0' to '38;5;255' for
  3048. 88-color and 256-color modes foreground colors, '49' for default
  3049. background color, '40' to '47' for background colors, '100' to
  3050. '107' for 16-color mode background colors, and '48;5;0' to
  3051. '48;5;255' for 88-color and 256-color modes background colors.
  3052. The default 'GCC_COLORS' is
  3053. error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\
  3054. quote=01:fixit-insert=32:fixit-delete=31:\
  3055. diff-filename=01:diff-hunk=32:diff-delete=31:diff-insert=32:\
  3056. type-diff=01;32
  3057. where '01;31' is bold red, '01;35' is bold magenta, '01;36' is bold
  3058. cyan, '32' is green, '34' is blue, '01' is bold, and '31' is red.
  3059. Setting 'GCC_COLORS' to the empty string disables colors.
  3060. Supported capabilities are as follows.
  3061. 'error='
  3062. SGR substring for error: markers.
  3063. 'warning='
  3064. SGR substring for warning: markers.
  3065. 'note='
  3066. SGR substring for note: markers.
  3067. 'range1='
  3068. SGR substring for first additional range.
  3069. 'range2='
  3070. SGR substring for second additional range.
  3071. 'locus='
  3072. SGR substring for location information, 'file:line' or
  3073. 'file:line:column' etc.
  3074. 'quote='
  3075. SGR substring for information printed within quotes.
  3076. 'fixit-insert='
  3077. SGR substring for fix-it hints suggesting text to be inserted
  3078. or replaced.
  3079. 'fixit-delete='
  3080. SGR substring for fix-it hints suggesting text to be deleted.
  3081. 'diff-filename='
  3082. SGR substring for filename headers within generated patches.
  3083. 'diff-hunk='
  3084. SGR substring for the starts of hunks within generated
  3085. patches.
  3086. 'diff-delete='
  3087. SGR substring for deleted lines within generated patches.
  3088. 'diff-insert='
  3089. SGR substring for inserted lines within generated patches.
  3090. 'type-diff='
  3091. SGR substring for highlighting mismatching types within
  3092. template arguments in the C++ frontend.
  3093. '-fno-diagnostics-show-option'
  3094. By default, each diagnostic emitted includes text indicating the
  3095. command-line option that directly controls the diagnostic (if such
  3096. an option is known to the diagnostic machinery). Specifying the
  3097. '-fno-diagnostics-show-option' flag suppresses that behavior.
  3098. '-fno-diagnostics-show-caret'
  3099. By default, each diagnostic emitted includes the original source
  3100. line and a caret '^' indicating the column. This option suppresses
  3101. this information. The source line is truncated to N characters, if
  3102. the '-fmessage-length=n' option is given. When the output is done
  3103. to the terminal, the width is limited to the width given by the
  3104. 'COLUMNS' environment variable or, if not set, to the terminal
  3105. width.
  3106. '-fdiagnostics-parseable-fixits'
  3107. Emit fix-it hints in a machine-parseable format, suitable for
  3108. consumption by IDEs. For each fix-it, a line will be printed after
  3109. the relevant diagnostic, starting with the string "fix-it:". For
  3110. example:
  3111. fix-it:"test.c":{45:3-45:21}:"gtk_widget_show_all"
  3112. The location is expressed as a half-open range, expressed as a
  3113. count of bytes, starting at byte 1 for the initial column. In the
  3114. above example, bytes 3 through 20 of line 45 of "test.c" are to be
  3115. replaced with the given string:
  3116. 00000000011111111112222222222
  3117. 12345678901234567890123456789
  3118. gtk_widget_showall (dlg);
  3119. ^^^^^^^^^^^^^^^^^^
  3120. gtk_widget_show_all
  3121. The filename and replacement string escape backslash as "\\", tab
  3122. as "\t", newline as "\n", double quotes as "\"", non-printable
  3123. characters as octal (e.g. vertical tab as "\013").
  3124. An empty replacement string indicates that the given range is to be
  3125. removed. An empty range (e.g. "45:3-45:3") indicates that the
  3126. string is to be inserted at the given position.
  3127. '-fdiagnostics-generate-patch'
  3128. Print fix-it hints to stderr in unified diff format, after any
  3129. diagnostics are printed. For example:
  3130. --- test.c
  3131. +++ test.c
  3132. @ -42,5 +42,5 @
  3133. void show_cb(GtkDialog *dlg)
  3134. {
  3135. - gtk_widget_showall(dlg);
  3136. + gtk_widget_show_all(dlg);
  3137. }
  3138. The diff may or may not be colorized, following the same rules as
  3139. for diagnostics (see '-fdiagnostics-color').
  3140. '-fdiagnostics-show-template-tree'
  3141. In the C++ frontend, when printing diagnostics showing mismatching
  3142. template types, such as:
  3143. could not convert 'std::map<int, std::vector<double> >()'
  3144. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3145. the '-fdiagnostics-show-template-tree' flag enables printing a
  3146. tree-like structure showing the common and differing parts of the
  3147. types, such as:
  3148. map<
  3149. [...],
  3150. vector<
  3151. [double != float]>>
  3152. The parts that differ are highlighted with color ("double" and
  3153. "float" in this case).
  3154. '-fno-elide-type'
  3155. By default when the C++ frontend prints diagnostics showing
  3156. mismatching template types, common parts of the types are printed
  3157. as "[...]" to simplify the error message. For example:
  3158. could not convert 'std::map<int, std::vector<double> >()'
  3159. from 'map<[...],vector<double>>' to 'map<[...],vector<float>>
  3160. Specifying the '-fno-elide-type' flag suppresses that behavior.
  3161. This flag also affects the output of the
  3162. '-fdiagnostics-show-template-tree' flag.
  3163. '-fno-show-column'
  3164. Do not print column numbers in diagnostics. This may be necessary
  3165. if diagnostics are being scanned by a program that does not
  3166. understand the column numbers, such as 'dejagnu'.
  3167. 
  3168. File: gcc.info, Node: Warning Options, Next: Debugging Options, Prev: Diagnostic Message Formatting Options, Up: Invoking GCC
  3169. 3.8 Options to Request or Suppress Warnings
  3170. ===========================================
  3171. Warnings are diagnostic messages that report constructions that are not
  3172. inherently erroneous but that are risky or suggest there may have been
  3173. an error.
  3174. The following language-independent options do not enable specific
  3175. warnings but control the kinds of diagnostics produced by GCC.
  3176. '-fsyntax-only'
  3177. Check the code for syntax errors, but don't do anything beyond
  3178. that.
  3179. '-fmax-errors=N'
  3180. Limits the maximum number of error messages to N, at which point
  3181. GCC bails out rather than attempting to continue processing the
  3182. source code. If N is 0 (the default), there is no limit on the
  3183. number of error messages produced. If '-Wfatal-errors' is also
  3184. specified, then '-Wfatal-errors' takes precedence over this option.
  3185. '-w'
  3186. Inhibit all warning messages.
  3187. '-Werror'
  3188. Make all warnings into errors.
  3189. '-Werror='
  3190. Make the specified warning into an error. The specifier for a
  3191. warning is appended; for example '-Werror=switch' turns the
  3192. warnings controlled by '-Wswitch' into errors. This switch takes a
  3193. negative form, to be used to negate '-Werror' for specific
  3194. warnings; for example '-Wno-error=switch' makes '-Wswitch' warnings
  3195. not be errors, even when '-Werror' is in effect.
  3196. The warning message for each controllable warning includes the
  3197. option that controls the warning. That option can then be used
  3198. with '-Werror=' and '-Wno-error=' as described above. (Printing of
  3199. the option in the warning message can be disabled using the
  3200. '-fno-diagnostics-show-option' flag.)
  3201. Note that specifying '-Werror='FOO automatically implies '-W'FOO.
  3202. However, '-Wno-error='FOO does not imply anything.
  3203. '-Wfatal-errors'
  3204. This option causes the compiler to abort compilation on the first
  3205. error occurred rather than trying to keep going and printing
  3206. further error messages.
  3207. You can request many specific warnings with options beginning with
  3208. '-W', for example '-Wimplicit' to request warnings on implicit
  3209. declarations. Each of these specific warning options also has a
  3210. negative form beginning '-Wno-' to turn off warnings; for example,
  3211. '-Wno-implicit'. This manual lists only one of the two forms, whichever
  3212. is not the default. For further language-specific options also refer to
  3213. *note C++ Dialect Options:: and *note Objective-C and Objective-C++
  3214. Dialect Options::.
  3215. Some options, such as '-Wall' and '-Wextra', turn on other options,
  3216. such as '-Wunused', which may turn on further options, such as
  3217. '-Wunused-value'. The combined effect of positive and negative forms is
  3218. that more specific options have priority over less specific ones,
  3219. independently of their position in the command-line. For options of the
  3220. same specificity, the last one takes effect. Options enabled or
  3221. disabled via pragmas (*note Diagnostic Pragmas::) take effect as if they
  3222. appeared at the end of the command-line.
  3223. When an unrecognized warning option is requested (e.g.,
  3224. '-Wunknown-warning'), GCC emits a diagnostic stating that the option is
  3225. not recognized. However, if the '-Wno-' form is used, the behavior is
  3226. slightly different: no diagnostic is produced for '-Wno-unknown-warning'
  3227. unless other diagnostics are being produced. This allows the use of new
  3228. '-Wno-' options with old compilers, but if something goes wrong, the
  3229. compiler warns that an unrecognized option is present.
  3230. '-Wpedantic'
  3231. '-pedantic'
  3232. Issue all the warnings demanded by strict ISO C and ISO C++; reject
  3233. all programs that use forbidden extensions, and some other programs
  3234. that do not follow ISO C and ISO C++. For ISO C, follows the
  3235. version of the ISO C standard specified by any '-std' option used.
  3236. Valid ISO C and ISO C++ programs should compile properly with or
  3237. without this option (though a rare few require '-ansi' or a '-std'
  3238. option specifying the required version of ISO C). However, without
  3239. this option, certain GNU extensions and traditional C and C++
  3240. features are supported as well. With this option, they are
  3241. rejected.
  3242. '-Wpedantic' does not cause warning messages for use of the
  3243. alternate keywords whose names begin and end with '__'. Pedantic
  3244. warnings are also disabled in the expression that follows
  3245. '__extension__'. However, only system header files should use
  3246. these escape routes; application programs should avoid them. *Note
  3247. Alternate Keywords::.
  3248. Some users try to use '-Wpedantic' to check programs for strict ISO
  3249. C conformance. They soon find that it does not do quite what they
  3250. want: it finds some non-ISO practices, but not all--only those for
  3251. which ISO C _requires_ a diagnostic, and some others for which
  3252. diagnostics have been added.
  3253. A feature to report any failure to conform to ISO C might be useful
  3254. in some instances, but would require considerable additional work
  3255. and would be quite different from '-Wpedantic'. We don't have
  3256. plans to support such a feature in the near future.
  3257. Where the standard specified with '-std' represents a GNU extended
  3258. dialect of C, such as 'gnu90' or 'gnu99', there is a corresponding
  3259. "base standard", the version of ISO C on which the GNU extended
  3260. dialect is based. Warnings from '-Wpedantic' are given where they
  3261. are required by the base standard. (It does not make sense for
  3262. such warnings to be given only for features not in the specified
  3263. GNU C dialect, since by definition the GNU dialects of C include
  3264. all features the compiler supports with the given option, and there
  3265. would be nothing to warn about.)
  3266. '-pedantic-errors'
  3267. Give an error whenever the "base standard" (see '-Wpedantic')
  3268. requires a diagnostic, in some cases where there is undefined
  3269. behavior at compile-time and in some other cases that do not
  3270. prevent compilation of programs that are valid according to the
  3271. standard. This is not equivalent to '-Werror=pedantic', since
  3272. there are errors enabled by this option and not enabled by the
  3273. latter and vice versa.
  3274. '-Wall'
  3275. This enables all the warnings about constructions that some users
  3276. consider questionable, and that are easy to avoid (or modify to
  3277. prevent the warning), even in conjunction with macros. This also
  3278. enables some language-specific warnings described in *note C++
  3279. Dialect Options:: and *note Objective-C and Objective-C++ Dialect
  3280. Options::.
  3281. '-Wall' turns on the following warning flags:
  3282. -Waddress
  3283. -Warray-bounds=1 (only with -O2)
  3284. -Wbool-compare
  3285. -Wbool-operation
  3286. -Wc++11-compat -Wc++14-compat
  3287. -Wcatch-value (C++ and Objective-C++ only)
  3288. -Wchar-subscripts
  3289. -Wcomment
  3290. -Wduplicate-decl-specifier (C and Objective-C only)
  3291. -Wenum-compare (in C/ObjC; this is on by default in C++)
  3292. -Wformat
  3293. -Wint-in-bool-context
  3294. -Wimplicit (C and Objective-C only)
  3295. -Wimplicit-int (C and Objective-C only)
  3296. -Wimplicit-function-declaration (C and Objective-C only)
  3297. -Winit-self (only for C++)
  3298. -Wlogical-not-parentheses
  3299. -Wmain (only for C/ObjC and unless -ffreestanding)
  3300. -Wmaybe-uninitialized
  3301. -Wmemset-elt-size
  3302. -Wmemset-transposed-args
  3303. -Wmisleading-indentation (only for C/C++)
  3304. -Wmissing-attributes
  3305. -Wmissing-braces (only for C/ObjC)
  3306. -Wmultistatement-macros
  3307. -Wnarrowing (only for C++)
  3308. -Wnonnull
  3309. -Wnonnull-compare
  3310. -Wopenmp-simd
  3311. -Wparentheses
  3312. -Wpointer-sign
  3313. -Wreorder
  3314. -Wrestrict
  3315. -Wreturn-type
  3316. -Wsequence-point
  3317. -Wsign-compare (only in C++)
  3318. -Wsizeof-pointer-div
  3319. -Wsizeof-pointer-memaccess
  3320. -Wstrict-aliasing
  3321. -Wstrict-overflow=1
  3322. -Wstringop-truncation
  3323. -Wswitch
  3324. -Wtautological-compare
  3325. -Wtrigraphs
  3326. -Wuninitialized
  3327. -Wunknown-pragmas
  3328. -Wunused-function
  3329. -Wunused-label
  3330. -Wunused-value
  3331. -Wunused-variable
  3332. -Wvolatile-register-var
  3333. Note that some warning flags are not implied by '-Wall'. Some of
  3334. them warn about constructions that users generally do not consider
  3335. questionable, but which occasionally you might wish to check for;
  3336. others warn about constructions that are necessary or hard to avoid
  3337. in some cases, and there is no simple way to modify the code to
  3338. suppress the warning. Some of them are enabled by '-Wextra' but
  3339. many of them must be enabled individually.
  3340. '-Wextra'
  3341. This enables some extra warning flags that are not enabled by
  3342. '-Wall'. (This option used to be called '-W'. The older name is
  3343. still supported, but the newer name is more descriptive.)
  3344. -Wclobbered
  3345. -Wcast-function-type
  3346. -Wempty-body
  3347. -Wignored-qualifiers
  3348. -Wimplicit-fallthrough=3
  3349. -Wmissing-field-initializers
  3350. -Wmissing-parameter-type (C only)
  3351. -Wold-style-declaration (C only)
  3352. -Woverride-init
  3353. -Wsign-compare (C only)
  3354. -Wtype-limits
  3355. -Wuninitialized
  3356. -Wshift-negative-value (in C++03 and in C99 and newer)
  3357. -Wunused-parameter (only with -Wunused or -Wall)
  3358. -Wunused-but-set-parameter (only with -Wunused or -Wall)
  3359. The option '-Wextra' also prints warning messages for the following
  3360. cases:
  3361. * A pointer is compared against integer zero with '<', '<=',
  3362. '>', or '>='.
  3363. * (C++ only) An enumerator and a non-enumerator both appear in a
  3364. conditional expression.
  3365. * (C++ only) Ambiguous virtual bases.
  3366. * (C++ only) Subscripting an array that has been declared
  3367. 'register'.
  3368. * (C++ only) Taking the address of a variable that has been
  3369. declared 'register'.
  3370. * (C++ only) A base class is not initialized in the copy
  3371. constructor of a derived class.
  3372. '-Wchar-subscripts'
  3373. Warn if an array subscript has type 'char'. This is a common cause
  3374. of error, as programmers often forget that this type is signed on
  3375. some machines. This warning is enabled by '-Wall'.
  3376. '-Wchkp'
  3377. Warn about an invalid memory access that is found by Pointer Bounds
  3378. Checker ('-fcheck-pointer-bounds').
  3379. '-Wno-coverage-mismatch'
  3380. Warn if feedback profiles do not match when using the
  3381. '-fprofile-use' option. If a source file is changed between
  3382. compiling with '-fprofile-gen' and with '-fprofile-use', the files
  3383. with the profile feedback can fail to match the source file and GCC
  3384. cannot use the profile feedback information. By default, this
  3385. warning is enabled and is treated as an error.
  3386. '-Wno-coverage-mismatch' can be used to disable the warning or
  3387. '-Wno-error=coverage-mismatch' can be used to disable the error.
  3388. Disabling the error for this warning can result in poorly optimized
  3389. code and is useful only in the case of very minor changes such as
  3390. bug fixes to an existing code-base. Completely disabling the
  3391. warning is not recommended.
  3392. '-Wno-cpp'
  3393. (C, Objective-C, C++, Objective-C++ and Fortran only)
  3394. Suppress warning messages emitted by '#warning' directives.
  3395. '-Wdouble-promotion (C, C++, Objective-C and Objective-C++ only)'
  3396. Give a warning when a value of type 'float' is implicitly promoted
  3397. to 'double'. CPUs with a 32-bit "single-precision" floating-point
  3398. unit implement 'float' in hardware, but emulate 'double' in
  3399. software. On such a machine, doing computations using 'double'
  3400. values is much more expensive because of the overhead required for
  3401. software emulation.
  3402. It is easy to accidentally do computations with 'double' because
  3403. floating-point literals are implicitly of type 'double'. For
  3404. example, in:
  3405. float area(float radius)
  3406. {
  3407. return 3.14159 * radius * radius;
  3408. }
  3409. the compiler performs the entire computation with 'double' because
  3410. the floating-point literal is a 'double'.
  3411. '-Wduplicate-decl-specifier (C and Objective-C only)'
  3412. Warn if a declaration has duplicate 'const', 'volatile', 'restrict'
  3413. or '_Atomic' specifier. This warning is enabled by '-Wall'.
  3414. '-Wformat'
  3415. '-Wformat=N'
  3416. Check calls to 'printf' and 'scanf', etc., to make sure that the
  3417. arguments supplied have types appropriate to the format string
  3418. specified, and that the conversions specified in the format string
  3419. make sense. This includes standard functions, and others specified
  3420. by format attributes (*note Function Attributes::), in the
  3421. 'printf', 'scanf', 'strftime' and 'strfmon' (an X/Open extension,
  3422. not in the C standard) families (or other target-specific
  3423. families). Which functions are checked without format attributes
  3424. having been specified depends on the standard version selected, and
  3425. such checks of functions without the attribute specified are
  3426. disabled by '-ffreestanding' or '-fno-builtin'.
  3427. The formats are checked against the format features supported by
  3428. GNU libc version 2.2. These include all ISO C90 and C99 features,
  3429. as well as features from the Single Unix Specification and some BSD
  3430. and GNU extensions. Other library implementations may not support
  3431. all these features; GCC does not support warning about features
  3432. that go beyond a particular library's limitations. However, if
  3433. '-Wpedantic' is used with '-Wformat', warnings are given about
  3434. format features not in the selected standard version (but not for
  3435. 'strfmon' formats, since those are not in any version of the C
  3436. standard). *Note Options Controlling C Dialect: C Dialect Options.
  3437. '-Wformat=1'
  3438. '-Wformat'
  3439. Option '-Wformat' is equivalent to '-Wformat=1', and
  3440. '-Wno-format' is equivalent to '-Wformat=0'. Since '-Wformat'
  3441. also checks for null format arguments for several functions,
  3442. '-Wformat' also implies '-Wnonnull'. Some aspects of this
  3443. level of format checking can be disabled by the options:
  3444. '-Wno-format-contains-nul', '-Wno-format-extra-args', and
  3445. '-Wno-format-zero-length'. '-Wformat' is enabled by '-Wall'.
  3446. '-Wno-format-contains-nul'
  3447. If '-Wformat' is specified, do not warn about format strings
  3448. that contain NUL bytes.
  3449. '-Wno-format-extra-args'
  3450. If '-Wformat' is specified, do not warn about excess arguments
  3451. to a 'printf' or 'scanf' format function. The C standard
  3452. specifies that such arguments are ignored.
  3453. Where the unused arguments lie between used arguments that are
  3454. specified with '$' operand number specifications, normally
  3455. warnings are still given, since the implementation could not
  3456. know what type to pass to 'va_arg' to skip the unused
  3457. arguments. However, in the case of 'scanf' formats, this
  3458. option suppresses the warning if the unused arguments are all
  3459. pointers, since the Single Unix Specification says that such
  3460. unused arguments are allowed.
  3461. '-Wformat-overflow'
  3462. '-Wformat-overflow=LEVEL'
  3463. Warn about calls to formatted input/output functions such as
  3464. 'sprintf' and 'vsprintf' that might overflow the destination
  3465. buffer. When the exact number of bytes written by a format
  3466. directive cannot be determined at compile-time it is estimated
  3467. based on heuristics that depend on the LEVEL argument and on
  3468. optimization. While enabling optimization will in most cases
  3469. improve the accuracy of the warning, it may also result in
  3470. false positives.
  3471. '-Wformat-overflow'
  3472. '-Wformat-overflow=1'
  3473. Level 1 of '-Wformat-overflow' enabled by '-Wformat'
  3474. employs a conservative approach that warns only about
  3475. calls that most likely overflow the buffer. At this
  3476. level, numeric arguments to format directives with
  3477. unknown values are assumed to have the value of one, and
  3478. strings of unknown length to be empty. Numeric arguments
  3479. that are known to be bounded to a subrange of their type,
  3480. or string arguments whose output is bounded either by
  3481. their directive's precision or by a finite set of string
  3482. literals, are assumed to take on the value within the
  3483. range that results in the most bytes on output. For
  3484. example, the call to 'sprintf' below is diagnosed because
  3485. even with both A and B equal to zero, the terminating NUL
  3486. character (''\0'') appended by the function to the
  3487. destination buffer will be written past its end.
  3488. Increasing the size of the buffer by a single byte is
  3489. sufficient to avoid the warning, though it may not be
  3490. sufficient to avoid the overflow.
  3491. void f (int a, int b)
  3492. {
  3493. char buf [13];
  3494. sprintf (buf, "a = %i, b = %i\n", a, b);
  3495. }
  3496. '-Wformat-overflow=2'
  3497. Level 2 warns also about calls that might overflow the
  3498. destination buffer given an argument of sufficient length
  3499. or magnitude. At level 2, unknown numeric arguments are
  3500. assumed to have the minimum representable value for
  3501. signed types with a precision greater than 1, and the
  3502. maximum representable value otherwise. Unknown string
  3503. arguments whose length cannot be assumed to be bounded
  3504. either by the directive's precision, or by a finite set
  3505. of string literals they may evaluate to, or the character
  3506. array they may point to, are assumed to be 1 character
  3507. long.
  3508. At level 2, the call in the example above is again
  3509. diagnosed, but this time because with A equal to a 32-bit
  3510. 'INT_MIN' the first '%i' directive will write some of its
  3511. digits beyond the end of the destination buffer. To make
  3512. the call safe regardless of the values of the two
  3513. variables, the size of the destination buffer must be
  3514. increased to at least 34 bytes. GCC includes the minimum
  3515. size of the buffer in an informational note following the
  3516. warning.
  3517. An alternative to increasing the size of the destination
  3518. buffer is to constrain the range of formatted values.
  3519. The maximum length of string arguments can be bounded by
  3520. specifying the precision in the format directive. When
  3521. numeric arguments of format directives can be assumed to
  3522. be bounded by less than the precision of their type,
  3523. choosing an appropriate length modifier to the format
  3524. specifier will reduce the required buffer size. For
  3525. example, if A and B in the example above can be assumed
  3526. to be within the precision of the 'short int' type then
  3527. using either the '%hi' format directive or casting the
  3528. argument to 'short' reduces the maximum required size of
  3529. the buffer to 24 bytes.
  3530. void f (int a, int b)
  3531. {
  3532. char buf [23];
  3533. sprintf (buf, "a = %hi, b = %i\n", a, (short)b);
  3534. }
  3535. '-Wno-format-zero-length'
  3536. If '-Wformat' is specified, do not warn about zero-length
  3537. formats. The C standard specifies that zero-length formats
  3538. are allowed.
  3539. '-Wformat=2'
  3540. Enable '-Wformat' plus additional format checks. Currently
  3541. equivalent to '-Wformat -Wformat-nonliteral -Wformat-security
  3542. -Wformat-y2k'.
  3543. '-Wformat-nonliteral'
  3544. If '-Wformat' is specified, also warn if the format string is
  3545. not a string literal and so cannot be checked, unless the
  3546. format function takes its format arguments as a 'va_list'.
  3547. '-Wformat-security'
  3548. If '-Wformat' is specified, also warn about uses of format
  3549. functions that represent possible security problems. At
  3550. present, this warns about calls to 'printf' and 'scanf'
  3551. functions where the format string is not a string literal and
  3552. there are no format arguments, as in 'printf (foo);'. This
  3553. may be a security hole if the format string came from
  3554. untrusted input and contains '%n'. (This is currently a
  3555. subset of what '-Wformat-nonliteral' warns about, but in
  3556. future warnings may be added to '-Wformat-security' that are
  3557. not included in '-Wformat-nonliteral'.)
  3558. '-Wformat-signedness'
  3559. If '-Wformat' is specified, also warn if the format string
  3560. requires an unsigned argument and the argument is signed and
  3561. vice versa.
  3562. '-Wformat-truncation'
  3563. '-Wformat-truncation=LEVEL'
  3564. Warn about calls to formatted input/output functions such as
  3565. 'snprintf' and 'vsnprintf' that might result in output
  3566. truncation. When the exact number of bytes written by a
  3567. format directive cannot be determined at compile-time it is
  3568. estimated based on heuristics that depend on the LEVEL
  3569. argument and on optimization. While enabling optimization
  3570. will in most cases improve the accuracy of the warning, it may
  3571. also result in false positives. Except as noted otherwise,
  3572. the option uses the same logic '-Wformat-overflow'.
  3573. '-Wformat-truncation'
  3574. '-Wformat-truncation=1'
  3575. Level 1 of '-Wformat-truncation' enabled by '-Wformat'
  3576. employs a conservative approach that warns only about
  3577. calls to bounded functions whose return value is unused
  3578. and that will most likely result in output truncation.
  3579. '-Wformat-truncation=2'
  3580. Level 2 warns also about calls to bounded functions whose
  3581. return value is used and that might result in truncation
  3582. given an argument of sufficient length or magnitude.
  3583. '-Wformat-y2k'
  3584. If '-Wformat' is specified, also warn about 'strftime' formats
  3585. that may yield only a two-digit year.
  3586. '-Wnonnull'
  3587. Warn about passing a null pointer for arguments marked as requiring
  3588. a non-null value by the 'nonnull' function attribute.
  3589. '-Wnonnull' is included in '-Wall' and '-Wformat'. It can be
  3590. disabled with the '-Wno-nonnull' option.
  3591. '-Wnonnull-compare'
  3592. Warn when comparing an argument marked with the 'nonnull' function
  3593. attribute against null inside the function.
  3594. '-Wnonnull-compare' is included in '-Wall'. It can be disabled
  3595. with the '-Wno-nonnull-compare' option.
  3596. '-Wnull-dereference'
  3597. Warn if the compiler detects paths that trigger erroneous or
  3598. undefined behavior due to dereferencing a null pointer. This
  3599. option is only active when '-fdelete-null-pointer-checks' is
  3600. active, which is enabled by optimizations in most targets. The
  3601. precision of the warnings depends on the optimization options used.
  3602. '-Winit-self (C, C++, Objective-C and Objective-C++ only)'
  3603. Warn about uninitialized variables that are initialized with
  3604. themselves. Note this option can only be used with the
  3605. '-Wuninitialized' option.
  3606. For example, GCC warns about 'i' being uninitialized in the
  3607. following snippet only when '-Winit-self' has been specified:
  3608. int f()
  3609. {
  3610. int i = i;
  3611. return i;
  3612. }
  3613. This warning is enabled by '-Wall' in C++.
  3614. '-Wimplicit-int (C and Objective-C only)'
  3615. Warn when a declaration does not specify a type. This warning is
  3616. enabled by '-Wall'.
  3617. '-Wimplicit-function-declaration (C and Objective-C only)'
  3618. Give a warning whenever a function is used before being declared.
  3619. In C99 mode ('-std=c99' or '-std=gnu99'), this warning is enabled
  3620. by default and it is made into an error by '-pedantic-errors'.
  3621. This warning is also enabled by '-Wall'.
  3622. '-Wimplicit (C and Objective-C only)'
  3623. Same as '-Wimplicit-int' and '-Wimplicit-function-declaration'.
  3624. This warning is enabled by '-Wall'.
  3625. '-Wimplicit-fallthrough'
  3626. '-Wimplicit-fallthrough' is the same as '-Wimplicit-fallthrough=3'
  3627. and '-Wno-implicit-fallthrough' is the same as
  3628. '-Wimplicit-fallthrough=0'.
  3629. '-Wimplicit-fallthrough=N'
  3630. Warn when a switch case falls through. For example:
  3631. switch (cond)
  3632. {
  3633. case 1:
  3634. a = 1;
  3635. break;
  3636. case 2:
  3637. a = 2;
  3638. case 3:
  3639. a = 3;
  3640. break;
  3641. }
  3642. This warning does not warn when the last statement of a case cannot
  3643. fall through, e.g. when there is a return statement or a call to
  3644. function declared with the noreturn attribute.
  3645. '-Wimplicit-fallthrough=' also takes into account control flow
  3646. statements, such as ifs, and only warns when appropriate. E.g.
  3647. switch (cond)
  3648. {
  3649. case 1:
  3650. if (i > 3) {
  3651. bar (5);
  3652. break;
  3653. } else if (i < 1) {
  3654. bar (0);
  3655. } else
  3656. return;
  3657. default:
  3658. ...
  3659. }
  3660. Since there are occasions where a switch case fall through is
  3661. desirable, GCC provides an attribute, '__attribute__
  3662. ((fallthrough))', that is to be used along with a null statement to
  3663. suppress this warning that would normally occur:
  3664. switch (cond)
  3665. {
  3666. case 1:
  3667. bar (0);
  3668. __attribute__ ((fallthrough));
  3669. default:
  3670. ...
  3671. }
  3672. C++17 provides a standard way to suppress the
  3673. '-Wimplicit-fallthrough' warning using '[[fallthrough]];' instead
  3674. of the GNU attribute. In C++11 or C++14 users can use
  3675. '[[gnu::fallthrough]];', which is a GNU extension. Instead of
  3676. these attributes, it is also possible to add a fallthrough comment
  3677. to silence the warning. The whole body of the C or C++ style
  3678. comment should match the given regular expressions listed below.
  3679. The option argument N specifies what kind of comments are accepted:
  3680. * '-Wimplicit-fallthrough=0' disables the warning altogether.
  3681. * '-Wimplicit-fallthrough=1' matches '.*' regular expression,
  3682. any comment is used as fallthrough comment.
  3683. * '-Wimplicit-fallthrough=2' case insensitively matches
  3684. '.*falls?[ \t-]*thr(ough|u).*' regular expression.
  3685. * '-Wimplicit-fallthrough=3' case sensitively matches one of the
  3686. following regular expressions:
  3687. * '-fallthrough'
  3688. * '@fallthrough@'
  3689. * 'lint -fallthrough[ \t]*'
  3690. * '[ \t.!]*(ELSE,? |INTENTIONAL(LY)? )?
  3691. FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?'
  3692. * '[ \t.!]*(Else,? |Intentional(ly)? )?
  3693. Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  3694. * '[ \t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?
  3695. fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?'
  3696. * '-Wimplicit-fallthrough=4' case sensitively matches one of the
  3697. following regular expressions:
  3698. * '-fallthrough'
  3699. * '@fallthrough@'
  3700. * 'lint -fallthrough[ \t]*'
  3701. * '[ \t]*FALLTHR(OUGH|U)[ \t]*'
  3702. * '-Wimplicit-fallthrough=5' doesn't recognize any comments as
  3703. fallthrough comments, only attributes disable the warning.
  3704. The comment needs to be followed after optional whitespace and
  3705. other comments by 'case' or 'default' keywords or by a user label
  3706. that precedes some 'case' or 'default' label.
  3707. switch (cond)
  3708. {
  3709. case 1:
  3710. bar (0);
  3711. /* FALLTHRU */
  3712. default:
  3713. ...
  3714. }
  3715. The '-Wimplicit-fallthrough=3' warning is enabled by '-Wextra'.
  3716. '-Wif-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  3717. Control if warning triggered by the 'warn_if_not_aligned' attribute
  3718. should be issued. This is enabled by default. Use
  3719. '-Wno-if-not-aligned' to disable it.
  3720. '-Wignored-qualifiers (C and C++ only)'
  3721. Warn if the return type of a function has a type qualifier such as
  3722. 'const'. For ISO C such a type qualifier has no effect, since the
  3723. value returned by a function is not an lvalue. For C++, the
  3724. warning is only emitted for scalar types or 'void'. ISO C
  3725. prohibits qualified 'void' return types on function definitions, so
  3726. such return types always receive a warning even without this
  3727. option.
  3728. This warning is also enabled by '-Wextra'.
  3729. '-Wignored-attributes (C and C++ only)'
  3730. Warn when an attribute is ignored. This is different from the
  3731. '-Wattributes' option in that it warns whenever the compiler
  3732. decides to drop an attribute, not that the attribute is either
  3733. unknown, used in a wrong place, etc. This warning is enabled by
  3734. default.
  3735. '-Wmain'
  3736. Warn if the type of 'main' is suspicious. 'main' should be a
  3737. function with external linkage, returning int, taking either zero
  3738. arguments, two, or three arguments of appropriate types. This
  3739. warning is enabled by default in C++ and is enabled by either
  3740. '-Wall' or '-Wpedantic'.
  3741. '-Wmisleading-indentation (C and C++ only)'
  3742. Warn when the indentation of the code does not reflect the block
  3743. structure. Specifically, a warning is issued for 'if', 'else',
  3744. 'while', and 'for' clauses with a guarded statement that does not
  3745. use braces, followed by an unguarded statement with the same
  3746. indentation.
  3747. In the following example, the call to "bar" is misleadingly
  3748. indented as if it were guarded by the "if" conditional.
  3749. if (some_condition ())
  3750. foo ();
  3751. bar (); /* Gotcha: this is not guarded by the "if". */
  3752. In the case of mixed tabs and spaces, the warning uses the
  3753. '-ftabstop=' option to determine if the statements line up
  3754. (defaulting to 8).
  3755. The warning is not issued for code involving multiline preprocessor
  3756. logic such as the following example.
  3757. if (flagA)
  3758. foo (0);
  3759. #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  3760. if (flagB)
  3761. #endif
  3762. foo (1);
  3763. The warning is not issued after a '#line' directive, since this
  3764. typically indicates autogenerated code, and no assumptions can be
  3765. made about the layout of the file that the directive references.
  3766. This warning is enabled by '-Wall' in C and C++.
  3767. '-Wmissing-attributes'
  3768. Warn when a declaration of a function is missing one or more
  3769. attributes that a related function is declared with and whose
  3770. absence may adversely affect the correctness or efficiency of
  3771. generated code. For example, in C++, the warning is issued when an
  3772. explicit specialization of a primary template declared with
  3773. attribute 'alloc_align', 'alloc_size', 'assume_aligned', 'format',
  3774. 'format_arg', 'malloc', or 'nonnull' is declared without it.
  3775. Attributes 'deprecated', 'error', and 'warning' suppress the
  3776. warning. (*note Function Attributes::).
  3777. '-Wmissing-attributes' is enabled by '-Wall'.
  3778. For example, since the declaration of the primary function template
  3779. below makes use of both attribute 'malloc' and 'alloc_size' the
  3780. declaration of the explicit specialization of the template is
  3781. diagnosed because it is missing one of the attributes.
  3782. template <class T>
  3783. T* __attribute__ ((malloc, alloc_size (1)))
  3784. allocate (size_t);
  3785. template <>
  3786. void* __attribute__ ((malloc)) // missing alloc_size
  3787. allocate<void> (size_t);
  3788. '-Wmissing-braces'
  3789. Warn if an aggregate or union initializer is not fully bracketed.
  3790. In the following example, the initializer for 'a' is not fully
  3791. bracketed, but that for 'b' is fully bracketed. This warning is
  3792. enabled by '-Wall' in C.
  3793. int a[2][2] = { 0, 1, 2, 3 };
  3794. int b[2][2] = { { 0, 1 }, { 2, 3 } };
  3795. This warning is enabled by '-Wall'.
  3796. '-Wmissing-include-dirs (C, C++, Objective-C and Objective-C++ only)'
  3797. Warn if a user-supplied include directory does not exist.
  3798. '-Wmultistatement-macros'
  3799. Warn about unsafe multiple statement macros that appear to be
  3800. guarded by a clause such as 'if', 'else', 'for', 'switch', or
  3801. 'while', in which only the first statement is actually guarded
  3802. after the macro is expanded.
  3803. For example:
  3804. #define DOIT x++; y++
  3805. if (c)
  3806. DOIT;
  3807. will increment 'y' unconditionally, not just when 'c' holds. The
  3808. can usually be fixed by wrapping the macro in a do-while loop:
  3809. #define DOIT do { x++; y++; } while (0)
  3810. if (c)
  3811. DOIT;
  3812. This warning is enabled by '-Wall' in C and C++.
  3813. '-Wparentheses'
  3814. Warn if parentheses are omitted in certain contexts, such as when
  3815. there is an assignment in a context where a truth value is
  3816. expected, or when operators are nested whose precedence people
  3817. often get confused about.
  3818. Also warn if a comparison like 'x<=y<=z' appears; this is
  3819. equivalent to '(x<=y ? 1 : 0) <= z', which is a different
  3820. interpretation from that of ordinary mathematical notation.
  3821. Also warn for dangerous uses of the GNU extension to '?:' with
  3822. omitted middle operand. When the condition in the '?': operator is
  3823. a boolean expression, the omitted value is always 1. Often
  3824. programmers expect it to be a value computed inside the conditional
  3825. expression instead.
  3826. For C++ this also warns for some cases of unnecessary parentheses
  3827. in declarations, which can indicate an attempt at a function call
  3828. instead of a declaration:
  3829. {
  3830. // Declares a local variable called mymutex.
  3831. std::unique_lock<std::mutex> (mymutex);
  3832. // User meant std::unique_lock<std::mutex> lock (mymutex);
  3833. }
  3834. This warning is enabled by '-Wall'.
  3835. '-Wsequence-point'
  3836. Warn about code that may have undefined semantics because of
  3837. violations of sequence point rules in the C and C++ standards.
  3838. The C and C++ standards define the order in which expressions in a
  3839. C/C++ program are evaluated in terms of "sequence points", which
  3840. represent a partial ordering between the execution of parts of the
  3841. program: those executed before the sequence point, and those
  3842. executed after it. These occur after the evaluation of a full
  3843. expression (one which is not part of a larger expression), after
  3844. the evaluation of the first operand of a '&&', '||', '? :' or ','
  3845. (comma) operator, before a function is called (but after the
  3846. evaluation of its arguments and the expression denoting the called
  3847. function), and in certain other places. Other than as expressed by
  3848. the sequence point rules, the order of evaluation of subexpressions
  3849. of an expression is not specified. All these rules describe only a
  3850. partial order rather than a total order, since, for example, if two
  3851. functions are called within one expression with no sequence point
  3852. between them, the order in which the functions are called is not
  3853. specified. However, the standards committee have ruled that
  3854. function calls do not overlap.
  3855. It is not specified when between sequence points modifications to
  3856. the values of objects take effect. Programs whose behavior depends
  3857. on this have undefined behavior; the C and C++ standards specify
  3858. that "Between the previous and next sequence point an object shall
  3859. have its stored value modified at most once by the evaluation of an
  3860. expression. Furthermore, the prior value shall be read only to
  3861. determine the value to be stored.". If a program breaks these
  3862. rules, the results on any particular implementation are entirely
  3863. unpredictable.
  3864. Examples of code with undefined behavior are 'a = a++;', 'a[n] =
  3865. b[n++]' and 'a[i++] = i;'. Some more complicated cases are not
  3866. diagnosed by this option, and it may give an occasional false
  3867. positive result, but in general it has been found fairly effective
  3868. at detecting this sort of problem in programs.
  3869. The C++17 standard will define the order of evaluation of operands
  3870. in more cases: in particular it requires that the right-hand side
  3871. of an assignment be evaluated before the left-hand side, so the
  3872. above examples are no longer undefined. But this warning will
  3873. still warn about them, to help people avoid writing code that is
  3874. undefined in C and earlier revisions of C++.
  3875. The standard is worded confusingly, therefore there is some debate
  3876. over the precise meaning of the sequence point rules in subtle
  3877. cases. Links to discussions of the problem, including proposed
  3878. formal definitions, may be found on the GCC readings page, at
  3879. <http://gcc.gnu.org/readings.html>.
  3880. This warning is enabled by '-Wall' for C and C++.
  3881. '-Wno-return-local-addr'
  3882. Do not warn about returning a pointer (or in C++, a reference) to a
  3883. variable that goes out of scope after the function returns.
  3884. '-Wreturn-type'
  3885. Warn whenever a function is defined with a return type that
  3886. defaults to 'int'. Also warn about any 'return' statement with no
  3887. return value in a function whose return type is not 'void' (falling
  3888. off the end of the function body is considered returning without a
  3889. value).
  3890. For C only, warn about a 'return' statement with an expression in a
  3891. function whose return type is 'void', unless the expression type is
  3892. also 'void'. As a GNU extension, the latter case is accepted
  3893. without a warning unless '-Wpedantic' is used.
  3894. For C++, a function without return type always produces a
  3895. diagnostic message, even when '-Wno-return-type' is specified. The
  3896. only exceptions are 'main' and functions defined in system headers.
  3897. This warning is enabled by default for C++ and is enabled by
  3898. '-Wall'.
  3899. '-Wshift-count-negative'
  3900. Warn if shift count is negative. This warning is enabled by
  3901. default.
  3902. '-Wshift-count-overflow'
  3903. Warn if shift count >= width of type. This warning is enabled by
  3904. default.
  3905. '-Wshift-negative-value'
  3906. Warn if left shifting a negative value. This warning is enabled by
  3907. '-Wextra' in C99 and C++11 modes (and newer).
  3908. '-Wshift-overflow'
  3909. '-Wshift-overflow=N'
  3910. Warn about left shift overflows. This warning is enabled by
  3911. default in C99 and C++11 modes (and newer).
  3912. '-Wshift-overflow=1'
  3913. This is the warning level of '-Wshift-overflow' and is enabled
  3914. by default in C99 and C++11 modes (and newer). This warning
  3915. level does not warn about left-shifting 1 into the sign bit.
  3916. (However, in C, such an overflow is still rejected in contexts
  3917. where an integer constant expression is required.)
  3918. '-Wshift-overflow=2'
  3919. This warning level also warns about left-shifting 1 into the
  3920. sign bit, unless C++14 mode is active.
  3921. '-Wswitch'
  3922. Warn whenever a 'switch' statement has an index of enumerated type
  3923. and lacks a 'case' for one or more of the named codes of that
  3924. enumeration. (The presence of a 'default' label prevents this
  3925. warning.) 'case' labels outside the enumeration range also provoke
  3926. warnings when this option is used (even if there is a 'default'
  3927. label). This warning is enabled by '-Wall'.
  3928. '-Wswitch-default'
  3929. Warn whenever a 'switch' statement does not have a 'default' case.
  3930. '-Wswitch-enum'
  3931. Warn whenever a 'switch' statement has an index of enumerated type
  3932. and lacks a 'case' for one or more of the named codes of that
  3933. enumeration. 'case' labels outside the enumeration range also
  3934. provoke warnings when this option is used. The only difference
  3935. between '-Wswitch' and this option is that this option gives a
  3936. warning about an omitted enumeration code even if there is a
  3937. 'default' label.
  3938. '-Wswitch-bool'
  3939. Warn whenever a 'switch' statement has an index of boolean type and
  3940. the case values are outside the range of a boolean type. It is
  3941. possible to suppress this warning by casting the controlling
  3942. expression to a type other than 'bool'. For example:
  3943. switch ((int) (a == 4))
  3944. {
  3945. ...
  3946. }
  3947. This warning is enabled by default for C and C++ programs.
  3948. '-Wswitch-unreachable'
  3949. Warn whenever a 'switch' statement contains statements between the
  3950. controlling expression and the first case label, which will never
  3951. be executed. For example:
  3952. switch (cond)
  3953. {
  3954. i = 15;
  3955. ...
  3956. case 5:
  3957. ...
  3958. }
  3959. '-Wswitch-unreachable' does not warn if the statement between the
  3960. controlling expression and the first case label is just a
  3961. declaration:
  3962. switch (cond)
  3963. {
  3964. int i;
  3965. ...
  3966. case 5:
  3967. i = 5;
  3968. ...
  3969. }
  3970. This warning is enabled by default for C and C++ programs.
  3971. '-Wsync-nand (C and C++ only)'
  3972. Warn when '__sync_fetch_and_nand' and '__sync_nand_and_fetch'
  3973. built-in functions are used. These functions changed semantics in
  3974. GCC 4.4.
  3975. '-Wunused-but-set-parameter'
  3976. Warn whenever a function parameter is assigned to, but otherwise
  3977. unused (aside from its declaration).
  3978. To suppress this warning use the 'unused' attribute (*note Variable
  3979. Attributes::).
  3980. This warning is also enabled by '-Wunused' together with '-Wextra'.
  3981. '-Wunused-but-set-variable'
  3982. Warn whenever a local variable is assigned to, but otherwise unused
  3983. (aside from its declaration). This warning is enabled by '-Wall'.
  3984. To suppress this warning use the 'unused' attribute (*note Variable
  3985. Attributes::).
  3986. This warning is also enabled by '-Wunused', which is enabled by
  3987. '-Wall'.
  3988. '-Wunused-function'
  3989. Warn whenever a static function is declared but not defined or a
  3990. non-inline static function is unused. This warning is enabled by
  3991. '-Wall'.
  3992. '-Wunused-label'
  3993. Warn whenever a label is declared but not used. This warning is
  3994. enabled by '-Wall'.
  3995. To suppress this warning use the 'unused' attribute (*note Variable
  3996. Attributes::).
  3997. '-Wunused-local-typedefs (C, Objective-C, C++ and Objective-C++ only)'
  3998. Warn when a typedef locally defined in a function is not used.
  3999. This warning is enabled by '-Wall'.
  4000. '-Wunused-parameter'
  4001. Warn whenever a function parameter is unused aside from its
  4002. declaration.
  4003. To suppress this warning use the 'unused' attribute (*note Variable
  4004. Attributes::).
  4005. '-Wno-unused-result'
  4006. Do not warn if a caller of a function marked with attribute
  4007. 'warn_unused_result' (*note Function Attributes::) does not use its
  4008. return value. The default is '-Wunused-result'.
  4009. '-Wunused-variable'
  4010. Warn whenever a local or static variable is unused aside from its
  4011. declaration. This option implies '-Wunused-const-variable=1' for
  4012. C, but not for C++. This warning is enabled by '-Wall'.
  4013. To suppress this warning use the 'unused' attribute (*note Variable
  4014. Attributes::).
  4015. '-Wunused-const-variable'
  4016. '-Wunused-const-variable=N'
  4017. Warn whenever a constant static variable is unused aside from its
  4018. declaration. '-Wunused-const-variable=1' is enabled by
  4019. '-Wunused-variable' for C, but not for C++. In C this declares
  4020. variable storage, but in C++ this is not an error since const
  4021. variables take the place of '#define's.
  4022. To suppress this warning use the 'unused' attribute (*note Variable
  4023. Attributes::).
  4024. '-Wunused-const-variable=1'
  4025. This is the warning level that is enabled by
  4026. '-Wunused-variable' for C. It warns only about unused static
  4027. const variables defined in the main compilation unit, but not
  4028. about static const variables declared in any header included.
  4029. '-Wunused-const-variable=2'
  4030. This warning level also warns for unused constant static
  4031. variables in headers (excluding system headers). This is the
  4032. warning level of '-Wunused-const-variable' and must be
  4033. explicitly requested since in C++ this isn't an error and in C
  4034. it might be harder to clean up all headers included.
  4035. '-Wunused-value'
  4036. Warn whenever a statement computes a result that is explicitly not
  4037. used. To suppress this warning cast the unused expression to
  4038. 'void'. This includes an expression-statement or the left-hand
  4039. side of a comma expression that contains no side effects. For
  4040. example, an expression such as 'x[i,j]' causes a warning, while
  4041. 'x[(void)i,j]' does not.
  4042. This warning is enabled by '-Wall'.
  4043. '-Wunused'
  4044. All the above '-Wunused' options combined.
  4045. In order to get a warning about an unused function parameter, you
  4046. must either specify '-Wextra -Wunused' (note that '-Wall' implies
  4047. '-Wunused'), or separately specify '-Wunused-parameter'.
  4048. '-Wuninitialized'
  4049. Warn if an automatic variable is used without first being
  4050. initialized or if a variable may be clobbered by a 'setjmp' call.
  4051. In C++, warn if a non-static reference or non-static 'const' member
  4052. appears in a class without constructors.
  4053. If you want to warn about code that uses the uninitialized value of
  4054. the variable in its own initializer, use the '-Winit-self' option.
  4055. These warnings occur for individual uninitialized or clobbered
  4056. elements of structure, union or array variables as well as for
  4057. variables that are uninitialized or clobbered as a whole. They do
  4058. not occur for variables or elements declared 'volatile'. Because
  4059. these warnings depend on optimization, the exact variables or
  4060. elements for which there are warnings depends on the precise
  4061. optimization options and version of GCC used.
  4062. Note that there may be no warning about a variable that is used
  4063. only to compute a value that itself is never used, because such
  4064. computations may be deleted by data flow analysis before the
  4065. warnings are printed.
  4066. '-Winvalid-memory-model'
  4067. Warn for invocations of *note __atomic Builtins::, *note __sync
  4068. Builtins::, and the C11 atomic generic functions with a memory
  4069. consistency argument that is either invalid for the operation or
  4070. outside the range of values of the 'memory_order' enumeration. For
  4071. example, since the '__atomic_store' and '__atomic_store_n'
  4072. built-ins are only defined for the relaxed, release, and
  4073. sequentially consistent memory orders the following code is
  4074. diagnosed:
  4075. void store (int *i)
  4076. {
  4077. __atomic_store_n (i, 0, memory_order_consume);
  4078. }
  4079. '-Winvalid-memory-model' is enabled by default.
  4080. '-Wmaybe-uninitialized'
  4081. For an automatic (i.e. local) variable, if there exists a path from
  4082. the function entry to a use of the variable that is initialized,
  4083. but there exist some other paths for which the variable is not
  4084. initialized, the compiler emits a warning if it cannot prove the
  4085. uninitialized paths are not executed at run time.
  4086. These warnings are only possible in optimizing compilation, because
  4087. otherwise GCC does not keep track of the state of variables.
  4088. These warnings are made optional because GCC may not be able to
  4089. determine when the code is correct in spite of appearing to have an
  4090. error. Here is one example of how this can happen:
  4091. {
  4092. int x;
  4093. switch (y)
  4094. {
  4095. case 1: x = 1;
  4096. break;
  4097. case 2: x = 4;
  4098. break;
  4099. case 3: x = 5;
  4100. }
  4101. foo (x);
  4102. }
  4103. If the value of 'y' is always 1, 2 or 3, then 'x' is always
  4104. initialized, but GCC doesn't know this. To suppress the warning,
  4105. you need to provide a default case with assert(0) or similar code.
  4106. This option also warns when a non-volatile automatic variable might
  4107. be changed by a call to 'longjmp'. The compiler sees only the
  4108. calls to 'setjmp'. It cannot know where 'longjmp' will be called;
  4109. in fact, a signal handler could call it at any point in the code.
  4110. As a result, you may get a warning even when there is in fact no
  4111. problem because 'longjmp' cannot in fact be called at the place
  4112. that would cause a problem.
  4113. Some spurious warnings can be avoided if you declare all the
  4114. functions you use that never return as 'noreturn'. *Note Function
  4115. Attributes::.
  4116. This warning is enabled by '-Wall' or '-Wextra'.
  4117. '-Wunknown-pragmas'
  4118. Warn when a '#pragma' directive is encountered that is not
  4119. understood by GCC. If this command-line option is used, warnings
  4120. are even issued for unknown pragmas in system header files. This
  4121. is not the case if the warnings are only enabled by the '-Wall'
  4122. command-line option.
  4123. '-Wno-pragmas'
  4124. Do not warn about misuses of pragmas, such as incorrect parameters,
  4125. invalid syntax, or conflicts between pragmas. See also
  4126. '-Wunknown-pragmas'.
  4127. '-Wstrict-aliasing'
  4128. This option is only active when '-fstrict-aliasing' is active. It
  4129. warns about code that might break the strict aliasing rules that
  4130. the compiler is using for optimization. The warning does not catch
  4131. all cases, but does attempt to catch the more common pitfalls. It
  4132. is included in '-Wall'. It is equivalent to '-Wstrict-aliasing=3'
  4133. '-Wstrict-aliasing=n'
  4134. This option is only active when '-fstrict-aliasing' is active. It
  4135. warns about code that might break the strict aliasing rules that
  4136. the compiler is using for optimization. Higher levels correspond
  4137. to higher accuracy (fewer false positives). Higher levels also
  4138. correspond to more effort, similar to the way '-O' works.
  4139. '-Wstrict-aliasing' is equivalent to '-Wstrict-aliasing=3'.
  4140. Level 1: Most aggressive, quick, least accurate. Possibly useful
  4141. when higher levels do not warn but '-fstrict-aliasing' still breaks
  4142. the code, as it has very few false negatives. However, it has many
  4143. false positives. Warns for all pointer conversions between
  4144. possibly incompatible types, even if never dereferenced. Runs in
  4145. the front end only.
  4146. Level 2: Aggressive, quick, not too precise. May still have many
  4147. false positives (not as many as level 1 though), and few false
  4148. negatives (but possibly more than level 1). Unlike level 1, it
  4149. only warns when an address is taken. Warns about incomplete types.
  4150. Runs in the front end only.
  4151. Level 3 (default for '-Wstrict-aliasing'): Should have very few
  4152. false positives and few false negatives. Slightly slower than
  4153. levels 1 or 2 when optimization is enabled. Takes care of the
  4154. common pun+dereference pattern in the front end:
  4155. '*(int*)&some_float'. If optimization is enabled, it also runs in
  4156. the back end, where it deals with multiple statement cases using
  4157. flow-sensitive points-to information. Only warns when the
  4158. converted pointer is dereferenced. Does not warn about incomplete
  4159. types.
  4160. '-Wstrict-overflow'
  4161. '-Wstrict-overflow=N'
  4162. This option is only active when signed overflow is undefined. It
  4163. warns about cases where the compiler optimizes based on the
  4164. assumption that signed overflow does not occur. Note that it does
  4165. not warn about all cases where the code might overflow: it only
  4166. warns about cases where the compiler implements some optimization.
  4167. Thus this warning depends on the optimization level.
  4168. An optimization that assumes that signed overflow does not occur is
  4169. perfectly safe if the values of the variables involved are such
  4170. that overflow never does, in fact, occur. Therefore this warning
  4171. can easily give a false positive: a warning about code that is not
  4172. actually a problem. To help focus on important issues, several
  4173. warning levels are defined. No warnings are issued for the use of
  4174. undefined signed overflow when estimating how many iterations a
  4175. loop requires, in particular when determining whether a loop will
  4176. be executed at all.
  4177. '-Wstrict-overflow=1'
  4178. Warn about cases that are both questionable and easy to avoid.
  4179. For example the compiler simplifies 'x + 1 > x' to '1'. This
  4180. level of '-Wstrict-overflow' is enabled by '-Wall'; higher
  4181. levels are not, and must be explicitly requested.
  4182. '-Wstrict-overflow=2'
  4183. Also warn about other cases where a comparison is simplified
  4184. to a constant. For example: 'abs (x) >= 0'. This can only be
  4185. simplified when signed integer overflow is undefined, because
  4186. 'abs (INT_MIN)' overflows to 'INT_MIN', which is less than
  4187. zero. '-Wstrict-overflow' (with no level) is the same as
  4188. '-Wstrict-overflow=2'.
  4189. '-Wstrict-overflow=3'
  4190. Also warn about other cases where a comparison is simplified.
  4191. For example: 'x + 1 > 1' is simplified to 'x > 0'.
  4192. '-Wstrict-overflow=4'
  4193. Also warn about other simplifications not covered by the above
  4194. cases. For example: '(x * 10) / 5' is simplified to 'x * 2'.
  4195. '-Wstrict-overflow=5'
  4196. Also warn about cases where the compiler reduces the magnitude
  4197. of a constant involved in a comparison. For example: 'x + 2 >
  4198. y' is simplified to 'x + 1 >= y'. This is reported only at
  4199. the highest warning level because this simplification applies
  4200. to many comparisons, so this warning level gives a very large
  4201. number of false positives.
  4202. '-Wstringop-overflow'
  4203. '-Wstringop-overflow=TYPE'
  4204. Warn for calls to string manipulation functions such as 'memcpy'
  4205. and 'strcpy' that are determined to overflow the destination
  4206. buffer. The optional argument is one greater than the type of
  4207. Object Size Checking to perform to determine the size of the
  4208. destination. *Note Object Size Checking::. The argument is
  4209. meaningful only for functions that operate on character arrays but
  4210. not for raw memory functions like 'memcpy' which always make use of
  4211. Object Size type-0. The option also warns for calls that specify a
  4212. size in excess of the largest possible object or at most 'SIZE_MAX
  4213. / 2' bytes. The option produces the best results with optimization
  4214. enabled but can detect a small subset of simple buffer overflows
  4215. even without optimization in calls to the GCC built-in functions
  4216. like '__builtin_memcpy' that correspond to the standard functions.
  4217. In any case, the option warns about just a subset of buffer
  4218. overflows detected by the corresponding overflow checking
  4219. built-ins. For example, the option will issue a warning for the
  4220. 'strcpy' call below because it copies at least 5 characters (the
  4221. string '"blue"' including the terminating NUL) into the buffer of
  4222. size 4.
  4223. enum Color { blue, purple, yellow };
  4224. const char* f (enum Color clr)
  4225. {
  4226. static char buf [4];
  4227. const char *str;
  4228. switch (clr)
  4229. {
  4230. case blue: str = "blue"; break;
  4231. case purple: str = "purple"; break;
  4232. case yellow: str = "yellow"; break;
  4233. }
  4234. return strcpy (buf, str); // warning here
  4235. }
  4236. Option '-Wstringop-overflow=2' is enabled by default.
  4237. '-Wstringop-overflow'
  4238. '-Wstringop-overflow=1'
  4239. The '-Wstringop-overflow=1' option uses type-zero Object Size
  4240. Checking to determine the sizes of destination objects. This
  4241. is the default setting of the option. At this setting the
  4242. option will not warn for writes past the end of subobjects of
  4243. larger objects accessed by pointers unless the size of the
  4244. largest surrounding object is known. When the destination may
  4245. be one of several objects it is assumed to be the largest one
  4246. of them. On Linux systems, when optimization is enabled at
  4247. this setting the option warns for the same code as when the
  4248. '_FORTIFY_SOURCE' macro is defined to a non-zero value.
  4249. '-Wstringop-overflow=2'
  4250. The '-Wstringop-overflow=2' option uses type-one Object Size
  4251. Checking to determine the sizes of destination objects. At
  4252. this setting the option will warn about overflows when writing
  4253. to members of the largest complete objects whose exact size is
  4254. known. It will, however, not warn for excessive writes to the
  4255. same members of unknown objects referenced by pointers since
  4256. they may point to arrays containing unknown numbers of
  4257. elements.
  4258. '-Wstringop-overflow=3'
  4259. The '-Wstringop-overflow=3' option uses type-two Object Size
  4260. Checking to determine the sizes of destination objects. At
  4261. this setting the option warns about overflowing the smallest
  4262. object or data member. This is the most restrictive setting
  4263. of the option that may result in warnings for safe code.
  4264. '-Wstringop-overflow=4'
  4265. The '-Wstringop-overflow=4' option uses type-three Object Size
  4266. Checking to determine the sizes of destination objects. At
  4267. this setting the option will warn about overflowing any data
  4268. members, and when the destination is one of several objects it
  4269. uses the size of the largest of them to decide whether to
  4270. issue a warning. Similarly to '-Wstringop-overflow=3' this
  4271. setting of the option may result in warnings for benign code.
  4272. '-Wstringop-truncation'
  4273. Warn for calls to bounded string manipulation functions such as
  4274. 'strncat', 'strncpy', and 'stpncpy' that may either truncate the
  4275. copied string or leave the destination unchanged.
  4276. In the following example, the call to 'strncat' specifies a bound
  4277. that is less than the length of the source string. As a result,
  4278. the copy of the source will be truncated and so the call is
  4279. diagnosed. To avoid the warning use 'bufsize - strlen (buf) - 1)'
  4280. as the bound.
  4281. void append (char *buf, size_t bufsize)
  4282. {
  4283. strncat (buf, ".txt", 3);
  4284. }
  4285. As another example, the following call to 'strncpy' results in
  4286. copying to 'd' just the characters preceding the terminating NUL,
  4287. without appending the NUL to the end. Assuming the result of
  4288. 'strncpy' is necessarily a NUL-terminated string is a common
  4289. mistake, and so the call is diagnosed. To avoid the warning when
  4290. the result is not expected to be NUL-terminated, call 'memcpy'
  4291. instead.
  4292. void copy (char *d, const char *s)
  4293. {
  4294. strncpy (d, s, strlen (s));
  4295. }
  4296. In the following example, the call to 'strncpy' specifies the size
  4297. of the destination buffer as the bound. If the length of the
  4298. source string is equal to or greater than this size the result of
  4299. the copy will not be NUL-terminated. Therefore, the call is also
  4300. diagnosed. To avoid the warning, specify 'sizeof buf - 1' as the
  4301. bound and set the last element of the buffer to 'NUL'.
  4302. void copy (const char *s)
  4303. {
  4304. char buf[80];
  4305. strncpy (buf, s, sizeof buf);
  4306. ...
  4307. }
  4308. In situations where a character array is intended to store a
  4309. sequence of bytes with no terminating 'NUL' such an array may be
  4310. annotated with attribute 'nonstring' to avoid this warning. Such
  4311. arrays, however, are not suitable arguments to functions that
  4312. expect 'NUL'-terminated strings. To help detect accidental misuses
  4313. of such arrays GCC issues warnings unless it can prove that the use
  4314. is safe. *Note Common Variable Attributes::.
  4315. Option '-Wstringop-truncation' is enabled by '-Wall'.
  4316. '-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]'
  4317. Warn for cases where adding an attribute may be beneficial. The
  4318. attributes currently supported are listed below.
  4319. '-Wsuggest-attribute=pure'
  4320. '-Wsuggest-attribute=const'
  4321. '-Wsuggest-attribute=noreturn'
  4322. '-Wsuggest-attribute=malloc'
  4323. Warn about functions that might be candidates for attributes
  4324. 'pure', 'const' or 'noreturn' or 'malloc'. The compiler only
  4325. warns for functions visible in other compilation units or (in
  4326. the case of 'pure' and 'const') if it cannot prove that the
  4327. function returns normally. A function returns normally if it
  4328. doesn't contain an infinite loop or return abnormally by
  4329. throwing, calling 'abort' or trapping. This analysis requires
  4330. option '-fipa-pure-const', which is enabled by default at '-O'
  4331. and higher. Higher optimization levels improve the accuracy
  4332. of the analysis.
  4333. '-Wsuggest-attribute=format'
  4334. '-Wmissing-format-attribute'
  4335. Warn about function pointers that might be candidates for
  4336. 'format' attributes. Note these are only possible candidates,
  4337. not absolute ones. GCC guesses that function pointers with
  4338. 'format' attributes that are used in assignment,
  4339. initialization, parameter passing or return statements should
  4340. have a corresponding 'format' attribute in the resulting type.
  4341. I.e. the left-hand side of the assignment or initialization,
  4342. the type of the parameter variable, or the return type of the
  4343. containing function respectively should also have a 'format'
  4344. attribute to avoid the warning.
  4345. GCC also warns about function definitions that might be
  4346. candidates for 'format' attributes. Again, these are only
  4347. possible candidates. GCC guesses that 'format' attributes
  4348. might be appropriate for any function that calls a function
  4349. like 'vprintf' or 'vscanf', but this might not always be the
  4350. case, and some functions for which 'format' attributes are
  4351. appropriate may not be detected.
  4352. '-Wsuggest-attribute=cold'
  4353. Warn about functions that might be candidates for 'cold'
  4354. attribute. This is based on static detection and generally
  4355. will only warn about functions which always leads to a call to
  4356. another 'cold' function such as wrappers of C++ 'throw' or
  4357. fatal error reporting functions leading to 'abort'.
  4358. '-Wsuggest-final-types'
  4359. Warn about types with virtual methods where code quality would be
  4360. improved if the type were declared with the C++11 'final'
  4361. specifier, or, if possible, declared in an anonymous namespace.
  4362. This allows GCC to more aggressively devirtualize the polymorphic
  4363. calls. This warning is more effective with link time optimization,
  4364. where the information about the class hierarchy graph is more
  4365. complete.
  4366. '-Wsuggest-final-methods'
  4367. Warn about virtual methods where code quality would be improved if
  4368. the method were declared with the C++11 'final' specifier, or, if
  4369. possible, its type were declared in an anonymous namespace or with
  4370. the 'final' specifier. This warning is more effective with
  4371. link-time optimization, where the information about the class
  4372. hierarchy graph is more complete. It is recommended to first
  4373. consider suggestions of '-Wsuggest-final-types' and then rebuild
  4374. with new annotations.
  4375. '-Wsuggest-override'
  4376. Warn about overriding virtual functions that are not marked with
  4377. the override keyword.
  4378. '-Walloc-zero'
  4379. Warn about calls to allocation functions decorated with attribute
  4380. 'alloc_size' that specify zero bytes, including those to the
  4381. built-in forms of the functions 'aligned_alloc', 'alloca',
  4382. 'calloc', 'malloc', and 'realloc'. Because the behavior of these
  4383. functions when called with a zero size differs among
  4384. implementations (and in the case of 'realloc' has been deprecated)
  4385. relying on it may result in subtle portability bugs and should be
  4386. avoided.
  4387. '-Walloc-size-larger-than=N'
  4388. Warn about calls to functions decorated with attribute 'alloc_size'
  4389. that attempt to allocate objects larger than the specified number
  4390. of bytes, or where the result of the size computation in an integer
  4391. type with infinite precision would exceed 'SIZE_MAX / 2'. The
  4392. option argument N may end in one of the standard suffixes
  4393. designating a multiple of bytes such as 'kB' and 'KiB' for kilobyte
  4394. and kibibyte, respectively, 'MB' and 'MiB' for megabyte and
  4395. mebibyte, and so on. '-Walloc-size-larger-than='PTRDIFF_MAX is
  4396. enabled by default. Warnings controlled by the option can be
  4397. disabled by specifying N of SIZE_MAX or more. *Note Function
  4398. Attributes::.
  4399. '-Walloca'
  4400. This option warns on all uses of 'alloca' in the source.
  4401. '-Walloca-larger-than=N'
  4402. This option warns on calls to 'alloca' that are not bounded by a
  4403. controlling predicate limiting its argument of integer type to at
  4404. most N bytes, or calls to 'alloca' where the bound is unknown.
  4405. Arguments of non-integer types are considered unbounded even if
  4406. they appear to be constrained to the expected range.
  4407. For example, a bounded case of 'alloca' could be:
  4408. void func (size_t n)
  4409. {
  4410. void *p;
  4411. if (n <= 1000)
  4412. p = alloca (n);
  4413. else
  4414. p = malloc (n);
  4415. f (p);
  4416. }
  4417. In the above example, passing '-Walloca-larger-than=1000' would not
  4418. issue a warning because the call to 'alloca' is known to be at most
  4419. 1000 bytes. However, if '-Walloca-larger-than=500' were passed,
  4420. the compiler would emit a warning.
  4421. Unbounded uses, on the other hand, are uses of 'alloca' with no
  4422. controlling predicate constraining its integer argument. For
  4423. example:
  4424. void func ()
  4425. {
  4426. void *p = alloca (n);
  4427. f (p);
  4428. }
  4429. If '-Walloca-larger-than=500' were passed, the above would trigger
  4430. a warning, but this time because of the lack of bounds checking.
  4431. Note, that even seemingly correct code involving signed integers
  4432. could cause a warning:
  4433. void func (signed int n)
  4434. {
  4435. if (n < 500)
  4436. {
  4437. p = alloca (n);
  4438. f (p);
  4439. }
  4440. }
  4441. In the above example, N could be negative, causing a larger than
  4442. expected argument to be implicitly cast into the 'alloca' call.
  4443. This option also warns when 'alloca' is used in a loop.
  4444. This warning is not enabled by '-Wall', and is only active when
  4445. '-ftree-vrp' is active (default for '-O2' and above).
  4446. See also '-Wvla-larger-than=N'.
  4447. '-Warray-bounds'
  4448. '-Warray-bounds=N'
  4449. This option is only active when '-ftree-vrp' is active (default for
  4450. '-O2' and above). It warns about subscripts to arrays that are
  4451. always out of bounds. This warning is enabled by '-Wall'.
  4452. '-Warray-bounds=1'
  4453. This is the warning level of '-Warray-bounds' and is enabled
  4454. by '-Wall'; higher levels are not, and must be explicitly
  4455. requested.
  4456. '-Warray-bounds=2'
  4457. This warning level also warns about out of bounds access for
  4458. arrays at the end of a struct and for arrays accessed through
  4459. pointers. This warning level may give a larger number of
  4460. false positives and is deactivated by default.
  4461. '-Wattribute-alias'
  4462. Warn about declarations using the 'alias' and similar attributes
  4463. whose target is incompatible with the type of the alias. *Note
  4464. Declaring Attributes of Functions: Function Attributes.
  4465. '-Wbool-compare'
  4466. Warn about boolean expression compared with an integer value
  4467. different from 'true'/'false'. For instance, the following
  4468. comparison is always false:
  4469. int n = 5;
  4470. ...
  4471. if ((n > 1) == 2) { ... }
  4472. This warning is enabled by '-Wall'.
  4473. '-Wbool-operation'
  4474. Warn about suspicious operations on expressions of a boolean type.
  4475. For instance, bitwise negation of a boolean is very likely a bug in
  4476. the program. For C, this warning also warns about incrementing or
  4477. decrementing a boolean, which rarely makes sense. (In C++,
  4478. decrementing a boolean is always invalid. Incrementing a boolean
  4479. is invalid in C++17, and deprecated otherwise.)
  4480. This warning is enabled by '-Wall'.
  4481. '-Wduplicated-branches'
  4482. Warn when an if-else has identical branches. This warning detects
  4483. cases like
  4484. if (p != NULL)
  4485. return 0;
  4486. else
  4487. return 0;
  4488. It doesn't warn when both branches contain just a null statement.
  4489. This warning also warn for conditional operators:
  4490. int i = x ? *p : *p;
  4491. '-Wduplicated-cond'
  4492. Warn about duplicated conditions in an if-else-if chain. For
  4493. instance, warn for the following code:
  4494. if (p->q != NULL) { ... }
  4495. else if (p->q != NULL) { ... }
  4496. '-Wframe-address'
  4497. Warn when the '__builtin_frame_address' or
  4498. '__builtin_return_address' is called with an argument greater than
  4499. 0. Such calls may return indeterminate values or crash the
  4500. program. The warning is included in '-Wall'.
  4501. '-Wno-discarded-qualifiers (C and Objective-C only)'
  4502. Do not warn if type qualifiers on pointers are being discarded.
  4503. Typically, the compiler warns if a 'const char *' variable is
  4504. passed to a function that takes a 'char *' parameter. This option
  4505. can be used to suppress such a warning.
  4506. '-Wno-discarded-array-qualifiers (C and Objective-C only)'
  4507. Do not warn if type qualifiers on arrays which are pointer targets
  4508. are being discarded. Typically, the compiler warns if a 'const int
  4509. (*)[]' variable is passed to a function that takes a 'int (*)[]'
  4510. parameter. This option can be used to suppress such a warning.
  4511. '-Wno-incompatible-pointer-types (C and Objective-C only)'
  4512. Do not warn when there is a conversion between pointers that have
  4513. incompatible types. This warning is for cases not covered by
  4514. '-Wno-pointer-sign', which warns for pointer argument passing or
  4515. assignment with different signedness.
  4516. '-Wno-int-conversion (C and Objective-C only)'
  4517. Do not warn about incompatible integer to pointer and pointer to
  4518. integer conversions. This warning is about implicit conversions;
  4519. for explicit conversions the warnings '-Wno-int-to-pointer-cast'
  4520. and '-Wno-pointer-to-int-cast' may be used.
  4521. '-Wno-div-by-zero'
  4522. Do not warn about compile-time integer division by zero.
  4523. Floating-point division by zero is not warned about, as it can be a
  4524. legitimate way of obtaining infinities and NaNs.
  4525. '-Wsystem-headers'
  4526. Print warning messages for constructs found in system header files.
  4527. Warnings from system headers are normally suppressed, on the
  4528. assumption that they usually do not indicate real problems and
  4529. would only make the compiler output harder to read. Using this
  4530. command-line option tells GCC to emit warnings from system headers
  4531. as if they occurred in user code. However, note that using '-Wall'
  4532. in conjunction with this option does _not_ warn about unknown
  4533. pragmas in system headers--for that, '-Wunknown-pragmas' must also
  4534. be used.
  4535. '-Wtautological-compare'
  4536. Warn if a self-comparison always evaluates to true or false. This
  4537. warning detects various mistakes such as:
  4538. int i = 1;
  4539. ...
  4540. if (i > i) { ... }
  4541. This warning also warns about bitwise comparisons that always
  4542. evaluate to true or false, for instance:
  4543. if ((a & 16) == 10) { ... }
  4544. will always be false.
  4545. This warning is enabled by '-Wall'.
  4546. '-Wtrampolines'
  4547. Warn about trampolines generated for pointers to nested functions.
  4548. A trampoline is a small piece of data or code that is created at
  4549. run time on the stack when the address of a nested function is
  4550. taken, and is used to call the nested function indirectly. For
  4551. some targets, it is made up of data only and thus requires no
  4552. special treatment. But, for most targets, it is made up of code
  4553. and thus requires the stack to be made executable in order for the
  4554. program to work properly.
  4555. '-Wfloat-equal'
  4556. Warn if floating-point values are used in equality comparisons.
  4557. The idea behind this is that sometimes it is convenient (for the
  4558. programmer) to consider floating-point values as approximations to
  4559. infinitely precise real numbers. If you are doing this, then you
  4560. need to compute (by analyzing the code, or in some other way) the
  4561. maximum or likely maximum error that the computation introduces,
  4562. and allow for it when performing comparisons (and when producing
  4563. output, but that's a different problem). In particular, instead of
  4564. testing for equality, you should check to see whether the two
  4565. values have ranges that overlap; and this is done with the
  4566. relational operators, so equality comparisons are probably
  4567. mistaken.
  4568. '-Wtraditional (C and Objective-C only)'
  4569. Warn about certain constructs that behave differently in
  4570. traditional and ISO C. Also warn about ISO C constructs that have
  4571. no traditional C equivalent, and/or problematic constructs that
  4572. should be avoided.
  4573. * Macro parameters that appear within string literals in the
  4574. macro body. In traditional C macro replacement takes place
  4575. within string literals, but in ISO C it does not.
  4576. * In traditional C, some preprocessor directives did not exist.
  4577. Traditional preprocessors only considered a line to be a
  4578. directive if the '#' appeared in column 1 on the line.
  4579. Therefore '-Wtraditional' warns about directives that
  4580. traditional C understands but ignores because the '#' does not
  4581. appear as the first character on the line. It also suggests
  4582. you hide directives like '#pragma' not understood by
  4583. traditional C by indenting them. Some traditional
  4584. implementations do not recognize '#elif', so this option
  4585. suggests avoiding it altogether.
  4586. * A function-like macro that appears without arguments.
  4587. * The unary plus operator.
  4588. * The 'U' integer constant suffix, or the 'F' or 'L'
  4589. floating-point constant suffixes. (Traditional C does support
  4590. the 'L' suffix on integer constants.) Note, these suffixes
  4591. appear in macros defined in the system headers of most modern
  4592. systems, e.g. the '_MIN'/'_MAX' macros in '<limits.h>'. Use
  4593. of these macros in user code might normally lead to spurious
  4594. warnings, however GCC's integrated preprocessor has enough
  4595. context to avoid warning in these cases.
  4596. * A function declared external in one block and then used after
  4597. the end of the block.
  4598. * A 'switch' statement has an operand of type 'long'.
  4599. * A non-'static' function declaration follows a 'static' one.
  4600. This construct is not accepted by some traditional C
  4601. compilers.
  4602. * The ISO type of an integer constant has a different width or
  4603. signedness from its traditional type. This warning is only
  4604. issued if the base of the constant is ten. I.e. hexadecimal
  4605. or octal values, which typically represent bit patterns, are
  4606. not warned about.
  4607. * Usage of ISO string concatenation is detected.
  4608. * Initialization of automatic aggregates.
  4609. * Identifier conflicts with labels. Traditional C lacks a
  4610. separate namespace for labels.
  4611. * Initialization of unions. If the initializer is zero, the
  4612. warning is omitted. This is done under the assumption that
  4613. the zero initializer in user code appears conditioned on e.g.
  4614. '__STDC__' to avoid missing initializer warnings and relies on
  4615. default initialization to zero in the traditional C case.
  4616. * Conversions by prototypes between fixed/floating-point values
  4617. and vice versa. The absence of these prototypes when
  4618. compiling with traditional C causes serious problems. This is
  4619. a subset of the possible conversion warnings; for the full set
  4620. use '-Wtraditional-conversion'.
  4621. * Use of ISO C style function definitions. This warning
  4622. intentionally is _not_ issued for prototype declarations or
  4623. variadic functions because these ISO C features appear in your
  4624. code when using libiberty's traditional C compatibility
  4625. macros, 'PARAMS' and 'VPARAMS'. This warning is also bypassed
  4626. for nested functions because that feature is already a GCC
  4627. extension and thus not relevant to traditional C
  4628. compatibility.
  4629. '-Wtraditional-conversion (C and Objective-C only)'
  4630. Warn if a prototype causes a type conversion that is different from
  4631. what would happen to the same argument in the absence of a
  4632. prototype. This includes conversions of fixed point to floating
  4633. and vice versa, and conversions changing the width or signedness of
  4634. a fixed-point argument except when the same as the default
  4635. promotion.
  4636. '-Wdeclaration-after-statement (C and Objective-C only)'
  4637. Warn when a declaration is found after a statement in a block.
  4638. This construct, known from C++, was introduced with ISO C99 and is
  4639. by default allowed in GCC. It is not supported by ISO C90. *Note
  4640. Mixed Declarations::.
  4641. '-Wshadow'
  4642. Warn whenever a local variable or type declaration shadows another
  4643. variable, parameter, type, class member (in C++), or instance
  4644. variable (in Objective-C) or whenever a built-in function is
  4645. shadowed. Note that in C++, the compiler warns if a local variable
  4646. shadows an explicit typedef, but not if it shadows a
  4647. struct/class/enum. Same as '-Wshadow=global'.
  4648. '-Wno-shadow-ivar (Objective-C only)'
  4649. Do not warn whenever a local variable shadows an instance variable
  4650. in an Objective-C method.
  4651. '-Wshadow=global'
  4652. The default for '-Wshadow'. Warns for any (global) shadowing.
  4653. '-Wshadow=local'
  4654. Warn when a local variable shadows another local variable or
  4655. parameter. This warning is enabled by '-Wshadow=global'.
  4656. '-Wshadow=compatible-local'
  4657. Warn when a local variable shadows another local variable or
  4658. parameter whose type is compatible with that of the shadowing
  4659. variable. In C++, type compatibility here means the type of the
  4660. shadowing variable can be converted to that of the shadowed
  4661. variable. The creation of this flag (in addition to
  4662. '-Wshadow=local') is based on the idea that when a local variable
  4663. shadows another one of incompatible type, it is most likely
  4664. intentional, not a bug or typo, as shown in the following example:
  4665. for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  4666. {
  4667. for (int i = 0; i < N; ++i)
  4668. {
  4669. ...
  4670. }
  4671. ...
  4672. }
  4673. Since the two variable 'i' in the example above have incompatible
  4674. types, enabling only '-Wshadow=compatible-local' will not emit a
  4675. warning. Because their types are incompatible, if a programmer
  4676. accidentally uses one in place of the other, type checking will
  4677. catch that and emit an error or warning. So not warning (about
  4678. shadowing) in this case will not lead to undetected bugs. Use of
  4679. this flag instead of '-Wshadow=local' can possibly reduce the
  4680. number of warnings triggered by intentional shadowing.
  4681. This warning is enabled by '-Wshadow=local'.
  4682. '-Wlarger-than=LEN'
  4683. Warn whenever an object of larger than LEN bytes is defined.
  4684. '-Wframe-larger-than=LEN'
  4685. Warn if the size of a function frame is larger than LEN bytes. The
  4686. computation done to determine the stack frame size is approximate
  4687. and not conservative. The actual requirements may be somewhat
  4688. greater than LEN even if you do not get a warning. In addition,
  4689. any space allocated via 'alloca', variable-length arrays, or
  4690. related constructs is not included by the compiler when determining
  4691. whether or not to issue a warning.
  4692. '-Wno-free-nonheap-object'
  4693. Do not warn when attempting to free an object that was not
  4694. allocated on the heap.
  4695. '-Wstack-usage=LEN'
  4696. Warn if the stack usage of a function might be larger than LEN
  4697. bytes. The computation done to determine the stack usage is
  4698. conservative. Any space allocated via 'alloca', variable-length
  4699. arrays, or related constructs is included by the compiler when
  4700. determining whether or not to issue a warning.
  4701. The message is in keeping with the output of '-fstack-usage'.
  4702. * If the stack usage is fully static but exceeds the specified
  4703. amount, it's:
  4704. warning: stack usage is 1120 bytes
  4705. * If the stack usage is (partly) dynamic but bounded, it's:
  4706. warning: stack usage might be 1648 bytes
  4707. * If the stack usage is (partly) dynamic and not bounded, it's:
  4708. warning: stack usage might be unbounded
  4709. '-Wno-pedantic-ms-format (MinGW targets only)'
  4710. When used in combination with '-Wformat' and '-pedantic' without
  4711. GNU extensions, this option disables the warnings about non-ISO
  4712. 'printf' / 'scanf' format width specifiers 'I32', 'I64', and 'I'
  4713. used on Windows targets, which depend on the MS runtime.
  4714. '-Waligned-new'
  4715. Warn about a new-expression of a type that requires greater
  4716. alignment than the 'alignof(std::max_align_t)' but uses an
  4717. allocation function without an explicit alignment parameter. This
  4718. option is enabled by '-Wall'.
  4719. Normally this only warns about global allocation functions, but
  4720. '-Waligned-new=all' also warns about class member allocation
  4721. functions.
  4722. '-Wplacement-new'
  4723. '-Wplacement-new=N'
  4724. Warn about placement new expressions with undefined behavior, such
  4725. as constructing an object in a buffer that is smaller than the type
  4726. of the object. For example, the placement new expression below is
  4727. diagnosed because it attempts to construct an array of 64 integers
  4728. in a buffer only 64 bytes large.
  4729. char buf [64];
  4730. new (buf) int[64];
  4731. This warning is enabled by default.
  4732. '-Wplacement-new=1'
  4733. This is the default warning level of '-Wplacement-new'. At
  4734. this level the warning is not issued for some strictly
  4735. undefined constructs that GCC allows as extensions for
  4736. compatibility with legacy code. For example, the following
  4737. 'new' expression is not diagnosed at this level even though it
  4738. has undefined behavior according to the C++ standard because
  4739. it writes past the end of the one-element array.
  4740. struct S { int n, a[1]; };
  4741. S *s = (S *)malloc (sizeof *s + 31 * sizeof s->a[0]);
  4742. new (s->a)int [32]();
  4743. '-Wplacement-new=2'
  4744. At this level, in addition to diagnosing all the same
  4745. constructs as at level 1, a diagnostic is also issued for
  4746. placement new expressions that construct an object in the last
  4747. member of structure whose type is an array of a single element
  4748. and whose size is less than the size of the object being
  4749. constructed. While the previous example would be diagnosed,
  4750. the following construct makes use of the flexible member array
  4751. extension to avoid the warning at level 2.
  4752. struct S { int n, a[]; };
  4753. S *s = (S *)malloc (sizeof *s + 32 * sizeof s->a[0]);
  4754. new (s->a)int [32]();
  4755. '-Wpointer-arith'
  4756. Warn about anything that depends on the "size of" a function type
  4757. or of 'void'. GNU C assigns these types a size of 1, for
  4758. convenience in calculations with 'void *' pointers and pointers to
  4759. functions. In C++, warn also when an arithmetic operation involves
  4760. 'NULL'. This warning is also enabled by '-Wpedantic'.
  4761. '-Wpointer-compare'
  4762. Warn if a pointer is compared with a zero character constant. This
  4763. usually means that the pointer was meant to be dereferenced. For
  4764. example:
  4765. const char *p = foo ();
  4766. if (p == '\0')
  4767. return 42;
  4768. Note that the code above is invalid in C++11.
  4769. This warning is enabled by default.
  4770. '-Wtype-limits'
  4771. Warn if a comparison is always true or always false due to the
  4772. limited range of the data type, but do not warn for constant
  4773. expressions. For example, warn if an unsigned variable is compared
  4774. against zero with '<' or '>='. This warning is also enabled by
  4775. '-Wextra'.
  4776. '-Wcomment'
  4777. '-Wcomments'
  4778. Warn whenever a comment-start sequence '/*' appears in a '/*'
  4779. comment, or whenever a backslash-newline appears in a '//' comment.
  4780. This warning is enabled by '-Wall'.
  4781. '-Wtrigraphs'
  4782. Warn if any trigraphs are encountered that might change the meaning
  4783. of the program. Trigraphs within comments are not warned about,
  4784. except those that would form escaped newlines.
  4785. This option is implied by '-Wall'. If '-Wall' is not given, this
  4786. option is still enabled unless trigraphs are enabled. To get
  4787. trigraph conversion without warnings, but get the other '-Wall'
  4788. warnings, use '-trigraphs -Wall -Wno-trigraphs'.
  4789. '-Wundef'
  4790. Warn if an undefined identifier is evaluated in an '#if' directive.
  4791. Such identifiers are replaced with zero.
  4792. '-Wexpansion-to-defined'
  4793. Warn whenever 'defined' is encountered in the expansion of a macro
  4794. (including the case where the macro is expanded by an '#if'
  4795. directive). Such usage is not portable. This warning is also
  4796. enabled by '-Wpedantic' and '-Wextra'.
  4797. '-Wunused-macros'
  4798. Warn about macros defined in the main file that are unused. A
  4799. macro is "used" if it is expanded or tested for existence at least
  4800. once. The preprocessor also warns if the macro has not been used
  4801. at the time it is redefined or undefined.
  4802. Built-in macros, macros defined on the command line, and macros
  4803. defined in include files are not warned about.
  4804. _Note:_ If a macro is actually used, but only used in skipped
  4805. conditional blocks, then the preprocessor reports it as unused. To
  4806. avoid the warning in such a case, you might improve the scope of
  4807. the macro's definition by, for example, moving it into the first
  4808. skipped block. Alternatively, you could provide a dummy use with
  4809. something like:
  4810. #if defined the_macro_causing_the_warning
  4811. #endif
  4812. '-Wno-endif-labels'
  4813. Do not warn whenever an '#else' or an '#endif' are followed by
  4814. text. This sometimes happens in older programs with code of the
  4815. form
  4816. #if FOO
  4817. ...
  4818. #else FOO
  4819. ...
  4820. #endif FOO
  4821. The second and third 'FOO' should be in comments. This warning is
  4822. on by default.
  4823. '-Wbad-function-cast (C and Objective-C only)'
  4824. Warn when a function call is cast to a non-matching type. For
  4825. example, warn if a call to a function returning an integer type is
  4826. cast to a pointer type.
  4827. '-Wc90-c99-compat (C and Objective-C only)'
  4828. Warn about features not present in ISO C90, but present in ISO C99.
  4829. For instance, warn about use of variable length arrays, 'long long'
  4830. type, 'bool' type, compound literals, designated initializers, and
  4831. so on. This option is independent of the standards mode. Warnings
  4832. are disabled in the expression that follows '__extension__'.
  4833. '-Wc99-c11-compat (C and Objective-C only)'
  4834. Warn about features not present in ISO C99, but present in ISO C11.
  4835. For instance, warn about use of anonymous structures and unions,
  4836. '_Atomic' type qualifier, '_Thread_local' storage-class specifier,
  4837. '_Alignas' specifier, 'Alignof' operator, '_Generic' keyword, and
  4838. so on. This option is independent of the standards mode. Warnings
  4839. are disabled in the expression that follows '__extension__'.
  4840. '-Wc++-compat (C and Objective-C only)'
  4841. Warn about ISO C constructs that are outside of the common subset
  4842. of ISO C and ISO C++, e.g. request for implicit conversion from
  4843. 'void *' to a pointer to non-'void' type.
  4844. '-Wc++11-compat (C++ and Objective-C++ only)'
  4845. Warn about C++ constructs whose meaning differs between ISO C++
  4846. 1998 and ISO C++ 2011, e.g., identifiers in ISO C++ 1998 that are
  4847. keywords in ISO C++ 2011. This warning turns on '-Wnarrowing' and
  4848. is enabled by '-Wall'.
  4849. '-Wc++14-compat (C++ and Objective-C++ only)'
  4850. Warn about C++ constructs whose meaning differs between ISO C++
  4851. 2011 and ISO C++ 2014. This warning is enabled by '-Wall'.
  4852. '-Wc++17-compat (C++ and Objective-C++ only)'
  4853. Warn about C++ constructs whose meaning differs between ISO C++
  4854. 2014 and ISO C++ 2017. This warning is enabled by '-Wall'.
  4855. '-Wcast-qual'
  4856. Warn whenever a pointer is cast so as to remove a type qualifier
  4857. from the target type. For example, warn if a 'const char *' is
  4858. cast to an ordinary 'char *'.
  4859. Also warn when making a cast that introduces a type qualifier in an
  4860. unsafe way. For example, casting 'char **' to 'const char **' is
  4861. unsafe, as in this example:
  4862. /* p is char ** value. */
  4863. const char **q = (const char **) p;
  4864. /* Assignment of readonly string to const char * is OK. */
  4865. *q = "string";
  4866. /* Now char** pointer points to read-only memory. */
  4867. **p = 'b';
  4868. '-Wcast-align'
  4869. Warn whenever a pointer is cast such that the required alignment of
  4870. the target is increased. For example, warn if a 'char *' is cast
  4871. to an 'int *' on machines where integers can only be accessed at
  4872. two- or four-byte boundaries.
  4873. '-Wcast-align=strict'
  4874. Warn whenever a pointer is cast such that the required alignment of
  4875. the target is increased. For example, warn if a 'char *' is cast
  4876. to an 'int *' regardless of the target machine.
  4877. '-Wcast-function-type'
  4878. Warn when a function pointer is cast to an incompatible function
  4879. pointer. In a cast involving function types with a variable
  4880. argument list only the types of initial arguments that are provided
  4881. are considered. Any parameter of pointer-type matches any other
  4882. pointer-type. Any benign differences in integral types are
  4883. ignored, like 'int' vs. 'long' on ILP32 targets. Likewise type
  4884. qualifiers are ignored. The function type 'void (*) (void)' is
  4885. special and matches everything, which can be used to suppress this
  4886. warning. In a cast involving pointer to member types this warning
  4887. warns whenever the type cast is changing the pointer to member
  4888. type. This warning is enabled by '-Wextra'.
  4889. '-Wwrite-strings'
  4890. When compiling C, give string constants the type 'const
  4891. char[LENGTH]' so that copying the address of one into a non-'const'
  4892. 'char *' pointer produces a warning. These warnings help you find
  4893. at compile time code that can try to write into a string constant,
  4894. but only if you have been very careful about using 'const' in
  4895. declarations and prototypes. Otherwise, it is just a nuisance.
  4896. This is why we did not make '-Wall' request these warnings.
  4897. When compiling C++, warn about the deprecated conversion from
  4898. string literals to 'char *'. This warning is enabled by default
  4899. for C++ programs.
  4900. '-Wcatch-value'
  4901. '-Wcatch-value=N (C++ and Objective-C++ only)'
  4902. Warn about catch handlers that do not catch via reference. With
  4903. '-Wcatch-value=1' (or '-Wcatch-value' for short) warn about
  4904. polymorphic class types that are caught by value. With
  4905. '-Wcatch-value=2' warn about all class types that are caught by
  4906. value. With '-Wcatch-value=3' warn about all types that are not
  4907. caught by reference. '-Wcatch-value' is enabled by '-Wall'.
  4908. '-Wclobbered'
  4909. Warn for variables that might be changed by 'longjmp' or 'vfork'.
  4910. This warning is also enabled by '-Wextra'.
  4911. '-Wconditionally-supported (C++ and Objective-C++ only)'
  4912. Warn for conditionally-supported (C++11 [intro.defs]) constructs.
  4913. '-Wconversion'
  4914. Warn for implicit conversions that may alter a value. This
  4915. includes conversions between real and integer, like 'abs (x)' when
  4916. 'x' is 'double'; conversions between signed and unsigned, like
  4917. 'unsigned ui = -1'; and conversions to smaller types, like 'sqrtf
  4918. (M_PI)'. Do not warn for explicit casts like 'abs ((int) x)' and
  4919. 'ui = (unsigned) -1', or if the value is not changed by the
  4920. conversion like in 'abs (2.0)'. Warnings about conversions between
  4921. signed and unsigned integers can be disabled by using
  4922. '-Wno-sign-conversion'.
  4923. For C++, also warn for confusing overload resolution for
  4924. user-defined conversions; and conversions that never use a type
  4925. conversion operator: conversions to 'void', the same type, a base
  4926. class or a reference to them. Warnings about conversions between
  4927. signed and unsigned integers are disabled by default in C++ unless
  4928. '-Wsign-conversion' is explicitly enabled.
  4929. '-Wno-conversion-null (C++ and Objective-C++ only)'
  4930. Do not warn for conversions between 'NULL' and non-pointer types.
  4931. '-Wconversion-null' is enabled by default.
  4932. '-Wzero-as-null-pointer-constant (C++ and Objective-C++ only)'
  4933. Warn when a literal '0' is used as null pointer constant. This can
  4934. be useful to facilitate the conversion to 'nullptr' in C++11.
  4935. '-Wsubobject-linkage (C++ and Objective-C++ only)'
  4936. Warn if a class type has a base or a field whose type uses the
  4937. anonymous namespace or depends on a type with no linkage. If a
  4938. type A depends on a type B with no or internal linkage, defining it
  4939. in multiple translation units would be an ODR violation because the
  4940. meaning of B is different in each translation unit. If A only
  4941. appears in a single translation unit, the best way to silence the
  4942. warning is to give it internal linkage by putting it in an
  4943. anonymous namespace as well. The compiler doesn't give this
  4944. warning for types defined in the main .C file, as those are
  4945. unlikely to have multiple definitions. '-Wsubobject-linkage' is
  4946. enabled by default.
  4947. '-Wdangling-else'
  4948. Warn about constructions where there may be confusion to which 'if'
  4949. statement an 'else' branch belongs. Here is an example of such a
  4950. case:
  4951. {
  4952. if (a)
  4953. if (b)
  4954. foo ();
  4955. else
  4956. bar ();
  4957. }
  4958. In C/C++, every 'else' branch belongs to the innermost possible
  4959. 'if' statement, which in this example is 'if (b)'. This is often
  4960. not what the programmer expected, as illustrated in the above
  4961. example by indentation the programmer chose. When there is the
  4962. potential for this confusion, GCC issues a warning when this flag
  4963. is specified. To eliminate the warning, add explicit braces around
  4964. the innermost 'if' statement so there is no way the 'else' can
  4965. belong to the enclosing 'if'. The resulting code looks like this:
  4966. {
  4967. if (a)
  4968. {
  4969. if (b)
  4970. foo ();
  4971. else
  4972. bar ();
  4973. }
  4974. }
  4975. This warning is enabled by '-Wparentheses'.
  4976. '-Wdate-time'
  4977. Warn when macros '__TIME__', '__DATE__' or '__TIMESTAMP__' are
  4978. encountered as they might prevent bit-wise-identical reproducible
  4979. compilations.
  4980. '-Wdelete-incomplete (C++ and Objective-C++ only)'
  4981. Warn when deleting a pointer to incomplete type, which may cause
  4982. undefined behavior at runtime. This warning is enabled by default.
  4983. '-Wuseless-cast (C++ and Objective-C++ only)'
  4984. Warn when an expression is casted to its own type.
  4985. '-Wempty-body'
  4986. Warn if an empty body occurs in an 'if', 'else' or 'do while'
  4987. statement. This warning is also enabled by '-Wextra'.
  4988. '-Wenum-compare'
  4989. Warn about a comparison between values of different enumerated
  4990. types. In C++ enumerated type mismatches in conditional
  4991. expressions are also diagnosed and the warning is enabled by
  4992. default. In C this warning is enabled by '-Wall'.
  4993. '-Wextra-semi (C++, Objective-C++ only)'
  4994. Warn about redundant semicolon after in-class function definition.
  4995. '-Wjump-misses-init (C, Objective-C only)'
  4996. Warn if a 'goto' statement or a 'switch' statement jumps forward
  4997. across the initialization of a variable, or jumps backward to a
  4998. label after the variable has been initialized. This only warns
  4999. about variables that are initialized when they are declared. This
  5000. warning is only supported for C and Objective-C; in C++ this sort
  5001. of branch is an error in any case.
  5002. '-Wjump-misses-init' is included in '-Wc++-compat'. It can be
  5003. disabled with the '-Wno-jump-misses-init' option.
  5004. '-Wsign-compare'
  5005. Warn when a comparison between signed and unsigned values could
  5006. produce an incorrect result when the signed value is converted to
  5007. unsigned. In C++, this warning is also enabled by '-Wall'. In C,
  5008. it is also enabled by '-Wextra'.
  5009. '-Wsign-conversion'
  5010. Warn for implicit conversions that may change the sign of an
  5011. integer value, like assigning a signed integer expression to an
  5012. unsigned integer variable. An explicit cast silences the warning.
  5013. In C, this option is enabled also by '-Wconversion'.
  5014. '-Wfloat-conversion'
  5015. Warn for implicit conversions that reduce the precision of a real
  5016. value. This includes conversions from real to integer, and from
  5017. higher precision real to lower precision real values. This option
  5018. is also enabled by '-Wconversion'.
  5019. '-Wno-scalar-storage-order'
  5020. Do not warn on suspicious constructs involving reverse scalar
  5021. storage order.
  5022. '-Wsized-deallocation (C++ and Objective-C++ only)'
  5023. Warn about a definition of an unsized deallocation function
  5024. void operator delete (void *) noexcept;
  5025. void operator delete[] (void *) noexcept;
  5026. without a definition of the corresponding sized deallocation
  5027. function
  5028. void operator delete (void *, std::size_t) noexcept;
  5029. void operator delete[] (void *, std::size_t) noexcept;
  5030. or vice versa. Enabled by '-Wextra' along with
  5031. '-fsized-deallocation'.
  5032. '-Wsizeof-pointer-div'
  5033. Warn for suspicious divisions of two sizeof expressions that divide
  5034. the pointer size by the element size, which is the usual way to
  5035. compute the array size but won't work out correctly with pointers.
  5036. This warning warns e.g. about 'sizeof (ptr) / sizeof (ptr[0])' if
  5037. 'ptr' is not an array, but a pointer. This warning is enabled by
  5038. '-Wall'.
  5039. '-Wsizeof-pointer-memaccess'
  5040. Warn for suspicious length parameters to certain string and memory
  5041. built-in functions if the argument uses 'sizeof'. This warning
  5042. triggers for example for 'memset (ptr, 0, sizeof (ptr));' if 'ptr'
  5043. is not an array, but a pointer, and suggests a possible fix, or
  5044. about 'memcpy (&foo, ptr, sizeof (&foo));'.
  5045. '-Wsizeof-pointer-memaccess' also warns about calls to bounded
  5046. string copy functions like 'strncat' or 'strncpy' that specify as
  5047. the bound a 'sizeof' expression of the source array. For example,
  5048. in the following function the call to 'strncat' specifies the size
  5049. of the source string as the bound. That is almost certainly a
  5050. mistake and so the call is diagnosed.
  5051. void make_file (const char *name)
  5052. {
  5053. char path[PATH_MAX];
  5054. strncpy (path, name, sizeof path - 1);
  5055. strncat (path, ".text", sizeof ".text");
  5056. ...
  5057. }
  5058. The '-Wsizeof-pointer-memaccess' option is enabled by '-Wall'.
  5059. '-Wsizeof-array-argument'
  5060. Warn when the 'sizeof' operator is applied to a parameter that is
  5061. declared as an array in a function definition. This warning is
  5062. enabled by default for C and C++ programs.
  5063. '-Wmemset-elt-size'
  5064. Warn for suspicious calls to the 'memset' built-in function, if the
  5065. first argument references an array, and the third argument is a
  5066. number equal to the number of elements, but not equal to the size
  5067. of the array in memory. This indicates that the user has omitted a
  5068. multiplication by the element size. This warning is enabled by
  5069. '-Wall'.
  5070. '-Wmemset-transposed-args'
  5071. Warn for suspicious calls to the 'memset' built-in function, if the
  5072. second argument is not zero and the third argument is zero. This
  5073. warns e.g. about 'memset (buf, sizeof buf, 0)' where most probably
  5074. 'memset (buf, 0, sizeof buf)' was meant instead. The diagnostics
  5075. is only emitted if the third argument is literal zero. If it is
  5076. some expression that is folded to zero, a cast of zero to some
  5077. type, etc., it is far less likely that the user has mistakenly
  5078. exchanged the arguments and no warning is emitted. This warning is
  5079. enabled by '-Wall'.
  5080. '-Waddress'
  5081. Warn about suspicious uses of memory addresses. These include
  5082. using the address of a function in a conditional expression, such
  5083. as 'void func(void); if (func)', and comparisons against the memory
  5084. address of a string literal, such as 'if (x == "abc")'. Such uses
  5085. typically indicate a programmer error: the address of a function
  5086. always evaluates to true, so their use in a conditional usually
  5087. indicate that the programmer forgot the parentheses in a function
  5088. call; and comparisons against string literals result in unspecified
  5089. behavior and are not portable in C, so they usually indicate that
  5090. the programmer intended to use 'strcmp'. This warning is enabled
  5091. by '-Wall'.
  5092. '-Wlogical-op'
  5093. Warn about suspicious uses of logical operators in expressions.
  5094. This includes using logical operators in contexts where a bit-wise
  5095. operator is likely to be expected. Also warns when the operands of
  5096. a logical operator are the same:
  5097. extern int a;
  5098. if (a < 0 && a < 0) { ... }
  5099. '-Wlogical-not-parentheses'
  5100. Warn about logical not used on the left hand side operand of a
  5101. comparison. This option does not warn if the right operand is
  5102. considered to be a boolean expression. Its purpose is to detect
  5103. suspicious code like the following:
  5104. int a;
  5105. ...
  5106. if (!a > 1) { ... }
  5107. It is possible to suppress the warning by wrapping the LHS into
  5108. parentheses:
  5109. if ((!a) > 1) { ... }
  5110. This warning is enabled by '-Wall'.
  5111. '-Waggregate-return'
  5112. Warn if any functions that return structures or unions are defined
  5113. or called. (In languages where you can return an array, this also
  5114. elicits a warning.)
  5115. '-Wno-aggressive-loop-optimizations'
  5116. Warn if in a loop with constant number of iterations the compiler
  5117. detects undefined behavior in some statement during one or more of
  5118. the iterations.
  5119. '-Wno-attributes'
  5120. Do not warn if an unexpected '__attribute__' is used, such as
  5121. unrecognized attributes, function attributes applied to variables,
  5122. etc. This does not stop errors for incorrect use of supported
  5123. attributes.
  5124. '-Wno-builtin-declaration-mismatch'
  5125. Warn if a built-in function is declared with the wrong signature or
  5126. as non-function. This warning is enabled by default.
  5127. '-Wno-builtin-macro-redefined'
  5128. Do not warn if certain built-in macros are redefined. This
  5129. suppresses warnings for redefinition of '__TIMESTAMP__',
  5130. '__TIME__', '__DATE__', '__FILE__', and '__BASE_FILE__'.
  5131. '-Wstrict-prototypes (C and Objective-C only)'
  5132. Warn if a function is declared or defined without specifying the
  5133. argument types. (An old-style function definition is permitted
  5134. without a warning if preceded by a declaration that specifies the
  5135. argument types.)
  5136. '-Wold-style-declaration (C and Objective-C only)'
  5137. Warn for obsolescent usages, according to the C Standard, in a
  5138. declaration. For example, warn if storage-class specifiers like
  5139. 'static' are not the first things in a declaration. This warning
  5140. is also enabled by '-Wextra'.
  5141. '-Wold-style-definition (C and Objective-C only)'
  5142. Warn if an old-style function definition is used. A warning is
  5143. given even if there is a previous prototype.
  5144. '-Wmissing-parameter-type (C and Objective-C only)'
  5145. A function parameter is declared without a type specifier in
  5146. K&R-style functions:
  5147. void foo(bar) { }
  5148. This warning is also enabled by '-Wextra'.
  5149. '-Wmissing-prototypes (C and Objective-C only)'
  5150. Warn if a global function is defined without a previous prototype
  5151. declaration. This warning is issued even if the definition itself
  5152. provides a prototype. Use this option to detect global functions
  5153. that do not have a matching prototype declaration in a header file.
  5154. This option is not valid for C++ because all function declarations
  5155. provide prototypes and a non-matching declaration declares an
  5156. overload rather than conflict with an earlier declaration. Use
  5157. '-Wmissing-declarations' to detect missing declarations in C++.
  5158. '-Wmissing-declarations'
  5159. Warn if a global function is defined without a previous
  5160. declaration. Do so even if the definition itself provides a
  5161. prototype. Use this option to detect global functions that are not
  5162. declared in header files. In C, no warnings are issued for
  5163. functions with previous non-prototype declarations; use
  5164. '-Wmissing-prototypes' to detect missing prototypes. In C++, no
  5165. warnings are issued for function templates, or for inline
  5166. functions, or for functions in anonymous namespaces.
  5167. '-Wmissing-field-initializers'
  5168. Warn if a structure's initializer has some fields missing. For
  5169. example, the following code causes such a warning, because 'x.h' is
  5170. implicitly zero:
  5171. struct s { int f, g, h; };
  5172. struct s x = { 3, 4 };
  5173. This option does not warn about designated initializers, so the
  5174. following modification does not trigger a warning:
  5175. struct s { int f, g, h; };
  5176. struct s x = { .f = 3, .g = 4 };
  5177. In C this option does not warn about the universal zero initializer
  5178. '{ 0 }':
  5179. struct s { int f, g, h; };
  5180. struct s x = { 0 };
  5181. Likewise, in C++ this option does not warn about the empty { }
  5182. initializer, for example:
  5183. struct s { int f, g, h; };
  5184. s x = { };
  5185. This warning is included in '-Wextra'. To get other '-Wextra'
  5186. warnings without this one, use '-Wextra
  5187. -Wno-missing-field-initializers'.
  5188. '-Wno-multichar'
  5189. Do not warn if a multicharacter constant (''FOOF'') is used.
  5190. Usually they indicate a typo in the user's code, as they have
  5191. implementation-defined values, and should not be used in portable
  5192. code.
  5193. '-Wnormalized=[none|id|nfc|nfkc]'
  5194. In ISO C and ISO C++, two identifiers are different if they are
  5195. different sequences of characters. However, sometimes when
  5196. characters outside the basic ASCII character set are used, you can
  5197. have two different character sequences that look the same. To
  5198. avoid confusion, the ISO 10646 standard sets out some
  5199. "normalization rules" which when applied ensure that two sequences
  5200. that look the same are turned into the same sequence. GCC can warn
  5201. you if you are using identifiers that have not been normalized;
  5202. this option controls that warning.
  5203. There are four levels of warning supported by GCC. The default is
  5204. '-Wnormalized=nfc', which warns about any identifier that is not in
  5205. the ISO 10646 "C" normalized form, "NFC". NFC is the recommended
  5206. form for most uses. It is equivalent to '-Wnormalized'.
  5207. Unfortunately, there are some characters allowed in identifiers by
  5208. ISO C and ISO C++ that, when turned into NFC, are not allowed in
  5209. identifiers. That is, there's no way to use these symbols in
  5210. portable ISO C or C++ and have all your identifiers in NFC.
  5211. '-Wnormalized=id' suppresses the warning for these characters. It
  5212. is hoped that future versions of the standards involved will
  5213. correct this, which is why this option is not the default.
  5214. You can switch the warning off for all characters by writing
  5215. '-Wnormalized=none' or '-Wno-normalized'. You should only do this
  5216. if you are using some other normalization scheme (like "D"),
  5217. because otherwise you can easily create bugs that are literally
  5218. impossible to see.
  5219. Some characters in ISO 10646 have distinct meanings but look
  5220. identical in some fonts or display methodologies, especially once
  5221. formatting has been applied. For instance '\u207F', "SUPERSCRIPT
  5222. LATIN SMALL LETTER N", displays just like a regular 'n' that has
  5223. been placed in a superscript. ISO 10646 defines the "NFKC"
  5224. normalization scheme to convert all these into a standard form as
  5225. well, and GCC warns if your code is not in NFKC if you use
  5226. '-Wnormalized=nfkc'. This warning is comparable to warning about
  5227. every identifier that contains the letter O because it might be
  5228. confused with the digit 0, and so is not the default, but may be
  5229. useful as a local coding convention if the programming environment
  5230. cannot be fixed to display these characters distinctly.
  5231. '-Wno-deprecated'
  5232. Do not warn about usage of deprecated features. *Note Deprecated
  5233. Features::.
  5234. '-Wno-deprecated-declarations'
  5235. Do not warn about uses of functions (*note Function Attributes::),
  5236. variables (*note Variable Attributes::), and types (*note Type
  5237. Attributes::) marked as deprecated by using the 'deprecated'
  5238. attribute.
  5239. '-Wno-overflow'
  5240. Do not warn about compile-time overflow in constant expressions.
  5241. '-Wno-odr'
  5242. Warn about One Definition Rule violations during link-time
  5243. optimization. Requires '-flto-odr-type-merging' to be enabled.
  5244. Enabled by default.
  5245. '-Wopenmp-simd'
  5246. Warn if the vectorizer cost model overrides the OpenMP simd
  5247. directive set by user. The '-fsimd-cost-model=unlimited' option
  5248. can be used to relax the cost model.
  5249. '-Woverride-init (C and Objective-C only)'
  5250. Warn if an initialized field without side effects is overridden
  5251. when using designated initializers (*note Designated Initializers:
  5252. Designated Inits.).
  5253. This warning is included in '-Wextra'. To get other '-Wextra'
  5254. warnings without this one, use '-Wextra -Wno-override-init'.
  5255. '-Woverride-init-side-effects (C and Objective-C only)'
  5256. Warn if an initialized field with side effects is overridden when
  5257. using designated initializers (*note Designated Initializers:
  5258. Designated Inits.). This warning is enabled by default.
  5259. '-Wpacked'
  5260. Warn if a structure is given the packed attribute, but the packed
  5261. attribute has no effect on the layout or size of the structure.
  5262. Such structures may be mis-aligned for little benefit. For
  5263. instance, in this code, the variable 'f.x' in 'struct bar' is
  5264. misaligned even though 'struct bar' does not itself have the packed
  5265. attribute:
  5266. struct foo {
  5267. int x;
  5268. char a, b, c, d;
  5269. } __attribute__((packed));
  5270. struct bar {
  5271. char z;
  5272. struct foo f;
  5273. };
  5274. '-Wpacked-bitfield-compat'
  5275. The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed' attribute on
  5276. bit-fields of type 'char'. This has been fixed in GCC 4.4 but the
  5277. change can lead to differences in the structure layout. GCC
  5278. informs you when the offset of such a field has changed in GCC 4.4.
  5279. For example there is no longer a 4-bit padding between field 'a'
  5280. and 'b' in this structure:
  5281. struct foo
  5282. {
  5283. char a:4;
  5284. char b:8;
  5285. } __attribute__ ((packed));
  5286. This warning is enabled by default. Use
  5287. '-Wno-packed-bitfield-compat' to disable this warning.
  5288. '-Wpacked-not-aligned (C, C++, Objective-C and Objective-C++ only)'
  5289. Warn if a structure field with explicitly specified alignment in a
  5290. packed struct or union is misaligned. For example, a warning will
  5291. be issued on 'struct S', like, 'warning: alignment 1 of 'struct S'
  5292. is less than 8', in this code:
  5293. struct __attribute__ ((aligned (8))) S8 { char a[8]; };
  5294. struct __attribute__ ((packed)) S {
  5295. struct S8 s8;
  5296. };
  5297. This warning is enabled by '-Wall'.
  5298. '-Wpadded'
  5299. Warn if padding is included in a structure, either to align an
  5300. element of the structure or to align the whole structure.
  5301. Sometimes when this happens it is possible to rearrange the fields
  5302. of the structure to reduce the padding and so make the structure
  5303. smaller.
  5304. '-Wredundant-decls'
  5305. Warn if anything is declared more than once in the same scope, even
  5306. in cases where multiple declaration is valid and changes nothing.
  5307. '-Wno-restrict'
  5308. Warn when an object referenced by a 'restrict'-qualified parameter
  5309. (or, in C++, a '__restrict'-qualified parameter) is aliased by
  5310. another argument, or when copies between such objects overlap. For
  5311. example, the call to the 'strcpy' function below attempts to
  5312. truncate the string by replacing its initial characters with the
  5313. last four. However, because the call writes the terminating NUL
  5314. into 'a[4]', the copies overlap and the call is diagnosed.
  5315. void foo (void)
  5316. {
  5317. char a[] = "abcd1234";
  5318. strcpy (a, a + 4);
  5319. ...
  5320. }
  5321. The '-Wrestrict' option detects some instances of simple overlap
  5322. even without optimization but works best at '-O2' and above. It is
  5323. included in '-Wall'.
  5324. '-Wnested-externs (C and Objective-C only)'
  5325. Warn if an 'extern' declaration is encountered within a function.
  5326. '-Wno-inherited-variadic-ctor'
  5327. Suppress warnings about use of C++11 inheriting constructors when
  5328. the base class inherited from has a C variadic constructor; the
  5329. warning is on by default because the ellipsis is not inherited.
  5330. '-Winline'
  5331. Warn if a function that is declared as inline cannot be inlined.
  5332. Even with this option, the compiler does not warn about failures to
  5333. inline functions declared in system headers.
  5334. The compiler uses a variety of heuristics to determine whether or
  5335. not to inline a function. For example, the compiler takes into
  5336. account the size of the function being inlined and the amount of
  5337. inlining that has already been done in the current function.
  5338. Therefore, seemingly insignificant changes in the source program
  5339. can cause the warnings produced by '-Winline' to appear or
  5340. disappear.
  5341. '-Wno-invalid-offsetof (C++ and Objective-C++ only)'
  5342. Suppress warnings from applying the 'offsetof' macro to a non-POD
  5343. type. According to the 2014 ISO C++ standard, applying 'offsetof'
  5344. to a non-standard-layout type is undefined. In existing C++
  5345. implementations, however, 'offsetof' typically gives meaningful
  5346. results. This flag is for users who are aware that they are
  5347. writing nonportable code and who have deliberately chosen to ignore
  5348. the warning about it.
  5349. The restrictions on 'offsetof' may be relaxed in a future version
  5350. of the C++ standard.
  5351. '-Wint-in-bool-context'
  5352. Warn for suspicious use of integer values where boolean values are
  5353. expected, such as conditional expressions (?:) using non-boolean
  5354. integer constants in boolean context, like 'if (a <= b ? 2 : 3)'.
  5355. Or left shifting of signed integers in boolean context, like 'for
  5356. (a = 0; 1 << a; a++);'. Likewise for all kinds of multiplications
  5357. regardless of the data type. This warning is enabled by '-Wall'.
  5358. '-Wno-int-to-pointer-cast'
  5359. Suppress warnings from casts to pointer type of an integer of a
  5360. different size. In C++, casting to a pointer type of smaller size
  5361. is an error. 'Wint-to-pointer-cast' is enabled by default.
  5362. '-Wno-pointer-to-int-cast (C and Objective-C only)'
  5363. Suppress warnings from casts from a pointer to an integer type of a
  5364. different size.
  5365. '-Winvalid-pch'
  5366. Warn if a precompiled header (*note Precompiled Headers::) is found
  5367. in the search path but cannot be used.
  5368. '-Wlong-long'
  5369. Warn if 'long long' type is used. This is enabled by either
  5370. '-Wpedantic' or '-Wtraditional' in ISO C90 and C++98 modes. To
  5371. inhibit the warning messages, use '-Wno-long-long'.
  5372. '-Wvariadic-macros'
  5373. Warn if variadic macros are used in ISO C90 mode, or if the GNU
  5374. alternate syntax is used in ISO C99 mode. This is enabled by
  5375. either '-Wpedantic' or '-Wtraditional'. To inhibit the warning
  5376. messages, use '-Wno-variadic-macros'.
  5377. '-Wvarargs'
  5378. Warn upon questionable usage of the macros used to handle variable
  5379. arguments like 'va_start'. This is default. To inhibit the
  5380. warning messages, use '-Wno-varargs'.
  5381. '-Wvector-operation-performance'
  5382. Warn if vector operation is not implemented via SIMD capabilities
  5383. of the architecture. Mainly useful for the performance tuning.
  5384. Vector operation can be implemented 'piecewise', which means that
  5385. the scalar operation is performed on every vector element; 'in
  5386. parallel', which means that the vector operation is implemented
  5387. using scalars of wider type, which normally is more performance
  5388. efficient; and 'as a single scalar', which means that vector fits
  5389. into a scalar type.
  5390. '-Wno-virtual-move-assign'
  5391. Suppress warnings about inheriting from a virtual base with a
  5392. non-trivial C++11 move assignment operator. This is dangerous
  5393. because if the virtual base is reachable along more than one path,
  5394. it is moved multiple times, which can mean both objects end up in
  5395. the moved-from state. If the move assignment operator is written
  5396. to avoid moving from a moved-from object, this warning can be
  5397. disabled.
  5398. '-Wvla'
  5399. Warn if a variable-length array is used in the code. '-Wno-vla'
  5400. prevents the '-Wpedantic' warning of the variable-length array.
  5401. '-Wvla-larger-than=N'
  5402. If this option is used, the compiler will warn on uses of
  5403. variable-length arrays where the size is either unbounded, or
  5404. bounded by an argument that can be larger than N bytes. This is
  5405. similar to how '-Walloca-larger-than=N' works, but with
  5406. variable-length arrays.
  5407. Note that GCC may optimize small variable-length arrays of a known
  5408. value into plain arrays, so this warning may not get triggered for
  5409. such arrays.
  5410. This warning is not enabled by '-Wall', and is only active when
  5411. '-ftree-vrp' is active (default for '-O2' and above).
  5412. See also '-Walloca-larger-than=N'.
  5413. '-Wvolatile-register-var'
  5414. Warn if a register variable is declared volatile. The volatile
  5415. modifier does not inhibit all optimizations that may eliminate
  5416. reads and/or writes to register variables. This warning is enabled
  5417. by '-Wall'.
  5418. '-Wdisabled-optimization'
  5419. Warn if a requested optimization pass is disabled. This warning
  5420. does not generally indicate that there is anything wrong with your
  5421. code; it merely indicates that GCC's optimizers are unable to
  5422. handle the code effectively. Often, the problem is that your code
  5423. is too big or too complex; GCC refuses to optimize programs when
  5424. the optimization itself is likely to take inordinate amounts of
  5425. time.
  5426. '-Wpointer-sign (C and Objective-C only)'
  5427. Warn for pointer argument passing or assignment with different
  5428. signedness. This option is only supported for C and Objective-C.
  5429. It is implied by '-Wall' and by '-Wpedantic', which can be disabled
  5430. with '-Wno-pointer-sign'.
  5431. '-Wstack-protector'
  5432. This option is only active when '-fstack-protector' is active. It
  5433. warns about functions that are not protected against stack
  5434. smashing.
  5435. '-Woverlength-strings'
  5436. Warn about string constants that are longer than the "minimum
  5437. maximum" length specified in the C standard. Modern compilers
  5438. generally allow string constants that are much longer than the
  5439. standard's minimum limit, but very portable programs should avoid
  5440. using longer strings.
  5441. The limit applies _after_ string constant concatenation, and does
  5442. not count the trailing NUL. In C90, the limit was 509 characters;
  5443. in C99, it was raised to 4095. C++98 does not specify a normative
  5444. minimum maximum, so we do not diagnose overlength strings in C++.
  5445. This option is implied by '-Wpedantic', and can be disabled with
  5446. '-Wno-overlength-strings'.
  5447. '-Wunsuffixed-float-constants (C and Objective-C only)'
  5448. Issue a warning for any floating constant that does not have a
  5449. suffix. When used together with '-Wsystem-headers' it warns about
  5450. such constants in system header files. This can be useful when
  5451. preparing code to use with the 'FLOAT_CONST_DECIMAL64' pragma from
  5452. the decimal floating-point extension to C99.
  5453. '-Wno-designated-init (C and Objective-C only)'
  5454. Suppress warnings when a positional initializer is used to
  5455. initialize a structure that has been marked with the
  5456. 'designated_init' attribute.
  5457. '-Whsa'
  5458. Issue a warning when HSAIL cannot be emitted for the compiled
  5459. function or OpenMP construct.
  5460. 
  5461. File: gcc.info, Node: Debugging Options, Next: Optimize Options, Prev: Warning Options, Up: Invoking GCC
  5462. 3.9 Options for Debugging Your Program
  5463. ======================================
  5464. To tell GCC to emit extra information for use by a debugger, in almost
  5465. all cases you need only to add '-g' to your other options.
  5466. GCC allows you to use '-g' with '-O'. The shortcuts taken by optimized
  5467. code may occasionally be surprising: some variables you declared may not
  5468. exist at all; flow of control may briefly move where you did not expect
  5469. it; some statements may not be executed because they compute constant
  5470. results or their values are already at hand; some statements may execute
  5471. in different places because they have been moved out of loops.
  5472. Nevertheless it is possible to debug optimized output. This makes it
  5473. reasonable to use the optimizer for programs that might have bugs.
  5474. If you are not using some other optimization option, consider using
  5475. '-Og' (*note Optimize Options::) with '-g'. With no '-O' option at all,
  5476. some compiler passes that collect information useful for debugging do
  5477. not run at all, so that '-Og' may result in a better debugging
  5478. experience.
  5479. '-g'
  5480. Produce debugging information in the operating system's native
  5481. format (stabs, COFF, XCOFF, or DWARF). GDB can work with this
  5482. debugging information.
  5483. On most systems that use stabs format, '-g' enables use of extra
  5484. debugging information that only GDB can use; this extra information
  5485. makes debugging work better in GDB but probably makes other
  5486. debuggers crash or refuse to read the program. If you want to
  5487. control for certain whether to generate the extra information, use
  5488. '-gstabs+', '-gstabs', '-gxcoff+', '-gxcoff', or '-gvms' (see
  5489. below).
  5490. '-ggdb'
  5491. Produce debugging information for use by GDB. This means to use
  5492. the most expressive format available (DWARF, stabs, or the native
  5493. format if neither of those are supported), including GDB extensions
  5494. if at all possible.
  5495. '-gdwarf'
  5496. '-gdwarf-VERSION'
  5497. Produce debugging information in DWARF format (if that is
  5498. supported). The value of VERSION may be either 2, 3, 4 or 5; the
  5499. default version for most targets is 4. DWARF Version 5 is only
  5500. experimental.
  5501. Note that with DWARF Version 2, some ports require and always use
  5502. some non-conflicting DWARF 3 extensions in the unwind tables.
  5503. Version 4 may require GDB 7.0 and '-fvar-tracking-assignments' for
  5504. maximum benefit.
  5505. GCC no longer supports DWARF Version 1, which is substantially
  5506. different than Version 2 and later. For historical reasons, some
  5507. other DWARF-related options such as '-fno-dwarf2-cfi-asm') retain a
  5508. reference to DWARF Version 2 in their names, but apply to all
  5509. currently-supported versions of DWARF.
  5510. '-gstabs'
  5511. Produce debugging information in stabs format (if that is
  5512. supported), without GDB extensions. This is the format used by DBX
  5513. on most BSD systems. On MIPS, Alpha and System V Release 4 systems
  5514. this option produces stabs debugging output that is not understood
  5515. by DBX. On System V Release 4 systems this option requires the GNU
  5516. assembler.
  5517. '-gstabs+'
  5518. Produce debugging information in stabs format (if that is
  5519. supported), using GNU extensions understood only by the GNU
  5520. debugger (GDB). The use of these extensions is likely to make
  5521. other debuggers crash or refuse to read the program.
  5522. '-gxcoff'
  5523. Produce debugging information in XCOFF format (if that is
  5524. supported). This is the format used by the DBX debugger on IBM
  5525. RS/6000 systems.
  5526. '-gxcoff+'
  5527. Produce debugging information in XCOFF format (if that is
  5528. supported), using GNU extensions understood only by the GNU
  5529. debugger (GDB). The use of these extensions is likely to make
  5530. other debuggers crash or refuse to read the program, and may cause
  5531. assemblers other than the GNU assembler (GAS) to fail with an
  5532. error.
  5533. '-gvms'
  5534. Produce debugging information in Alpha/VMS debug format (if that is
  5535. supported). This is the format used by DEBUG on Alpha/VMS systems.
  5536. '-gLEVEL'
  5537. '-ggdbLEVEL'
  5538. '-gstabsLEVEL'
  5539. '-gxcoffLEVEL'
  5540. '-gvmsLEVEL'
  5541. Request debugging information and also use LEVEL to specify how
  5542. much information. The default level is 2.
  5543. Level 0 produces no debug information at all. Thus, '-g0' negates
  5544. '-g'.
  5545. Level 1 produces minimal information, enough for making backtraces
  5546. in parts of the program that you don't plan to debug. This
  5547. includes descriptions of functions and external variables, and line
  5548. number tables, but no information about local variables.
  5549. Level 3 includes extra information, such as all the macro
  5550. definitions present in the program. Some debuggers support macro
  5551. expansion when you use '-g3'.
  5552. '-gdwarf' does not accept a concatenated debug level, to avoid
  5553. confusion with '-gdwarf-LEVEL'. Instead use an additional
  5554. '-gLEVEL' option to change the debug level for DWARF.
  5555. '-feliminate-unused-debug-symbols'
  5556. Produce debugging information in stabs format (if that is
  5557. supported), for only symbols that are actually used.
  5558. '-femit-class-debug-always'
  5559. Instead of emitting debugging information for a C++ class in only
  5560. one object file, emit it in all object files using the class. This
  5561. option should be used only with debuggers that are unable to handle
  5562. the way GCC normally emits debugging information for classes
  5563. because using this option increases the size of debugging
  5564. information by as much as a factor of two.
  5565. '-fno-merge-debug-strings'
  5566. Direct the linker to not merge together strings in the debugging
  5567. information that are identical in different object files. Merging
  5568. is not supported by all assemblers or linkers. Merging decreases
  5569. the size of the debug information in the output file at the cost of
  5570. increasing link processing time. Merging is enabled by default.
  5571. '-fdebug-prefix-map=OLD=NEW'
  5572. When compiling files residing in directory 'OLD', record debugging
  5573. information describing them as if the files resided in directory
  5574. 'NEW' instead. This can be used to replace a build-time path with
  5575. an install-time path in the debug info. It can also be used to
  5576. change an absolute path to a relative path by using '.' for NEW.
  5577. This can give more reproducible builds, which are location
  5578. independent, but may require an extra command to tell GDB where to
  5579. find the source files. See also '-ffile-prefix-map'.
  5580. '-fvar-tracking'
  5581. Run variable tracking pass. It computes where variables are stored
  5582. at each position in code. Better debugging information is then
  5583. generated (if the debugging information format supports this
  5584. information).
  5585. It is enabled by default when compiling with optimization ('-Os',
  5586. '-O', '-O2', ...), debugging information ('-g') and the debug info
  5587. format supports it.
  5588. '-fvar-tracking-assignments'
  5589. Annotate assignments to user variables early in the compilation and
  5590. attempt to carry the annotations over throughout the compilation
  5591. all the way to the end, in an attempt to improve debug information
  5592. while optimizing. Use of '-gdwarf-4' is recommended along with it.
  5593. It can be enabled even if var-tracking is disabled, in which case
  5594. annotations are created and maintained, but discarded at the end.
  5595. By default, this flag is enabled together with '-fvar-tracking',
  5596. except when selective scheduling is enabled.
  5597. '-gsplit-dwarf'
  5598. Separate as much DWARF debugging information as possible into a
  5599. separate output file with the extension '.dwo'. This option allows
  5600. the build system to avoid linking files with debug information. To
  5601. be useful, this option requires a debugger capable of reading
  5602. '.dwo' files.
  5603. '-gpubnames'
  5604. Generate DWARF '.debug_pubnames' and '.debug_pubtypes' sections.
  5605. '-ggnu-pubnames'
  5606. Generate '.debug_pubnames' and '.debug_pubtypes' sections in a
  5607. format suitable for conversion into a GDB index. This option is
  5608. only useful with a linker that can produce GDB index version 7.
  5609. '-fdebug-types-section'
  5610. When using DWARF Version 4 or higher, type DIEs can be put into
  5611. their own '.debug_types' section instead of making them part of the
  5612. '.debug_info' section. It is more efficient to put them in a
  5613. separate comdat sections since the linker can then remove
  5614. duplicates. But not all DWARF consumers support '.debug_types'
  5615. sections yet and on some objects '.debug_types' produces larger
  5616. instead of smaller debugging information.
  5617. '-grecord-gcc-switches'
  5618. '-gno-record-gcc-switches'
  5619. This switch causes the command-line options used to invoke the
  5620. compiler that may affect code generation to be appended to the
  5621. DW_AT_producer attribute in DWARF debugging information. The
  5622. options are concatenated with spaces separating them from each
  5623. other and from the compiler version. It is enabled by default.
  5624. See also '-frecord-gcc-switches' for another way of storing
  5625. compiler options into the object file.
  5626. '-gstrict-dwarf'
  5627. Disallow using extensions of later DWARF standard version than
  5628. selected with '-gdwarf-VERSION'. On most targets using
  5629. non-conflicting DWARF extensions from later standard versions is
  5630. allowed.
  5631. '-gno-strict-dwarf'
  5632. Allow using extensions of later DWARF standard version than
  5633. selected with '-gdwarf-VERSION'.
  5634. '-gas-loc-support'
  5635. Inform the compiler that the assembler supports '.loc' directives.
  5636. It may then use them for the assembler to generate DWARF2+ line
  5637. number tables.
  5638. This is generally desirable, because assembler-generated
  5639. line-number tables are a lot more compact than those the compiler
  5640. can generate itself.
  5641. This option will be enabled by default if, at GCC configure time,
  5642. the assembler was found to support such directives.
  5643. '-gno-as-loc-support'
  5644. Force GCC to generate DWARF2+ line number tables internally, if
  5645. DWARF2+ line number tables are to be generated.
  5646. 'gas-locview-support'
  5647. Inform the compiler that the assembler supports 'view' assignment
  5648. and reset assertion checking in '.loc' directives.
  5649. This option will be enabled by default if, at GCC configure time,
  5650. the assembler was found to support them.
  5651. 'gno-as-locview-support'
  5652. Force GCC to assign view numbers internally, if
  5653. '-gvariable-location-views' are explicitly requested.
  5654. '-gcolumn-info'
  5655. '-gno-column-info'
  5656. Emit location column information into DWARF debugging information,
  5657. rather than just file and line. This option is enabled by default.
  5658. '-gstatement-frontiers'
  5659. '-gno-statement-frontiers'
  5660. This option causes GCC to create markers in the internal
  5661. representation at the beginning of statements, and to keep them
  5662. roughly in place throughout compilation, using them to guide the
  5663. output of 'is_stmt' markers in the line number table. This is
  5664. enabled by default when compiling with optimization ('-Os', '-O',
  5665. '-O2', ...), and outputting DWARF 2 debug information at the normal
  5666. level.
  5667. '-gvariable-location-views'
  5668. '-gvariable-location-views=incompat5'
  5669. '-gno-variable-location-views'
  5670. Augment variable location lists with progressive view numbers
  5671. implied from the line number table. This enables debug information
  5672. consumers to inspect state at certain points of the program, even
  5673. if no instructions associated with the corresponding source
  5674. locations are present at that point. If the assembler lacks
  5675. support for view numbers in line number tables, this will cause the
  5676. compiler to emit the line number table, which generally makes them
  5677. somewhat less compact. The augmented line number tables and
  5678. location lists are fully backward-compatible, so they can be
  5679. consumed by debug information consumers that are not aware of these
  5680. augmentations, but they won't derive any benefit from them either.
  5681. This is enabled by default when outputting DWARF 2 debug
  5682. information at the normal level, as long as there is assembler
  5683. support, '-fvar-tracking-assignments' is enabled and
  5684. '-gstrict-dwarf' is not. When assembler support is not available,
  5685. this may still be enabled, but it will force GCC to output internal
  5686. line number tables, and if '-ginternal-reset-location-views' is not
  5687. enabled, that will most certainly lead to silently mismatching
  5688. location views.
  5689. There is a proposed representation for view numbers that is not
  5690. backward compatible with the location list format introduced in
  5691. DWARF 5, that can be enabled with
  5692. '-gvariable-location-views=incompat5'. This option may be removed
  5693. in the future, is only provided as a reference implementation of
  5694. the proposed representation. Debug information consumers are not
  5695. expected to support this extended format, and they would be
  5696. rendered unable to decode location lists using it.
  5697. '-ginternal-reset-location-views'
  5698. '-gnointernal-reset-location-views'
  5699. Attempt to determine location views that can be omitted from
  5700. location view lists. This requires the compiler to have very
  5701. accurate insn length estimates, which isn't always the case, and it
  5702. may cause incorrect view lists to be generated silently when using
  5703. an assembler that does not support location view lists. The GNU
  5704. assembler will flag any such error as a 'view number mismatch'.
  5705. This is only enabled on ports that define a reliable estimation
  5706. function.
  5707. '-ginline-points'
  5708. '-gno-inline-points'
  5709. Generate extended debug information for inlined functions.
  5710. Location view tracking markers are inserted at inlined entry
  5711. points, so that address and view numbers can be computed and output
  5712. in debug information. This can be enabled independently of
  5713. location views, in which case the view numbers won't be output, but
  5714. it can only be enabled along with statement frontiers, and it is
  5715. only enabled by default if location views are enabled.
  5716. '-gz[=TYPE]'
  5717. Produce compressed debug sections in DWARF format, if that is
  5718. supported. If TYPE is not given, the default type depends on the
  5719. capabilities of the assembler and linker used. TYPE may be one of
  5720. 'none' (don't compress debug sections), 'zlib' (use zlib
  5721. compression in ELF gABI format), or 'zlib-gnu' (use zlib
  5722. compression in traditional GNU format). If the linker doesn't
  5723. support writing compressed debug sections, the option is rejected.
  5724. Otherwise, if the assembler does not support them, '-gz' is
  5725. silently ignored when producing object files.
  5726. '-femit-struct-debug-baseonly'
  5727. Emit debug information for struct-like types only when the base
  5728. name of the compilation source file matches the base name of file
  5729. in which the struct is defined.
  5730. This option substantially reduces the size of debugging
  5731. information, but at significant potential loss in type information
  5732. to the debugger. See '-femit-struct-debug-reduced' for a less
  5733. aggressive option. See '-femit-struct-debug-detailed' for more
  5734. detailed control.
  5735. This option works only with DWARF debug output.
  5736. '-femit-struct-debug-reduced'
  5737. Emit debug information for struct-like types only when the base
  5738. name of the compilation source file matches the base name of file
  5739. in which the type is defined, unless the struct is a template or
  5740. defined in a system header.
  5741. This option significantly reduces the size of debugging
  5742. information, with some potential loss in type information to the
  5743. debugger. See '-femit-struct-debug-baseonly' for a more aggressive
  5744. option. See '-femit-struct-debug-detailed' for more detailed
  5745. control.
  5746. This option works only with DWARF debug output.
  5747. '-femit-struct-debug-detailed[=SPEC-LIST]'
  5748. Specify the struct-like types for which the compiler generates
  5749. debug information. The intent is to reduce duplicate struct debug
  5750. information between different object files within the same program.
  5751. This option is a detailed version of '-femit-struct-debug-reduced'
  5752. and '-femit-struct-debug-baseonly', which serves for most needs.
  5753. A specification has the syntax
  5754. ['dir:'|'ind:']['ord:'|'gen:']('any'|'sys'|'base'|'none')
  5755. The optional first word limits the specification to structs that
  5756. are used directly ('dir:') or used indirectly ('ind:'). A struct
  5757. type is used directly when it is the type of a variable, member.
  5758. Indirect uses arise through pointers to structs. That is, when use
  5759. of an incomplete struct is valid, the use is indirect. An example
  5760. is 'struct one direct; struct two * indirect;'.
  5761. The optional second word limits the specification to ordinary
  5762. structs ('ord:') or generic structs ('gen:'). Generic structs are
  5763. a bit complicated to explain. For C++, these are non-explicit
  5764. specializations of template classes, or non-template classes within
  5765. the above. Other programming languages have generics, but
  5766. '-femit-struct-debug-detailed' does not yet implement them.
  5767. The third word specifies the source files for those structs for
  5768. which the compiler should emit debug information. The values
  5769. 'none' and 'any' have the normal meaning. The value 'base' means
  5770. that the base of name of the file in which the type declaration
  5771. appears must match the base of the name of the main compilation
  5772. file. In practice, this means that when compiling 'foo.c', debug
  5773. information is generated for types declared in that file and
  5774. 'foo.h', but not other header files. The value 'sys' means those
  5775. types satisfying 'base' or declared in system or compiler headers.
  5776. You may need to experiment to determine the best settings for your
  5777. application.
  5778. The default is '-femit-struct-debug-detailed=all'.
  5779. This option works only with DWARF debug output.
  5780. '-fno-dwarf2-cfi-asm'
  5781. Emit DWARF unwind info as compiler generated '.eh_frame' section
  5782. instead of using GAS '.cfi_*' directives.
  5783. '-fno-eliminate-unused-debug-types'
  5784. Normally, when producing DWARF output, GCC avoids producing debug
  5785. symbol output for types that are nowhere used in the source file
  5786. being compiled. Sometimes it is useful to have GCC emit debugging
  5787. information for all types declared in a compilation unit,
  5788. regardless of whether or not they are actually used in that
  5789. compilation unit, for example if, in the debugger, you want to cast
  5790. a value to a type that is not actually used in your program (but is
  5791. declared). More often, however, this results in a significant
  5792. amount of wasted space.
  5793. 
  5794. File: gcc.info, Node: Optimize Options, Next: Instrumentation Options, Prev: Debugging Options, Up: Invoking GCC
  5795. 3.10 Options That Control Optimization
  5796. ======================================
  5797. These options control various sorts of optimizations.
  5798. Without any optimization option, the compiler's goal is to reduce the
  5799. cost of compilation and to make debugging produce the expected results.
  5800. Statements are independent: if you stop the program with a breakpoint
  5801. between statements, you can then assign a new value to any variable or
  5802. change the program counter to any other statement in the function and
  5803. get exactly the results you expect from the source code.
  5804. Turning on optimization flags makes the compiler attempt to improve the
  5805. performance and/or code size at the expense of compilation time and
  5806. possibly the ability to debug the program.
  5807. The compiler performs optimization based on the knowledge it has of the
  5808. program. Compiling multiple files at once to a single output file mode
  5809. allows the compiler to use information gained from all of the files when
  5810. compiling each of them.
  5811. Not all optimizations are controlled directly by a flag. Only
  5812. optimizations that have a flag are listed in this section.
  5813. Most optimizations are only enabled if an '-O' level is set on the
  5814. command line. Otherwise they are disabled, even if individual
  5815. optimization flags are specified.
  5816. Depending on the target and how GCC was configured, a slightly
  5817. different set of optimizations may be enabled at each '-O' level than
  5818. those listed here. You can invoke GCC with '-Q --help=optimizers' to
  5819. find out the exact set of optimizations that are enabled at each level.
  5820. *Note Overall Options::, for examples.
  5821. '-O'
  5822. '-O1'
  5823. Optimize. Optimizing compilation takes somewhat more time, and a
  5824. lot more memory for a large function.
  5825. With '-O', the compiler tries to reduce code size and execution
  5826. time, without performing any optimizations that take a great deal
  5827. of compilation time.
  5828. '-O' turns on the following optimization flags:
  5829. -fauto-inc-dec
  5830. -fbranch-count-reg
  5831. -fcombine-stack-adjustments
  5832. -fcompare-elim
  5833. -fcprop-registers
  5834. -fdce
  5835. -fdefer-pop
  5836. -fdelayed-branch
  5837. -fdse
  5838. -fforward-propagate
  5839. -fguess-branch-probability
  5840. -fif-conversion2
  5841. -fif-conversion
  5842. -finline-functions-called-once
  5843. -fipa-pure-const
  5844. -fipa-profile
  5845. -fipa-reference
  5846. -fmerge-constants
  5847. -fmove-loop-invariants
  5848. -fomit-frame-pointer
  5849. -freorder-blocks
  5850. -fshrink-wrap
  5851. -fshrink-wrap-separate
  5852. -fsplit-wide-types
  5853. -fssa-backprop
  5854. -fssa-phiopt
  5855. -ftree-bit-ccp
  5856. -ftree-ccp
  5857. -ftree-ch
  5858. -ftree-coalesce-vars
  5859. -ftree-copy-prop
  5860. -ftree-dce
  5861. -ftree-dominator-opts
  5862. -ftree-dse
  5863. -ftree-forwprop
  5864. -ftree-fre
  5865. -ftree-phiprop
  5866. -ftree-sink
  5867. -ftree-slsr
  5868. -ftree-sra
  5869. -ftree-pta
  5870. -ftree-ter
  5871. -funit-at-a-time
  5872. '-O2'
  5873. Optimize even more. GCC performs nearly all supported
  5874. optimizations that do not involve a space-speed tradeoff. As
  5875. compared to '-O', this option increases both compilation time and
  5876. the performance of the generated code.
  5877. '-O2' turns on all optimization flags specified by '-O'. It also
  5878. turns on the following optimization flags:
  5879. -fthread-jumps
  5880. -falign-functions -falign-jumps
  5881. -falign-loops -falign-labels
  5882. -fcaller-saves
  5883. -fcrossjumping
  5884. -fcse-follow-jumps -fcse-skip-blocks
  5885. -fdelete-null-pointer-checks
  5886. -fdevirtualize -fdevirtualize-speculatively
  5887. -fexpensive-optimizations
  5888. -fgcse -fgcse-lm
  5889. -fhoist-adjacent-loads
  5890. -finline-small-functions
  5891. -findirect-inlining
  5892. -fipa-cp
  5893. -fipa-bit-cp
  5894. -fipa-vrp
  5895. -fipa-sra
  5896. -fipa-icf
  5897. -fisolate-erroneous-paths-dereference
  5898. -flra-remat
  5899. -foptimize-sibling-calls
  5900. -foptimize-strlen
  5901. -fpartial-inlining
  5902. -fpeephole2
  5903. -freorder-blocks-algorithm=stc
  5904. -freorder-blocks-and-partition -freorder-functions
  5905. -frerun-cse-after-loop
  5906. -fsched-interblock -fsched-spec
  5907. -fschedule-insns -fschedule-insns2
  5908. -fstore-merging
  5909. -fstrict-aliasing
  5910. -ftree-builtin-call-dce
  5911. -ftree-switch-conversion -ftree-tail-merge
  5912. -fcode-hoisting
  5913. -ftree-pre
  5914. -ftree-vrp
  5915. -fipa-ra
  5916. Please note the warning under '-fgcse' about invoking '-O2' on
  5917. programs that use computed gotos.
  5918. '-O3'
  5919. Optimize yet more. '-O3' turns on all optimizations specified by
  5920. '-O2' and also turns on the following optimization flags:
  5921. -finline-functions
  5922. -funswitch-loops
  5923. -fpredictive-commoning
  5924. -fgcse-after-reload
  5925. -ftree-loop-vectorize
  5926. -ftree-loop-distribution
  5927. -ftree-loop-distribute-patterns
  5928. -floop-interchange
  5929. -floop-unroll-and-jam
  5930. -fsplit-paths
  5931. -ftree-slp-vectorize
  5932. -fvect-cost-model
  5933. -ftree-partial-pre
  5934. -fpeel-loops
  5935. -fipa-cp-clone
  5936. '-O0'
  5937. Reduce compilation time and make debugging produce the expected
  5938. results. This is the default.
  5939. '-Os'
  5940. Optimize for size. '-Os' enables all '-O2' optimizations that do
  5941. not typically increase code size.
  5942. '-Os' disables the following optimization flags:
  5943. -falign-functions -falign-jumps -falign-loops
  5944. -falign-labels -freorder-blocks -freorder-blocks-algorithm=stc
  5945. -freorder-blocks-and-partition -fprefetch-loop-arrays
  5946. It also enables '-finline-functions', causes the compiler to tune
  5947. for code size rather than execution speed, and performs further
  5948. optimizations designed to reduce code size.
  5949. '-Ofast'
  5950. Disregard strict standards compliance. '-Ofast' enables all '-O3'
  5951. optimizations. It also enables optimizations that are not valid
  5952. for all standard-compliant programs. It turns on '-ffast-math' and
  5953. the Fortran-specific '-fstack-arrays', unless
  5954. '-fmax-stack-var-size' is specified, and '-fno-protect-parens'.
  5955. '-Og'
  5956. Optimize debugging experience. '-Og' enables optimizations that do
  5957. not interfere with debugging. It should be the optimization level
  5958. of choice for the standard edit-compile-debug cycle, offering a
  5959. reasonable level of optimization while maintaining fast compilation
  5960. and a good debugging experience.
  5961. If you use multiple '-O' options, with or without level numbers, the
  5962. last such option is the one that is effective.
  5963. Options of the form '-fFLAG' specify machine-independent flags. Most
  5964. flags have both positive and negative forms; the negative form of
  5965. '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  5966. listed--the one you typically use. You can figure out the other form by
  5967. either removing 'no-' or adding it.
  5968. The following options control specific optimizations. They are either
  5969. activated by '-O' options or are related to ones that are. You can use
  5970. the following flags in the rare cases when "fine-tuning" of
  5971. optimizations to be performed is desired.
  5972. '-fno-defer-pop'
  5973. Always pop the arguments to each function call as soon as that
  5974. function returns. For machines that must pop arguments after a
  5975. function call, the compiler normally lets arguments accumulate on
  5976. the stack for several function calls and pops them all at once.
  5977. Disabled at levels '-O', '-O2', '-O3', '-Os'.
  5978. '-fforward-propagate'
  5979. Perform a forward propagation pass on RTL. The pass tries to
  5980. combine two instructions and checks if the result can be
  5981. simplified. If loop unrolling is active, two passes are performed
  5982. and the second is scheduled after loop unrolling.
  5983. This option is enabled by default at optimization levels '-O',
  5984. '-O2', '-O3', '-Os'.
  5985. '-ffp-contract=STYLE'
  5986. '-ffp-contract=off' disables floating-point expression contraction.
  5987. '-ffp-contract=fast' enables floating-point expression contraction
  5988. such as forming of fused multiply-add operations if the target has
  5989. native support for them. '-ffp-contract=on' enables floating-point
  5990. expression contraction if allowed by the language standard. This
  5991. is currently not implemented and treated equal to
  5992. '-ffp-contract=off'.
  5993. The default is '-ffp-contract=fast'.
  5994. '-fomit-frame-pointer'
  5995. Omit the frame pointer in functions that don't need one. This
  5996. avoids the instructions to save, set up and restore the frame
  5997. pointer; on many targets it also makes an extra register available.
  5998. On some targets this flag has no effect because the standard
  5999. calling sequence always uses a frame pointer, so it cannot be
  6000. omitted.
  6001. Note that '-fno-omit-frame-pointer' doesn't guarantee the frame
  6002. pointer is used in all functions. Several targets always omit the
  6003. frame pointer in leaf functions.
  6004. Enabled by default at '-O' and higher.
  6005. '-foptimize-sibling-calls'
  6006. Optimize sibling and tail recursive calls.
  6007. Enabled at levels '-O2', '-O3', '-Os'.
  6008. '-foptimize-strlen'
  6009. Optimize various standard C string functions (e.g. 'strlen',
  6010. 'strchr' or 'strcpy') and their '_FORTIFY_SOURCE' counterparts into
  6011. faster alternatives.
  6012. Enabled at levels '-O2', '-O3'.
  6013. '-fno-inline'
  6014. Do not expand any functions inline apart from those marked with the
  6015. 'always_inline' attribute. This is the default when not
  6016. optimizing.
  6017. Single functions can be exempted from inlining by marking them with
  6018. the 'noinline' attribute.
  6019. '-finline-small-functions'
  6020. Integrate functions into their callers when their body is smaller
  6021. than expected function call code (so overall size of program gets
  6022. smaller). The compiler heuristically decides which functions are
  6023. simple enough to be worth integrating in this way. This inlining
  6024. applies to all functions, even those not declared inline.
  6025. Enabled at levels '-O2', '-O3', '-Os'.
  6026. '-findirect-inlining'
  6027. Inline also indirect calls that are discovered to be known at
  6028. compile time thanks to previous inlining. This option has any
  6029. effect only when inlining itself is turned on by the
  6030. '-finline-functions' or '-finline-small-functions' options.
  6031. Enabled at levels '-O3', '-Os'. Also enabled by '-fprofile-use'
  6032. and '-fauto-profile'.
  6033. '-finline-functions'
  6034. Consider all functions for inlining, even if they are not declared
  6035. inline. The compiler heuristically decides which functions are
  6036. worth integrating in this way.
  6037. If all calls to a given function are integrated, and the function
  6038. is declared 'static', then the function is normally not output as
  6039. assembler code in its own right.
  6040. Enabled at levels '-O2', '-O3', '-Os'.
  6041. '-finline-functions-called-once'
  6042. Consider all 'static' functions called once for inlining into their
  6043. caller even if they are not marked 'inline'. If a call to a given
  6044. function is integrated, then the function is not output as
  6045. assembler code in its own right.
  6046. Enabled at levels '-O1', '-O2', '-O3' and '-Os'.
  6047. '-fearly-inlining'
  6048. Inline functions marked by 'always_inline' and functions whose body
  6049. seems smaller than the function call overhead early before doing
  6050. '-fprofile-generate' instrumentation and real inlining pass. Doing
  6051. so makes profiling significantly cheaper and usually inlining
  6052. faster on programs having large chains of nested wrapper functions.
  6053. Enabled by default.
  6054. '-fipa-sra'
  6055. Perform interprocedural scalar replacement of aggregates, removal
  6056. of unused parameters and replacement of parameters passed by
  6057. reference by parameters passed by value.
  6058. Enabled at levels '-O2', '-O3' and '-Os'.
  6059. '-finline-limit=N'
  6060. By default, GCC limits the size of functions that can be inlined.
  6061. This flag allows coarse control of this limit. N is the size of
  6062. functions that can be inlined in number of pseudo instructions.
  6063. Inlining is actually controlled by a number of parameters, which
  6064. may be specified individually by using '--param NAME=VALUE'. The
  6065. '-finline-limit=N' option sets some of these parameters as follows:
  6066. 'max-inline-insns-single'
  6067. is set to N/2.
  6068. 'max-inline-insns-auto'
  6069. is set to N/2.
  6070. See below for a documentation of the individual parameters
  6071. controlling inlining and for the defaults of these parameters.
  6072. _Note:_ there may be no value to '-finline-limit' that results in
  6073. default behavior.
  6074. _Note:_ pseudo instruction represents, in this particular context,
  6075. an abstract measurement of function's size. In no way does it
  6076. represent a count of assembly instructions and as such its exact
  6077. meaning might change from one release to an another.
  6078. '-fno-keep-inline-dllexport'
  6079. This is a more fine-grained version of '-fkeep-inline-functions',
  6080. which applies only to functions that are declared using the
  6081. 'dllexport' attribute or declspec. *Note Declaring Attributes of
  6082. Functions: Function Attributes.
  6083. '-fkeep-inline-functions'
  6084. In C, emit 'static' functions that are declared 'inline' into the
  6085. object file, even if the function has been inlined into all of its
  6086. callers. This switch does not affect functions using the 'extern
  6087. inline' extension in GNU C90. In C++, emit any and all inline
  6088. functions into the object file.
  6089. '-fkeep-static-functions'
  6090. Emit 'static' functions into the object file, even if the function
  6091. is never used.
  6092. '-fkeep-static-consts'
  6093. Emit variables declared 'static const' when optimization isn't
  6094. turned on, even if the variables aren't referenced.
  6095. GCC enables this option by default. If you want to force the
  6096. compiler to check if a variable is referenced, regardless of
  6097. whether or not optimization is turned on, use the
  6098. '-fno-keep-static-consts' option.
  6099. '-fmerge-constants'
  6100. Attempt to merge identical constants (string constants and
  6101. floating-point constants) across compilation units.
  6102. This option is the default for optimized compilation if the
  6103. assembler and linker support it. Use '-fno-merge-constants' to
  6104. inhibit this behavior.
  6105. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6106. '-fmerge-all-constants'
  6107. Attempt to merge identical constants and identical variables.
  6108. This option implies '-fmerge-constants'. In addition to
  6109. '-fmerge-constants' this considers e.g. even constant initialized
  6110. arrays or initialized constant variables with integral or
  6111. floating-point types. Languages like C or C++ require each
  6112. variable, including multiple instances of the same variable in
  6113. recursive calls, to have distinct locations, so using this option
  6114. results in non-conforming behavior.
  6115. '-fmodulo-sched'
  6116. Perform swing modulo scheduling immediately before the first
  6117. scheduling pass. This pass looks at innermost loops and reorders
  6118. their instructions by overlapping different iterations.
  6119. '-fmodulo-sched-allow-regmoves'
  6120. Perform more aggressive SMS-based modulo scheduling with register
  6121. moves allowed. By setting this flag certain anti-dependences edges
  6122. are deleted, which triggers the generation of reg-moves based on
  6123. the life-range analysis. This option is effective only with
  6124. '-fmodulo-sched' enabled.
  6125. '-fno-branch-count-reg'
  6126. Avoid running a pass scanning for opportunities to use "decrement
  6127. and branch" instructions on a count register instead of generating
  6128. sequences of instructions that decrement a register, compare it
  6129. against zero, and then branch based upon the result. This option
  6130. is only meaningful on architectures that support such instructions,
  6131. which include x86, PowerPC, IA-64 and S/390. Note that the
  6132. '-fno-branch-count-reg' option doesn't remove the decrement and
  6133. branch instructions from the generated instruction stream
  6134. introduced by other optimization passes.
  6135. Enabled by default at '-O1' and higher.
  6136. The default is '-fbranch-count-reg'.
  6137. '-fno-function-cse'
  6138. Do not put function addresses in registers; make each instruction
  6139. that calls a constant function contain the function's address
  6140. explicitly.
  6141. This option results in less efficient code, but some strange hacks
  6142. that alter the assembler output may be confused by the
  6143. optimizations performed when this option is not used.
  6144. The default is '-ffunction-cse'
  6145. '-fno-zero-initialized-in-bss'
  6146. If the target supports a BSS section, GCC by default puts variables
  6147. that are initialized to zero into BSS. This can save space in the
  6148. resulting code.
  6149. This option turns off this behavior because some programs
  6150. explicitly rely on variables going to the data section--e.g., so
  6151. that the resulting executable can find the beginning of that
  6152. section and/or make assumptions based on that.
  6153. The default is '-fzero-initialized-in-bss'.
  6154. '-fthread-jumps'
  6155. Perform optimizations that check to see if a jump branches to a
  6156. location where another comparison subsumed by the first is found.
  6157. If so, the first branch is redirected to either the destination of
  6158. the second branch or a point immediately following it, depending on
  6159. whether the condition is known to be true or false.
  6160. Enabled at levels '-O2', '-O3', '-Os'.
  6161. '-fsplit-wide-types'
  6162. When using a type that occupies multiple registers, such as 'long
  6163. long' on a 32-bit system, split the registers apart and allocate
  6164. them independently. This normally generates better code for those
  6165. types, but may make debugging more difficult.
  6166. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6167. '-fcse-follow-jumps'
  6168. In common subexpression elimination (CSE), scan through jump
  6169. instructions when the target of the jump is not reached by any
  6170. other path. For example, when CSE encounters an 'if' statement
  6171. with an 'else' clause, CSE follows the jump when the condition
  6172. tested is false.
  6173. Enabled at levels '-O2', '-O3', '-Os'.
  6174. '-fcse-skip-blocks'
  6175. This is similar to '-fcse-follow-jumps', but causes CSE to follow
  6176. jumps that conditionally skip over blocks. When CSE encounters a
  6177. simple 'if' statement with no else clause, '-fcse-skip-blocks'
  6178. causes CSE to follow the jump around the body of the 'if'.
  6179. Enabled at levels '-O2', '-O3', '-Os'.
  6180. '-frerun-cse-after-loop'
  6181. Re-run common subexpression elimination after loop optimizations
  6182. are performed.
  6183. Enabled at levels '-O2', '-O3', '-Os'.
  6184. '-fgcse'
  6185. Perform a global common subexpression elimination pass. This pass
  6186. also performs global constant and copy propagation.
  6187. _Note:_ When compiling a program using computed gotos, a GCC
  6188. extension, you may get better run-time performance if you disable
  6189. the global common subexpression elimination pass by adding
  6190. '-fno-gcse' to the command line.
  6191. Enabled at levels '-O2', '-O3', '-Os'.
  6192. '-fgcse-lm'
  6193. When '-fgcse-lm' is enabled, global common subexpression
  6194. elimination attempts to move loads that are only killed by stores
  6195. into themselves. This allows a loop containing a load/store
  6196. sequence to be changed to a load outside the loop, and a copy/store
  6197. within the loop.
  6198. Enabled by default when '-fgcse' is enabled.
  6199. '-fgcse-sm'
  6200. When '-fgcse-sm' is enabled, a store motion pass is run after
  6201. global common subexpression elimination. This pass attempts to
  6202. move stores out of loops. When used in conjunction with
  6203. '-fgcse-lm', loops containing a load/store sequence can be changed
  6204. to a load before the loop and a store after the loop.
  6205. Not enabled at any optimization level.
  6206. '-fgcse-las'
  6207. When '-fgcse-las' is enabled, the global common subexpression
  6208. elimination pass eliminates redundant loads that come after stores
  6209. to the same memory location (both partial and full redundancies).
  6210. Not enabled at any optimization level.
  6211. '-fgcse-after-reload'
  6212. When '-fgcse-after-reload' is enabled, a redundant load elimination
  6213. pass is performed after reload. The purpose of this pass is to
  6214. clean up redundant spilling.
  6215. '-faggressive-loop-optimizations'
  6216. This option tells the loop optimizer to use language constraints to
  6217. derive bounds for the number of iterations of a loop. This assumes
  6218. that loop code does not invoke undefined behavior by for example
  6219. causing signed integer overflows or out-of-bound array accesses.
  6220. The bounds for the number of iterations of a loop are used to guide
  6221. loop unrolling and peeling and loop exit test optimizations. This
  6222. option is enabled by default.
  6223. '-funconstrained-commons'
  6224. This option tells the compiler that variables declared in common
  6225. blocks (e.g. Fortran) may later be overridden with longer trailing
  6226. arrays. This prevents certain optimizations that depend on knowing
  6227. the array bounds.
  6228. '-fcrossjumping'
  6229. Perform cross-jumping transformation. This transformation unifies
  6230. equivalent code and saves code size. The resulting code may or may
  6231. not perform better than without cross-jumping.
  6232. Enabled at levels '-O2', '-O3', '-Os'.
  6233. '-fauto-inc-dec'
  6234. Combine increments or decrements of addresses with memory accesses.
  6235. This pass is always skipped on architectures that do not have
  6236. instructions to support this. Enabled by default at '-O' and
  6237. higher on architectures that support this.
  6238. '-fdce'
  6239. Perform dead code elimination (DCE) on RTL. Enabled by default at
  6240. '-O' and higher.
  6241. '-fdse'
  6242. Perform dead store elimination (DSE) on RTL. Enabled by default at
  6243. '-O' and higher.
  6244. '-fif-conversion'
  6245. Attempt to transform conditional jumps into branch-less
  6246. equivalents. This includes use of conditional moves, min, max, set
  6247. flags and abs instructions, and some tricks doable by standard
  6248. arithmetics. The use of conditional execution on chips where it is
  6249. available is controlled by '-fif-conversion2'.
  6250. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6251. '-fif-conversion2'
  6252. Use conditional execution (where available) to transform
  6253. conditional jumps into branch-less equivalents.
  6254. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6255. '-fdeclone-ctor-dtor'
  6256. The C++ ABI requires multiple entry points for constructors and
  6257. destructors: one for a base subobject, one for a complete object,
  6258. and one for a virtual destructor that calls operator delete
  6259. afterwards. For a hierarchy with virtual bases, the base and
  6260. complete variants are clones, which means two copies of the
  6261. function. With this option, the base and complete variants are
  6262. changed to be thunks that call a common implementation.
  6263. Enabled by '-Os'.
  6264. '-fdelete-null-pointer-checks'
  6265. Assume that programs cannot safely dereference null pointers, and
  6266. that no code or data element resides at address zero. This option
  6267. enables simple constant folding optimizations at all optimization
  6268. levels. In addition, other optimization passes in GCC use this
  6269. flag to control global dataflow analyses that eliminate useless
  6270. checks for null pointers; these assume that a memory access to
  6271. address zero always results in a trap, so that if a pointer is
  6272. checked after it has already been dereferenced, it cannot be null.
  6273. Note however that in some environments this assumption is not true.
  6274. Use '-fno-delete-null-pointer-checks' to disable this optimization
  6275. for programs that depend on that behavior.
  6276. This option is enabled by default on most targets. On Nios II ELF,
  6277. it defaults to off. On AVR, CR16, and MSP430, this option is
  6278. completely disabled.
  6279. Passes that use the dataflow information are enabled independently
  6280. at different optimization levels.
  6281. '-fdevirtualize'
  6282. Attempt to convert calls to virtual functions to direct calls.
  6283. This is done both within a procedure and interprocedurally as part
  6284. of indirect inlining ('-findirect-inlining') and interprocedural
  6285. constant propagation ('-fipa-cp'). Enabled at levels '-O2', '-O3',
  6286. '-Os'.
  6287. '-fdevirtualize-speculatively'
  6288. Attempt to convert calls to virtual functions to speculative direct
  6289. calls. Based on the analysis of the type inheritance graph,
  6290. determine for a given call the set of likely targets. If the set
  6291. is small, preferably of size 1, change the call into a conditional
  6292. deciding between direct and indirect calls. The speculative calls
  6293. enable more optimizations, such as inlining. When they seem
  6294. useless after further optimization, they are converted back into
  6295. original form.
  6296. '-fdevirtualize-at-ltrans'
  6297. Stream extra information needed for aggressive devirtualization
  6298. when running the link-time optimizer in local transformation mode.
  6299. This option enables more devirtualization but significantly
  6300. increases the size of streamed data. For this reason it is
  6301. disabled by default.
  6302. '-fexpensive-optimizations'
  6303. Perform a number of minor optimizations that are relatively
  6304. expensive.
  6305. Enabled at levels '-O2', '-O3', '-Os'.
  6306. '-free'
  6307. Attempt to remove redundant extension instructions. This is
  6308. especially helpful for the x86-64 architecture, which implicitly
  6309. zero-extends in 64-bit registers after writing to their lower
  6310. 32-bit half.
  6311. Enabled for Alpha, AArch64 and x86 at levels '-O2', '-O3', '-Os'.
  6312. '-fno-lifetime-dse'
  6313. In C++ the value of an object is only affected by changes within
  6314. its lifetime: when the constructor begins, the object has an
  6315. indeterminate value, and any changes during the lifetime of the
  6316. object are dead when the object is destroyed. Normally dead store
  6317. elimination will take advantage of this; if your code relies on the
  6318. value of the object storage persisting beyond the lifetime of the
  6319. object, you can use this flag to disable this optimization. To
  6320. preserve stores before the constructor starts (e.g. because your
  6321. operator new clears the object storage) but still treat the object
  6322. as dead after the destructor you, can use '-flifetime-dse=1'. The
  6323. default behavior can be explicitly selected with
  6324. '-flifetime-dse=2'. '-flifetime-dse=0' is equivalent to
  6325. '-fno-lifetime-dse'.
  6326. '-flive-range-shrinkage'
  6327. Attempt to decrease register pressure through register live range
  6328. shrinkage. This is helpful for fast processors with small or
  6329. moderate size register sets.
  6330. '-fira-algorithm=ALGORITHM'
  6331. Use the specified coloring algorithm for the integrated register
  6332. allocator. The ALGORITHM argument can be 'priority', which
  6333. specifies Chow's priority coloring, or 'CB', which specifies
  6334. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not
  6335. implemented for all architectures, but for those targets that do
  6336. support it, it is the default because it generates better code.
  6337. '-fira-region=REGION'
  6338. Use specified regions for the integrated register allocator. The
  6339. REGION argument should be one of the following:
  6340. 'all'
  6341. Use all loops as register allocation regions. This can give
  6342. the best results for machines with a small and/or irregular
  6343. register set.
  6344. 'mixed'
  6345. Use all loops except for loops with small register pressure as
  6346. the regions. This value usually gives the best results in
  6347. most cases and for most architectures, and is enabled by
  6348. default when compiling with optimization for speed ('-O',
  6349. '-O2', ...).
  6350. 'one'
  6351. Use all functions as a single region. This typically results
  6352. in the smallest code size, and is enabled by default for '-Os'
  6353. or '-O0'.
  6354. '-fira-hoist-pressure'
  6355. Use IRA to evaluate register pressure in the code hoisting pass for
  6356. decisions to hoist expressions. This option usually results in
  6357. smaller code, but it can slow the compiler down.
  6358. This option is enabled at level '-Os' for all targets.
  6359. '-fira-loop-pressure'
  6360. Use IRA to evaluate register pressure in loops for decisions to
  6361. move loop invariants. This option usually results in generation of
  6362. faster and smaller code on machines with large register files (>=
  6363. 32 registers), but it can slow the compiler down.
  6364. This option is enabled at level '-O3' for some targets.
  6365. '-fno-ira-share-save-slots'
  6366. Disable sharing of stack slots used for saving call-used hard
  6367. registers living through a call. Each hard register gets a
  6368. separate stack slot, and as a result function stack frames are
  6369. larger.
  6370. '-fno-ira-share-spill-slots'
  6371. Disable sharing of stack slots allocated for pseudo-registers.
  6372. Each pseudo-register that does not get a hard register gets a
  6373. separate stack slot, and as a result function stack frames are
  6374. larger.
  6375. '-flra-remat'
  6376. Enable CFG-sensitive rematerialization in LRA. Instead of loading
  6377. values of spilled pseudos, LRA tries to rematerialize (recalculate)
  6378. values if it is profitable.
  6379. Enabled at levels '-O2', '-O3', '-Os'.
  6380. '-fdelayed-branch'
  6381. If supported for the target machine, attempt to reorder
  6382. instructions to exploit instruction slots available after delayed
  6383. branch instructions.
  6384. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6385. '-fschedule-insns'
  6386. If supported for the target machine, attempt to reorder
  6387. instructions to eliminate execution stalls due to required data
  6388. being unavailable. This helps machines that have slow floating
  6389. point or memory load instructions by allowing other instructions to
  6390. be issued until the result of the load or floating-point
  6391. instruction is required.
  6392. Enabled at levels '-O2', '-O3'.
  6393. '-fschedule-insns2'
  6394. Similar to '-fschedule-insns', but requests an additional pass of
  6395. instruction scheduling after register allocation has been done.
  6396. This is especially useful on machines with a relatively small
  6397. number of registers and where memory load instructions take more
  6398. than one cycle.
  6399. Enabled at levels '-O2', '-O3', '-Os'.
  6400. '-fno-sched-interblock'
  6401. Don't schedule instructions across basic blocks. This is normally
  6402. enabled by default when scheduling before register allocation, i.e.
  6403. with '-fschedule-insns' or at '-O2' or higher.
  6404. '-fno-sched-spec'
  6405. Don't allow speculative motion of non-load instructions. This is
  6406. normally enabled by default when scheduling before register
  6407. allocation, i.e. with '-fschedule-insns' or at '-O2' or higher.
  6408. '-fsched-pressure'
  6409. Enable register pressure sensitive insn scheduling before register
  6410. allocation. This only makes sense when scheduling before register
  6411. allocation is enabled, i.e. with '-fschedule-insns' or at '-O2' or
  6412. higher. Usage of this option can improve the generated code and
  6413. decrease its size by preventing register pressure increase above
  6414. the number of available hard registers and subsequent spills in
  6415. register allocation.
  6416. '-fsched-spec-load'
  6417. Allow speculative motion of some load instructions. This only
  6418. makes sense when scheduling before register allocation, i.e. with
  6419. '-fschedule-insns' or at '-O2' or higher.
  6420. '-fsched-spec-load-dangerous'
  6421. Allow speculative motion of more load instructions. This only
  6422. makes sense when scheduling before register allocation, i.e. with
  6423. '-fschedule-insns' or at '-O2' or higher.
  6424. '-fsched-stalled-insns'
  6425. '-fsched-stalled-insns=N'
  6426. Define how many insns (if any) can be moved prematurely from the
  6427. queue of stalled insns into the ready list during the second
  6428. scheduling pass. '-fno-sched-stalled-insns' means that no insns
  6429. are moved prematurely, '-fsched-stalled-insns=0' means there is no
  6430. limit on how many queued insns can be moved prematurely.
  6431. '-fsched-stalled-insns' without a value is equivalent to
  6432. '-fsched-stalled-insns=1'.
  6433. '-fsched-stalled-insns-dep'
  6434. '-fsched-stalled-insns-dep=N'
  6435. Define how many insn groups (cycles) are examined for a dependency
  6436. on a stalled insn that is a candidate for premature removal from
  6437. the queue of stalled insns. This has an effect only during the
  6438. second scheduling pass, and only if '-fsched-stalled-insns' is
  6439. used. '-fno-sched-stalled-insns-dep' is equivalent to
  6440. '-fsched-stalled-insns-dep=0'. '-fsched-stalled-insns-dep' without
  6441. a value is equivalent to '-fsched-stalled-insns-dep=1'.
  6442. '-fsched2-use-superblocks'
  6443. When scheduling after register allocation, use superblock
  6444. scheduling. This allows motion across basic block boundaries,
  6445. resulting in faster schedules. This option is experimental, as not
  6446. all machine descriptions used by GCC model the CPU closely enough
  6447. to avoid unreliable results from the algorithm.
  6448. This only makes sense when scheduling after register allocation,
  6449. i.e. with '-fschedule-insns2' or at '-O2' or higher.
  6450. '-fsched-group-heuristic'
  6451. Enable the group heuristic in the scheduler. This heuristic favors
  6452. the instruction that belongs to a schedule group. This is enabled
  6453. by default when scheduling is enabled, i.e. with '-fschedule-insns'
  6454. or '-fschedule-insns2' or at '-O2' or higher.
  6455. '-fsched-critical-path-heuristic'
  6456. Enable the critical-path heuristic in the scheduler. This
  6457. heuristic favors instructions on the critical path. This is
  6458. enabled by default when scheduling is enabled, i.e. with
  6459. '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or higher.
  6460. '-fsched-spec-insn-heuristic'
  6461. Enable the speculative instruction heuristic in the scheduler.
  6462. This heuristic favors speculative instructions with greater
  6463. dependency weakness. This is enabled by default when scheduling is
  6464. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  6465. '-O2' or higher.
  6466. '-fsched-rank-heuristic'
  6467. Enable the rank heuristic in the scheduler. This heuristic favors
  6468. the instruction belonging to a basic block with greater size or
  6469. frequency. This is enabled by default when scheduling is enabled,
  6470. i.e. with '-fschedule-insns' or '-fschedule-insns2' or at '-O2' or
  6471. higher.
  6472. '-fsched-last-insn-heuristic'
  6473. Enable the last-instruction heuristic in the scheduler. This
  6474. heuristic favors the instruction that is less dependent on the last
  6475. instruction scheduled. This is enabled by default when scheduling
  6476. is enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or
  6477. at '-O2' or higher.
  6478. '-fsched-dep-count-heuristic'
  6479. Enable the dependent-count heuristic in the scheduler. This
  6480. heuristic favors the instruction that has more instructions
  6481. depending on it. This is enabled by default when scheduling is
  6482. enabled, i.e. with '-fschedule-insns' or '-fschedule-insns2' or at
  6483. '-O2' or higher.
  6484. '-freschedule-modulo-scheduled-loops'
  6485. Modulo scheduling is performed before traditional scheduling. If a
  6486. loop is modulo scheduled, later scheduling passes may change its
  6487. schedule. Use this option to control that behavior.
  6488. '-fselective-scheduling'
  6489. Schedule instructions using selective scheduling algorithm.
  6490. Selective scheduling runs instead of the first scheduler pass.
  6491. '-fselective-scheduling2'
  6492. Schedule instructions using selective scheduling algorithm.
  6493. Selective scheduling runs instead of the second scheduler pass.
  6494. '-fsel-sched-pipelining'
  6495. Enable software pipelining of innermost loops during selective
  6496. scheduling. This option has no effect unless one of
  6497. '-fselective-scheduling' or '-fselective-scheduling2' is turned on.
  6498. '-fsel-sched-pipelining-outer-loops'
  6499. When pipelining loops during selective scheduling, also pipeline
  6500. outer loops. This option has no effect unless
  6501. '-fsel-sched-pipelining' is turned on.
  6502. '-fsemantic-interposition'
  6503. Some object formats, like ELF, allow interposing of symbols by the
  6504. dynamic linker. This means that for symbols exported from the DSO,
  6505. the compiler cannot perform interprocedural propagation, inlining
  6506. and other optimizations in anticipation that the function or
  6507. variable in question may change. While this feature is useful, for
  6508. example, to rewrite memory allocation functions by a debugging
  6509. implementation, it is expensive in the terms of code quality. With
  6510. '-fno-semantic-interposition' the compiler assumes that if
  6511. interposition happens for functions the overwriting function will
  6512. have precisely the same semantics (and side effects). Similarly if
  6513. interposition happens for variables, the constructor of the
  6514. variable will be the same. The flag has no effect for functions
  6515. explicitly declared inline (where it is never allowed for
  6516. interposition to change semantics) and for symbols explicitly
  6517. declared weak.
  6518. '-fshrink-wrap'
  6519. Emit function prologues only before parts of the function that need
  6520. it, rather than at the top of the function. This flag is enabled
  6521. by default at '-O' and higher.
  6522. '-fshrink-wrap-separate'
  6523. Shrink-wrap separate parts of the prologue and epilogue separately,
  6524. so that those parts are only executed when needed. This option is
  6525. on by default, but has no effect unless '-fshrink-wrap' is also
  6526. turned on and the target supports this.
  6527. '-fcaller-saves'
  6528. Enable allocation of values to registers that are clobbered by
  6529. function calls, by emitting extra instructions to save and restore
  6530. the registers around such calls. Such allocation is done only when
  6531. it seems to result in better code.
  6532. This option is always enabled by default on certain machines,
  6533. usually those which have no call-preserved registers to use
  6534. instead.
  6535. Enabled at levels '-O2', '-O3', '-Os'.
  6536. '-fcombine-stack-adjustments'
  6537. Tracks stack adjustments (pushes and pops) and stack memory
  6538. references and then tries to find ways to combine them.
  6539. Enabled by default at '-O1' and higher.
  6540. '-fipa-ra'
  6541. Use caller save registers for allocation if those registers are not
  6542. used by any called function. In that case it is not necessary to
  6543. save and restore them around calls. This is only possible if
  6544. called functions are part of same compilation unit as current
  6545. function and they are compiled before it.
  6546. Enabled at levels '-O2', '-O3', '-Os', however the option is
  6547. disabled if generated code will be instrumented for profiling
  6548. ('-p', or '-pg') or if callee's register usage cannot be known
  6549. exactly (this happens on targets that do not expose prologues and
  6550. epilogues in RTL).
  6551. '-fconserve-stack'
  6552. Attempt to minimize stack usage. The compiler attempts to use less
  6553. stack space, even if that makes the program slower. This option
  6554. implies setting the 'large-stack-frame' parameter to 100 and the
  6555. 'large-stack-frame-growth' parameter to 400.
  6556. '-ftree-reassoc'
  6557. Perform reassociation on trees. This flag is enabled by default at
  6558. '-O' and higher.
  6559. '-fcode-hoisting'
  6560. Perform code hoisting. Code hoisting tries to move the evaluation
  6561. of expressions executed on all paths to the function exit as early
  6562. as possible. This is especially useful as a code size
  6563. optimization, but it often helps for code speed as well. This flag
  6564. is enabled by default at '-O2' and higher.
  6565. '-ftree-pre'
  6566. Perform partial redundancy elimination (PRE) on trees. This flag
  6567. is enabled by default at '-O2' and '-O3'.
  6568. '-ftree-partial-pre'
  6569. Make partial redundancy elimination (PRE) more aggressive. This
  6570. flag is enabled by default at '-O3'.
  6571. '-ftree-forwprop'
  6572. Perform forward propagation on trees. This flag is enabled by
  6573. default at '-O' and higher.
  6574. '-ftree-fre'
  6575. Perform full redundancy elimination (FRE) on trees. The difference
  6576. between FRE and PRE is that FRE only considers expressions that are
  6577. computed on all paths leading to the redundant computation. This
  6578. analysis is faster than PRE, though it exposes fewer redundancies.
  6579. This flag is enabled by default at '-O' and higher.
  6580. '-ftree-phiprop'
  6581. Perform hoisting of loads from conditional pointers on trees. This
  6582. pass is enabled by default at '-O' and higher.
  6583. '-fhoist-adjacent-loads'
  6584. Speculatively hoist loads from both branches of an if-then-else if
  6585. the loads are from adjacent locations in the same structure and the
  6586. target architecture has a conditional move instruction. This flag
  6587. is enabled by default at '-O2' and higher.
  6588. '-ftree-copy-prop'
  6589. Perform copy propagation on trees. This pass eliminates
  6590. unnecessary copy operations. This flag is enabled by default at
  6591. '-O' and higher.
  6592. '-fipa-pure-const'
  6593. Discover which functions are pure or constant. Enabled by default
  6594. at '-O' and higher.
  6595. '-fipa-reference'
  6596. Discover which static variables do not escape the compilation unit.
  6597. Enabled by default at '-O' and higher.
  6598. '-fipa-pta'
  6599. Perform interprocedural pointer analysis and interprocedural
  6600. modification and reference analysis. This option can cause
  6601. excessive memory and compile-time usage on large compilation units.
  6602. It is not enabled by default at any optimization level.
  6603. '-fipa-profile'
  6604. Perform interprocedural profile propagation. The functions called
  6605. only from cold functions are marked as cold. Also functions
  6606. executed once (such as 'cold', 'noreturn', static constructors or
  6607. destructors) are identified. Cold functions and loop less parts of
  6608. functions executed once are then optimized for size. Enabled by
  6609. default at '-O' and higher.
  6610. '-fipa-cp'
  6611. Perform interprocedural constant propagation. This optimization
  6612. analyzes the program to determine when values passed to functions
  6613. are constants and then optimizes accordingly. This optimization
  6614. can substantially increase performance if the application has
  6615. constants passed to functions. This flag is enabled by default at
  6616. '-O2', '-Os' and '-O3'.
  6617. '-fipa-cp-clone'
  6618. Perform function cloning to make interprocedural constant
  6619. propagation stronger. When enabled, interprocedural constant
  6620. propagation performs function cloning when externally visible
  6621. function can be called with constant arguments. Because this
  6622. optimization can create multiple copies of functions, it may
  6623. significantly increase code size (see '--param
  6624. ipcp-unit-growth=VALUE'). This flag is enabled by default at
  6625. '-O3'.
  6626. '-fipa-bit-cp'
  6627. When enabled, perform interprocedural bitwise constant propagation.
  6628. This flag is enabled by default at '-O2'. It requires that
  6629. '-fipa-cp' is enabled.
  6630. '-fipa-vrp'
  6631. When enabled, perform interprocedural propagation of value ranges.
  6632. This flag is enabled by default at '-O2'. It requires that
  6633. '-fipa-cp' is enabled.
  6634. '-fipa-icf'
  6635. Perform Identical Code Folding for functions and read-only
  6636. variables. The optimization reduces code size and may disturb
  6637. unwind stacks by replacing a function by equivalent one with a
  6638. different name. The optimization works more effectively with
  6639. link-time optimization enabled.
  6640. Nevertheless the behavior is similar to Gold Linker ICF
  6641. optimization, GCC ICF works on different levels and thus the
  6642. optimizations are not same - there are equivalences that are found
  6643. only by GCC and equivalences found only by Gold.
  6644. This flag is enabled by default at '-O2' and '-Os'.
  6645. '-fisolate-erroneous-paths-dereference'
  6646. Detect paths that trigger erroneous or undefined behavior due to
  6647. dereferencing a null pointer. Isolate those paths from the main
  6648. control flow and turn the statement with erroneous or undefined
  6649. behavior into a trap. This flag is enabled by default at '-O2' and
  6650. higher and depends on '-fdelete-null-pointer-checks' also being
  6651. enabled.
  6652. '-fisolate-erroneous-paths-attribute'
  6653. Detect paths that trigger erroneous or undefined behavior due to a
  6654. null value being used in a way forbidden by a 'returns_nonnull' or
  6655. 'nonnull' attribute. Isolate those paths from the main control
  6656. flow and turn the statement with erroneous or undefined behavior
  6657. into a trap. This is not currently enabled, but may be enabled by
  6658. '-O2' in the future.
  6659. '-ftree-sink'
  6660. Perform forward store motion on trees. This flag is enabled by
  6661. default at '-O' and higher.
  6662. '-ftree-bit-ccp'
  6663. Perform sparse conditional bit constant propagation on trees and
  6664. propagate pointer alignment information. This pass only operates
  6665. on local scalar variables and is enabled by default at '-O' and
  6666. higher. It requires that '-ftree-ccp' is enabled.
  6667. '-ftree-ccp'
  6668. Perform sparse conditional constant propagation (CCP) on trees.
  6669. This pass only operates on local scalar variables and is enabled by
  6670. default at '-O' and higher.
  6671. '-fssa-backprop'
  6672. Propagate information about uses of a value up the definition chain
  6673. in order to simplify the definitions. For example, this pass
  6674. strips sign operations if the sign of a value never matters. The
  6675. flag is enabled by default at '-O' and higher.
  6676. '-fssa-phiopt'
  6677. Perform pattern matching on SSA PHI nodes to optimize conditional
  6678. code. This pass is enabled by default at '-O' and higher.
  6679. '-ftree-switch-conversion'
  6680. Perform conversion of simple initializations in a switch to
  6681. initializations from a scalar array. This flag is enabled by
  6682. default at '-O2' and higher.
  6683. '-ftree-tail-merge'
  6684. Look for identical code sequences. When found, replace one with a
  6685. jump to the other. This optimization is known as tail merging or
  6686. cross jumping. This flag is enabled by default at '-O2' and
  6687. higher. The compilation time in this pass can be limited using
  6688. 'max-tail-merge-comparisons' parameter and
  6689. 'max-tail-merge-iterations' parameter.
  6690. '-ftree-dce'
  6691. Perform dead code elimination (DCE) on trees. This flag is enabled
  6692. by default at '-O' and higher.
  6693. '-ftree-builtin-call-dce'
  6694. Perform conditional dead code elimination (DCE) for calls to
  6695. built-in functions that may set 'errno' but are otherwise free of
  6696. side effects. This flag is enabled by default at '-O2' and higher
  6697. if '-Os' is not also specified.
  6698. '-ftree-dominator-opts'
  6699. Perform a variety of simple scalar cleanups (constant/copy
  6700. propagation, redundancy elimination, range propagation and
  6701. expression simplification) based on a dominator tree traversal.
  6702. This also performs jump threading (to reduce jumps to jumps). This
  6703. flag is enabled by default at '-O' and higher.
  6704. '-ftree-dse'
  6705. Perform dead store elimination (DSE) on trees. A dead store is a
  6706. store into a memory location that is later overwritten by another
  6707. store without any intervening loads. In this case the earlier
  6708. store can be deleted. This flag is enabled by default at '-O' and
  6709. higher.
  6710. '-ftree-ch'
  6711. Perform loop header copying on trees. This is beneficial since it
  6712. increases effectiveness of code motion optimizations. It also
  6713. saves one jump. This flag is enabled by default at '-O' and
  6714. higher. It is not enabled for '-Os', since it usually increases
  6715. code size.
  6716. '-ftree-loop-optimize'
  6717. Perform loop optimizations on trees. This flag is enabled by
  6718. default at '-O' and higher.
  6719. '-ftree-loop-linear'
  6720. '-floop-strip-mine'
  6721. '-floop-block'
  6722. Perform loop nest optimizations. Same as '-floop-nest-optimize'.
  6723. To use this code transformation, GCC has to be configured with
  6724. '--with-isl' to enable the Graphite loop transformation
  6725. infrastructure.
  6726. '-fgraphite-identity'
  6727. Enable the identity transformation for graphite. For every SCoP we
  6728. generate the polyhedral representation and transform it back to
  6729. gimple. Using '-fgraphite-identity' we can check the costs or
  6730. benefits of the GIMPLE -> GRAPHITE -> GIMPLE transformation. Some
  6731. minimal optimizations are also performed by the code generator isl,
  6732. like index splitting and dead code elimination in loops.
  6733. '-floop-nest-optimize'
  6734. Enable the isl based loop nest optimizer. This is a generic loop
  6735. nest optimizer based on the Pluto optimization algorithms. It
  6736. calculates a loop structure optimized for data-locality and
  6737. parallelism. This option is experimental.
  6738. '-floop-parallelize-all'
  6739. Use the Graphite data dependence analysis to identify loops that
  6740. can be parallelized. Parallelize all the loops that can be
  6741. analyzed to not contain loop carried dependences without checking
  6742. that it is profitable to parallelize the loops.
  6743. '-ftree-coalesce-vars'
  6744. While transforming the program out of the SSA representation,
  6745. attempt to reduce copying by coalescing versions of different
  6746. user-defined variables, instead of just compiler temporaries. This
  6747. may severely limit the ability to debug an optimized program
  6748. compiled with '-fno-var-tracking-assignments'. In the negated
  6749. form, this flag prevents SSA coalescing of user variables. This
  6750. option is enabled by default if optimization is enabled, and it
  6751. does very little otherwise.
  6752. '-ftree-loop-if-convert'
  6753. Attempt to transform conditional jumps in the innermost loops to
  6754. branch-less equivalents. The intent is to remove control-flow from
  6755. the innermost loops in order to improve the ability of the
  6756. vectorization pass to handle these loops. This is enabled by
  6757. default if vectorization is enabled.
  6758. '-ftree-loop-distribution'
  6759. Perform loop distribution. This flag can improve cache performance
  6760. on big loop bodies and allow further loop optimizations, like
  6761. parallelization or vectorization, to take place. For example, the
  6762. loop
  6763. DO I = 1, N
  6764. A(I) = B(I) + C
  6765. D(I) = E(I) * F
  6766. ENDDO
  6767. is transformed to
  6768. DO I = 1, N
  6769. A(I) = B(I) + C
  6770. ENDDO
  6771. DO I = 1, N
  6772. D(I) = E(I) * F
  6773. ENDDO
  6774. '-ftree-loop-distribute-patterns'
  6775. Perform loop distribution of patterns that can be code generated
  6776. with calls to a library. This flag is enabled by default at '-O3'.
  6777. This pass distributes the initialization loops and generates a call
  6778. to memset zero. For example, the loop
  6779. DO I = 1, N
  6780. A(I) = 0
  6781. B(I) = A(I) + I
  6782. ENDDO
  6783. is transformed to
  6784. DO I = 1, N
  6785. A(I) = 0
  6786. ENDDO
  6787. DO I = 1, N
  6788. B(I) = A(I) + I
  6789. ENDDO
  6790. and the initialization loop is transformed into a call to memset
  6791. zero.
  6792. '-floop-interchange'
  6793. Perform loop interchange outside of graphite. This flag can
  6794. improve cache performance on loop nest and allow further loop
  6795. optimizations, like vectorization, to take place. For example, the
  6796. loop
  6797. for (int i = 0; i < N; i++)
  6798. for (int j = 0; j < N; j++)
  6799. for (int k = 0; k < N; k++)
  6800. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  6801. is transformed to
  6802. for (int i = 0; i < N; i++)
  6803. for (int k = 0; k < N; k++)
  6804. for (int j = 0; j < N; j++)
  6805. c[i][j] = c[i][j] + a[i][k]*b[k][j];
  6806. This flag is enabled by default at '-O3'.
  6807. '-floop-unroll-and-jam'
  6808. Apply unroll and jam transformations on feasible loops. In a loop
  6809. nest this unrolls the outer loop by some factor and fuses the
  6810. resulting multiple inner loops. This flag is enabled by default at
  6811. '-O3'.
  6812. '-ftree-loop-im'
  6813. Perform loop invariant motion on trees. This pass moves only
  6814. invariants that are hard to handle at RTL level (function calls,
  6815. operations that expand to nontrivial sequences of insns). With
  6816. '-funswitch-loops' it also moves operands of conditions that are
  6817. invariant out of the loop, so that we can use just trivial
  6818. invariantness analysis in loop unswitching. The pass also includes
  6819. store motion.
  6820. '-ftree-loop-ivcanon'
  6821. Create a canonical counter for number of iterations in loops for
  6822. which determining number of iterations requires complicated
  6823. analysis. Later optimizations then may determine the number
  6824. easily. Useful especially in connection with unrolling.
  6825. '-fivopts'
  6826. Perform induction variable optimizations (strength reduction,
  6827. induction variable merging and induction variable elimination) on
  6828. trees.
  6829. '-ftree-parallelize-loops=n'
  6830. Parallelize loops, i.e., split their iteration space to run in n
  6831. threads. This is only possible for loops whose iterations are
  6832. independent and can be arbitrarily reordered. The optimization is
  6833. only profitable on multiprocessor machines, for loops that are
  6834. CPU-intensive, rather than constrained e.g. by memory bandwidth.
  6835. This option implies '-pthread', and thus is only supported on
  6836. targets that have support for '-pthread'.
  6837. '-ftree-pta'
  6838. Perform function-local points-to analysis on trees. This flag is
  6839. enabled by default at '-O' and higher.
  6840. '-ftree-sra'
  6841. Perform scalar replacement of aggregates. This pass replaces
  6842. structure references with scalars to prevent committing structures
  6843. to memory too early. This flag is enabled by default at '-O' and
  6844. higher.
  6845. '-fstore-merging'
  6846. Perform merging of narrow stores to consecutive memory addresses.
  6847. This pass merges contiguous stores of immediate values narrower
  6848. than a word into fewer wider stores to reduce the number of
  6849. instructions. This is enabled by default at '-O2' and higher as
  6850. well as '-Os'.
  6851. '-ftree-ter'
  6852. Perform temporary expression replacement during the SSA->normal
  6853. phase. Single use/single def temporaries are replaced at their use
  6854. location with their defining expression. This results in
  6855. non-GIMPLE code, but gives the expanders much more complex trees to
  6856. work on resulting in better RTL generation. This is enabled by
  6857. default at '-O' and higher.
  6858. '-ftree-slsr'
  6859. Perform straight-line strength reduction on trees. This recognizes
  6860. related expressions involving multiplications and replaces them by
  6861. less expensive calculations when possible. This is enabled by
  6862. default at '-O' and higher.
  6863. '-ftree-vectorize'
  6864. Perform vectorization on trees. This flag enables
  6865. '-ftree-loop-vectorize' and '-ftree-slp-vectorize' if not
  6866. explicitly specified.
  6867. '-ftree-loop-vectorize'
  6868. Perform loop vectorization on trees. This flag is enabled by
  6869. default at '-O3' and when '-ftree-vectorize' is enabled.
  6870. '-ftree-slp-vectorize'
  6871. Perform basic block vectorization on trees. This flag is enabled
  6872. by default at '-O3' and when '-ftree-vectorize' is enabled.
  6873. '-fvect-cost-model=MODEL'
  6874. Alter the cost model used for vectorization. The MODEL argument
  6875. should be one of 'unlimited', 'dynamic' or 'cheap'. With the
  6876. 'unlimited' model the vectorized code-path is assumed to be
  6877. profitable while with the 'dynamic' model a runtime check guards
  6878. the vectorized code-path to enable it only for iteration counts
  6879. that will likely execute faster than when executing the original
  6880. scalar loop. The 'cheap' model disables vectorization of loops
  6881. where doing so would be cost prohibitive for example due to
  6882. required runtime checks for data dependence or alignment but
  6883. otherwise is equal to the 'dynamic' model. The default cost model
  6884. depends on other optimization flags and is either 'dynamic' or
  6885. 'cheap'.
  6886. '-fsimd-cost-model=MODEL'
  6887. Alter the cost model used for vectorization of loops marked with
  6888. the OpenMP simd directive. The MODEL argument should be one of
  6889. 'unlimited', 'dynamic', 'cheap'. All values of MODEL have the same
  6890. meaning as described in '-fvect-cost-model' and by default a cost
  6891. model defined with '-fvect-cost-model' is used.
  6892. '-ftree-vrp'
  6893. Perform Value Range Propagation on trees. This is similar to the
  6894. constant propagation pass, but instead of values, ranges of values
  6895. are propagated. This allows the optimizers to remove unnecessary
  6896. range checks like array bound checks and null pointer checks. This
  6897. is enabled by default at '-O2' and higher. Null pointer check
  6898. elimination is only done if '-fdelete-null-pointer-checks' is
  6899. enabled.
  6900. '-fsplit-paths'
  6901. Split paths leading to loop backedges. This can improve dead code
  6902. elimination and common subexpression elimination. This is enabled
  6903. by default at '-O2' and above.
  6904. '-fsplit-ivs-in-unroller'
  6905. Enables expression of values of induction variables in later
  6906. iterations of the unrolled loop using the value in the first
  6907. iteration. This breaks long dependency chains, thus improving
  6908. efficiency of the scheduling passes.
  6909. A combination of '-fweb' and CSE is often sufficient to obtain the
  6910. same effect. However, that is not reliable in cases where the loop
  6911. body is more complicated than a single basic block. It also does
  6912. not work at all on some architectures due to restrictions in the
  6913. CSE pass.
  6914. This optimization is enabled by default.
  6915. '-fvariable-expansion-in-unroller'
  6916. With this option, the compiler creates multiple copies of some
  6917. local variables when unrolling a loop, which can result in superior
  6918. code.
  6919. '-fpartial-inlining'
  6920. Inline parts of functions. This option has any effect only when
  6921. inlining itself is turned on by the '-finline-functions' or
  6922. '-finline-small-functions' options.
  6923. Enabled at levels '-O2', '-O3', '-Os'.
  6924. '-fpredictive-commoning'
  6925. Perform predictive commoning optimization, i.e., reusing
  6926. computations (especially memory loads and stores) performed in
  6927. previous iterations of loops.
  6928. This option is enabled at level '-O3'.
  6929. '-fprefetch-loop-arrays'
  6930. If supported by the target machine, generate instructions to
  6931. prefetch memory to improve the performance of loops that access
  6932. large arrays.
  6933. This option may generate better or worse code; results are highly
  6934. dependent on the structure of loops within the source code.
  6935. Disabled at level '-Os'.
  6936. '-fno-printf-return-value'
  6937. Do not substitute constants for known return value of formatted
  6938. output functions such as 'sprintf', 'snprintf', 'vsprintf', and
  6939. 'vsnprintf' (but not 'printf' of 'fprintf'). This transformation
  6940. allows GCC to optimize or even eliminate branches based on the
  6941. known return value of these functions called with arguments that
  6942. are either constant, or whose values are known to be in a range
  6943. that makes determining the exact return value possible. For
  6944. example, when '-fprintf-return-value' is in effect, both the branch
  6945. and the body of the 'if' statement (but not the call to 'snprint')
  6946. can be optimized away when 'i' is a 32-bit or smaller integer
  6947. because the return value is guaranteed to be at most 8.
  6948. char buf[9];
  6949. if (snprintf (buf, "%08x", i) >= sizeof buf)
  6950. ...
  6951. The '-fprintf-return-value' option relies on other optimizations
  6952. and yields best results with '-O2' and above. It works in tandem
  6953. with the '-Wformat-overflow' and '-Wformat-truncation' options.
  6954. The '-fprintf-return-value' option is enabled by default.
  6955. '-fno-peephole'
  6956. '-fno-peephole2'
  6957. Disable any machine-specific peephole optimizations. The
  6958. difference between '-fno-peephole' and '-fno-peephole2' is in how
  6959. they are implemented in the compiler; some targets use one, some
  6960. use the other, a few use both.
  6961. '-fpeephole' is enabled by default. '-fpeephole2' enabled at
  6962. levels '-O2', '-O3', '-Os'.
  6963. '-fno-guess-branch-probability'
  6964. Do not guess branch probabilities using heuristics.
  6965. GCC uses heuristics to guess branch probabilities if they are not
  6966. provided by profiling feedback ('-fprofile-arcs'). These
  6967. heuristics are based on the control flow graph. If some branch
  6968. probabilities are specified by '__builtin_expect', then the
  6969. heuristics are used to guess branch probabilities for the rest of
  6970. the control flow graph, taking the '__builtin_expect' info into
  6971. account. The interactions between the heuristics and
  6972. '__builtin_expect' can be complex, and in some cases, it may be
  6973. useful to disable the heuristics so that the effects of
  6974. '__builtin_expect' are easier to understand.
  6975. The default is '-fguess-branch-probability' at levels '-O', '-O2',
  6976. '-O3', '-Os'.
  6977. '-freorder-blocks'
  6978. Reorder basic blocks in the compiled function in order to reduce
  6979. number of taken branches and improve code locality.
  6980. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  6981. '-freorder-blocks-algorithm=ALGORITHM'
  6982. Use the specified algorithm for basic block reordering. The
  6983. ALGORITHM argument can be 'simple', which does not increase code
  6984. size (except sometimes due to secondary effects like alignment), or
  6985. 'stc', the "software trace cache" algorithm, which tries to put all
  6986. often executed code together, minimizing the number of branches
  6987. executed by making extra copies of code.
  6988. The default is 'simple' at levels '-O', '-Os', and 'stc' at levels
  6989. '-O2', '-O3'.
  6990. '-freorder-blocks-and-partition'
  6991. In addition to reordering basic blocks in the compiled function, in
  6992. order to reduce number of taken branches, partitions hot and cold
  6993. basic blocks into separate sections of the assembly and '.o' files,
  6994. to improve paging and cache locality performance.
  6995. This optimization is automatically turned off in the presence of
  6996. exception handling or unwind tables (on targets using
  6997. setjump/longjump or target specific scheme), for linkonce sections,
  6998. for functions with a user-defined section attribute and on any
  6999. architecture that does not support named sections. When
  7000. '-fsplit-stack' is used this option is not enabled by default (to
  7001. avoid linker errors), but may be enabled explicitly (if using a
  7002. working linker).
  7003. Enabled for x86 at levels '-O2', '-O3', '-Os'.
  7004. '-freorder-functions'
  7005. Reorder functions in the object file in order to improve code
  7006. locality. This is implemented by using special subsections
  7007. '.text.hot' for most frequently executed functions and
  7008. '.text.unlikely' for unlikely executed functions. Reordering is
  7009. done by the linker so object file format must support named
  7010. sections and linker must place them in a reasonable way.
  7011. Also profile feedback must be available to make this option
  7012. effective. See '-fprofile-arcs' for details.
  7013. Enabled at levels '-O2', '-O3', '-Os'.
  7014. '-fstrict-aliasing'
  7015. Allow the compiler to assume the strictest aliasing rules
  7016. applicable to the language being compiled. For C (and C++), this
  7017. activates optimizations based on the type of expressions. In
  7018. particular, an object of one type is assumed never to reside at the
  7019. same address as an object of a different type, unless the types are
  7020. almost the same. For example, an 'unsigned int' can alias an
  7021. 'int', but not a 'void*' or a 'double'. A character type may alias
  7022. any other type.
  7023. Pay special attention to code like this:
  7024. union a_union {
  7025. int i;
  7026. double d;
  7027. };
  7028. int f() {
  7029. union a_union t;
  7030. t.d = 3.0;
  7031. return t.i;
  7032. }
  7033. The practice of reading from a different union member than the one
  7034. most recently written to (called "type-punning") is common. Even
  7035. with '-fstrict-aliasing', type-punning is allowed, provided the
  7036. memory is accessed through the union type. So, the code above
  7037. works as expected. *Note Structures unions enumerations and
  7038. bit-fields implementation::. However, this code might not:
  7039. int f() {
  7040. union a_union t;
  7041. int* ip;
  7042. t.d = 3.0;
  7043. ip = &t.i;
  7044. return *ip;
  7045. }
  7046. Similarly, access by taking the address, casting the resulting
  7047. pointer and dereferencing the result has undefined behavior, even
  7048. if the cast uses a union type, e.g.:
  7049. int f() {
  7050. double d = 3.0;
  7051. return ((union a_union *) &d)->i;
  7052. }
  7053. The '-fstrict-aliasing' option is enabled at levels '-O2', '-O3',
  7054. '-Os'.
  7055. '-falign-functions'
  7056. '-falign-functions=N'
  7057. Align the start of functions to the next power-of-two greater than
  7058. N, skipping up to N bytes. For instance, '-falign-functions=32'
  7059. aligns functions to the next 32-byte boundary, but
  7060. '-falign-functions=24' aligns to the next 32-byte boundary only if
  7061. this can be done by skipping 23 bytes or less.
  7062. '-fno-align-functions' and '-falign-functions=1' are equivalent and
  7063. mean that functions are not aligned.
  7064. Some assemblers only support this flag when N is a power of two; in
  7065. that case, it is rounded up.
  7066. If N is not specified or is zero, use a machine-dependent default.
  7067. The maximum allowed N option value is 65536.
  7068. Enabled at levels '-O2', '-O3'.
  7069. '-flimit-function-alignment'
  7070. If this option is enabled, the compiler tries to avoid
  7071. unnecessarily overaligning functions. It attempts to instruct the
  7072. assembler to align by the amount specified by '-falign-functions',
  7073. but not to skip more bytes than the size of the function.
  7074. '-falign-labels'
  7075. '-falign-labels=N'
  7076. Align all branch targets to a power-of-two boundary, skipping up to
  7077. N bytes like '-falign-functions'. This option can easily make code
  7078. slower, because it must insert dummy operations for when the branch
  7079. target is reached in the usual flow of the code.
  7080. '-fno-align-labels' and '-falign-labels=1' are equivalent and mean
  7081. that labels are not aligned.
  7082. If '-falign-loops' or '-falign-jumps' are applicable and are
  7083. greater than this value, then their values are used instead.
  7084. If N is not specified or is zero, use a machine-dependent default
  7085. which is very likely to be '1', meaning no alignment. The maximum
  7086. allowed N option value is 65536.
  7087. Enabled at levels '-O2', '-O3'.
  7088. '-falign-loops'
  7089. '-falign-loops=N'
  7090. Align loops to a power-of-two boundary, skipping up to N bytes like
  7091. '-falign-functions'. If the loops are executed many times, this
  7092. makes up for any execution of the dummy operations.
  7093. '-fno-align-loops' and '-falign-loops=1' are equivalent and mean
  7094. that loops are not aligned. The maximum allowed N option value is
  7095. 65536.
  7096. If N is not specified or is zero, use a machine-dependent default.
  7097. Enabled at levels '-O2', '-O3'.
  7098. '-falign-jumps'
  7099. '-falign-jumps=N'
  7100. Align branch targets to a power-of-two boundary, for branch targets
  7101. where the targets can only be reached by jumping, skipping up to N
  7102. bytes like '-falign-functions'. In this case, no dummy operations
  7103. need be executed.
  7104. '-fno-align-jumps' and '-falign-jumps=1' are equivalent and mean
  7105. that loops are not aligned.
  7106. If N is not specified or is zero, use a machine-dependent default.
  7107. The maximum allowed N option value is 65536.
  7108. Enabled at levels '-O2', '-O3'.
  7109. '-funit-at-a-time'
  7110. This option is left for compatibility reasons. '-funit-at-a-time'
  7111. has no effect, while '-fno-unit-at-a-time' implies
  7112. '-fno-toplevel-reorder' and '-fno-section-anchors'.
  7113. Enabled by default.
  7114. '-fno-toplevel-reorder'
  7115. Do not reorder top-level functions, variables, and 'asm'
  7116. statements. Output them in the same order that they appear in the
  7117. input file. When this option is used, unreferenced static
  7118. variables are not removed. This option is intended to support
  7119. existing code that relies on a particular ordering. For new code,
  7120. it is better to use attributes when possible.
  7121. Enabled at level '-O0'. When disabled explicitly, it also implies
  7122. '-fno-section-anchors', which is otherwise enabled at '-O0' on some
  7123. targets.
  7124. '-fweb'
  7125. Constructs webs as commonly used for register allocation purposes
  7126. and assign each web individual pseudo register. This allows the
  7127. register allocation pass to operate on pseudos directly, but also
  7128. strengthens several other optimization passes, such as CSE, loop
  7129. optimizer and trivial dead code remover. It can, however, make
  7130. debugging impossible, since variables no longer stay in a "home
  7131. register".
  7132. Enabled by default with '-funroll-loops'.
  7133. '-fwhole-program'
  7134. Assume that the current compilation unit represents the whole
  7135. program being compiled. All public functions and variables with
  7136. the exception of 'main' and those merged by attribute
  7137. 'externally_visible' become static functions and in effect are
  7138. optimized more aggressively by interprocedural optimizers.
  7139. This option should not be used in combination with '-flto'.
  7140. Instead relying on a linker plugin should provide safer and more
  7141. precise information.
  7142. '-flto[=N]'
  7143. This option runs the standard link-time optimizer. When invoked
  7144. with source code, it generates GIMPLE (one of GCC's internal
  7145. representations) and writes it to special ELF sections in the
  7146. object file. When the object files are linked together, all the
  7147. function bodies are read from these ELF sections and instantiated
  7148. as if they had been part of the same translation unit.
  7149. To use the link-time optimizer, '-flto' and optimization options
  7150. should be specified at compile time and during the final link. It
  7151. is recommended that you compile all the files participating in the
  7152. same link with the same options and also specify those options at
  7153. link time. For example:
  7154. gcc -c -O2 -flto foo.c
  7155. gcc -c -O2 -flto bar.c
  7156. gcc -o myprog -flto -O2 foo.o bar.o
  7157. The first two invocations to GCC save a bytecode representation of
  7158. GIMPLE into special ELF sections inside 'foo.o' and 'bar.o'. The
  7159. final invocation reads the GIMPLE bytecode from 'foo.o' and
  7160. 'bar.o', merges the two files into a single internal image, and
  7161. compiles the result as usual. Since both 'foo.o' and 'bar.o' are
  7162. merged into a single image, this causes all the interprocedural
  7163. analyses and optimizations in GCC to work across the two files as
  7164. if they were a single one. This means, for example, that the
  7165. inliner is able to inline functions in 'bar.o' into functions in
  7166. 'foo.o' and vice-versa.
  7167. Another (simpler) way to enable link-time optimization is:
  7168. gcc -o myprog -flto -O2 foo.c bar.c
  7169. The above generates bytecode for 'foo.c' and 'bar.c', merges them
  7170. together into a single GIMPLE representation and optimizes them as
  7171. usual to produce 'myprog'.
  7172. The only important thing to keep in mind is that to enable
  7173. link-time optimizations you need to use the GCC driver to perform
  7174. the link step. GCC then automatically performs link-time
  7175. optimization if any of the objects involved were compiled with the
  7176. '-flto' command-line option. You generally should specify the
  7177. optimization options to be used for link-time optimization though
  7178. GCC tries to be clever at guessing an optimization level to use
  7179. from the options used at compile time if you fail to specify one at
  7180. link time. You can always override the automatic decision to do
  7181. link-time optimization by passing '-fno-lto' to the link command.
  7182. To make whole program optimization effective, it is necessary to
  7183. make certain whole program assumptions. The compiler needs to know
  7184. what functions and variables can be accessed by libraries and
  7185. runtime outside of the link-time optimized unit. When supported by
  7186. the linker, the linker plugin (see '-fuse-linker-plugin') passes
  7187. information to the compiler about used and externally visible
  7188. symbols. When the linker plugin is not available,
  7189. '-fwhole-program' should be used to allow the compiler to make
  7190. these assumptions, which leads to more aggressive optimization
  7191. decisions.
  7192. When '-fuse-linker-plugin' is not enabled, when a file is compiled
  7193. with '-flto', the generated object file is larger than a regular
  7194. object file because it contains GIMPLE bytecodes and the usual
  7195. final code (see '-ffat-lto-objects'. This means that object files
  7196. with LTO information can be linked as normal object files; if
  7197. '-fno-lto' is passed to the linker, no interprocedural
  7198. optimizations are applied. Note that when '-fno-fat-lto-objects'
  7199. is enabled the compile stage is faster but you cannot perform a
  7200. regular, non-LTO link on them.
  7201. Additionally, the optimization flags used to compile individual
  7202. files are not necessarily related to those used at link time. For
  7203. instance,
  7204. gcc -c -O0 -ffat-lto-objects -flto foo.c
  7205. gcc -c -O0 -ffat-lto-objects -flto bar.c
  7206. gcc -o myprog -O3 foo.o bar.o
  7207. This produces individual object files with unoptimized assembler
  7208. code, but the resulting binary 'myprog' is optimized at '-O3'. If,
  7209. instead, the final binary is generated with '-fno-lto', then
  7210. 'myprog' is not optimized.
  7211. When producing the final binary, GCC only applies link-time
  7212. optimizations to those files that contain bytecode. Therefore, you
  7213. can mix and match object files and libraries with GIMPLE bytecodes
  7214. and final object code. GCC automatically selects which files to
  7215. optimize in LTO mode and which files to link without further
  7216. processing.
  7217. There are some code generation flags preserved by GCC when
  7218. generating bytecodes, as they need to be used during the final link
  7219. stage. Generally options specified at link time override those
  7220. specified at compile time.
  7221. If you do not specify an optimization level option '-O' at link
  7222. time, then GCC uses the highest optimization level used when
  7223. compiling the object files.
  7224. Currently, the following options and their settings are taken from
  7225. the first object file that explicitly specifies them: '-fPIC',
  7226. '-fpic', '-fpie', '-fcommon', '-fexceptions',
  7227. '-fnon-call-exceptions', '-fgnu-tm' and all the '-m' target flags.
  7228. Certain ABI-changing flags are required to match in all compilation
  7229. units, and trying to override this at link time with a conflicting
  7230. value is ignored. This includes options such as
  7231. '-freg-struct-return' and '-fpcc-struct-return'.
  7232. Other options such as '-ffp-contract', '-fno-strict-overflow',
  7233. '-fwrapv', '-fno-trapv' or '-fno-strict-aliasing' are passed
  7234. through to the link stage and merged conservatively for conflicting
  7235. translation units. Specifically '-fno-strict-overflow', '-fwrapv'
  7236. and '-fno-trapv' take precedence; and for example
  7237. '-ffp-contract=off' takes precedence over '-ffp-contract=fast'.
  7238. You can override them at link time.
  7239. If LTO encounters objects with C linkage declared with incompatible
  7240. types in separate translation units to be linked together
  7241. (undefined behavior according to ISO C99 6.2.7), a non-fatal
  7242. diagnostic may be issued. The behavior is still undefined at run
  7243. time. Similar diagnostics may be raised for other languages.
  7244. Another feature of LTO is that it is possible to apply
  7245. interprocedural optimizations on files written in different
  7246. languages:
  7247. gcc -c -flto foo.c
  7248. g++ -c -flto bar.cc
  7249. gfortran -c -flto baz.f90
  7250. g++ -o myprog -flto -O3 foo.o bar.o baz.o -lgfortran
  7251. Notice that the final link is done with 'g++' to get the C++
  7252. runtime libraries and '-lgfortran' is added to get the Fortran
  7253. runtime libraries. In general, when mixing languages in LTO mode,
  7254. you should use the same link command options as when mixing
  7255. languages in a regular (non-LTO) compilation.
  7256. If object files containing GIMPLE bytecode are stored in a library
  7257. archive, say 'libfoo.a', it is possible to extract and use them in
  7258. an LTO link if you are using a linker with plugin support. To
  7259. create static libraries suitable for LTO, use 'gcc-ar' and
  7260. 'gcc-ranlib' instead of 'ar' and 'ranlib'; to show the symbols of
  7261. object files with GIMPLE bytecode, use 'gcc-nm'. Those commands
  7262. require that 'ar', 'ranlib' and 'nm' have been compiled with plugin
  7263. support. At link time, use the flag '-fuse-linker-plugin' to
  7264. ensure that the library participates in the LTO optimization
  7265. process:
  7266. gcc -o myprog -O2 -flto -fuse-linker-plugin a.o b.o -lfoo
  7267. With the linker plugin enabled, the linker extracts the needed
  7268. GIMPLE files from 'libfoo.a' and passes them on to the running GCC
  7269. to make them part of the aggregated GIMPLE image to be optimized.
  7270. If you are not using a linker with plugin support and/or do not
  7271. enable the linker plugin, then the objects inside 'libfoo.a' are
  7272. extracted and linked as usual, but they do not participate in the
  7273. LTO optimization process. In order to make a static library
  7274. suitable for both LTO optimization and usual linkage, compile its
  7275. object files with '-flto' '-ffat-lto-objects'.
  7276. Link-time optimizations do not require the presence of the whole
  7277. program to operate. If the program does not require any symbols to
  7278. be exported, it is possible to combine '-flto' and
  7279. '-fwhole-program' to allow the interprocedural optimizers to use
  7280. more aggressive assumptions which may lead to improved optimization
  7281. opportunities. Use of '-fwhole-program' is not needed when linker
  7282. plugin is active (see '-fuse-linker-plugin').
  7283. The current implementation of LTO makes no attempt to generate
  7284. bytecode that is portable between different types of hosts. The
  7285. bytecode files are versioned and there is a strict version check,
  7286. so bytecode files generated in one version of GCC do not work with
  7287. an older or newer version of GCC.
  7288. Link-time optimization does not work well with generation of
  7289. debugging information on systems other than those using a
  7290. combination of ELF and DWARF.
  7291. If you specify the optional N, the optimization and code generation
  7292. done at link time is executed in parallel using N parallel jobs by
  7293. utilizing an installed 'make' program. The environment variable
  7294. 'MAKE' may be used to override the program used. The default value
  7295. for N is 1.
  7296. You can also specify '-flto=jobserver' to use GNU make's job server
  7297. mode to determine the number of parallel jobs. This is useful when
  7298. the Makefile calling GCC is already executing in parallel. You
  7299. must prepend a '+' to the command recipe in the parent Makefile for
  7300. this to work. This option likely only works if 'MAKE' is GNU make.
  7301. '-flto-partition=ALG'
  7302. Specify the partitioning algorithm used by the link-time optimizer.
  7303. The value is either '1to1' to specify a partitioning mirroring the
  7304. original source files or 'balanced' to specify partitioning into
  7305. equally sized chunks (whenever possible) or 'max' to create new
  7306. partition for every symbol where possible. Specifying 'none' as an
  7307. algorithm disables partitioning and streaming completely. The
  7308. default value is 'balanced'. While '1to1' can be used as an
  7309. workaround for various code ordering issues, the 'max' partitioning
  7310. is intended for internal testing only. The value 'one' specifies
  7311. that exactly one partition should be used while the value 'none'
  7312. bypasses partitioning and executes the link-time optimization step
  7313. directly from the WPA phase.
  7314. '-flto-odr-type-merging'
  7315. Enable streaming of mangled types names of C++ types and their
  7316. unification at link time. This increases size of LTO object files,
  7317. but enables diagnostics about One Definition Rule violations.
  7318. '-flto-compression-level=N'
  7319. This option specifies the level of compression used for
  7320. intermediate language written to LTO object files, and is only
  7321. meaningful in conjunction with LTO mode ('-flto'). Valid values
  7322. are 0 (no compression) to 9 (maximum compression). Values outside
  7323. this range are clamped to either 0 or 9. If the option is not
  7324. given, a default balanced compression setting is used.
  7325. '-fuse-linker-plugin'
  7326. Enables the use of a linker plugin during link-time optimization.
  7327. This option relies on plugin support in the linker, which is
  7328. available in gold or in GNU ld 2.21 or newer.
  7329. This option enables the extraction of object files with GIMPLE
  7330. bytecode out of library archives. This improves the quality of
  7331. optimization by exposing more code to the link-time optimizer.
  7332. This information specifies what symbols can be accessed externally
  7333. (by non-LTO object or during dynamic linking). Resulting code
  7334. quality improvements on binaries (and shared libraries that use
  7335. hidden visibility) are similar to '-fwhole-program'. See '-flto'
  7336. for a description of the effect of this flag and how to use it.
  7337. This option is enabled by default when LTO support in GCC is
  7338. enabled and GCC was configured for use with a linker supporting
  7339. plugins (GNU ld 2.21 or newer or gold).
  7340. '-ffat-lto-objects'
  7341. Fat LTO objects are object files that contain both the intermediate
  7342. language and the object code. This makes them usable for both LTO
  7343. linking and normal linking. This option is effective only when
  7344. compiling with '-flto' and is ignored at link time.
  7345. '-fno-fat-lto-objects' improves compilation time over plain LTO,
  7346. but requires the complete toolchain to be aware of LTO. It requires
  7347. a linker with linker plugin support for basic functionality.
  7348. Additionally, 'nm', 'ar' and 'ranlib' need to support linker
  7349. plugins to allow a full-featured build environment (capable of
  7350. building static libraries etc). GCC provides the 'gcc-ar',
  7351. 'gcc-nm', 'gcc-ranlib' wrappers to pass the right options to these
  7352. tools. With non fat LTO makefiles need to be modified to use them.
  7353. Note that modern binutils provide plugin auto-load mechanism.
  7354. Installing the linker plugin into '$libdir/bfd-plugins' has the
  7355. same effect as usage of the command wrappers ('gcc-ar', 'gcc-nm'
  7356. and 'gcc-ranlib').
  7357. The default is '-fno-fat-lto-objects' on targets with linker plugin
  7358. support.
  7359. '-fcompare-elim'
  7360. After register allocation and post-register allocation instruction
  7361. splitting, identify arithmetic instructions that compute processor
  7362. flags similar to a comparison operation based on that arithmetic.
  7363. If possible, eliminate the explicit comparison operation.
  7364. This pass only applies to certain targets that cannot explicitly
  7365. represent the comparison operation before register allocation is
  7366. complete.
  7367. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7368. '-fcprop-registers'
  7369. After register allocation and post-register allocation instruction
  7370. splitting, perform a copy-propagation pass to try to reduce
  7371. scheduling dependencies and occasionally eliminate the copy.
  7372. Enabled at levels '-O', '-O2', '-O3', '-Os'.
  7373. '-fprofile-correction'
  7374. Profiles collected using an instrumented binary for multi-threaded
  7375. programs may be inconsistent due to missed counter updates. When
  7376. this option is specified, GCC uses heuristics to correct or smooth
  7377. out such inconsistencies. By default, GCC emits an error message
  7378. when an inconsistent profile is detected.
  7379. '-fprofile-use'
  7380. '-fprofile-use=PATH'
  7381. Enable profile feedback-directed optimizations, and the following
  7382. optimizations which are generally profitable only with profile
  7383. feedback available: '-fbranch-probabilities', '-fvpt',
  7384. '-funroll-loops', '-fpeel-loops', '-ftracer', '-ftree-vectorize',
  7385. and 'ftree-loop-distribute-patterns'.
  7386. Before you can use this option, you must first generate profiling
  7387. information. *Note Instrumentation Options::, for information
  7388. about the '-fprofile-generate' option.
  7389. By default, GCC emits an error message if the feedback profiles do
  7390. not match the source code. This error can be turned into a warning
  7391. by using '-Wcoverage-mismatch'. Note this may result in poorly
  7392. optimized code.
  7393. If PATH is specified, GCC looks at the PATH to find the profile
  7394. feedback data files. See '-fprofile-dir'.
  7395. '-fauto-profile'
  7396. '-fauto-profile=PATH'
  7397. Enable sampling-based feedback-directed optimizations, and the
  7398. following optimizations which are generally profitable only with
  7399. profile feedback available: '-fbranch-probabilities', '-fvpt',
  7400. '-funroll-loops', '-fpeel-loops', '-ftracer', '-ftree-vectorize',
  7401. '-finline-functions', '-fipa-cp', '-fipa-cp-clone',
  7402. '-fpredictive-commoning', '-funswitch-loops',
  7403. '-fgcse-after-reload', and '-ftree-loop-distribute-patterns'.
  7404. PATH is the name of a file containing AutoFDO profile information.
  7405. If omitted, it defaults to 'fbdata.afdo' in the current directory.
  7406. Producing an AutoFDO profile data file requires running your
  7407. program with the 'perf' utility on a supported GNU/Linux target
  7408. system. For more information, see <https://perf.wiki.kernel.org/>.
  7409. E.g.
  7410. perf record -e br_inst_retired:near_taken -b -o perf.data \
  7411. -- your_program
  7412. Then use the 'create_gcov' tool to convert the raw profile data to
  7413. a format that can be used by GCC. You must also supply the
  7414. unstripped binary for your program to this tool. See
  7415. <https://github.com/google/autofdo>.
  7416. E.g.
  7417. create_gcov --binary=your_program.unstripped --profile=perf.data \
  7418. --gcov=profile.afdo
  7419. The following options control compiler behavior regarding
  7420. floating-point arithmetic. These options trade off between speed and
  7421. correctness. All must be specifically enabled.
  7422. '-ffloat-store'
  7423. Do not store floating-point variables in registers, and inhibit
  7424. other options that might change whether a floating-point value is
  7425. taken from a register or memory.
  7426. This option prevents undesirable excess precision on machines such
  7427. as the 68000 where the floating registers (of the 68881) keep more
  7428. precision than a 'double' is supposed to have. Similarly for the
  7429. x86 architecture. For most programs, the excess precision does
  7430. only good, but a few programs rely on the precise definition of
  7431. IEEE floating point. Use '-ffloat-store' for such programs, after
  7432. modifying them to store all pertinent intermediate computations
  7433. into variables.
  7434. '-fexcess-precision=STYLE'
  7435. This option allows further control over excess precision on
  7436. machines where floating-point operations occur in a format with
  7437. more precision or range than the IEEE standard and interchange
  7438. floating-point types. By default, '-fexcess-precision=fast' is in
  7439. effect; this means that operations may be carried out in a wider
  7440. precision than the types specified in the source if that would
  7441. result in faster code, and it is unpredictable when rounding to the
  7442. types specified in the source code takes place. When compiling C,
  7443. if '-fexcess-precision=standard' is specified then excess precision
  7444. follows the rules specified in ISO C99; in particular, both casts
  7445. and assignments cause values to be rounded to their semantic types
  7446. (whereas '-ffloat-store' only affects assignments). This option is
  7447. enabled by default for C if a strict conformance option such as
  7448. '-std=c99' is used. '-ffast-math' enables
  7449. '-fexcess-precision=fast' by default regardless of whether a strict
  7450. conformance option is used.
  7451. '-fexcess-precision=standard' is not implemented for languages
  7452. other than C. On the x86, it has no effect if '-mfpmath=sse' or
  7453. '-mfpmath=sse+387' is specified; in the former case, IEEE semantics
  7454. apply without excess precision, and in the latter, rounding is
  7455. unpredictable.
  7456. '-ffast-math'
  7457. Sets the options '-fno-math-errno', '-funsafe-math-optimizations',
  7458. '-ffinite-math-only', '-fno-rounding-math', '-fno-signaling-nans',
  7459. '-fcx-limited-range' and '-fexcess-precision=fast'.
  7460. This option causes the preprocessor macro '__FAST_MATH__' to be
  7461. defined.
  7462. This option is not turned on by any '-O' option besides '-Ofast'
  7463. since it can result in incorrect output for programs that depend on
  7464. an exact implementation of IEEE or ISO rules/specifications for
  7465. math functions. It may, however, yield faster code for programs
  7466. that do not require the guarantees of these specifications.
  7467. '-fno-math-errno'
  7468. Do not set 'errno' after calling math functions that are executed
  7469. with a single instruction, e.g., 'sqrt'. A program that relies on
  7470. IEEE exceptions for math error handling may want to use this flag
  7471. for speed while maintaining IEEE arithmetic compatibility.
  7472. This option is not turned on by any '-O' option since it can result
  7473. in incorrect output for programs that depend on an exact
  7474. implementation of IEEE or ISO rules/specifications for math
  7475. functions. It may, however, yield faster code for programs that do
  7476. not require the guarantees of these specifications.
  7477. The default is '-fmath-errno'.
  7478. On Darwin systems, the math library never sets 'errno'. There is
  7479. therefore no reason for the compiler to consider the possibility
  7480. that it might, and '-fno-math-errno' is the default.
  7481. '-funsafe-math-optimizations'
  7482. Allow optimizations for floating-point arithmetic that (a) assume
  7483. that arguments and results are valid and (b) may violate IEEE or
  7484. ANSI standards. When used at link time, it may include libraries
  7485. or startup files that change the default FPU control word or other
  7486. similar optimizations.
  7487. This option is not turned on by any '-O' option since it can result
  7488. in incorrect output for programs that depend on an exact
  7489. implementation of IEEE or ISO rules/specifications for math
  7490. functions. It may, however, yield faster code for programs that do
  7491. not require the guarantees of these specifications. Enables
  7492. '-fno-signed-zeros', '-fno-trapping-math', '-fassociative-math' and
  7493. '-freciprocal-math'.
  7494. The default is '-fno-unsafe-math-optimizations'.
  7495. '-fassociative-math'
  7496. Allow re-association of operands in series of floating-point
  7497. operations. This violates the ISO C and C++ language standard by
  7498. possibly changing computation result. NOTE: re-ordering may change
  7499. the sign of zero as well as ignore NaNs and inhibit or create
  7500. underflow or overflow (and thus cannot be used on code that relies
  7501. on rounding behavior like '(x + 2**52) - 2**52'. May also reorder
  7502. floating-point comparisons and thus may not be used when ordered
  7503. comparisons are required. This option requires that both
  7504. '-fno-signed-zeros' and '-fno-trapping-math' be in effect.
  7505. Moreover, it doesn't make much sense with '-frounding-math'. For
  7506. Fortran the option is automatically enabled when both
  7507. '-fno-signed-zeros' and '-fno-trapping-math' are in effect.
  7508. The default is '-fno-associative-math'.
  7509. '-freciprocal-math'
  7510. Allow the reciprocal of a value to be used instead of dividing by
  7511. the value if this enables optimizations. For example 'x / y' can
  7512. be replaced with 'x * (1/y)', which is useful if '(1/y)' is subject
  7513. to common subexpression elimination. Note that this loses
  7514. precision and increases the number of flops operating on the value.
  7515. The default is '-fno-reciprocal-math'.
  7516. '-ffinite-math-only'
  7517. Allow optimizations for floating-point arithmetic that assume that
  7518. arguments and results are not NaNs or +-Infs.
  7519. This option is not turned on by any '-O' option since it can result
  7520. in incorrect output for programs that depend on an exact
  7521. implementation of IEEE or ISO rules/specifications for math
  7522. functions. It may, however, yield faster code for programs that do
  7523. not require the guarantees of these specifications.
  7524. The default is '-fno-finite-math-only'.
  7525. '-fno-signed-zeros'
  7526. Allow optimizations for floating-point arithmetic that ignore the
  7527. signedness of zero. IEEE arithmetic specifies the behavior of
  7528. distinct +0.0 and -0.0 values, which then prohibits simplification
  7529. of expressions such as x+0.0 or 0.0*x (even with
  7530. '-ffinite-math-only'). This option implies that the sign of a zero
  7531. result isn't significant.
  7532. The default is '-fsigned-zeros'.
  7533. '-fno-trapping-math'
  7534. Compile code assuming that floating-point operations cannot
  7535. generate user-visible traps. These traps include division by zero,
  7536. overflow, underflow, inexact result and invalid operation. This
  7537. option requires that '-fno-signaling-nans' be in effect. Setting
  7538. this option may allow faster code if one relies on "non-stop" IEEE
  7539. arithmetic, for example.
  7540. This option should never be turned on by any '-O' option since it
  7541. can result in incorrect output for programs that depend on an exact
  7542. implementation of IEEE or ISO rules/specifications for math
  7543. functions.
  7544. The default is '-ftrapping-math'.
  7545. '-frounding-math'
  7546. Disable transformations and optimizations that assume default
  7547. floating-point rounding behavior. This is round-to-zero for all
  7548. floating point to integer conversions, and round-to-nearest for all
  7549. other arithmetic truncations. This option should be specified for
  7550. programs that change the FP rounding mode dynamically, or that may
  7551. be executed with a non-default rounding mode. This option disables
  7552. constant folding of floating-point expressions at compile time
  7553. (which may be affected by rounding mode) and arithmetic
  7554. transformations that are unsafe in the presence of sign-dependent
  7555. rounding modes.
  7556. The default is '-fno-rounding-math'.
  7557. This option is experimental and does not currently guarantee to
  7558. disable all GCC optimizations that are affected by rounding mode.
  7559. Future versions of GCC may provide finer control of this setting
  7560. using C99's 'FENV_ACCESS' pragma. This command-line option will be
  7561. used to specify the default state for 'FENV_ACCESS'.
  7562. '-fsignaling-nans'
  7563. Compile code assuming that IEEE signaling NaNs may generate
  7564. user-visible traps during floating-point operations. Setting this
  7565. option disables optimizations that may change the number of
  7566. exceptions visible with signaling NaNs. This option implies
  7567. '-ftrapping-math'.
  7568. This option causes the preprocessor macro '__SUPPORT_SNAN__' to be
  7569. defined.
  7570. The default is '-fno-signaling-nans'.
  7571. This option is experimental and does not currently guarantee to
  7572. disable all GCC optimizations that affect signaling NaN behavior.
  7573. '-fno-fp-int-builtin-inexact'
  7574. Do not allow the built-in functions 'ceil', 'floor', 'round' and
  7575. 'trunc', and their 'float' and 'long double' variants, to generate
  7576. code that raises the "inexact" floating-point exception for
  7577. noninteger arguments. ISO C99 and C11 allow these functions to
  7578. raise the "inexact" exception, but ISO/IEC TS 18661-1:2014, the C
  7579. bindings to IEEE 754-2008, does not allow these functions to do so.
  7580. The default is '-ffp-int-builtin-inexact', allowing the exception
  7581. to be raised. This option does nothing unless '-ftrapping-math' is
  7582. in effect.
  7583. Even if '-fno-fp-int-builtin-inexact' is used, if the functions
  7584. generate a call to a library function then the "inexact" exception
  7585. may be raised if the library implementation does not follow TS
  7586. 18661.
  7587. '-fsingle-precision-constant'
  7588. Treat floating-point constants as single precision instead of
  7589. implicitly converting them to double-precision constants.
  7590. '-fcx-limited-range'
  7591. When enabled, this option states that a range reduction step is not
  7592. needed when performing complex division. Also, there is no
  7593. checking whether the result of a complex multiplication or division
  7594. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  7595. case. The default is '-fno-cx-limited-range', but is enabled by
  7596. '-ffast-math'.
  7597. This option controls the default setting of the ISO C99
  7598. 'CX_LIMITED_RANGE' pragma. Nevertheless, the option applies to all
  7599. languages.
  7600. '-fcx-fortran-rules'
  7601. Complex multiplication and division follow Fortran rules. Range
  7602. reduction is done as part of complex division, but there is no
  7603. checking whether the result of a complex multiplication or division
  7604. is 'NaN + I*NaN', with an attempt to rescue the situation in that
  7605. case.
  7606. The default is '-fno-cx-fortran-rules'.
  7607. The following options control optimizations that may improve
  7608. performance, but are not enabled by any '-O' options. This section
  7609. includes experimental options that may produce broken code.
  7610. '-fbranch-probabilities'
  7611. After running a program compiled with '-fprofile-arcs' (*note
  7612. Instrumentation Options::), you can compile it a second time using
  7613. '-fbranch-probabilities', to improve optimizations based on the
  7614. number of times each branch was taken. When a program compiled
  7615. with '-fprofile-arcs' exits, it saves arc execution counts to a
  7616. file called 'SOURCENAME.gcda' for each source file. The
  7617. information in this data file is very dependent on the structure of
  7618. the generated code, so you must use the same source code and the
  7619. same optimization options for both compilations.
  7620. With '-fbranch-probabilities', GCC puts a 'REG_BR_PROB' note on
  7621. each 'JUMP_INSN' and 'CALL_INSN'. These can be used to improve
  7622. optimization. Currently, they are only used in one place: in
  7623. 'reorg.c', instead of guessing which path a branch is most likely
  7624. to take, the 'REG_BR_PROB' values are used to exactly determine
  7625. which path is taken more often.
  7626. '-fprofile-values'
  7627. If combined with '-fprofile-arcs', it adds code so that some data
  7628. about values of expressions in the program is gathered.
  7629. With '-fbranch-probabilities', it reads back the data gathered from
  7630. profiling values of expressions for usage in optimizations.
  7631. Enabled with '-fprofile-generate' and '-fprofile-use'.
  7632. '-fprofile-reorder-functions'
  7633. Function reordering based on profile instrumentation collects first
  7634. time of execution of a function and orders these functions in
  7635. ascending order.
  7636. Enabled with '-fprofile-use'.
  7637. '-fvpt'
  7638. If combined with '-fprofile-arcs', this option instructs the
  7639. compiler to add code to gather information about values of
  7640. expressions.
  7641. With '-fbranch-probabilities', it reads back the data gathered and
  7642. actually performs the optimizations based on them. Currently the
  7643. optimizations include specialization of division operations using
  7644. the knowledge about the value of the denominator.
  7645. '-frename-registers'
  7646. Attempt to avoid false dependencies in scheduled code by making use
  7647. of registers left over after register allocation. This
  7648. optimization most benefits processors with lots of registers.
  7649. Depending on the debug information format adopted by the target,
  7650. however, it can make debugging impossible, since variables no
  7651. longer stay in a "home register".
  7652. Enabled by default with '-funroll-loops'.
  7653. '-fschedule-fusion'
  7654. Performs a target dependent pass over the instruction stream to
  7655. schedule instructions of same type together because target machine
  7656. can execute them more efficiently if they are adjacent to each
  7657. other in the instruction flow.
  7658. Enabled at levels '-O2', '-O3', '-Os'.
  7659. '-ftracer'
  7660. Perform tail duplication to enlarge superblock size. This
  7661. transformation simplifies the control flow of the function allowing
  7662. other optimizations to do a better job.
  7663. Enabled with '-fprofile-use'.
  7664. '-funroll-loops'
  7665. Unroll loops whose number of iterations can be determined at
  7666. compile time or upon entry to the loop. '-funroll-loops' implies
  7667. '-frerun-cse-after-loop', '-fweb' and '-frename-registers'. It
  7668. also turns on complete loop peeling (i.e. complete removal of loops
  7669. with a small constant number of iterations). This option makes
  7670. code larger, and may or may not make it run faster.
  7671. Enabled with '-fprofile-use'.
  7672. '-funroll-all-loops'
  7673. Unroll all loops, even if their number of iterations is uncertain
  7674. when the loop is entered. This usually makes programs run more
  7675. slowly. '-funroll-all-loops' implies the same options as
  7676. '-funroll-loops'.
  7677. '-fpeel-loops'
  7678. Peels loops for which there is enough information that they do not
  7679. roll much (from profile feedback or static analysis). It also
  7680. turns on complete loop peeling (i.e. complete removal of loops with
  7681. small constant number of iterations).
  7682. Enabled with '-O3' and/or '-fprofile-use'.
  7683. '-fmove-loop-invariants'
  7684. Enables the loop invariant motion pass in the RTL loop optimizer.
  7685. Enabled at level '-O1'
  7686. '-fsplit-loops'
  7687. Split a loop into two if it contains a condition that's always true
  7688. for one side of the iteration space and false for the other.
  7689. '-funswitch-loops'
  7690. Move branches with loop invariant conditions out of the loop, with
  7691. duplicates of the loop on both branches (modified according to
  7692. result of the condition).
  7693. '-ffunction-sections'
  7694. '-fdata-sections'
  7695. Place each function or data item into its own section in the output
  7696. file if the target supports arbitrary sections. The name of the
  7697. function or the name of the data item determines the section's name
  7698. in the output file.
  7699. Use these options on systems where the linker can perform
  7700. optimizations to improve locality of reference in the instruction
  7701. space. Most systems using the ELF object format have linkers with
  7702. such optimizations. On AIX, the linker rearranges sections
  7703. (CSECTs) based on the call graph. The performance impact varies.
  7704. Together with a linker garbage collection (linker '--gc-sections'
  7705. option) these options may lead to smaller statically-linked
  7706. executables (after stripping).
  7707. On ELF/DWARF systems these options do not degenerate the quality of
  7708. the debug information. There could be issues with other object
  7709. files/debug info formats.
  7710. Only use these options when there are significant benefits from
  7711. doing so. When you specify these options, the assembler and linker
  7712. create larger object and executable files and are also slower.
  7713. These options affect code generation. They prevent optimizations
  7714. by the compiler and assembler using relative locations inside a
  7715. translation unit since the locations are unknown until link time.
  7716. An example of such an optimization is relaxing calls to short call
  7717. instructions.
  7718. '-fbranch-target-load-optimize'
  7719. Perform branch target register load optimization before prologue /
  7720. epilogue threading. The use of target registers can typically be
  7721. exposed only during reload, thus hoisting loads out of loops and
  7722. doing inter-block scheduling needs a separate optimization pass.
  7723. '-fbranch-target-load-optimize2'
  7724. Perform branch target register load optimization after prologue /
  7725. epilogue threading.
  7726. '-fbtr-bb-exclusive'
  7727. When performing branch target register load optimization, don't
  7728. reuse branch target registers within any basic block.
  7729. '-fstdarg-opt'
  7730. Optimize the prologue of variadic argument functions with respect
  7731. to usage of those arguments.
  7732. '-fsection-anchors'
  7733. Try to reduce the number of symbolic address calculations by using
  7734. shared "anchor" symbols to address nearby objects. This
  7735. transformation can help to reduce the number of GOT entries and GOT
  7736. accesses on some targets.
  7737. For example, the implementation of the following function 'foo':
  7738. static int a, b, c;
  7739. int foo (void) { return a + b + c; }
  7740. usually calculates the addresses of all three variables, but if you
  7741. compile it with '-fsection-anchors', it accesses the variables from
  7742. a common anchor point instead. The effect is similar to the
  7743. following pseudocode (which isn't valid C):
  7744. int foo (void)
  7745. {
  7746. register int *xr = &x;
  7747. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  7748. }
  7749. Not all targets support this option.
  7750. '--param NAME=VALUE'
  7751. In some places, GCC uses various constants to control the amount of
  7752. optimization that is done. For example, GCC does not inline
  7753. functions that contain more than a certain number of instructions.
  7754. You can control some of these constants on the command line using
  7755. the '--param' option.
  7756. The names of specific parameters, and the meaning of the values,
  7757. are tied to the internals of the compiler, and are subject to
  7758. change without notice in future releases.
  7759. In each case, the VALUE is an integer. The allowable choices for
  7760. NAME are:
  7761. 'predictable-branch-outcome'
  7762. When branch is predicted to be taken with probability lower
  7763. than this threshold (in percent), then it is considered well
  7764. predictable. The default is 10.
  7765. 'max-rtl-if-conversion-insns'
  7766. RTL if-conversion tries to remove conditional branches around
  7767. a block and replace them with conditionally executed
  7768. instructions. This parameter gives the maximum number of
  7769. instructions in a block which should be considered for
  7770. if-conversion. The default is 10, though the compiler will
  7771. also use other heuristics to decide whether if-conversion is
  7772. likely to be profitable.
  7773. 'max-rtl-if-conversion-predictable-cost'
  7774. 'max-rtl-if-conversion-unpredictable-cost'
  7775. RTL if-conversion will try to remove conditional branches
  7776. around a block and replace them with conditionally executed
  7777. instructions. These parameters give the maximum permissible
  7778. cost for the sequence that would be generated by if-conversion
  7779. depending on whether the branch is statically determined to be
  7780. predictable or not. The units for this parameter are the same
  7781. as those for the GCC internal seq_cost metric. The compiler
  7782. will try to provide a reasonable default for this parameter
  7783. using the BRANCH_COST target macro.
  7784. 'max-crossjump-edges'
  7785. The maximum number of incoming edges to consider for
  7786. cross-jumping. The algorithm used by '-fcrossjumping' is
  7787. O(N^2) in the number of edges incoming to each block.
  7788. Increasing values mean more aggressive optimization, making
  7789. the compilation time increase with probably small improvement
  7790. in executable size.
  7791. 'min-crossjump-insns'
  7792. The minimum number of instructions that must be matched at the
  7793. end of two blocks before cross-jumping is performed on them.
  7794. This value is ignored in the case where all instructions in
  7795. the block being cross-jumped from are matched. The default
  7796. value is 5.
  7797. 'max-grow-copy-bb-insns'
  7798. The maximum code size expansion factor when copying basic
  7799. blocks instead of jumping. The expansion is relative to a
  7800. jump instruction. The default value is 8.
  7801. 'max-goto-duplication-insns'
  7802. The maximum number of instructions to duplicate to a block
  7803. that jumps to a computed goto. To avoid O(N^2) behavior in a
  7804. number of passes, GCC factors computed gotos early in the
  7805. compilation process, and unfactors them as late as possible.
  7806. Only computed jumps at the end of a basic blocks with no more
  7807. than max-goto-duplication-insns are unfactored. The default
  7808. value is 8.
  7809. 'max-delay-slot-insn-search'
  7810. The maximum number of instructions to consider when looking
  7811. for an instruction to fill a delay slot. If more than this
  7812. arbitrary number of instructions are searched, the time
  7813. savings from filling the delay slot are minimal, so stop
  7814. searching. Increasing values mean more aggressive
  7815. optimization, making the compilation time increase with
  7816. probably small improvement in execution time.
  7817. 'max-delay-slot-live-search'
  7818. When trying to fill delay slots, the maximum number of
  7819. instructions to consider when searching for a block with valid
  7820. live register information. Increasing this arbitrarily chosen
  7821. value means more aggressive optimization, increasing the
  7822. compilation time. This parameter should be removed when the
  7823. delay slot code is rewritten to maintain the control-flow
  7824. graph.
  7825. 'max-gcse-memory'
  7826. The approximate maximum amount of memory that can be allocated
  7827. in order to perform the global common subexpression
  7828. elimination optimization. If more memory than specified is
  7829. required, the optimization is not done.
  7830. 'max-gcse-insertion-ratio'
  7831. If the ratio of expression insertions to deletions is larger
  7832. than this value for any expression, then RTL PRE inserts or
  7833. removes the expression and thus leaves partially redundant
  7834. computations in the instruction stream. The default value is
  7835. 20.
  7836. 'max-pending-list-length'
  7837. The maximum number of pending dependencies scheduling allows
  7838. before flushing the current state and starting over. Large
  7839. functions with few branches or calls can create excessively
  7840. large lists which needlessly consume memory and resources.
  7841. 'max-modulo-backtrack-attempts'
  7842. The maximum number of backtrack attempts the scheduler should
  7843. make when modulo scheduling a loop. Larger values can
  7844. exponentially increase compilation time.
  7845. 'max-inline-insns-single'
  7846. Several parameters control the tree inliner used in GCC. This
  7847. number sets the maximum number of instructions (counted in
  7848. GCC's internal representation) in a single function that the
  7849. tree inliner considers for inlining. This only affects
  7850. functions declared inline and methods implemented in a class
  7851. declaration (C++). The default value is 400.
  7852. 'max-inline-insns-auto'
  7853. When you use '-finline-functions' (included in '-O3'), a lot
  7854. of functions that would otherwise not be considered for
  7855. inlining by the compiler are investigated. To those
  7856. functions, a different (more restrictive) limit compared to
  7857. functions declared inline can be applied. The default value
  7858. is 30.
  7859. 'inline-min-speedup'
  7860. When estimated performance improvement of caller + callee
  7861. runtime exceeds this threshold (in percent), the function can
  7862. be inlined regardless of the limit on '--param
  7863. max-inline-insns-single' and '--param max-inline-insns-auto'.
  7864. The default value is 15.
  7865. 'large-function-insns'
  7866. The limit specifying really large functions. For functions
  7867. larger than this limit after inlining, inlining is constrained
  7868. by '--param large-function-growth'. This parameter is useful
  7869. primarily to avoid extreme compilation time caused by
  7870. non-linear algorithms used by the back end. The default value
  7871. is 2700.
  7872. 'large-function-growth'
  7873. Specifies maximal growth of large function caused by inlining
  7874. in percents. The default value is 100 which limits large
  7875. function growth to 2.0 times the original size.
  7876. 'large-unit-insns'
  7877. The limit specifying large translation unit. Growth caused by
  7878. inlining of units larger than this limit is limited by
  7879. '--param inline-unit-growth'. For small units this might be
  7880. too tight. For example, consider a unit consisting of
  7881. function A that is inline and B that just calls A three times.
  7882. If B is small relative to A, the growth of unit is 300\% and
  7883. yet such inlining is very sane. For very large units
  7884. consisting of small inlineable functions, however, the overall
  7885. unit growth limit is needed to avoid exponential explosion of
  7886. code size. Thus for smaller units, the size is increased to
  7887. '--param large-unit-insns' before applying '--param
  7888. inline-unit-growth'. The default is 10000.
  7889. 'inline-unit-growth'
  7890. Specifies maximal overall growth of the compilation unit
  7891. caused by inlining. The default value is 20 which limits unit
  7892. growth to 1.2 times the original size. Cold functions (either
  7893. marked cold via an attribute or by profile feedback) are not
  7894. accounted into the unit size.
  7895. 'ipcp-unit-growth'
  7896. Specifies maximal overall growth of the compilation unit
  7897. caused by interprocedural constant propagation. The default
  7898. value is 10 which limits unit growth to 1.1 times the original
  7899. size.
  7900. 'large-stack-frame'
  7901. The limit specifying large stack frames. While inlining the
  7902. algorithm is trying to not grow past this limit too much. The
  7903. default value is 256 bytes.
  7904. 'large-stack-frame-growth'
  7905. Specifies maximal growth of large stack frames caused by
  7906. inlining in percents. The default value is 1000 which limits
  7907. large stack frame growth to 11 times the original size.
  7908. 'max-inline-insns-recursive'
  7909. 'max-inline-insns-recursive-auto'
  7910. Specifies the maximum number of instructions an out-of-line
  7911. copy of a self-recursive inline function can grow into by
  7912. performing recursive inlining.
  7913. '--param max-inline-insns-recursive' applies to functions
  7914. declared inline. For functions not declared inline, recursive
  7915. inlining happens only when '-finline-functions' (included in
  7916. '-O3') is enabled; '--param max-inline-insns-recursive-auto'
  7917. applies instead. The default value is 450.
  7918. 'max-inline-recursive-depth'
  7919. 'max-inline-recursive-depth-auto'
  7920. Specifies the maximum recursion depth used for recursive
  7921. inlining.
  7922. '--param max-inline-recursive-depth' applies to functions
  7923. declared inline. For functions not declared inline, recursive
  7924. inlining happens only when '-finline-functions' (included in
  7925. '-O3') is enabled; '--param max-inline-recursive-depth-auto'
  7926. applies instead. The default value is 8.
  7927. 'min-inline-recursive-probability'
  7928. Recursive inlining is profitable only for function having deep
  7929. recursion in average and can hurt for function having little
  7930. recursion depth by increasing the prologue size or complexity
  7931. of function body to other optimizers.
  7932. When profile feedback is available (see '-fprofile-generate')
  7933. the actual recursion depth can be guessed from the probability
  7934. that function recurses via a given call expression. This
  7935. parameter limits inlining only to call expressions whose
  7936. probability exceeds the given threshold (in percents). The
  7937. default value is 10.
  7938. 'early-inlining-insns'
  7939. Specify growth that the early inliner can make. In effect it
  7940. increases the amount of inlining for code having a large
  7941. abstraction penalty. The default value is 14.
  7942. 'max-early-inliner-iterations'
  7943. Limit of iterations of the early inliner. This basically
  7944. bounds the number of nested indirect calls the early inliner
  7945. can resolve. Deeper chains are still handled by late
  7946. inlining.
  7947. 'comdat-sharing-probability'
  7948. Probability (in percent) that C++ inline function with comdat
  7949. visibility are shared across multiple compilation units. The
  7950. default value is 20.
  7951. 'profile-func-internal-id'
  7952. A parameter to control whether to use function internal id in
  7953. profile database lookup. If the value is 0, the compiler uses
  7954. an id that is based on function assembler name and filename,
  7955. which makes old profile data more tolerant to source changes
  7956. such as function reordering etc. The default value is 0.
  7957. 'min-vect-loop-bound'
  7958. The minimum number of iterations under which loops are not
  7959. vectorized when '-ftree-vectorize' is used. The number of
  7960. iterations after vectorization needs to be greater than the
  7961. value specified by this option to allow vectorization. The
  7962. default value is 0.
  7963. 'gcse-cost-distance-ratio'
  7964. Scaling factor in calculation of maximum distance an
  7965. expression can be moved by GCSE optimizations. This is
  7966. currently supported only in the code hoisting pass. The
  7967. bigger the ratio, the more aggressive code hoisting is with
  7968. simple expressions, i.e., the expressions that have cost less
  7969. than 'gcse-unrestricted-cost'. Specifying 0 disables hoisting
  7970. of simple expressions. The default value is 10.
  7971. 'gcse-unrestricted-cost'
  7972. Cost, roughly measured as the cost of a single typical machine
  7973. instruction, at which GCSE optimizations do not constrain the
  7974. distance an expression can travel. This is currently
  7975. supported only in the code hoisting pass. The lesser the
  7976. cost, the more aggressive code hoisting is. Specifying 0
  7977. allows all expressions to travel unrestricted distances. The
  7978. default value is 3.
  7979. 'max-hoist-depth'
  7980. The depth of search in the dominator tree for expressions to
  7981. hoist. This is used to avoid quadratic behavior in hoisting
  7982. algorithm. The value of 0 does not limit on the search, but
  7983. may slow down compilation of huge functions. The default
  7984. value is 30.
  7985. 'max-tail-merge-comparisons'
  7986. The maximum amount of similar bbs to compare a bb with. This
  7987. is used to avoid quadratic behavior in tree tail merging. The
  7988. default value is 10.
  7989. 'max-tail-merge-iterations'
  7990. The maximum amount of iterations of the pass over the
  7991. function. This is used to limit compilation time in tree tail
  7992. merging. The default value is 2.
  7993. 'store-merging-allow-unaligned'
  7994. Allow the store merging pass to introduce unaligned stores if
  7995. it is legal to do so. The default value is 1.
  7996. 'max-stores-to-merge'
  7997. The maximum number of stores to attempt to merge into wider
  7998. stores in the store merging pass. The minimum value is 2 and
  7999. the default is 64.
  8000. 'max-unrolled-insns'
  8001. The maximum number of instructions that a loop may have to be
  8002. unrolled. If a loop is unrolled, this parameter also
  8003. determines how many times the loop code is unrolled.
  8004. 'max-average-unrolled-insns'
  8005. The maximum number of instructions biased by probabilities of
  8006. their execution that a loop may have to be unrolled. If a
  8007. loop is unrolled, this parameter also determines how many
  8008. times the loop code is unrolled.
  8009. 'max-unroll-times'
  8010. The maximum number of unrollings of a single loop.
  8011. 'max-peeled-insns'
  8012. The maximum number of instructions that a loop may have to be
  8013. peeled. If a loop is peeled, this parameter also determines
  8014. how many times the loop code is peeled.
  8015. 'max-peel-times'
  8016. The maximum number of peelings of a single loop.
  8017. 'max-peel-branches'
  8018. The maximum number of branches on the hot path through the
  8019. peeled sequence.
  8020. 'max-completely-peeled-insns'
  8021. The maximum number of insns of a completely peeled loop.
  8022. 'max-completely-peel-times'
  8023. The maximum number of iterations of a loop to be suitable for
  8024. complete peeling.
  8025. 'max-completely-peel-loop-nest-depth'
  8026. The maximum depth of a loop nest suitable for complete
  8027. peeling.
  8028. 'max-unswitch-insns'
  8029. The maximum number of insns of an unswitched loop.
  8030. 'max-unswitch-level'
  8031. The maximum number of branches unswitched in a single loop.
  8032. 'max-loop-headers-insns'
  8033. The maximum number of insns in loop header duplicated by the
  8034. copy loop headers pass.
  8035. 'lim-expensive'
  8036. The minimum cost of an expensive expression in the loop
  8037. invariant motion.
  8038. 'iv-consider-all-candidates-bound'
  8039. Bound on number of candidates for induction variables, below
  8040. which all candidates are considered for each use in induction
  8041. variable optimizations. If there are more candidates than
  8042. this, only the most relevant ones are considered to avoid
  8043. quadratic time complexity.
  8044. 'iv-max-considered-uses'
  8045. The induction variable optimizations give up on loops that
  8046. contain more induction variable uses.
  8047. 'iv-always-prune-cand-set-bound'
  8048. If the number of candidates in the set is smaller than this
  8049. value, always try to remove unnecessary ivs from the set when
  8050. adding a new one.
  8051. 'avg-loop-niter'
  8052. Average number of iterations of a loop.
  8053. 'dse-max-object-size'
  8054. Maximum size (in bytes) of objects tracked bytewise by dead
  8055. store elimination. Larger values may result in larger
  8056. compilation times.
  8057. 'scev-max-expr-size'
  8058. Bound on size of expressions used in the scalar evolutions
  8059. analyzer. Large expressions slow the analyzer.
  8060. 'scev-max-expr-complexity'
  8061. Bound on the complexity of the expressions in the scalar
  8062. evolutions analyzer. Complex expressions slow the analyzer.
  8063. 'max-tree-if-conversion-phi-args'
  8064. Maximum number of arguments in a PHI supported by TREE if
  8065. conversion unless the loop is marked with simd pragma.
  8066. 'vect-max-version-for-alignment-checks'
  8067. The maximum number of run-time checks that can be performed
  8068. when doing loop versioning for alignment in the vectorizer.
  8069. 'vect-max-version-for-alias-checks'
  8070. The maximum number of run-time checks that can be performed
  8071. when doing loop versioning for alias in the vectorizer.
  8072. 'vect-max-peeling-for-alignment'
  8073. The maximum number of loop peels to enhance access alignment
  8074. for vectorizer. Value -1 means no limit.
  8075. 'max-iterations-to-track'
  8076. The maximum number of iterations of a loop the brute-force
  8077. algorithm for analysis of the number of iterations of the loop
  8078. tries to evaluate.
  8079. 'hot-bb-count-ws-permille'
  8080. A basic block profile count is considered hot if it
  8081. contributes to the given permillage (i.e. 0...1000) of the
  8082. entire profiled execution.
  8083. 'hot-bb-frequency-fraction'
  8084. Select fraction of the entry block frequency of executions of
  8085. basic block in function given basic block needs to have to be
  8086. considered hot.
  8087. 'max-predicted-iterations'
  8088. The maximum number of loop iterations we predict statically.
  8089. This is useful in cases where a function contains a single
  8090. loop with known bound and another loop with unknown bound.
  8091. The known number of iterations is predicted correctly, while
  8092. the unknown number of iterations average to roughly 10. This
  8093. means that the loop without bounds appears artificially cold
  8094. relative to the other one.
  8095. 'builtin-expect-probability'
  8096. Control the probability of the expression having the specified
  8097. value. This parameter takes a percentage (i.e. 0 ... 100)
  8098. as input. The default probability of 90 is obtained
  8099. empirically.
  8100. 'align-threshold'
  8101. Select fraction of the maximal frequency of executions of a
  8102. basic block in a function to align the basic block.
  8103. 'align-loop-iterations'
  8104. A loop expected to iterate at least the selected number of
  8105. iterations is aligned.
  8106. 'tracer-dynamic-coverage'
  8107. 'tracer-dynamic-coverage-feedback'
  8108. This value is used to limit superblock formation once the
  8109. given percentage of executed instructions is covered. This
  8110. limits unnecessary code size expansion.
  8111. The 'tracer-dynamic-coverage-feedback' parameter is used only
  8112. when profile feedback is available. The real profiles (as
  8113. opposed to statically estimated ones) are much less balanced
  8114. allowing the threshold to be larger value.
  8115. 'tracer-max-code-growth'
  8116. Stop tail duplication once code growth has reached given
  8117. percentage. This is a rather artificial limit, as most of the
  8118. duplicates are eliminated later in cross jumping, so it may be
  8119. set to much higher values than is the desired code growth.
  8120. 'tracer-min-branch-ratio'
  8121. Stop reverse growth when the reverse probability of best edge
  8122. is less than this threshold (in percent).
  8123. 'tracer-min-branch-probability'
  8124. 'tracer-min-branch-probability-feedback'
  8125. Stop forward growth if the best edge has probability lower
  8126. than this threshold.
  8127. Similarly to 'tracer-dynamic-coverage' two parameters are
  8128. provided. 'tracer-min-branch-probability-feedback' is used
  8129. for compilation with profile feedback and
  8130. 'tracer-min-branch-probability' compilation without. The
  8131. value for compilation with profile feedback needs to be more
  8132. conservative (higher) in order to make tracer effective.
  8133. 'stack-clash-protection-guard-size'
  8134. Specify the size of the operating system provided stack guard
  8135. as 2 raised to NUM bytes. The default value is 12 (4096
  8136. bytes). Acceptable values are between 12 and 30. Higher
  8137. values may reduce the number of explicit probes, but a value
  8138. larger than the operating system provided guard will leave
  8139. code vulnerable to stack clash style attacks.
  8140. 'stack-clash-protection-probe-interval'
  8141. Stack clash protection involves probing stack space as it is
  8142. allocated. This param controls the maximum distance between
  8143. probes into the stack as 2 raised to NUM bytes. Acceptable
  8144. values are between 10 and 16 and defaults to 12. Higher
  8145. values may reduce the number of explicit probes, but a value
  8146. larger than the operating system provided guard will leave
  8147. code vulnerable to stack clash style attacks.
  8148. 'max-cse-path-length'
  8149. The maximum number of basic blocks on path that CSE considers.
  8150. The default is 10.
  8151. 'max-cse-insns'
  8152. The maximum number of instructions CSE processes before
  8153. flushing. The default is 1000.
  8154. 'ggc-min-expand'
  8155. GCC uses a garbage collector to manage its own memory
  8156. allocation. This parameter specifies the minimum percentage
  8157. by which the garbage collector's heap should be allowed to
  8158. expand between collections. Tuning this may improve
  8159. compilation speed; it has no effect on code generation.
  8160. The default is 30% + 70% * (RAM/1GB) with an upper bound of
  8161. 100% when RAM >= 1GB. If 'getrlimit' is available, the notion
  8162. of "RAM" is the smallest of actual RAM and 'RLIMIT_DATA' or
  8163. 'RLIMIT_AS'. If GCC is not able to calculate RAM on a
  8164. particular platform, the lower bound of 30% is used. Setting
  8165. this parameter and 'ggc-min-heapsize' to zero causes a full
  8166. collection to occur at every opportunity. This is extremely
  8167. slow, but can be useful for debugging.
  8168. 'ggc-min-heapsize'
  8169. Minimum size of the garbage collector's heap before it begins
  8170. bothering to collect garbage. The first collection occurs
  8171. after the heap expands by 'ggc-min-expand'% beyond
  8172. 'ggc-min-heapsize'. Again, tuning this may improve
  8173. compilation speed, and has no effect on code generation.
  8174. The default is the smaller of RAM/8, RLIMIT_RSS, or a limit
  8175. that tries to ensure that RLIMIT_DATA or RLIMIT_AS are not
  8176. exceeded, but with a lower bound of 4096 (four megabytes) and
  8177. an upper bound of 131072 (128 megabytes). If GCC is not able
  8178. to calculate RAM on a particular platform, the lower bound is
  8179. used. Setting this parameter very large effectively disables
  8180. garbage collection. Setting this parameter and
  8181. 'ggc-min-expand' to zero causes a full collection to occur at
  8182. every opportunity.
  8183. 'max-reload-search-insns'
  8184. The maximum number of instruction reload should look backward
  8185. for equivalent register. Increasing values mean more
  8186. aggressive optimization, making the compilation time increase
  8187. with probably slightly better performance. The default value
  8188. is 100.
  8189. 'max-cselib-memory-locations'
  8190. The maximum number of memory locations cselib should take into
  8191. account. Increasing values mean more aggressive optimization,
  8192. making the compilation time increase with probably slightly
  8193. better performance. The default value is 500.
  8194. 'max-sched-ready-insns'
  8195. The maximum number of instructions ready to be issued the
  8196. scheduler should consider at any given time during the first
  8197. scheduling pass. Increasing values mean more thorough
  8198. searches, making the compilation time increase with probably
  8199. little benefit. The default value is 100.
  8200. 'max-sched-region-blocks'
  8201. The maximum number of blocks in a region to be considered for
  8202. interblock scheduling. The default value is 10.
  8203. 'max-pipeline-region-blocks'
  8204. The maximum number of blocks in a region to be considered for
  8205. pipelining in the selective scheduler. The default value is
  8206. 15.
  8207. 'max-sched-region-insns'
  8208. The maximum number of insns in a region to be considered for
  8209. interblock scheduling. The default value is 100.
  8210. 'max-pipeline-region-insns'
  8211. The maximum number of insns in a region to be considered for
  8212. pipelining in the selective scheduler. The default value is
  8213. 200.
  8214. 'min-spec-prob'
  8215. The minimum probability (in percents) of reaching a source
  8216. block for interblock speculative scheduling. The default
  8217. value is 40.
  8218. 'max-sched-extend-regions-iters'
  8219. The maximum number of iterations through CFG to extend
  8220. regions. A value of 0 (the default) disables region
  8221. extensions.
  8222. 'max-sched-insn-conflict-delay'
  8223. The maximum conflict delay for an insn to be considered for
  8224. speculative motion. The default value is 3.
  8225. 'sched-spec-prob-cutoff'
  8226. The minimal probability of speculation success (in percents),
  8227. so that speculative insns are scheduled. The default value is
  8228. 40.
  8229. 'sched-state-edge-prob-cutoff'
  8230. The minimum probability an edge must have for the scheduler to
  8231. save its state across it. The default value is 10.
  8232. 'sched-mem-true-dep-cost'
  8233. Minimal distance (in CPU cycles) between store and load
  8234. targeting same memory locations. The default value is 1.
  8235. 'selsched-max-lookahead'
  8236. The maximum size of the lookahead window of selective
  8237. scheduling. It is a depth of search for available
  8238. instructions. The default value is 50.
  8239. 'selsched-max-sched-times'
  8240. The maximum number of times that an instruction is scheduled
  8241. during selective scheduling. This is the limit on the number
  8242. of iterations through which the instruction may be pipelined.
  8243. The default value is 2.
  8244. 'selsched-insns-to-rename'
  8245. The maximum number of best instructions in the ready list that
  8246. are considered for renaming in the selective scheduler. The
  8247. default value is 2.
  8248. 'sms-min-sc'
  8249. The minimum value of stage count that swing modulo scheduler
  8250. generates. The default value is 2.
  8251. 'max-last-value-rtl'
  8252. The maximum size measured as number of RTLs that can be
  8253. recorded in an expression in combiner for a pseudo register as
  8254. last known value of that register. The default is 10000.
  8255. 'max-combine-insns'
  8256. The maximum number of instructions the RTL combiner tries to
  8257. combine. The default value is 2 at '-Og' and 4 otherwise.
  8258. 'integer-share-limit'
  8259. Small integer constants can use a shared data structure,
  8260. reducing the compiler's memory usage and increasing its speed.
  8261. This sets the maximum value of a shared integer constant. The
  8262. default value is 256.
  8263. 'ssp-buffer-size'
  8264. The minimum size of buffers (i.e. arrays) that receive stack
  8265. smashing protection when '-fstack-protection' is used.
  8266. 'min-size-for-stack-sharing'
  8267. The minimum size of variables taking part in stack slot
  8268. sharing when not optimizing. The default value is 32.
  8269. 'max-jump-thread-duplication-stmts'
  8270. Maximum number of statements allowed in a block that needs to
  8271. be duplicated when threading jumps.
  8272. 'max-fields-for-field-sensitive'
  8273. Maximum number of fields in a structure treated in a field
  8274. sensitive manner during pointer analysis. The default is zero
  8275. for '-O0' and '-O1', and 100 for '-Os', '-O2', and '-O3'.
  8276. 'prefetch-latency'
  8277. Estimate on average number of instructions that are executed
  8278. before prefetch finishes. The distance prefetched ahead is
  8279. proportional to this constant. Increasing this number may
  8280. also lead to less streams being prefetched (see
  8281. 'simultaneous-prefetches').
  8282. 'simultaneous-prefetches'
  8283. Maximum number of prefetches that can run at the same time.
  8284. 'l1-cache-line-size'
  8285. The size of cache line in L1 cache, in bytes.
  8286. 'l1-cache-size'
  8287. The size of L1 cache, in kilobytes.
  8288. 'l2-cache-size'
  8289. The size of L2 cache, in kilobytes.
  8290. 'loop-interchange-max-num-stmts'
  8291. The maximum number of stmts in a loop to be interchanged.
  8292. 'loop-interchange-stride-ratio'
  8293. The minimum ratio between stride of two loops for interchange
  8294. to be profitable.
  8295. 'min-insn-to-prefetch-ratio'
  8296. The minimum ratio between the number of instructions and the
  8297. number of prefetches to enable prefetching in a loop.
  8298. 'prefetch-min-insn-to-mem-ratio'
  8299. The minimum ratio between the number of instructions and the
  8300. number of memory references to enable prefetching in a loop.
  8301. 'use-canonical-types'
  8302. Whether the compiler should use the "canonical" type system.
  8303. By default, this should always be 1, which uses a more
  8304. efficient internal mechanism for comparing types in C++ and
  8305. Objective-C++. However, if bugs in the canonical type system
  8306. are causing compilation failures, set this value to 0 to
  8307. disable canonical types.
  8308. 'switch-conversion-max-branch-ratio'
  8309. Switch initialization conversion refuses to create arrays that
  8310. are bigger than 'switch-conversion-max-branch-ratio' times the
  8311. number of branches in the switch.
  8312. 'max-partial-antic-length'
  8313. Maximum length of the partial antic set computed during the
  8314. tree partial redundancy elimination optimization
  8315. ('-ftree-pre') when optimizing at '-O3' and above. For some
  8316. sorts of source code the enhanced partial redundancy
  8317. elimination optimization can run away, consuming all of the
  8318. memory available on the host machine. This parameter sets a
  8319. limit on the length of the sets that are computed, which
  8320. prevents the runaway behavior. Setting a value of 0 for this
  8321. parameter allows an unlimited set length.
  8322. 'sccvn-max-scc-size'
  8323. Maximum size of a strongly connected component (SCC) during
  8324. SCCVN processing. If this limit is hit, SCCVN processing for
  8325. the whole function is not done and optimizations depending on
  8326. it are disabled. The default maximum SCC size is 10000.
  8327. 'sccvn-max-alias-queries-per-access'
  8328. Maximum number of alias-oracle queries we perform when looking
  8329. for redundancies for loads and stores. If this limit is hit
  8330. the search is aborted and the load or store is not considered
  8331. redundant. The number of queries is algorithmically limited
  8332. to the number of stores on all paths from the load to the
  8333. function entry. The default maximum number of queries is
  8334. 1000.
  8335. 'ira-max-loops-num'
  8336. IRA uses regional register allocation by default. If a
  8337. function contains more loops than the number given by this
  8338. parameter, only at most the given number of the most
  8339. frequently-executed loops form regions for regional register
  8340. allocation. The default value of the parameter is 100.
  8341. 'ira-max-conflict-table-size'
  8342. Although IRA uses a sophisticated algorithm to compress the
  8343. conflict table, the table can still require excessive amounts
  8344. of memory for huge functions. If the conflict table for a
  8345. function could be more than the size in MB given by this
  8346. parameter, the register allocator instead uses a faster,
  8347. simpler, and lower-quality algorithm that does not require
  8348. building a pseudo-register conflict table. The default value
  8349. of the parameter is 2000.
  8350. 'ira-loop-reserved-regs'
  8351. IRA can be used to evaluate more accurate register pressure in
  8352. loops for decisions to move loop invariants (see '-O3'). The
  8353. number of available registers reserved for some other purposes
  8354. is given by this parameter. The default value of the
  8355. parameter is 2, which is the minimal number of registers
  8356. needed by typical instructions. This value is the best found
  8357. from numerous experiments.
  8358. 'lra-inheritance-ebb-probability-cutoff'
  8359. LRA tries to reuse values reloaded in registers in subsequent
  8360. insns. This optimization is called inheritance. EBB is used
  8361. as a region to do this optimization. The parameter defines a
  8362. minimal fall-through edge probability in percentage used to
  8363. add BB to inheritance EBB in LRA. The default value of the
  8364. parameter is 40. The value was chosen from numerous runs of
  8365. SPEC2000 on x86-64.
  8366. 'loop-invariant-max-bbs-in-loop'
  8367. Loop invariant motion can be very expensive, both in
  8368. compilation time and in amount of needed compile-time memory,
  8369. with very large loops. Loops with more basic blocks than this
  8370. parameter won't have loop invariant motion optimization
  8371. performed on them. The default value of the parameter is 1000
  8372. for '-O1' and 10000 for '-O2' and above.
  8373. 'loop-max-datarefs-for-datadeps'
  8374. Building data dependencies is expensive for very large loops.
  8375. This parameter limits the number of data references in loops
  8376. that are considered for data dependence analysis. These large
  8377. loops are no handled by the optimizations using loop data
  8378. dependencies. The default value is 1000.
  8379. 'max-vartrack-size'
  8380. Sets a maximum number of hash table slots to use during
  8381. variable tracking dataflow analysis of any function. If this
  8382. limit is exceeded with variable tracking at assignments
  8383. enabled, analysis for that function is retried without it,
  8384. after removing all debug insns from the function. If the
  8385. limit is exceeded even without debug insns, var tracking
  8386. analysis is completely disabled for the function. Setting the
  8387. parameter to zero makes it unlimited.
  8388. 'max-vartrack-expr-depth'
  8389. Sets a maximum number of recursion levels when attempting to
  8390. map variable names or debug temporaries to value expressions.
  8391. This trades compilation time for more complete debug
  8392. information. If this is set too low, value expressions that
  8393. are available and could be represented in debug information
  8394. may end up not being used; setting this higher may enable the
  8395. compiler to find more complex debug expressions, but compile
  8396. time and memory use may grow. The default is 12.
  8397. 'max-debug-marker-count'
  8398. Sets a threshold on the number of debug markers (e.g. begin
  8399. stmt markers) to avoid complexity explosion at inlining or
  8400. expanding to RTL. If a function has more such gimple stmts
  8401. than the set limit, such stmts will be dropped from the
  8402. inlined copy of a function, and from its RTL expansion. The
  8403. default is 100000.
  8404. 'min-nondebug-insn-uid'
  8405. Use uids starting at this parameter for nondebug insns. The
  8406. range below the parameter is reserved exclusively for debug
  8407. insns created by '-fvar-tracking-assignments', but debug insns
  8408. may get (non-overlapping) uids above it if the reserved range
  8409. is exhausted.
  8410. 'ipa-sra-ptr-growth-factor'
  8411. IPA-SRA replaces a pointer to an aggregate with one or more
  8412. new parameters only when their cumulative size is less or
  8413. equal to 'ipa-sra-ptr-growth-factor' times the size of the
  8414. original pointer parameter.
  8415. 'sra-max-scalarization-size-Ospeed'
  8416. 'sra-max-scalarization-size-Osize'
  8417. The two Scalar Reduction of Aggregates passes (SRA and
  8418. IPA-SRA) aim to replace scalar parts of aggregates with uses
  8419. of independent scalar variables. These parameters control the
  8420. maximum size, in storage units, of aggregate which is
  8421. considered for replacement when compiling for speed
  8422. ('sra-max-scalarization-size-Ospeed') or size
  8423. ('sra-max-scalarization-size-Osize') respectively.
  8424. 'tm-max-aggregate-size'
  8425. When making copies of thread-local variables in a transaction,
  8426. this parameter specifies the size in bytes after which
  8427. variables are saved with the logging functions as opposed to
  8428. save/restore code sequence pairs. This option only applies
  8429. when using '-fgnu-tm'.
  8430. 'graphite-max-nb-scop-params'
  8431. To avoid exponential effects in the Graphite loop transforms,
  8432. the number of parameters in a Static Control Part (SCoP) is
  8433. bounded. The default value is 10 parameters, a value of zero
  8434. can be used to lift the bound. A variable whose value is
  8435. unknown at compilation time and defined outside a SCoP is a
  8436. parameter of the SCoP.
  8437. 'loop-block-tile-size'
  8438. Loop blocking or strip mining transforms, enabled with
  8439. '-floop-block' or '-floop-strip-mine', strip mine each loop in
  8440. the loop nest by a given number of iterations. The strip
  8441. length can be changed using the 'loop-block-tile-size'
  8442. parameter. The default value is 51 iterations.
  8443. 'loop-unroll-jam-size'
  8444. Specify the unroll factor for the '-floop-unroll-and-jam'
  8445. option. The default value is 4.
  8446. 'loop-unroll-jam-depth'
  8447. Specify the dimension to be unrolled (counting from the most
  8448. inner loop) for the '-floop-unroll-and-jam'. The default
  8449. value is 2.
  8450. 'ipa-cp-value-list-size'
  8451. IPA-CP attempts to track all possible values and types passed
  8452. to a function's parameter in order to propagate them and
  8453. perform devirtualization. 'ipa-cp-value-list-size' is the
  8454. maximum number of values and types it stores per one formal
  8455. parameter of a function.
  8456. 'ipa-cp-eval-threshold'
  8457. IPA-CP calculates its own score of cloning profitability
  8458. heuristics and performs those cloning opportunities with
  8459. scores that exceed 'ipa-cp-eval-threshold'.
  8460. 'ipa-cp-recursion-penalty'
  8461. Percentage penalty the recursive functions will receive when
  8462. they are evaluated for cloning.
  8463. 'ipa-cp-single-call-penalty'
  8464. Percentage penalty functions containing a single call to
  8465. another function will receive when they are evaluated for
  8466. cloning.
  8467. 'ipa-max-agg-items'
  8468. IPA-CP is also capable to propagate a number of scalar values
  8469. passed in an aggregate. 'ipa-max-agg-items' controls the
  8470. maximum number of such values per one parameter.
  8471. 'ipa-cp-loop-hint-bonus'
  8472. When IPA-CP determines that a cloning candidate would make the
  8473. number of iterations of a loop known, it adds a bonus of
  8474. 'ipa-cp-loop-hint-bonus' to the profitability score of the
  8475. candidate.
  8476. 'ipa-cp-array-index-hint-bonus'
  8477. When IPA-CP determines that a cloning candidate would make the
  8478. index of an array access known, it adds a bonus of
  8479. 'ipa-cp-array-index-hint-bonus' to the profitability score of
  8480. the candidate.
  8481. 'ipa-max-aa-steps'
  8482. During its analysis of function bodies, IPA-CP employs alias
  8483. analysis in order to track values pointed to by function
  8484. parameters. In order not spend too much time analyzing huge
  8485. functions, it gives up and consider all memory clobbered after
  8486. examining 'ipa-max-aa-steps' statements modifying memory.
  8487. 'lto-partitions'
  8488. Specify desired number of partitions produced during WHOPR
  8489. compilation. The number of partitions should exceed the
  8490. number of CPUs used for compilation. The default value is 32.
  8491. 'lto-min-partition'
  8492. Size of minimal partition for WHOPR (in estimated
  8493. instructions). This prevents expenses of splitting very small
  8494. programs into too many partitions.
  8495. 'lto-max-partition'
  8496. Size of max partition for WHOPR (in estimated instructions).
  8497. to provide an upper bound for individual size of partition.
  8498. Meant to be used only with balanced partitioning.
  8499. 'cxx-max-namespaces-for-diagnostic-help'
  8500. The maximum number of namespaces to consult for suggestions
  8501. when C++ name lookup fails for an identifier. The default is
  8502. 1000.
  8503. 'sink-frequency-threshold'
  8504. The maximum relative execution frequency (in percents) of the
  8505. target block relative to a statement's original block to allow
  8506. statement sinking of a statement. Larger numbers result in
  8507. more aggressive statement sinking. The default value is 75.
  8508. A small positive adjustment is applied for statements with
  8509. memory operands as those are even more profitable so sink.
  8510. 'max-stores-to-sink'
  8511. The maximum number of conditional store pairs that can be
  8512. sunk. Set to 0 if either vectorization ('-ftree-vectorize')
  8513. or if-conversion ('-ftree-loop-if-convert') is disabled. The
  8514. default is 2.
  8515. 'allow-store-data-races'
  8516. Allow optimizers to introduce new data races on stores. Set
  8517. to 1 to allow, otherwise to 0. This option is enabled by
  8518. default at optimization level '-Ofast'.
  8519. 'case-values-threshold'
  8520. The smallest number of different values for which it is best
  8521. to use a jump-table instead of a tree of conditional branches.
  8522. If the value is 0, use the default for the machine. The
  8523. default is 0.
  8524. 'tree-reassoc-width'
  8525. Set the maximum number of instructions executed in parallel in
  8526. reassociated tree. This parameter overrides target dependent
  8527. heuristics used by default if has non zero value.
  8528. 'sched-pressure-algorithm'
  8529. Choose between the two available implementations of
  8530. '-fsched-pressure'. Algorithm 1 is the original
  8531. implementation and is the more likely to prevent instructions
  8532. from being reordered. Algorithm 2 was designed to be a
  8533. compromise between the relatively conservative approach taken
  8534. by algorithm 1 and the rather aggressive approach taken by the
  8535. default scheduler. It relies more heavily on having a regular
  8536. register file and accurate register pressure classes. See
  8537. 'haifa-sched.c' in the GCC sources for more details.
  8538. The default choice depends on the target.
  8539. 'max-slsr-cand-scan'
  8540. Set the maximum number of existing candidates that are
  8541. considered when seeking a basis for a new straight-line
  8542. strength reduction candidate.
  8543. 'asan-globals'
  8544. Enable buffer overflow detection for global objects. This
  8545. kind of protection is enabled by default if you are using
  8546. '-fsanitize=address' option. To disable global objects
  8547. protection use '--param asan-globals=0'.
  8548. 'asan-stack'
  8549. Enable buffer overflow detection for stack objects. This kind
  8550. of protection is enabled by default when using
  8551. '-fsanitize=address'. To disable stack protection use
  8552. '--param asan-stack=0' option.
  8553. 'asan-instrument-reads'
  8554. Enable buffer overflow detection for memory reads. This kind
  8555. of protection is enabled by default when using
  8556. '-fsanitize=address'. To disable memory reads protection use
  8557. '--param asan-instrument-reads=0'.
  8558. 'asan-instrument-writes'
  8559. Enable buffer overflow detection for memory writes. This kind
  8560. of protection is enabled by default when using
  8561. '-fsanitize=address'. To disable memory writes protection use
  8562. '--param asan-instrument-writes=0' option.
  8563. 'asan-memintrin'
  8564. Enable detection for built-in functions. This kind of
  8565. protection is enabled by default when using
  8566. '-fsanitize=address'. To disable built-in functions
  8567. protection use '--param asan-memintrin=0'.
  8568. 'asan-use-after-return'
  8569. Enable detection of use-after-return. This kind of protection
  8570. is enabled by default when using the '-fsanitize=address'
  8571. option. To disable it use '--param asan-use-after-return=0'.
  8572. Note: By default the check is disabled at run time. To enable
  8573. it, add 'detect_stack_use_after_return=1' to the environment
  8574. variable 'ASAN_OPTIONS'.
  8575. 'asan-instrumentation-with-call-threshold'
  8576. If number of memory accesses in function being instrumented is
  8577. greater or equal to this number, use callbacks instead of
  8578. inline checks. E.g. to disable inline code use '--param
  8579. asan-instrumentation-with-call-threshold=0'.
  8580. 'use-after-scope-direct-emission-threshold'
  8581. If the size of a local variable in bytes is smaller or equal
  8582. to this number, directly poison (or unpoison) shadow memory
  8583. instead of using run-time callbacks. The default value is
  8584. 256.
  8585. 'chkp-max-ctor-size'
  8586. Static constructors generated by Pointer Bounds Checker may
  8587. become very large and significantly increase compile time at
  8588. optimization level '-O1' and higher. This parameter is a
  8589. maximum number of statements in a single generated
  8590. constructor. Default value is 5000.
  8591. 'max-fsm-thread-path-insns'
  8592. Maximum number of instructions to copy when duplicating blocks
  8593. on a finite state automaton jump thread path. The default is
  8594. 100.
  8595. 'max-fsm-thread-length'
  8596. Maximum number of basic blocks on a finite state automaton
  8597. jump thread path. The default is 10.
  8598. 'max-fsm-thread-paths'
  8599. Maximum number of new jump thread paths to create for a finite
  8600. state automaton. The default is 50.
  8601. 'parloops-chunk-size'
  8602. Chunk size of omp schedule for loops parallelized by parloops.
  8603. The default is 0.
  8604. 'parloops-schedule'
  8605. Schedule type of omp schedule for loops parallelized by
  8606. parloops (static, dynamic, guided, auto, runtime). The
  8607. default is static.
  8608. 'parloops-min-per-thread'
  8609. The minimum number of iterations per thread of an innermost
  8610. parallelized loop for which the parallelized variant is
  8611. prefered over the single threaded one. The default is 100.
  8612. Note that for a parallelized loop nest the minimum number of
  8613. iterations of the outermost loop per thread is two.
  8614. 'max-ssa-name-query-depth'
  8615. Maximum depth of recursion when querying properties of SSA
  8616. names in things like fold routines. One level of recursion
  8617. corresponds to following a use-def chain.
  8618. 'hsa-gen-debug-stores'
  8619. Enable emission of special debug stores within HSA kernels
  8620. which are then read and reported by libgomp plugin.
  8621. Generation of these stores is disabled by default, use
  8622. '--param hsa-gen-debug-stores=1' to enable it.
  8623. 'max-speculative-devirt-maydefs'
  8624. The maximum number of may-defs we analyze when looking for a
  8625. must-def specifying the dynamic type of an object that invokes
  8626. a virtual call we may be able to devirtualize speculatively.
  8627. 'max-vrp-switch-assertions'
  8628. The maximum number of assertions to add along the default edge
  8629. of a switch statement during VRP. The default is 10.
  8630. 'unroll-jam-min-percent'
  8631. The minimum percentage of memory references that must be
  8632. optimized away for the unroll-and-jam transformation to be
  8633. considered profitable.
  8634. 'unroll-jam-max-unroll'
  8635. The maximum number of times the outer loop should be unrolled
  8636. by the unroll-and-jam transformation.
  8637. 
  8638. File: gcc.info, Node: Instrumentation Options, Next: Preprocessor Options, Prev: Optimize Options, Up: Invoking GCC
  8639. 3.11 Program Instrumentation Options
  8640. ====================================
  8641. GCC supports a number of command-line options that control adding
  8642. run-time instrumentation to the code it normally generates. For
  8643. example, one purpose of instrumentation is collect profiling statistics
  8644. for use in finding program hot spots, code coverage analysis, or
  8645. profile-guided optimizations. Another class of program instrumentation
  8646. is adding run-time checking to detect programming errors like invalid
  8647. pointer dereferences or out-of-bounds array accesses, as well as
  8648. deliberately hostile attacks such as stack smashing or C++ vtable
  8649. hijacking. There is also a general hook which can be used to implement
  8650. other forms of tracing or function-level instrumentation for debug or
  8651. program analysis purposes.
  8652. '-p'
  8653. Generate extra code to write profile information suitable for the
  8654. analysis program 'prof'. You must use this option when compiling
  8655. the source files you want data about, and you must also use it when
  8656. linking.
  8657. '-pg'
  8658. Generate extra code to write profile information suitable for the
  8659. analysis program 'gprof'. You must use this option when compiling
  8660. the source files you want data about, and you must also use it when
  8661. linking.
  8662. '-fprofile-arcs'
  8663. Add code so that program flow "arcs" are instrumented. During
  8664. execution the program records how many times each branch and call
  8665. is executed and how many times it is taken or returns. On targets
  8666. that support constructors with priority support, profiling properly
  8667. handles constructors, destructors and C++ constructors (and
  8668. destructors) of classes which are used as a type of a global
  8669. variable.
  8670. When the compiled program exits it saves this data to a file called
  8671. 'AUXNAME.gcda' for each source file. The data may be used for
  8672. profile-directed optimizations ('-fbranch-probabilities'), or for
  8673. test coverage analysis ('-ftest-coverage'). Each object file's
  8674. AUXNAME is generated from the name of the output file, if
  8675. explicitly specified and it is not the final executable, otherwise
  8676. it is the basename of the source file. In both cases any suffix is
  8677. removed (e.g. 'foo.gcda' for input file 'dir/foo.c', or
  8678. 'dir/foo.gcda' for output file specified as '-o dir/foo.o'). *Note
  8679. Cross-profiling::.
  8680. '--coverage'
  8681. This option is used to compile and link code instrumented for
  8682. coverage analysis. The option is a synonym for '-fprofile-arcs'
  8683. '-ftest-coverage' (when compiling) and '-lgcov' (when linking).
  8684. See the documentation for those options for more details.
  8685. * Compile the source files with '-fprofile-arcs' plus
  8686. optimization and code generation options. For test coverage
  8687. analysis, use the additional '-ftest-coverage' option. You do
  8688. not need to profile every source file in a program.
  8689. * Compile the source files additionally with
  8690. '-fprofile-abs-path' to create absolute path names in the
  8691. '.gcno' files. This allows 'gcov' to find the correct sources
  8692. in projects where compilations occur with different working
  8693. directories.
  8694. * Link your object files with '-lgcov' or '-fprofile-arcs' (the
  8695. latter implies the former).
  8696. * Run the program on a representative workload to generate the
  8697. arc profile information. This may be repeated any number of
  8698. times. You can run concurrent instances of your program, and
  8699. provided that the file system supports locking, the data files
  8700. will be correctly updated. Unless a strict ISO C dialect
  8701. option is in effect, 'fork' calls are detected and correctly
  8702. handled without double counting.
  8703. * For profile-directed optimizations, compile the source files
  8704. again with the same optimization and code generation options
  8705. plus '-fbranch-probabilities' (*note Options that Control
  8706. Optimization: Optimize Options.).
  8707. * For test coverage analysis, use 'gcov' to produce human
  8708. readable information from the '.gcno' and '.gcda' files.
  8709. Refer to the 'gcov' documentation for further information.
  8710. With '-fprofile-arcs', for each function of your program GCC
  8711. creates a program flow graph, then finds a spanning tree for the
  8712. graph. Only arcs that are not on the spanning tree have to be
  8713. instrumented: the compiler adds code to count the number of times
  8714. that these arcs are executed. When an arc is the only exit or only
  8715. entrance to a block, the instrumentation code can be added to the
  8716. block; otherwise, a new basic block must be created to hold the
  8717. instrumentation code.
  8718. '-ftest-coverage'
  8719. Produce a notes file that the 'gcov' code-coverage utility (*note
  8720. 'gcov'--a Test Coverage Program: Gcov.) can use to show program
  8721. coverage. Each source file's note file is called 'AUXNAME.gcno'.
  8722. Refer to the '-fprofile-arcs' option above for a description of
  8723. AUXNAME and instructions on how to generate test coverage data.
  8724. Coverage data matches the source files more closely if you do not
  8725. optimize.
  8726. '-fprofile-abs-path'
  8727. Automatically convert relative source file names to absolute path
  8728. names in the '.gcno' files. This allows 'gcov' to find the correct
  8729. sources in projects where compilations occur with different working
  8730. directories.
  8731. '-fprofile-dir=PATH'
  8732. Set the directory to search for the profile data files in to PATH.
  8733. This option affects only the profile data generated by
  8734. '-fprofile-generate', '-ftest-coverage', '-fprofile-arcs' and used
  8735. by '-fprofile-use' and '-fbranch-probabilities' and its related
  8736. options. Both absolute and relative paths can be used. By
  8737. default, GCC uses the current directory as PATH, thus the profile
  8738. data file appears in the same directory as the object file.
  8739. '-fprofile-generate'
  8740. '-fprofile-generate=PATH'
  8741. Enable options usually used for instrumenting application to
  8742. produce profile useful for later recompilation with profile
  8743. feedback based optimization. You must use '-fprofile-generate'
  8744. both when compiling and when linking your program.
  8745. The following options are enabled: '-fprofile-arcs',
  8746. '-fprofile-values', '-fvpt'.
  8747. If PATH is specified, GCC looks at the PATH to find the profile
  8748. feedback data files. See '-fprofile-dir'.
  8749. To optimize the program based on the collected profile information,
  8750. use '-fprofile-use'. *Note Optimize Options::, for more
  8751. information.
  8752. '-fprofile-update=METHOD'
  8753. Alter the update method for an application instrumented for profile
  8754. feedback based optimization. The METHOD argument should be one of
  8755. 'single', 'atomic' or 'prefer-atomic'. The first one is useful for
  8756. single-threaded applications, while the second one prevents profile
  8757. corruption by emitting thread-safe code.
  8758. *Warning:* When an application does not properly join all threads
  8759. (or creates an detached thread), a profile file can be still
  8760. corrupted.
  8761. Using 'prefer-atomic' would be transformed either to 'atomic', when
  8762. supported by a target, or to 'single' otherwise. The GCC driver
  8763. automatically selects 'prefer-atomic' when '-pthread' is present in
  8764. the command line.
  8765. '-fsanitize=address'
  8766. Enable AddressSanitizer, a fast memory error detector. Memory
  8767. access instructions are instrumented to detect out-of-bounds and
  8768. use-after-free bugs. The option enables
  8769. '-fsanitize-address-use-after-scope'. See
  8770. <https://github.com/google/sanitizers/wiki/AddressSanitizer> for
  8771. more details. The run-time behavior can be influenced using the
  8772. 'ASAN_OPTIONS' environment variable. When set to 'help=1', the
  8773. available options are shown at startup of the instrumented program.
  8774. See
  8775. <https://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run-time-flags>
  8776. for a list of supported options. The option cannot be combined
  8777. with '-fsanitize=thread' and/or '-fcheck-pointer-bounds'.
  8778. '-fsanitize=kernel-address'
  8779. Enable AddressSanitizer for Linux kernel. See
  8780. <https://github.com/google/kasan/wiki> for more details. The
  8781. option cannot be combined with '-fcheck-pointer-bounds'.
  8782. '-fsanitize=pointer-compare'
  8783. Instrument comparison operation (<, <=, >, >=) with pointer
  8784. operands. The option must be combined with either
  8785. '-fsanitize=kernel-address' or '-fsanitize=address' The option
  8786. cannot be combined with '-fsanitize=thread' and/or
  8787. '-fcheck-pointer-bounds'. Note: By default the check is disabled
  8788. at run time. To enable it, add 'detect_invalid_pointer_pairs=2' to
  8789. the environment variable 'ASAN_OPTIONS'. Using
  8790. 'detect_invalid_pointer_pairs=1' detects invalid operation only
  8791. when both pointers are non-null.
  8792. '-fsanitize=pointer-subtract'
  8793. Instrument subtraction with pointer operands. The option must be
  8794. combined with either '-fsanitize=kernel-address' or
  8795. '-fsanitize=address' The option cannot be combined with
  8796. '-fsanitize=thread' and/or '-fcheck-pointer-bounds'. Note: By
  8797. default the check is disabled at run time. To enable it, add
  8798. 'detect_invalid_pointer_pairs=2' to the environment variable
  8799. 'ASAN_OPTIONS'. Using 'detect_invalid_pointer_pairs=1' detects
  8800. invalid operation only when both pointers are non-null.
  8801. '-fsanitize=thread'
  8802. Enable ThreadSanitizer, a fast data race detector. Memory access
  8803. instructions are instrumented to detect data race bugs. See
  8804. <https://github.com/google/sanitizers/wiki#threadsanitizer> for
  8805. more details. The run-time behavior can be influenced using the
  8806. 'TSAN_OPTIONS' environment variable; see
  8807. <https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags>
  8808. for a list of supported options. The option cannot be combined
  8809. with '-fsanitize=address', '-fsanitize=leak' and/or
  8810. '-fcheck-pointer-bounds'.
  8811. Note that sanitized atomic builtins cannot throw exceptions when
  8812. operating on invalid memory addresses with non-call exceptions
  8813. ('-fnon-call-exceptions').
  8814. '-fsanitize=leak'
  8815. Enable LeakSanitizer, a memory leak detector. This option only
  8816. matters for linking of executables and the executable is linked
  8817. against a library that overrides 'malloc' and other allocator
  8818. functions. See
  8819. <https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer>
  8820. for more details. The run-time behavior can be influenced using
  8821. the 'LSAN_OPTIONS' environment variable. The option cannot be
  8822. combined with '-fsanitize=thread'.
  8823. '-fsanitize=undefined'
  8824. Enable UndefinedBehaviorSanitizer, a fast undefined behavior
  8825. detector. Various computations are instrumented to detect
  8826. undefined behavior at runtime. Current suboptions are:
  8827. '-fsanitize=shift'
  8828. This option enables checking that the result of a shift
  8829. operation is not undefined. Note that what exactly is
  8830. considered undefined differs slightly between C and C++, as
  8831. well as between ISO C90 and C99, etc. This option has two
  8832. suboptions, '-fsanitize=shift-base' and
  8833. '-fsanitize=shift-exponent'.
  8834. '-fsanitize=shift-exponent'
  8835. This option enables checking that the second argument of a
  8836. shift operation is not negative and is smaller than the
  8837. precision of the promoted first argument.
  8838. '-fsanitize=shift-base'
  8839. If the second argument of a shift operation is within range,
  8840. check that the result of a shift operation is not undefined.
  8841. Note that what exactly is considered undefined differs
  8842. slightly between C and C++, as well as between ISO C90 and
  8843. C99, etc.
  8844. '-fsanitize=integer-divide-by-zero'
  8845. Detect integer division by zero as well as 'INT_MIN / -1'
  8846. division.
  8847. '-fsanitize=unreachable'
  8848. With this option, the compiler turns the
  8849. '__builtin_unreachable' call into a diagnostics message call
  8850. instead. When reaching the '__builtin_unreachable' call, the
  8851. behavior is undefined.
  8852. '-fsanitize=vla-bound'
  8853. This option instructs the compiler to check that the size of a
  8854. variable length array is positive.
  8855. '-fsanitize=null'
  8856. This option enables pointer checking. Particularly, the
  8857. application built with this option turned on will issue an
  8858. error message when it tries to dereference a NULL pointer, or
  8859. if a reference (possibly an rvalue reference) is bound to a
  8860. NULL pointer, or if a method is invoked on an object pointed
  8861. by a NULL pointer.
  8862. '-fsanitize=return'
  8863. This option enables return statement checking. Programs built
  8864. with this option turned on will issue an error message when
  8865. the end of a non-void function is reached without actually
  8866. returning a value. This option works in C++ only.
  8867. '-fsanitize=signed-integer-overflow'
  8868. This option enables signed integer overflow checking. We
  8869. check that the result of '+', '*', and both unary and binary
  8870. '-' does not overflow in the signed arithmetics. Note,
  8871. integer promotion rules must be taken into account. That is,
  8872. the following is not an overflow:
  8873. signed char a = SCHAR_MAX;
  8874. a++;
  8875. '-fsanitize=bounds'
  8876. This option enables instrumentation of array bounds. Various
  8877. out of bounds accesses are detected. Flexible array members,
  8878. flexible array member-like arrays, and initializers of
  8879. variables with static storage are not instrumented. The
  8880. option cannot be combined with '-fcheck-pointer-bounds'.
  8881. '-fsanitize=bounds-strict'
  8882. This option enables strict instrumentation of array bounds.
  8883. Most out of bounds accesses are detected, including flexible
  8884. array members and flexible array member-like arrays.
  8885. Initializers of variables with static storage are not
  8886. instrumented. The option cannot be combined with
  8887. '-fcheck-pointer-bounds'.
  8888. '-fsanitize=alignment'
  8889. This option enables checking of alignment of pointers when
  8890. they are dereferenced, or when a reference is bound to
  8891. insufficiently aligned target, or when a method or constructor
  8892. is invoked on insufficiently aligned object.
  8893. '-fsanitize=object-size'
  8894. This option enables instrumentation of memory references using
  8895. the '__builtin_object_size' function. Various out of bounds
  8896. pointer accesses are detected.
  8897. '-fsanitize=float-divide-by-zero'
  8898. Detect floating-point division by zero. Unlike other similar
  8899. options, '-fsanitize=float-divide-by-zero' is not enabled by
  8900. '-fsanitize=undefined', since floating-point division by zero
  8901. can be a legitimate way of obtaining infinities and NaNs.
  8902. '-fsanitize=float-cast-overflow'
  8903. This option enables floating-point type to integer conversion
  8904. checking. We check that the result of the conversion does not
  8905. overflow. Unlike other similar options,
  8906. '-fsanitize=float-cast-overflow' is not enabled by
  8907. '-fsanitize=undefined'. This option does not work well with
  8908. 'FE_INVALID' exceptions enabled.
  8909. '-fsanitize=nonnull-attribute'
  8910. This option enables instrumentation of calls, checking whether
  8911. null values are not passed to arguments marked as requiring a
  8912. non-null value by the 'nonnull' function attribute.
  8913. '-fsanitize=returns-nonnull-attribute'
  8914. This option enables instrumentation of return statements in
  8915. functions marked with 'returns_nonnull' function attribute, to
  8916. detect returning of null values from such functions.
  8917. '-fsanitize=bool'
  8918. This option enables instrumentation of loads from bool. If a
  8919. value other than 0/1 is loaded, a run-time error is issued.
  8920. '-fsanitize=enum'
  8921. This option enables instrumentation of loads from an enum
  8922. type. If a value outside the range of values for the enum
  8923. type is loaded, a run-time error is issued.
  8924. '-fsanitize=vptr'
  8925. This option enables instrumentation of C++ member function
  8926. calls, member accesses and some conversions between pointers
  8927. to base and derived classes, to verify the referenced object
  8928. has the correct dynamic type.
  8929. '-fsanitize=pointer-overflow'
  8930. This option enables instrumentation of pointer arithmetics.
  8931. If the pointer arithmetics overflows, a run-time error is
  8932. issued.
  8933. '-fsanitize=builtin'
  8934. This option enables instrumentation of arguments to selected
  8935. builtin functions. If an invalid value is passed to such
  8936. arguments, a run-time error is issued. E.g. passing 0 as the
  8937. argument to '__builtin_ctz' or '__builtin_clz' invokes
  8938. undefined behavior and is diagnosed by this option.
  8939. While '-ftrapv' causes traps for signed overflows to be emitted,
  8940. '-fsanitize=undefined' gives a diagnostic message. This currently
  8941. works only for the C family of languages.
  8942. '-fno-sanitize=all'
  8943. This option disables all previously enabled sanitizers.
  8944. '-fsanitize=all' is not allowed, as some sanitizers cannot be used
  8945. together.
  8946. '-fasan-shadow-offset=NUMBER'
  8947. This option forces GCC to use custom shadow offset in
  8948. AddressSanitizer checks. It is useful for experimenting with
  8949. different shadow memory layouts in Kernel AddressSanitizer.
  8950. '-fsanitize-sections=S1,S2,...'
  8951. Sanitize global variables in selected user-defined sections. SI
  8952. may contain wildcards.
  8953. '-fsanitize-recover[=OPTS]'
  8954. '-fsanitize-recover=' controls error recovery mode for sanitizers
  8955. mentioned in comma-separated list of OPTS. Enabling this option
  8956. for a sanitizer component causes it to attempt to continue running
  8957. the program as if no error happened. This means multiple runtime
  8958. errors can be reported in a single program run, and the exit code
  8959. of the program may indicate success even when errors have been
  8960. reported. The '-fno-sanitize-recover=' option can be used to alter
  8961. this behavior: only the first detected error is reported and
  8962. program then exits with a non-zero exit code.
  8963. Currently this feature only works for '-fsanitize=undefined' (and
  8964. its suboptions except for '-fsanitize=unreachable' and
  8965. '-fsanitize=return'), '-fsanitize=float-cast-overflow',
  8966. '-fsanitize=float-divide-by-zero', '-fsanitize=bounds-strict',
  8967. '-fsanitize=kernel-address' and '-fsanitize=address'. For these
  8968. sanitizers error recovery is turned on by default, except
  8969. '-fsanitize=address', for which this feature is experimental.
  8970. '-fsanitize-recover=all' and '-fno-sanitize-recover=all' is also
  8971. accepted, the former enables recovery for all sanitizers that
  8972. support it, the latter disables recovery for all sanitizers that
  8973. support it.
  8974. Even if a recovery mode is turned on the compiler side, it needs to
  8975. be also enabled on the runtime library side, otherwise the failures
  8976. are still fatal. The runtime library defaults to 'halt_on_error=0'
  8977. for ThreadSanitizer and UndefinedBehaviorSanitizer, while default
  8978. value for AddressSanitizer is 'halt_on_error=1'. This can be
  8979. overridden through setting the 'halt_on_error' flag in the
  8980. corresponding environment variable.
  8981. Syntax without an explicit OPTS parameter is deprecated. It is
  8982. equivalent to specifying an OPTS list of:
  8983. undefined,float-cast-overflow,float-divide-by-zero,bounds-strict
  8984. '-fsanitize-address-use-after-scope'
  8985. Enable sanitization of local variables to detect use-after-scope
  8986. bugs. The option sets '-fstack-reuse' to 'none'.
  8987. '-fsanitize-undefined-trap-on-error'
  8988. The '-fsanitize-undefined-trap-on-error' option instructs the
  8989. compiler to report undefined behavior using '__builtin_trap' rather
  8990. than a 'libubsan' library routine. The advantage of this is that
  8991. the 'libubsan' library is not needed and is not linked in, so this
  8992. is usable even in freestanding environments.
  8993. '-fsanitize-coverage=trace-pc'
  8994. Enable coverage-guided fuzzing code instrumentation. Inserts a
  8995. call to '__sanitizer_cov_trace_pc' into every basic block.
  8996. '-fsanitize-coverage=trace-cmp'
  8997. Enable dataflow guided fuzzing code instrumentation. Inserts a
  8998. call to '__sanitizer_cov_trace_cmp1', '__sanitizer_cov_trace_cmp2',
  8999. '__sanitizer_cov_trace_cmp4' or '__sanitizer_cov_trace_cmp8' for
  9000. integral comparison with both operands variable or
  9001. '__sanitizer_cov_trace_const_cmp1',
  9002. '__sanitizer_cov_trace_const_cmp2',
  9003. '__sanitizer_cov_trace_const_cmp4' or
  9004. '__sanitizer_cov_trace_const_cmp8' for integral comparison with one
  9005. operand constant, '__sanitizer_cov_trace_cmpf' or
  9006. '__sanitizer_cov_trace_cmpd' for float or double comparisons and
  9007. '__sanitizer_cov_trace_switch' for switch statements.
  9008. '-fbounds-check'
  9009. For front ends that support it, generate additional code to check
  9010. that indices used to access arrays are within the declared range.
  9011. This is currently only supported by the Fortran front end, where
  9012. this option defaults to false.
  9013. '-fcheck-pointer-bounds'
  9014. Enable Pointer Bounds Checker instrumentation. Each memory
  9015. reference is instrumented with checks of the pointer used for
  9016. memory access against bounds associated with that pointer.
  9017. Currently there is only an implementation for Intel MPX available,
  9018. thus x86 GNU/Linux target and '-mmpx' are required to enable this
  9019. feature. MPX-based instrumentation requires a runtime library to
  9020. enable MPX in hardware and handle bounds violation signals. By
  9021. default when '-fcheck-pointer-bounds' and '-mmpx' options are used
  9022. to link a program, the GCC driver links against the 'libmpx' and
  9023. 'libmpxwrappers' libraries. Bounds checking on calls to dynamic
  9024. libraries requires a linker with '-z bndplt' support; if GCC was
  9025. configured with a linker without support for this option (including
  9026. the Gold linker and older versions of ld), a warning is given if
  9027. you link with '-mmpx' without also specifying '-static', since the
  9028. overall effectiveness of the bounds checking protection is reduced.
  9029. See also '-static-libmpxwrappers'.
  9030. MPX-based instrumentation may be used for debugging and also may be
  9031. included in production code to increase program security.
  9032. Depending on usage, you may have different requirements for the
  9033. runtime library. The current version of the MPX runtime library is
  9034. more oriented for use as a debugging tool. MPX runtime library
  9035. usage implies '-lpthread'. See also '-static-libmpx'. The runtime
  9036. library behavior can be influenced using various 'CHKP_RT_*'
  9037. environment variables. See
  9038. <https://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler>
  9039. for more details.
  9040. Generated instrumentation may be controlled by various '-fchkp-*'
  9041. options and by the 'bnd_variable_size' structure field attribute
  9042. (*note Type Attributes::) and 'bnd_legacy', and 'bnd_instrument'
  9043. function attributes (*note Function Attributes::). GCC also
  9044. provides a number of built-in functions for controlling the Pointer
  9045. Bounds Checker. *Note Pointer Bounds Checker builtins::, for more
  9046. information.
  9047. '-fchkp-check-incomplete-type'
  9048. Generate pointer bounds checks for variables with incomplete type.
  9049. Enabled by default.
  9050. '-fchkp-narrow-bounds'
  9051. Controls bounds used by Pointer Bounds Checker for pointers to
  9052. object fields. If narrowing is enabled then field bounds are used.
  9053. Otherwise object bounds are used. See also
  9054. '-fchkp-narrow-to-innermost-array' and
  9055. '-fchkp-first-field-has-own-bounds'. Enabled by default.
  9056. '-fchkp-first-field-has-own-bounds'
  9057. Forces Pointer Bounds Checker to use narrowed bounds for the
  9058. address of the first field in the structure. By default a pointer
  9059. to the first field has the same bounds as a pointer to the whole
  9060. structure.
  9061. '-fchkp-flexible-struct-trailing-arrays'
  9062. Forces Pointer Bounds Checker to treat all trailing arrays in
  9063. structures as possibly flexible. By default only array fields with
  9064. zero length or that are marked with attribute bnd_variable_size are
  9065. treated as flexible.
  9066. '-fchkp-narrow-to-innermost-array'
  9067. Forces Pointer Bounds Checker to use bounds of the innermost arrays
  9068. in case of nested static array access. By default this option is
  9069. disabled and bounds of the outermost array are used.
  9070. '-fchkp-optimize'
  9071. Enables Pointer Bounds Checker optimizations. Enabled by default
  9072. at optimization levels '-O', '-O2', '-O3'.
  9073. '-fchkp-use-fast-string-functions'
  9074. Enables use of '*_nobnd' versions of string functions (not copying
  9075. bounds) by Pointer Bounds Checker. Disabled by default.
  9076. '-fchkp-use-nochk-string-functions'
  9077. Enables use of '*_nochk' versions of string functions (not checking
  9078. bounds) by Pointer Bounds Checker. Disabled by default.
  9079. '-fchkp-use-static-bounds'
  9080. Allow Pointer Bounds Checker to generate static bounds holding
  9081. bounds of static variables. Enabled by default.
  9082. '-fchkp-use-static-const-bounds'
  9083. Use statically-initialized bounds for constant bounds instead of
  9084. generating them each time they are required. By default enabled
  9085. when '-fchkp-use-static-bounds' is enabled.
  9086. '-fchkp-treat-zero-dynamic-size-as-infinite'
  9087. With this option, objects with incomplete type whose
  9088. dynamically-obtained size is zero are treated as having infinite
  9089. size instead by Pointer Bounds Checker. This option may be helpful
  9090. if a program is linked with a library missing size information for
  9091. some symbols. Disabled by default.
  9092. '-fchkp-check-read'
  9093. Instructs Pointer Bounds Checker to generate checks for all read
  9094. accesses to memory. Enabled by default.
  9095. '-fchkp-check-write'
  9096. Instructs Pointer Bounds Checker to generate checks for all write
  9097. accesses to memory. Enabled by default.
  9098. '-fchkp-store-bounds'
  9099. Instructs Pointer Bounds Checker to generate bounds stores for
  9100. pointer writes. Enabled by default.
  9101. '-fchkp-instrument-calls'
  9102. Instructs Pointer Bounds Checker to pass pointer bounds to calls.
  9103. Enabled by default.
  9104. '-fchkp-instrument-marked-only'
  9105. Instructs Pointer Bounds Checker to instrument only functions
  9106. marked with the 'bnd_instrument' attribute (*note Function
  9107. Attributes::). Disabled by default.
  9108. '-fchkp-use-wrappers'
  9109. Allows Pointer Bounds Checker to replace calls to built-in
  9110. functions with calls to wrapper functions. When
  9111. '-fchkp-use-wrappers' is used to link a program, the GCC driver
  9112. automatically links against 'libmpxwrappers'. See also
  9113. '-static-libmpxwrappers'. Enabled by default.
  9114. '-fcf-protection=[full|branch|return|none]'
  9115. Enable code instrumentation of control-flow transfers to increase
  9116. program security by checking that target addresses of control-flow
  9117. transfer instructions (such as indirect function call, function
  9118. return, indirect jump) are valid. This prevents diverting the flow
  9119. of control to an unexpected target. This is intended to protect
  9120. against such threats as Return-oriented Programming (ROP), and
  9121. similarly call/jmp-oriented programming (COP/JOP).
  9122. The value 'branch' tells the compiler to implement checking of
  9123. validity of control-flow transfer at the point of indirect branch
  9124. instructions, i.e. call/jmp instructions. The value 'return'
  9125. implements checking of validity at the point of returning from a
  9126. function. The value 'full' is an alias for specifying both
  9127. 'branch' and 'return'. The value 'none' turns off instrumentation.
  9128. The macro '__CET__' is defined when '-fcf-protection' is used. The
  9129. first bit of '__CET__' is set to 1 for the value 'branch' and the
  9130. second bit of '__CET__' is set to 1 for the 'return'.
  9131. You can also use the 'nocf_check' attribute to identify which
  9132. functions and calls should be skipped from instrumentation (*note
  9133. Function Attributes::).
  9134. Currently the x86 GNU/Linux target provides an implementation based
  9135. on Intel Control-flow Enforcement Technology (CET).
  9136. '-fstack-protector'
  9137. Emit extra code to check for buffer overflows, such as stack
  9138. smashing attacks. This is done by adding a guard variable to
  9139. functions with vulnerable objects. This includes functions that
  9140. call 'alloca', and functions with buffers larger than 8 bytes. The
  9141. guards are initialized when a function is entered and then checked
  9142. when the function exits. If a guard check fails, an error message
  9143. is printed and the program exits.
  9144. '-fstack-protector-all'
  9145. Like '-fstack-protector' except that all functions are protected.
  9146. '-fstack-protector-strong'
  9147. Like '-fstack-protector' but includes additional functions to be
  9148. protected -- those that have local array definitions, or have
  9149. references to local frame addresses.
  9150. '-fstack-protector-explicit'
  9151. Like '-fstack-protector' but only protects those functions which
  9152. have the 'stack_protect' attribute.
  9153. '-fstack-check'
  9154. Generate code to verify that you do not go beyond the boundary of
  9155. the stack. You should specify this flag if you are running in an
  9156. environment with multiple threads, but you only rarely need to
  9157. specify it in a single-threaded environment since stack overflow is
  9158. automatically detected on nearly all systems if there is only one
  9159. stack.
  9160. Note that this switch does not actually cause checking to be done;
  9161. the operating system or the language runtime must do that. The
  9162. switch causes generation of code to ensure that they see the stack
  9163. being extended.
  9164. You can additionally specify a string parameter: 'no' means no
  9165. checking, 'generic' means force the use of old-style checking,
  9166. 'specific' means use the best checking method and is equivalent to
  9167. bare '-fstack-check'.
  9168. Old-style checking is a generic mechanism that requires no specific
  9169. target support in the compiler but comes with the following
  9170. drawbacks:
  9171. 1. Modified allocation strategy for large objects: they are
  9172. always allocated dynamically if their size exceeds a fixed
  9173. threshold. Note this may change the semantics of some code.
  9174. 2. Fixed limit on the size of the static frame of functions: when
  9175. it is topped by a particular function, stack checking is not
  9176. reliable and a warning is issued by the compiler.
  9177. 3. Inefficiency: because of both the modified allocation strategy
  9178. and the generic implementation, code performance is hampered.
  9179. Note that old-style stack checking is also the fallback method for
  9180. 'specific' if no target support has been added in the compiler.
  9181. '-fstack-check=' is designed for Ada's needs to detect infinite
  9182. recursion and stack overflows. 'specific' is an excellent choice
  9183. when compiling Ada code. It is not generally sufficient to protect
  9184. against stack-clash attacks. To protect against those you want
  9185. '-fstack-clash-protection'.
  9186. '-fstack-clash-protection'
  9187. Generate code to prevent stack clash style attacks. When this
  9188. option is enabled, the compiler will only allocate one page of
  9189. stack space at a time and each page is accessed immediately after
  9190. allocation. Thus, it prevents allocations from jumping over any
  9191. stack guard page provided by the operating system.
  9192. Most targets do not fully support stack clash protection. However,
  9193. on those targets '-fstack-clash-protection' will protect dynamic
  9194. stack allocations. '-fstack-clash-protection' may also provide
  9195. limited protection for static stack allocations if the target
  9196. supports '-fstack-check=specific'.
  9197. '-fstack-limit-register=REG'
  9198. '-fstack-limit-symbol=SYM'
  9199. '-fno-stack-limit'
  9200. Generate code to ensure that the stack does not grow beyond a
  9201. certain value, either the value of a register or the address of a
  9202. symbol. If a larger stack is required, a signal is raised at run
  9203. time. For most targets, the signal is raised before the stack
  9204. overruns the boundary, so it is possible to catch the signal
  9205. without taking special precautions.
  9206. For instance, if the stack starts at absolute address '0x80000000'
  9207. and grows downwards, you can use the flags
  9208. '-fstack-limit-symbol=__stack_limit' and
  9209. '-Wl,--defsym,__stack_limit=0x7ffe0000' to enforce a stack limit of
  9210. 128KB. Note that this may only work with the GNU linker.
  9211. You can locally override stack limit checking by using the
  9212. 'no_stack_limit' function attribute (*note Function Attributes::).
  9213. '-fsplit-stack'
  9214. Generate code to automatically split the stack before it overflows.
  9215. The resulting program has a discontiguous stack which can only
  9216. overflow if the program is unable to allocate any more memory.
  9217. This is most useful when running threaded programs, as it is no
  9218. longer necessary to calculate a good stack size to use for each
  9219. thread. This is currently only implemented for the x86 targets
  9220. running GNU/Linux.
  9221. When code compiled with '-fsplit-stack' calls code compiled without
  9222. '-fsplit-stack', there may not be much stack space available for
  9223. the latter code to run. If compiling all code, including library
  9224. code, with '-fsplit-stack' is not an option, then the linker can
  9225. fix up these calls so that the code compiled without
  9226. '-fsplit-stack' always has a large stack. Support for this is
  9227. implemented in the gold linker in GNU binutils release 2.21 and
  9228. later.
  9229. '-fvtable-verify=[std|preinit|none]'
  9230. This option is only available when compiling C++ code. It turns on
  9231. (or off, if using '-fvtable-verify=none') the security feature that
  9232. verifies at run time, for every virtual call, that the vtable
  9233. pointer through which the call is made is valid for the type of the
  9234. object, and has not been corrupted or overwritten. If an invalid
  9235. vtable pointer is detected at run time, an error is reported and
  9236. execution of the program is immediately halted.
  9237. This option causes run-time data structures to be built at program
  9238. startup, which are used for verifying the vtable pointers. The
  9239. options 'std' and 'preinit' control the timing of when these data
  9240. structures are built. In both cases the data structures are built
  9241. before execution reaches 'main'. Using '-fvtable-verify=std'
  9242. causes the data structures to be built after shared libraries have
  9243. been loaded and initialized. '-fvtable-verify=preinit' causes them
  9244. to be built before shared libraries have been loaded and
  9245. initialized.
  9246. If this option appears multiple times in the command line with
  9247. different values specified, 'none' takes highest priority over both
  9248. 'std' and 'preinit'; 'preinit' takes priority over 'std'.
  9249. '-fvtv-debug'
  9250. When used in conjunction with '-fvtable-verify=std' or
  9251. '-fvtable-verify=preinit', causes debug versions of the runtime
  9252. functions for the vtable verification feature to be called. This
  9253. flag also causes the compiler to log information about which vtable
  9254. pointers it finds for each class. This information is written to a
  9255. file named 'vtv_set_ptr_data.log' in the directory named by the
  9256. environment variable 'VTV_LOGS_DIR' if that is defined or the
  9257. current working directory otherwise.
  9258. Note: This feature _appends_ data to the log file. If you want a
  9259. fresh log file, be sure to delete any existing one.
  9260. '-fvtv-counts'
  9261. This is a debugging flag. When used in conjunction with
  9262. '-fvtable-verify=std' or '-fvtable-verify=preinit', this causes the
  9263. compiler to keep track of the total number of virtual calls it
  9264. encounters and the number of verifications it inserts. It also
  9265. counts the number of calls to certain run-time library functions
  9266. that it inserts and logs this information for each compilation
  9267. unit. The compiler writes this information to a file named
  9268. 'vtv_count_data.log' in the directory named by the environment
  9269. variable 'VTV_LOGS_DIR' if that is defined or the current working
  9270. directory otherwise. It also counts the size of the vtable pointer
  9271. sets for each class, and writes this information to
  9272. 'vtv_class_set_sizes.log' in the same directory.
  9273. Note: This feature _appends_ data to the log files. To get fresh
  9274. log files, be sure to delete any existing ones.
  9275. '-finstrument-functions'
  9276. Generate instrumentation calls for entry and exit to functions.
  9277. Just after function entry and just before function exit, the
  9278. following profiling functions are called with the address of the
  9279. current function and its call site. (On some platforms,
  9280. '__builtin_return_address' does not work beyond the current
  9281. function, so the call site information may not be available to the
  9282. profiling functions otherwise.)
  9283. void __cyg_profile_func_enter (void *this_fn,
  9284. void *call_site);
  9285. void __cyg_profile_func_exit (void *this_fn,
  9286. void *call_site);
  9287. The first argument is the address of the start of the current
  9288. function, which may be looked up exactly in the symbol table.
  9289. This instrumentation is also done for functions expanded inline in
  9290. other functions. The profiling calls indicate where, conceptually,
  9291. the inline function is entered and exited. This means that
  9292. addressable versions of such functions must be available. If all
  9293. your uses of a function are expanded inline, this may mean an
  9294. additional expansion of code size. If you use 'extern inline' in
  9295. your C code, an addressable version of such functions must be
  9296. provided. (This is normally the case anyway, but if you get lucky
  9297. and the optimizer always expands the functions inline, you might
  9298. have gotten away without providing static copies.)
  9299. A function may be given the attribute 'no_instrument_function', in
  9300. which case this instrumentation is not done. This can be used, for
  9301. example, for the profiling functions listed above, high-priority
  9302. interrupt routines, and any functions from which the profiling
  9303. functions cannot safely be called (perhaps signal handlers, if the
  9304. profiling routines generate output or allocate memory).
  9305. '-finstrument-functions-exclude-file-list=FILE,FILE,...'
  9306. Set the list of functions that are excluded from instrumentation
  9307. (see the description of '-finstrument-functions'). If the file
  9308. that contains a function definition matches with one of FILE, then
  9309. that function is not instrumented. The match is done on
  9310. substrings: if the FILE parameter is a substring of the file name,
  9311. it is considered to be a match.
  9312. For example:
  9313. -finstrument-functions-exclude-file-list=/bits/stl,include/sys
  9314. excludes any inline function defined in files whose pathnames
  9315. contain '/bits/stl' or 'include/sys'.
  9316. If, for some reason, you want to include letter ',' in one of SYM,
  9317. write '\,'. For example,
  9318. '-finstrument-functions-exclude-file-list='\,\,tmp'' (note the
  9319. single quote surrounding the option).
  9320. '-finstrument-functions-exclude-function-list=SYM,SYM,...'
  9321. This is similar to '-finstrument-functions-exclude-file-list', but
  9322. this option sets the list of function names to be excluded from
  9323. instrumentation. The function name to be matched is its
  9324. user-visible name, such as 'vector<int> blah(const vector<int> &)',
  9325. not the internal mangled name (e.g., '_Z4blahRSt6vectorIiSaIiEE').
  9326. The match is done on substrings: if the SYM parameter is a
  9327. substring of the function name, it is considered to be a match.
  9328. For C99 and C++ extended identifiers, the function name must be
  9329. given in UTF-8, not using universal character names.
  9330. '-fpatchable-function-entry=N[,M]'
  9331. Generate N NOPs right at the beginning of each function, with the
  9332. function entry point before the Mth NOP. If M is omitted, it
  9333. defaults to '0' so the function entry points to the address just at
  9334. the first NOP. The NOP instructions reserve extra space which can
  9335. be used to patch in any desired instrumentation at run time,
  9336. provided that the code segment is writable. The amount of space is
  9337. controllable indirectly via the number of NOPs; the NOP instruction
  9338. used corresponds to the instruction emitted by the internal GCC
  9339. back-end interface 'gen_nop'. This behavior is target-specific and
  9340. may also depend on the architecture variant and/or other
  9341. compilation options.
  9342. For run-time identification, the starting addresses of these areas,
  9343. which correspond to their respective function entries minus M, are
  9344. additionally collected in the '__patchable_function_entries'
  9345. section of the resulting binary.
  9346. Note that the value of '__attribute__ ((patchable_function_entry
  9347. (N,M)))' takes precedence over command-line option
  9348. '-fpatchable-function-entry=N,M'. This can be used to increase the
  9349. area size or to remove it completely on a single function. If
  9350. 'N=0', no pad location is recorded.
  9351. The NOP instructions are inserted at--and maybe before, depending
  9352. on M--the function entry address, even before the prologue.
  9353. 
  9354. File: gcc.info, Node: Preprocessor Options, Next: Assembler Options, Prev: Instrumentation Options, Up: Invoking GCC
  9355. 3.12 Options Controlling the Preprocessor
  9356. =========================================
  9357. These options control the C preprocessor, which is run on each C source
  9358. file before actual compilation.
  9359. If you use the '-E' option, nothing is done except preprocessing. Some
  9360. of these options make sense only together with '-E' because they cause
  9361. the preprocessor output to be unsuitable for actual compilation.
  9362. In addition to the options listed here, there are a number of options
  9363. to control search paths for include files documented in *note Directory
  9364. Options::. Options to control preprocessor diagnostics are listed in
  9365. *note Warning Options::.
  9366. '-D NAME'
  9367. Predefine NAME as a macro, with definition '1'.
  9368. '-D NAME=DEFINITION'
  9369. The contents of DEFINITION are tokenized and processed as if they
  9370. appeared during translation phase three in a '#define' directive.
  9371. In particular, the definition is truncated by embedded newline
  9372. characters.
  9373. If you are invoking the preprocessor from a shell or shell-like
  9374. program you may need to use the shell's quoting syntax to protect
  9375. characters such as spaces that have a meaning in the shell syntax.
  9376. If you wish to define a function-like macro on the command line,
  9377. write its argument list with surrounding parentheses before the
  9378. equals sign (if any). Parentheses are meaningful to most shells,
  9379. so you should quote the option. With 'sh' and 'csh',
  9380. '-D'NAME(ARGS...)=DEFINITION'' works.
  9381. '-D' and '-U' options are processed in the order they are given on
  9382. the command line. All '-imacros FILE' and '-include FILE' options
  9383. are processed after all '-D' and '-U' options.
  9384. '-U NAME'
  9385. Cancel any previous definition of NAME, either built in or provided
  9386. with a '-D' option.
  9387. '-include FILE'
  9388. Process FILE as if '#include "file"' appeared as the first line of
  9389. the primary source file. However, the first directory searched for
  9390. FILE is the preprocessor's working directory _instead of_ the
  9391. directory containing the main source file. If not found there, it
  9392. is searched for in the remainder of the '#include "..."' search
  9393. chain as normal.
  9394. If multiple '-include' options are given, the files are included in
  9395. the order they appear on the command line.
  9396. '-imacros FILE'
  9397. Exactly like '-include', except that any output produced by
  9398. scanning FILE is thrown away. Macros it defines remain defined.
  9399. This allows you to acquire all the macros from a header without
  9400. also processing its declarations.
  9401. All files specified by '-imacros' are processed before all files
  9402. specified by '-include'.
  9403. '-undef'
  9404. Do not predefine any system-specific or GCC-specific macros. The
  9405. standard predefined macros remain defined.
  9406. '-pthread'
  9407. Define additional macros required for using the POSIX threads
  9408. library. You should use this option consistently for both
  9409. compilation and linking. This option is supported on GNU/Linux
  9410. targets, most other Unix derivatives, and also on x86 Cygwin and
  9411. MinGW targets.
  9412. '-M'
  9413. Instead of outputting the result of preprocessing, output a rule
  9414. suitable for 'make' describing the dependencies of the main source
  9415. file. The preprocessor outputs one 'make' rule containing the
  9416. object file name for that source file, a colon, and the names of
  9417. all the included files, including those coming from '-include' or
  9418. '-imacros' command-line options.
  9419. Unless specified explicitly (with '-MT' or '-MQ'), the object file
  9420. name consists of the name of the source file with any suffix
  9421. replaced with object file suffix and with any leading directory
  9422. parts removed. If there are many included files then the rule is
  9423. split into several lines using '\'-newline. The rule has no
  9424. commands.
  9425. This option does not suppress the preprocessor's debug output, such
  9426. as '-dM'. To avoid mixing such debug output with the dependency
  9427. rules you should explicitly specify the dependency output file with
  9428. '-MF', or use an environment variable like 'DEPENDENCIES_OUTPUT'
  9429. (*note Environment Variables::). Debug output is still sent to the
  9430. regular output stream as normal.
  9431. Passing '-M' to the driver implies '-E', and suppresses warnings
  9432. with an implicit '-w'.
  9433. '-MM'
  9434. Like '-M' but do not mention header files that are found in system
  9435. header directories, nor header files that are included, directly or
  9436. indirectly, from such a header.
  9437. This implies that the choice of angle brackets or double quotes in
  9438. an '#include' directive does not in itself determine whether that
  9439. header appears in '-MM' dependency output.
  9440. '-MF FILE'
  9441. When used with '-M' or '-MM', specifies a file to write the
  9442. dependencies to. If no '-MF' switch is given the preprocessor
  9443. sends the rules to the same place it would send preprocessed
  9444. output.
  9445. When used with the driver options '-MD' or '-MMD', '-MF' overrides
  9446. the default dependency output file.
  9447. If FILE is '-', then the dependencies are written to 'stdout'.
  9448. '-MG'
  9449. In conjunction with an option such as '-M' requesting dependency
  9450. generation, '-MG' assumes missing header files are generated files
  9451. and adds them to the dependency list without raising an error. The
  9452. dependency filename is taken directly from the '#include' directive
  9453. without prepending any path. '-MG' also suppresses preprocessed
  9454. output, as a missing header file renders this useless.
  9455. This feature is used in automatic updating of makefiles.
  9456. '-MP'
  9457. This option instructs CPP to add a phony target for each dependency
  9458. other than the main file, causing each to depend on nothing. These
  9459. dummy rules work around errors 'make' gives if you remove header
  9460. files without updating the 'Makefile' to match.
  9461. This is typical output:
  9462. test.o: test.c test.h
  9463. test.h:
  9464. '-MT TARGET'
  9465. Change the target of the rule emitted by dependency generation. By
  9466. default CPP takes the name of the main input file, deletes any
  9467. directory components and any file suffix such as '.c', and appends
  9468. the platform's usual object suffix. The result is the target.
  9469. An '-MT' option sets the target to be exactly the string you
  9470. specify. If you want multiple targets, you can specify them as a
  9471. single argument to '-MT', or use multiple '-MT' options.
  9472. For example, '-MT '$(objpfx)foo.o'' might give
  9473. $(objpfx)foo.o: foo.c
  9474. '-MQ TARGET'
  9475. Same as '-MT', but it quotes any characters which are special to
  9476. Make. '-MQ '$(objpfx)foo.o'' gives
  9477. $$(objpfx)foo.o: foo.c
  9478. The default target is automatically quoted, as if it were given
  9479. with '-MQ'.
  9480. '-MD'
  9481. '-MD' is equivalent to '-M -MF FILE', except that '-E' is not
  9482. implied. The driver determines FILE based on whether an '-o'
  9483. option is given. If it is, the driver uses its argument but with a
  9484. suffix of '.d', otherwise it takes the name of the input file,
  9485. removes any directory components and suffix, and applies a '.d'
  9486. suffix.
  9487. If '-MD' is used in conjunction with '-E', any '-o' switch is
  9488. understood to specify the dependency output file (*note -MF:
  9489. dashMF.), but if used without '-E', each '-o' is understood to
  9490. specify a target object file.
  9491. Since '-E' is not implied, '-MD' can be used to generate a
  9492. dependency output file as a side effect of the compilation process.
  9493. '-MMD'
  9494. Like '-MD' except mention only user header files, not system header
  9495. files.
  9496. '-fpreprocessed'
  9497. Indicate to the preprocessor that the input file has already been
  9498. preprocessed. This suppresses things like macro expansion,
  9499. trigraph conversion, escaped newline splicing, and processing of
  9500. most directives. The preprocessor still recognizes and removes
  9501. comments, so that you can pass a file preprocessed with '-C' to the
  9502. compiler without problems. In this mode the integrated
  9503. preprocessor is little more than a tokenizer for the front ends.
  9504. '-fpreprocessed' is implicit if the input file has one of the
  9505. extensions '.i', '.ii' or '.mi'. These are the extensions that GCC
  9506. uses for preprocessed files created by '-save-temps'.
  9507. '-fdirectives-only'
  9508. When preprocessing, handle directives, but do not expand macros.
  9509. The option's behavior depends on the '-E' and '-fpreprocessed'
  9510. options.
  9511. With '-E', preprocessing is limited to the handling of directives
  9512. such as '#define', '#ifdef', and '#error'. Other preprocessor
  9513. operations, such as macro expansion and trigraph conversion are not
  9514. performed. In addition, the '-dD' option is implicitly enabled.
  9515. With '-fpreprocessed', predefinition of command line and most
  9516. builtin macros is disabled. Macros such as '__LINE__', which are
  9517. contextually dependent, are handled normally. This enables
  9518. compilation of files previously preprocessed with '-E
  9519. -fdirectives-only'.
  9520. With both '-E' and '-fpreprocessed', the rules for '-fpreprocessed'
  9521. take precedence. This enables full preprocessing of files
  9522. previously preprocessed with '-E -fdirectives-only'.
  9523. '-fdollars-in-identifiers'
  9524. Accept '$' in identifiers.
  9525. '-fextended-identifiers'
  9526. Accept universal character names in identifiers. This option is
  9527. enabled by default for C99 (and later C standard versions) and C++.
  9528. '-fno-canonical-system-headers'
  9529. When preprocessing, do not shorten system header paths with
  9530. canonicalization.
  9531. '-ftabstop=WIDTH'
  9532. Set the distance between tab stops. This helps the preprocessor
  9533. report correct column numbers in warnings or errors, even if tabs
  9534. appear on the line. If the value is less than 1 or greater than
  9535. 100, the option is ignored. The default is 8.
  9536. '-ftrack-macro-expansion[=LEVEL]'
  9537. Track locations of tokens across macro expansions. This allows the
  9538. compiler to emit diagnostic about the current macro expansion stack
  9539. when a compilation error occurs in a macro expansion. Using this
  9540. option makes the preprocessor and the compiler consume more memory.
  9541. The LEVEL parameter can be used to choose the level of precision of
  9542. token location tracking thus decreasing the memory consumption if
  9543. necessary. Value '0' of LEVEL de-activates this option. Value '1'
  9544. tracks tokens locations in a degraded mode for the sake of minimal
  9545. memory overhead. In this mode all tokens resulting from the
  9546. expansion of an argument of a function-like macro have the same
  9547. location. Value '2' tracks tokens locations completely. This
  9548. value is the most memory hungry. When this option is given no
  9549. argument, the default parameter value is '2'.
  9550. Note that '-ftrack-macro-expansion=2' is activated by default.
  9551. '-fmacro-prefix-map=OLD=NEW'
  9552. When preprocessing files residing in directory 'OLD', expand the
  9553. '__FILE__' and '__BASE_FILE__' macros as if the files resided in
  9554. directory 'NEW' instead. This can be used to change an absolute
  9555. path to a relative path by using '.' for NEW which can result in
  9556. more reproducible builds that are location independent. This
  9557. option also affects '__builtin_FILE()' during compilation. See
  9558. also '-ffile-prefix-map'.
  9559. '-fexec-charset=CHARSET'
  9560. Set the execution character set, used for string and character
  9561. constants. The default is UTF-8. CHARSET can be any encoding
  9562. supported by the system's 'iconv' library routine.
  9563. '-fwide-exec-charset=CHARSET'
  9564. Set the wide execution character set, used for wide string and
  9565. character constants. The default is UTF-32 or UTF-16, whichever
  9566. corresponds to the width of 'wchar_t'. As with '-fexec-charset',
  9567. CHARSET can be any encoding supported by the system's 'iconv'
  9568. library routine; however, you will have problems with encodings
  9569. that do not fit exactly in 'wchar_t'.
  9570. '-finput-charset=CHARSET'
  9571. Set the input character set, used for translation from the
  9572. character set of the input file to the source character set used by
  9573. GCC. If the locale does not specify, or GCC cannot get this
  9574. information from the locale, the default is UTF-8. This can be
  9575. overridden by either the locale or this command-line option.
  9576. Currently the command-line option takes precedence if there's a
  9577. conflict. CHARSET can be any encoding supported by the system's
  9578. 'iconv' library routine.
  9579. '-fpch-deps'
  9580. When using precompiled headers (*note Precompiled Headers::), this
  9581. flag causes the dependency-output flags to also list the files from
  9582. the precompiled header's dependencies. If not specified, only the
  9583. precompiled header are listed and not the files that were used to
  9584. create it, because those files are not consulted when a precompiled
  9585. header is used.
  9586. '-fpch-preprocess'
  9587. This option allows use of a precompiled header (*note Precompiled
  9588. Headers::) together with '-E'. It inserts a special '#pragma',
  9589. '#pragma GCC pch_preprocess "FILENAME"' in the output to mark the
  9590. place where the precompiled header was found, and its FILENAME.
  9591. When '-fpreprocessed' is in use, GCC recognizes this '#pragma' and
  9592. loads the PCH.
  9593. This option is off by default, because the resulting preprocessed
  9594. output is only really suitable as input to GCC. It is switched on
  9595. by '-save-temps'.
  9596. You should not write this '#pragma' in your own code, but it is
  9597. safe to edit the filename if the PCH file is available in a
  9598. different location. The filename may be absolute or it may be
  9599. relative to GCC's current directory.
  9600. '-fworking-directory'
  9601. Enable generation of linemarkers in the preprocessor output that
  9602. let the compiler know the current working directory at the time of
  9603. preprocessing. When this option is enabled, the preprocessor
  9604. emits, after the initial linemarker, a second linemarker with the
  9605. current working directory followed by two slashes. GCC uses this
  9606. directory, when it's present in the preprocessed input, as the
  9607. directory emitted as the current working directory in some
  9608. debugging information formats. This option is implicitly enabled
  9609. if debugging information is enabled, but this can be inhibited with
  9610. the negated form '-fno-working-directory'. If the '-P' flag is
  9611. present in the command line, this option has no effect, since no
  9612. '#line' directives are emitted whatsoever.
  9613. '-A PREDICATE=ANSWER'
  9614. Make an assertion with the predicate PREDICATE and answer ANSWER.
  9615. This form is preferred to the older form '-A PREDICATE(ANSWER)',
  9616. which is still supported, because it does not use shell special
  9617. characters.
  9618. '-A -PREDICATE=ANSWER'
  9619. Cancel an assertion with the predicate PREDICATE and answer ANSWER.
  9620. '-C'
  9621. Do not discard comments. All comments are passed through to the
  9622. output file, except for comments in processed directives, which are
  9623. deleted along with the directive.
  9624. You should be prepared for side effects when using '-C'; it causes
  9625. the preprocessor to treat comments as tokens in their own right.
  9626. For example, comments appearing at the start of what would be a
  9627. directive line have the effect of turning that line into an
  9628. ordinary source line, since the first token on the line is no
  9629. longer a '#'.
  9630. '-CC'
  9631. Do not discard comments, including during macro expansion. This is
  9632. like '-C', except that comments contained within macros are also
  9633. passed through to the output file where the macro is expanded.
  9634. In addition to the side effects of the '-C' option, the '-CC'
  9635. option causes all C++-style comments inside a macro to be converted
  9636. to C-style comments. This is to prevent later use of that macro
  9637. from inadvertently commenting out the remainder of the source line.
  9638. The '-CC' option is generally used to support lint comments.
  9639. '-P'
  9640. Inhibit generation of linemarkers in the output from the
  9641. preprocessor. This might be useful when running the preprocessor
  9642. on something that is not C code, and will be sent to a program
  9643. which might be confused by the linemarkers.
  9644. '-traditional'
  9645. '-traditional-cpp'
  9646. Try to imitate the behavior of pre-standard C preprocessors, as
  9647. opposed to ISO C preprocessors. See the GNU CPP manual for
  9648. details.
  9649. Note that GCC does not otherwise attempt to emulate a pre-standard
  9650. C compiler, and these options are only supported with the '-E'
  9651. switch, or when invoking CPP explicitly.
  9652. '-trigraphs'
  9653. Support ISO C trigraphs. These are three-character sequences, all
  9654. starting with '??', that are defined by ISO C to stand for single
  9655. characters. For example, '??/' stands for '\', so ''??/n'' is a
  9656. character constant for a newline.
  9657. The nine trigraphs and their replacements are
  9658. Trigraph: ??( ??) ??< ??> ??= ??/ ??' ??! ??-
  9659. Replacement: [ ] { } # \ ^ | ~
  9660. By default, GCC ignores trigraphs, but in standard-conforming modes
  9661. it converts them. See the '-std' and '-ansi' options.
  9662. '-remap'
  9663. Enable special code to work around file systems which only permit
  9664. very short file names, such as MS-DOS.
  9665. '-H'
  9666. Print the name of each header file used, in addition to other
  9667. normal activities. Each name is indented to show how deep in the
  9668. '#include' stack it is. Precompiled header files are also printed,
  9669. even if they are found to be invalid; an invalid precompiled header
  9670. file is printed with '...x' and a valid one with '...!' .
  9671. '-dLETTERS'
  9672. Says to make debugging dumps during compilation as specified by
  9673. LETTERS. The flags documented here are those relevant to the
  9674. preprocessor. Other LETTERS are interpreted by the compiler
  9675. proper, or reserved for future versions of GCC, and so are silently
  9676. ignored. If you specify LETTERS whose behavior conflicts, the
  9677. result is undefined. *Note Developer Options::, for more
  9678. information.
  9679. '-dM'
  9680. Instead of the normal output, generate a list of '#define'
  9681. directives for all the macros defined during the execution of
  9682. the preprocessor, including predefined macros. This gives you
  9683. a way of finding out what is predefined in your version of the
  9684. preprocessor. Assuming you have no file 'foo.h', the command
  9685. touch foo.h; cpp -dM foo.h
  9686. shows all the predefined macros.
  9687. If you use '-dM' without the '-E' option, '-dM' is interpreted
  9688. as a synonym for '-fdump-rtl-mach'. *Note (gcc)Developer
  9689. Options::.
  9690. '-dD'
  9691. Like '-dM' except in two respects: it does _not_ include the
  9692. predefined macros, and it outputs _both_ the '#define'
  9693. directives and the result of preprocessing. Both kinds of
  9694. output go to the standard output file.
  9695. '-dN'
  9696. Like '-dD', but emit only the macro names, not their
  9697. expansions.
  9698. '-dI'
  9699. Output '#include' directives in addition to the result of
  9700. preprocessing.
  9701. '-dU'
  9702. Like '-dD' except that only macros that are expanded, or whose
  9703. definedness is tested in preprocessor directives, are output;
  9704. the output is delayed until the use or test of the macro; and
  9705. '#undef' directives are also output for macros tested but
  9706. undefined at the time.
  9707. '-fdebug-cpp'
  9708. This option is only useful for debugging GCC. When used from CPP or
  9709. with '-E', it dumps debugging information about location maps.
  9710. Every token in the output is preceded by the dump of the map its
  9711. location belongs to.
  9712. When used from GCC without '-E', this option has no effect.
  9713. '-Wp,OPTION'
  9714. You can use '-Wp,OPTION' to bypass the compiler driver and pass
  9715. OPTION directly through to the preprocessor. If OPTION contains
  9716. commas, it is split into multiple options at the commas. However,
  9717. many options are modified, translated or interpreted by the
  9718. compiler driver before being passed to the preprocessor, and '-Wp'
  9719. forcibly bypasses this phase. The preprocessor's direct interface
  9720. is undocumented and subject to change, so whenever possible you
  9721. should avoid using '-Wp' and let the driver handle the options
  9722. instead.
  9723. '-Xpreprocessor OPTION'
  9724. Pass OPTION as an option to the preprocessor. You can use this to
  9725. supply system-specific preprocessor options that GCC does not
  9726. recognize.
  9727. If you want to pass an option that takes an argument, you must use
  9728. '-Xpreprocessor' twice, once for the option and once for the
  9729. argument.
  9730. '-no-integrated-cpp'
  9731. Perform preprocessing as a separate pass before compilation. By
  9732. default, GCC performs preprocessing as an integrated part of input
  9733. tokenization and parsing. If this option is provided, the
  9734. appropriate language front end ('cc1', 'cc1plus', or 'cc1obj' for
  9735. C, C++, and Objective-C, respectively) is instead invoked twice,
  9736. once for preprocessing only and once for actual compilation of the
  9737. preprocessed input. This option may be useful in conjunction with
  9738. the '-B' or '-wrapper' options to specify an alternate preprocessor
  9739. or perform additional processing of the program source between
  9740. normal preprocessing and compilation.
  9741. 
  9742. File: gcc.info, Node: Assembler Options, Next: Link Options, Prev: Preprocessor Options, Up: Invoking GCC
  9743. 3.13 Passing Options to the Assembler
  9744. =====================================
  9745. You can pass options to the assembler.
  9746. '-Wa,OPTION'
  9747. Pass OPTION as an option to the assembler. If OPTION contains
  9748. commas, it is split into multiple options at the commas.
  9749. '-Xassembler OPTION'
  9750. Pass OPTION as an option to the assembler. You can use this to
  9751. supply system-specific assembler options that GCC does not
  9752. recognize.
  9753. If you want to pass an option that takes an argument, you must use
  9754. '-Xassembler' twice, once for the option and once for the argument.
  9755. 
  9756. File: gcc.info, Node: Link Options, Next: Directory Options, Prev: Assembler Options, Up: Invoking GCC
  9757. 3.14 Options for Linking
  9758. ========================
  9759. These options come into play when the compiler links object files into
  9760. an executable output file. They are meaningless if the compiler is not
  9761. doing a link step.
  9762. 'OBJECT-FILE-NAME'
  9763. A file name that does not end in a special recognized suffix is
  9764. considered to name an object file or library. (Object files are
  9765. distinguished from libraries by the linker according to the file
  9766. contents.) If linking is done, these object files are used as
  9767. input to the linker.
  9768. '-c'
  9769. '-S'
  9770. '-E'
  9771. If any of these options is used, then the linker is not run, and
  9772. object file names should not be used as arguments. *Note Overall
  9773. Options::.
  9774. '-fuse-ld=bfd'
  9775. Use the 'bfd' linker instead of the default linker.
  9776. '-fuse-ld=gold'
  9777. Use the 'gold' linker instead of the default linker.
  9778. '-lLIBRARY'
  9779. '-l LIBRARY'
  9780. Search the library named LIBRARY when linking. (The second
  9781. alternative with the library as a separate argument is only for
  9782. POSIX compliance and is not recommended.)
  9783. It makes a difference where in the command you write this option;
  9784. the linker searches and processes libraries and object files in the
  9785. order they are specified. Thus, 'foo.o -lz bar.o' searches library
  9786. 'z' after file 'foo.o' but before 'bar.o'. If 'bar.o' refers to
  9787. functions in 'z', those functions may not be loaded.
  9788. The linker searches a standard list of directories for the library,
  9789. which is actually a file named 'libLIBRARY.a'. The linker then
  9790. uses this file as if it had been specified precisely by name.
  9791. The directories searched include several standard system
  9792. directories plus any that you specify with '-L'.
  9793. Normally the files found this way are library files--archive files
  9794. whose members are object files. The linker handles an archive file
  9795. by scanning through it for members which define symbols that have
  9796. so far been referenced but not defined. But if the file that is
  9797. found is an ordinary object file, it is linked in the usual
  9798. fashion. The only difference between using an '-l' option and
  9799. specifying a file name is that '-l' surrounds LIBRARY with 'lib'
  9800. and '.a' and searches several directories.
  9801. '-lobjc'
  9802. You need this special case of the '-l' option in order to link an
  9803. Objective-C or Objective-C++ program.
  9804. '-nostartfiles'
  9805. Do not use the standard system startup files when linking. The
  9806. standard system libraries are used normally, unless '-nostdlib' or
  9807. '-nodefaultlibs' is used.
  9808. '-nodefaultlibs'
  9809. Do not use the standard system libraries when linking. Only the
  9810. libraries you specify are passed to the linker, and options
  9811. specifying linkage of the system libraries, such as
  9812. '-static-libgcc' or '-shared-libgcc', are ignored. The standard
  9813. startup files are used normally, unless '-nostartfiles' is used.
  9814. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  9815. 'memmove'. These entries are usually resolved by entries in libc.
  9816. These entry points should be supplied through some other mechanism
  9817. when this option is specified.
  9818. '-nostdlib'
  9819. Do not use the standard system startup files or libraries when
  9820. linking. No startup files and only the libraries you specify are
  9821. passed to the linker, and options specifying linkage of the system
  9822. libraries, such as '-static-libgcc' or '-shared-libgcc', are
  9823. ignored.
  9824. The compiler may generate calls to 'memcmp', 'memset', 'memcpy' and
  9825. 'memmove'. These entries are usually resolved by entries in libc.
  9826. These entry points should be supplied through some other mechanism
  9827. when this option is specified.
  9828. One of the standard libraries bypassed by '-nostdlib' and
  9829. '-nodefaultlibs' is 'libgcc.a', a library of internal subroutines
  9830. which GCC uses to overcome shortcomings of particular machines, or
  9831. special needs for some languages. (*Note Interfacing to GCC
  9832. Output: (gccint)Interface, for more discussion of 'libgcc.a'.) In
  9833. most cases, you need 'libgcc.a' even when you want to avoid other
  9834. standard libraries. In other words, when you specify '-nostdlib'
  9835. or '-nodefaultlibs' you should usually specify '-lgcc' as well.
  9836. This ensures that you have no unresolved references to internal GCC
  9837. library subroutines. (An example of such an internal subroutine is
  9838. '__main', used to ensure C++ constructors are called; *note
  9839. 'collect2': (gccint)Collect2.)
  9840. '-pie'
  9841. Produce a dynamically linked position independent executable on
  9842. targets that support it. For predictable results, you must also
  9843. specify the same set of options used for compilation ('-fpie',
  9844. '-fPIE', or model suboptions) when you specify this linker option.
  9845. '-no-pie'
  9846. Don't produce a dynamically linked position independent executable.
  9847. '-static-pie'
  9848. Produce a static position independent executable on targets that
  9849. support it. A static position independent executable is similar to
  9850. a static executable, but can be loaded at any address without a
  9851. dynamic linker. For predictable results, you must also specify the
  9852. same set of options used for compilation ('-fpie', '-fPIE', or
  9853. model suboptions) when you specify this linker option.
  9854. '-pthread'
  9855. Link with the POSIX threads library. This option is supported on
  9856. GNU/Linux targets, most other Unix derivatives, and also on x86
  9857. Cygwin and MinGW targets. On some targets this option also sets
  9858. flags for the preprocessor, so it should be used consistently for
  9859. both compilation and linking.
  9860. '-rdynamic'
  9861. Pass the flag '-export-dynamic' to the ELF linker, on targets that
  9862. support it. This instructs the linker to add all symbols, not only
  9863. used ones, to the dynamic symbol table. This option is needed for
  9864. some uses of 'dlopen' or to allow obtaining backtraces from within
  9865. a program.
  9866. '-s'
  9867. Remove all symbol table and relocation information from the
  9868. executable.
  9869. '-static'
  9870. On systems that support dynamic linking, this overrides '-pie' and
  9871. prevents linking with the shared libraries. On other systems, this
  9872. option has no effect.
  9873. '-shared'
  9874. Produce a shared object which can then be linked with other objects
  9875. to form an executable. Not all systems support this option. For
  9876. predictable results, you must also specify the same set of options
  9877. used for compilation ('-fpic', '-fPIC', or model suboptions) when
  9878. you specify this linker option.(1)
  9879. '-shared-libgcc'
  9880. '-static-libgcc'
  9881. On systems that provide 'libgcc' as a shared library, these options
  9882. force the use of either the shared or static version, respectively.
  9883. If no shared version of 'libgcc' was built when the compiler was
  9884. configured, these options have no effect.
  9885. There are several situations in which an application should use the
  9886. shared 'libgcc' instead of the static version. The most common of
  9887. these is when the application wishes to throw and catch exceptions
  9888. across different shared libraries. In that case, each of the
  9889. libraries as well as the application itself should use the shared
  9890. 'libgcc'.
  9891. Therefore, the G++ driver automatically adds '-shared-libgcc'
  9892. whenever you build a shared library or a main executable, because
  9893. C++ programs typically use exceptions, so this is the right thing
  9894. to do.
  9895. If, instead, you use the GCC driver to create shared libraries, you
  9896. may find that they are not always linked with the shared 'libgcc'.
  9897. If GCC finds, at its configuration time, that you have a non-GNU
  9898. linker or a GNU linker that does not support option
  9899. '--eh-frame-hdr', it links the shared version of 'libgcc' into
  9900. shared libraries by default. Otherwise, it takes advantage of the
  9901. linker and optimizes away the linking with the shared version of
  9902. 'libgcc', linking with the static version of libgcc by default.
  9903. This allows exceptions to propagate through such shared libraries,
  9904. without incurring relocation costs at library load time.
  9905. However, if a library or main executable is supposed to throw or
  9906. catch exceptions, you must link it using the G++ driver, or using
  9907. the option '-shared-libgcc', such that it is linked with the shared
  9908. 'libgcc'.
  9909. '-static-libasan'
  9910. When the '-fsanitize=address' option is used to link a program, the
  9911. GCC driver automatically links against 'libasan'. If 'libasan' is
  9912. available as a shared library, and the '-static' option is not
  9913. used, then this links against the shared version of 'libasan'. The
  9914. '-static-libasan' option directs the GCC driver to link 'libasan'
  9915. statically, without necessarily linking other libraries statically.
  9916. '-static-libtsan'
  9917. When the '-fsanitize=thread' option is used to link a program, the
  9918. GCC driver automatically links against 'libtsan'. If 'libtsan' is
  9919. available as a shared library, and the '-static' option is not
  9920. used, then this links against the shared version of 'libtsan'. The
  9921. '-static-libtsan' option directs the GCC driver to link 'libtsan'
  9922. statically, without necessarily linking other libraries statically.
  9923. '-static-liblsan'
  9924. When the '-fsanitize=leak' option is used to link a program, the
  9925. GCC driver automatically links against 'liblsan'. If 'liblsan' is
  9926. available as a shared library, and the '-static' option is not
  9927. used, then this links against the shared version of 'liblsan'. The
  9928. '-static-liblsan' option directs the GCC driver to link 'liblsan'
  9929. statically, without necessarily linking other libraries statically.
  9930. '-static-libubsan'
  9931. When the '-fsanitize=undefined' option is used to link a program,
  9932. the GCC driver automatically links against 'libubsan'. If
  9933. 'libubsan' is available as a shared library, and the '-static'
  9934. option is not used, then this links against the shared version of
  9935. 'libubsan'. The '-static-libubsan' option directs the GCC driver
  9936. to link 'libubsan' statically, without necessarily linking other
  9937. libraries statically.
  9938. '-static-libmpx'
  9939. When the '-fcheck-pointer bounds' and '-mmpx' options are used to
  9940. link a program, the GCC driver automatically links against
  9941. 'libmpx'. If 'libmpx' is available as a shared library, and the
  9942. '-static' option is not used, then this links against the shared
  9943. version of 'libmpx'. The '-static-libmpx' option directs the GCC
  9944. driver to link 'libmpx' statically, without necessarily linking
  9945. other libraries statically.
  9946. '-static-libmpxwrappers'
  9947. When the '-fcheck-pointer bounds' and '-mmpx' options are used to
  9948. link a program without also using '-fno-chkp-use-wrappers', the GCC
  9949. driver automatically links against 'libmpxwrappers'. If
  9950. 'libmpxwrappers' is available as a shared library, and the
  9951. '-static' option is not used, then this links against the shared
  9952. version of 'libmpxwrappers'. The '-static-libmpxwrappers' option
  9953. directs the GCC driver to link 'libmpxwrappers' statically, without
  9954. necessarily linking other libraries statically.
  9955. '-static-libstdc++'
  9956. When the 'g++' program is used to link a C++ program, it normally
  9957. automatically links against 'libstdc++'. If 'libstdc++' is
  9958. available as a shared library, and the '-static' option is not
  9959. used, then this links against the shared version of 'libstdc++'.
  9960. That is normally fine. However, it is sometimes useful to freeze
  9961. the version of 'libstdc++' used by the program without going all
  9962. the way to a fully static link. The '-static-libstdc++' option
  9963. directs the 'g++' driver to link 'libstdc++' statically, without
  9964. necessarily linking other libraries statically.
  9965. '-symbolic'
  9966. Bind references to global symbols when building a shared object.
  9967. Warn about any unresolved references (unless overridden by the link
  9968. editor option '-Xlinker -z -Xlinker defs'). Only a few systems
  9969. support this option.
  9970. '-T SCRIPT'
  9971. Use SCRIPT as the linker script. This option is supported by most
  9972. systems using the GNU linker. On some targets, such as bare-board
  9973. targets without an operating system, the '-T' option may be
  9974. required when linking to avoid references to undefined symbols.
  9975. '-Xlinker OPTION'
  9976. Pass OPTION as an option to the linker. You can use this to supply
  9977. system-specific linker options that GCC does not recognize.
  9978. If you want to pass an option that takes a separate argument, you
  9979. must use '-Xlinker' twice, once for the option and once for the
  9980. argument. For example, to pass '-assert definitions', you must
  9981. write '-Xlinker -assert -Xlinker definitions'. It does not work to
  9982. write '-Xlinker "-assert definitions"', because this passes the
  9983. entire string as a single argument, which is not what the linker
  9984. expects.
  9985. When using the GNU linker, it is usually more convenient to pass
  9986. arguments to linker options using the 'OPTION=VALUE' syntax than as
  9987. separate arguments. For example, you can specify '-Xlinker
  9988. -Map=output.map' rather than '-Xlinker -Map -Xlinker output.map'.
  9989. Other linkers may not support this syntax for command-line options.
  9990. '-Wl,OPTION'
  9991. Pass OPTION as an option to the linker. If OPTION contains commas,
  9992. it is split into multiple options at the commas. You can use this
  9993. syntax to pass an argument to the option. For example,
  9994. '-Wl,-Map,output.map' passes '-Map output.map' to the linker. When
  9995. using the GNU linker, you can also get the same effect with
  9996. '-Wl,-Map=output.map'.
  9997. '-u SYMBOL'
  9998. Pretend the symbol SYMBOL is undefined, to force linking of library
  9999. modules to define it. You can use '-u' multiple times with
  10000. different symbols to force loading of additional library modules.
  10001. '-z KEYWORD'
  10002. '-z' is passed directly on to the linker along with the keyword
  10003. KEYWORD. See the section in the documentation of your linker for
  10004. permitted values and their meanings.
  10005. ---------- Footnotes ----------
  10006. (1) On some systems, 'gcc -shared' needs to build supplementary stub
  10007. code for constructors to work. On multi-libbed systems, 'gcc -shared'
  10008. must select the correct support libraries to link against. Failing to
  10009. supply the correct flags may lead to subtle defects. Supplying them in
  10010. cases where they are not necessary is innocuous.
  10011. 
  10012. File: gcc.info, Node: Directory Options, Next: Code Gen Options, Prev: Link Options, Up: Invoking GCC
  10013. 3.15 Options for Directory Search
  10014. =================================
  10015. These options specify directories to search for header files, for
  10016. libraries and for parts of the compiler:
  10017. '-I DIR'
  10018. '-iquote DIR'
  10019. '-isystem DIR'
  10020. '-idirafter DIR'
  10021. Add the directory DIR to the list of directories to be searched for
  10022. header files during preprocessing. If DIR begins with '=' or
  10023. '$SYSROOT', then the '=' or '$SYSROOT' is replaced by the sysroot
  10024. prefix; see '--sysroot' and '-isysroot'.
  10025. Directories specified with '-iquote' apply only to the quote form
  10026. of the directive, '#include "FILE"'. Directories specified with
  10027. '-I', '-isystem', or '-idirafter' apply to lookup for both the
  10028. '#include "FILE"' and '#include <FILE>' directives.
  10029. You can specify any number or combination of these options on the
  10030. command line to search for header files in several directories.
  10031. The lookup order is as follows:
  10032. 1. For the quote form of the include directive, the directory of
  10033. the current file is searched first.
  10034. 2. For the quote form of the include directive, the directories
  10035. specified by '-iquote' options are searched in left-to-right
  10036. order, as they appear on the command line.
  10037. 3. Directories specified with '-I' options are scanned in
  10038. left-to-right order.
  10039. 4. Directories specified with '-isystem' options are scanned in
  10040. left-to-right order.
  10041. 5. Standard system directories are scanned.
  10042. 6. Directories specified with '-idirafter' options are scanned in
  10043. left-to-right order.
  10044. You can use '-I' to override a system header file, substituting
  10045. your own version, since these directories are searched before the
  10046. standard system header file directories. However, you should not
  10047. use this option to add directories that contain vendor-supplied
  10048. system header files; use '-isystem' for that.
  10049. The '-isystem' and '-idirafter' options also mark the directory as
  10050. a system directory, so that it gets the same special treatment that
  10051. is applied to the standard system directories.
  10052. If a standard system include directory, or a directory specified
  10053. with '-isystem', is also specified with '-I', the '-I' option is
  10054. ignored. The directory is still searched but as a system directory
  10055. at its normal position in the system include chain. This is to
  10056. ensure that GCC's procedure to fix buggy system headers and the
  10057. ordering for the '#include_next' directive are not inadvertently
  10058. changed. If you really need to change the search order for system
  10059. directories, use the '-nostdinc' and/or '-isystem' options.
  10060. '-I-'
  10061. Split the include path. This option has been deprecated. Please
  10062. use '-iquote' instead for '-I' directories before the '-I-' and
  10063. remove the '-I-' option.
  10064. Any directories specified with '-I' options before '-I-' are
  10065. searched only for headers requested with '#include "FILE"'; they
  10066. are not searched for '#include <FILE>'. If additional directories
  10067. are specified with '-I' options after the '-I-', those directories
  10068. are searched for all '#include' directives.
  10069. In addition, '-I-' inhibits the use of the directory of the current
  10070. file directory as the first search directory for '#include "FILE"'.
  10071. There is no way to override this effect of '-I-'.
  10072. '-iprefix PREFIX'
  10073. Specify PREFIX as the prefix for subsequent '-iwithprefix' options.
  10074. If the prefix represents a directory, you should include the final
  10075. '/'.
  10076. '-iwithprefix DIR'
  10077. '-iwithprefixbefore DIR'
  10078. Append DIR to the prefix specified previously with '-iprefix', and
  10079. add the resulting directory to the include search path.
  10080. '-iwithprefixbefore' puts it in the same place '-I' would;
  10081. '-iwithprefix' puts it where '-idirafter' would.
  10082. '-isysroot DIR'
  10083. This option is like the '--sysroot' option, but applies only to
  10084. header files (except for Darwin targets, where it applies to both
  10085. header files and libraries). See the '--sysroot' option for more
  10086. information.
  10087. '-imultilib DIR'
  10088. Use DIR as a subdirectory of the directory containing
  10089. target-specific C++ headers.
  10090. '-nostdinc'
  10091. Do not search the standard system directories for header files.
  10092. Only the directories explicitly specified with '-I', '-iquote',
  10093. '-isystem', and/or '-idirafter' options (and the directory of the
  10094. current file, if appropriate) are searched.
  10095. '-nostdinc++'
  10096. Do not search for header files in the C++-specific standard
  10097. directories, but do still search the other standard directories.
  10098. (This option is used when building the C++ library.)
  10099. '-iplugindir=DIR'
  10100. Set the directory to search for plugins that are passed by
  10101. '-fplugin=NAME' instead of '-fplugin=PATH/NAME.so'. This option is
  10102. not meant to be used by the user, but only passed by the driver.
  10103. '-LDIR'
  10104. Add directory DIR to the list of directories to be searched for
  10105. '-l'.
  10106. '-BPREFIX'
  10107. This option specifies where to find the executables, libraries,
  10108. include files, and data files of the compiler itself.
  10109. The compiler driver program runs one or more of the subprograms
  10110. 'cpp', 'cc1', 'as' and 'ld'. It tries PREFIX as a prefix for each
  10111. program it tries to run, both with and without 'MACHINE/VERSION/'
  10112. for the corresponding target machine and compiler version.
  10113. For each subprogram to be run, the compiler driver first tries the
  10114. '-B' prefix, if any. If that name is not found, or if '-B' is not
  10115. specified, the driver tries two standard prefixes, '/usr/lib/gcc/'
  10116. and '/usr/local/lib/gcc/'. If neither of those results in a file
  10117. name that is found, the unmodified program name is searched for
  10118. using the directories specified in your 'PATH' environment
  10119. variable.
  10120. The compiler checks to see if the path provided by '-B' refers to a
  10121. directory, and if necessary it adds a directory separator character
  10122. at the end of the path.
  10123. '-B' prefixes that effectively specify directory names also apply
  10124. to libraries in the linker, because the compiler translates these
  10125. options into '-L' options for the linker. They also apply to
  10126. include files in the preprocessor, because the compiler translates
  10127. these options into '-isystem' options for the preprocessor. In
  10128. this case, the compiler appends 'include' to the prefix.
  10129. The runtime support file 'libgcc.a' can also be searched for using
  10130. the '-B' prefix, if needed. If it is not found there, the two
  10131. standard prefixes above are tried, and that is all. The file is
  10132. left out of the link if it is not found by those means.
  10133. Another way to specify a prefix much like the '-B' prefix is to use
  10134. the environment variable 'GCC_EXEC_PREFIX'. *Note Environment
  10135. Variables::.
  10136. As a special kludge, if the path provided by '-B' is
  10137. '[dir/]stageN/', where N is a number in the range 0 to 9, then it
  10138. is replaced by '[dir/]include'. This is to help with
  10139. boot-strapping the compiler.
  10140. '-no-canonical-prefixes'
  10141. Do not expand any symbolic links, resolve references to '/../' or
  10142. '/./', or make the path absolute when generating a relative prefix.
  10143. '--sysroot=DIR'
  10144. Use DIR as the logical root directory for headers and libraries.
  10145. For example, if the compiler normally searches for headers in
  10146. '/usr/include' and libraries in '/usr/lib', it instead searches
  10147. 'DIR/usr/include' and 'DIR/usr/lib'.
  10148. If you use both this option and the '-isysroot' option, then the
  10149. '--sysroot' option applies to libraries, but the '-isysroot' option
  10150. applies to header files.
  10151. The GNU linker (beginning with version 2.16) has the necessary
  10152. support for this option. If your linker does not support this
  10153. option, the header file aspect of '--sysroot' still works, but the
  10154. library aspect does not.
  10155. '--no-sysroot-suffix'
  10156. For some targets, a suffix is added to the root directory specified
  10157. with '--sysroot', depending on the other options used, so that
  10158. headers may for example be found in 'DIR/SUFFIX/usr/include'
  10159. instead of 'DIR/usr/include'. This option disables the addition of
  10160. such a suffix.
  10161. 
  10162. File: gcc.info, Node: Code Gen Options, Next: Developer Options, Prev: Directory Options, Up: Invoking GCC
  10163. 3.16 Options for Code Generation Conventions
  10164. ============================================
  10165. These machine-independent options control the interface conventions used
  10166. in code generation.
  10167. Most of them have both positive and negative forms; the negative form
  10168. of '-ffoo' is '-fno-foo'. In the table below, only one of the forms is
  10169. listed--the one that is not the default. You can figure out the other
  10170. form by either removing 'no-' or adding it.
  10171. '-fstack-reuse=REUSE-LEVEL'
  10172. This option controls stack space reuse for user declared local/auto
  10173. variables and compiler generated temporaries. REUSE_LEVEL can be
  10174. 'all', 'named_vars', or 'none'. 'all' enables stack reuse for all
  10175. local variables and temporaries, 'named_vars' enables the reuse
  10176. only for user defined local variables with names, and 'none'
  10177. disables stack reuse completely. The default value is 'all'. The
  10178. option is needed when the program extends the lifetime of a scoped
  10179. local variable or a compiler generated temporary beyond the end
  10180. point defined by the language. When a lifetime of a variable ends,
  10181. and if the variable lives in memory, the optimizing compiler has
  10182. the freedom to reuse its stack space with other temporaries or
  10183. scoped local variables whose live range does not overlap with it.
  10184. Legacy code extending local lifetime is likely to break with the
  10185. stack reuse optimization.
  10186. For example,
  10187. int *p;
  10188. {
  10189. int local1;
  10190. p = &local1;
  10191. local1 = 10;
  10192. ....
  10193. }
  10194. {
  10195. int local2;
  10196. local2 = 20;
  10197. ...
  10198. }
  10199. if (*p == 10) // out of scope use of local1
  10200. {
  10201. }
  10202. Another example:
  10203. struct A
  10204. {
  10205. A(int k) : i(k), j(k) { }
  10206. int i;
  10207. int j;
  10208. };
  10209. A *ap;
  10210. void foo(const A& ar)
  10211. {
  10212. ap = &ar;
  10213. }
  10214. void bar()
  10215. {
  10216. foo(A(10)); // temp object's lifetime ends when foo returns
  10217. {
  10218. A a(20);
  10219. ....
  10220. }
  10221. ap->i+= 10; // ap references out of scope temp whose space
  10222. // is reused with a. What is the value of ap->i?
  10223. }
  10224. The lifetime of a compiler generated temporary is well defined by
  10225. the C++ standard. When a lifetime of a temporary ends, and if the
  10226. temporary lives in memory, the optimizing compiler has the freedom
  10227. to reuse its stack space with other temporaries or scoped local
  10228. variables whose live range does not overlap with it. However some
  10229. of the legacy code relies on the behavior of older compilers in
  10230. which temporaries' stack space is not reused, the aggressive stack
  10231. reuse can lead to runtime errors. This option is used to control
  10232. the temporary stack reuse optimization.
  10233. '-ftrapv'
  10234. This option generates traps for signed overflow on addition,
  10235. subtraction, multiplication operations. The options '-ftrapv' and
  10236. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  10237. command-line results in '-fwrapv' being effective. Note that only
  10238. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  10239. on the command-line results in '-ftrapv' being effective.
  10240. '-fwrapv'
  10241. This option instructs the compiler to assume that signed arithmetic
  10242. overflow of addition, subtraction and multiplication wraps around
  10243. using twos-complement representation. This flag enables some
  10244. optimizations and disables others. The options '-ftrapv' and
  10245. '-fwrapv' override each other, so using '-ftrapv' '-fwrapv' on the
  10246. command-line results in '-fwrapv' being effective. Note that only
  10247. active options override, so using '-ftrapv' '-fwrapv' '-fno-wrapv'
  10248. on the command-line results in '-ftrapv' being effective.
  10249. '-fwrapv-pointer'
  10250. This option instructs the compiler to assume that pointer
  10251. arithmetic overflow on addition and subtraction wraps around using
  10252. twos-complement representation. This flag disables some
  10253. optimizations which assume pointer overflow is invalid.
  10254. '-fstrict-overflow'
  10255. This option implies '-fno-wrapv' '-fno-wrapv-pointer' and when
  10256. negated implies '-fwrapv' '-fwrapv-pointer'.
  10257. '-fexceptions'
  10258. Enable exception handling. Generates extra code needed to
  10259. propagate exceptions. For some targets, this implies GCC generates
  10260. frame unwind information for all functions, which can produce
  10261. significant data size overhead, although it does not affect
  10262. execution. If you do not specify this option, GCC enables it by
  10263. default for languages like C++ that normally require exception
  10264. handling, and disables it for languages like C that do not normally
  10265. require it. However, you may need to enable this option when
  10266. compiling C code that needs to interoperate properly with exception
  10267. handlers written in C++. You may also wish to disable this option
  10268. if you are compiling older C++ programs that don't use exception
  10269. handling.
  10270. '-fnon-call-exceptions'
  10271. Generate code that allows trapping instructions to throw
  10272. exceptions. Note that this requires platform-specific runtime
  10273. support that does not exist everywhere. Moreover, it only allows
  10274. _trapping_ instructions to throw exceptions, i.e. memory references
  10275. or floating-point instructions. It does not allow exceptions to be
  10276. thrown from arbitrary signal handlers such as 'SIGALRM'.
  10277. '-fdelete-dead-exceptions'
  10278. Consider that instructions that may throw exceptions but don't
  10279. otherwise contribute to the execution of the program can be
  10280. optimized away. This option is enabled by default for the Ada
  10281. front end, as permitted by the Ada language specification.
  10282. Optimization passes that cause dead exceptions to be removed are
  10283. enabled independently at different optimization levels.
  10284. '-funwind-tables'
  10285. Similar to '-fexceptions', except that it just generates any needed
  10286. static data, but does not affect the generated code in any other
  10287. way. You normally do not need to enable this option; instead, a
  10288. language processor that needs this handling enables it on your
  10289. behalf.
  10290. '-fasynchronous-unwind-tables'
  10291. Generate unwind table in DWARF format, if supported by target
  10292. machine. The table is exact at each instruction boundary, so it
  10293. can be used for stack unwinding from asynchronous events (such as
  10294. debugger or garbage collector).
  10295. '-fno-gnu-unique'
  10296. On systems with recent GNU assembler and C library, the C++
  10297. compiler uses the 'STB_GNU_UNIQUE' binding to make sure that
  10298. definitions of template static data members and static local
  10299. variables in inline functions are unique even in the presence of
  10300. 'RTLD_LOCAL'; this is necessary to avoid problems with a library
  10301. used by two different 'RTLD_LOCAL' plugins depending on a
  10302. definition in one of them and therefore disagreeing with the other
  10303. one about the binding of the symbol. But this causes 'dlclose' to
  10304. be ignored for affected DSOs; if your program relies on
  10305. reinitialization of a DSO via 'dlclose' and 'dlopen', you can use
  10306. '-fno-gnu-unique'.
  10307. '-fpcc-struct-return'
  10308. Return "short" 'struct' and 'union' values in memory like longer
  10309. ones, rather than in registers. This convention is less efficient,
  10310. but it has the advantage of allowing intercallability between
  10311. GCC-compiled files and files compiled with other compilers,
  10312. particularly the Portable C Compiler (pcc).
  10313. The precise convention for returning structures in memory depends
  10314. on the target configuration macros.
  10315. Short structures and unions are those whose size and alignment
  10316. match that of some integer type.
  10317. *Warning:* code compiled with the '-fpcc-struct-return' switch is
  10318. not binary compatible with code compiled with the
  10319. '-freg-struct-return' switch. Use it to conform to a non-default
  10320. application binary interface.
  10321. '-freg-struct-return'
  10322. Return 'struct' and 'union' values in registers when possible.
  10323. This is more efficient for small structures than
  10324. '-fpcc-struct-return'.
  10325. If you specify neither '-fpcc-struct-return' nor
  10326. '-freg-struct-return', GCC defaults to whichever convention is
  10327. standard for the target. If there is no standard convention, GCC
  10328. defaults to '-fpcc-struct-return', except on targets where GCC is
  10329. the principal compiler. In those cases, we can choose the
  10330. standard, and we chose the more efficient register return
  10331. alternative.
  10332. *Warning:* code compiled with the '-freg-struct-return' switch is
  10333. not binary compatible with code compiled with the
  10334. '-fpcc-struct-return' switch. Use it to conform to a non-default
  10335. application binary interface.
  10336. '-fshort-enums'
  10337. Allocate to an 'enum' type only as many bytes as it needs for the
  10338. declared range of possible values. Specifically, the 'enum' type
  10339. is equivalent to the smallest integer type that has enough room.
  10340. *Warning:* the '-fshort-enums' switch causes GCC to generate code
  10341. that is not binary compatible with code generated without that
  10342. switch. Use it to conform to a non-default application binary
  10343. interface.
  10344. '-fshort-wchar'
  10345. Override the underlying type for 'wchar_t' to be 'short unsigned
  10346. int' instead of the default for the target. This option is useful
  10347. for building programs to run under WINE.
  10348. *Warning:* the '-fshort-wchar' switch causes GCC to generate code
  10349. that is not binary compatible with code generated without that
  10350. switch. Use it to conform to a non-default application binary
  10351. interface.
  10352. '-fno-common'
  10353. In C code, this option controls the placement of global variables
  10354. defined without an initializer, known as "tentative definitions" in
  10355. the C standard. Tentative definitions are distinct from
  10356. declarations of a variable with the 'extern' keyword, which do not
  10357. allocate storage.
  10358. Unix C compilers have traditionally allocated storage for
  10359. uninitialized global variables in a common block. This allows the
  10360. linker to resolve all tentative definitions of the same variable in
  10361. different compilation units to the same object, or to a
  10362. non-tentative definition. This is the behavior specified by
  10363. '-fcommon', and is the default for GCC on most targets. On the
  10364. other hand, this behavior is not required by ISO C, and on some
  10365. targets may carry a speed or code size penalty on variable
  10366. references.
  10367. The '-fno-common' option specifies that the compiler should instead
  10368. place uninitialized global variables in the data section of the
  10369. object file. This inhibits the merging of tentative definitions by
  10370. the linker so you get a multiple-definition error if the same
  10371. variable is defined in more than one compilation unit. Compiling
  10372. with '-fno-common' is useful on targets for which it provides
  10373. better performance, or if you wish to verify that the program will
  10374. work on other systems that always treat uninitialized variable
  10375. definitions this way.
  10376. '-fno-ident'
  10377. Ignore the '#ident' directive.
  10378. '-finhibit-size-directive'
  10379. Don't output a '.size' assembler directive, or anything else that
  10380. would cause trouble if the function is split in the middle, and the
  10381. two halves are placed at locations far apart in memory. This
  10382. option is used when compiling 'crtstuff.c'; you should not need to
  10383. use it for anything else.
  10384. '-fverbose-asm'
  10385. Put extra commentary information in the generated assembly code to
  10386. make it more readable. This option is generally only of use to
  10387. those who actually need to read the generated assembly code
  10388. (perhaps while debugging the compiler itself).
  10389. '-fno-verbose-asm', the default, causes the extra information to be
  10390. omitted and is useful when comparing two assembler files.
  10391. The added comments include:
  10392. * information on the compiler version and command-line options,
  10393. * the source code lines associated with the assembly
  10394. instructions, in the form FILENAME:LINENUMBER:CONTENT OF LINE,
  10395. * hints on which high-level expressions correspond to the
  10396. various assembly instruction operands.
  10397. For example, given this C source file:
  10398. int test (int n)
  10399. {
  10400. int i;
  10401. int total = 0;
  10402. for (i = 0; i < n; i++)
  10403. total += i * i;
  10404. return total;
  10405. }
  10406. compiling to (x86_64) assembly via '-S' and emitting the result
  10407. direct to stdout via '-o' '-'
  10408. gcc -S test.c -fverbose-asm -Os -o -
  10409. gives output similar to this:
  10410. .file "test.c"
  10411. # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64-pc-linux-gnu)
  10412. [...snip...]
  10413. # options passed:
  10414. [...snip...]
  10415. .text
  10416. .globl test
  10417. .type test, @function
  10418. test:
  10419. .LFB0:
  10420. .cfi_startproc
  10421. # test.c:4: int total = 0;
  10422. xorl %eax, %eax # <retval>
  10423. # test.c:6: for (i = 0; i < n; i++)
  10424. xorl %edx, %edx # i
  10425. .L2:
  10426. # test.c:6: for (i = 0; i < n; i++)
  10427. cmpl %edi, %edx # n, i
  10428. jge .L5 #,
  10429. # test.c:7: total += i * i;
  10430. movl %edx, %ecx # i, tmp92
  10431. imull %edx, %ecx # i, tmp92
  10432. # test.c:6: for (i = 0; i < n; i++)
  10433. incl %edx # i
  10434. # test.c:7: total += i * i;
  10435. addl %ecx, %eax # tmp92, <retval>
  10436. jmp .L2 #
  10437. .L5:
  10438. # test.c:10: }
  10439. ret
  10440. .cfi_endproc
  10441. .LFE0:
  10442. .size test, .-test
  10443. .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  10444. .section .note.GNU-stack,"",@progbits
  10445. The comments are intended for humans rather than machines and hence
  10446. the precise format of the comments is subject to change.
  10447. '-frecord-gcc-switches'
  10448. This switch causes the command line used to invoke the compiler to
  10449. be recorded into the object file that is being created. This
  10450. switch is only implemented on some targets and the exact format of
  10451. the recording is target and binary file format dependent, but it
  10452. usually takes the form of a section containing ASCII text. This
  10453. switch is related to the '-fverbose-asm' switch, but that switch
  10454. only records information in the assembler output file as comments,
  10455. so it never reaches the object file. See also
  10456. '-grecord-gcc-switches' for another way of storing compiler options
  10457. into the object file.
  10458. '-fpic'
  10459. Generate position-independent code (PIC) suitable for use in a
  10460. shared library, if supported for the target machine. Such code
  10461. accesses all constant addresses through a global offset table
  10462. (GOT). The dynamic loader resolves the GOT entries when the
  10463. program starts (the dynamic loader is not part of GCC; it is part
  10464. of the operating system). If the GOT size for the linked
  10465. executable exceeds a machine-specific maximum size, you get an
  10466. error message from the linker indicating that '-fpic' does not
  10467. work; in that case, recompile with '-fPIC' instead. (These
  10468. maximums are 8k on the SPARC, 28k on AArch64 and 32k on the m68k
  10469. and RS/6000. The x86 has no such limit.)
  10470. Position-independent code requires special support, and therefore
  10471. works only on certain machines. For the x86, GCC supports PIC for
  10472. System V but not for the Sun 386i. Code generated for the IBM
  10473. RS/6000 is always position-independent.
  10474. When this flag is set, the macros '__pic__' and '__PIC__' are
  10475. defined to 1.
  10476. '-fPIC'
  10477. If supported for the target machine, emit position-independent
  10478. code, suitable for dynamic linking and avoiding any limit on the
  10479. size of the global offset table. This option makes a difference on
  10480. AArch64, m68k, PowerPC and SPARC.
  10481. Position-independent code requires special support, and therefore
  10482. works only on certain machines.
  10483. When this flag is set, the macros '__pic__' and '__PIC__' are
  10484. defined to 2.
  10485. '-fpie'
  10486. '-fPIE'
  10487. These options are similar to '-fpic' and '-fPIC', but generated
  10488. position independent code can be only linked into executables.
  10489. Usually these options are used when '-pie' GCC option is used
  10490. during linking.
  10491. '-fpie' and '-fPIE' both define the macros '__pie__' and '__PIE__'.
  10492. The macros have the value 1 for '-fpie' and 2 for '-fPIE'.
  10493. '-fno-plt'
  10494. Do not use the PLT for external function calls in
  10495. position-independent code. Instead, load the callee address at
  10496. call sites from the GOT and branch to it. This leads to more
  10497. efficient code by eliminating PLT stubs and exposing GOT loads to
  10498. optimizations. On architectures such as 32-bit x86 where PLT stubs
  10499. expect the GOT pointer in a specific register, this gives more
  10500. register allocation freedom to the compiler. Lazy binding requires
  10501. use of the PLT; with '-fno-plt' all external symbols are resolved
  10502. at load time.
  10503. Alternatively, the function attribute 'noplt' can be used to avoid
  10504. calls through the PLT for specific external functions.
  10505. In position-dependent code, a few targets also convert calls to
  10506. functions that are marked to not use the PLT to use the GOT
  10507. instead.
  10508. '-fno-jump-tables'
  10509. Do not use jump tables for switch statements even where it would be
  10510. more efficient than other code generation strategies. This option
  10511. is of use in conjunction with '-fpic' or '-fPIC' for building code
  10512. that forms part of a dynamic linker and cannot reference the
  10513. address of a jump table. On some targets, jump tables do not
  10514. require a GOT and this option is not needed.
  10515. '-ffixed-REG'
  10516. Treat the register named REG as a fixed register; generated code
  10517. should never refer to it (except perhaps as a stack pointer, frame
  10518. pointer or in some other fixed role).
  10519. REG must be the name of a register. The register names accepted
  10520. are machine-specific and are defined in the 'REGISTER_NAMES' macro
  10521. in the machine description macro file.
  10522. This flag does not have a negative form, because it specifies a
  10523. three-way choice.
  10524. '-fcall-used-REG'
  10525. Treat the register named REG as an allocable register that is
  10526. clobbered by function calls. It may be allocated for temporaries
  10527. or variables that do not live across a call. Functions compiled
  10528. this way do not save and restore the register REG.
  10529. It is an error to use this flag with the frame pointer or stack
  10530. pointer. Use of this flag for other registers that have fixed
  10531. pervasive roles in the machine's execution model produces
  10532. disastrous results.
  10533. This flag does not have a negative form, because it specifies a
  10534. three-way choice.
  10535. '-fcall-saved-REG'
  10536. Treat the register named REG as an allocable register saved by
  10537. functions. It may be allocated even for temporaries or variables
  10538. that live across a call. Functions compiled this way save and
  10539. restore the register REG if they use it.
  10540. It is an error to use this flag with the frame pointer or stack
  10541. pointer. Use of this flag for other registers that have fixed
  10542. pervasive roles in the machine's execution model produces
  10543. disastrous results.
  10544. A different sort of disaster results from the use of this flag for
  10545. a register in which function values may be returned.
  10546. This flag does not have a negative form, because it specifies a
  10547. three-way choice.
  10548. '-fpack-struct[=N]'
  10549. Without a value specified, pack all structure members together
  10550. without holes. When a value is specified (which must be a small
  10551. power of two), pack structure members according to this value,
  10552. representing the maximum alignment (that is, objects with default
  10553. alignment requirements larger than this are output potentially
  10554. unaligned at the next fitting location.
  10555. *Warning:* the '-fpack-struct' switch causes GCC to generate code
  10556. that is not binary compatible with code generated without that
  10557. switch. Additionally, it makes the code suboptimal. Use it to
  10558. conform to a non-default application binary interface.
  10559. '-fleading-underscore'
  10560. This option and its counterpart, '-fno-leading-underscore',
  10561. forcibly change the way C symbols are represented in the object
  10562. file. One use is to help link with legacy assembly code.
  10563. *Warning:* the '-fleading-underscore' switch causes GCC to generate
  10564. code that is not binary compatible with code generated without that
  10565. switch. Use it to conform to a non-default application binary
  10566. interface. Not all targets provide complete support for this
  10567. switch.
  10568. '-ftls-model=MODEL'
  10569. Alter the thread-local storage model to be used (*note
  10570. Thread-Local::). The MODEL argument should be one of
  10571. 'global-dynamic', 'local-dynamic', 'initial-exec' or 'local-exec'.
  10572. Note that the choice is subject to optimization: the compiler may
  10573. use a more efficient model for symbols not visible outside of the
  10574. translation unit, or if '-fpic' is not given on the command line.
  10575. The default without '-fpic' is 'initial-exec'; with '-fpic' the
  10576. default is 'global-dynamic'.
  10577. '-ftrampolines'
  10578. For targets that normally need trampolines for nested functions,
  10579. always generate them instead of using descriptors. Otherwise, for
  10580. targets that do not need them, like for example HP-PA or IA-64, do
  10581. nothing.
  10582. A trampoline is a small piece of code that is created at run time
  10583. on the stack when the address of a nested function is taken, and is
  10584. used to call the nested function indirectly. Therefore, it
  10585. requires the stack to be made executable in order for the program
  10586. to work properly.
  10587. '-fno-trampolines' is enabled by default on a language by language
  10588. basis to let the compiler avoid generating them, if it computes
  10589. that this is safe, and replace them with descriptors. Descriptors
  10590. are made up of data only, but the generated code must be prepared
  10591. to deal with them. As of this writing, '-fno-trampolines' is
  10592. enabled by default only for Ada.
  10593. Moreover, code compiled with '-ftrampolines' and code compiled with
  10594. '-fno-trampolines' are not binary compatible if nested functions
  10595. are present. This option must therefore be used on a program-wide
  10596. basis and be manipulated with extreme care.
  10597. '-fvisibility=[default|internal|hidden|protected]'
  10598. Set the default ELF image symbol visibility to the specified
  10599. option--all symbols are marked with this unless overridden within
  10600. the code. Using this feature can very substantially improve
  10601. linking and load times of shared object libraries, produce more
  10602. optimized code, provide near-perfect API export and prevent symbol
  10603. clashes. It is *strongly* recommended that you use this in any
  10604. shared objects you distribute.
  10605. Despite the nomenclature, 'default' always means public; i.e.,
  10606. available to be linked against from outside the shared object.
  10607. 'protected' and 'internal' are pretty useless in real-world usage
  10608. so the only other commonly used option is 'hidden'. The default if
  10609. '-fvisibility' isn't specified is 'default', i.e., make every
  10610. symbol public.
  10611. A good explanation of the benefits offered by ensuring ELF symbols
  10612. have the correct visibility is given by "How To Write Shared
  10613. Libraries" by Ulrich Drepper (which can be found at
  10614. <https://www.akkadia.org/drepper/>)--however a superior solution
  10615. made possible by this option to marking things hidden when the
  10616. default is public is to make the default hidden and mark things
  10617. public. This is the norm with DLLs on Windows and with
  10618. '-fvisibility=hidden' and '__attribute__ ((visibility("default")))'
  10619. instead of '__declspec(dllexport)' you get almost identical
  10620. semantics with identical syntax. This is a great boon to those
  10621. working with cross-platform projects.
  10622. For those adding visibility support to existing code, you may find
  10623. '#pragma GCC visibility' of use. This works by you enclosing the
  10624. declarations you wish to set visibility for with (for example)
  10625. '#pragma GCC visibility push(hidden)' and '#pragma GCC visibility
  10626. pop'. Bear in mind that symbol visibility should be viewed *as
  10627. part of the API interface contract* and thus all new code should
  10628. always specify visibility when it is not the default; i.e.,
  10629. declarations only for use within the local DSO should *always* be
  10630. marked explicitly as hidden as so to avoid PLT indirection
  10631. overheads--making this abundantly clear also aids readability and
  10632. self-documentation of the code. Note that due to ISO C++
  10633. specification requirements, 'operator new' and 'operator delete'
  10634. must always be of default visibility.
  10635. Be aware that headers from outside your project, in particular
  10636. system headers and headers from any other library you use, may not
  10637. be expecting to be compiled with visibility other than the default.
  10638. You may need to explicitly say '#pragma GCC visibility
  10639. push(default)' before including any such headers.
  10640. 'extern' declarations are not affected by '-fvisibility', so a lot
  10641. of code can be recompiled with '-fvisibility=hidden' with no
  10642. modifications. However, this means that calls to 'extern'
  10643. functions with no explicit visibility use the PLT, so it is more
  10644. effective to use '__attribute ((visibility))' and/or '#pragma GCC
  10645. visibility' to tell the compiler which 'extern' declarations should
  10646. be treated as hidden.
  10647. Note that '-fvisibility' does affect C++ vague linkage entities.
  10648. This means that, for instance, an exception class that is be thrown
  10649. between DSOs must be explicitly marked with default visibility so
  10650. that the 'type_info' nodes are unified between the DSOs.
  10651. An overview of these techniques, their benefits and how to use them
  10652. is at <http://gcc.gnu.org/wiki/Visibility>.
  10653. '-fstrict-volatile-bitfields'
  10654. This option should be used if accesses to volatile bit-fields (or
  10655. other structure fields, although the compiler usually honors those
  10656. types anyway) should use a single access of the width of the
  10657. field's type, aligned to a natural alignment if possible. For
  10658. example, targets with memory-mapped peripheral registers might
  10659. require all such accesses to be 16 bits wide; with this flag you
  10660. can declare all peripheral bit-fields as 'unsigned short' (assuming
  10661. short is 16 bits on these targets) to force GCC to use 16-bit
  10662. accesses instead of, perhaps, a more efficient 32-bit access.
  10663. If this option is disabled, the compiler uses the most efficient
  10664. instruction. In the previous example, that might be a 32-bit load
  10665. instruction, even though that accesses bytes that do not contain
  10666. any portion of the bit-field, or memory-mapped registers unrelated
  10667. to the one being updated.
  10668. In some cases, such as when the 'packed' attribute is applied to a
  10669. structure field, it may not be possible to access the field with a
  10670. single read or write that is correctly aligned for the target
  10671. machine. In this case GCC falls back to generating multiple
  10672. accesses rather than code that will fault or truncate the result at
  10673. run time.
  10674. Note: Due to restrictions of the C/C++11 memory model, write
  10675. accesses are not allowed to touch non bit-field members. It is
  10676. therefore recommended to define all bits of the field's type as
  10677. bit-field members.
  10678. The default value of this option is determined by the application
  10679. binary interface for the target processor.
  10680. '-fsync-libcalls'
  10681. This option controls whether any out-of-line instance of the
  10682. '__sync' family of functions may be used to implement the C++11
  10683. '__atomic' family of functions.
  10684. The default value of this option is enabled, thus the only useful
  10685. form of the option is '-fno-sync-libcalls'. This option is used in
  10686. the implementation of the 'libatomic' runtime library.
  10687. 
  10688. File: gcc.info, Node: Developer Options, Next: Submodel Options, Prev: Code Gen Options, Up: Invoking GCC
  10689. 3.17 GCC Developer Options
  10690. ==========================
  10691. This section describes command-line options that are primarily of
  10692. interest to GCC developers, including options to support compiler
  10693. testing and investigation of compiler bugs and compile-time performance
  10694. problems. This includes options that produce debug dumps at various
  10695. points in the compilation; that print statistics such as memory use and
  10696. execution time; and that print information about GCC's configuration,
  10697. such as where it searches for libraries. You should rarely need to use
  10698. any of these options for ordinary compilation and linking tasks.
  10699. '-dLETTERS'
  10700. '-fdump-rtl-PASS'
  10701. '-fdump-rtl-PASS=FILENAME'
  10702. Says to make debugging dumps during compilation at times specified
  10703. by LETTERS. This is used for debugging the RTL-based passes of the
  10704. compiler. The file names for most of the dumps are made by
  10705. appending a pass number and a word to the DUMPNAME, and the files
  10706. are created in the directory of the output file. In case of
  10707. '=FILENAME' option, the dump is output on the given file instead of
  10708. the pass numbered dump files. Note that the pass number is
  10709. assigned as passes are registered into the pass manager. Most
  10710. passes are registered in the order that they will execute and for
  10711. these passes the number corresponds to the pass execution order.
  10712. However, passes registered by plugins, passes specific to
  10713. compilation targets, or passes that are otherwise registered after
  10714. all the other passes are numbered higher than a pass named "final",
  10715. even if they are executed earlier. DUMPNAME is generated from the
  10716. name of the output file if explicitly specified and not an
  10717. executable, otherwise it is the basename of the source file.
  10718. Some '-dLETTERS' switches have different meaning when '-E' is used
  10719. for preprocessing. *Note Preprocessor Options::, for information
  10720. about preprocessor-specific dump options.
  10721. Debug dumps can be enabled with a '-fdump-rtl' switch or some '-d'
  10722. option LETTERS. Here are the possible letters for use in PASS and
  10723. LETTERS, and their meanings:
  10724. '-fdump-rtl-alignments'
  10725. Dump after branch alignments have been computed.
  10726. '-fdump-rtl-asmcons'
  10727. Dump after fixing rtl statements that have unsatisfied in/out
  10728. constraints.
  10729. '-fdump-rtl-auto_inc_dec'
  10730. Dump after auto-inc-dec discovery. This pass is only run on
  10731. architectures that have auto inc or auto dec instructions.
  10732. '-fdump-rtl-barriers'
  10733. Dump after cleaning up the barrier instructions.
  10734. '-fdump-rtl-bbpart'
  10735. Dump after partitioning hot and cold basic blocks.
  10736. '-fdump-rtl-bbro'
  10737. Dump after block reordering.
  10738. '-fdump-rtl-btl1'
  10739. '-fdump-rtl-btl2'
  10740. '-fdump-rtl-btl1' and '-fdump-rtl-btl2' enable dumping after
  10741. the two branch target load optimization passes.
  10742. '-fdump-rtl-bypass'
  10743. Dump after jump bypassing and control flow optimizations.
  10744. '-fdump-rtl-combine'
  10745. Dump after the RTL instruction combination pass.
  10746. '-fdump-rtl-compgotos'
  10747. Dump after duplicating the computed gotos.
  10748. '-fdump-rtl-ce1'
  10749. '-fdump-rtl-ce2'
  10750. '-fdump-rtl-ce3'
  10751. '-fdump-rtl-ce1', '-fdump-rtl-ce2', and '-fdump-rtl-ce3'
  10752. enable dumping after the three if conversion passes.
  10753. '-fdump-rtl-cprop_hardreg'
  10754. Dump after hard register copy propagation.
  10755. '-fdump-rtl-csa'
  10756. Dump after combining stack adjustments.
  10757. '-fdump-rtl-cse1'
  10758. '-fdump-rtl-cse2'
  10759. '-fdump-rtl-cse1' and '-fdump-rtl-cse2' enable dumping after
  10760. the two common subexpression elimination passes.
  10761. '-fdump-rtl-dce'
  10762. Dump after the standalone dead code elimination passes.
  10763. '-fdump-rtl-dbr'
  10764. Dump after delayed branch scheduling.
  10765. '-fdump-rtl-dce1'
  10766. '-fdump-rtl-dce2'
  10767. '-fdump-rtl-dce1' and '-fdump-rtl-dce2' enable dumping after
  10768. the two dead store elimination passes.
  10769. '-fdump-rtl-eh'
  10770. Dump after finalization of EH handling code.
  10771. '-fdump-rtl-eh_ranges'
  10772. Dump after conversion of EH handling range regions.
  10773. '-fdump-rtl-expand'
  10774. Dump after RTL generation.
  10775. '-fdump-rtl-fwprop1'
  10776. '-fdump-rtl-fwprop2'
  10777. '-fdump-rtl-fwprop1' and '-fdump-rtl-fwprop2' enable dumping
  10778. after the two forward propagation passes.
  10779. '-fdump-rtl-gcse1'
  10780. '-fdump-rtl-gcse2'
  10781. '-fdump-rtl-gcse1' and '-fdump-rtl-gcse2' enable dumping after
  10782. global common subexpression elimination.
  10783. '-fdump-rtl-init-regs'
  10784. Dump after the initialization of the registers.
  10785. '-fdump-rtl-initvals'
  10786. Dump after the computation of the initial value sets.
  10787. '-fdump-rtl-into_cfglayout'
  10788. Dump after converting to cfglayout mode.
  10789. '-fdump-rtl-ira'
  10790. Dump after iterated register allocation.
  10791. '-fdump-rtl-jump'
  10792. Dump after the second jump optimization.
  10793. '-fdump-rtl-loop2'
  10794. '-fdump-rtl-loop2' enables dumping after the rtl loop
  10795. optimization passes.
  10796. '-fdump-rtl-mach'
  10797. Dump after performing the machine dependent reorganization
  10798. pass, if that pass exists.
  10799. '-fdump-rtl-mode_sw'
  10800. Dump after removing redundant mode switches.
  10801. '-fdump-rtl-rnreg'
  10802. Dump after register renumbering.
  10803. '-fdump-rtl-outof_cfglayout'
  10804. Dump after converting from cfglayout mode.
  10805. '-fdump-rtl-peephole2'
  10806. Dump after the peephole pass.
  10807. '-fdump-rtl-postreload'
  10808. Dump after post-reload optimizations.
  10809. '-fdump-rtl-pro_and_epilogue'
  10810. Dump after generating the function prologues and epilogues.
  10811. '-fdump-rtl-sched1'
  10812. '-fdump-rtl-sched2'
  10813. '-fdump-rtl-sched1' and '-fdump-rtl-sched2' enable dumping
  10814. after the basic block scheduling passes.
  10815. '-fdump-rtl-ree'
  10816. Dump after sign/zero extension elimination.
  10817. '-fdump-rtl-seqabstr'
  10818. Dump after common sequence discovery.
  10819. '-fdump-rtl-shorten'
  10820. Dump after shortening branches.
  10821. '-fdump-rtl-sibling'
  10822. Dump after sibling call optimizations.
  10823. '-fdump-rtl-split1'
  10824. '-fdump-rtl-split2'
  10825. '-fdump-rtl-split3'
  10826. '-fdump-rtl-split4'
  10827. '-fdump-rtl-split5'
  10828. These options enable dumping after five rounds of instruction
  10829. splitting.
  10830. '-fdump-rtl-sms'
  10831. Dump after modulo scheduling. This pass is only run on some
  10832. architectures.
  10833. '-fdump-rtl-stack'
  10834. Dump after conversion from GCC's "flat register file"
  10835. registers to the x87's stack-like registers. This pass is
  10836. only run on x86 variants.
  10837. '-fdump-rtl-subreg1'
  10838. '-fdump-rtl-subreg2'
  10839. '-fdump-rtl-subreg1' and '-fdump-rtl-subreg2' enable dumping
  10840. after the two subreg expansion passes.
  10841. '-fdump-rtl-unshare'
  10842. Dump after all rtl has been unshared.
  10843. '-fdump-rtl-vartrack'
  10844. Dump after variable tracking.
  10845. '-fdump-rtl-vregs'
  10846. Dump after converting virtual registers to hard registers.
  10847. '-fdump-rtl-web'
  10848. Dump after live range splitting.
  10849. '-fdump-rtl-regclass'
  10850. '-fdump-rtl-subregs_of_mode_init'
  10851. '-fdump-rtl-subregs_of_mode_finish'
  10852. '-fdump-rtl-dfinit'
  10853. '-fdump-rtl-dfinish'
  10854. These dumps are defined but always produce empty files.
  10855. '-da'
  10856. '-fdump-rtl-all'
  10857. Produce all the dumps listed above.
  10858. '-dA'
  10859. Annotate the assembler output with miscellaneous debugging
  10860. information.
  10861. '-dD'
  10862. Dump all macro definitions, at the end of preprocessing, in
  10863. addition to normal output.
  10864. '-dH'
  10865. Produce a core dump whenever an error occurs.
  10866. '-dp'
  10867. Annotate the assembler output with a comment indicating which
  10868. pattern and alternative is used. The length and cost of each
  10869. instruction are also printed.
  10870. '-dP'
  10871. Dump the RTL in the assembler output as a comment before each
  10872. instruction. Also turns on '-dp' annotation.
  10873. '-dx'
  10874. Just generate RTL for a function instead of compiling it.
  10875. Usually used with '-fdump-rtl-expand'.
  10876. '-fdump-noaddr'
  10877. When doing debugging dumps, suppress address output. This makes it
  10878. more feasible to use diff on debugging dumps for compiler
  10879. invocations with different compiler binaries and/or different text
  10880. / bss / data / heap / stack / dso start locations.
  10881. '-freport-bug'
  10882. Collect and dump debug information into a temporary file if an
  10883. internal compiler error (ICE) occurs.
  10884. '-fdump-unnumbered'
  10885. When doing debugging dumps, suppress instruction numbers and
  10886. address output. This makes it more feasible to use diff on
  10887. debugging dumps for compiler invocations with different options, in
  10888. particular with and without '-g'.
  10889. '-fdump-unnumbered-links'
  10890. When doing debugging dumps (see '-d' option above), suppress
  10891. instruction numbers for the links to the previous and next
  10892. instructions in a sequence.
  10893. '-fdump-ipa-SWITCH'
  10894. Control the dumping at various stages of inter-procedural analysis
  10895. language tree to a file. The file name is generated by appending a
  10896. switch specific suffix to the source file name, and the file is
  10897. created in the same directory as the output file. The following
  10898. dumps are possible:
  10899. 'all'
  10900. Enables all inter-procedural analysis dumps.
  10901. 'cgraph'
  10902. Dumps information about call-graph optimization, unused
  10903. function removal, and inlining decisions.
  10904. 'inline'
  10905. Dump after function inlining.
  10906. '-fdump-lang-all'
  10907. '-fdump-lang-SWITCH'
  10908. '-fdump-lang-SWITCH-OPTIONS'
  10909. '-fdump-lang-SWITCH-OPTIONS=FILENAME'
  10910. Control the dumping of language-specific information. The OPTIONS
  10911. and FILENAME portions behave as described in the '-fdump-tree'
  10912. option. The following SWITCH values are accepted:
  10913. 'all'
  10914. Enable all language-specific dumps.
  10915. 'class'
  10916. Dump class hierarchy information. Virtual table information
  10917. is emitted unless ''slim'' is specified. This option is
  10918. applicable to C++ only.
  10919. 'raw'
  10920. Dump the raw internal tree data. This option is applicable to
  10921. C++ only.
  10922. '-fdump-passes'
  10923. Print on 'stderr' the list of optimization passes that are turned
  10924. on and off by the current command-line options.
  10925. '-fdump-statistics-OPTION'
  10926. Enable and control dumping of pass statistics in a separate file.
  10927. The file name is generated by appending a suffix ending in
  10928. '.statistics' to the source file name, and the file is created in
  10929. the same directory as the output file. If the '-OPTION' form is
  10930. used, '-stats' causes counters to be summed over the whole
  10931. compilation unit while '-details' dumps every event as the passes
  10932. generate them. The default with no option is to sum counters for
  10933. each function compiled.
  10934. '-fdump-tree-all'
  10935. '-fdump-tree-SWITCH'
  10936. '-fdump-tree-SWITCH-OPTIONS'
  10937. '-fdump-tree-SWITCH-OPTIONS=FILENAME'
  10938. Control the dumping at various stages of processing the
  10939. intermediate language tree to a file. The file name is generated
  10940. by appending a switch-specific suffix to the source file name, and
  10941. the file is created in the same directory as the output file. In
  10942. case of '=FILENAME' option, the dump is output on the given file
  10943. instead of the auto named dump files. If the '-OPTIONS' form is
  10944. used, OPTIONS is a list of '-' separated options which control the
  10945. details of the dump. Not all options are applicable to all dumps;
  10946. those that are not meaningful are ignored. The following options
  10947. are available
  10948. 'address'
  10949. Print the address of each node. Usually this is not
  10950. meaningful as it changes according to the environment and
  10951. source file. Its primary use is for tying up a dump file with
  10952. a debug environment.
  10953. 'asmname'
  10954. If 'DECL_ASSEMBLER_NAME' has been set for a given decl, use
  10955. that in the dump instead of 'DECL_NAME'. Its primary use is
  10956. ease of use working backward from mangled names in the
  10957. assembly file.
  10958. 'slim'
  10959. When dumping front-end intermediate representations, inhibit
  10960. dumping of members of a scope or body of a function merely
  10961. because that scope has been reached. Only dump such items
  10962. when they are directly reachable by some other path.
  10963. When dumping pretty-printed trees, this option inhibits
  10964. dumping the bodies of control structures.
  10965. When dumping RTL, print the RTL in slim (condensed) form
  10966. instead of the default LISP-like representation.
  10967. 'raw'
  10968. Print a raw representation of the tree. By default, trees are
  10969. pretty-printed into a C-like representation.
  10970. 'details'
  10971. Enable more detailed dumps (not honored by every dump option).
  10972. Also include information from the optimization passes.
  10973. 'stats'
  10974. Enable dumping various statistics about the pass (not honored
  10975. by every dump option).
  10976. 'blocks'
  10977. Enable showing basic block boundaries (disabled in raw dumps).
  10978. 'graph'
  10979. For each of the other indicated dump files
  10980. ('-fdump-rtl-PASS'), dump a representation of the control flow
  10981. graph suitable for viewing with GraphViz to
  10982. 'FILE.PASSID.PASS.dot'. Each function in the file is
  10983. pretty-printed as a subgraph, so that GraphViz can render them
  10984. all in a single plot.
  10985. This option currently only works for RTL dumps, and the RTL is
  10986. always dumped in slim form.
  10987. 'vops'
  10988. Enable showing virtual operands for every statement.
  10989. 'lineno'
  10990. Enable showing line numbers for statements.
  10991. 'uid'
  10992. Enable showing the unique ID ('DECL_UID') for each variable.
  10993. 'verbose'
  10994. Enable showing the tree dump for each statement.
  10995. 'eh'
  10996. Enable showing the EH region number holding each statement.
  10997. 'scev'
  10998. Enable showing scalar evolution analysis details.
  10999. 'optimized'
  11000. Enable showing optimization information (only available in
  11001. certain passes).
  11002. 'missed'
  11003. Enable showing missed optimization information (only available
  11004. in certain passes).
  11005. 'note'
  11006. Enable other detailed optimization information (only available
  11007. in certain passes).
  11008. '=FILENAME'
  11009. Instead of an auto named dump file, output into the given file
  11010. name. The file names 'stdout' and 'stderr' are treated
  11011. specially and are considered already open standard streams.
  11012. For example,
  11013. gcc -O2 -ftree-vectorize -fdump-tree-vect-blocks=foo.dump
  11014. -fdump-tree-pre=/dev/stderr file.c
  11015. outputs vectorizer dump into 'foo.dump', while the PRE dump is
  11016. output on to 'stderr'. If two conflicting dump filenames are
  11017. given for the same pass, then the latter option overrides the
  11018. earlier one.
  11019. 'all'
  11020. Turn on all options, except 'raw', 'slim', 'verbose' and
  11021. 'lineno'.
  11022. 'optall'
  11023. Turn on all optimization options, i.e., 'optimized', 'missed',
  11024. and 'note'.
  11025. To determine what tree dumps are available or find the dump for a
  11026. pass of interest follow the steps below.
  11027. 1. Invoke GCC with '-fdump-passes' and in the 'stderr' output
  11028. look for a code that corresponds to the pass you are
  11029. interested in. For example, the codes 'tree-evrp',
  11030. 'tree-vrp1', and 'tree-vrp2' correspond to the three Value
  11031. Range Propagation passes. The number at the end distinguishes
  11032. distinct invocations of the same pass.
  11033. 2. To enable the creation of the dump file, append the pass code
  11034. to the '-fdump-' option prefix and invoke GCC with it. For
  11035. example, to enable the dump from the Early Value Range
  11036. Propagation pass, invoke GCC with the '-fdump-tree-evrp'
  11037. option. Optionally, you may specify the name of the dump
  11038. file. If you don't specify one, GCC creates as described
  11039. below.
  11040. 3. Find the pass dump in a file whose name is composed of three
  11041. components separated by a period: the name of the source file
  11042. GCC was invoked to compile, a numeric suffix indicating the
  11043. pass number followed by the letter 't' for tree passes (and
  11044. the letter 'r' for RTL passes), and finally the pass code.
  11045. For example, the Early VRP pass dump might be in a file named
  11046. 'myfile.c.038t.evrp' in the current working directory. Note
  11047. that the numeric codes are not stable and may change from one
  11048. version of GCC to another.
  11049. '-fopt-info'
  11050. '-fopt-info-OPTIONS'
  11051. '-fopt-info-OPTIONS=FILENAME'
  11052. Controls optimization dumps from various optimization passes. If
  11053. the '-OPTIONS' form is used, OPTIONS is a list of '-' separated
  11054. option keywords to select the dump details and optimizations.
  11055. The OPTIONS can be divided into two groups: options describing the
  11056. verbosity of the dump, and options describing which optimizations
  11057. should be included. The options from both the groups can be freely
  11058. mixed as they are non-overlapping. However, in case of any
  11059. conflicts, the later options override the earlier options on the
  11060. command line.
  11061. The following options control the dump verbosity:
  11062. 'optimized'
  11063. Print information when an optimization is successfully
  11064. applied. It is up to a pass to decide which information is
  11065. relevant. For example, the vectorizer passes print the source
  11066. location of loops which are successfully vectorized.
  11067. 'missed'
  11068. Print information about missed optimizations. Individual
  11069. passes control which information to include in the output.
  11070. 'note'
  11071. Print verbose information about optimizations, such as certain
  11072. transformations, more detailed messages about decisions etc.
  11073. 'all'
  11074. Print detailed optimization information. This includes
  11075. 'optimized', 'missed', and 'note'.
  11076. One or more of the following option keywords can be used to
  11077. describe a group of optimizations:
  11078. 'ipa'
  11079. Enable dumps from all interprocedural optimizations.
  11080. 'loop'
  11081. Enable dumps from all loop optimizations.
  11082. 'inline'
  11083. Enable dumps from all inlining optimizations.
  11084. 'omp'
  11085. Enable dumps from all OMP (Offloading and Multi Processing)
  11086. optimizations.
  11087. 'vec'
  11088. Enable dumps from all vectorization optimizations.
  11089. 'optall'
  11090. Enable dumps from all optimizations. This is a superset of
  11091. the optimization groups listed above.
  11092. If OPTIONS is omitted, it defaults to 'optimized-optall', which
  11093. means to dump all info about successful optimizations from all the
  11094. passes.
  11095. If the FILENAME is provided, then the dumps from all the applicable
  11096. optimizations are concatenated into the FILENAME. Otherwise the
  11097. dump is output onto 'stderr'. Though multiple '-fopt-info' options
  11098. are accepted, only one of them can include a FILENAME. If other
  11099. filenames are provided then all but the first such option are
  11100. ignored.
  11101. Note that the output FILENAME is overwritten in case of multiple
  11102. translation units. If a combined output from multiple translation
  11103. units is desired, 'stderr' should be used instead.
  11104. In the following example, the optimization info is output to
  11105. 'stderr':
  11106. gcc -O3 -fopt-info
  11107. This example:
  11108. gcc -O3 -fopt-info-missed=missed.all
  11109. outputs missed optimization report from all the passes into
  11110. 'missed.all', and this one:
  11111. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  11112. prints information about missed optimization opportunities from
  11113. vectorization passes on 'stderr'. Note that
  11114. '-fopt-info-vec-missed' is equivalent to '-fopt-info-missed-vec'.
  11115. The order of the optimization group names and message types listed
  11116. after '-fopt-info' does not matter.
  11117. As another example,
  11118. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  11119. outputs information about missed optimizations as well as optimized
  11120. locations from all the inlining passes into 'inline.txt'.
  11121. Finally, consider:
  11122. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  11123. Here the two output filenames 'vec.miss' and 'loop.opt' are in
  11124. conflict since only one output file is allowed. In this case, only
  11125. the first option takes effect and the subsequent options are
  11126. ignored. Thus only 'vec.miss' is produced which contains dumps
  11127. from the vectorizer about missed opportunities.
  11128. '-fsched-verbose=N'
  11129. On targets that use instruction scheduling, this option controls
  11130. the amount of debugging output the scheduler prints to the dump
  11131. files.
  11132. For N greater than zero, '-fsched-verbose' outputs the same
  11133. information as '-fdump-rtl-sched1' and '-fdump-rtl-sched2'. For N
  11134. greater than one, it also output basic block probabilities,
  11135. detailed ready list information and unit/insn info. For N greater
  11136. than two, it includes RTL at abort point, control-flow and regions
  11137. info. And for N over four, '-fsched-verbose' also includes
  11138. dependence info.
  11139. '-fenable-KIND-PASS'
  11140. '-fdisable-KIND-PASS=RANGE-LIST'
  11141. This is a set of options that are used to explicitly disable/enable
  11142. optimization passes. These options are intended for use for
  11143. debugging GCC. Compiler users should use regular options for
  11144. enabling/disabling passes instead.
  11145. '-fdisable-ipa-PASS'
  11146. Disable IPA pass PASS. PASS is the pass name. If the same
  11147. pass is statically invoked in the compiler multiple times, the
  11148. pass name should be appended with a sequential number starting
  11149. from 1.
  11150. '-fdisable-rtl-PASS'
  11151. '-fdisable-rtl-PASS=RANGE-LIST'
  11152. Disable RTL pass PASS. PASS is the pass name. If the same
  11153. pass is statically invoked in the compiler multiple times, the
  11154. pass name should be appended with a sequential number starting
  11155. from 1. RANGE-LIST is a comma-separated list of function
  11156. ranges or assembler names. Each range is a number pair
  11157. separated by a colon. The range is inclusive in both ends.
  11158. If the range is trivial, the number pair can be simplified as
  11159. a single number. If the function's call graph node's UID
  11160. falls within one of the specified ranges, the PASS is disabled
  11161. for that function. The UID is shown in the function header of
  11162. a dump file, and the pass names can be dumped by using option
  11163. '-fdump-passes'.
  11164. '-fdisable-tree-PASS'
  11165. '-fdisable-tree-PASS=RANGE-LIST'
  11166. Disable tree pass PASS. See '-fdisable-rtl' for the
  11167. description of option arguments.
  11168. '-fenable-ipa-PASS'
  11169. Enable IPA pass PASS. PASS is the pass name. If the same
  11170. pass is statically invoked in the compiler multiple times, the
  11171. pass name should be appended with a sequential number starting
  11172. from 1.
  11173. '-fenable-rtl-PASS'
  11174. '-fenable-rtl-PASS=RANGE-LIST'
  11175. Enable RTL pass PASS. See '-fdisable-rtl' for option argument
  11176. description and examples.
  11177. '-fenable-tree-PASS'
  11178. '-fenable-tree-PASS=RANGE-LIST'
  11179. Enable tree pass PASS. See '-fdisable-rtl' for the
  11180. description of option arguments.
  11181. Here are some examples showing uses of these options.
  11182. # disable ccp1 for all functions
  11183. -fdisable-tree-ccp1
  11184. # disable complete unroll for function whose cgraph node uid is 1
  11185. -fenable-tree-cunroll=1
  11186. # disable gcse2 for functions at the following ranges [1,1],
  11187. # [300,400], and [400,1000]
  11188. # disable gcse2 for functions foo and foo2
  11189. -fdisable-rtl-gcse2=foo,foo2
  11190. # disable early inlining
  11191. -fdisable-tree-einline
  11192. # disable ipa inlining
  11193. -fdisable-ipa-inline
  11194. # enable tree full unroll
  11195. -fenable-tree-unroll
  11196. '-fchecking'
  11197. '-fchecking=N'
  11198. Enable internal consistency checking. The default depends on the
  11199. compiler configuration. '-fchecking=2' enables further internal
  11200. consistency checking that might affect code generation.
  11201. '-frandom-seed=STRING'
  11202. This option provides a seed that GCC uses in place of random
  11203. numbers in generating certain symbol names that have to be
  11204. different in every compiled file. It is also used to place unique
  11205. stamps in coverage data files and the object files that produce
  11206. them. You can use the '-frandom-seed' option to produce
  11207. reproducibly identical object files.
  11208. The STRING can either be a number (decimal, octal or hex) or an
  11209. arbitrary string (in which case it's converted to a number by
  11210. computing CRC32).
  11211. The STRING should be different for every file you compile.
  11212. '-save-temps'
  11213. '-save-temps=cwd'
  11214. Store the usual "temporary" intermediate files permanently; place
  11215. them in the current directory and name them based on the source
  11216. file. Thus, compiling 'foo.c' with '-c -save-temps' produces files
  11217. 'foo.i' and 'foo.s', as well as 'foo.o'. This creates a
  11218. preprocessed 'foo.i' output file even though the compiler now
  11219. normally uses an integrated preprocessor.
  11220. When used in combination with the '-x' command-line option,
  11221. '-save-temps' is sensible enough to avoid over writing an input
  11222. source file with the same extension as an intermediate file. The
  11223. corresponding intermediate file may be obtained by renaming the
  11224. source file before using '-save-temps'.
  11225. If you invoke GCC in parallel, compiling several different source
  11226. files that share a common base name in different subdirectories or
  11227. the same source file compiled for multiple output destinations, it
  11228. is likely that the different parallel compilers will interfere with
  11229. each other, and overwrite the temporary files. For instance:
  11230. gcc -save-temps -o outdir1/foo.o indir1/foo.c&
  11231. gcc -save-temps -o outdir2/foo.o indir2/foo.c&
  11232. may result in 'foo.i' and 'foo.o' being written to simultaneously
  11233. by both compilers.
  11234. '-save-temps=obj'
  11235. Store the usual "temporary" intermediate files permanently. If the
  11236. '-o' option is used, the temporary files are based on the object
  11237. file. If the '-o' option is not used, the '-save-temps=obj' switch
  11238. behaves like '-save-temps'.
  11239. For example:
  11240. gcc -save-temps=obj -c foo.c
  11241. gcc -save-temps=obj -c bar.c -o dir/xbar.o
  11242. gcc -save-temps=obj foobar.c -o dir2/yfoobar
  11243. creates 'foo.i', 'foo.s', 'dir/xbar.i', 'dir/xbar.s',
  11244. 'dir2/yfoobar.i', 'dir2/yfoobar.s', and 'dir2/yfoobar.o'.
  11245. '-time[=FILE]'
  11246. Report the CPU time taken by each subprocess in the compilation
  11247. sequence. For C source files, this is the compiler proper and
  11248. assembler (plus the linker if linking is done).
  11249. Without the specification of an output file, the output looks like
  11250. this:
  11251. # cc1 0.12 0.01
  11252. # as 0.00 0.01
  11253. The first number on each line is the "user time", that is time
  11254. spent executing the program itself. The second number is "system
  11255. time", time spent executing operating system routines on behalf of
  11256. the program. Both numbers are in seconds.
  11257. With the specification of an output file, the output is appended to
  11258. the named file, and it looks like this:
  11259. 0.12 0.01 cc1 OPTIONS
  11260. 0.00 0.01 as OPTIONS
  11261. The "user time" and the "system time" are moved before the program
  11262. name, and the options passed to the program are displayed, so that
  11263. one can later tell what file was being compiled, and with which
  11264. options.
  11265. '-fdump-final-insns[=FILE]'
  11266. Dump the final internal representation (RTL) to FILE. If the
  11267. optional argument is omitted (or if FILE is '.'), the name of the
  11268. dump file is determined by appending '.gkd' to the compilation
  11269. output file name.
  11270. '-fcompare-debug[=OPTS]'
  11271. If no error occurs during compilation, run the compiler a second
  11272. time, adding OPTS and '-fcompare-debug-second' to the arguments
  11273. passed to the second compilation. Dump the final internal
  11274. representation in both compilations, and print an error if they
  11275. differ.
  11276. If the equal sign is omitted, the default '-gtoggle' is used.
  11277. The environment variable 'GCC_COMPARE_DEBUG', if defined, non-empty
  11278. and nonzero, implicitly enables '-fcompare-debug'. If
  11279. 'GCC_COMPARE_DEBUG' is defined to a string starting with a dash,
  11280. then it is used for OPTS, otherwise the default '-gtoggle' is used.
  11281. '-fcompare-debug=', with the equal sign but without OPTS, is
  11282. equivalent to '-fno-compare-debug', which disables the dumping of
  11283. the final representation and the second compilation, preventing
  11284. even 'GCC_COMPARE_DEBUG' from taking effect.
  11285. To verify full coverage during '-fcompare-debug' testing, set
  11286. 'GCC_COMPARE_DEBUG' to say '-fcompare-debug-not-overridden', which
  11287. GCC rejects as an invalid option in any actual compilation (rather
  11288. than preprocessing, assembly or linking). To get just a warning,
  11289. setting 'GCC_COMPARE_DEBUG' to '-w%n-fcompare-debug not overridden'
  11290. will do.
  11291. '-fcompare-debug-second'
  11292. This option is implicitly passed to the compiler for the second
  11293. compilation requested by '-fcompare-debug', along with options to
  11294. silence warnings, and omitting other options that would cause the
  11295. compiler to produce output to files or to standard output as a side
  11296. effect. Dump files and preserved temporary files are renamed so as
  11297. to contain the '.gk' additional extension during the second
  11298. compilation, to avoid overwriting those generated by the first.
  11299. When this option is passed to the compiler driver, it causes the
  11300. _first_ compilation to be skipped, which makes it useful for little
  11301. other than debugging the compiler proper.
  11302. '-gtoggle'
  11303. Turn off generation of debug info, if leaving out this option
  11304. generates it, or turn it on at level 2 otherwise. The position of
  11305. this argument in the command line does not matter; it takes effect
  11306. after all other options are processed, and it does so only once, no
  11307. matter how many times it is given. This is mainly intended to be
  11308. used with '-fcompare-debug'.
  11309. '-fvar-tracking-assignments-toggle'
  11310. Toggle '-fvar-tracking-assignments', in the same way that
  11311. '-gtoggle' toggles '-g'.
  11312. '-Q'
  11313. Makes the compiler print out each function name as it is compiled,
  11314. and print some statistics about each pass when it finishes.
  11315. '-ftime-report'
  11316. Makes the compiler print some statistics about the time consumed by
  11317. each pass when it finishes.
  11318. '-ftime-report-details'
  11319. Record the time consumed by infrastructure parts separately for
  11320. each pass.
  11321. '-fira-verbose=N'
  11322. Control the verbosity of the dump file for the integrated register
  11323. allocator. The default value is 5. If the value N is greater or
  11324. equal to 10, the dump output is sent to stderr using the same
  11325. format as N minus 10.
  11326. '-flto-report'
  11327. Prints a report with internal details on the workings of the
  11328. link-time optimizer. The contents of this report vary from version
  11329. to version. It is meant to be useful to GCC developers when
  11330. processing object files in LTO mode (via '-flto').
  11331. Disabled by default.
  11332. '-flto-report-wpa'
  11333. Like '-flto-report', but only print for the WPA phase of Link Time
  11334. Optimization.
  11335. '-fmem-report'
  11336. Makes the compiler print some statistics about permanent memory
  11337. allocation when it finishes.
  11338. '-fmem-report-wpa'
  11339. Makes the compiler print some statistics about permanent memory
  11340. allocation for the WPA phase only.
  11341. '-fpre-ipa-mem-report'
  11342. '-fpost-ipa-mem-report'
  11343. Makes the compiler print some statistics about permanent memory
  11344. allocation before or after interprocedural optimization.
  11345. '-fprofile-report'
  11346. Makes the compiler print some statistics about consistency of the
  11347. (estimated) profile and effect of individual passes.
  11348. '-fstack-usage'
  11349. Makes the compiler output stack usage information for the program,
  11350. on a per-function basis. The filename for the dump is made by
  11351. appending '.su' to the AUXNAME. AUXNAME is generated from the name
  11352. of the output file, if explicitly specified and it is not an
  11353. executable, otherwise it is the basename of the source file. An
  11354. entry is made up of three fields:
  11355. * The name of the function.
  11356. * A number of bytes.
  11357. * One or more qualifiers: 'static', 'dynamic', 'bounded'.
  11358. The qualifier 'static' means that the function manipulates the
  11359. stack statically: a fixed number of bytes are allocated for the
  11360. frame on function entry and released on function exit; no stack
  11361. adjustments are otherwise made in the function. The second field
  11362. is this fixed number of bytes.
  11363. The qualifier 'dynamic' means that the function manipulates the
  11364. stack dynamically: in addition to the static allocation described
  11365. above, stack adjustments are made in the body of the function, for
  11366. example to push/pop arguments around function calls. If the
  11367. qualifier 'bounded' is also present, the amount of these
  11368. adjustments is bounded at compile time and the second field is an
  11369. upper bound of the total amount of stack used by the function. If
  11370. it is not present, the amount of these adjustments is not bounded
  11371. at compile time and the second field only represents the bounded
  11372. part.
  11373. '-fstats'
  11374. Emit statistics about front-end processing at the end of the
  11375. compilation. This option is supported only by the C++ front end,
  11376. and the information is generally only useful to the G++ development
  11377. team.
  11378. '-fdbg-cnt-list'
  11379. Print the name and the counter upper bound for all debug counters.
  11380. '-fdbg-cnt=COUNTER-VALUE-LIST'
  11381. Set the internal debug counter upper bound. COUNTER-VALUE-LIST is
  11382. a comma-separated list of NAME:VALUE pairs which sets the upper
  11383. bound of each debug counter NAME to VALUE. All debug counters have
  11384. the initial upper bound of 'UINT_MAX'; thus 'dbg_cnt' returns true
  11385. always unless the upper bound is set by this option. For example,
  11386. with '-fdbg-cnt=dce:10,tail_call:0', 'dbg_cnt(dce)' returns true
  11387. only for first 10 invocations.
  11388. '-print-file-name=LIBRARY'
  11389. Print the full absolute name of the library file LIBRARY that would
  11390. be used when linking--and don't do anything else. With this
  11391. option, GCC does not compile or link anything; it just prints the
  11392. file name.
  11393. '-print-multi-directory'
  11394. Print the directory name corresponding to the multilib selected by
  11395. any other switches present in the command line. This directory is
  11396. supposed to exist in 'GCC_EXEC_PREFIX'.
  11397. '-print-multi-lib'
  11398. Print the mapping from multilib directory names to compiler
  11399. switches that enable them. The directory name is separated from
  11400. the switches by ';', and each switch starts with an '@' instead of
  11401. the '-', without spaces between multiple switches. This is
  11402. supposed to ease shell processing.
  11403. '-print-multi-os-directory'
  11404. Print the path to OS libraries for the selected multilib, relative
  11405. to some 'lib' subdirectory. If OS libraries are present in the
  11406. 'lib' subdirectory and no multilibs are used, this is usually just
  11407. '.', if OS libraries are present in 'libSUFFIX' sibling directories
  11408. this prints e.g. '../lib64', '../lib' or '../lib32', or if OS
  11409. libraries are present in 'lib/SUBDIR' subdirectories it prints e.g.
  11410. 'amd64', 'sparcv9' or 'ev6'.
  11411. '-print-multiarch'
  11412. Print the path to OS libraries for the selected multiarch, relative
  11413. to some 'lib' subdirectory.
  11414. '-print-prog-name=PROGRAM'
  11415. Like '-print-file-name', but searches for a program such as 'cpp'.
  11416. '-print-libgcc-file-name'
  11417. Same as '-print-file-name=libgcc.a'.
  11418. This is useful when you use '-nostdlib' or '-nodefaultlibs' but you
  11419. do want to link with 'libgcc.a'. You can do:
  11420. gcc -nostdlib FILES... `gcc -print-libgcc-file-name`
  11421. '-print-search-dirs'
  11422. Print the name of the configured installation directory and a list
  11423. of program and library directories 'gcc' searches--and don't do
  11424. anything else.
  11425. This is useful when 'gcc' prints the error message 'installation
  11426. problem, cannot exec cpp0: No such file or directory'. To resolve
  11427. this you either need to put 'cpp0' and the other compiler
  11428. components where 'gcc' expects to find them, or you can set the
  11429. environment variable 'GCC_EXEC_PREFIX' to the directory where you
  11430. installed them. Don't forget the trailing '/'. *Note Environment
  11431. Variables::.
  11432. '-print-sysroot'
  11433. Print the target sysroot directory that is used during compilation.
  11434. This is the target sysroot specified either at configure time or
  11435. using the '--sysroot' option, possibly with an extra suffix that
  11436. depends on compilation options. If no target sysroot is specified,
  11437. the option prints nothing.
  11438. '-print-sysroot-headers-suffix'
  11439. Print the suffix added to the target sysroot when searching for
  11440. headers, or give an error if the compiler is not configured with
  11441. such a suffix--and don't do anything else.
  11442. '-dumpmachine'
  11443. Print the compiler's target machine (for example,
  11444. 'i686-pc-linux-gnu')--and don't do anything else.
  11445. '-dumpversion'
  11446. Print the compiler version (for example, '3.0', '6.3.0' or
  11447. '7')--and don't do anything else. This is the compiler version
  11448. used in filesystem paths, specs, can be depending on how the
  11449. compiler has been configured just a single number (major version),
  11450. two numbers separated by dot (major and minor version) or three
  11451. numbers separated by dots (major, minor and patchlevel version).
  11452. '-dumpfullversion'
  11453. Print the full compiler version, always 3 numbers separated by
  11454. dots, major, minor and patchlevel version.
  11455. '-dumpspecs'
  11456. Print the compiler's built-in specs--and don't do anything else.
  11457. (This is used when GCC itself is being built.) *Note Spec Files::.
  11458. 
  11459. File: gcc.info, Node: Submodel Options, Next: Spec Files, Prev: Developer Options, Up: Invoking GCC
  11460. 3.18 Machine-Dependent Options
  11461. ==============================
  11462. Each target machine supported by GCC can have its own options--for
  11463. example, to allow you to compile for a particular processor variant or
  11464. ABI, or to control optimizations specific to that machine. By
  11465. convention, the names of machine-specific options start with '-m'.
  11466. Some configurations of the compiler also support additional
  11467. target-specific options, usually for compatibility with other compilers
  11468. on the same platform.
  11469. * Menu:
  11470. * AArch64 Options::
  11471. * Adapteva Epiphany Options::
  11472. * ARC Options::
  11473. * ARM Options::
  11474. * AVR Options::
  11475. * Blackfin Options::
  11476. * C6X Options::
  11477. * CRIS Options::
  11478. * CR16 Options::
  11479. * Darwin Options::
  11480. * DEC Alpha Options::
  11481. * FR30 Options::
  11482. * FT32 Options::
  11483. * FRV Options::
  11484. * GNU/Linux Options::
  11485. * H8/300 Options::
  11486. * HPPA Options::
  11487. * IA-64 Options::
  11488. * LM32 Options::
  11489. * M32C Options::
  11490. * M32R/D Options::
  11491. * M680x0 Options::
  11492. * MCore Options::
  11493. * MeP Options::
  11494. * MicroBlaze Options::
  11495. * MIPS Options::
  11496. * MMIX Options::
  11497. * MN10300 Options::
  11498. * Moxie Options::
  11499. * MSP430 Options::
  11500. * NDS32 Options::
  11501. * Nios II Options::
  11502. * Nvidia PTX Options::
  11503. * PDP-11 Options::
  11504. * picoChip Options::
  11505. * PowerPC Options::
  11506. * PowerPC SPE Options::
  11507. * RISC-V Options::
  11508. * RL78 Options::
  11509. * RS/6000 and PowerPC Options::
  11510. * RX Options::
  11511. * S/390 and zSeries Options::
  11512. * Score Options::
  11513. * SH Options::
  11514. * Solaris 2 Options::
  11515. * SPARC Options::
  11516. * SPU Options::
  11517. * System V Options::
  11518. * TILE-Gx Options::
  11519. * TILEPro Options::
  11520. * V850 Options::
  11521. * VAX Options::
  11522. * Visium Options::
  11523. * VMS Options::
  11524. * VxWorks Options::
  11525. * x86 Options::
  11526. * x86 Windows Options::
  11527. * Xstormy16 Options::
  11528. * Xtensa Options::
  11529. * zSeries Options::
  11530. 
  11531. File: gcc.info, Node: AArch64 Options, Next: Adapteva Epiphany Options, Up: Submodel Options
  11532. 3.18.1 AArch64 Options
  11533. ----------------------
  11534. These options are defined for AArch64 implementations:
  11535. '-mabi=NAME'
  11536. Generate code for the specified data model. Permissible values are
  11537. 'ilp32' for SysV-like data model where int, long int and pointers
  11538. are 32 bits, and 'lp64' for SysV-like data model where int is 32
  11539. bits, but long int and pointers are 64 bits.
  11540. The default depends on the specific target configuration. Note
  11541. that the LP64 and ILP32 ABIs are not link-compatible; you must
  11542. compile your entire program with the same ABI, and link with a
  11543. compatible set of libraries.
  11544. '-mbig-endian'
  11545. Generate big-endian code. This is the default when GCC is
  11546. configured for an 'aarch64_be-*-*' target.
  11547. '-mgeneral-regs-only'
  11548. Generate code which uses only the general-purpose registers. This
  11549. will prevent the compiler from using floating-point and Advanced
  11550. SIMD registers but will not impose any restrictions on the
  11551. assembler.
  11552. '-mlittle-endian'
  11553. Generate little-endian code. This is the default when GCC is
  11554. configured for an 'aarch64-*-*' but not an 'aarch64_be-*-*' target.
  11555. '-mcmodel=tiny'
  11556. Generate code for the tiny code model. The program and its
  11557. statically defined symbols must be within 1MB of each other.
  11558. Programs can be statically or dynamically linked.
  11559. '-mcmodel=small'
  11560. Generate code for the small code model. The program and its
  11561. statically defined symbols must be within 4GB of each other.
  11562. Programs can be statically or dynamically linked. This is the
  11563. default code model.
  11564. '-mcmodel=large'
  11565. Generate code for the large code model. This makes no assumptions
  11566. about addresses and sizes of sections. Programs can be statically
  11567. linked only.
  11568. '-mstrict-align'
  11569. Avoid generating memory accesses that may not be aligned on a
  11570. natural object boundary as described in the architecture
  11571. specification.
  11572. '-momit-leaf-frame-pointer'
  11573. '-mno-omit-leaf-frame-pointer'
  11574. Omit or keep the frame pointer in leaf functions. The former
  11575. behavior is the default.
  11576. '-mtls-dialect=desc'
  11577. Use TLS descriptors as the thread-local storage mechanism for
  11578. dynamic accesses of TLS variables. This is the default.
  11579. '-mtls-dialect=traditional'
  11580. Use traditional TLS as the thread-local storage mechanism for
  11581. dynamic accesses of TLS variables.
  11582. '-mtls-size=SIZE'
  11583. Specify bit size of immediate TLS offsets. Valid values are 12,
  11584. 24, 32, 48. This option requires binutils 2.26 or newer.
  11585. '-mfix-cortex-a53-835769'
  11586. '-mno-fix-cortex-a53-835769'
  11587. Enable or disable the workaround for the ARM Cortex-A53 erratum
  11588. number 835769. This involves inserting a NOP instruction between
  11589. memory instructions and 64-bit integer multiply-accumulate
  11590. instructions.
  11591. '-mfix-cortex-a53-843419'
  11592. '-mno-fix-cortex-a53-843419'
  11593. Enable or disable the workaround for the ARM Cortex-A53 erratum
  11594. number 843419. This erratum workaround is made at link time and
  11595. this will only pass the corresponding flag to the linker.
  11596. '-mlow-precision-recip-sqrt'
  11597. '-mno-low-precision-recip-sqrt'
  11598. Enable or disable the reciprocal square root approximation. This
  11599. option only has an effect if '-ffast-math' or
  11600. '-funsafe-math-optimizations' is used as well. Enabling this
  11601. reduces precision of reciprocal square root results to about 16
  11602. bits for single precision and to 32 bits for double precision.
  11603. '-mlow-precision-sqrt'
  11604. '-mno-low-precision-sqrt'
  11605. Enable or disable the square root approximation. This option only
  11606. has an effect if '-ffast-math' or '-funsafe-math-optimizations' is
  11607. used as well. Enabling this reduces precision of square root
  11608. results to about 16 bits for single precision and to 32 bits for
  11609. double precision. If enabled, it implies
  11610. '-mlow-precision-recip-sqrt'.
  11611. '-mlow-precision-div'
  11612. '-mno-low-precision-div'
  11613. Enable or disable the division approximation. This option only has
  11614. an effect if '-ffast-math' or '-funsafe-math-optimizations' is used
  11615. as well. Enabling this reduces precision of division results to
  11616. about 16 bits for single precision and to 32 bits for double
  11617. precision.
  11618. '-march=NAME'
  11619. Specify the name of the target architecture and, optionally, one or
  11620. more feature modifiers. This option has the form
  11621. '-march=ARCH{+[no]FEATURE}*'.
  11622. The permissible values for ARCH are 'armv8-a', 'armv8.1-a',
  11623. 'armv8.2-a', 'armv8.3-a' or 'armv8.4-a' or NATIVE.
  11624. The value 'armv8.4-a' implies 'armv8.3-a' and enables compiler
  11625. support for the ARMv8.4-A architecture extensions.
  11626. The value 'armv8.3-a' implies 'armv8.2-a' and enables compiler
  11627. support for the ARMv8.3-A architecture extensions.
  11628. The value 'armv8.2-a' implies 'armv8.1-a' and enables compiler
  11629. support for the ARMv8.2-A architecture extensions.
  11630. The value 'armv8.1-a' implies 'armv8-a' and enables compiler
  11631. support for the ARMv8.1-A architecture extension. In particular,
  11632. it enables the '+crc', '+lse', and '+rdma' features.
  11633. The value 'native' is available on native AArch64 GNU/Linux and
  11634. causes the compiler to pick the architecture of the host system.
  11635. This option has no effect if the compiler is unable to recognize
  11636. the architecture of the host system,
  11637. The permissible values for FEATURE are listed in the sub-section on
  11638. *note '-march' and '-mcpu' Feature Modifiers:
  11639. aarch64-feature-modifiers. Where conflicting feature modifiers are
  11640. specified, the right-most feature is used.
  11641. GCC uses NAME to determine what kind of instructions it can emit
  11642. when generating assembly code. If '-march' is specified without
  11643. either of '-mtune' or '-mcpu' also being specified, the code is
  11644. tuned to perform well across a range of target processors
  11645. implementing the target architecture.
  11646. '-mtune=NAME'
  11647. Specify the name of the target processor for which GCC should tune
  11648. the performance of the code. Permissible values for this option
  11649. are: 'generic', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  11650. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  11651. 'exynos-m1', 'falkor', 'qdf24xx', 'saphira', 'xgene1', 'vulcan',
  11652. 'thunderx', 'thunderxt88', 'thunderxt88p1', 'thunderxt81',
  11653. 'thunderxt83', 'thunderx2t99', 'cortex-a57.cortex-a53',
  11654. 'cortex-a72.cortex-a53', 'cortex-a73.cortex-a35',
  11655. 'cortex-a73.cortex-a53', 'cortex-a75.cortex-a55', 'native'.
  11656. The values 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  11657. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53',
  11658. 'cortex-a75.cortex-a55' specify that GCC should tune for a
  11659. big.LITTLE system.
  11660. Additionally on native AArch64 GNU/Linux systems the value 'native'
  11661. tunes performance to the host system. This option has no effect if
  11662. the compiler is unable to recognize the processor of the host
  11663. system.
  11664. Where none of '-mtune=', '-mcpu=' or '-march=' are specified, the
  11665. code is tuned to perform well across a range of target processors.
  11666. This option cannot be suffixed by feature modifiers.
  11667. '-mcpu=NAME'
  11668. Specify the name of the target processor, optionally suffixed by
  11669. one or more feature modifiers. This option has the form
  11670. '-mcpu=CPU{+[no]FEATURE}*', where the permissible values for CPU
  11671. are the same as those available for '-mtune'. The permissible
  11672. values for FEATURE are documented in the sub-section on *note
  11673. '-march' and '-mcpu' Feature Modifiers: aarch64-feature-modifiers.
  11674. Where conflicting feature modifiers are specified, the right-most
  11675. feature is used.
  11676. GCC uses NAME to determine what kind of instructions it can emit
  11677. when generating assembly code (as if by '-march') and to determine
  11678. the target processor for which to tune for performance (as if by
  11679. '-mtune'). Where this option is used in conjunction with '-march'
  11680. or '-mtune', those options take precedence over the appropriate
  11681. part of this option.
  11682. '-moverride=STRING'
  11683. Override tuning decisions made by the back-end in response to a
  11684. '-mtune=' switch. The syntax, semantics, and accepted values for
  11685. STRING in this option are not guaranteed to be consistent across
  11686. releases.
  11687. This option is only intended to be useful when developing GCC.
  11688. '-mverbose-cost-dump'
  11689. Enable verbose cost model dumping in the debug dump files. This
  11690. option is provided for use in debugging the compiler.
  11691. '-mpc-relative-literal-loads'
  11692. '-mno-pc-relative-literal-loads'
  11693. Enable or disable PC-relative literal loads. With this option
  11694. literal pools are accessed using a single instruction and emitted
  11695. after each function. This limits the maximum size of functions to
  11696. 1MB. This is enabled by default for '-mcmodel=tiny'.
  11697. '-msign-return-address=SCOPE'
  11698. Select the function scope on which return address signing will be
  11699. applied. Permissible values are 'none', which disables return
  11700. address signing, 'non-leaf', which enables pointer signing for
  11701. functions which are not leaf functions, and 'all', which enables
  11702. pointer signing for all functions. The default value is 'none'.
  11703. '-msve-vector-bits=BITS'
  11704. Specify the number of bits in an SVE vector register. This option
  11705. only has an effect when SVE is enabled.
  11706. GCC supports two forms of SVE code generation: "vector-length
  11707. agnostic" output that works with any size of vector register and
  11708. "vector-length specific" output that allows GCC to make assumptions
  11709. about the vector length when it is useful for optimization reasons.
  11710. The possible values of 'bits' are: 'scalable', '128', '256', '512',
  11711. '1024' and '2048'. Specifying 'scalable' selects vector-length
  11712. agnostic output. At present '-msve-vector-bits=128' also generates
  11713. vector-length agnostic output. All other values generate
  11714. vector-length specific code. The behavior of these values may
  11715. change in future releases and no value except 'scalable' should be
  11716. relied on for producing code that is portable across different
  11717. hardware SVE vector lengths.
  11718. The default is '-msve-vector-bits=scalable', which produces
  11719. vector-length agnostic code.
  11720. 3.18.1.1 '-march' and '-mcpu' Feature Modifiers
  11721. ...............................................
  11722. Feature modifiers used with '-march' and '-mcpu' can be any of the
  11723. following and their inverses 'noFEATURE':
  11724. 'crc'
  11725. Enable CRC extension. This is on by default for
  11726. '-march=armv8.1-a'.
  11727. 'crypto'
  11728. Enable Crypto extension. This also enables Advanced SIMD and
  11729. floating-point instructions.
  11730. 'fp'
  11731. Enable floating-point instructions. This is on by default for all
  11732. possible values for options '-march' and '-mcpu'.
  11733. 'simd'
  11734. Enable Advanced SIMD instructions. This also enables
  11735. floating-point instructions. This is on by default for all
  11736. possible values for options '-march' and '-mcpu'.
  11737. 'sve'
  11738. Enable Scalable Vector Extension instructions. This also enables
  11739. Advanced SIMD and floating-point instructions.
  11740. 'lse'
  11741. Enable Large System Extension instructions. This is on by default
  11742. for '-march=armv8.1-a'.
  11743. 'rdma'
  11744. Enable Round Double Multiply Accumulate instructions. This is on
  11745. by default for '-march=armv8.1-a'.
  11746. 'fp16'
  11747. Enable FP16 extension. This also enables floating-point
  11748. instructions.
  11749. 'fp16fml'
  11750. Enable FP16 fmla extension. This also enables FP16 extensions and
  11751. floating-point instructions. This option is enabled by default for
  11752. '-march=armv8.4-a'. Use of this option with architectures prior to
  11753. Armv8.2-A is not supported.
  11754. 'rcpc'
  11755. Enable the RcPc extension. This does not change code generation
  11756. from GCC, but is passed on to the assembler, enabling inline asm
  11757. statements to use instructions from the RcPc extension.
  11758. 'dotprod'
  11759. Enable the Dot Product extension. This also enables Advanced SIMD
  11760. instructions.
  11761. 'aes'
  11762. Enable the Armv8-a aes and pmull crypto extension. This also
  11763. enables Advanced SIMD instructions.
  11764. 'sha2'
  11765. Enable the Armv8-a sha2 crypto extension. This also enables
  11766. Advanced SIMD instructions.
  11767. 'sha3'
  11768. Enable the sha512 and sha3 crypto extension. This also enables
  11769. Advanced SIMD instructions. Use of this option with architectures
  11770. prior to Armv8.2-A is not supported.
  11771. 'sm4'
  11772. Enable the sm3 and sm4 crypto extension. This also enables
  11773. Advanced SIMD instructions. Use of this option with architectures
  11774. prior to Armv8.2-A is not supported.
  11775. Feature 'crypto' implies 'aes', 'sha2', and 'simd', which implies 'fp'.
  11776. Conversely, 'nofp' implies 'nosimd', which implies 'nocrypto', 'noaes'
  11777. and 'nosha2'.
  11778. 
  11779. File: gcc.info, Node: Adapteva Epiphany Options, Next: ARC Options, Prev: AArch64 Options, Up: Submodel Options
  11780. 3.18.2 Adapteva Epiphany Options
  11781. --------------------------------
  11782. These '-m' options are defined for Adapteva Epiphany:
  11783. '-mhalf-reg-file'
  11784. Don't allocate any register in the range 'r32'...'r63'. That
  11785. allows code to run on hardware variants that lack these registers.
  11786. '-mprefer-short-insn-regs'
  11787. Preferentially allocate registers that allow short instruction
  11788. generation. This can result in increased instruction count, so
  11789. this may either reduce or increase overall code size.
  11790. '-mbranch-cost=NUM'
  11791. Set the cost of branches to roughly NUM "simple" instructions.
  11792. This cost is only a heuristic and is not guaranteed to produce
  11793. consistent results across releases.
  11794. '-mcmove'
  11795. Enable the generation of conditional moves.
  11796. '-mnops=NUM'
  11797. Emit NUM NOPs before every other generated instruction.
  11798. '-mno-soft-cmpsf'
  11799. For single-precision floating-point comparisons, emit an 'fsub'
  11800. instruction and test the flags. This is faster than a software
  11801. comparison, but can get incorrect results in the presence of NaNs,
  11802. or when two different small numbers are compared such that their
  11803. difference is calculated as zero. The default is '-msoft-cmpsf',
  11804. which uses slower, but IEEE-compliant, software comparisons.
  11805. '-mstack-offset=NUM'
  11806. Set the offset between the top of the stack and the stack pointer.
  11807. E.g., a value of 8 means that the eight bytes in the range
  11808. 'sp+0...sp+7' can be used by leaf functions without stack
  11809. allocation. Values other than '8' or '16' are untested and
  11810. unlikely to work. Note also that this option changes the ABI;
  11811. compiling a program with a different stack offset than the
  11812. libraries have been compiled with generally does not work. This
  11813. option can be useful if you want to evaluate if a different stack
  11814. offset would give you better code, but to actually use a different
  11815. stack offset to build working programs, it is recommended to
  11816. configure the toolchain with the appropriate
  11817. '--with-stack-offset=NUM' option.
  11818. '-mno-round-nearest'
  11819. Make the scheduler assume that the rounding mode has been set to
  11820. truncating. The default is '-mround-nearest'.
  11821. '-mlong-calls'
  11822. If not otherwise specified by an attribute, assume all calls might
  11823. be beyond the offset range of the 'b' / 'bl' instructions, and
  11824. therefore load the function address into a register before
  11825. performing a (otherwise direct) call. This is the default.
  11826. '-mshort-calls'
  11827. If not otherwise specified by an attribute, assume all direct calls
  11828. are in the range of the 'b' / 'bl' instructions, so use these
  11829. instructions for direct calls. The default is '-mlong-calls'.
  11830. '-msmall16'
  11831. Assume addresses can be loaded as 16-bit unsigned values. This
  11832. does not apply to function addresses for which '-mlong-calls'
  11833. semantics are in effect.
  11834. '-mfp-mode=MODE'
  11835. Set the prevailing mode of the floating-point unit. This
  11836. determines the floating-point mode that is provided and expected at
  11837. function call and return time. Making this mode match the mode you
  11838. predominantly need at function start can make your programs smaller
  11839. and faster by avoiding unnecessary mode switches.
  11840. MODE can be set to one the following values:
  11841. 'caller'
  11842. Any mode at function entry is valid, and retained or restored
  11843. when the function returns, and when it calls other functions.
  11844. This mode is useful for compiling libraries or other
  11845. compilation units you might want to incorporate into different
  11846. programs with different prevailing FPU modes, and the
  11847. convenience of being able to use a single object file
  11848. outweighs the size and speed overhead for any extra mode
  11849. switching that might be needed, compared with what would be
  11850. needed with a more specific choice of prevailing FPU mode.
  11851. 'truncate'
  11852. This is the mode used for floating-point calculations with
  11853. truncating (i.e. round towards zero) rounding mode. That
  11854. includes conversion from floating point to integer.
  11855. 'round-nearest'
  11856. This is the mode used for floating-point calculations with
  11857. round-to-nearest-or-even rounding mode.
  11858. 'int'
  11859. This is the mode used to perform integer calculations in the
  11860. FPU, e.g. integer multiply, or integer
  11861. multiply-and-accumulate.
  11862. The default is '-mfp-mode=caller'
  11863. '-mnosplit-lohi'
  11864. '-mno-postinc'
  11865. '-mno-postmodify'
  11866. Code generation tweaks that disable, respectively, splitting of
  11867. 32-bit loads, generation of post-increment addresses, and
  11868. generation of post-modify addresses. The defaults are
  11869. 'msplit-lohi', '-mpost-inc', and '-mpost-modify'.
  11870. '-mnovect-double'
  11871. Change the preferred SIMD mode to SImode. The default is
  11872. '-mvect-double', which uses DImode as preferred SIMD mode.
  11873. '-max-vect-align=NUM'
  11874. The maximum alignment for SIMD vector mode types. NUM may be 4 or
  11875. 8. The default is 8. Note that this is an ABI change, even though
  11876. many library function interfaces are unaffected if they don't use
  11877. SIMD vector modes in places that affect size and/or alignment of
  11878. relevant types.
  11879. '-msplit-vecmove-early'
  11880. Split vector moves into single word moves before reload. In theory
  11881. this can give better register allocation, but so far the reverse
  11882. seems to be generally the case.
  11883. '-m1reg-REG'
  11884. Specify a register to hold the constant -1, which makes loading
  11885. small negative constants and certain bitmasks faster. Allowable
  11886. values for REG are 'r43' and 'r63', which specify use of that
  11887. register as a fixed register, and 'none', which means that no
  11888. register is used for this purpose. The default is '-m1reg-none'.
  11889. 
  11890. File: gcc.info, Node: ARC Options, Next: ARM Options, Prev: Adapteva Epiphany Options, Up: Submodel Options
  11891. 3.18.3 ARC Options
  11892. ------------------
  11893. The following options control the architecture variant for which code is
  11894. being compiled:
  11895. '-mbarrel-shifter'
  11896. Generate instructions supported by barrel shifter. This is the
  11897. default unless '-mcpu=ARC601' or '-mcpu=ARCEM' is in effect.
  11898. '-mjli-always'
  11899. Force to call a function using jli_s instruction. This option is
  11900. valid only for ARCv2 architecture.
  11901. '-mcpu=CPU'
  11902. Set architecture type, register usage, and instruction scheduling
  11903. parameters for CPU. There are also shortcut alias options
  11904. available for backward compatibility and convenience. Supported
  11905. values for CPU are
  11906. 'arc600'
  11907. Compile for ARC600. Aliases: '-mA6', '-mARC600'.
  11908. 'arc601'
  11909. Compile for ARC601. Alias: '-mARC601'.
  11910. 'arc700'
  11911. Compile for ARC700. Aliases: '-mA7', '-mARC700'. This is the
  11912. default when configured with '--with-cpu=arc700'.
  11913. 'arcem'
  11914. Compile for ARC EM.
  11915. 'archs'
  11916. Compile for ARC HS.
  11917. 'em'
  11918. Compile for ARC EM CPU with no hardware extensions.
  11919. 'em4'
  11920. Compile for ARC EM4 CPU.
  11921. 'em4_dmips'
  11922. Compile for ARC EM4 DMIPS CPU.
  11923. 'em4_fpus'
  11924. Compile for ARC EM4 DMIPS CPU with the single-precision
  11925. floating-point extension.
  11926. 'em4_fpuda'
  11927. Compile for ARC EM4 DMIPS CPU with single-precision
  11928. floating-point and double assist instructions.
  11929. 'hs'
  11930. Compile for ARC HS CPU with no hardware extensions except the
  11931. atomic instructions.
  11932. 'hs34'
  11933. Compile for ARC HS34 CPU.
  11934. 'hs38'
  11935. Compile for ARC HS38 CPU.
  11936. 'hs38_linux'
  11937. Compile for ARC HS38 CPU with all hardware extensions on.
  11938. 'arc600_norm'
  11939. Compile for ARC 600 CPU with 'norm' instructions enabled.
  11940. 'arc600_mul32x16'
  11941. Compile for ARC 600 CPU with 'norm' and 32x16-bit multiply
  11942. instructions enabled.
  11943. 'arc600_mul64'
  11944. Compile for ARC 600 CPU with 'norm' and 'mul64'-family
  11945. instructions enabled.
  11946. 'arc601_norm'
  11947. Compile for ARC 601 CPU with 'norm' instructions enabled.
  11948. 'arc601_mul32x16'
  11949. Compile for ARC 601 CPU with 'norm' and 32x16-bit multiply
  11950. instructions enabled.
  11951. 'arc601_mul64'
  11952. Compile for ARC 601 CPU with 'norm' and 'mul64'-family
  11953. instructions enabled.
  11954. 'nps400'
  11955. Compile for ARC 700 on NPS400 chip.
  11956. 'em_mini'
  11957. Compile for ARC EM minimalist configuration featuring reduced
  11958. register set.
  11959. '-mdpfp'
  11960. '-mdpfp-compact'
  11961. Generate double-precision FPX instructions, tuned for the compact
  11962. implementation.
  11963. '-mdpfp-fast'
  11964. Generate double-precision FPX instructions, tuned for the fast
  11965. implementation.
  11966. '-mno-dpfp-lrsr'
  11967. Disable 'lr' and 'sr' instructions from using FPX extension aux
  11968. registers.
  11969. '-mea'
  11970. Generate extended arithmetic instructions. Currently only 'divaw',
  11971. 'adds', 'subs', and 'sat16' are supported. This is always enabled
  11972. for '-mcpu=ARC700'.
  11973. '-mno-mpy'
  11974. Do not generate 'mpy'-family instructions for ARC700. This option
  11975. is deprecated.
  11976. '-mmul32x16'
  11977. Generate 32x16-bit multiply and multiply-accumulate instructions.
  11978. '-mmul64'
  11979. Generate 'mul64' and 'mulu64' instructions. Only valid for
  11980. '-mcpu=ARC600'.
  11981. '-mnorm'
  11982. Generate 'norm' instructions. This is the default if
  11983. '-mcpu=ARC700' is in effect.
  11984. '-mspfp'
  11985. '-mspfp-compact'
  11986. Generate single-precision FPX instructions, tuned for the compact
  11987. implementation.
  11988. '-mspfp-fast'
  11989. Generate single-precision FPX instructions, tuned for the fast
  11990. implementation.
  11991. '-msimd'
  11992. Enable generation of ARC SIMD instructions via target-specific
  11993. builtins. Only valid for '-mcpu=ARC700'.
  11994. '-msoft-float'
  11995. This option ignored; it is provided for compatibility purposes
  11996. only. Software floating-point code is emitted by default, and this
  11997. default can overridden by FPX options; '-mspfp', '-mspfp-compact',
  11998. or '-mspfp-fast' for single precision, and '-mdpfp',
  11999. '-mdpfp-compact', or '-mdpfp-fast' for double precision.
  12000. '-mswap'
  12001. Generate 'swap' instructions.
  12002. '-matomic'
  12003. This enables use of the locked load/store conditional extension to
  12004. implement atomic memory built-in functions. Not available for ARC
  12005. 6xx or ARC EM cores.
  12006. '-mdiv-rem'
  12007. Enable 'div' and 'rem' instructions for ARCv2 cores.
  12008. '-mcode-density'
  12009. Enable code density instructions for ARC EM. This option is on by
  12010. default for ARC HS.
  12011. '-mll64'
  12012. Enable double load/store operations for ARC HS cores.
  12013. '-mtp-regno=REGNO'
  12014. Specify thread pointer register number.
  12015. '-mmpy-option=MULTO'
  12016. Compile ARCv2 code with a multiplier design option. You can
  12017. specify the option using either a string or numeric value for
  12018. MULTO. 'wlh1' is the default value. The recognized values are:
  12019. '0'
  12020. 'none'
  12021. No multiplier available.
  12022. '1'
  12023. 'w'
  12024. 16x16 multiplier, fully pipelined. The following instructions
  12025. are enabled: 'mpyw' and 'mpyuw'.
  12026. '2'
  12027. 'wlh1'
  12028. 32x32 multiplier, fully pipelined (1 stage). The following
  12029. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12030. 'mpymu', and 'mpy_s'.
  12031. '3'
  12032. 'wlh2'
  12033. 32x32 multiplier, fully pipelined (2 stages). The following
  12034. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12035. 'mpymu', and 'mpy_s'.
  12036. '4'
  12037. 'wlh3'
  12038. Two 16x16 multipliers, blocking, sequential. The following
  12039. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12040. 'mpymu', and 'mpy_s'.
  12041. '5'
  12042. 'wlh4'
  12043. One 16x16 multiplier, blocking, sequential. The following
  12044. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12045. 'mpymu', and 'mpy_s'.
  12046. '6'
  12047. 'wlh5'
  12048. One 32x4 multiplier, blocking, sequential. The following
  12049. instructions are additionally enabled: 'mpy', 'mpyu', 'mpym',
  12050. 'mpymu', and 'mpy_s'.
  12051. '7'
  12052. 'plus_dmpy'
  12053. ARC HS SIMD support.
  12054. '8'
  12055. 'plus_macd'
  12056. ARC HS SIMD support.
  12057. '9'
  12058. 'plus_qmacw'
  12059. ARC HS SIMD support.
  12060. This option is only available for ARCv2 cores.
  12061. '-mfpu=FPU'
  12062. Enables support for specific floating-point hardware extensions for
  12063. ARCv2 cores. Supported values for FPU are:
  12064. 'fpus'
  12065. Enables support for single-precision floating-point hardware
  12066. extensions.
  12067. 'fpud'
  12068. Enables support for double-precision floating-point hardware
  12069. extensions. The single-precision floating-point extension is
  12070. also enabled. Not available for ARC EM.
  12071. 'fpuda'
  12072. Enables support for double-precision floating-point hardware
  12073. extensions using double-precision assist instructions. The
  12074. single-precision floating-point extension is also enabled.
  12075. This option is only available for ARC EM.
  12076. 'fpuda_div'
  12077. Enables support for double-precision floating-point hardware
  12078. extensions using double-precision assist instructions. The
  12079. single-precision floating-point, square-root, and divide
  12080. extensions are also enabled. This option is only available
  12081. for ARC EM.
  12082. 'fpuda_fma'
  12083. Enables support for double-precision floating-point hardware
  12084. extensions using double-precision assist instructions. The
  12085. single-precision floating-point and fused multiply and add
  12086. hardware extensions are also enabled. This option is only
  12087. available for ARC EM.
  12088. 'fpuda_all'
  12089. Enables support for double-precision floating-point hardware
  12090. extensions using double-precision assist instructions. All
  12091. single-precision floating-point hardware extensions are also
  12092. enabled. This option is only available for ARC EM.
  12093. 'fpus_div'
  12094. Enables support for single-precision floating-point,
  12095. square-root and divide hardware extensions.
  12096. 'fpud_div'
  12097. Enables support for double-precision floating-point,
  12098. square-root and divide hardware extensions. This option
  12099. includes option 'fpus_div'. Not available for ARC EM.
  12100. 'fpus_fma'
  12101. Enables support for single-precision floating-point and fused
  12102. multiply and add hardware extensions.
  12103. 'fpud_fma'
  12104. Enables support for double-precision floating-point and fused
  12105. multiply and add hardware extensions. This option includes
  12106. option 'fpus_fma'. Not available for ARC EM.
  12107. 'fpus_all'
  12108. Enables support for all single-precision floating-point
  12109. hardware extensions.
  12110. 'fpud_all'
  12111. Enables support for all single- and double-precision
  12112. floating-point hardware extensions. Not available for ARC EM.
  12113. '-mirq-ctrl-saved=REGISTER-RANGE, BLINK, LP_COUNT'
  12114. Specifies general-purposes registers that the processor
  12115. automatically saves/restores on interrupt entry and exit.
  12116. REGISTER-RANGE is specified as two registers separated by a dash.
  12117. The register range always starts with 'r0', the upper limit is 'fp'
  12118. register. BLINK and LP_COUNT are optional. This option is only
  12119. valid for ARC EM and ARC HS cores.
  12120. '-mrgf-banked-regs=NUMBER'
  12121. Specifies the number of registers replicated in second register
  12122. bank on entry to fast interrupt. Fast interrupts are interrupts
  12123. with the highest priority level P0. These interrupts save only PC
  12124. and STATUS32 registers to avoid memory transactions during
  12125. interrupt entry and exit sequences. Use this option when you are
  12126. using fast interrupts in an ARC V2 family processor. Permitted
  12127. values are 4, 8, 16, and 32.
  12128. '-mlpc-width=WIDTH'
  12129. Specify the width of the 'lp_count' register. Valid values for
  12130. WIDTH are 8, 16, 20, 24, 28 and 32 bits. The default width is
  12131. fixed to 32 bits. If the width is less than 32, the compiler does
  12132. not attempt to transform loops in your program to use the
  12133. zero-delay loop mechanism unless it is known that the 'lp_count'
  12134. register can hold the required loop-counter value. Depending on
  12135. the width specified, the compiler and run-time library might
  12136. continue to use the loop mechanism for various needs. This option
  12137. defines macro '__ARC_LPC_WIDTH__' with the value of WIDTH.
  12138. '-mrf16'
  12139. This option instructs the compiler to generate code for a 16-entry
  12140. register file. This option defines the '__ARC_RF16__' preprocessor
  12141. macro.
  12142. The following options are passed through to the assembler, and also
  12143. define preprocessor macro symbols.
  12144. '-mdsp-packa'
  12145. Passed down to the assembler to enable the DSP Pack A extensions.
  12146. Also sets the preprocessor symbol '__Xdsp_packa'. This option is
  12147. deprecated.
  12148. '-mdvbf'
  12149. Passed down to the assembler to enable the dual Viterbi butterfly
  12150. extension. Also sets the preprocessor symbol '__Xdvbf'. This
  12151. option is deprecated.
  12152. '-mlock'
  12153. Passed down to the assembler to enable the locked load/store
  12154. conditional extension. Also sets the preprocessor symbol
  12155. '__Xlock'.
  12156. '-mmac-d16'
  12157. Passed down to the assembler. Also sets the preprocessor symbol
  12158. '__Xxmac_d16'. This option is deprecated.
  12159. '-mmac-24'
  12160. Passed down to the assembler. Also sets the preprocessor symbol
  12161. '__Xxmac_24'. This option is deprecated.
  12162. '-mrtsc'
  12163. Passed down to the assembler to enable the 64-bit time-stamp
  12164. counter extension instruction. Also sets the preprocessor symbol
  12165. '__Xrtsc'. This option is deprecated.
  12166. '-mswape'
  12167. Passed down to the assembler to enable the swap byte ordering
  12168. extension instruction. Also sets the preprocessor symbol
  12169. '__Xswape'.
  12170. '-mtelephony'
  12171. Passed down to the assembler to enable dual- and single-operand
  12172. instructions for telephony. Also sets the preprocessor symbol
  12173. '__Xtelephony'. This option is deprecated.
  12174. '-mxy'
  12175. Passed down to the assembler to enable the XY memory extension.
  12176. Also sets the preprocessor symbol '__Xxy'.
  12177. The following options control how the assembly code is annotated:
  12178. '-misize'
  12179. Annotate assembler instructions with estimated addresses.
  12180. '-mannotate-align'
  12181. Explain what alignment considerations lead to the decision to make
  12182. an instruction short or long.
  12183. The following options are passed through to the linker:
  12184. '-marclinux'
  12185. Passed through to the linker, to specify use of the 'arclinux'
  12186. emulation. This option is enabled by default in tool chains built
  12187. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  12188. profiling is not requested.
  12189. '-marclinux_prof'
  12190. Passed through to the linker, to specify use of the 'arclinux_prof'
  12191. emulation. This option is enabled by default in tool chains built
  12192. for 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets when
  12193. profiling is requested.
  12194. The following options control the semantics of generated code:
  12195. '-mlong-calls'
  12196. Generate calls as register indirect calls, thus providing access to
  12197. the full 32-bit address range.
  12198. '-mmedium-calls'
  12199. Don't use less than 25-bit addressing range for calls, which is the
  12200. offset available for an unconditional branch-and-link instruction.
  12201. Conditional execution of function calls is suppressed, to allow use
  12202. of the 25-bit range, rather than the 21-bit range with conditional
  12203. branch-and-link. This is the default for tool chains built for
  12204. 'arc-linux-uclibc' and 'arceb-linux-uclibc' targets.
  12205. '-G NUM'
  12206. Put definitions of externally-visible data in a small data section
  12207. if that data is no bigger than NUM bytes. The default value of NUM
  12208. is 4 for any ARC configuration, or 8 when we have double load/store
  12209. operations.
  12210. '-mno-sdata'
  12211. Do not generate sdata references. This is the default for tool
  12212. chains built for 'arc-linux-uclibc' and 'arceb-linux-uclibc'
  12213. targets.
  12214. '-mvolatile-cache'
  12215. Use ordinarily cached memory accesses for volatile references.
  12216. This is the default.
  12217. '-mno-volatile-cache'
  12218. Enable cache bypass for volatile references.
  12219. The following options fine tune code generation:
  12220. '-malign-call'
  12221. Do alignment optimizations for call instructions.
  12222. '-mauto-modify-reg'
  12223. Enable the use of pre/post modify with register displacement.
  12224. '-mbbit-peephole'
  12225. Enable bbit peephole2.
  12226. '-mno-brcc'
  12227. This option disables a target-specific pass in 'arc_reorg' to
  12228. generate compare-and-branch ('brCC') instructions. It has no
  12229. effect on generation of these instructions driven by the combiner
  12230. pass.
  12231. '-mcase-vector-pcrel'
  12232. Use PC-relative switch case tables to enable case table shortening.
  12233. This is the default for '-Os'.
  12234. '-mcompact-casesi'
  12235. Enable compact 'casesi' pattern. This is the default for '-Os',
  12236. and only available for ARCv1 cores.
  12237. '-mno-cond-exec'
  12238. Disable the ARCompact-specific pass to generate conditional
  12239. execution instructions.
  12240. Due to delay slot scheduling and interactions between operand
  12241. numbers, literal sizes, instruction lengths, and the support for
  12242. conditional execution, the target-independent pass to generate
  12243. conditional execution is often lacking, so the ARC port has kept a
  12244. special pass around that tries to find more conditional execution
  12245. generation opportunities after register allocation, branch
  12246. shortening, and delay slot scheduling have been done. This pass
  12247. generally, but not always, improves performance and code size, at
  12248. the cost of extra compilation time, which is why there is an option
  12249. to switch it off. If you have a problem with call instructions
  12250. exceeding their allowable offset range because they are
  12251. conditionalized, you should consider using '-mmedium-calls'
  12252. instead.
  12253. '-mearly-cbranchsi'
  12254. Enable pre-reload use of the 'cbranchsi' pattern.
  12255. '-mexpand-adddi'
  12256. Expand 'adddi3' and 'subdi3' at RTL generation time into 'add.f',
  12257. 'adc' etc. This option is deprecated.
  12258. '-mindexed-loads'
  12259. Enable the use of indexed loads. This can be problematic because
  12260. some optimizers then assume that indexed stores exist, which is not
  12261. the case.
  12262. '-mlra'
  12263. Enable Local Register Allocation. This is still experimental for
  12264. ARC, so by default the compiler uses standard reload (i.e.
  12265. '-mno-lra').
  12266. '-mlra-priority-none'
  12267. Don't indicate any priority for target registers.
  12268. '-mlra-priority-compact'
  12269. Indicate target register priority for r0..r3 / r12..r15.
  12270. '-mlra-priority-noncompact'
  12271. Reduce target register priority for r0..r3 / r12..r15.
  12272. '-mno-millicode'
  12273. When optimizing for size (using '-Os'), prologues and epilogues
  12274. that have to save or restore a large number of registers are often
  12275. shortened by using call to a special function in libgcc; this is
  12276. referred to as a _millicode_ call. As these calls can pose
  12277. performance issues, and/or cause linking issues when linking in a
  12278. nonstandard way, this option is provided to turn off millicode call
  12279. generation.
  12280. '-mmixed-code'
  12281. Tweak register allocation to help 16-bit instruction generation.
  12282. This generally has the effect of decreasing the average instruction
  12283. size while increasing the instruction count.
  12284. '-mq-class'
  12285. Enable 'q' instruction alternatives. This is the default for
  12286. '-Os'.
  12287. '-mRcq'
  12288. Enable 'Rcq' constraint handling. Most short code generation
  12289. depends on this. This is the default.
  12290. '-mRcw'
  12291. Enable 'Rcw' constraint handling. Most ccfsm condexec mostly
  12292. depends on this. This is the default.
  12293. '-msize-level=LEVEL'
  12294. Fine-tune size optimization with regards to instruction lengths and
  12295. alignment. The recognized values for LEVEL are:
  12296. '0'
  12297. No size optimization. This level is deprecated and treated
  12298. like '1'.
  12299. '1'
  12300. Short instructions are used opportunistically.
  12301. '2'
  12302. In addition, alignment of loops and of code after barriers are
  12303. dropped.
  12304. '3'
  12305. In addition, optional data alignment is dropped, and the
  12306. option 'Os' is enabled.
  12307. This defaults to '3' when '-Os' is in effect. Otherwise, the
  12308. behavior when this is not set is equivalent to level '1'.
  12309. '-mtune=CPU'
  12310. Set instruction scheduling parameters for CPU, overriding any
  12311. implied by '-mcpu='.
  12312. Supported values for CPU are
  12313. 'ARC600'
  12314. Tune for ARC600 CPU.
  12315. 'ARC601'
  12316. Tune for ARC601 CPU.
  12317. 'ARC700'
  12318. Tune for ARC700 CPU with standard multiplier block.
  12319. 'ARC700-xmac'
  12320. Tune for ARC700 CPU with XMAC block.
  12321. 'ARC725D'
  12322. Tune for ARC725D CPU.
  12323. 'ARC750D'
  12324. Tune for ARC750D CPU.
  12325. '-mmultcost=NUM'
  12326. Cost to assume for a multiply instruction, with '4' being equal to
  12327. a normal instruction.
  12328. '-munalign-prob-threshold=PROBABILITY'
  12329. Set probability threshold for unaligning branches. When tuning for
  12330. 'ARC700' and optimizing for speed, branches without filled delay
  12331. slot are preferably emitted unaligned and long, unless profiling
  12332. indicates that the probability for the branch to be taken is below
  12333. PROBABILITY. *Note Cross-profiling::. The default is
  12334. (REG_BR_PROB_BASE/2), i.e. 5000.
  12335. The following options are maintained for backward compatibility, but
  12336. are now deprecated and will be removed in a future release:
  12337. '-margonaut'
  12338. Obsolete FPX.
  12339. '-mbig-endian'
  12340. '-EB'
  12341. Compile code for big-endian targets. Use of these options is now
  12342. deprecated. Big-endian code is supported by configuring GCC to
  12343. build 'arceb-elf32' and 'arceb-linux-uclibc' targets, for which big
  12344. endian is the default.
  12345. '-mlittle-endian'
  12346. '-EL'
  12347. Compile code for little-endian targets. Use of these options is
  12348. now deprecated. Little-endian code is supported by configuring GCC
  12349. to build 'arc-elf32' and 'arc-linux-uclibc' targets, for which
  12350. little endian is the default.
  12351. '-mbarrel_shifter'
  12352. Replaced by '-mbarrel-shifter'.
  12353. '-mdpfp_compact'
  12354. Replaced by '-mdpfp-compact'.
  12355. '-mdpfp_fast'
  12356. Replaced by '-mdpfp-fast'.
  12357. '-mdsp_packa'
  12358. Replaced by '-mdsp-packa'.
  12359. '-mEA'
  12360. Replaced by '-mea'.
  12361. '-mmac_24'
  12362. Replaced by '-mmac-24'.
  12363. '-mmac_d16'
  12364. Replaced by '-mmac-d16'.
  12365. '-mspfp_compact'
  12366. Replaced by '-mspfp-compact'.
  12367. '-mspfp_fast'
  12368. Replaced by '-mspfp-fast'.
  12369. '-mtune=CPU'
  12370. Values 'arc600', 'arc601', 'arc700' and 'arc700-xmac' for CPU are
  12371. replaced by 'ARC600', 'ARC601', 'ARC700' and 'ARC700-xmac'
  12372. respectively.
  12373. '-multcost=NUM'
  12374. Replaced by '-mmultcost'.
  12375. 
  12376. File: gcc.info, Node: ARM Options, Next: AVR Options, Prev: ARC Options, Up: Submodel Options
  12377. 3.18.4 ARM Options
  12378. ------------------
  12379. These '-m' options are defined for the ARM port:
  12380. '-mabi=NAME'
  12381. Generate code for the specified ABI. Permissible values are:
  12382. 'apcs-gnu', 'atpcs', 'aapcs', 'aapcs-linux' and 'iwmmxt'.
  12383. '-mapcs-frame'
  12384. Generate a stack frame that is compliant with the ARM Procedure
  12385. Call Standard for all functions, even if this is not strictly
  12386. necessary for correct execution of the code. Specifying
  12387. '-fomit-frame-pointer' with this option causes the stack frames not
  12388. to be generated for leaf functions. The default is
  12389. '-mno-apcs-frame'. This option is deprecated.
  12390. '-mapcs'
  12391. This is a synonym for '-mapcs-frame' and is deprecated.
  12392. '-mthumb-interwork'
  12393. Generate code that supports calling between the ARM and Thumb
  12394. instruction sets. Without this option, on pre-v5 architectures,
  12395. the two instruction sets cannot be reliably used inside one
  12396. program. The default is '-mno-thumb-interwork', since slightly
  12397. larger code is generated when '-mthumb-interwork' is specified. In
  12398. AAPCS configurations this option is meaningless.
  12399. '-mno-sched-prolog'
  12400. Prevent the reordering of instructions in the function prologue, or
  12401. the merging of those instruction with the instructions in the
  12402. function's body. This means that all functions start with a
  12403. recognizable set of instructions (or in fact one of a choice from a
  12404. small set of different function prologues), and this information
  12405. can be used to locate the start of functions inside an executable
  12406. piece of code. The default is '-msched-prolog'.
  12407. '-mfloat-abi=NAME'
  12408. Specifies which floating-point ABI to use. Permissible values are:
  12409. 'soft', 'softfp' and 'hard'.
  12410. Specifying 'soft' causes GCC to generate output containing library
  12411. calls for floating-point operations. 'softfp' allows the
  12412. generation of code using hardware floating-point instructions, but
  12413. still uses the soft-float calling conventions. 'hard' allows
  12414. generation of floating-point instructions and uses FPU-specific
  12415. calling conventions.
  12416. The default depends on the specific target configuration. Note
  12417. that the hard-float and soft-float ABIs are not link-compatible;
  12418. you must compile your entire program with the same ABI, and link
  12419. with a compatible set of libraries.
  12420. '-mlittle-endian'
  12421. Generate code for a processor running in little-endian mode. This
  12422. is the default for all standard configurations.
  12423. '-mbig-endian'
  12424. Generate code for a processor running in big-endian mode; the
  12425. default is to compile code for a little-endian processor.
  12426. '-mbe8'
  12427. '-mbe32'
  12428. When linking a big-endian image select between BE8 and BE32
  12429. formats. The option has no effect for little-endian images and is
  12430. ignored. The default is dependent on the selected target
  12431. architecture. For ARMv6 and later architectures the default is
  12432. BE8, for older architectures the default is BE32. BE32 format has
  12433. been deprecated by ARM.
  12434. '-march=NAME[+extension...]'
  12435. This specifies the name of the target ARM architecture. GCC uses
  12436. this name to determine what kind of instructions it can emit when
  12437. generating assembly code. This option can be used in conjunction
  12438. with or instead of the '-mcpu=' option.
  12439. Permissible names are: 'armv4t', 'armv5t', 'armv5te', 'armv6',
  12440. 'armv6j', 'armv6k', 'armv6kz', 'armv6t2', 'armv6z', 'armv6zk',
  12441. 'armv7', 'armv7-a', 'armv7ve', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  12442. 'armv8.3-a', 'armv8.4-a', 'armv7-r', 'armv8-r', 'armv6-m',
  12443. 'armv6s-m', 'armv7-m', 'armv7e-m', 'armv8-m.base', 'armv8-m.main',
  12444. 'iwmmxt' and 'iwmmxt2'.
  12445. Additionally, the following architectures, which lack support for
  12446. the Thumb execution state, are recognized but support is
  12447. deprecated: 'armv2', 'armv2a', 'armv3', 'armv3m', 'armv4', 'armv5'
  12448. and 'armv5e'.
  12449. Many of the architectures support extensions. These can be added
  12450. by appending '+EXTENSION' to the architecture name. Extension
  12451. options are processed in order and capabilities accumulate. An
  12452. extension will also enable any necessary base extensions upon which
  12453. it depends. For example, the '+crypto' extension will always
  12454. enable the '+simd' extension. The exception to the additive
  12455. construction is for extensions that are prefixed with '+no...':
  12456. these extensions disable the specified option and any other
  12457. extensions that may depend on the presence of that extension.
  12458. For example, '-march=armv7-a+simd+nofp+vfpv4' is equivalent to
  12459. writing '-march=armv7-a+vfpv4' since the '+simd' option is entirely
  12460. disabled by the '+nofp' option that follows it.
  12461. Most extension names are generically named, but have an effect that
  12462. is dependent upon the architecture to which it is applied. For
  12463. example, the '+simd' option can be applied to both 'armv7-a' and
  12464. 'armv8-a' architectures, but will enable the original ARMv7-A
  12465. Advanced SIMD (Neon) extensions for 'armv7-a' and the ARMv8-A
  12466. variant for 'armv8-a'.
  12467. The table below lists the supported extensions for each
  12468. architecture. Architectures not mentioned do not support any
  12469. extensions.
  12470. 'armv5e'
  12471. 'armv5te'
  12472. 'armv6'
  12473. 'armv6j'
  12474. 'armv6k'
  12475. 'armv6kz'
  12476. 'armv6t2'
  12477. 'armv6z'
  12478. 'armv6zk'
  12479. '+fp'
  12480. The VFPv2 floating-point instructions. The extension
  12481. '+vfpv2' can be used as an alias for this extension.
  12482. '+nofp'
  12483. Disable the floating-point instructions.
  12484. 'armv7'
  12485. The common subset of the ARMv7-A, ARMv7-R and ARMv7-M
  12486. architectures.
  12487. '+fp'
  12488. The VFPv3 floating-point instructions, with 16
  12489. double-precision registers. The extension '+vfpv3-d16'
  12490. can be used as an alias for this extension. Note that
  12491. floating-point is not supported by the base ARMv7-M
  12492. architecture, but is compatible with both the ARMv7-A and
  12493. ARMv7-R architectures.
  12494. '+nofp'
  12495. Disable the floating-point instructions.
  12496. 'armv7-a'
  12497. '+mp'
  12498. The multiprocessing extension.
  12499. '+sec'
  12500. The security extension.
  12501. '+fp'
  12502. The VFPv3 floating-point instructions, with 16
  12503. double-precision registers. The extension '+vfpv3-d16'
  12504. can be used as an alias for this extension.
  12505. '+simd'
  12506. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  12507. instructions. The extensions '+neon' and '+neon-vfpv3'
  12508. can be used as aliases for this extension.
  12509. '+vfpv3'
  12510. The VFPv3 floating-point instructions, with 32
  12511. double-precision registers.
  12512. '+vfpv3-d16-fp16'
  12513. The VFPv3 floating-point instructions, with 16
  12514. double-precision registers and the half-precision
  12515. floating-point conversion operations.
  12516. '+vfpv3-fp16'
  12517. The VFPv3 floating-point instructions, with 32
  12518. double-precision registers and the half-precision
  12519. floating-point conversion operations.
  12520. '+vfpv4-d16'
  12521. The VFPv4 floating-point instructions, with 16
  12522. double-precision registers.
  12523. '+vfpv4'
  12524. The VFPv4 floating-point instructions, with 32
  12525. double-precision registers.
  12526. '+neon-fp16'
  12527. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  12528. instructions, with the half-precision floating-point
  12529. conversion operations.
  12530. '+neon-vfpv4'
  12531. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  12532. instructions.
  12533. '+nosimd'
  12534. Disable the Advanced SIMD instructions (does not disable
  12535. floating point).
  12536. '+nofp'
  12537. Disable the floating-point and Advanced SIMD
  12538. instructions.
  12539. 'armv7ve'
  12540. The extended version of the ARMv7-A architecture with support
  12541. for virtualization.
  12542. '+fp'
  12543. The VFPv4 floating-point instructions, with 16
  12544. double-precision registers. The extension '+vfpv4-d16'
  12545. can be used as an alias for this extension.
  12546. '+simd'
  12547. The Advanced SIMD (Neon) v2 and the VFPv4 floating-point
  12548. instructions. The extension '+neon-vfpv4' can be used as
  12549. an alias for this extension.
  12550. '+vfpv3-d16'
  12551. The VFPv3 floating-point instructions, with 16
  12552. double-precision registers.
  12553. '+vfpv3'
  12554. The VFPv3 floating-point instructions, with 32
  12555. double-precision registers.
  12556. '+vfpv3-d16-fp16'
  12557. The VFPv3 floating-point instructions, with 16
  12558. double-precision registers and the half-precision
  12559. floating-point conversion operations.
  12560. '+vfpv3-fp16'
  12561. The VFPv3 floating-point instructions, with 32
  12562. double-precision registers and the half-precision
  12563. floating-point conversion operations.
  12564. '+vfpv4-d16'
  12565. The VFPv4 floating-point instructions, with 16
  12566. double-precision registers.
  12567. '+vfpv4'
  12568. The VFPv4 floating-point instructions, with 32
  12569. double-precision registers.
  12570. '+neon'
  12571. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  12572. instructions. The extension '+neon-vfpv3' can be used as
  12573. an alias for this extension.
  12574. '+neon-fp16'
  12575. The Advanced SIMD (Neon) v1 and the VFPv3 floating-point
  12576. instructions, with the half-precision floating-point
  12577. conversion operations.
  12578. '+nosimd'
  12579. Disable the Advanced SIMD instructions (does not disable
  12580. floating point).
  12581. '+nofp'
  12582. Disable the floating-point and Advanced SIMD
  12583. instructions.
  12584. 'armv8-a'
  12585. '+crc'
  12586. The Cyclic Redundancy Check (CRC) instructions.
  12587. '+simd'
  12588. The ARMv8-A Advanced SIMD and floating-point
  12589. instructions.
  12590. '+crypto'
  12591. The cryptographic instructions.
  12592. '+nocrypto'
  12593. Disable the cryptographic instructions.
  12594. '+nofp'
  12595. Disable the floating-point, Advanced SIMD and
  12596. cryptographic instructions.
  12597. 'armv8.1-a'
  12598. '+simd'
  12599. The ARMv8.1-A Advanced SIMD and floating-point
  12600. instructions.
  12601. '+crypto'
  12602. The cryptographic instructions. This also enables the
  12603. Advanced SIMD and floating-point instructions.
  12604. '+nocrypto'
  12605. Disable the cryptographic instructions.
  12606. '+nofp'
  12607. Disable the floating-point, Advanced SIMD and
  12608. cryptographic instructions.
  12609. 'armv8.2-a'
  12610. 'armv8.3-a'
  12611. '+fp16'
  12612. The half-precision floating-point data processing
  12613. instructions. This also enables the Advanced SIMD and
  12614. floating-point instructions.
  12615. '+fp16fml'
  12616. The half-precision floating-point fmla extension. This
  12617. also enables the half-precision floating-point extension
  12618. and Advanced SIMD and floating-point instructions.
  12619. '+simd'
  12620. The ARMv8.1-A Advanced SIMD and floating-point
  12621. instructions.
  12622. '+crypto'
  12623. The cryptographic instructions. This also enables the
  12624. Advanced SIMD and floating-point instructions.
  12625. '+dotprod'
  12626. Enable the Dot Product extension. This also enables
  12627. Advanced SIMD instructions.
  12628. '+nocrypto'
  12629. Disable the cryptographic extension.
  12630. '+nofp'
  12631. Disable the floating-point, Advanced SIMD and
  12632. cryptographic instructions.
  12633. 'armv8.4-a'
  12634. '+fp16'
  12635. The half-precision floating-point data processing
  12636. instructions. This also enables the Advanced SIMD and
  12637. floating-point instructions as well as the Dot Product
  12638. extension and the half-precision floating-point fmla
  12639. extension.
  12640. '+simd'
  12641. The ARMv8.3-A Advanced SIMD and floating-point
  12642. instructions as well as the Dot Product extension.
  12643. '+crypto'
  12644. The cryptographic instructions. This also enables the
  12645. Advanced SIMD and floating-point instructions as well as
  12646. the Dot Product extension.
  12647. '+nocrypto'
  12648. Disable the cryptographic extension.
  12649. '+nofp'
  12650. Disable the floating-point, Advanced SIMD and
  12651. cryptographic instructions.
  12652. 'armv7-r'
  12653. '+fp.sp'
  12654. The single-precision VFPv3 floating-point instructions.
  12655. The extension '+vfpv3xd' can be used as an alias for this
  12656. extension.
  12657. '+fp'
  12658. The VFPv3 floating-point instructions with 16
  12659. double-precision registers. The extension +vfpv3-d16 can
  12660. be used as an alias for this extension.
  12661. '+vfpv3xd-d16-fp16'
  12662. The single-precision VFPv3 floating-point instructions
  12663. with 16 double-precision registers and the half-precision
  12664. floating-point conversion operations.
  12665. '+vfpv3-d16-fp16'
  12666. The VFPv3 floating-point instructions, with 16
  12667. double-precision registers and the half-precision
  12668. floating-point conversion operations.
  12669. '+nofp'
  12670. Disable the floating-point extension.
  12671. '+idiv'
  12672. The ARM-state integer division instructions.
  12673. '+noidiv'
  12674. Disable the ARM-state integer division extension.
  12675. 'armv7e-m'
  12676. '+fp'
  12677. The single-precision VFPv4 floating-point instructions.
  12678. '+fpv5'
  12679. The single-precision FPv5 floating-point instructions.
  12680. '+fp.dp'
  12681. The single- and double-precision FPv5 floating-point
  12682. instructions.
  12683. '+nofp'
  12684. Disable the floating-point extensions.
  12685. 'armv8-m.main'
  12686. '+dsp'
  12687. The DSP instructions.
  12688. '+nodsp'
  12689. Disable the DSP extension.
  12690. '+fp'
  12691. The single-precision floating-point instructions.
  12692. '+fp.dp'
  12693. The single- and double-precision floating-point
  12694. instructions.
  12695. '+nofp'
  12696. Disable the floating-point extension.
  12697. 'armv8-r'
  12698. '+crc'
  12699. The Cyclic Redundancy Check (CRC) instructions.
  12700. '+fp.sp'
  12701. The single-precision FPv5 floating-point instructions.
  12702. '+simd'
  12703. The ARMv8-A Advanced SIMD and floating-point
  12704. instructions.
  12705. '+crypto'
  12706. The cryptographic instructions.
  12707. '+nocrypto'
  12708. Disable the cryptographic instructions.
  12709. '+nofp'
  12710. Disable the floating-point, Advanced SIMD and
  12711. cryptographic instructions.
  12712. '-march=native' causes the compiler to auto-detect the architecture
  12713. of the build computer. At present, this feature is only supported
  12714. on GNU/Linux, and not all architectures are recognized. If the
  12715. auto-detect is unsuccessful the option has no effect.
  12716. '-mtune=NAME'
  12717. This option specifies the name of the target ARM processor for
  12718. which GCC should tune the performance of the code. For some ARM
  12719. implementations better performance can be obtained by using this
  12720. option. Permissible names are: 'arm2', 'arm250', 'arm3', 'arm6',
  12721. 'arm60', 'arm600', 'arm610', 'arm620', 'arm7', 'arm7m', 'arm7d',
  12722. 'arm7dm', 'arm7di', 'arm7dmi', 'arm70', 'arm700', 'arm700i',
  12723. 'arm710', 'arm710c', 'arm7100', 'arm720', 'arm7500', 'arm7500fe',
  12724. 'arm7tdmi', 'arm7tdmi-s', 'arm710t', 'arm720t', 'arm740t',
  12725. 'strongarm', 'strongarm110', 'strongarm1100', 'strongarm1110',
  12726. 'arm8', 'arm810', 'arm9', 'arm9e', 'arm920', 'arm920t', 'arm922t',
  12727. 'arm946e-s', 'arm966e-s', 'arm968e-s', 'arm926ej-s', 'arm940t',
  12728. 'arm9tdmi', 'arm10tdmi', 'arm1020t', 'arm1026ej-s', 'arm10e',
  12729. 'arm1020e', 'arm1022e', 'arm1136j-s', 'arm1136jf-s', 'mpcore',
  12730. 'mpcorenovfp', 'arm1156t2-s', 'arm1156t2f-s', 'arm1176jz-s',
  12731. 'arm1176jzf-s', 'generic-armv7-a', 'cortex-a5', 'cortex-a7',
  12732. 'cortex-a8', 'cortex-a9', 'cortex-a12', 'cortex-a15', 'cortex-a17',
  12733. 'cortex-a32', 'cortex-a35', 'cortex-a53', 'cortex-a55',
  12734. 'cortex-a57', 'cortex-a72', 'cortex-a73', 'cortex-a75',
  12735. 'cortex-r4', 'cortex-r4f', 'cortex-r5', 'cortex-r7', 'cortex-r8',
  12736. 'cortex-r52', 'cortex-m33', 'cortex-m23', 'cortex-m7', 'cortex-m4',
  12737. 'cortex-m3', 'cortex-m1', 'cortex-m0', 'cortex-m0plus',
  12738. 'cortex-m1.small-multiply', 'cortex-m0.small-multiply',
  12739. 'cortex-m0plus.small-multiply', 'exynos-m1', 'marvell-pj4',
  12740. 'xscale', 'iwmmxt', 'iwmmxt2', 'ep9312', 'fa526', 'fa626',
  12741. 'fa606te', 'fa626te', 'fmp626', 'fa726te', 'xgene1'.
  12742. Additionally, this option can specify that GCC should tune the
  12743. performance of the code for a big.LITTLE system. Permissible names
  12744. are: 'cortex-a15.cortex-a7', 'cortex-a17.cortex-a7',
  12745. 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  12746. 'cortex-a72.cortex-a35', 'cortex-a73.cortex-a53',
  12747. 'cortex-a75.cortex-a55'.
  12748. '-mtune=generic-ARCH' specifies that GCC should tune the
  12749. performance for a blend of processors within architecture ARCH.
  12750. The aim is to generate code that run well on the current most
  12751. popular processors, balancing between optimizations that benefit
  12752. some CPUs in the range, and avoiding performance pitfalls of other
  12753. CPUs. The effects of this option may change in future GCC versions
  12754. as CPU models come and go.
  12755. '-mtune' permits the same extension options as '-mcpu', but the
  12756. extension options do not affect the tuning of the generated code.
  12757. '-mtune=native' causes the compiler to auto-detect the CPU of the
  12758. build computer. At present, this feature is only supported on
  12759. GNU/Linux, and not all architectures are recognized. If the
  12760. auto-detect is unsuccessful the option has no effect.
  12761. '-mcpu=NAME[+extension...]'
  12762. This specifies the name of the target ARM processor. GCC uses this
  12763. name to derive the name of the target ARM architecture (as if
  12764. specified by '-march') and the ARM processor type for which to tune
  12765. for performance (as if specified by '-mtune'). Where this option
  12766. is used in conjunction with '-march' or '-mtune', those options
  12767. take precedence over the appropriate part of this option.
  12768. Many of the supported CPUs implement optional architectural
  12769. extensions. Where this is so the architectural extensions are
  12770. normally enabled by default. If implementations that lack the
  12771. extension exist, then the extension syntax can be used to disable
  12772. those extensions that have been omitted. For floating-point and
  12773. Advanced SIMD (Neon) instructions, the settings of the options
  12774. '-mfloat-abi' and '-mfpu' must also be considered: floating-point
  12775. and Advanced SIMD instructions will only be used if '-mfloat-abi'
  12776. is not set to 'soft'; and any setting of '-mfpu' other than 'auto'
  12777. will override the available floating-point and SIMD extension
  12778. instructions.
  12779. For example, 'cortex-a9' can be found in three major
  12780. configurations: integer only, with just a floating-point unit or
  12781. with floating-point and Advanced SIMD. The default is to enable all
  12782. the instructions, but the extensions '+nosimd' and '+nofp' can be
  12783. used to disable just the SIMD or both the SIMD and floating-point
  12784. instructions respectively.
  12785. Permissible names for this option are the same as those for
  12786. '-mtune'.
  12787. The following extension options are common to the listed CPUs:
  12788. '+nodsp'
  12789. Disable the DSP instructions on 'cortex-m33'.
  12790. '+nofp'
  12791. Disables the floating-point instructions on 'arm9e',
  12792. 'arm946e-s', 'arm966e-s', 'arm968e-s', 'arm10e', 'arm1020e',
  12793. 'arm1022e', 'arm926ej-s', 'arm1026ej-s', 'cortex-r5',
  12794. 'cortex-r7', 'cortex-r8', 'cortex-m4', 'cortex-m7' and
  12795. 'cortex-m33'. Disables the floating-point and SIMD
  12796. instructions on 'generic-armv7-a', 'cortex-a5', 'cortex-a7',
  12797. 'cortex-a8', 'cortex-a9', 'cortex-a12', 'cortex-a15',
  12798. 'cortex-a17', 'cortex-a15.cortex-a7', 'cortex-a17.cortex-a7',
  12799. 'cortex-a32', 'cortex-a35', 'cortex-a53' and 'cortex-a55'.
  12800. '+nofp.dp'
  12801. Disables the double-precision component of the floating-point
  12802. instructions on 'cortex-r5', 'cortex-r7', 'cortex-r8',
  12803. 'cortex-r52' and 'cortex-m7'.
  12804. '+nosimd'
  12805. Disables the SIMD (but not floating-point) instructions on
  12806. 'generic-armv7-a', 'cortex-a5', 'cortex-a7' and 'cortex-a9'.
  12807. '+crypto'
  12808. Enables the cryptographic instructions on 'cortex-a32',
  12809. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  12810. 'cortex-a72', 'cortex-a73', 'cortex-a75', 'exynos-m1',
  12811. 'xgene1', 'cortex-a57.cortex-a53', 'cortex-a72.cortex-a53',
  12812. 'cortex-a73.cortex-a35', 'cortex-a73.cortex-a53' and
  12813. 'cortex-a75.cortex-a55'.
  12814. Additionally the 'generic-armv7-a' pseudo target defaults to VFPv3
  12815. with 16 double-precision registers. It supports the following
  12816. extension options: 'mp', 'sec', 'vfpv3-d16', 'vfpv3',
  12817. 'vfpv3-d16-fp16', 'vfpv3-fp16', 'vfpv4-d16', 'vfpv4', 'neon',
  12818. 'neon-vfpv3', 'neon-fp16', 'neon-vfpv4'. The meanings are the same
  12819. as for the extensions to '-march=armv7-a'.
  12820. '-mcpu=generic-ARCH' is also permissible, and is equivalent to
  12821. '-march=ARCH -mtune=generic-ARCH'. See '-mtune' for more
  12822. information.
  12823. '-mcpu=native' causes the compiler to auto-detect the CPU of the
  12824. build computer. At present, this feature is only supported on
  12825. GNU/Linux, and not all architectures are recognized. If the
  12826. auto-detect is unsuccessful the option has no effect.
  12827. '-mfpu=NAME'
  12828. This specifies what floating-point hardware (or hardware emulation)
  12829. is available on the target. Permissible names are: 'auto',
  12830. 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16', 'vfpv3-d16-fp16',
  12831. 'vfpv3xd', 'vfpv3xd-fp16', 'neon-vfpv3', 'neon-fp16', 'vfpv4',
  12832. 'vfpv4-d16', 'fpv4-sp-d16', 'neon-vfpv4', 'fpv5-d16',
  12833. 'fpv5-sp-d16', 'fp-armv8', 'neon-fp-armv8' and
  12834. 'crypto-neon-fp-armv8'. Note that 'neon' is an alias for
  12835. 'neon-vfpv3' and 'vfp' is an alias for 'vfpv2'.
  12836. The setting 'auto' is the default and is special. It causes the
  12837. compiler to select the floating-point and Advanced SIMD
  12838. instructions based on the settings of '-mcpu' and '-march'.
  12839. If the selected floating-point hardware includes the NEON extension
  12840. (e.g. '-mfpu=neon'), note that floating-point operations are not
  12841. generated by GCC's auto-vectorization pass unless
  12842. '-funsafe-math-optimizations' is also specified. This is because
  12843. NEON hardware does not fully implement the IEEE 754 standard for
  12844. floating-point arithmetic (in particular denormal values are
  12845. treated as zero), so the use of NEON instructions may lead to a
  12846. loss of precision.
  12847. You can also set the fpu name at function level by using the
  12848. 'target("fpu=")' function attributes (*note ARM Function
  12849. Attributes::) or pragmas (*note Function Specific Option
  12850. Pragmas::).
  12851. '-mfp16-format=NAME'
  12852. Specify the format of the '__fp16' half-precision floating-point
  12853. type. Permissible names are 'none', 'ieee', and 'alternative'; the
  12854. default is 'none', in which case the '__fp16' type is not defined.
  12855. *Note Half-Precision::, for more information.
  12856. '-mstructure-size-boundary=N'
  12857. The sizes of all structures and unions are rounded up to a multiple
  12858. of the number of bits set by this option. Permissible values are
  12859. 8, 32 and 64. The default value varies for different toolchains.
  12860. For the COFF targeted toolchain the default value is 8. A value of
  12861. 64 is only allowed if the underlying ABI supports it.
  12862. Specifying a larger number can produce faster, more efficient code,
  12863. but can also increase the size of the program. Different values
  12864. are potentially incompatible. Code compiled with one value cannot
  12865. necessarily expect to work with code or libraries compiled with
  12866. another value, if they exchange information using structures or
  12867. unions.
  12868. This option is deprecated.
  12869. '-mabort-on-noreturn'
  12870. Generate a call to the function 'abort' at the end of a 'noreturn'
  12871. function. It is executed if the function tries to return.
  12872. '-mlong-calls'
  12873. '-mno-long-calls'
  12874. Tells the compiler to perform function calls by first loading the
  12875. address of the function into a register and then performing a
  12876. subroutine call on this register. This switch is needed if the
  12877. target function lies outside of the 64-megabyte addressing range of
  12878. the offset-based version of subroutine call instruction.
  12879. Even if this switch is enabled, not all function calls are turned
  12880. into long calls. The heuristic is that static functions, functions
  12881. that have the 'short_call' attribute, functions that are inside the
  12882. scope of a '#pragma no_long_calls' directive, and functions whose
  12883. definitions have already been compiled within the current
  12884. compilation unit are not turned into long calls. The exceptions to
  12885. this rule are that weak function definitions, functions with the
  12886. 'long_call' attribute or the 'section' attribute, and functions
  12887. that are within the scope of a '#pragma long_calls' directive are
  12888. always turned into long calls.
  12889. This feature is not enabled by default. Specifying
  12890. '-mno-long-calls' restores the default behavior, as does placing
  12891. the function calls within the scope of a '#pragma long_calls_off'
  12892. directive. Note these switches have no effect on how the compiler
  12893. generates code to handle function calls via function pointers.
  12894. '-msingle-pic-base'
  12895. Treat the register used for PIC addressing as read-only, rather
  12896. than loading it in the prologue for each function. The runtime
  12897. system is responsible for initializing this register with an
  12898. appropriate value before execution begins.
  12899. '-mpic-register=REG'
  12900. Specify the register to be used for PIC addressing. For standard
  12901. PIC base case, the default is any suitable register determined by
  12902. compiler. For single PIC base case, the default is 'R9' if target
  12903. is EABI based or stack-checking is enabled, otherwise the default
  12904. is 'R10'.
  12905. '-mpic-data-is-text-relative'
  12906. Assume that the displacement between the text and data segments is
  12907. fixed at static link time. This permits using PC-relative
  12908. addressing operations to access data known to be in the data
  12909. segment. For non-VxWorks RTP targets, this option is enabled by
  12910. default. When disabled on such targets, it will enable
  12911. '-msingle-pic-base' by default.
  12912. '-mpoke-function-name'
  12913. Write the name of each function into the text section, directly
  12914. preceding the function prologue. The generated code is similar to
  12915. this:
  12916. t0
  12917. .ascii "arm_poke_function_name", 0
  12918. .align
  12919. t1
  12920. .word 0xff000000 + (t1 - t0)
  12921. arm_poke_function_name
  12922. mov ip, sp
  12923. stmfd sp!, {fp, ip, lr, pc}
  12924. sub fp, ip, #4
  12925. When performing a stack backtrace, code can inspect the value of
  12926. 'pc' stored at 'fp + 0'. If the trace function then looks at
  12927. location 'pc - 12' and the top 8 bits are set, then we know that
  12928. there is a function name embedded immediately preceding this
  12929. location and has length '((pc[-3]) & 0xff000000)'.
  12930. '-mthumb'
  12931. '-marm'
  12932. Select between generating code that executes in ARM and Thumb
  12933. states. The default for most configurations is to generate code
  12934. that executes in ARM state, but the default can be changed by
  12935. configuring GCC with the '--with-mode='STATE configure option.
  12936. You can also override the ARM and Thumb mode for each function by
  12937. using the 'target("thumb")' and 'target("arm")' function attributes
  12938. (*note ARM Function Attributes::) or pragmas (*note Function
  12939. Specific Option Pragmas::).
  12940. '-mflip-thumb'
  12941. Switch ARM/Thumb modes on alternating functions. This option is
  12942. provided for regression testing of mixed Thumb/ARM code generation,
  12943. and is not intended for ordinary use in compiling code.
  12944. '-mtpcs-frame'
  12945. Generate a stack frame that is compliant with the Thumb Procedure
  12946. Call Standard for all non-leaf functions. (A leaf function is one
  12947. that does not call any other functions.) The default is
  12948. '-mno-tpcs-frame'.
  12949. '-mtpcs-leaf-frame'
  12950. Generate a stack frame that is compliant with the Thumb Procedure
  12951. Call Standard for all leaf functions. (A leaf function is one that
  12952. does not call any other functions.) The default is
  12953. '-mno-apcs-leaf-frame'.
  12954. '-mcallee-super-interworking'
  12955. Gives all externally visible functions in the file being compiled
  12956. an ARM instruction set header which switches to Thumb mode before
  12957. executing the rest of the function. This allows these functions to
  12958. be called from non-interworking code. This option is not valid in
  12959. AAPCS configurations because interworking is enabled by default.
  12960. '-mcaller-super-interworking'
  12961. Allows calls via function pointers (including virtual functions) to
  12962. execute correctly regardless of whether the target code has been
  12963. compiled for interworking or not. There is a small overhead in the
  12964. cost of executing a function pointer if this option is enabled.
  12965. This option is not valid in AAPCS configurations because
  12966. interworking is enabled by default.
  12967. '-mtp=NAME'
  12968. Specify the access model for the thread local storage pointer. The
  12969. valid models are 'soft', which generates calls to
  12970. '__aeabi_read_tp', 'cp15', which fetches the thread pointer from
  12971. 'cp15' directly (supported in the arm6k architecture), and 'auto',
  12972. which uses the best available method for the selected processor.
  12973. The default setting is 'auto'.
  12974. '-mtls-dialect=DIALECT'
  12975. Specify the dialect to use for accessing thread local storage. Two
  12976. DIALECTs are supported--'gnu' and 'gnu2'. The 'gnu' dialect
  12977. selects the original GNU scheme for supporting local and global
  12978. dynamic TLS models. The 'gnu2' dialect selects the GNU descriptor
  12979. scheme, which provides better performance for shared libraries.
  12980. The GNU descriptor scheme is compatible with the original scheme,
  12981. but does require new assembler, linker and library support.
  12982. Initial and local exec TLS models are unaffected by this option and
  12983. always use the original scheme.
  12984. '-mword-relocations'
  12985. Only generate absolute relocations on word-sized values (i.e.
  12986. R_ARM_ABS32). This is enabled by default on targets (uClinux,
  12987. SymbianOS) where the runtime loader imposes this restriction, and
  12988. when '-fpic' or '-fPIC' is specified.
  12989. '-mfix-cortex-m3-ldrd'
  12990. Some Cortex-M3 cores can cause data corruption when 'ldrd'
  12991. instructions with overlapping destination and base registers are
  12992. used. This option avoids generating these instructions. This
  12993. option is enabled by default when '-mcpu=cortex-m3' is specified.
  12994. '-munaligned-access'
  12995. '-mno-unaligned-access'
  12996. Enables (or disables) reading and writing of 16- and 32- bit values
  12997. from addresses that are not 16- or 32- bit aligned. By default
  12998. unaligned access is disabled for all pre-ARMv6, all ARMv6-M and for
  12999. ARMv8-M Baseline architectures, and enabled for all other
  13000. architectures. If unaligned access is not enabled then words in
  13001. packed data structures are accessed a byte at a time.
  13002. The ARM attribute 'Tag_CPU_unaligned_access' is set in the
  13003. generated object file to either true or false, depending upon the
  13004. setting of this option. If unaligned access is enabled then the
  13005. preprocessor symbol '__ARM_FEATURE_UNALIGNED' is also defined.
  13006. '-mneon-for-64bits'
  13007. Enables using Neon to handle scalar 64-bits operations. This is
  13008. disabled by default since the cost of moving data from core
  13009. registers to Neon is high.
  13010. '-mslow-flash-data'
  13011. Assume loading data from flash is slower than fetching instruction.
  13012. Therefore literal load is minimized for better performance. This
  13013. option is only supported when compiling for ARMv7 M-profile and off
  13014. by default.
  13015. '-masm-syntax-unified'
  13016. Assume inline assembler is using unified asm syntax. The default
  13017. is currently off which implies divided syntax. This option has no
  13018. impact on Thumb2. However, this may change in future releases of
  13019. GCC. Divided syntax should be considered deprecated.
  13020. '-mrestrict-it'
  13021. Restricts generation of IT blocks to conform to the rules of
  13022. ARMv8-A. IT blocks can only contain a single 16-bit instruction
  13023. from a select set of instructions. This option is on by default
  13024. for ARMv8-A Thumb mode.
  13025. '-mprint-tune-info'
  13026. Print CPU tuning information as comment in assembler file. This is
  13027. an option used only for regression testing of the compiler and not
  13028. intended for ordinary use in compiling code. This option is
  13029. disabled by default.
  13030. '-mverbose-cost-dump'
  13031. Enable verbose cost model dumping in the debug dump files. This
  13032. option is provided for use in debugging the compiler.
  13033. '-mpure-code'
  13034. Do not allow constant data to be placed in code sections.
  13035. Additionally, when compiling for ELF object format give all text
  13036. sections the ELF processor-specific section attribute
  13037. 'SHF_ARM_PURECODE'. This option is only available when generating
  13038. non-pic code for M-profile targets with the MOVT instruction.
  13039. '-mcmse'
  13040. Generate secure code as per the "ARMv8-M Security Extensions:
  13041. Requirements on Development Tools Engineering Specification", which
  13042. can be found on
  13043. <http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf>.
  13044. 
  13045. File: gcc.info, Node: AVR Options, Next: Blackfin Options, Prev: ARM Options, Up: Submodel Options
  13046. 3.18.5 AVR Options
  13047. ------------------
  13048. These options are defined for AVR implementations:
  13049. '-mmcu=MCU'
  13050. Specify Atmel AVR instruction set architectures (ISA) or MCU type.
  13051. The default for this option is 'avr2'.
  13052. GCC supports the following AVR devices and ISAs:
  13053. 'avr2'
  13054. "Classic" devices with up to 8 KiB of program memory.
  13055. MCU = 'attiny22', 'attiny26', 'at90c8534', 'at90s2313',
  13056. 'at90s2323', 'at90s2333', 'at90s2343', 'at90s4414',
  13057. 'at90s4433', 'at90s4434', 'at90s8515', 'at90s8535'.
  13058. 'avr25'
  13059. "Classic" devices with up to 8 KiB of program memory and with
  13060. the 'MOVW' instruction.
  13061. MCU = 'ata5272', 'ata6616c', 'attiny13', 'attiny13a',
  13062. 'attiny2313', 'attiny2313a', 'attiny24', 'attiny24a',
  13063. 'attiny25', 'attiny261', 'attiny261a', 'attiny43u',
  13064. 'attiny4313', 'attiny44', 'attiny44a', 'attiny441',
  13065. 'attiny45', 'attiny461', 'attiny461a', 'attiny48',
  13066. 'attiny828', 'attiny84', 'attiny84a', 'attiny841', 'attiny85',
  13067. 'attiny861', 'attiny861a', 'attiny87', 'attiny88',
  13068. 'at86rf401'.
  13069. 'avr3'
  13070. "Classic" devices with 16 KiB up to 64 KiB of program memory.
  13071. MCU = 'at43usb355', 'at76c711'.
  13072. 'avr31'
  13073. "Classic" devices with 128 KiB of program memory.
  13074. MCU = 'atmega103', 'at43usb320'.
  13075. 'avr35'
  13076. "Classic" devices with 16 KiB up to 64 KiB of program memory
  13077. and with the 'MOVW' instruction.
  13078. MCU = 'ata5505', 'ata6617c', 'ata664251', 'atmega16u2',
  13079. 'atmega32u2', 'atmega8u2', 'attiny1634', 'attiny167',
  13080. 'at90usb162', 'at90usb82'.
  13081. 'avr4'
  13082. "Enhanced" devices with up to 8 KiB of program memory.
  13083. MCU = 'ata6285', 'ata6286', 'ata6289', 'ata6612c', 'atmega48',
  13084. 'atmega48a', 'atmega48p', 'atmega48pa', 'atmega48pb',
  13085. 'atmega8', 'atmega8a', 'atmega8hva', 'atmega8515',
  13086. 'atmega8535', 'atmega88', 'atmega88a', 'atmega88p',
  13087. 'atmega88pa', 'atmega88pb', 'at90pwm1', 'at90pwm2',
  13088. 'at90pwm2b', 'at90pwm3', 'at90pwm3b', 'at90pwm81'.
  13089. 'avr5'
  13090. "Enhanced" devices with 16 KiB up to 64 KiB of program memory.
  13091. MCU = 'ata5702m322', 'ata5782', 'ata5790', 'ata5790n',
  13092. 'ata5791', 'ata5795', 'ata5831', 'ata6613c', 'ata6614q',
  13093. 'ata8210', 'ata8510', 'atmega16', 'atmega16a', 'atmega16hva',
  13094. 'atmega16hva2', 'atmega16hvb', 'atmega16hvbrevb',
  13095. 'atmega16m1', 'atmega16u4', 'atmega161', 'atmega162',
  13096. 'atmega163', 'atmega164a', 'atmega164p', 'atmega164pa',
  13097. 'atmega165', 'atmega165a', 'atmega165p', 'atmega165pa',
  13098. 'atmega168', 'atmega168a', 'atmega168p', 'atmega168pa',
  13099. 'atmega168pb', 'atmega169', 'atmega169a', 'atmega169p',
  13100. 'atmega169pa', 'atmega32', 'atmega32a', 'atmega32c1',
  13101. 'atmega32hvb', 'atmega32hvbrevb', 'atmega32m1', 'atmega32u4',
  13102. 'atmega32u6', 'atmega323', 'atmega324a', 'atmega324p',
  13103. 'atmega324pa', 'atmega325', 'atmega325a', 'atmega325p',
  13104. 'atmega325pa', 'atmega3250', 'atmega3250a', 'atmega3250p',
  13105. 'atmega3250pa', 'atmega328', 'atmega328p', 'atmega328pb',
  13106. 'atmega329', 'atmega329a', 'atmega329p', 'atmega329pa',
  13107. 'atmega3290', 'atmega3290a', 'atmega3290p', 'atmega3290pa',
  13108. 'atmega406', 'atmega64', 'atmega64a', 'atmega64c1',
  13109. 'atmega64hve', 'atmega64hve2', 'atmega64m1', 'atmega64rfr2',
  13110. 'atmega640', 'atmega644', 'atmega644a', 'atmega644p',
  13111. 'atmega644pa', 'atmega644rfr2', 'atmega645', 'atmega645a',
  13112. 'atmega645p', 'atmega6450', 'atmega6450a', 'atmega6450p',
  13113. 'atmega649', 'atmega649a', 'atmega649p', 'atmega6490',
  13114. 'atmega6490a', 'atmega6490p', 'at90can32', 'at90can64',
  13115. 'at90pwm161', 'at90pwm216', 'at90pwm316', 'at90scr100',
  13116. 'at90usb646', 'at90usb647', 'at94k', 'm3000'.
  13117. 'avr51'
  13118. "Enhanced" devices with 128 KiB of program memory.
  13119. MCU = 'atmega128', 'atmega128a', 'atmega128rfa1',
  13120. 'atmega128rfr2', 'atmega1280', 'atmega1281', 'atmega1284',
  13121. 'atmega1284p', 'atmega1284rfr2', 'at90can128', 'at90usb1286',
  13122. 'at90usb1287'.
  13123. 'avr6'
  13124. "Enhanced" devices with 3-byte PC, i.e. with more than 128 KiB
  13125. of program memory.
  13126. MCU = 'atmega256rfr2', 'atmega2560', 'atmega2561',
  13127. 'atmega2564rfr2'.
  13128. 'avrxmega2'
  13129. "XMEGA" devices with more than 8 KiB and up to 64 KiB of
  13130. program memory.
  13131. MCU = 'atxmega16a4', 'atxmega16a4u', 'atxmega16c4',
  13132. 'atxmega16d4', 'atxmega16e5', 'atxmega32a4', 'atxmega32a4u',
  13133. 'atxmega32c3', 'atxmega32c4', 'atxmega32d3', 'atxmega32d4',
  13134. 'atxmega32e5', 'atxmega8e5'.
  13135. 'avrxmega3'
  13136. "XMEGA" devices with up to 64 KiB of combined program memory
  13137. and RAM, and with program memory visible in the RAM address
  13138. space.
  13139. MCU = 'attiny1614', 'attiny1616', 'attiny1617', 'attiny212',
  13140. 'attiny214', 'attiny3214', 'attiny3216', 'attiny3217',
  13141. 'attiny412', 'attiny414', 'attiny416', 'attiny417',
  13142. 'attiny814', 'attiny816', 'attiny817'.
  13143. 'avrxmega4'
  13144. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  13145. program memory.
  13146. MCU = 'atxmega64a3', 'atxmega64a3u', 'atxmega64a4u',
  13147. 'atxmega64b1', 'atxmega64b3', 'atxmega64c3', 'atxmega64d3',
  13148. 'atxmega64d4'.
  13149. 'avrxmega5'
  13150. "XMEGA" devices with more than 64 KiB and up to 128 KiB of
  13151. program memory and more than 64 KiB of RAM.
  13152. MCU = 'atxmega64a1', 'atxmega64a1u'.
  13153. 'avrxmega6'
  13154. "XMEGA" devices with more than 128 KiB of program memory.
  13155. MCU = 'atxmega128a3', 'atxmega128a3u', 'atxmega128b1',
  13156. 'atxmega128b3', 'atxmega128c3', 'atxmega128d3',
  13157. 'atxmega128d4', 'atxmega192a3', 'atxmega192a3u',
  13158. 'atxmega192c3', 'atxmega192d3', 'atxmega256a3',
  13159. 'atxmega256a3b', 'atxmega256a3bu', 'atxmega256a3u',
  13160. 'atxmega256c3', 'atxmega256d3', 'atxmega384c3',
  13161. 'atxmega384d3'.
  13162. 'avrxmega7'
  13163. "XMEGA" devices with more than 128 KiB of program memory and
  13164. more than 64 KiB of RAM.
  13165. MCU = 'atxmega128a1', 'atxmega128a1u', 'atxmega128a4u'.
  13166. 'avrtiny'
  13167. "TINY" Tiny core devices with 512 B up to 4 KiB of program
  13168. memory.
  13169. MCU = 'attiny10', 'attiny20', 'attiny4', 'attiny40',
  13170. 'attiny5', 'attiny9'.
  13171. 'avr1'
  13172. This ISA is implemented by the minimal AVR core and supported
  13173. for assembler only.
  13174. MCU = 'attiny11', 'attiny12', 'attiny15', 'attiny28',
  13175. 'at90s1200'.
  13176. '-mabsdata'
  13177. Assume that all data in static storage can be accessed by LDS / STS
  13178. instructions. This option has only an effect on reduced Tiny
  13179. devices like ATtiny40. See also the 'absdata' *note variable
  13180. attribute: AVR Variable Attributes.
  13181. '-maccumulate-args'
  13182. Accumulate outgoing function arguments and acquire/release the
  13183. needed stack space for outgoing function arguments once in function
  13184. prologue/epilogue. Without this option, outgoing arguments are
  13185. pushed before calling a function and popped afterwards.
  13186. Popping the arguments after the function call can be expensive on
  13187. AVR so that accumulating the stack space might lead to smaller
  13188. executables because arguments need not be removed from the stack
  13189. after such a function call.
  13190. This option can lead to reduced code size for functions that
  13191. perform several calls to functions that get their arguments on the
  13192. stack like calls to printf-like functions.
  13193. '-mbranch-cost=COST'
  13194. Set the branch costs for conditional branch instructions to COST.
  13195. Reasonable values for COST are small, non-negative integers. The
  13196. default branch cost is 0.
  13197. '-mcall-prologues'
  13198. Functions prologues/epilogues are expanded as calls to appropriate
  13199. subroutines. Code size is smaller.
  13200. '-mgas-isr-prologues'
  13201. Interrupt service routines (ISRs) may use the '__gcc_isr' pseudo
  13202. instruction supported by GNU Binutils. If this option is on, the
  13203. feature can still be disabled for individual ISRs by means of the
  13204. *note 'no_gccisr': AVR Function Attributes. function attribute.
  13205. This feature is activated per default if optimization is on (but
  13206. not with '-Og', *note Optimize Options::), and if GNU Binutils
  13207. support PR21683 (https://sourceware.org/PR21683).
  13208. '-mint8'
  13209. Assume 'int' to be 8-bit integer. This affects the sizes of all
  13210. types: a 'char' is 1 byte, an 'int' is 1 byte, a 'long' is 2 bytes,
  13211. and 'long long' is 4 bytes. Please note that this option does not
  13212. conform to the C standards, but it results in smaller code size.
  13213. '-mmain-is-OS_task'
  13214. Do not save registers in 'main'. The effect is the same like
  13215. attaching attribute *note 'OS_task': AVR Function Attributes. to
  13216. 'main'. It is activated per default if optimization is on.
  13217. '-mn-flash=NUM'
  13218. Assume that the flash memory has a size of NUM times 64 KiB.
  13219. '-mno-interrupts'
  13220. Generated code is not compatible with hardware interrupts. Code
  13221. size is smaller.
  13222. '-mrelax'
  13223. Try to replace 'CALL' resp. 'JMP' instruction by the shorter
  13224. 'RCALL' resp. 'RJMP' instruction if applicable. Setting '-mrelax'
  13225. just adds the '--mlink-relax' option to the assembler's command
  13226. line and the '--relax' option to the linker's command line.
  13227. Jump relaxing is performed by the linker because jump offsets are
  13228. not known before code is located. Therefore, the assembler code
  13229. generated by the compiler is the same, but the instructions in the
  13230. executable may differ from instructions in the assembler code.
  13231. Relaxing must be turned on if linker stubs are needed, see the
  13232. section on 'EIND' and linker stubs below.
  13233. '-mrmw'
  13234. Assume that the device supports the Read-Modify-Write instructions
  13235. 'XCH', 'LAC', 'LAS' and 'LAT'.
  13236. '-mshort-calls'
  13237. Assume that 'RJMP' and 'RCALL' can target the whole program memory.
  13238. This option is used internally for multilib selection. It is not
  13239. an optimization option, and you don't need to set it by hand.
  13240. '-msp8'
  13241. Treat the stack pointer register as an 8-bit register, i.e. assume
  13242. the high byte of the stack pointer is zero. In general, you don't
  13243. need to set this option by hand.
  13244. This option is used internally by the compiler to select and build
  13245. multilibs for architectures 'avr2' and 'avr25'. These
  13246. architectures mix devices with and without 'SPH'. For any setting
  13247. other than '-mmcu=avr2' or '-mmcu=avr25' the compiler driver adds
  13248. or removes this option from the compiler proper's command line,
  13249. because the compiler then knows if the device or architecture has
  13250. an 8-bit stack pointer and thus no 'SPH' register or not.
  13251. '-mstrict-X'
  13252. Use address register 'X' in a way proposed by the hardware. This
  13253. means that 'X' is only used in indirect, post-increment or
  13254. pre-decrement addressing.
  13255. Without this option, the 'X' register may be used in the same way
  13256. as 'Y' or 'Z' which then is emulated by additional instructions.
  13257. For example, loading a value with 'X+const' addressing with a small
  13258. non-negative 'const < 64' to a register RN is performed as
  13259. adiw r26, const ; X += const
  13260. ld RN, X ; RN = *X
  13261. sbiw r26, const ; X -= const
  13262. '-mtiny-stack'
  13263. Only change the lower 8 bits of the stack pointer.
  13264. '-mfract-convert-truncate'
  13265. Allow to use truncation instead of rounding towards zero for
  13266. fractional fixed-point types.
  13267. '-nodevicelib'
  13268. Don't link against AVR-LibC's device specific library 'lib<mcu>.a'.
  13269. '-Waddr-space-convert'
  13270. Warn about conversions between address spaces in the case where the
  13271. resulting address space is not contained in the incoming address
  13272. space.
  13273. '-Wmisspelled-isr'
  13274. Warn if the ISR is misspelled, i.e. without __vector prefix.
  13275. Enabled by default.
  13276. 3.18.5.1 'EIND' and Devices with More Than 128 Ki Bytes of Flash
  13277. ................................................................
  13278. Pointers in the implementation are 16 bits wide. The address of a
  13279. function or label is represented as word address so that indirect jumps
  13280. and calls can target any code address in the range of 64 Ki words.
  13281. In order to facilitate indirect jump on devices with more than 128 Ki
  13282. bytes of program memory space, there is a special function register
  13283. called 'EIND' that serves as most significant part of the target address
  13284. when 'EICALL' or 'EIJMP' instructions are used.
  13285. Indirect jumps and calls on these devices are handled as follows by the
  13286. compiler and are subject to some limitations:
  13287. * The compiler never sets 'EIND'.
  13288. * The compiler uses 'EIND' implicitly in 'EICALL'/'EIJMP'
  13289. instructions or might read 'EIND' directly in order to emulate an
  13290. indirect call/jump by means of a 'RET' instruction.
  13291. * The compiler assumes that 'EIND' never changes during the startup
  13292. code or during the application. In particular, 'EIND' is not
  13293. saved/restored in function or interrupt service routine
  13294. prologue/epilogue.
  13295. * For indirect calls to functions and computed goto, the linker
  13296. generates _stubs_. Stubs are jump pads sometimes also called
  13297. _trampolines_. Thus, the indirect call/jump jumps to such a stub.
  13298. The stub contains a direct jump to the desired address.
  13299. * Linker relaxation must be turned on so that the linker generates
  13300. the stubs correctly in all situations. See the compiler option
  13301. '-mrelax' and the linker option '--relax'. There are corner cases
  13302. where the linker is supposed to generate stubs but aborts without
  13303. relaxation and without a helpful error message.
  13304. * The default linker script is arranged for code with 'EIND = 0'. If
  13305. code is supposed to work for a setup with 'EIND != 0', a custom
  13306. linker script has to be used in order to place the sections whose
  13307. name start with '.trampolines' into the segment where 'EIND' points
  13308. to.
  13309. * The startup code from libgcc never sets 'EIND'. Notice that
  13310. startup code is a blend of code from libgcc and AVR-LibC. For the
  13311. impact of AVR-LibC on 'EIND', see the
  13312. AVR-LibC user manual (http://nongnu.org/avr-libc/user-manual/).
  13313. * It is legitimate for user-specific startup code to set up 'EIND'
  13314. early, for example by means of initialization code located in
  13315. section '.init3'. Such code runs prior to general startup code
  13316. that initializes RAM and calls constructors, but after the bit of
  13317. startup code from AVR-LibC that sets 'EIND' to the segment where
  13318. the vector table is located.
  13319. #include <avr/io.h>
  13320. static void
  13321. __attribute__((section(".init3"),naked,used,no_instrument_function))
  13322. init3_set_eind (void)
  13323. {
  13324. __asm volatile ("ldi r24,pm_hh8(__trampolines_start)\n\t"
  13325. "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  13326. }
  13327. The '__trampolines_start' symbol is defined in the linker script.
  13328. * Stubs are generated automatically by the linker if the following
  13329. two conditions are met:
  13330. - The address of a label is taken by means of the 'gs' modifier
  13331. (short for _generate stubs_) like so:
  13332. LDI r24, lo8(gs(FUNC))
  13333. LDI r25, hi8(gs(FUNC))
  13334. - The final location of that label is in a code segment
  13335. _outside_ the segment where the stubs are located.
  13336. * The compiler emits such 'gs' modifiers for code labels in the
  13337. following situations:
  13338. - Taking address of a function or code label.
  13339. - Computed goto.
  13340. - If prologue-save function is used, see '-mcall-prologues'
  13341. command-line option.
  13342. - Switch/case dispatch tables. If you do not want such dispatch
  13343. tables you can specify the '-fno-jump-tables' command-line
  13344. option.
  13345. - C and C++ constructors/destructors called during
  13346. startup/shutdown.
  13347. - If the tools hit a 'gs()' modifier explained above.
  13348. * Jumping to non-symbolic addresses like so is _not_ supported:
  13349. int main (void)
  13350. {
  13351. /* Call function at word address 0x2 */
  13352. return ((int(*)(void)) 0x2)();
  13353. }
  13354. Instead, a stub has to be set up, i.e. the function has to be
  13355. called through a symbol ('func_4' in the example):
  13356. int main (void)
  13357. {
  13358. extern int func_4 (void);
  13359. /* Call function at byte address 0x4 */
  13360. return func_4();
  13361. }
  13362. and the application be linked with '-Wl,--defsym,func_4=0x4'.
  13363. Alternatively, 'func_4' can be defined in the linker script.
  13364. 3.18.5.2 Handling of the 'RAMPD', 'RAMPX', 'RAMPY' and 'RAMPZ' Special Function Registers
  13365. .........................................................................................
  13366. Some AVR devices support memories larger than the 64 KiB range that can
  13367. be accessed with 16-bit pointers. To access memory locations outside
  13368. this 64 KiB range, the content of a 'RAMP' register is used as high part
  13369. of the address: The 'X', 'Y', 'Z' address register is concatenated with
  13370. the 'RAMPX', 'RAMPY', 'RAMPZ' special function register, respectively,
  13371. to get a wide address. Similarly, 'RAMPD' is used together with direct
  13372. addressing.
  13373. * The startup code initializes the 'RAMP' special function registers
  13374. with zero.
  13375. * If a *note named address space: AVR Named Address Spaces. other
  13376. than generic or '__flash' is used, then 'RAMPZ' is set as needed
  13377. before the operation.
  13378. * If the device supports RAM larger than 64 KiB and the compiler
  13379. needs to change 'RAMPZ' to accomplish an operation, 'RAMPZ' is
  13380. reset to zero after the operation.
  13381. * If the device comes with a specific 'RAMP' register, the ISR
  13382. prologue/epilogue saves/restores that SFR and initializes it with
  13383. zero in case the ISR code might (implicitly) use it.
  13384. * RAM larger than 64 KiB is not supported by GCC for AVR targets. If
  13385. you use inline assembler to read from locations outside the 16-bit
  13386. address range and change one of the 'RAMP' registers, you must
  13387. reset it to zero after the access.
  13388. 3.18.5.3 AVR Built-in Macros
  13389. ............................
  13390. GCC defines several built-in macros so that the user code can test for
  13391. the presence or absence of features. Almost any of the following
  13392. built-in macros are deduced from device capabilities and thus triggered
  13393. by the '-mmcu=' command-line option.
  13394. For even more AVR-specific built-in macros see *note AVR Named Address
  13395. Spaces:: and *note AVR Built-in Functions::.
  13396. '__AVR_ARCH__'
  13397. Build-in macro that resolves to a decimal number that identifies
  13398. the architecture and depends on the '-mmcu=MCU' option. Possible
  13399. values are:
  13400. '2', '25', '3', '31', '35', '4', '5', '51', '6'
  13401. for MCU='avr2', 'avr25', 'avr3', 'avr31', 'avr35', 'avr4', 'avr5',
  13402. 'avr51', 'avr6',
  13403. respectively and
  13404. '100', '102', '103', '104', '105', '106', '107'
  13405. for MCU='avrtiny', 'avrxmega2', 'avrxmega3', 'avrxmega4',
  13406. 'avrxmega5', 'avrxmega6', 'avrxmega7', respectively. If MCU
  13407. specifies a device, this built-in macro is set accordingly. For
  13408. example, with '-mmcu=atmega8' the macro is defined to '4'.
  13409. '__AVR_DEVICE__'
  13410. Setting '-mmcu=DEVICE' defines this built-in macro which reflects
  13411. the device's name. For example, '-mmcu=atmega8' defines the
  13412. built-in macro '__AVR_ATmega8__', '-mmcu=attiny261a' defines
  13413. '__AVR_ATtiny261A__', etc.
  13414. The built-in macros' names follow the scheme '__AVR_DEVICE__' where
  13415. DEVICE is the device name as from the AVR user manual. The
  13416. difference between DEVICE in the built-in macro and DEVICE in
  13417. '-mmcu=DEVICE' is that the latter is always lowercase.
  13418. If DEVICE is not a device but only a core architecture like
  13419. 'avr51', this macro is not defined.
  13420. '__AVR_DEVICE_NAME__'
  13421. Setting '-mmcu=DEVICE' defines this built-in macro to the device's
  13422. name. For example, with '-mmcu=atmega8' the macro is defined to
  13423. 'atmega8'.
  13424. If DEVICE is not a device but only a core architecture like
  13425. 'avr51', this macro is not defined.
  13426. '__AVR_XMEGA__'
  13427. The device / architecture belongs to the XMEGA family of devices.
  13428. '__AVR_HAVE_ELPM__'
  13429. The device has the 'ELPM' instruction.
  13430. '__AVR_HAVE_ELPMX__'
  13431. The device has the 'ELPM RN,Z' and 'ELPM RN,Z+' instructions.
  13432. '__AVR_HAVE_MOVW__'
  13433. The device has the 'MOVW' instruction to perform 16-bit
  13434. register-register moves.
  13435. '__AVR_HAVE_LPMX__'
  13436. The device has the 'LPM RN,Z' and 'LPM RN,Z+' instructions.
  13437. '__AVR_HAVE_MUL__'
  13438. The device has a hardware multiplier.
  13439. '__AVR_HAVE_JMP_CALL__'
  13440. The device has the 'JMP' and 'CALL' instructions. This is the case
  13441. for devices with more than 8 KiB of program memory.
  13442. '__AVR_HAVE_EIJMP_EICALL__'
  13443. '__AVR_3_BYTE_PC__'
  13444. The device has the 'EIJMP' and 'EICALL' instructions. This is the
  13445. case for devices with more than 128 KiB of program memory. This
  13446. also means that the program counter (PC) is 3 bytes wide.
  13447. '__AVR_2_BYTE_PC__'
  13448. The program counter (PC) is 2 bytes wide. This is the case for
  13449. devices with up to 128 KiB of program memory.
  13450. '__AVR_HAVE_8BIT_SP__'
  13451. '__AVR_HAVE_16BIT_SP__'
  13452. The stack pointer (SP) register is treated as 8-bit respectively
  13453. 16-bit register by the compiler. The definition of these macros is
  13454. affected by '-mtiny-stack'.
  13455. '__AVR_HAVE_SPH__'
  13456. '__AVR_SP8__'
  13457. The device has the SPH (high part of stack pointer) special
  13458. function register or has an 8-bit stack pointer, respectively. The
  13459. definition of these macros is affected by '-mmcu=' and in the cases
  13460. of '-mmcu=avr2' and '-mmcu=avr25' also by '-msp8'.
  13461. '__AVR_HAVE_RAMPD__'
  13462. '__AVR_HAVE_RAMPX__'
  13463. '__AVR_HAVE_RAMPY__'
  13464. '__AVR_HAVE_RAMPZ__'
  13465. The device has the 'RAMPD', 'RAMPX', 'RAMPY', 'RAMPZ' special
  13466. function register, respectively.
  13467. '__NO_INTERRUPTS__'
  13468. This macro reflects the '-mno-interrupts' command-line option.
  13469. '__AVR_ERRATA_SKIP__'
  13470. '__AVR_ERRATA_SKIP_JMP_CALL__'
  13471. Some AVR devices (AT90S8515, ATmega103) must not skip 32-bit
  13472. instructions because of a hardware erratum. Skip instructions are
  13473. 'SBRS', 'SBRC', 'SBIS', 'SBIC' and 'CPSE'. The second macro is
  13474. only defined if '__AVR_HAVE_JMP_CALL__' is also set.
  13475. '__AVR_ISA_RMW__'
  13476. The device has Read-Modify-Write instructions (XCH, LAC, LAS and
  13477. LAT).
  13478. '__AVR_SFR_OFFSET__=OFFSET'
  13479. Instructions that can address I/O special function registers
  13480. directly like 'IN', 'OUT', 'SBI', etc. may use a different address
  13481. as if addressed by an instruction to access RAM like 'LD' or 'STS'.
  13482. This offset depends on the device architecture and has to be
  13483. subtracted from the RAM address in order to get the respective
  13484. I/O address.
  13485. '__AVR_SHORT_CALLS__'
  13486. The '-mshort-calls' command line option is set.
  13487. '__AVR_PM_BASE_ADDRESS__=ADDR'
  13488. Some devices support reading from flash memory by means of 'LD*'
  13489. instructions. The flash memory is seen in the data address space
  13490. at an offset of '__AVR_PM_BASE_ADDRESS__'. If this macro is not
  13491. defined, this feature is not available. If defined, the address
  13492. space is linear and there is no need to put '.rodata' into RAM.
  13493. This is handled by the default linker description file, and is
  13494. currently available for 'avrtiny' and 'avrxmega3'. Even more
  13495. convenient, there is no need to use address spaces like '__flash'
  13496. or features like attribute 'progmem' and 'pgm_read_*'.
  13497. '__WITH_AVRLIBC__'
  13498. The compiler is configured to be used together with AVR-Libc. See
  13499. the '--with-avrlibc' configure option.
  13500. 
  13501. File: gcc.info, Node: Blackfin Options, Next: C6X Options, Prev: AVR Options, Up: Submodel Options
  13502. 3.18.6 Blackfin Options
  13503. -----------------------
  13504. '-mcpu=CPU[-SIREVISION]'
  13505. Specifies the name of the target Blackfin processor. Currently,
  13506. CPU can be one of 'bf512', 'bf514', 'bf516', 'bf518', 'bf522',
  13507. 'bf523', 'bf524', 'bf525', 'bf526', 'bf527', 'bf531', 'bf532',
  13508. 'bf533', 'bf534', 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  13509. 'bf544', 'bf547', 'bf548', 'bf549', 'bf542m', 'bf544m', 'bf547m',
  13510. 'bf548m', 'bf549m', 'bf561', 'bf592'.
  13511. The optional SIREVISION specifies the silicon revision of the
  13512. target Blackfin processor. Any workarounds available for the
  13513. targeted silicon revision are enabled. If SIREVISION is 'none', no
  13514. workarounds are enabled. If SIREVISION is 'any', all workarounds
  13515. for the targeted processor are enabled. The '__SILICON_REVISION__'
  13516. macro is defined to two hexadecimal digits representing the major
  13517. and minor numbers in the silicon revision. If SIREVISION is
  13518. 'none', the '__SILICON_REVISION__' is not defined. If SIREVISION
  13519. is 'any', the '__SILICON_REVISION__' is defined to be '0xffff'. If
  13520. this optional SIREVISION is not used, GCC assumes the latest known
  13521. silicon revision of the targeted Blackfin processor.
  13522. GCC defines a preprocessor macro for the specified CPU. For the
  13523. 'bfin-elf' toolchain, this option causes the hardware BSP provided
  13524. by libgloss to be linked in if '-msim' is not given.
  13525. Without this option, 'bf532' is used as the processor by default.
  13526. Note that support for 'bf561' is incomplete. For 'bf561', only the
  13527. preprocessor macro is defined.
  13528. '-msim'
  13529. Specifies that the program will be run on the simulator. This
  13530. causes the simulator BSP provided by libgloss to be linked in.
  13531. This option has effect only for 'bfin-elf' toolchain. Certain
  13532. other options, such as '-mid-shared-library' and '-mfdpic', imply
  13533. '-msim'.
  13534. '-momit-leaf-frame-pointer'
  13535. Don't keep the frame pointer in a register for leaf functions.
  13536. This avoids the instructions to save, set up and restore frame
  13537. pointers and makes an extra register available in leaf functions.
  13538. '-mspecld-anomaly'
  13539. When enabled, the compiler ensures that the generated code does not
  13540. contain speculative loads after jump instructions. If this option
  13541. is used, '__WORKAROUND_SPECULATIVE_LOADS' is defined.
  13542. '-mno-specld-anomaly'
  13543. Don't generate extra code to prevent speculative loads from
  13544. occurring.
  13545. '-mcsync-anomaly'
  13546. When enabled, the compiler ensures that the generated code does not
  13547. contain CSYNC or SSYNC instructions too soon after conditional
  13548. branches. If this option is used, '__WORKAROUND_SPECULATIVE_SYNCS'
  13549. is defined.
  13550. '-mno-csync-anomaly'
  13551. Don't generate extra code to prevent CSYNC or SSYNC instructions
  13552. from occurring too soon after a conditional branch.
  13553. '-mlow-64k'
  13554. When enabled, the compiler is free to take advantage of the
  13555. knowledge that the entire program fits into the low 64k of memory.
  13556. '-mno-low-64k'
  13557. Assume that the program is arbitrarily large. This is the default.
  13558. '-mstack-check-l1'
  13559. Do stack checking using information placed into L1 scratchpad
  13560. memory by the uClinux kernel.
  13561. '-mid-shared-library'
  13562. Generate code that supports shared libraries via the library ID
  13563. method. This allows for execute in place and shared libraries in
  13564. an environment without virtual memory management. This option
  13565. implies '-fPIC'. With a 'bfin-elf' target, this option implies
  13566. '-msim'.
  13567. '-mno-id-shared-library'
  13568. Generate code that doesn't assume ID-based shared libraries are
  13569. being used. This is the default.
  13570. '-mleaf-id-shared-library'
  13571. Generate code that supports shared libraries via the library ID
  13572. method, but assumes that this library or executable won't link
  13573. against any other ID shared libraries. That allows the compiler to
  13574. use faster code for jumps and calls.
  13575. '-mno-leaf-id-shared-library'
  13576. Do not assume that the code being compiled won't link against any
  13577. ID shared libraries. Slower code is generated for jump and call
  13578. insns.
  13579. '-mshared-library-id=n'
  13580. Specifies the identification number of the ID-based shared library
  13581. being compiled. Specifying a value of 0 generates more compact
  13582. code; specifying other values forces the allocation of that number
  13583. to the current library but is no more space- or time-efficient than
  13584. omitting this option.
  13585. '-msep-data'
  13586. Generate code that allows the data segment to be located in a
  13587. different area of memory from the text segment. This allows for
  13588. execute in place in an environment without virtual memory
  13589. management by eliminating relocations against the text section.
  13590. '-mno-sep-data'
  13591. Generate code that assumes that the data segment follows the text
  13592. segment. This is the default.
  13593. '-mlong-calls'
  13594. '-mno-long-calls'
  13595. Tells the compiler to perform function calls by first loading the
  13596. address of the function into a register and then performing a
  13597. subroutine call on this register. This switch is needed if the
  13598. target function lies outside of the 24-bit addressing range of the
  13599. offset-based version of subroutine call instruction.
  13600. This feature is not enabled by default. Specifying
  13601. '-mno-long-calls' restores the default behavior. Note these
  13602. switches have no effect on how the compiler generates code to
  13603. handle function calls via function pointers.
  13604. '-mfast-fp'
  13605. Link with the fast floating-point library. This library relaxes
  13606. some of the IEEE floating-point standard's rules for checking
  13607. inputs against Not-a-Number (NAN), in the interest of performance.
  13608. '-minline-plt'
  13609. Enable inlining of PLT entries in function calls to functions that
  13610. are not known to bind locally. It has no effect without '-mfdpic'.
  13611. '-mmulticore'
  13612. Build a standalone application for multicore Blackfin processors.
  13613. This option causes proper start files and link scripts supporting
  13614. multicore to be used, and defines the macro '__BFIN_MULTICORE'. It
  13615. can only be used with '-mcpu=bf561[-SIREVISION]'.
  13616. This option can be used with '-mcorea' or '-mcoreb', which selects
  13617. the one-application-per-core programming model. Without '-mcorea'
  13618. or '-mcoreb', the single-application/dual-core programming model is
  13619. used. In this model, the main function of Core B should be named
  13620. as 'coreb_main'.
  13621. If this option is not used, the single-core application programming
  13622. model is used.
  13623. '-mcorea'
  13624. Build a standalone application for Core A of BF561 when using the
  13625. one-application-per-core programming model. Proper start files and
  13626. link scripts are used to support Core A, and the macro
  13627. '__BFIN_COREA' is defined. This option can only be used in
  13628. conjunction with '-mmulticore'.
  13629. '-mcoreb'
  13630. Build a standalone application for Core B of BF561 when using the
  13631. one-application-per-core programming model. Proper start files and
  13632. link scripts are used to support Core B, and the macro
  13633. '__BFIN_COREB' is defined. When this option is used, 'coreb_main'
  13634. should be used instead of 'main'. This option can only be used in
  13635. conjunction with '-mmulticore'.
  13636. '-msdram'
  13637. Build a standalone application for SDRAM. Proper start files and
  13638. link scripts are used to put the application into SDRAM, and the
  13639. macro '__BFIN_SDRAM' is defined. The loader should initialize
  13640. SDRAM before loading the application.
  13641. '-micplb'
  13642. Assume that ICPLBs are enabled at run time. This has an effect on
  13643. certain anomaly workarounds. For Linux targets, the default is to
  13644. assume ICPLBs are enabled; for standalone applications the default
  13645. is off.
  13646. 
  13647. File: gcc.info, Node: C6X Options, Next: CRIS Options, Prev: Blackfin Options, Up: Submodel Options
  13648. 3.18.7 C6X Options
  13649. ------------------
  13650. '-march=NAME'
  13651. This specifies the name of the target architecture. GCC uses this
  13652. name to determine what kind of instructions it can emit when
  13653. generating assembly code. Permissible names are: 'c62x', 'c64x',
  13654. 'c64x+', 'c67x', 'c67x+', 'c674x'.
  13655. '-mbig-endian'
  13656. Generate code for a big-endian target.
  13657. '-mlittle-endian'
  13658. Generate code for a little-endian target. This is the default.
  13659. '-msim'
  13660. Choose startup files and linker script suitable for the simulator.
  13661. '-msdata=default'
  13662. Put small global and static data in the '.neardata' section, which
  13663. is pointed to by register 'B14'. Put small uninitialized global
  13664. and static data in the '.bss' section, which is adjacent to the
  13665. '.neardata' section. Put small read-only data into the '.rodata'
  13666. section. The corresponding sections used for large pieces of data
  13667. are '.fardata', '.far' and '.const'.
  13668. '-msdata=all'
  13669. Put all data, not just small objects, into the sections reserved
  13670. for small data, and use addressing relative to the 'B14' register
  13671. to access them.
  13672. '-msdata=none'
  13673. Make no use of the sections reserved for small data, and use
  13674. absolute addresses to access all data. Put all initialized global
  13675. and static data in the '.fardata' section, and all uninitialized
  13676. data in the '.far' section. Put all constant data into the
  13677. '.const' section.
  13678. 
  13679. File: gcc.info, Node: CRIS Options, Next: CR16 Options, Prev: C6X Options, Up: Submodel Options
  13680. 3.18.8 CRIS Options
  13681. -------------------
  13682. These options are defined specifically for the CRIS ports.
  13683. '-march=ARCHITECTURE-TYPE'
  13684. '-mcpu=ARCHITECTURE-TYPE'
  13685. Generate code for the specified architecture. The choices for
  13686. ARCHITECTURE-TYPE are 'v3', 'v8' and 'v10' for respectively
  13687. ETRAX 4, ETRAX 100, and ETRAX 100 LX. Default is 'v0' except for
  13688. cris-axis-linux-gnu, where the default is 'v10'.
  13689. '-mtune=ARCHITECTURE-TYPE'
  13690. Tune to ARCHITECTURE-TYPE everything applicable about the generated
  13691. code, except for the ABI and the set of available instructions.
  13692. The choices for ARCHITECTURE-TYPE are the same as for
  13693. '-march=ARCHITECTURE-TYPE'.
  13694. '-mmax-stack-frame=N'
  13695. Warn when the stack frame of a function exceeds N bytes.
  13696. '-metrax4'
  13697. '-metrax100'
  13698. The options '-metrax4' and '-metrax100' are synonyms for
  13699. '-march=v3' and '-march=v8' respectively.
  13700. '-mmul-bug-workaround'
  13701. '-mno-mul-bug-workaround'
  13702. Work around a bug in the 'muls' and 'mulu' instructions for CPU
  13703. models where it applies. This option is active by default.
  13704. '-mpdebug'
  13705. Enable CRIS-specific verbose debug-related information in the
  13706. assembly code. This option also has the effect of turning off the
  13707. '#NO_APP' formatted-code indicator to the assembler at the
  13708. beginning of the assembly file.
  13709. '-mcc-init'
  13710. Do not use condition-code results from previous instruction; always
  13711. emit compare and test instructions before use of condition codes.
  13712. '-mno-side-effects'
  13713. Do not emit instructions with side effects in addressing modes
  13714. other than post-increment.
  13715. '-mstack-align'
  13716. '-mno-stack-align'
  13717. '-mdata-align'
  13718. '-mno-data-align'
  13719. '-mconst-align'
  13720. '-mno-const-align'
  13721. These options ('no-' options) arrange (eliminate arrangements) for
  13722. the stack frame, individual data and constants to be aligned for
  13723. the maximum single data access size for the chosen CPU model. The
  13724. default is to arrange for 32-bit alignment. ABI details such as
  13725. structure layout are not affected by these options.
  13726. '-m32-bit'
  13727. '-m16-bit'
  13728. '-m8-bit'
  13729. Similar to the stack- data- and const-align options above, these
  13730. options arrange for stack frame, writable data and constants to all
  13731. be 32-bit, 16-bit or 8-bit aligned. The default is 32-bit
  13732. alignment.
  13733. '-mno-prologue-epilogue'
  13734. '-mprologue-epilogue'
  13735. With '-mno-prologue-epilogue', the normal function prologue and
  13736. epilogue which set up the stack frame are omitted and no return
  13737. instructions or return sequences are generated in the code. Use
  13738. this option only together with visual inspection of the compiled
  13739. code: no warnings or errors are generated when call-saved registers
  13740. must be saved, or storage for local variables needs to be
  13741. allocated.
  13742. '-mno-gotplt'
  13743. '-mgotplt'
  13744. With '-fpic' and '-fPIC', don't generate (do generate) instruction
  13745. sequences that load addresses for functions from the PLT part of
  13746. the GOT rather than (traditional on other architectures) calls to
  13747. the PLT. The default is '-mgotplt'.
  13748. '-melf'
  13749. Legacy no-op option only recognized with the cris-axis-elf and
  13750. cris-axis-linux-gnu targets.
  13751. '-mlinux'
  13752. Legacy no-op option only recognized with the cris-axis-linux-gnu
  13753. target.
  13754. '-sim'
  13755. This option, recognized for the cris-axis-elf, arranges to link
  13756. with input-output functions from a simulator library. Code,
  13757. initialized data and zero-initialized data are allocated
  13758. consecutively.
  13759. '-sim2'
  13760. Like '-sim', but pass linker options to locate initialized data at
  13761. 0x40000000 and zero-initialized data at 0x80000000.
  13762. 
  13763. File: gcc.info, Node: CR16 Options, Next: Darwin Options, Prev: CRIS Options, Up: Submodel Options
  13764. 3.18.9 CR16 Options
  13765. -------------------
  13766. These options are defined specifically for the CR16 ports.
  13767. '-mmac'
  13768. Enable the use of multiply-accumulate instructions. Disabled by
  13769. default.
  13770. '-mcr16cplus'
  13771. '-mcr16c'
  13772. Generate code for CR16C or CR16C+ architecture. CR16C+
  13773. architecture is default.
  13774. '-msim'
  13775. Links the library libsim.a which is in compatible with simulator.
  13776. Applicable to ELF compiler only.
  13777. '-mint32'
  13778. Choose integer type as 32-bit wide.
  13779. '-mbit-ops'
  13780. Generates 'sbit'/'cbit' instructions for bit manipulations.
  13781. '-mdata-model=MODEL'
  13782. Choose a data model. The choices for MODEL are 'near', 'far' or
  13783. 'medium'. 'medium' is default. However, 'far' is not valid with
  13784. '-mcr16c', as the CR16C architecture does not support the far data
  13785. model.
  13786. 
  13787. File: gcc.info, Node: Darwin Options, Next: DEC Alpha Options, Prev: CR16 Options, Up: Submodel Options
  13788. 3.18.10 Darwin Options
  13789. ----------------------
  13790. These options are defined for all architectures running the Darwin
  13791. operating system.
  13792. FSF GCC on Darwin does not create "fat" object files; it creates an
  13793. object file for the single architecture that GCC was built to target.
  13794. Apple's GCC on Darwin does create "fat" files if multiple '-arch'
  13795. options are used; it does so by running the compiler or linker multiple
  13796. times and joining the results together with 'lipo'.
  13797. The subtype of the file created (like 'ppc7400' or 'ppc970' or 'i686')
  13798. is determined by the flags that specify the ISA that GCC is targeting,
  13799. like '-mcpu' or '-march'. The '-force_cpusubtype_ALL' option can be
  13800. used to override this.
  13801. The Darwin tools vary in their behavior when presented with an ISA
  13802. mismatch. The assembler, 'as', only permits instructions to be used
  13803. that are valid for the subtype of the file it is generating, so you
  13804. cannot put 64-bit instructions in a 'ppc750' object file. The linker
  13805. for shared libraries, '/usr/bin/libtool', fails and prints an error if
  13806. asked to create a shared library with a less restrictive subtype than
  13807. its input files (for instance, trying to put a 'ppc970' object file in a
  13808. 'ppc7400' library). The linker for executables, 'ld', quietly gives the
  13809. executable the most restrictive subtype of any of its input files.
  13810. '-FDIR'
  13811. Add the framework directory DIR to the head of the list of
  13812. directories to be searched for header files. These directories are
  13813. interleaved with those specified by '-I' options and are scanned in
  13814. a left-to-right order.
  13815. A framework directory is a directory with frameworks in it. A
  13816. framework is a directory with a 'Headers' and/or 'PrivateHeaders'
  13817. directory contained directly in it that ends in '.framework'. The
  13818. name of a framework is the name of this directory excluding the
  13819. '.framework'. Headers associated with the framework are found in
  13820. one of those two directories, with 'Headers' being searched first.
  13821. A subframework is a framework directory that is in a framework's
  13822. 'Frameworks' directory. Includes of subframework headers can only
  13823. appear in a header of a framework that contains the subframework,
  13824. or in a sibling subframework header. Two subframeworks are
  13825. siblings if they occur in the same framework. A subframework
  13826. should not have the same name as a framework; a warning is issued
  13827. if this is violated. Currently a subframework cannot have
  13828. subframeworks; in the future, the mechanism may be extended to
  13829. support this. The standard frameworks can be found in
  13830. '/System/Library/Frameworks' and '/Library/Frameworks'. An example
  13831. include looks like '#include <Framework/header.h>', where
  13832. 'Framework' denotes the name of the framework and 'header.h' is
  13833. found in the 'PrivateHeaders' or 'Headers' directory.
  13834. '-iframeworkDIR'
  13835. Like '-F' except the directory is a treated as a system directory.
  13836. The main difference between this '-iframework' and '-F' is that
  13837. with '-iframework' the compiler does not warn about constructs
  13838. contained within header files found via DIR. This option is valid
  13839. only for the C family of languages.
  13840. '-gused'
  13841. Emit debugging information for symbols that are used. For stabs
  13842. debugging format, this enables '-feliminate-unused-debug-symbols'.
  13843. This is by default ON.
  13844. '-gfull'
  13845. Emit debugging information for all symbols and types.
  13846. '-mmacosx-version-min=VERSION'
  13847. The earliest version of MacOS X that this executable will run on is
  13848. VERSION. Typical values of VERSION include '10.1', '10.2', and
  13849. '10.3.9'.
  13850. If the compiler was built to use the system's headers by default,
  13851. then the default for this option is the system version on which the
  13852. compiler is running, otherwise the default is to make choices that
  13853. are compatible with as many systems and code bases as possible.
  13854. '-mkernel'
  13855. Enable kernel development mode. The '-mkernel' option sets
  13856. '-static', '-fno-common', '-fno-use-cxa-atexit', '-fno-exceptions',
  13857. '-fno-non-call-exceptions', '-fapple-kext', '-fno-weak' and
  13858. '-fno-rtti' where applicable. This mode also sets '-mno-altivec',
  13859. '-msoft-float', '-fno-builtin' and '-mlong-branch' for PowerPC
  13860. targets.
  13861. '-mone-byte-bool'
  13862. Override the defaults for 'bool' so that 'sizeof(bool)==1'. By
  13863. default 'sizeof(bool)' is '4' when compiling for Darwin/PowerPC and
  13864. '1' when compiling for Darwin/x86, so this option has no effect on
  13865. x86.
  13866. *Warning:* The '-mone-byte-bool' switch causes GCC to generate code
  13867. that is not binary compatible with code generated without that
  13868. switch. Using this switch may require recompiling all other
  13869. modules in a program, including system libraries. Use this switch
  13870. to conform to a non-default data model.
  13871. '-mfix-and-continue'
  13872. '-ffix-and-continue'
  13873. '-findirect-data'
  13874. Generate code suitable for fast turnaround development, such as to
  13875. allow GDB to dynamically load '.o' files into already-running
  13876. programs. '-findirect-data' and '-ffix-and-continue' are provided
  13877. for backwards compatibility.
  13878. '-all_load'
  13879. Loads all members of static archive libraries. See man ld(1) for
  13880. more information.
  13881. '-arch_errors_fatal'
  13882. Cause the errors having to do with files that have the wrong
  13883. architecture to be fatal.
  13884. '-bind_at_load'
  13885. Causes the output file to be marked such that the dynamic linker
  13886. will bind all undefined references when the file is loaded or
  13887. launched.
  13888. '-bundle'
  13889. Produce a Mach-o bundle format file. See man ld(1) for more
  13890. information.
  13891. '-bundle_loader EXECUTABLE'
  13892. This option specifies the EXECUTABLE that will load the build
  13893. output file being linked. See man ld(1) for more information.
  13894. '-dynamiclib'
  13895. When passed this option, GCC produces a dynamic library instead of
  13896. an executable when linking, using the Darwin 'libtool' command.
  13897. '-force_cpusubtype_ALL'
  13898. This causes GCC's output file to have the 'ALL' subtype, instead of
  13899. one controlled by the '-mcpu' or '-march' option.
  13900. '-allowable_client CLIENT_NAME'
  13901. '-client_name'
  13902. '-compatibility_version'
  13903. '-current_version'
  13904. '-dead_strip'
  13905. '-dependency-file'
  13906. '-dylib_file'
  13907. '-dylinker_install_name'
  13908. '-dynamic'
  13909. '-exported_symbols_list'
  13910. '-filelist'
  13911. '-flat_namespace'
  13912. '-force_flat_namespace'
  13913. '-headerpad_max_install_names'
  13914. '-image_base'
  13915. '-init'
  13916. '-install_name'
  13917. '-keep_private_externs'
  13918. '-multi_module'
  13919. '-multiply_defined'
  13920. '-multiply_defined_unused'
  13921. '-noall_load'
  13922. '-no_dead_strip_inits_and_terms'
  13923. '-nofixprebinding'
  13924. '-nomultidefs'
  13925. '-noprebind'
  13926. '-noseglinkedit'
  13927. '-pagezero_size'
  13928. '-prebind'
  13929. '-prebind_all_twolevel_modules'
  13930. '-private_bundle'
  13931. '-read_only_relocs'
  13932. '-sectalign'
  13933. '-sectobjectsymbols'
  13934. '-whyload'
  13935. '-seg1addr'
  13936. '-sectcreate'
  13937. '-sectobjectsymbols'
  13938. '-sectorder'
  13939. '-segaddr'
  13940. '-segs_read_only_addr'
  13941. '-segs_read_write_addr'
  13942. '-seg_addr_table'
  13943. '-seg_addr_table_filename'
  13944. '-seglinkedit'
  13945. '-segprot'
  13946. '-segs_read_only_addr'
  13947. '-segs_read_write_addr'
  13948. '-single_module'
  13949. '-static'
  13950. '-sub_library'
  13951. '-sub_umbrella'
  13952. '-twolevel_namespace'
  13953. '-umbrella'
  13954. '-undefined'
  13955. '-unexported_symbols_list'
  13956. '-weak_reference_mismatches'
  13957. '-whatsloaded'
  13958. These options are passed to the Darwin linker. The Darwin linker
  13959. man page describes them in detail.
  13960. 
  13961. File: gcc.info, Node: DEC Alpha Options, Next: FR30 Options, Prev: Darwin Options, Up: Submodel Options
  13962. 3.18.11 DEC Alpha Options
  13963. -------------------------
  13964. These '-m' options are defined for the DEC Alpha implementations:
  13965. '-mno-soft-float'
  13966. '-msoft-float'
  13967. Use (do not use) the hardware floating-point instructions for
  13968. floating-point operations. When '-msoft-float' is specified,
  13969. functions in 'libgcc.a' are used to perform floating-point
  13970. operations. Unless they are replaced by routines that emulate the
  13971. floating-point operations, or compiled in such a way as to call
  13972. such emulations routines, these routines issue floating-point
  13973. operations. If you are compiling for an Alpha without
  13974. floating-point operations, you must ensure that the library is
  13975. built so as not to call them.
  13976. Note that Alpha implementations without floating-point operations
  13977. are required to have floating-point registers.
  13978. '-mfp-reg'
  13979. '-mno-fp-regs'
  13980. Generate code that uses (does not use) the floating-point register
  13981. set. '-mno-fp-regs' implies '-msoft-float'. If the floating-point
  13982. register set is not used, floating-point operands are passed in
  13983. integer registers as if they were integers and floating-point
  13984. results are passed in '$0' instead of '$f0'. This is a
  13985. non-standard calling sequence, so any function with a
  13986. floating-point argument or return value called by code compiled
  13987. with '-mno-fp-regs' must also be compiled with that option.
  13988. A typical use of this option is building a kernel that does not
  13989. use, and hence need not save and restore, any floating-point
  13990. registers.
  13991. '-mieee'
  13992. The Alpha architecture implements floating-point hardware optimized
  13993. for maximum performance. It is mostly compliant with the IEEE
  13994. floating-point standard. However, for full compliance, software
  13995. assistance is required. This option generates code fully
  13996. IEEE-compliant code _except_ that the INEXACT-FLAG is not
  13997. maintained (see below). If this option is turned on, the
  13998. preprocessor macro '_IEEE_FP' is defined during compilation. The
  13999. resulting code is less efficient but is able to correctly support
  14000. denormalized numbers and exceptional IEEE values such as
  14001. not-a-number and plus/minus infinity. Other Alpha compilers call
  14002. this option '-ieee_with_no_inexact'.
  14003. '-mieee-with-inexact'
  14004. This is like '-mieee' except the generated code also maintains the
  14005. IEEE INEXACT-FLAG. Turning on this option causes the generated
  14006. code to implement fully-compliant IEEE math. In addition to
  14007. '_IEEE_FP', '_IEEE_FP_EXACT' is defined as a preprocessor macro.
  14008. On some Alpha implementations the resulting code may execute
  14009. significantly slower than the code generated by default. Since
  14010. there is very little code that depends on the INEXACT-FLAG, you
  14011. should normally not specify this option. Other Alpha compilers
  14012. call this option '-ieee_with_inexact'.
  14013. '-mfp-trap-mode=TRAP-MODE'
  14014. This option controls what floating-point related traps are enabled.
  14015. Other Alpha compilers call this option '-fptm TRAP-MODE'. The trap
  14016. mode can be set to one of four values:
  14017. 'n'
  14018. This is the default (normal) setting. The only traps that are
  14019. enabled are the ones that cannot be disabled in software
  14020. (e.g., division by zero trap).
  14021. 'u'
  14022. In addition to the traps enabled by 'n', underflow traps are
  14023. enabled as well.
  14024. 'su'
  14025. Like 'u', but the instructions are marked to be safe for
  14026. software completion (see Alpha architecture manual for
  14027. details).
  14028. 'sui'
  14029. Like 'su', but inexact traps are enabled as well.
  14030. '-mfp-rounding-mode=ROUNDING-MODE'
  14031. Selects the IEEE rounding mode. Other Alpha compilers call this
  14032. option '-fprm ROUNDING-MODE'. The ROUNDING-MODE can be one of:
  14033. 'n'
  14034. Normal IEEE rounding mode. Floating-point numbers are rounded
  14035. towards the nearest machine number or towards the even machine
  14036. number in case of a tie.
  14037. 'm'
  14038. Round towards minus infinity.
  14039. 'c'
  14040. Chopped rounding mode. Floating-point numbers are rounded
  14041. towards zero.
  14042. 'd'
  14043. Dynamic rounding mode. A field in the floating-point control
  14044. register (FPCR, see Alpha architecture reference manual)
  14045. controls the rounding mode in effect. The C library
  14046. initializes this register for rounding towards plus infinity.
  14047. Thus, unless your program modifies the FPCR, 'd' corresponds
  14048. to round towards plus infinity.
  14049. '-mtrap-precision=TRAP-PRECISION'
  14050. In the Alpha architecture, floating-point traps are imprecise.
  14051. This means without software assistance it is impossible to recover
  14052. from a floating trap and program execution normally needs to be
  14053. terminated. GCC can generate code that can assist operating system
  14054. trap handlers in determining the exact location that caused a
  14055. floating-point trap. Depending on the requirements of an
  14056. application, different levels of precisions can be selected:
  14057. 'p'
  14058. Program precision. This option is the default and means a
  14059. trap handler can only identify which program caused a
  14060. floating-point exception.
  14061. 'f'
  14062. Function precision. The trap handler can determine the
  14063. function that caused a floating-point exception.
  14064. 'i'
  14065. Instruction precision. The trap handler can determine the
  14066. exact instruction that caused a floating-point exception.
  14067. Other Alpha compilers provide the equivalent options called
  14068. '-scope_safe' and '-resumption_safe'.
  14069. '-mieee-conformant'
  14070. This option marks the generated code as IEEE conformant. You must
  14071. not use this option unless you also specify '-mtrap-precision=i'
  14072. and either '-mfp-trap-mode=su' or '-mfp-trap-mode=sui'. Its only
  14073. effect is to emit the line '.eflag 48' in the function prologue of
  14074. the generated assembly file.
  14075. '-mbuild-constants'
  14076. Normally GCC examines a 32- or 64-bit integer constant to see if it
  14077. can construct it from smaller constants in two or three
  14078. instructions. If it cannot, it outputs the constant as a literal
  14079. and generates code to load it from the data segment at run time.
  14080. Use this option to require GCC to construct _all_ integer constants
  14081. using code, even if it takes more instructions (the maximum is
  14082. six).
  14083. You typically use this option to build a shared library dynamic
  14084. loader. Itself a shared library, it must relocate itself in memory
  14085. before it can find the variables and constants in its own data
  14086. segment.
  14087. '-mbwx'
  14088. '-mno-bwx'
  14089. '-mcix'
  14090. '-mno-cix'
  14091. '-mfix'
  14092. '-mno-fix'
  14093. '-mmax'
  14094. '-mno-max'
  14095. Indicate whether GCC should generate code to use the optional BWX,
  14096. CIX, FIX and MAX instruction sets. The default is to use the
  14097. instruction sets supported by the CPU type specified via '-mcpu='
  14098. option or that of the CPU on which GCC was built if none is
  14099. specified.
  14100. '-mfloat-vax'
  14101. '-mfloat-ieee'
  14102. Generate code that uses (does not use) VAX F and G floating-point
  14103. arithmetic instead of IEEE single and double precision.
  14104. '-mexplicit-relocs'
  14105. '-mno-explicit-relocs'
  14106. Older Alpha assemblers provided no way to generate symbol
  14107. relocations except via assembler macros. Use of these macros does
  14108. not allow optimal instruction scheduling. GNU binutils as of
  14109. version 2.12 supports a new syntax that allows the compiler to
  14110. explicitly mark which relocations should apply to which
  14111. instructions. This option is mostly useful for debugging, as GCC
  14112. detects the capabilities of the assembler when it is built and sets
  14113. the default accordingly.
  14114. '-msmall-data'
  14115. '-mlarge-data'
  14116. When '-mexplicit-relocs' is in effect, static data is accessed via
  14117. "gp-relative" relocations. When '-msmall-data' is used, objects 8
  14118. bytes long or smaller are placed in a "small data area" (the
  14119. '.sdata' and '.sbss' sections) and are accessed via 16-bit
  14120. relocations off of the '$gp' register. This limits the size of the
  14121. small data area to 64KB, but allows the variables to be directly
  14122. accessed via a single instruction.
  14123. The default is '-mlarge-data'. With this option the data area is
  14124. limited to just below 2GB. Programs that require more than 2GB of
  14125. data must use 'malloc' or 'mmap' to allocate the data in the heap
  14126. instead of in the program's data segment.
  14127. When generating code for shared libraries, '-fpic' implies
  14128. '-msmall-data' and '-fPIC' implies '-mlarge-data'.
  14129. '-msmall-text'
  14130. '-mlarge-text'
  14131. When '-msmall-text' is used, the compiler assumes that the code of
  14132. the entire program (or shared library) fits in 4MB, and is thus
  14133. reachable with a branch instruction. When '-msmall-data' is used,
  14134. the compiler can assume that all local symbols share the same '$gp'
  14135. value, and thus reduce the number of instructions required for a
  14136. function call from 4 to 1.
  14137. The default is '-mlarge-text'.
  14138. '-mcpu=CPU_TYPE'
  14139. Set the instruction set and instruction scheduling parameters for
  14140. machine type CPU_TYPE. You can specify either the 'EV' style name
  14141. or the corresponding chip number. GCC supports scheduling
  14142. parameters for the EV4, EV5 and EV6 family of processors and
  14143. chooses the default values for the instruction set from the
  14144. processor you specify. If you do not specify a processor type, GCC
  14145. defaults to the processor on which the compiler was built.
  14146. Supported values for CPU_TYPE are
  14147. 'ev4'
  14148. 'ev45'
  14149. '21064'
  14150. Schedules as an EV4 and has no instruction set extensions.
  14151. 'ev5'
  14152. '21164'
  14153. Schedules as an EV5 and has no instruction set extensions.
  14154. 'ev56'
  14155. '21164a'
  14156. Schedules as an EV5 and supports the BWX extension.
  14157. 'pca56'
  14158. '21164pc'
  14159. '21164PC'
  14160. Schedules as an EV5 and supports the BWX and MAX extensions.
  14161. 'ev6'
  14162. '21264'
  14163. Schedules as an EV6 and supports the BWX, FIX, and MAX
  14164. extensions.
  14165. 'ev67'
  14166. '21264a'
  14167. Schedules as an EV6 and supports the BWX, CIX, FIX, and MAX
  14168. extensions.
  14169. Native toolchains also support the value 'native', which selects
  14170. the best architecture option for the host processor.
  14171. '-mcpu=native' has no effect if GCC does not recognize the
  14172. processor.
  14173. '-mtune=CPU_TYPE'
  14174. Set only the instruction scheduling parameters for machine type
  14175. CPU_TYPE. The instruction set is not changed.
  14176. Native toolchains also support the value 'native', which selects
  14177. the best architecture option for the host processor.
  14178. '-mtune=native' has no effect if GCC does not recognize the
  14179. processor.
  14180. '-mmemory-latency=TIME'
  14181. Sets the latency the scheduler should assume for typical memory
  14182. references as seen by the application. This number is highly
  14183. dependent on the memory access patterns used by the application and
  14184. the size of the external cache on the machine.
  14185. Valid options for TIME are
  14186. 'NUMBER'
  14187. A decimal number representing clock cycles.
  14188. 'L1'
  14189. 'L2'
  14190. 'L3'
  14191. 'main'
  14192. The compiler contains estimates of the number of clock cycles
  14193. for "typical" EV4 & EV5 hardware for the Level 1, 2 & 3 caches
  14194. (also called Dcache, Scache, and Bcache), as well as to main
  14195. memory. Note that L3 is only valid for EV5.
  14196. 
  14197. File: gcc.info, Node: FR30 Options, Next: FT32 Options, Prev: DEC Alpha Options, Up: Submodel Options
  14198. 3.18.12 FR30 Options
  14199. --------------------
  14200. These options are defined specifically for the FR30 port.
  14201. '-msmall-model'
  14202. Use the small address space model. This can produce smaller code,
  14203. but it does assume that all symbolic values and addresses fit into
  14204. a 20-bit range.
  14205. '-mno-lsim'
  14206. Assume that runtime support has been provided and so there is no
  14207. need to include the simulator library ('libsim.a') on the linker
  14208. command line.
  14209. 
  14210. File: gcc.info, Node: FT32 Options, Next: FRV Options, Prev: FR30 Options, Up: Submodel Options
  14211. 3.18.13 FT32 Options
  14212. --------------------
  14213. These options are defined specifically for the FT32 port.
  14214. '-msim'
  14215. Specifies that the program will be run on the simulator. This
  14216. causes an alternate runtime startup and library to be linked. You
  14217. must not use this option when generating programs that will run on
  14218. real hardware; you must provide your own runtime library for
  14219. whatever I/O functions are needed.
  14220. '-mlra'
  14221. Enable Local Register Allocation. This is still experimental for
  14222. FT32, so by default the compiler uses standard reload.
  14223. '-mnodiv'
  14224. Do not use div and mod instructions.
  14225. '-mft32b'
  14226. Enable use of the extended instructions of the FT32B processor.
  14227. '-mcompress'
  14228. Compress all code using the Ft32B code compression scheme.
  14229. '-mnopm'
  14230. Do not generate code that reads program memory.
  14231. 
  14232. File: gcc.info, Node: FRV Options, Next: GNU/Linux Options, Prev: FT32 Options, Up: Submodel Options
  14233. 3.18.14 FRV Options
  14234. -------------------
  14235. '-mgpr-32'
  14236. Only use the first 32 general-purpose registers.
  14237. '-mgpr-64'
  14238. Use all 64 general-purpose registers.
  14239. '-mfpr-32'
  14240. Use only the first 32 floating-point registers.
  14241. '-mfpr-64'
  14242. Use all 64 floating-point registers.
  14243. '-mhard-float'
  14244. Use hardware instructions for floating-point operations.
  14245. '-msoft-float'
  14246. Use library routines for floating-point operations.
  14247. '-malloc-cc'
  14248. Dynamically allocate condition code registers.
  14249. '-mfixed-cc'
  14250. Do not try to dynamically allocate condition code registers, only
  14251. use 'icc0' and 'fcc0'.
  14252. '-mdword'
  14253. Change ABI to use double word insns.
  14254. '-mno-dword'
  14255. Do not use double word instructions.
  14256. '-mdouble'
  14257. Use floating-point double instructions.
  14258. '-mno-double'
  14259. Do not use floating-point double instructions.
  14260. '-mmedia'
  14261. Use media instructions.
  14262. '-mno-media'
  14263. Do not use media instructions.
  14264. '-mmuladd'
  14265. Use multiply and add/subtract instructions.
  14266. '-mno-muladd'
  14267. Do not use multiply and add/subtract instructions.
  14268. '-mfdpic'
  14269. Select the FDPIC ABI, which uses function descriptors to represent
  14270. pointers to functions. Without any PIC/PIE-related options, it
  14271. implies '-fPIE'. With '-fpic' or '-fpie', it assumes GOT entries
  14272. and small data are within a 12-bit range from the GOT base address;
  14273. with '-fPIC' or '-fPIE', GOT offsets are computed with 32 bits.
  14274. With a 'bfin-elf' target, this option implies '-msim'.
  14275. '-minline-plt'
  14276. Enable inlining of PLT entries in function calls to functions that
  14277. are not known to bind locally. It has no effect without '-mfdpic'.
  14278. It's enabled by default if optimizing for speed and compiling for
  14279. shared libraries (i.e., '-fPIC' or '-fpic'), or when an
  14280. optimization option such as '-O3' or above is present in the
  14281. command line.
  14282. '-mTLS'
  14283. Assume a large TLS segment when generating thread-local code.
  14284. '-mtls'
  14285. Do not assume a large TLS segment when generating thread-local
  14286. code.
  14287. '-mgprel-ro'
  14288. Enable the use of 'GPREL' relocations in the FDPIC ABI for data
  14289. that is known to be in read-only sections. It's enabled by
  14290. default, except for '-fpic' or '-fpie': even though it may help
  14291. make the global offset table smaller, it trades 1 instruction for
  14292. 4. With '-fPIC' or '-fPIE', it trades 3 instructions for 4, one of
  14293. which may be shared by multiple symbols, and it avoids the need for
  14294. a GOT entry for the referenced symbol, so it's more likely to be a
  14295. win. If it is not, '-mno-gprel-ro' can be used to disable it.
  14296. '-multilib-library-pic'
  14297. Link with the (library, not FD) pic libraries. It's implied by
  14298. '-mlibrary-pic', as well as by '-fPIC' and '-fpic' without
  14299. '-mfdpic'. You should never have to use it explicitly.
  14300. '-mlinked-fp'
  14301. Follow the EABI requirement of always creating a frame pointer
  14302. whenever a stack frame is allocated. This option is enabled by
  14303. default and can be disabled with '-mno-linked-fp'.
  14304. '-mlong-calls'
  14305. Use indirect addressing to call functions outside the current
  14306. compilation unit. This allows the functions to be placed anywhere
  14307. within the 32-bit address space.
  14308. '-malign-labels'
  14309. Try to align labels to an 8-byte boundary by inserting NOPs into
  14310. the previous packet. This option only has an effect when VLIW
  14311. packing is enabled. It doesn't create new packets; it merely adds
  14312. NOPs to existing ones.
  14313. '-mlibrary-pic'
  14314. Generate position-independent EABI code.
  14315. '-macc-4'
  14316. Use only the first four media accumulator registers.
  14317. '-macc-8'
  14318. Use all eight media accumulator registers.
  14319. '-mpack'
  14320. Pack VLIW instructions.
  14321. '-mno-pack'
  14322. Do not pack VLIW instructions.
  14323. '-mno-eflags'
  14324. Do not mark ABI switches in e_flags.
  14325. '-mcond-move'
  14326. Enable the use of conditional-move instructions (default).
  14327. This switch is mainly for debugging the compiler and will likely be
  14328. removed in a future version.
  14329. '-mno-cond-move'
  14330. Disable the use of conditional-move instructions.
  14331. This switch is mainly for debugging the compiler and will likely be
  14332. removed in a future version.
  14333. '-mscc'
  14334. Enable the use of conditional set instructions (default).
  14335. This switch is mainly for debugging the compiler and will likely be
  14336. removed in a future version.
  14337. '-mno-scc'
  14338. Disable the use of conditional set instructions.
  14339. This switch is mainly for debugging the compiler and will likely be
  14340. removed in a future version.
  14341. '-mcond-exec'
  14342. Enable the use of conditional execution (default).
  14343. This switch is mainly for debugging the compiler and will likely be
  14344. removed in a future version.
  14345. '-mno-cond-exec'
  14346. Disable the use of conditional execution.
  14347. This switch is mainly for debugging the compiler and will likely be
  14348. removed in a future version.
  14349. '-mvliw-branch'
  14350. Run a pass to pack branches into VLIW instructions (default).
  14351. This switch is mainly for debugging the compiler and will likely be
  14352. removed in a future version.
  14353. '-mno-vliw-branch'
  14354. Do not run a pass to pack branches into VLIW instructions.
  14355. This switch is mainly for debugging the compiler and will likely be
  14356. removed in a future version.
  14357. '-mmulti-cond-exec'
  14358. Enable optimization of '&&' and '||' in conditional execution
  14359. (default).
  14360. This switch is mainly for debugging the compiler and will likely be
  14361. removed in a future version.
  14362. '-mno-multi-cond-exec'
  14363. Disable optimization of '&&' and '||' in conditional execution.
  14364. This switch is mainly for debugging the compiler and will likely be
  14365. removed in a future version.
  14366. '-mnested-cond-exec'
  14367. Enable nested conditional execution optimizations (default).
  14368. This switch is mainly for debugging the compiler and will likely be
  14369. removed in a future version.
  14370. '-mno-nested-cond-exec'
  14371. Disable nested conditional execution optimizations.
  14372. This switch is mainly for debugging the compiler and will likely be
  14373. removed in a future version.
  14374. '-moptimize-membar'
  14375. This switch removes redundant 'membar' instructions from the
  14376. compiler-generated code. It is enabled by default.
  14377. '-mno-optimize-membar'
  14378. This switch disables the automatic removal of redundant 'membar'
  14379. instructions from the generated code.
  14380. '-mtomcat-stats'
  14381. Cause gas to print out tomcat statistics.
  14382. '-mcpu=CPU'
  14383. Select the processor type for which to generate code. Possible
  14384. values are 'frv', 'fr550', 'tomcat', 'fr500', 'fr450', 'fr405',
  14385. 'fr400', 'fr300' and 'simple'.
  14386. 
  14387. File: gcc.info, Node: GNU/Linux Options, Next: H8/300 Options, Prev: FRV Options, Up: Submodel Options
  14388. 3.18.15 GNU/Linux Options
  14389. -------------------------
  14390. These '-m' options are defined for GNU/Linux targets:
  14391. '-mglibc'
  14392. Use the GNU C library. This is the default except on
  14393. '*-*-linux-*uclibc*', '*-*-linux-*musl*' and '*-*-linux-*android*'
  14394. targets.
  14395. '-muclibc'
  14396. Use uClibc C library. This is the default on '*-*-linux-*uclibc*'
  14397. targets.
  14398. '-mmusl'
  14399. Use the musl C library. This is the default on '*-*-linux-*musl*'
  14400. targets.
  14401. '-mbionic'
  14402. Use Bionic C library. This is the default on '*-*-linux-*android*'
  14403. targets.
  14404. '-mandroid'
  14405. Compile code compatible with Android platform. This is the default
  14406. on '*-*-linux-*android*' targets.
  14407. When compiling, this option enables '-mbionic', '-fPIC',
  14408. '-fno-exceptions' and '-fno-rtti' by default. When linking, this
  14409. option makes the GCC driver pass Android-specific options to the
  14410. linker. Finally, this option causes the preprocessor macro
  14411. '__ANDROID__' to be defined.
  14412. '-tno-android-cc'
  14413. Disable compilation effects of '-mandroid', i.e., do not enable
  14414. '-mbionic', '-fPIC', '-fno-exceptions' and '-fno-rtti' by default.
  14415. '-tno-android-ld'
  14416. Disable linking effects of '-mandroid', i.e., pass standard Linux
  14417. linking options to the linker.
  14418. 
  14419. File: gcc.info, Node: H8/300 Options, Next: HPPA Options, Prev: GNU/Linux Options, Up: Submodel Options
  14420. 3.18.16 H8/300 Options
  14421. ----------------------
  14422. These '-m' options are defined for the H8/300 implementations:
  14423. '-mrelax'
  14424. Shorten some address references at link time, when possible; uses
  14425. the linker option '-relax'. *Note 'ld' and the H8/300: (ld)H8/300,
  14426. for a fuller description.
  14427. '-mh'
  14428. Generate code for the H8/300H.
  14429. '-ms'
  14430. Generate code for the H8S.
  14431. '-mn'
  14432. Generate code for the H8S and H8/300H in the normal mode. This
  14433. switch must be used either with '-mh' or '-ms'.
  14434. '-ms2600'
  14435. Generate code for the H8S/2600. This switch must be used with
  14436. '-ms'.
  14437. '-mexr'
  14438. Extended registers are stored on stack before execution of function
  14439. with monitor attribute. Default option is '-mexr'. This option is
  14440. valid only for H8S targets.
  14441. '-mno-exr'
  14442. Extended registers are not stored on stack before execution of
  14443. function with monitor attribute. Default option is '-mno-exr'.
  14444. This option is valid only for H8S targets.
  14445. '-mint32'
  14446. Make 'int' data 32 bits by default.
  14447. '-malign-300'
  14448. On the H8/300H and H8S, use the same alignment rules as for the
  14449. H8/300. The default for the H8/300H and H8S is to align longs and
  14450. floats on 4-byte boundaries. '-malign-300' causes them to be
  14451. aligned on 2-byte boundaries. This option has no effect on the
  14452. H8/300.
  14453. 
  14454. File: gcc.info, Node: HPPA Options, Next: IA-64 Options, Prev: H8/300 Options, Up: Submodel Options
  14455. 3.18.17 HPPA Options
  14456. --------------------
  14457. These '-m' options are defined for the HPPA family of computers:
  14458. '-march=ARCHITECTURE-TYPE'
  14459. Generate code for the specified architecture. The choices for
  14460. ARCHITECTURE-TYPE are '1.0' for PA 1.0, '1.1' for PA 1.1, and '2.0'
  14461. for PA 2.0 processors. Refer to '/usr/lib/sched.models' on an
  14462. HP-UX system to determine the proper architecture option for your
  14463. machine. Code compiled for lower numbered architectures runs on
  14464. higher numbered architectures, but not the other way around.
  14465. '-mpa-risc-1-0'
  14466. '-mpa-risc-1-1'
  14467. '-mpa-risc-2-0'
  14468. Synonyms for '-march=1.0', '-march=1.1', and '-march=2.0'
  14469. respectively.
  14470. '-mcaller-copies'
  14471. The caller copies function arguments passed by hidden reference.
  14472. This option should be used with care as it is not compatible with
  14473. the default 32-bit runtime. However, only aggregates larger than
  14474. eight bytes are passed by hidden reference and the option provides
  14475. better compatibility with OpenMP.
  14476. '-mjump-in-delay'
  14477. This option is ignored and provided for compatibility purposes
  14478. only.
  14479. '-mdisable-fpregs'
  14480. Prevent floating-point registers from being used in any manner.
  14481. This is necessary for compiling kernels that perform lazy context
  14482. switching of floating-point registers. If you use this option and
  14483. attempt to perform floating-point operations, the compiler aborts.
  14484. '-mdisable-indexing'
  14485. Prevent the compiler from using indexing address modes. This
  14486. avoids some rather obscure problems when compiling MIG generated
  14487. code under MACH.
  14488. '-mno-space-regs'
  14489. Generate code that assumes the target has no space registers. This
  14490. allows GCC to generate faster indirect calls and use unscaled index
  14491. address modes.
  14492. Such code is suitable for level 0 PA systems and kernels.
  14493. '-mfast-indirect-calls'
  14494. Generate code that assumes calls never cross space boundaries.
  14495. This allows GCC to emit code that performs faster indirect calls.
  14496. This option does not work in the presence of shared libraries or
  14497. nested functions.
  14498. '-mfixed-range=REGISTER-RANGE'
  14499. Generate code treating the given register range as fixed registers.
  14500. A fixed register is one that the register allocator cannot use.
  14501. This is useful when compiling kernel code. A register range is
  14502. specified as two registers separated by a dash. Multiple register
  14503. ranges can be specified separated by a comma.
  14504. '-mlong-load-store'
  14505. Generate 3-instruction load and store sequences as sometimes
  14506. required by the HP-UX 10 linker. This is equivalent to the '+k'
  14507. option to the HP compilers.
  14508. '-mportable-runtime'
  14509. Use the portable calling conventions proposed by HP for ELF
  14510. systems.
  14511. '-mgas'
  14512. Enable the use of assembler directives only GAS understands.
  14513. '-mschedule=CPU-TYPE'
  14514. Schedule code according to the constraints for the machine type
  14515. CPU-TYPE. The choices for CPU-TYPE are '700' '7100', '7100LC',
  14516. '7200', '7300' and '8000'. Refer to '/usr/lib/sched.models' on an
  14517. HP-UX system to determine the proper scheduling option for your
  14518. machine. The default scheduling is '8000'.
  14519. '-mlinker-opt'
  14520. Enable the optimization pass in the HP-UX linker. Note this makes
  14521. symbolic debugging impossible. It also triggers a bug in the HP-UX
  14522. 8 and HP-UX 9 linkers in which they give bogus error messages when
  14523. linking some programs.
  14524. '-msoft-float'
  14525. Generate output containing library calls for floating point.
  14526. *Warning:* the requisite libraries are not available for all HPPA
  14527. targets. Normally the facilities of the machine's usual C compiler
  14528. are used, but this cannot be done directly in cross-compilation.
  14529. You must make your own arrangements to provide suitable library
  14530. functions for cross-compilation.
  14531. '-msoft-float' changes the calling convention in the output file;
  14532. therefore, it is only useful if you compile _all_ of a program with
  14533. this option. In particular, you need to compile 'libgcc.a', the
  14534. library that comes with GCC, with '-msoft-float' in order for this
  14535. to work.
  14536. '-msio'
  14537. Generate the predefine, '_SIO', for server IO. The default is
  14538. '-mwsio'. This generates the predefines, '__hp9000s700',
  14539. '__hp9000s700__' and '_WSIO', for workstation IO. These options
  14540. are available under HP-UX and HI-UX.
  14541. '-mgnu-ld'
  14542. Use options specific to GNU 'ld'. This passes '-shared' to 'ld'
  14543. when building a shared library. It is the default when GCC is
  14544. configured, explicitly or implicitly, with the GNU linker. This
  14545. option does not affect which 'ld' is called; it only changes what
  14546. parameters are passed to that 'ld'. The 'ld' that is called is
  14547. determined by the '--with-ld' configure option, GCC's program
  14548. search path, and finally by the user's 'PATH'. The linker used by
  14549. GCC can be printed using 'which `gcc -print-prog-name=ld`'. This
  14550. option is only available on the 64-bit HP-UX GCC, i.e. configured
  14551. with 'hppa*64*-*-hpux*'.
  14552. '-mhp-ld'
  14553. Use options specific to HP 'ld'. This passes '-b' to 'ld' when
  14554. building a shared library and passes '+Accept TypeMismatch' to 'ld'
  14555. on all links. It is the default when GCC is configured, explicitly
  14556. or implicitly, with the HP linker. This option does not affect
  14557. which 'ld' is called; it only changes what parameters are passed to
  14558. that 'ld'. The 'ld' that is called is determined by the
  14559. '--with-ld' configure option, GCC's program search path, and
  14560. finally by the user's 'PATH'. The linker used by GCC can be
  14561. printed using 'which `gcc -print-prog-name=ld`'. This option is
  14562. only available on the 64-bit HP-UX GCC, i.e. configured with
  14563. 'hppa*64*-*-hpux*'.
  14564. '-mlong-calls'
  14565. Generate code that uses long call sequences. This ensures that a
  14566. call is always able to reach linker generated stubs. The default
  14567. is to generate long calls only when the distance from the call site
  14568. to the beginning of the function or translation unit, as the case
  14569. may be, exceeds a predefined limit set by the branch type being
  14570. used. The limits for normal calls are 7,600,000 and 240,000 bytes,
  14571. respectively for the PA 2.0 and PA 1.X architectures. Sibcalls are
  14572. always limited at 240,000 bytes.
  14573. Distances are measured from the beginning of functions when using
  14574. the '-ffunction-sections' option, or when using the '-mgas' and
  14575. '-mno-portable-runtime' options together under HP-UX with the SOM
  14576. linker.
  14577. It is normally not desirable to use this option as it degrades
  14578. performance. However, it may be useful in large applications,
  14579. particularly when partial linking is used to build the application.
  14580. The types of long calls used depends on the capabilities of the
  14581. assembler and linker, and the type of code being generated. The
  14582. impact on systems that support long absolute calls, and long pic
  14583. symbol-difference or pc-relative calls should be relatively small.
  14584. However, an indirect call is used on 32-bit ELF systems in pic code
  14585. and it is quite long.
  14586. '-munix=UNIX-STD'
  14587. Generate compiler predefines and select a startfile for the
  14588. specified UNIX standard. The choices for UNIX-STD are '93', '95'
  14589. and '98'. '93' is supported on all HP-UX versions. '95' is
  14590. available on HP-UX 10.10 and later. '98' is available on HP-UX
  14591. 11.11 and later. The default values are '93' for HP-UX 10.00, '95'
  14592. for HP-UX 10.10 though to 11.00, and '98' for HP-UX 11.11 and
  14593. later.
  14594. '-munix=93' provides the same predefines as GCC 3.3 and 3.4.
  14595. '-munix=95' provides additional predefines for 'XOPEN_UNIX' and
  14596. '_XOPEN_SOURCE_EXTENDED', and the startfile 'unix95.o'.
  14597. '-munix=98' provides additional predefines for '_XOPEN_UNIX',
  14598. '_XOPEN_SOURCE_EXTENDED', '_INCLUDE__STDC_A1_SOURCE' and
  14599. '_INCLUDE_XOPEN_SOURCE_500', and the startfile 'unix98.o'.
  14600. It is _important_ to note that this option changes the interfaces
  14601. for various library routines. It also affects the operational
  14602. behavior of the C library. Thus, _extreme_ care is needed in using
  14603. this option.
  14604. Library code that is intended to operate with more than one UNIX
  14605. standard must test, set and restore the variable
  14606. '__xpg4_extended_mask' as appropriate. Most GNU software doesn't
  14607. provide this capability.
  14608. '-nolibdld'
  14609. Suppress the generation of link options to search libdld.sl when
  14610. the '-static' option is specified on HP-UX 10 and later.
  14611. '-static'
  14612. The HP-UX implementation of setlocale in libc has a dependency on
  14613. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  14614. when the '-static' option is specified, special link options are
  14615. needed to resolve this dependency.
  14616. On HP-UX 10 and later, the GCC driver adds the necessary options to
  14617. link with libdld.sl when the '-static' option is specified. This
  14618. causes the resulting binary to be dynamic. On the 64-bit port, the
  14619. linkers generate dynamic binaries by default in any case. The
  14620. '-nolibdld' option can be used to prevent the GCC driver from
  14621. adding these link options.
  14622. '-threads'
  14623. Add support for multithreading with the "dce thread" library under
  14624. HP-UX. This option sets flags for both the preprocessor and
  14625. linker.
  14626. 
  14627. File: gcc.info, Node: IA-64 Options, Next: LM32 Options, Prev: HPPA Options, Up: Submodel Options
  14628. 3.18.18 IA-64 Options
  14629. ---------------------
  14630. These are the '-m' options defined for the Intel IA-64 architecture.
  14631. '-mbig-endian'
  14632. Generate code for a big-endian target. This is the default for
  14633. HP-UX.
  14634. '-mlittle-endian'
  14635. Generate code for a little-endian target. This is the default for
  14636. AIX5 and GNU/Linux.
  14637. '-mgnu-as'
  14638. '-mno-gnu-as'
  14639. Generate (or don't) code for the GNU assembler. This is the
  14640. default.
  14641. '-mgnu-ld'
  14642. '-mno-gnu-ld'
  14643. Generate (or don't) code for the GNU linker. This is the default.
  14644. '-mno-pic'
  14645. Generate code that does not use a global pointer register. The
  14646. result is not position independent code, and violates the IA-64
  14647. ABI.
  14648. '-mvolatile-asm-stop'
  14649. '-mno-volatile-asm-stop'
  14650. Generate (or don't) a stop bit immediately before and after
  14651. volatile asm statements.
  14652. '-mregister-names'
  14653. '-mno-register-names'
  14654. Generate (or don't) 'in', 'loc', and 'out' register names for the
  14655. stacked registers. This may make assembler output more readable.
  14656. '-mno-sdata'
  14657. '-msdata'
  14658. Disable (or enable) optimizations that use the small data section.
  14659. This may be useful for working around optimizer bugs.
  14660. '-mconstant-gp'
  14661. Generate code that uses a single constant global pointer value.
  14662. This is useful when compiling kernel code.
  14663. '-mauto-pic'
  14664. Generate code that is self-relocatable. This implies
  14665. '-mconstant-gp'. This is useful when compiling firmware code.
  14666. '-minline-float-divide-min-latency'
  14667. Generate code for inline divides of floating-point values using the
  14668. minimum latency algorithm.
  14669. '-minline-float-divide-max-throughput'
  14670. Generate code for inline divides of floating-point values using the
  14671. maximum throughput algorithm.
  14672. '-mno-inline-float-divide'
  14673. Do not generate inline code for divides of floating-point values.
  14674. '-minline-int-divide-min-latency'
  14675. Generate code for inline divides of integer values using the
  14676. minimum latency algorithm.
  14677. '-minline-int-divide-max-throughput'
  14678. Generate code for inline divides of integer values using the
  14679. maximum throughput algorithm.
  14680. '-mno-inline-int-divide'
  14681. Do not generate inline code for divides of integer values.
  14682. '-minline-sqrt-min-latency'
  14683. Generate code for inline square roots using the minimum latency
  14684. algorithm.
  14685. '-minline-sqrt-max-throughput'
  14686. Generate code for inline square roots using the maximum throughput
  14687. algorithm.
  14688. '-mno-inline-sqrt'
  14689. Do not generate inline code for 'sqrt'.
  14690. '-mfused-madd'
  14691. '-mno-fused-madd'
  14692. Do (don't) generate code that uses the fused multiply/add or
  14693. multiply/subtract instructions. The default is to use these
  14694. instructions.
  14695. '-mno-dwarf2-asm'
  14696. '-mdwarf2-asm'
  14697. Don't (or do) generate assembler code for the DWARF line number
  14698. debugging info. This may be useful when not using the GNU
  14699. assembler.
  14700. '-mearly-stop-bits'
  14701. '-mno-early-stop-bits'
  14702. Allow stop bits to be placed earlier than immediately preceding the
  14703. instruction that triggered the stop bit. This can improve
  14704. instruction scheduling, but does not always do so.
  14705. '-mfixed-range=REGISTER-RANGE'
  14706. Generate code treating the given register range as fixed registers.
  14707. A fixed register is one that the register allocator cannot use.
  14708. This is useful when compiling kernel code. A register range is
  14709. specified as two registers separated by a dash. Multiple register
  14710. ranges can be specified separated by a comma.
  14711. '-mtls-size=TLS-SIZE'
  14712. Specify bit size of immediate TLS offsets. Valid values are 14,
  14713. 22, and 64.
  14714. '-mtune=CPU-TYPE'
  14715. Tune the instruction scheduling for a particular CPU, Valid values
  14716. are 'itanium', 'itanium1', 'merced', 'itanium2', and 'mckinley'.
  14717. '-milp32'
  14718. '-mlp64'
  14719. Generate code for a 32-bit or 64-bit environment. The 32-bit
  14720. environment sets int, long and pointer to 32 bits. The 64-bit
  14721. environment sets int to 32 bits and long and pointer to 64 bits.
  14722. These are HP-UX specific flags.
  14723. '-mno-sched-br-data-spec'
  14724. '-msched-br-data-spec'
  14725. (Dis/En)able data speculative scheduling before reload. This
  14726. results in generation of 'ld.a' instructions and the corresponding
  14727. check instructions ('ld.c' / 'chk.a'). The default setting is
  14728. disabled.
  14729. '-msched-ar-data-spec'
  14730. '-mno-sched-ar-data-spec'
  14731. (En/Dis)able data speculative scheduling after reload. This
  14732. results in generation of 'ld.a' instructions and the corresponding
  14733. check instructions ('ld.c' / 'chk.a'). The default setting is
  14734. enabled.
  14735. '-mno-sched-control-spec'
  14736. '-msched-control-spec'
  14737. (Dis/En)able control speculative scheduling. This feature is
  14738. available only during region scheduling (i.e. before reload). This
  14739. results in generation of the 'ld.s' instructions and the
  14740. corresponding check instructions 'chk.s'. The default setting is
  14741. disabled.
  14742. '-msched-br-in-data-spec'
  14743. '-mno-sched-br-in-data-spec'
  14744. (En/Dis)able speculative scheduling of the instructions that are
  14745. dependent on the data speculative loads before reload. This is
  14746. effective only with '-msched-br-data-spec' enabled. The default
  14747. setting is enabled.
  14748. '-msched-ar-in-data-spec'
  14749. '-mno-sched-ar-in-data-spec'
  14750. (En/Dis)able speculative scheduling of the instructions that are
  14751. dependent on the data speculative loads after reload. This is
  14752. effective only with '-msched-ar-data-spec' enabled. The default
  14753. setting is enabled.
  14754. '-msched-in-control-spec'
  14755. '-mno-sched-in-control-spec'
  14756. (En/Dis)able speculative scheduling of the instructions that are
  14757. dependent on the control speculative loads. This is effective only
  14758. with '-msched-control-spec' enabled. The default setting is
  14759. enabled.
  14760. '-mno-sched-prefer-non-data-spec-insns'
  14761. '-msched-prefer-non-data-spec-insns'
  14762. If enabled, data-speculative instructions are chosen for schedule
  14763. only if there are no other choices at the moment. This makes the
  14764. use of the data speculation much more conservative. The default
  14765. setting is disabled.
  14766. '-mno-sched-prefer-non-control-spec-insns'
  14767. '-msched-prefer-non-control-spec-insns'
  14768. If enabled, control-speculative instructions are chosen for
  14769. schedule only if there are no other choices at the moment. This
  14770. makes the use of the control speculation much more conservative.
  14771. The default setting is disabled.
  14772. '-mno-sched-count-spec-in-critical-path'
  14773. '-msched-count-spec-in-critical-path'
  14774. If enabled, speculative dependencies are considered during
  14775. computation of the instructions priorities. This makes the use of
  14776. the speculation a bit more conservative. The default setting is
  14777. disabled.
  14778. '-msched-spec-ldc'
  14779. Use a simple data speculation check. This option is on by default.
  14780. '-msched-control-spec-ldc'
  14781. Use a simple check for control speculation. This option is on by
  14782. default.
  14783. '-msched-stop-bits-after-every-cycle'
  14784. Place a stop bit after every cycle when scheduling. This option is
  14785. on by default.
  14786. '-msched-fp-mem-deps-zero-cost'
  14787. Assume that floating-point stores and loads are not likely to cause
  14788. a conflict when placed into the same instruction group. This
  14789. option is disabled by default.
  14790. '-msel-sched-dont-check-control-spec'
  14791. Generate checks for control speculation in selective scheduling.
  14792. This flag is disabled by default.
  14793. '-msched-max-memory-insns=MAX-INSNS'
  14794. Limit on the number of memory insns per instruction group, giving
  14795. lower priority to subsequent memory insns attempting to schedule in
  14796. the same instruction group. Frequently useful to prevent cache
  14797. bank conflicts. The default value is 1.
  14798. '-msched-max-memory-insns-hard-limit'
  14799. Makes the limit specified by 'msched-max-memory-insns' a hard
  14800. limit, disallowing more than that number in an instruction group.
  14801. Otherwise, the limit is "soft", meaning that non-memory operations
  14802. are preferred when the limit is reached, but memory operations may
  14803. still be scheduled.
  14804. 
  14805. File: gcc.info, Node: LM32 Options, Next: M32C Options, Prev: IA-64 Options, Up: Submodel Options
  14806. 3.18.19 LM32 Options
  14807. --------------------
  14808. These '-m' options are defined for the LatticeMico32 architecture:
  14809. '-mbarrel-shift-enabled'
  14810. Enable barrel-shift instructions.
  14811. '-mdivide-enabled'
  14812. Enable divide and modulus instructions.
  14813. '-mmultiply-enabled'
  14814. Enable multiply instructions.
  14815. '-msign-extend-enabled'
  14816. Enable sign extend instructions.
  14817. '-muser-enabled'
  14818. Enable user-defined instructions.
  14819. 
  14820. File: gcc.info, Node: M32C Options, Next: M32R/D Options, Prev: LM32 Options, Up: Submodel Options
  14821. 3.18.20 M32C Options
  14822. --------------------
  14823. '-mcpu=NAME'
  14824. Select the CPU for which code is generated. NAME may be one of
  14825. 'r8c' for the R8C/Tiny series, 'm16c' for the M16C (up to /60)
  14826. series, 'm32cm' for the M16C/80 series, or 'm32c' for the M32C/80
  14827. series.
  14828. '-msim'
  14829. Specifies that the program will be run on the simulator. This
  14830. causes an alternate runtime library to be linked in which supports,
  14831. for example, file I/O. You must not use this option when
  14832. generating programs that will run on real hardware; you must
  14833. provide your own runtime library for whatever I/O functions are
  14834. needed.
  14835. '-memregs=NUMBER'
  14836. Specifies the number of memory-based pseudo-registers GCC uses
  14837. during code generation. These pseudo-registers are used like real
  14838. registers, so there is a tradeoff between GCC's ability to fit the
  14839. code into available registers, and the performance penalty of using
  14840. memory instead of registers. Note that all modules in a program
  14841. must be compiled with the same value for this option. Because of
  14842. that, you must not use this option with GCC's default runtime
  14843. libraries.
  14844. 
  14845. File: gcc.info, Node: M32R/D Options, Next: M680x0 Options, Prev: M32C Options, Up: Submodel Options
  14846. 3.18.21 M32R/D Options
  14847. ----------------------
  14848. These '-m' options are defined for Renesas M32R/D architectures:
  14849. '-m32r2'
  14850. Generate code for the M32R/2.
  14851. '-m32rx'
  14852. Generate code for the M32R/X.
  14853. '-m32r'
  14854. Generate code for the M32R. This is the default.
  14855. '-mmodel=small'
  14856. Assume all objects live in the lower 16MB of memory (so that their
  14857. addresses can be loaded with the 'ld24' instruction), and assume
  14858. all subroutines are reachable with the 'bl' instruction. This is
  14859. the default.
  14860. The addressability of a particular object can be set with the
  14861. 'model' attribute.
  14862. '-mmodel=medium'
  14863. Assume objects may be anywhere in the 32-bit address space (the
  14864. compiler generates 'seth/add3' instructions to load their
  14865. addresses), and assume all subroutines are reachable with the 'bl'
  14866. instruction.
  14867. '-mmodel=large'
  14868. Assume objects may be anywhere in the 32-bit address space (the
  14869. compiler generates 'seth/add3' instructions to load their
  14870. addresses), and assume subroutines may not be reachable with the
  14871. 'bl' instruction (the compiler generates the much slower
  14872. 'seth/add3/jl' instruction sequence).
  14873. '-msdata=none'
  14874. Disable use of the small data area. Variables are put into one of
  14875. '.data', '.bss', or '.rodata' (unless the 'section' attribute has
  14876. been specified). This is the default.
  14877. The small data area consists of sections '.sdata' and '.sbss'.
  14878. Objects may be explicitly put in the small data area with the
  14879. 'section' attribute using one of these sections.
  14880. '-msdata=sdata'
  14881. Put small global and static data in the small data area, but do not
  14882. generate special code to reference them.
  14883. '-msdata=use'
  14884. Put small global and static data in the small data area, and
  14885. generate special instructions to reference them.
  14886. '-G NUM'
  14887. Put global and static objects less than or equal to NUM bytes into
  14888. the small data or BSS sections instead of the normal data or BSS
  14889. sections. The default value of NUM is 8. The '-msdata' option
  14890. must be set to one of 'sdata' or 'use' for this option to have any
  14891. effect.
  14892. All modules should be compiled with the same '-G NUM' value.
  14893. Compiling with different values of NUM may or may not work; if it
  14894. doesn't the linker gives an error message--incorrect code is not
  14895. generated.
  14896. '-mdebug'
  14897. Makes the M32R-specific code in the compiler display some
  14898. statistics that might help in debugging programs.
  14899. '-malign-loops'
  14900. Align all loops to a 32-byte boundary.
  14901. '-mno-align-loops'
  14902. Do not enforce a 32-byte alignment for loops. This is the default.
  14903. '-missue-rate=NUMBER'
  14904. Issue NUMBER instructions per cycle. NUMBER can only be 1 or 2.
  14905. '-mbranch-cost=NUMBER'
  14906. NUMBER can only be 1 or 2. If it is 1 then branches are preferred
  14907. over conditional code, if it is 2, then the opposite applies.
  14908. '-mflush-trap=NUMBER'
  14909. Specifies the trap number to use to flush the cache. The default
  14910. is 12. Valid numbers are between 0 and 15 inclusive.
  14911. '-mno-flush-trap'
  14912. Specifies that the cache cannot be flushed by using a trap.
  14913. '-mflush-func=NAME'
  14914. Specifies the name of the operating system function to call to
  14915. flush the cache. The default is '_flush_cache', but a function
  14916. call is only used if a trap is not available.
  14917. '-mno-flush-func'
  14918. Indicates that there is no OS function for flushing the cache.
  14919. 
  14920. File: gcc.info, Node: M680x0 Options, Next: MCore Options, Prev: M32R/D Options, Up: Submodel Options
  14921. 3.18.22 M680x0 Options
  14922. ----------------------
  14923. These are the '-m' options defined for M680x0 and ColdFire processors.
  14924. The default settings depend on which architecture was selected when the
  14925. compiler was configured; the defaults for the most common choices are
  14926. given below.
  14927. '-march=ARCH'
  14928. Generate code for a specific M680x0 or ColdFire instruction set
  14929. architecture. Permissible values of ARCH for M680x0 architectures
  14930. are: '68000', '68010', '68020', '68030', '68040', '68060' and
  14931. 'cpu32'. ColdFire architectures are selected according to
  14932. Freescale's ISA classification and the permissible values are:
  14933. 'isaa', 'isaaplus', 'isab' and 'isac'.
  14934. GCC defines a macro '__mcfARCH__' whenever it is generating code
  14935. for a ColdFire target. The ARCH in this macro is one of the
  14936. '-march' arguments given above.
  14937. When used together, '-march' and '-mtune' select code that runs on
  14938. a family of similar processors but that is optimized for a
  14939. particular microarchitecture.
  14940. '-mcpu=CPU'
  14941. Generate code for a specific M680x0 or ColdFire processor. The
  14942. M680x0 CPUs are: '68000', '68010', '68020', '68030', '68040',
  14943. '68060', '68302', '68332' and 'cpu32'. The ColdFire CPUs are given
  14944. by the table below, which also classifies the CPUs into families:
  14945. *Family* *'-mcpu' arguments*
  14946. '51' '51' '51ac' '51ag' '51cn' '51em' '51je' '51jf' '51jg'
  14947. '51jm' '51mm' '51qe' '51qm'
  14948. '5206' '5202' '5204' '5206'
  14949. '5206e' '5206e'
  14950. '5208' '5207' '5208'
  14951. '5211a' '5210a' '5211a'
  14952. '5213' '5211' '5212' '5213'
  14953. '5216' '5214' '5216'
  14954. '52235' '52230' '52231' '52232' '52233' '52234' '52235'
  14955. '5225' '5224' '5225'
  14956. '52259' '52252' '52254' '52255' '52256' '52258' '52259'
  14957. '5235' '5232' '5233' '5234' '5235' '523x'
  14958. '5249' '5249'
  14959. '5250' '5250'
  14960. '5271' '5270' '5271'
  14961. '5272' '5272'
  14962. '5275' '5274' '5275'
  14963. '5282' '5280' '5281' '5282' '528x'
  14964. '53017' '53011' '53012' '53013' '53014' '53015' '53016' '53017'
  14965. '5307' '5307'
  14966. '5329' '5327' '5328' '5329' '532x'
  14967. '5373' '5372' '5373' '537x'
  14968. '5407' '5407'
  14969. '5475' '5470' '5471' '5472' '5473' '5474' '5475' '547x' '5480'
  14970. '5481' '5482' '5483' '5484' '5485'
  14971. '-mcpu=CPU' overrides '-march=ARCH' if ARCH is compatible with CPU.
  14972. Other combinations of '-mcpu' and '-march' are rejected.
  14973. GCC defines the macro '__mcf_cpu_CPU' when ColdFire target CPU is
  14974. selected. It also defines '__mcf_family_FAMILY', where the value
  14975. of FAMILY is given by the table above.
  14976. '-mtune=TUNE'
  14977. Tune the code for a particular microarchitecture within the
  14978. constraints set by '-march' and '-mcpu'. The M680x0
  14979. microarchitectures are: '68000', '68010', '68020', '68030',
  14980. '68040', '68060' and 'cpu32'. The ColdFire microarchitectures are:
  14981. 'cfv1', 'cfv2', 'cfv3', 'cfv4' and 'cfv4e'.
  14982. You can also use '-mtune=68020-40' for code that needs to run
  14983. relatively well on 68020, 68030 and 68040 targets.
  14984. '-mtune=68020-60' is similar but includes 68060 targets as well.
  14985. These two options select the same tuning decisions as '-m68020-40'
  14986. and '-m68020-60' respectively.
  14987. GCC defines the macros '__mcARCH' and '__mcARCH__' when tuning for
  14988. 680x0 architecture ARCH. It also defines 'mcARCH' unless either
  14989. '-ansi' or a non-GNU '-std' option is used. If GCC is tuning for a
  14990. range of architectures, as selected by '-mtune=68020-40' or
  14991. '-mtune=68020-60', it defines the macros for every architecture in
  14992. the range.
  14993. GCC also defines the macro '__mUARCH__' when tuning for ColdFire
  14994. microarchitecture UARCH, where UARCH is one of the arguments given
  14995. above.
  14996. '-m68000'
  14997. '-mc68000'
  14998. Generate output for a 68000. This is the default when the compiler
  14999. is configured for 68000-based systems. It is equivalent to
  15000. '-march=68000'.
  15001. Use this option for microcontrollers with a 68000 or EC000 core,
  15002. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  15003. '-m68010'
  15004. Generate output for a 68010. This is the default when the compiler
  15005. is configured for 68010-based systems. It is equivalent to
  15006. '-march=68010'.
  15007. '-m68020'
  15008. '-mc68020'
  15009. Generate output for a 68020. This is the default when the compiler
  15010. is configured for 68020-based systems. It is equivalent to
  15011. '-march=68020'.
  15012. '-m68030'
  15013. Generate output for a 68030. This is the default when the compiler
  15014. is configured for 68030-based systems. It is equivalent to
  15015. '-march=68030'.
  15016. '-m68040'
  15017. Generate output for a 68040. This is the default when the compiler
  15018. is configured for 68040-based systems. It is equivalent to
  15019. '-march=68040'.
  15020. This option inhibits the use of 68881/68882 instructions that have
  15021. to be emulated by software on the 68040. Use this option if your
  15022. 68040 does not have code to emulate those instructions.
  15023. '-m68060'
  15024. Generate output for a 68060. This is the default when the compiler
  15025. is configured for 68060-based systems. It is equivalent to
  15026. '-march=68060'.
  15027. This option inhibits the use of 68020 and 68881/68882 instructions
  15028. that have to be emulated by software on the 68060. Use this option
  15029. if your 68060 does not have code to emulate those instructions.
  15030. '-mcpu32'
  15031. Generate output for a CPU32. This is the default when the compiler
  15032. is configured for CPU32-based systems. It is equivalent to
  15033. '-march=cpu32'.
  15034. Use this option for microcontrollers with a CPU32 or CPU32+ core,
  15035. including the 68330, 68331, 68332, 68333, 68334, 68336, 68340,
  15036. 68341, 68349 and 68360.
  15037. '-m5200'
  15038. Generate output for a 520X ColdFire CPU. This is the default when
  15039. the compiler is configured for 520X-based systems. It is
  15040. equivalent to '-mcpu=5206', and is now deprecated in favor of that
  15041. option.
  15042. Use this option for microcontroller with a 5200 core, including the
  15043. MCF5202, MCF5203, MCF5204 and MCF5206.
  15044. '-m5206e'
  15045. Generate output for a 5206e ColdFire CPU. The option is now
  15046. deprecated in favor of the equivalent '-mcpu=5206e'.
  15047. '-m528x'
  15048. Generate output for a member of the ColdFire 528X family. The
  15049. option is now deprecated in favor of the equivalent '-mcpu=528x'.
  15050. '-m5307'
  15051. Generate output for a ColdFire 5307 CPU. The option is now
  15052. deprecated in favor of the equivalent '-mcpu=5307'.
  15053. '-m5407'
  15054. Generate output for a ColdFire 5407 CPU. The option is now
  15055. deprecated in favor of the equivalent '-mcpu=5407'.
  15056. '-mcfv4e'
  15057. Generate output for a ColdFire V4e family CPU (e.g. 547x/548x).
  15058. This includes use of hardware floating-point instructions. The
  15059. option is equivalent to '-mcpu=547x', and is now deprecated in
  15060. favor of that option.
  15061. '-m68020-40'
  15062. Generate output for a 68040, without using any of the new
  15063. instructions. This results in code that can run relatively
  15064. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  15065. generated code does use the 68881 instructions that are emulated on
  15066. the 68040.
  15067. The option is equivalent to '-march=68020' '-mtune=68020-40'.
  15068. '-m68020-60'
  15069. Generate output for a 68060, without using any of the new
  15070. instructions. This results in code that can run relatively
  15071. efficiently on either a 68020/68881 or a 68030 or a 68040. The
  15072. generated code does use the 68881 instructions that are emulated on
  15073. the 68060.
  15074. The option is equivalent to '-march=68020' '-mtune=68020-60'.
  15075. '-mhard-float'
  15076. '-m68881'
  15077. Generate floating-point instructions. This is the default for
  15078. 68020 and above, and for ColdFire devices that have an FPU. It
  15079. defines the macro '__HAVE_68881__' on M680x0 targets and
  15080. '__mcffpu__' on ColdFire targets.
  15081. '-msoft-float'
  15082. Do not generate floating-point instructions; use library calls
  15083. instead. This is the default for 68000, 68010, and 68832 targets.
  15084. It is also the default for ColdFire devices that have no FPU.
  15085. '-mdiv'
  15086. '-mno-div'
  15087. Generate (do not generate) ColdFire hardware divide and remainder
  15088. instructions. If '-march' is used without '-mcpu', the default is
  15089. "on" for ColdFire architectures and "off" for M680x0 architectures.
  15090. Otherwise, the default is taken from the target CPU (either the
  15091. default CPU, or the one specified by '-mcpu'). For example, the
  15092. default is "off" for '-mcpu=5206' and "on" for '-mcpu=5206e'.
  15093. GCC defines the macro '__mcfhwdiv__' when this option is enabled.
  15094. '-mshort'
  15095. Consider type 'int' to be 16 bits wide, like 'short int'.
  15096. Additionally, parameters passed on the stack are also aligned to a
  15097. 16-bit boundary even on targets whose API mandates promotion to
  15098. 32-bit.
  15099. '-mno-short'
  15100. Do not consider type 'int' to be 16 bits wide. This is the
  15101. default.
  15102. '-mnobitfield'
  15103. '-mno-bitfield'
  15104. Do not use the bit-field instructions. The '-m68000', '-mcpu32'
  15105. and '-m5200' options imply '-mnobitfield'.
  15106. '-mbitfield'
  15107. Do use the bit-field instructions. The '-m68020' option implies
  15108. '-mbitfield'. This is the default if you use a configuration
  15109. designed for a 68020.
  15110. '-mrtd'
  15111. Use a different function-calling convention, in which functions
  15112. that take a fixed number of arguments return with the 'rtd'
  15113. instruction, which pops their arguments while returning. This
  15114. saves one instruction in the caller since there is no need to pop
  15115. the arguments there.
  15116. This calling convention is incompatible with the one normally used
  15117. on Unix, so you cannot use it if you need to call libraries
  15118. compiled with the Unix compiler.
  15119. Also, you must provide function prototypes for all functions that
  15120. take variable numbers of arguments (including 'printf'); otherwise
  15121. incorrect code is generated for calls to those functions.
  15122. In addition, seriously incorrect code results if you call a
  15123. function with too many arguments. (Normally, extra arguments are
  15124. harmlessly ignored.)
  15125. The 'rtd' instruction is supported by the 68010, 68020, 68030,
  15126. 68040, 68060 and CPU32 processors, but not by the 68000 or 5200.
  15127. '-mno-rtd'
  15128. Do not use the calling conventions selected by '-mrtd'. This is
  15129. the default.
  15130. '-malign-int'
  15131. '-mno-align-int'
  15132. Control whether GCC aligns 'int', 'long', 'long long', 'float',
  15133. 'double', and 'long double' variables on a 32-bit boundary
  15134. ('-malign-int') or a 16-bit boundary ('-mno-align-int'). Aligning
  15135. variables on 32-bit boundaries produces code that runs somewhat
  15136. faster on processors with 32-bit busses at the expense of more
  15137. memory.
  15138. *Warning:* if you use the '-malign-int' switch, GCC aligns
  15139. structures containing the above types differently than most
  15140. published application binary interface specifications for the m68k.
  15141. '-mpcrel'
  15142. Use the pc-relative addressing mode of the 68000 directly, instead
  15143. of using a global offset table. At present, this option implies
  15144. '-fpic', allowing at most a 16-bit offset for pc-relative
  15145. addressing. '-fPIC' is not presently supported with '-mpcrel',
  15146. though this could be supported for 68020 and higher processors.
  15147. '-mno-strict-align'
  15148. '-mstrict-align'
  15149. Do not (do) assume that unaligned memory references are handled by
  15150. the system.
  15151. '-msep-data'
  15152. Generate code that allows the data segment to be located in a
  15153. different area of memory from the text segment. This allows for
  15154. execute-in-place in an environment without virtual memory
  15155. management. This option implies '-fPIC'.
  15156. '-mno-sep-data'
  15157. Generate code that assumes that the data segment follows the text
  15158. segment. This is the default.
  15159. '-mid-shared-library'
  15160. Generate code that supports shared libraries via the library ID
  15161. method. This allows for execute-in-place and shared libraries in
  15162. an environment without virtual memory management. This option
  15163. implies '-fPIC'.
  15164. '-mno-id-shared-library'
  15165. Generate code that doesn't assume ID-based shared libraries are
  15166. being used. This is the default.
  15167. '-mshared-library-id=n'
  15168. Specifies the identification number of the ID-based shared library
  15169. being compiled. Specifying a value of 0 generates more compact
  15170. code; specifying other values forces the allocation of that number
  15171. to the current library, but is no more space- or time-efficient
  15172. than omitting this option.
  15173. '-mxgot'
  15174. '-mno-xgot'
  15175. When generating position-independent code for ColdFire, generate
  15176. code that works if the GOT has more than 8192 entries. This code
  15177. is larger and slower than code generated without this option. On
  15178. M680x0 processors, this option is not needed; '-fPIC' suffices.
  15179. GCC normally uses a single instruction to load values from the GOT.
  15180. While this is relatively efficient, it only works if the GOT is
  15181. smaller than about 64k. Anything larger causes the linker to
  15182. report an error such as:
  15183. relocation truncated to fit: R_68K_GOT16O foobar
  15184. If this happens, you should recompile your code with '-mxgot'. It
  15185. should then work with very large GOTs. However, code generated
  15186. with '-mxgot' is less efficient, since it takes 4 instructions to
  15187. fetch the value of a global symbol.
  15188. Note that some linkers, including newer versions of the GNU linker,
  15189. can create multiple GOTs and sort GOT entries. If you have such a
  15190. linker, you should only need to use '-mxgot' when compiling a
  15191. single object file that accesses more than 8192 GOT entries. Very
  15192. few do.
  15193. These options have no effect unless GCC is generating
  15194. position-independent code.
  15195. '-mlong-jump-table-offsets'
  15196. Use 32-bit offsets in 'switch' tables. The default is to use
  15197. 16-bit offsets.
  15198. 
  15199. File: gcc.info, Node: MCore Options, Next: MeP Options, Prev: M680x0 Options, Up: Submodel Options
  15200. 3.18.23 MCore Options
  15201. ---------------------
  15202. These are the '-m' options defined for the Motorola M*Core processors.
  15203. '-mhardlit'
  15204. '-mno-hardlit'
  15205. Inline constants into the code stream if it can be done in two
  15206. instructions or less.
  15207. '-mdiv'
  15208. '-mno-div'
  15209. Use the divide instruction. (Enabled by default).
  15210. '-mrelax-immediate'
  15211. '-mno-relax-immediate'
  15212. Allow arbitrary-sized immediates in bit operations.
  15213. '-mwide-bitfields'
  15214. '-mno-wide-bitfields'
  15215. Always treat bit-fields as 'int'-sized.
  15216. '-m4byte-functions'
  15217. '-mno-4byte-functions'
  15218. Force all functions to be aligned to a 4-byte boundary.
  15219. '-mcallgraph-data'
  15220. '-mno-callgraph-data'
  15221. Emit callgraph information.
  15222. '-mslow-bytes'
  15223. '-mno-slow-bytes'
  15224. Prefer word access when reading byte quantities.
  15225. '-mlittle-endian'
  15226. '-mbig-endian'
  15227. Generate code for a little-endian target.
  15228. '-m210'
  15229. '-m340'
  15230. Generate code for the 210 processor.
  15231. '-mno-lsim'
  15232. Assume that runtime support has been provided and so omit the
  15233. simulator library ('libsim.a)' from the linker command line.
  15234. '-mstack-increment=SIZE'
  15235. Set the maximum amount for a single stack increment operation.
  15236. Large values can increase the speed of programs that contain
  15237. functions that need a large amount of stack space, but they can
  15238. also trigger a segmentation fault if the stack is extended too
  15239. much. The default value is 0x1000.
  15240. 
  15241. File: gcc.info, Node: MeP Options, Next: MicroBlaze Options, Prev: MCore Options, Up: Submodel Options
  15242. 3.18.24 MeP Options
  15243. -------------------
  15244. '-mabsdiff'
  15245. Enables the 'abs' instruction, which is the absolute difference
  15246. between two registers.
  15247. '-mall-opts'
  15248. Enables all the optional instructions--average, multiply, divide,
  15249. bit operations, leading zero, absolute difference, min/max, clip,
  15250. and saturation.
  15251. '-maverage'
  15252. Enables the 'ave' instruction, which computes the average of two
  15253. registers.
  15254. '-mbased=N'
  15255. Variables of size N bytes or smaller are placed in the '.based'
  15256. section by default. Based variables use the '$tp' register as a
  15257. base register, and there is a 128-byte limit to the '.based'
  15258. section.
  15259. '-mbitops'
  15260. Enables the bit operation instructions--bit test ('btstm'), set
  15261. ('bsetm'), clear ('bclrm'), invert ('bnotm'), and test-and-set
  15262. ('tas').
  15263. '-mc=NAME'
  15264. Selects which section constant data is placed in. NAME may be
  15265. 'tiny', 'near', or 'far'.
  15266. '-mclip'
  15267. Enables the 'clip' instruction. Note that '-mclip' is not useful
  15268. unless you also provide '-mminmax'.
  15269. '-mconfig=NAME'
  15270. Selects one of the built-in core configurations. Each MeP chip has
  15271. one or more modules in it; each module has a core CPU and a variety
  15272. of coprocessors, optional instructions, and peripherals. The
  15273. 'MeP-Integrator' tool, not part of GCC, provides these
  15274. configurations through this option; using this option is the same
  15275. as using all the corresponding command-line options. The default
  15276. configuration is 'default'.
  15277. '-mcop'
  15278. Enables the coprocessor instructions. By default, this is a 32-bit
  15279. coprocessor. Note that the coprocessor is normally enabled via the
  15280. '-mconfig=' option.
  15281. '-mcop32'
  15282. Enables the 32-bit coprocessor's instructions.
  15283. '-mcop64'
  15284. Enables the 64-bit coprocessor's instructions.
  15285. '-mivc2'
  15286. Enables IVC2 scheduling. IVC2 is a 64-bit VLIW coprocessor.
  15287. '-mdc'
  15288. Causes constant variables to be placed in the '.near' section.
  15289. '-mdiv'
  15290. Enables the 'div' and 'divu' instructions.
  15291. '-meb'
  15292. Generate big-endian code.
  15293. '-mel'
  15294. Generate little-endian code.
  15295. '-mio-volatile'
  15296. Tells the compiler that any variable marked with the 'io' attribute
  15297. is to be considered volatile.
  15298. '-ml'
  15299. Causes variables to be assigned to the '.far' section by default.
  15300. '-mleadz'
  15301. Enables the 'leadz' (leading zero) instruction.
  15302. '-mm'
  15303. Causes variables to be assigned to the '.near' section by default.
  15304. '-mminmax'
  15305. Enables the 'min' and 'max' instructions.
  15306. '-mmult'
  15307. Enables the multiplication and multiply-accumulate instructions.
  15308. '-mno-opts'
  15309. Disables all the optional instructions enabled by '-mall-opts'.
  15310. '-mrepeat'
  15311. Enables the 'repeat' and 'erepeat' instructions, used for
  15312. low-overhead looping.
  15313. '-ms'
  15314. Causes all variables to default to the '.tiny' section. Note that
  15315. there is a 65536-byte limit to this section. Accesses to these
  15316. variables use the '%gp' base register.
  15317. '-msatur'
  15318. Enables the saturation instructions. Note that the compiler does
  15319. not currently generate these itself, but this option is included
  15320. for compatibility with other tools, like 'as'.
  15321. '-msdram'
  15322. Link the SDRAM-based runtime instead of the default ROM-based
  15323. runtime.
  15324. '-msim'
  15325. Link the simulator run-time libraries.
  15326. '-msimnovec'
  15327. Link the simulator runtime libraries, excluding built-in support
  15328. for reset and exception vectors and tables.
  15329. '-mtf'
  15330. Causes all functions to default to the '.far' section. Without
  15331. this option, functions default to the '.near' section.
  15332. '-mtiny=N'
  15333. Variables that are N bytes or smaller are allocated to the '.tiny'
  15334. section. These variables use the '$gp' base register. The default
  15335. for this option is 4, but note that there's a 65536-byte limit to
  15336. the '.tiny' section.
  15337. 
  15338. File: gcc.info, Node: MicroBlaze Options, Next: MIPS Options, Prev: MeP Options, Up: Submodel Options
  15339. 3.18.25 MicroBlaze Options
  15340. --------------------------
  15341. '-msoft-float'
  15342. Use software emulation for floating point (default).
  15343. '-mhard-float'
  15344. Use hardware floating-point instructions.
  15345. '-mmemcpy'
  15346. Do not optimize block moves, use 'memcpy'.
  15347. '-mno-clearbss'
  15348. This option is deprecated. Use '-fno-zero-initialized-in-bss'
  15349. instead.
  15350. '-mcpu=CPU-TYPE'
  15351. Use features of, and schedule code for, the given CPU. Supported
  15352. values are in the format 'vX.YY.Z', where X is a major version, YY
  15353. is the minor version, and Z is compatibility code. Example values
  15354. are 'v3.00.a', 'v4.00.b', 'v5.00.a', 'v5.00.b', 'v6.00.a'.
  15355. '-mxl-soft-mul'
  15356. Use software multiply emulation (default).
  15357. '-mxl-soft-div'
  15358. Use software emulation for divides (default).
  15359. '-mxl-barrel-shift'
  15360. Use the hardware barrel shifter.
  15361. '-mxl-pattern-compare'
  15362. Use pattern compare instructions.
  15363. '-msmall-divides'
  15364. Use table lookup optimization for small signed integer divisions.
  15365. '-mxl-stack-check'
  15366. This option is deprecated. Use '-fstack-check' instead.
  15367. '-mxl-gp-opt'
  15368. Use GP-relative '.sdata'/'.sbss' sections.
  15369. '-mxl-multiply-high'
  15370. Use multiply high instructions for high part of 32x32 multiply.
  15371. '-mxl-float-convert'
  15372. Use hardware floating-point conversion instructions.
  15373. '-mxl-float-sqrt'
  15374. Use hardware floating-point square root instruction.
  15375. '-mbig-endian'
  15376. Generate code for a big-endian target.
  15377. '-mlittle-endian'
  15378. Generate code for a little-endian target.
  15379. '-mxl-reorder'
  15380. Use reorder instructions (swap and byte reversed load/store).
  15381. '-mxl-mode-APP-MODEL'
  15382. Select application model APP-MODEL. Valid models are
  15383. 'executable'
  15384. normal executable (default), uses startup code 'crt0.o'.
  15385. 'xmdstub'
  15386. for use with Xilinx Microprocessor Debugger (XMD) based
  15387. software intrusive debug agent called xmdstub. This uses
  15388. startup file 'crt1.o' and sets the start address of the
  15389. program to 0x800.
  15390. 'bootstrap'
  15391. for applications that are loaded using a bootloader. This
  15392. model uses startup file 'crt2.o' which does not contain a
  15393. processor reset vector handler. This is suitable for
  15394. transferring control on a processor reset to the bootloader
  15395. rather than the application.
  15396. 'novectors'
  15397. for applications that do not require any of the MicroBlaze
  15398. vectors. This option may be useful for applications running
  15399. within a monitoring application. This model uses 'crt3.o' as
  15400. a startup file.
  15401. Option '-xl-mode-APP-MODEL' is a deprecated alias for
  15402. '-mxl-mode-APP-MODEL'.
  15403. 
  15404. File: gcc.info, Node: MIPS Options, Next: MMIX Options, Prev: MicroBlaze Options, Up: Submodel Options
  15405. 3.18.26 MIPS Options
  15406. --------------------
  15407. '-EB'
  15408. Generate big-endian code.
  15409. '-EL'
  15410. Generate little-endian code. This is the default for 'mips*el-*-*'
  15411. configurations.
  15412. '-march=ARCH'
  15413. Generate code that runs on ARCH, which can be the name of a generic
  15414. MIPS ISA, or the name of a particular processor. The ISA names
  15415. are: 'mips1', 'mips2', 'mips3', 'mips4', 'mips32', 'mips32r2',
  15416. 'mips32r3', 'mips32r5', 'mips32r6', 'mips64', 'mips64r2',
  15417. 'mips64r3', 'mips64r5' and 'mips64r6'. The processor names are:
  15418. '4kc', '4km', '4kp', '4ksc', '4kec', '4kem', '4kep', '4ksd', '5kc',
  15419. '5kf', '20kc', '24kc', '24kf2_1', '24kf1_1', '24kec', '24kef2_1',
  15420. '24kef1_1', '34kc', '34kf2_1', '34kf1_1', '34kn', '74kc',
  15421. '74kf2_1', '74kf1_1', '74kf3_2', '1004kc', '1004kf2_1',
  15422. '1004kf1_1', 'i6400', 'interaptiv', 'loongson2e', 'loongson2f',
  15423. 'loongson3a', 'm4k', 'm14k', 'm14kc', 'm14ke', 'm14kec', 'm5100',
  15424. 'm5101', 'octeon', 'octeon+', 'octeon2', 'octeon3', 'orion',
  15425. 'p5600', 'r2000', 'r3000', 'r3900', 'r4000', 'r4400', 'r4600',
  15426. 'r4650', 'r4700', 'r6000', 'r8000', 'rm7000', 'rm9000', 'r10000',
  15427. 'r12000', 'r14000', 'r16000', 'sb1', 'sr71000', 'vr4100', 'vr4111',
  15428. 'vr4120', 'vr4130', 'vr4300', 'vr5000', 'vr5400', 'vr5500', 'xlr'
  15429. and 'xlp'. The special value 'from-abi' selects the most
  15430. compatible architecture for the selected ABI (that is, 'mips1' for
  15431. 32-bit ABIs and 'mips3' for 64-bit ABIs).
  15432. The native Linux/GNU toolchain also supports the value 'native',
  15433. which selects the best architecture option for the host processor.
  15434. '-march=native' has no effect if GCC does not recognize the
  15435. processor.
  15436. In processor names, a final '000' can be abbreviated as 'k' (for
  15437. example, '-march=r2k'). Prefixes are optional, and 'vr' may be
  15438. written 'r'.
  15439. Names of the form 'Nf2_1' refer to processors with FPUs clocked at
  15440. half the rate of the core, names of the form 'Nf1_1' refer to
  15441. processors with FPUs clocked at the same rate as the core, and
  15442. names of the form 'Nf3_2' refer to processors with FPUs clocked a
  15443. ratio of 3:2 with respect to the core. For compatibility reasons,
  15444. 'Nf' is accepted as a synonym for 'Nf2_1' while 'Nx' and 'Bfx' are
  15445. accepted as synonyms for 'Nf1_1'.
  15446. GCC defines two macros based on the value of this option. The
  15447. first is '_MIPS_ARCH', which gives the name of target architecture,
  15448. as a string. The second has the form '_MIPS_ARCH_FOO', where FOO
  15449. is the capitalized value of '_MIPS_ARCH'. For example,
  15450. '-march=r2000' sets '_MIPS_ARCH' to '"r2000"' and defines the macro
  15451. '_MIPS_ARCH_R2000'.
  15452. Note that the '_MIPS_ARCH' macro uses the processor names given
  15453. above. In other words, it has the full prefix and does not
  15454. abbreviate '000' as 'k'. In the case of 'from-abi', the macro
  15455. names the resolved architecture (either '"mips1"' or '"mips3"').
  15456. It names the default architecture when no '-march' option is given.
  15457. '-mtune=ARCH'
  15458. Optimize for ARCH. Among other things, this option controls the
  15459. way instructions are scheduled, and the perceived cost of
  15460. arithmetic operations. The list of ARCH values is the same as for
  15461. '-march'.
  15462. When this option is not used, GCC optimizes for the processor
  15463. specified by '-march'. By using '-march' and '-mtune' together, it
  15464. is possible to generate code that runs on a family of processors,
  15465. but optimize the code for one particular member of that family.
  15466. '-mtune' defines the macros '_MIPS_TUNE' and '_MIPS_TUNE_FOO',
  15467. which work in the same way as the '-march' ones described above.
  15468. '-mips1'
  15469. Equivalent to '-march=mips1'.
  15470. '-mips2'
  15471. Equivalent to '-march=mips2'.
  15472. '-mips3'
  15473. Equivalent to '-march=mips3'.
  15474. '-mips4'
  15475. Equivalent to '-march=mips4'.
  15476. '-mips32'
  15477. Equivalent to '-march=mips32'.
  15478. '-mips32r3'
  15479. Equivalent to '-march=mips32r3'.
  15480. '-mips32r5'
  15481. Equivalent to '-march=mips32r5'.
  15482. '-mips32r6'
  15483. Equivalent to '-march=mips32r6'.
  15484. '-mips64'
  15485. Equivalent to '-march=mips64'.
  15486. '-mips64r2'
  15487. Equivalent to '-march=mips64r2'.
  15488. '-mips64r3'
  15489. Equivalent to '-march=mips64r3'.
  15490. '-mips64r5'
  15491. Equivalent to '-march=mips64r5'.
  15492. '-mips64r6'
  15493. Equivalent to '-march=mips64r6'.
  15494. '-mips16'
  15495. '-mno-mips16'
  15496. Generate (do not generate) MIPS16 code. If GCC is targeting a
  15497. MIPS32 or MIPS64 architecture, it makes use of the MIPS16e ASE.
  15498. MIPS16 code generation can also be controlled on a per-function
  15499. basis by means of 'mips16' and 'nomips16' attributes. *Note
  15500. Function Attributes::, for more information.
  15501. '-mflip-mips16'
  15502. Generate MIPS16 code on alternating functions. This option is
  15503. provided for regression testing of mixed MIPS16/non-MIPS16 code
  15504. generation, and is not intended for ordinary use in compiling user
  15505. code.
  15506. '-minterlink-compressed'
  15507. '-mno-interlink-compressed'
  15508. Require (do not require) that code using the standard
  15509. (uncompressed) MIPS ISA be link-compatible with MIPS16 and
  15510. microMIPS code, and vice versa.
  15511. For example, code using the standard ISA encoding cannot jump
  15512. directly to MIPS16 or microMIPS code; it must either use a call or
  15513. an indirect jump. '-minterlink-compressed' therefore disables
  15514. direct jumps unless GCC knows that the target of the jump is not
  15515. compressed.
  15516. '-minterlink-mips16'
  15517. '-mno-interlink-mips16'
  15518. Aliases of '-minterlink-compressed' and
  15519. '-mno-interlink-compressed'. These options predate the microMIPS
  15520. ASE and are retained for backwards compatibility.
  15521. '-mabi=32'
  15522. '-mabi=o64'
  15523. '-mabi=n32'
  15524. '-mabi=64'
  15525. '-mabi=eabi'
  15526. Generate code for the given ABI.
  15527. Note that the EABI has a 32-bit and a 64-bit variant. GCC normally
  15528. generates 64-bit code when you select a 64-bit architecture, but
  15529. you can use '-mgp32' to get 32-bit code instead.
  15530. For information about the O64 ABI, see
  15531. <http://gcc.gnu.org/projects/mipso64-abi.html>.
  15532. GCC supports a variant of the o32 ABI in which floating-point
  15533. registers are 64 rather than 32 bits wide. You can select this
  15534. combination with '-mabi=32' '-mfp64'. This ABI relies on the
  15535. 'mthc1' and 'mfhc1' instructions and is therefore only supported
  15536. for MIPS32R2, MIPS32R3 and MIPS32R5 processors.
  15537. The register assignments for arguments and return values remain the
  15538. same, but each scalar value is passed in a single 64-bit register
  15539. rather than a pair of 32-bit registers. For example, scalar
  15540. floating-point values are returned in '$f0' only, not a '$f0'/'$f1'
  15541. pair. The set of call-saved registers also remains the same in
  15542. that the even-numbered double-precision registers are saved.
  15543. Two additional variants of the o32 ABI are supported to enable a
  15544. transition from 32-bit to 64-bit registers. These are FPXX
  15545. ('-mfpxx') and FP64A ('-mfp64' '-mno-odd-spreg'). The FPXX
  15546. extension mandates that all code must execute correctly when run
  15547. using 32-bit or 64-bit registers. The code can be interlinked with
  15548. either FP32 or FP64, but not both. The FP64A extension is similar
  15549. to the FP64 extension but forbids the use of odd-numbered
  15550. single-precision registers. This can be used in conjunction with
  15551. the 'FRE' mode of FPUs in MIPS32R5 processors and allows both FP32
  15552. and FP64A code to interlink and run in the same process without
  15553. changing FPU modes.
  15554. '-mabicalls'
  15555. '-mno-abicalls'
  15556. Generate (do not generate) code that is suitable for SVR4-style
  15557. dynamic objects. '-mabicalls' is the default for SVR4-based
  15558. systems.
  15559. '-mshared'
  15560. '-mno-shared'
  15561. Generate (do not generate) code that is fully position-independent,
  15562. and that can therefore be linked into shared libraries. This
  15563. option only affects '-mabicalls'.
  15564. All '-mabicalls' code has traditionally been position-independent,
  15565. regardless of options like '-fPIC' and '-fpic'. However, as an
  15566. extension, the GNU toolchain allows executables to use absolute
  15567. accesses for locally-binding symbols. It can also use shorter GP
  15568. initialization sequences and generate direct calls to
  15569. locally-defined functions. This mode is selected by '-mno-shared'.
  15570. '-mno-shared' depends on binutils 2.16 or higher and generates
  15571. objects that can only be linked by the GNU linker. However, the
  15572. option does not affect the ABI of the final executable; it only
  15573. affects the ABI of relocatable objects. Using '-mno-shared'
  15574. generally makes executables both smaller and quicker.
  15575. '-mshared' is the default.
  15576. '-mplt'
  15577. '-mno-plt'
  15578. Assume (do not assume) that the static and dynamic linkers support
  15579. PLTs and copy relocations. This option only affects '-mno-shared
  15580. -mabicalls'. For the n64 ABI, this option has no effect without
  15581. '-msym32'.
  15582. You can make '-mplt' the default by configuring GCC with
  15583. '--with-mips-plt'. The default is '-mno-plt' otherwise.
  15584. '-mxgot'
  15585. '-mno-xgot'
  15586. Lift (do not lift) the usual restrictions on the size of the global
  15587. offset table.
  15588. GCC normally uses a single instruction to load values from the GOT.
  15589. While this is relatively efficient, it only works if the GOT is
  15590. smaller than about 64k. Anything larger causes the linker to
  15591. report an error such as:
  15592. relocation truncated to fit: R_MIPS_GOT16 foobar
  15593. If this happens, you should recompile your code with '-mxgot'.
  15594. This works with very large GOTs, although the code is also less
  15595. efficient, since it takes three instructions to fetch the value of
  15596. a global symbol.
  15597. Note that some linkers can create multiple GOTs. If you have such
  15598. a linker, you should only need to use '-mxgot' when a single object
  15599. file accesses more than 64k's worth of GOT entries. Very few do.
  15600. These options have no effect unless GCC is generating position
  15601. independent code.
  15602. '-mgp32'
  15603. Assume that general-purpose registers are 32 bits wide.
  15604. '-mgp64'
  15605. Assume that general-purpose registers are 64 bits wide.
  15606. '-mfp32'
  15607. Assume that floating-point registers are 32 bits wide.
  15608. '-mfp64'
  15609. Assume that floating-point registers are 64 bits wide.
  15610. '-mfpxx'
  15611. Do not assume the width of floating-point registers.
  15612. '-mhard-float'
  15613. Use floating-point coprocessor instructions.
  15614. '-msoft-float'
  15615. Do not use floating-point coprocessor instructions. Implement
  15616. floating-point calculations using library calls instead.
  15617. '-mno-float'
  15618. Equivalent to '-msoft-float', but additionally asserts that the
  15619. program being compiled does not perform any floating-point
  15620. operations. This option is presently supported only by some
  15621. bare-metal MIPS configurations, where it may select a special set
  15622. of libraries that lack all floating-point support (including, for
  15623. example, the floating-point 'printf' formats). If code compiled
  15624. with '-mno-float' accidentally contains floating-point operations,
  15625. it is likely to suffer a link-time or run-time failure.
  15626. '-msingle-float'
  15627. Assume that the floating-point coprocessor only supports
  15628. single-precision operations.
  15629. '-mdouble-float'
  15630. Assume that the floating-point coprocessor supports
  15631. double-precision operations. This is the default.
  15632. '-modd-spreg'
  15633. '-mno-odd-spreg'
  15634. Enable the use of odd-numbered single-precision floating-point
  15635. registers for the o32 ABI. This is the default for processors that
  15636. are known to support these registers. When using the o32 FPXX ABI,
  15637. '-mno-odd-spreg' is set by default.
  15638. '-mabs=2008'
  15639. '-mabs=legacy'
  15640. These options control the treatment of the special not-a-number
  15641. (NaN) IEEE 754 floating-point data with the 'abs.fmt' and 'neg.fmt'
  15642. machine instructions.
  15643. By default or when '-mabs=legacy' is used the legacy treatment is
  15644. selected. In this case these instructions are considered
  15645. arithmetic and avoided where correct operation is required and the
  15646. input operand might be a NaN. A longer sequence of instructions
  15647. that manipulate the sign bit of floating-point datum manually is
  15648. used instead unless the '-ffinite-math-only' option has also been
  15649. specified.
  15650. The '-mabs=2008' option selects the IEEE 754-2008 treatment. In
  15651. this case these instructions are considered non-arithmetic and
  15652. therefore operating correctly in all cases, including in particular
  15653. where the input operand is a NaN. These instructions are therefore
  15654. always used for the respective operations.
  15655. '-mnan=2008'
  15656. '-mnan=legacy'
  15657. These options control the encoding of the special not-a-number
  15658. (NaN) IEEE 754 floating-point data.
  15659. The '-mnan=legacy' option selects the legacy encoding. In this
  15660. case quiet NaNs (qNaNs) are denoted by the first bit of their
  15661. trailing significand field being 0, whereas signaling NaNs (sNaNs)
  15662. are denoted by the first bit of their trailing significand field
  15663. being 1.
  15664. The '-mnan=2008' option selects the IEEE 754-2008 encoding. In
  15665. this case qNaNs are denoted by the first bit of their trailing
  15666. significand field being 1, whereas sNaNs are denoted by the first
  15667. bit of their trailing significand field being 0.
  15668. The default is '-mnan=legacy' unless GCC has been configured with
  15669. '--with-nan=2008'.
  15670. '-mllsc'
  15671. '-mno-llsc'
  15672. Use (do not use) 'll', 'sc', and 'sync' instructions to implement
  15673. atomic memory built-in functions. When neither option is
  15674. specified, GCC uses the instructions if the target architecture
  15675. supports them.
  15676. '-mllsc' is useful if the runtime environment can emulate the
  15677. instructions and '-mno-llsc' can be useful when compiling for
  15678. nonstandard ISAs. You can make either option the default by
  15679. configuring GCC with '--with-llsc' and '--without-llsc'
  15680. respectively. '--with-llsc' is the default for some
  15681. configurations; see the installation documentation for details.
  15682. '-mdsp'
  15683. '-mno-dsp'
  15684. Use (do not use) revision 1 of the MIPS DSP ASE. *Note MIPS DSP
  15685. Built-in Functions::. This option defines the preprocessor macro
  15686. '__mips_dsp'. It also defines '__mips_dsp_rev' to 1.
  15687. '-mdspr2'
  15688. '-mno-dspr2'
  15689. Use (do not use) revision 2 of the MIPS DSP ASE. *Note MIPS DSP
  15690. Built-in Functions::. This option defines the preprocessor macros
  15691. '__mips_dsp' and '__mips_dspr2'. It also defines '__mips_dsp_rev'
  15692. to 2.
  15693. '-msmartmips'
  15694. '-mno-smartmips'
  15695. Use (do not use) the MIPS SmartMIPS ASE.
  15696. '-mpaired-single'
  15697. '-mno-paired-single'
  15698. Use (do not use) paired-single floating-point instructions. *Note
  15699. MIPS Paired-Single Support::. This option requires hardware
  15700. floating-point support to be enabled.
  15701. '-mdmx'
  15702. '-mno-mdmx'
  15703. Use (do not use) MIPS Digital Media Extension instructions. This
  15704. option can only be used when generating 64-bit code and requires
  15705. hardware floating-point support to be enabled.
  15706. '-mips3d'
  15707. '-mno-mips3d'
  15708. Use (do not use) the MIPS-3D ASE. *Note MIPS-3D Built-in
  15709. Functions::. The option '-mips3d' implies '-mpaired-single'.
  15710. '-mmicromips'
  15711. '-mno-micromips'
  15712. Generate (do not generate) microMIPS code.
  15713. MicroMIPS code generation can also be controlled on a per-function
  15714. basis by means of 'micromips' and 'nomicromips' attributes. *Note
  15715. Function Attributes::, for more information.
  15716. '-mmt'
  15717. '-mno-mt'
  15718. Use (do not use) MT Multithreading instructions.
  15719. '-mmcu'
  15720. '-mno-mcu'
  15721. Use (do not use) the MIPS MCU ASE instructions.
  15722. '-meva'
  15723. '-mno-eva'
  15724. Use (do not use) the MIPS Enhanced Virtual Addressing instructions.
  15725. '-mvirt'
  15726. '-mno-virt'
  15727. Use (do not use) the MIPS Virtualization (VZ) instructions.
  15728. '-mxpa'
  15729. '-mno-xpa'
  15730. Use (do not use) the MIPS eXtended Physical Address (XPA)
  15731. instructions.
  15732. '-mlong64'
  15733. Force 'long' types to be 64 bits wide. See '-mlong32' for an
  15734. explanation of the default and the way that the pointer size is
  15735. determined.
  15736. '-mlong32'
  15737. Force 'long', 'int', and pointer types to be 32 bits wide.
  15738. The default size of 'int's, 'long's and pointers depends on the
  15739. ABI. All the supported ABIs use 32-bit 'int's. The n64 ABI uses
  15740. 64-bit 'long's, as does the 64-bit EABI; the others use 32-bit
  15741. 'long's. Pointers are the same size as 'long's, or the same size
  15742. as integer registers, whichever is smaller.
  15743. '-msym32'
  15744. '-mno-sym32'
  15745. Assume (do not assume) that all symbols have 32-bit values,
  15746. regardless of the selected ABI. This option is useful in
  15747. combination with '-mabi=64' and '-mno-abicalls' because it allows
  15748. GCC to generate shorter and faster references to symbolic
  15749. addresses.
  15750. '-G NUM'
  15751. Put definitions of externally-visible data in a small data section
  15752. if that data is no bigger than NUM bytes. GCC can then generate
  15753. more efficient accesses to the data; see '-mgpopt' for details.
  15754. The default '-G' option depends on the configuration.
  15755. '-mlocal-sdata'
  15756. '-mno-local-sdata'
  15757. Extend (do not extend) the '-G' behavior to local data too, such as
  15758. to static variables in C. '-mlocal-sdata' is the default for all
  15759. configurations.
  15760. If the linker complains that an application is using too much small
  15761. data, you might want to try rebuilding the less
  15762. performance-critical parts with '-mno-local-sdata'. You might also
  15763. want to build large libraries with '-mno-local-sdata', so that the
  15764. libraries leave more room for the main program.
  15765. '-mextern-sdata'
  15766. '-mno-extern-sdata'
  15767. Assume (do not assume) that externally-defined data is in a small
  15768. data section if the size of that data is within the '-G' limit.
  15769. '-mextern-sdata' is the default for all configurations.
  15770. If you compile a module MOD with '-mextern-sdata' '-G NUM'
  15771. '-mgpopt', and MOD references a variable VAR that is no bigger than
  15772. NUM bytes, you must make sure that VAR is placed in a small data
  15773. section. If VAR is defined by another module, you must either
  15774. compile that module with a high-enough '-G' setting or attach a
  15775. 'section' attribute to VAR's definition. If VAR is common, you
  15776. must link the application with a high-enough '-G' setting.
  15777. The easiest way of satisfying these restrictions is to compile and
  15778. link every module with the same '-G' option. However, you may wish
  15779. to build a library that supports several different small data
  15780. limits. You can do this by compiling the library with the highest
  15781. supported '-G' setting and additionally using '-mno-extern-sdata'
  15782. to stop the library from making assumptions about
  15783. externally-defined data.
  15784. '-mgpopt'
  15785. '-mno-gpopt'
  15786. Use (do not use) GP-relative accesses for symbols that are known to
  15787. be in a small data section; see '-G', '-mlocal-sdata' and
  15788. '-mextern-sdata'. '-mgpopt' is the default for all configurations.
  15789. '-mno-gpopt' is useful for cases where the '$gp' register might not
  15790. hold the value of '_gp'. For example, if the code is part of a
  15791. library that might be used in a boot monitor, programs that call
  15792. boot monitor routines pass an unknown value in '$gp'. (In such
  15793. situations, the boot monitor itself is usually compiled with
  15794. '-G0'.)
  15795. '-mno-gpopt' implies '-mno-local-sdata' and '-mno-extern-sdata'.
  15796. '-membedded-data'
  15797. '-mno-embedded-data'
  15798. Allocate variables to the read-only data section first if possible,
  15799. then next in the small data section if possible, otherwise in data.
  15800. This gives slightly slower code than the default, but reduces the
  15801. amount of RAM required when executing, and thus may be preferred
  15802. for some embedded systems.
  15803. '-muninit-const-in-rodata'
  15804. '-mno-uninit-const-in-rodata'
  15805. Put uninitialized 'const' variables in the read-only data section.
  15806. This option is only meaningful in conjunction with
  15807. '-membedded-data'.
  15808. '-mcode-readable=SETTING'
  15809. Specify whether GCC may generate code that reads from executable
  15810. sections. There are three possible settings:
  15811. '-mcode-readable=yes'
  15812. Instructions may freely access executable sections. This is
  15813. the default setting.
  15814. '-mcode-readable=pcrel'
  15815. MIPS16 PC-relative load instructions can access executable
  15816. sections, but other instructions must not do so. This option
  15817. is useful on 4KSc and 4KSd processors when the code TLBs have
  15818. the Read Inhibit bit set. It is also useful on processors
  15819. that can be configured to have a dual instruction/data SRAM
  15820. interface and that, like the M4K, automatically redirect
  15821. PC-relative loads to the instruction RAM.
  15822. '-mcode-readable=no'
  15823. Instructions must not access executable sections. This option
  15824. can be useful on targets that are configured to have a dual
  15825. instruction/data SRAM interface but that (unlike the M4K) do
  15826. not automatically redirect PC-relative loads to the
  15827. instruction RAM.
  15828. '-msplit-addresses'
  15829. '-mno-split-addresses'
  15830. Enable (disable) use of the '%hi()' and '%lo()' assembler
  15831. relocation operators. This option has been superseded by
  15832. '-mexplicit-relocs' but is retained for backwards compatibility.
  15833. '-mexplicit-relocs'
  15834. '-mno-explicit-relocs'
  15835. Use (do not use) assembler relocation operators when dealing with
  15836. symbolic addresses. The alternative, selected by
  15837. '-mno-explicit-relocs', is to use assembler macros instead.
  15838. '-mexplicit-relocs' is the default if GCC was configured to use an
  15839. assembler that supports relocation operators.
  15840. '-mcheck-zero-division'
  15841. '-mno-check-zero-division'
  15842. Trap (do not trap) on integer division by zero.
  15843. The default is '-mcheck-zero-division'.
  15844. '-mdivide-traps'
  15845. '-mdivide-breaks'
  15846. MIPS systems check for division by zero by generating either a
  15847. conditional trap or a break instruction. Using traps results in
  15848. smaller code, but is only supported on MIPS II and later. Also,
  15849. some versions of the Linux kernel have a bug that prevents trap
  15850. from generating the proper signal ('SIGFPE'). Use '-mdivide-traps'
  15851. to allow conditional traps on architectures that support them and
  15852. '-mdivide-breaks' to force the use of breaks.
  15853. The default is usually '-mdivide-traps', but this can be overridden
  15854. at configure time using '--with-divide=breaks'. Divide-by-zero
  15855. checks can be completely disabled using '-mno-check-zero-division'.
  15856. '-mload-store-pairs'
  15857. '-mno-load-store-pairs'
  15858. Enable (disable) an optimization that pairs consecutive load or
  15859. store instructions to enable load/store bonding. This option is
  15860. enabled by default but only takes effect when the selected
  15861. architecture is known to support bonding.
  15862. '-mmemcpy'
  15863. '-mno-memcpy'
  15864. Force (do not force) the use of 'memcpy' for non-trivial block
  15865. moves. The default is '-mno-memcpy', which allows GCC to inline
  15866. most constant-sized copies.
  15867. '-mlong-calls'
  15868. '-mno-long-calls'
  15869. Disable (do not disable) use of the 'jal' instruction. Calling
  15870. functions using 'jal' is more efficient but requires the caller and
  15871. callee to be in the same 256 megabyte segment.
  15872. This option has no effect on abicalls code. The default is
  15873. '-mno-long-calls'.
  15874. '-mmad'
  15875. '-mno-mad'
  15876. Enable (disable) use of the 'mad', 'madu' and 'mul' instructions,
  15877. as provided by the R4650 ISA.
  15878. '-mimadd'
  15879. '-mno-imadd'
  15880. Enable (disable) use of the 'madd' and 'msub' integer instructions.
  15881. The default is '-mimadd' on architectures that support 'madd' and
  15882. 'msub' except for the 74k architecture where it was found to
  15883. generate slower code.
  15884. '-mfused-madd'
  15885. '-mno-fused-madd'
  15886. Enable (disable) use of the floating-point multiply-accumulate
  15887. instructions, when they are available. The default is
  15888. '-mfused-madd'.
  15889. On the R8000 CPU when multiply-accumulate instructions are used,
  15890. the intermediate product is calculated to infinite precision and is
  15891. not subject to the FCSR Flush to Zero bit. This may be undesirable
  15892. in some circumstances. On other processors the result is
  15893. numerically identical to the equivalent computation using separate
  15894. multiply, add, subtract and negate instructions.
  15895. '-nocpp'
  15896. Tell the MIPS assembler to not run its preprocessor over user
  15897. assembler files (with a '.s' suffix) when assembling them.
  15898. '-mfix-24k'
  15899. '-mno-fix-24k'
  15900. Work around the 24K E48 (lost data on stores during refill) errata.
  15901. The workarounds are implemented by the assembler rather than by
  15902. GCC.
  15903. '-mfix-r4000'
  15904. '-mno-fix-r4000'
  15905. Work around certain R4000 CPU errata:
  15906. - A double-word or a variable shift may give an incorrect result
  15907. if executed immediately after starting an integer division.
  15908. - A double-word or a variable shift may give an incorrect result
  15909. if executed while an integer multiplication is in progress.
  15910. - An integer division may give an incorrect result if started in
  15911. a delay slot of a taken branch or a jump.
  15912. '-mfix-r4400'
  15913. '-mno-fix-r4400'
  15914. Work around certain R4400 CPU errata:
  15915. - A double-word or a variable shift may give an incorrect result
  15916. if executed immediately after starting an integer division.
  15917. '-mfix-r10000'
  15918. '-mno-fix-r10000'
  15919. Work around certain R10000 errata:
  15920. - 'll'/'sc' sequences may not behave atomically on revisions
  15921. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  15922. This option can only be used if the target architecture supports
  15923. branch-likely instructions. '-mfix-r10000' is the default when
  15924. '-march=r10000' is used; '-mno-fix-r10000' is the default
  15925. otherwise.
  15926. '-mfix-rm7000'
  15927. '-mno-fix-rm7000'
  15928. Work around the RM7000 'dmult'/'dmultu' errata. The workarounds
  15929. are implemented by the assembler rather than by GCC.
  15930. '-mfix-vr4120'
  15931. '-mno-fix-vr4120'
  15932. Work around certain VR4120 errata:
  15933. - 'dmultu' does not always produce the correct result.
  15934. - 'div' and 'ddiv' do not always produce the correct result if
  15935. one of the operands is negative.
  15936. The workarounds for the division errata rely on special functions
  15937. in 'libgcc.a'. At present, these functions are only provided by
  15938. the 'mips64vr*-elf' configurations.
  15939. Other VR4120 errata require a NOP to be inserted between certain
  15940. pairs of instructions. These errata are handled by the assembler,
  15941. not by GCC itself.
  15942. '-mfix-vr4130'
  15943. Work around the VR4130 'mflo'/'mfhi' errata. The workarounds are
  15944. implemented by the assembler rather than by GCC, although GCC
  15945. avoids using 'mflo' and 'mfhi' if the VR4130 'macc', 'macchi',
  15946. 'dmacc' and 'dmacchi' instructions are available instead.
  15947. '-mfix-sb1'
  15948. '-mno-fix-sb1'
  15949. Work around certain SB-1 CPU core errata. (This flag currently
  15950. works around the SB-1 revision 2 "F1" and "F2" floating-point
  15951. errata.)
  15952. '-mr10k-cache-barrier=SETTING'
  15953. Specify whether GCC should insert cache barriers to avoid the side
  15954. effects of speculation on R10K processors.
  15955. In common with many processors, the R10K tries to predict the
  15956. outcome of a conditional branch and speculatively executes
  15957. instructions from the "taken" branch. It later aborts these
  15958. instructions if the predicted outcome is wrong. However, on the
  15959. R10K, even aborted instructions can have side effects.
  15960. This problem only affects kernel stores and, depending on the
  15961. system, kernel loads. As an example, a speculatively-executed
  15962. store may load the target memory into cache and mark the cache line
  15963. as dirty, even if the store itself is later aborted. If a DMA
  15964. operation writes to the same area of memory before the "dirty" line
  15965. is flushed, the cached data overwrites the DMA-ed data. See the
  15966. R10K processor manual for a full description, including other
  15967. potential problems.
  15968. One workaround is to insert cache barrier instructions before every
  15969. memory access that might be speculatively executed and that might
  15970. have side effects even if aborted. '-mr10k-cache-barrier=SETTING'
  15971. controls GCC's implementation of this workaround. It assumes that
  15972. aborted accesses to any byte in the following regions does not have
  15973. side effects:
  15974. 1. the memory occupied by the current function's stack frame;
  15975. 2. the memory occupied by an incoming stack argument;
  15976. 3. the memory occupied by an object with a link-time-constant
  15977. address.
  15978. It is the kernel's responsibility to ensure that speculative
  15979. accesses to these regions are indeed safe.
  15980. If the input program contains a function declaration such as:
  15981. void foo (void);
  15982. then the implementation of 'foo' must allow 'j foo' and 'jal foo'
  15983. to be executed speculatively. GCC honors this restriction for
  15984. functions it compiles itself. It expects non-GCC functions (such
  15985. as hand-written assembly code) to do the same.
  15986. The option has three forms:
  15987. '-mr10k-cache-barrier=load-store'
  15988. Insert a cache barrier before a load or store that might be
  15989. speculatively executed and that might have side effects even
  15990. if aborted.
  15991. '-mr10k-cache-barrier=store'
  15992. Insert a cache barrier before a store that might be
  15993. speculatively executed and that might have side effects even
  15994. if aborted.
  15995. '-mr10k-cache-barrier=none'
  15996. Disable the insertion of cache barriers. This is the default
  15997. setting.
  15998. '-mflush-func=FUNC'
  15999. '-mno-flush-func'
  16000. Specifies the function to call to flush the I and D caches, or to
  16001. not call any such function. If called, the function must take the
  16002. same arguments as the common '_flush_func', that is, the address of
  16003. the memory range for which the cache is being flushed, the size of
  16004. the memory range, and the number 3 (to flush both caches). The
  16005. default depends on the target GCC was configured for, but commonly
  16006. is either '_flush_func' or '__cpu_flush'.
  16007. 'mbranch-cost=NUM'
  16008. Set the cost of branches to roughly NUM "simple" instructions.
  16009. This cost is only a heuristic and is not guaranteed to produce
  16010. consistent results across releases. A zero cost redundantly
  16011. selects the default, which is based on the '-mtune' setting.
  16012. '-mbranch-likely'
  16013. '-mno-branch-likely'
  16014. Enable or disable use of Branch Likely instructions, regardless of
  16015. the default for the selected architecture. By default, Branch
  16016. Likely instructions may be generated if they are supported by the
  16017. selected architecture. An exception is for the MIPS32 and MIPS64
  16018. architectures and processors that implement those architectures;
  16019. for those, Branch Likely instructions are not be generated by
  16020. default because the MIPS32 and MIPS64 architectures specifically
  16021. deprecate their use.
  16022. '-mcompact-branches=never'
  16023. '-mcompact-branches=optimal'
  16024. '-mcompact-branches=always'
  16025. These options control which form of branches will be generated.
  16026. The default is '-mcompact-branches=optimal'.
  16027. The '-mcompact-branches=never' option ensures that compact branch
  16028. instructions will never be generated.
  16029. The '-mcompact-branches=always' option ensures that a compact
  16030. branch instruction will be generated if available. If a compact
  16031. branch instruction is not available, a delay slot form of the
  16032. branch will be used instead.
  16033. This option is supported from MIPS Release 6 onwards.
  16034. The '-mcompact-branches=optimal' option will cause a delay slot
  16035. branch to be used if one is available in the current ISA and the
  16036. delay slot is successfully filled. If the delay slot is not
  16037. filled, a compact branch will be chosen if one is available.
  16038. '-mfp-exceptions'
  16039. '-mno-fp-exceptions'
  16040. Specifies whether FP exceptions are enabled. This affects how FP
  16041. instructions are scheduled for some processors. The default is
  16042. that FP exceptions are enabled.
  16043. For instance, on the SB-1, if FP exceptions are disabled, and we
  16044. are emitting 64-bit code, then we can use both FP pipes.
  16045. Otherwise, we can only use one FP pipe.
  16046. '-mvr4130-align'
  16047. '-mno-vr4130-align'
  16048. The VR4130 pipeline is two-way superscalar, but can only issue two
  16049. instructions together if the first one is 8-byte aligned. When
  16050. this option is enabled, GCC aligns pairs of instructions that it
  16051. thinks should execute in parallel.
  16052. This option only has an effect when optimizing for the VR4130. It
  16053. normally makes code faster, but at the expense of making it bigger.
  16054. It is enabled by default at optimization level '-O3'.
  16055. '-msynci'
  16056. '-mno-synci'
  16057. Enable (disable) generation of 'synci' instructions on
  16058. architectures that support it. The 'synci' instructions (if
  16059. enabled) are generated when '__builtin___clear_cache' is compiled.
  16060. This option defaults to '-mno-synci', but the default can be
  16061. overridden by configuring GCC with '--with-synci'.
  16062. When compiling code for single processor systems, it is generally
  16063. safe to use 'synci'. However, on many multi-core (SMP) systems, it
  16064. does not invalidate the instruction caches on all cores and may
  16065. lead to undefined behavior.
  16066. '-mrelax-pic-calls'
  16067. '-mno-relax-pic-calls'
  16068. Try to turn PIC calls that are normally dispatched via register
  16069. '$25' into direct calls. This is only possible if the linker can
  16070. resolve the destination at link time and if the destination is
  16071. within range for a direct call.
  16072. '-mrelax-pic-calls' is the default if GCC was configured to use an
  16073. assembler and a linker that support the '.reloc' assembly directive
  16074. and '-mexplicit-relocs' is in effect. With '-mno-explicit-relocs',
  16075. this optimization can be performed by the assembler and the linker
  16076. alone without help from the compiler.
  16077. '-mmcount-ra-address'
  16078. '-mno-mcount-ra-address'
  16079. Emit (do not emit) code that allows '_mcount' to modify the calling
  16080. function's return address. When enabled, this option extends the
  16081. usual '_mcount' interface with a new RA-ADDRESS parameter, which
  16082. has type 'intptr_t *' and is passed in register '$12'. '_mcount'
  16083. can then modify the return address by doing both of the following:
  16084. * Returning the new address in register '$31'.
  16085. * Storing the new address in '*RA-ADDRESS', if RA-ADDRESS is
  16086. nonnull.
  16087. The default is '-mno-mcount-ra-address'.
  16088. '-mframe-header-opt'
  16089. '-mno-frame-header-opt'
  16090. Enable (disable) frame header optimization in the o32 ABI. When
  16091. using the o32 ABI, calling functions will allocate 16 bytes on the
  16092. stack for the called function to write out register arguments.
  16093. When enabled, this optimization will suppress the allocation of the
  16094. frame header if it can be determined that it is unused.
  16095. This optimization is off by default at all optimization levels.
  16096. '-mlxc1-sxc1'
  16097. '-mno-lxc1-sxc1'
  16098. When applicable, enable (disable) the generation of 'lwxc1',
  16099. 'swxc1', 'ldxc1', 'sdxc1' instructions. Enabled by default.
  16100. '-mmadd4'
  16101. '-mno-madd4'
  16102. When applicable, enable (disable) the generation of 4-operand
  16103. 'madd.s', 'madd.d' and related instructions. Enabled by default.
  16104. 
  16105. File: gcc.info, Node: MMIX Options, Next: MN10300 Options, Prev: MIPS Options, Up: Submodel Options
  16106. 3.18.27 MMIX Options
  16107. --------------------
  16108. These options are defined for the MMIX:
  16109. '-mlibfuncs'
  16110. '-mno-libfuncs'
  16111. Specify that intrinsic library functions are being compiled,
  16112. passing all values in registers, no matter the size.
  16113. '-mepsilon'
  16114. '-mno-epsilon'
  16115. Generate floating-point comparison instructions that compare with
  16116. respect to the 'rE' epsilon register.
  16117. '-mabi=mmixware'
  16118. '-mabi=gnu'
  16119. Generate code that passes function parameters and return values
  16120. that (in the called function) are seen as registers '$0' and up, as
  16121. opposed to the GNU ABI which uses global registers '$231' and up.
  16122. '-mzero-extend'
  16123. '-mno-zero-extend'
  16124. When reading data from memory in sizes shorter than 64 bits, use
  16125. (do not use) zero-extending load instructions by default, rather
  16126. than sign-extending ones.
  16127. '-mknuthdiv'
  16128. '-mno-knuthdiv'
  16129. Make the result of a division yielding a remainder have the same
  16130. sign as the divisor. With the default, '-mno-knuthdiv', the sign
  16131. of the remainder follows the sign of the dividend. Both methods
  16132. are arithmetically valid, the latter being almost exclusively used.
  16133. '-mtoplevel-symbols'
  16134. '-mno-toplevel-symbols'
  16135. Prepend (do not prepend) a ':' to all global symbols, so the
  16136. assembly code can be used with the 'PREFIX' assembly directive.
  16137. '-melf'
  16138. Generate an executable in the ELF format, rather than the default
  16139. 'mmo' format used by the 'mmix' simulator.
  16140. '-mbranch-predict'
  16141. '-mno-branch-predict'
  16142. Use (do not use) the probable-branch instructions, when static
  16143. branch prediction indicates a probable branch.
  16144. '-mbase-addresses'
  16145. '-mno-base-addresses'
  16146. Generate (do not generate) code that uses _base addresses_. Using
  16147. a base address automatically generates a request (handled by the
  16148. assembler and the linker) for a constant to be set up in a global
  16149. register. The register is used for one or more base address
  16150. requests within the range 0 to 255 from the value held in the
  16151. register. The generally leads to short and fast code, but the
  16152. number of different data items that can be addressed is limited.
  16153. This means that a program that uses lots of static data may require
  16154. '-mno-base-addresses'.
  16155. '-msingle-exit'
  16156. '-mno-single-exit'
  16157. Force (do not force) generated code to have a single exit point in
  16158. each function.
  16159. 
  16160. File: gcc.info, Node: MN10300 Options, Next: Moxie Options, Prev: MMIX Options, Up: Submodel Options
  16161. 3.18.28 MN10300 Options
  16162. -----------------------
  16163. These '-m' options are defined for Matsushita MN10300 architectures:
  16164. '-mmult-bug'
  16165. Generate code to avoid bugs in the multiply instructions for the
  16166. MN10300 processors. This is the default.
  16167. '-mno-mult-bug'
  16168. Do not generate code to avoid bugs in the multiply instructions for
  16169. the MN10300 processors.
  16170. '-mam33'
  16171. Generate code using features specific to the AM33 processor.
  16172. '-mno-am33'
  16173. Do not generate code using features specific to the AM33 processor.
  16174. This is the default.
  16175. '-mam33-2'
  16176. Generate code using features specific to the AM33/2.0 processor.
  16177. '-mam34'
  16178. Generate code using features specific to the AM34 processor.
  16179. '-mtune=CPU-TYPE'
  16180. Use the timing characteristics of the indicated CPU type when
  16181. scheduling instructions. This does not change the targeted
  16182. processor type. The CPU type must be one of 'mn10300', 'am33',
  16183. 'am33-2' or 'am34'.
  16184. '-mreturn-pointer-on-d0'
  16185. When generating a function that returns a pointer, return the
  16186. pointer in both 'a0' and 'd0'. Otherwise, the pointer is returned
  16187. only in 'a0', and attempts to call such functions without a
  16188. prototype result in errors. Note that this option is on by
  16189. default; use '-mno-return-pointer-on-d0' to disable it.
  16190. '-mno-crt0'
  16191. Do not link in the C run-time initialization object file.
  16192. '-mrelax'
  16193. Indicate to the linker that it should perform a relaxation
  16194. optimization pass to shorten branches, calls and absolute memory
  16195. addresses. This option only has an effect when used on the command
  16196. line for the final link step.
  16197. This option makes symbolic debugging impossible.
  16198. '-mliw'
  16199. Allow the compiler to generate _Long Instruction Word_ instructions
  16200. if the target is the 'AM33' or later. This is the default. This
  16201. option defines the preprocessor macro '__LIW__'.
  16202. '-mnoliw'
  16203. Do not allow the compiler to generate _Long Instruction Word_
  16204. instructions. This option defines the preprocessor macro
  16205. '__NO_LIW__'.
  16206. '-msetlb'
  16207. Allow the compiler to generate the _SETLB_ and _Lcc_ instructions
  16208. if the target is the 'AM33' or later. This is the default. This
  16209. option defines the preprocessor macro '__SETLB__'.
  16210. '-mnosetlb'
  16211. Do not allow the compiler to generate _SETLB_ or _Lcc_
  16212. instructions. This option defines the preprocessor macro
  16213. '__NO_SETLB__'.
  16214. 
  16215. File: gcc.info, Node: Moxie Options, Next: MSP430 Options, Prev: MN10300 Options, Up: Submodel Options
  16216. 3.18.29 Moxie Options
  16217. ---------------------
  16218. '-meb'
  16219. Generate big-endian code. This is the default for 'moxie-*-*'
  16220. configurations.
  16221. '-mel'
  16222. Generate little-endian code.
  16223. '-mmul.x'
  16224. Generate mul.x and umul.x instructions. This is the default for
  16225. 'moxiebox-*-*' configurations.
  16226. '-mno-crt0'
  16227. Do not link in the C run-time initialization object file.
  16228. 
  16229. File: gcc.info, Node: MSP430 Options, Next: NDS32 Options, Prev: Moxie Options, Up: Submodel Options
  16230. 3.18.30 MSP430 Options
  16231. ----------------------
  16232. These options are defined for the MSP430:
  16233. '-masm-hex'
  16234. Force assembly output to always use hex constants. Normally such
  16235. constants are signed decimals, but this option is available for
  16236. testsuite and/or aesthetic purposes.
  16237. '-mmcu='
  16238. Select the MCU to target. This is used to create a C preprocessor
  16239. symbol based upon the MCU name, converted to upper case and pre-
  16240. and post-fixed with '__'. This in turn is used by the 'msp430.h'
  16241. header file to select an MCU-specific supplementary header file.
  16242. The option also sets the ISA to use. If the MCU name is one that
  16243. is known to only support the 430 ISA then that is selected,
  16244. otherwise the 430X ISA is selected. A generic MCU name of 'msp430'
  16245. can also be used to select the 430 ISA. Similarly the generic
  16246. 'msp430x' MCU name selects the 430X ISA.
  16247. In addition an MCU-specific linker script is added to the linker
  16248. command line. The script's name is the name of the MCU with '.ld'
  16249. appended. Thus specifying '-mmcu=xxx' on the 'gcc' command line
  16250. defines the C preprocessor symbol '__XXX__' and cause the linker to
  16251. search for a script called 'xxx.ld'.
  16252. This option is also passed on to the assembler.
  16253. '-mwarn-mcu'
  16254. '-mno-warn-mcu'
  16255. This option enables or disables warnings about conflicts between
  16256. the MCU name specified by the '-mmcu' option and the ISA set by the
  16257. '-mcpu' option and/or the hardware multiply support set by the
  16258. '-mhwmult' option. It also toggles warnings about unrecognized MCU
  16259. names. This option is on by default.
  16260. '-mcpu='
  16261. Specifies the ISA to use. Accepted values are 'msp430', 'msp430x'
  16262. and 'msp430xv2'. This option is deprecated. The '-mmcu=' option
  16263. should be used to select the ISA.
  16264. '-msim'
  16265. Link to the simulator runtime libraries and linker script.
  16266. Overrides any scripts that would be selected by the '-mmcu='
  16267. option.
  16268. '-mlarge'
  16269. Use large-model addressing (20-bit pointers, 32-bit 'size_t').
  16270. '-msmall'
  16271. Use small-model addressing (16-bit pointers, 16-bit 'size_t').
  16272. '-mrelax'
  16273. This option is passed to the assembler and linker, and allows the
  16274. linker to perform certain optimizations that cannot be done until
  16275. the final link.
  16276. 'mhwmult='
  16277. Describes the type of hardware multiply supported by the target.
  16278. Accepted values are 'none' for no hardware multiply, '16bit' for
  16279. the original 16-bit-only multiply supported by early MCUs. '32bit'
  16280. for the 16/32-bit multiply supported by later MCUs and 'f5series'
  16281. for the 16/32-bit multiply supported by F5-series MCUs. A value of
  16282. 'auto' can also be given. This tells GCC to deduce the hardware
  16283. multiply support based upon the MCU name provided by the '-mmcu'
  16284. option. If no '-mmcu' option is specified or if the MCU name is
  16285. not recognized then no hardware multiply support is assumed.
  16286. 'auto' is the default setting.
  16287. Hardware multiplies are normally performed by calling a library
  16288. routine. This saves space in the generated code. When compiling
  16289. at '-O3' or higher however the hardware multiplier is invoked
  16290. inline. This makes for bigger, but faster code.
  16291. The hardware multiply routines disable interrupts whilst running
  16292. and restore the previous interrupt state when they finish. This
  16293. makes them safe to use inside interrupt handlers as well as in
  16294. normal code.
  16295. '-minrt'
  16296. Enable the use of a minimum runtime environment - no static
  16297. initializers or constructors. This is intended for
  16298. memory-constrained devices. The compiler includes special symbols
  16299. in some objects that tell the linker and runtime which code
  16300. fragments are required.
  16301. '-mcode-region='
  16302. '-mdata-region='
  16303. These options tell the compiler where to place functions and data
  16304. that do not have one of the 'lower', 'upper', 'either' or 'section'
  16305. attributes. Possible values are 'lower', 'upper', 'either' or
  16306. 'any'. The first three behave like the corresponding attribute.
  16307. The fourth possible value - 'any' - is the default. It leaves
  16308. placement entirely up to the linker script and how it assigns the
  16309. standard sections ('.text', '.data', etc) to the memory regions.
  16310. '-msilicon-errata='
  16311. This option passes on a request to assembler to enable the fixes
  16312. for the named silicon errata.
  16313. '-msilicon-errata-warn='
  16314. This option passes on a request to the assembler to enable warning
  16315. messages when a silicon errata might need to be applied.
  16316. 
  16317. File: gcc.info, Node: NDS32 Options, Next: Nios II Options, Prev: MSP430 Options, Up: Submodel Options
  16318. 3.18.31 NDS32 Options
  16319. ---------------------
  16320. These options are defined for NDS32 implementations:
  16321. '-mbig-endian'
  16322. Generate code in big-endian mode.
  16323. '-mlittle-endian'
  16324. Generate code in little-endian mode.
  16325. '-mreduced-regs'
  16326. Use reduced-set registers for register allocation.
  16327. '-mfull-regs'
  16328. Use full-set registers for register allocation.
  16329. '-mcmov'
  16330. Generate conditional move instructions.
  16331. '-mno-cmov'
  16332. Do not generate conditional move instructions.
  16333. '-mext-perf'
  16334. Generate performance extension instructions.
  16335. '-mno-ext-perf'
  16336. Do not generate performance extension instructions.
  16337. '-mext-perf2'
  16338. Generate performance extension 2 instructions.
  16339. '-mno-ext-perf2'
  16340. Do not generate performance extension 2 instructions.
  16341. '-mext-string'
  16342. Generate string extension instructions.
  16343. '-mno-ext-string'
  16344. Do not generate string extension instructions.
  16345. '-mv3push'
  16346. Generate v3 push25/pop25 instructions.
  16347. '-mno-v3push'
  16348. Do not generate v3 push25/pop25 instructions.
  16349. '-m16-bit'
  16350. Generate 16-bit instructions.
  16351. '-mno-16-bit'
  16352. Do not generate 16-bit instructions.
  16353. '-misr-vector-size=NUM'
  16354. Specify the size of each interrupt vector, which must be 4 or 16.
  16355. '-mcache-block-size=NUM'
  16356. Specify the size of each cache block, which must be a power of 2
  16357. between 4 and 512.
  16358. '-march=ARCH'
  16359. Specify the name of the target architecture.
  16360. '-mcmodel=CODE-MODEL'
  16361. Set the code model to one of
  16362. 'small'
  16363. All the data and read-only data segments must be within 512KB
  16364. addressing space. The text segment must be within 16MB
  16365. addressing space.
  16366. 'medium'
  16367. The data segment must be within 512KB while the read-only data
  16368. segment can be within 4GB addressing space. The text segment
  16369. should be still within 16MB addressing space.
  16370. 'large'
  16371. All the text and data segments can be within 4GB addressing
  16372. space.
  16373. '-mctor-dtor'
  16374. Enable constructor/destructor feature.
  16375. '-mrelax'
  16376. Guide linker to relax instructions.
  16377. 
  16378. File: gcc.info, Node: Nios II Options, Next: Nvidia PTX Options, Prev: NDS32 Options, Up: Submodel Options
  16379. 3.18.32 Nios II Options
  16380. -----------------------
  16381. These are the options defined for the Altera Nios II processor.
  16382. '-G NUM'
  16383. Put global and static objects less than or equal to NUM bytes into
  16384. the small data or BSS sections instead of the normal data or BSS
  16385. sections. The default value of NUM is 8.
  16386. '-mgpopt=OPTION'
  16387. '-mgpopt'
  16388. '-mno-gpopt'
  16389. Generate (do not generate) GP-relative accesses. The following
  16390. OPTION names are recognized:
  16391. 'none'
  16392. Do not generate GP-relative accesses.
  16393. 'local'
  16394. Generate GP-relative accesses for small data objects that are
  16395. not external, weak, or uninitialized common symbols. Also use
  16396. GP-relative addressing for objects that have been explicitly
  16397. placed in a small data section via a 'section' attribute.
  16398. 'global'
  16399. As for 'local', but also generate GP-relative accesses for
  16400. small data objects that are external, weak, or common. If you
  16401. use this option, you must ensure that all parts of your
  16402. program (including libraries) are compiled with the same '-G'
  16403. setting.
  16404. 'data'
  16405. Generate GP-relative accesses for all data objects in the
  16406. program. If you use this option, the entire data and BSS
  16407. segments of your program must fit in 64K of memory and you
  16408. must use an appropriate linker script to allocate them within
  16409. the addressable range of the global pointer.
  16410. 'all'
  16411. Generate GP-relative addresses for function pointers as well
  16412. as data pointers. If you use this option, the entire text,
  16413. data, and BSS segments of your program must fit in 64K of
  16414. memory and you must use an appropriate linker script to
  16415. allocate them within the addressable range of the global
  16416. pointer.
  16417. '-mgpopt' is equivalent to '-mgpopt=local', and '-mno-gpopt' is
  16418. equivalent to '-mgpopt=none'.
  16419. The default is '-mgpopt' except when '-fpic' or '-fPIC' is
  16420. specified to generate position-independent code. Note that the
  16421. Nios II ABI does not permit GP-relative accesses from shared
  16422. libraries.
  16423. You may need to specify '-mno-gpopt' explicitly when building
  16424. programs that include large amounts of small data, including large
  16425. GOT data sections. In this case, the 16-bit offset for GP-relative
  16426. addressing may not be large enough to allow access to the entire
  16427. small data section.
  16428. '-mgprel-sec=REGEXP'
  16429. This option specifies additional section names that can be accessed
  16430. via GP-relative addressing. It is most useful in conjunction with
  16431. 'section' attributes on variable declarations (*note Common
  16432. Variable Attributes::) and a custom linker script. The REGEXP is a
  16433. POSIX Extended Regular Expression.
  16434. This option does not affect the behavior of the '-G' option, and
  16435. the specified sections are in addition to the standard '.sdata' and
  16436. '.sbss' small-data sections that are recognized by '-mgpopt'.
  16437. '-mr0rel-sec=REGEXP'
  16438. This option specifies names of sections that can be accessed via a
  16439. 16-bit offset from 'r0'; that is, in the low 32K or high 32K of the
  16440. 32-bit address space. It is most useful in conjunction with
  16441. 'section' attributes on variable declarations (*note Common
  16442. Variable Attributes::) and a custom linker script. The REGEXP is a
  16443. POSIX Extended Regular Expression.
  16444. In contrast to the use of GP-relative addressing for small data,
  16445. zero-based addressing is never generated by default and there are
  16446. no conventional section names used in standard linker scripts for
  16447. sections in the low or high areas of memory.
  16448. '-mel'
  16449. '-meb'
  16450. Generate little-endian (default) or big-endian (experimental) code,
  16451. respectively.
  16452. '-march=ARCH'
  16453. This specifies the name of the target Nios II architecture. GCC
  16454. uses this name to determine what kind of instructions it can emit
  16455. when generating assembly code. Permissible names are: 'r1', 'r2'.
  16456. The preprocessor macro '__nios2_arch__' is available to programs,
  16457. with value 1 or 2, indicating the targeted ISA level.
  16458. '-mbypass-cache'
  16459. '-mno-bypass-cache'
  16460. Force all load and store instructions to always bypass cache by
  16461. using I/O variants of the instructions. The default is not to
  16462. bypass the cache.
  16463. '-mno-cache-volatile'
  16464. '-mcache-volatile'
  16465. Volatile memory access bypass the cache using the I/O variants of
  16466. the load and store instructions. The default is not to bypass the
  16467. cache.
  16468. '-mno-fast-sw-div'
  16469. '-mfast-sw-div'
  16470. Do not use table-based fast divide for small numbers. The default
  16471. is to use the fast divide at '-O3' and above.
  16472. '-mno-hw-mul'
  16473. '-mhw-mul'
  16474. '-mno-hw-mulx'
  16475. '-mhw-mulx'
  16476. '-mno-hw-div'
  16477. '-mhw-div'
  16478. Enable or disable emitting 'mul', 'mulx' and 'div' family of
  16479. instructions by the compiler. The default is to emit 'mul' and not
  16480. emit 'div' and 'mulx'.
  16481. '-mbmx'
  16482. '-mno-bmx'
  16483. '-mcdx'
  16484. '-mno-cdx'
  16485. Enable or disable generation of Nios II R2 BMX (bit manipulation)
  16486. and CDX (code density) instructions. Enabling these instructions
  16487. also requires '-march=r2'. Since these instructions are optional
  16488. extensions to the R2 architecture, the default is not to emit them.
  16489. '-mcustom-INSN=N'
  16490. '-mno-custom-INSN'
  16491. Each '-mcustom-INSN=N' option enables use of a custom instruction
  16492. with encoding N when generating code that uses INSN. For example,
  16493. '-mcustom-fadds=253' generates custom instruction 253 for
  16494. single-precision floating-point add operations instead of the
  16495. default behavior of using a library call.
  16496. The following values of INSN are supported. Except as otherwise
  16497. noted, floating-point operations are expected to be implemented
  16498. with normal IEEE 754 semantics and correspond directly to the C
  16499. operators or the equivalent GCC built-in functions (*note Other
  16500. Builtins::).
  16501. Single-precision floating point:
  16502. 'fadds', 'fsubs', 'fdivs', 'fmuls'
  16503. Binary arithmetic operations.
  16504. 'fnegs'
  16505. Unary negation.
  16506. 'fabss'
  16507. Unary absolute value.
  16508. 'fcmpeqs', 'fcmpges', 'fcmpgts', 'fcmples', 'fcmplts', 'fcmpnes'
  16509. Comparison operations.
  16510. 'fmins', 'fmaxs'
  16511. Floating-point minimum and maximum. These instructions are
  16512. only generated if '-ffinite-math-only' is specified.
  16513. 'fsqrts'
  16514. Unary square root operation.
  16515. 'fcoss', 'fsins', 'ftans', 'fatans', 'fexps', 'flogs'
  16516. Floating-point trigonometric and exponential functions. These
  16517. instructions are only generated if
  16518. '-funsafe-math-optimizations' is also specified.
  16519. Double-precision floating point:
  16520. 'faddd', 'fsubd', 'fdivd', 'fmuld'
  16521. Binary arithmetic operations.
  16522. 'fnegd'
  16523. Unary negation.
  16524. 'fabsd'
  16525. Unary absolute value.
  16526. 'fcmpeqd', 'fcmpged', 'fcmpgtd', 'fcmpled', 'fcmpltd', 'fcmpned'
  16527. Comparison operations.
  16528. 'fmind', 'fmaxd'
  16529. Double-precision minimum and maximum. These instructions are
  16530. only generated if '-ffinite-math-only' is specified.
  16531. 'fsqrtd'
  16532. Unary square root operation.
  16533. 'fcosd', 'fsind', 'ftand', 'fatand', 'fexpd', 'flogd'
  16534. Double-precision trigonometric and exponential functions.
  16535. These instructions are only generated if
  16536. '-funsafe-math-optimizations' is also specified.
  16537. Conversions:
  16538. 'fextsd'
  16539. Conversion from single precision to double precision.
  16540. 'ftruncds'
  16541. Conversion from double precision to single precision.
  16542. 'fixsi', 'fixsu', 'fixdi', 'fixdu'
  16543. Conversion from floating point to signed or unsigned integer
  16544. types, with truncation towards zero.
  16545. 'round'
  16546. Conversion from single-precision floating point to signed
  16547. integer, rounding to the nearest integer and ties away from
  16548. zero. This corresponds to the '__builtin_lroundf' function
  16549. when '-fno-math-errno' is used.
  16550. 'floatis', 'floatus', 'floatid', 'floatud'
  16551. Conversion from signed or unsigned integer types to
  16552. floating-point types.
  16553. In addition, all of the following transfer instructions for
  16554. internal registers X and Y must be provided to use any of the
  16555. double-precision floating-point instructions. Custom instructions
  16556. taking two double-precision source operands expect the first
  16557. operand in the 64-bit register X. The other operand (or only
  16558. operand of a unary operation) is given to the custom arithmetic
  16559. instruction with the least significant half in source register SRC1
  16560. and the most significant half in SRC2. A custom instruction that
  16561. returns a double-precision result returns the most significant 32
  16562. bits in the destination register and the other half in 32-bit
  16563. register Y. GCC automatically generates the necessary code
  16564. sequences to write register X and/or read register Y when
  16565. double-precision floating-point instructions are used.
  16566. 'fwrx'
  16567. Write SRC1 into the least significant half of X and SRC2 into
  16568. the most significant half of X.
  16569. 'fwry'
  16570. Write SRC1 into Y.
  16571. 'frdxhi', 'frdxlo'
  16572. Read the most or least (respectively) significant half of X
  16573. and store it in DEST.
  16574. 'frdy'
  16575. Read the value of Y and store it into DEST.
  16576. Note that you can gain more local control over generation of Nios
  16577. II custom instructions by using the 'target("custom-INSN=N")' and
  16578. 'target("no-custom-INSN")' function attributes (*note Function
  16579. Attributes::) or pragmas (*note Function Specific Option
  16580. Pragmas::).
  16581. '-mcustom-fpu-cfg=NAME'
  16582. This option enables a predefined, named set of custom instruction
  16583. encodings (see '-mcustom-INSN' above). Currently, the following
  16584. sets are defined:
  16585. '-mcustom-fpu-cfg=60-1' is equivalent to:
  16586. -mcustom-fmuls=252
  16587. -mcustom-fadds=253
  16588. -mcustom-fsubs=254
  16589. -fsingle-precision-constant
  16590. '-mcustom-fpu-cfg=60-2' is equivalent to:
  16591. -mcustom-fmuls=252
  16592. -mcustom-fadds=253
  16593. -mcustom-fsubs=254
  16594. -mcustom-fdivs=255
  16595. -fsingle-precision-constant
  16596. '-mcustom-fpu-cfg=72-3' is equivalent to:
  16597. -mcustom-floatus=243
  16598. -mcustom-fixsi=244
  16599. -mcustom-floatis=245
  16600. -mcustom-fcmpgts=246
  16601. -mcustom-fcmples=249
  16602. -mcustom-fcmpeqs=250
  16603. -mcustom-fcmpnes=251
  16604. -mcustom-fmuls=252
  16605. -mcustom-fadds=253
  16606. -mcustom-fsubs=254
  16607. -mcustom-fdivs=255
  16608. -fsingle-precision-constant
  16609. Custom instruction assignments given by individual '-mcustom-INSN='
  16610. options override those given by '-mcustom-fpu-cfg=', regardless of
  16611. the order of the options on the command line.
  16612. Note that you can gain more local control over selection of a FPU
  16613. configuration by using the 'target("custom-fpu-cfg=NAME")' function
  16614. attribute (*note Function Attributes::) or pragma (*note Function
  16615. Specific Option Pragmas::).
  16616. These additional '-m' options are available for the Altera Nios II ELF
  16617. (bare-metal) target:
  16618. '-mhal'
  16619. Link with HAL BSP. This suppresses linking with the GCC-provided C
  16620. runtime startup and termination code, and is typically used in
  16621. conjunction with '-msys-crt0=' to specify the location of the
  16622. alternate startup code provided by the HAL BSP.
  16623. '-msmallc'
  16624. Link with a limited version of the C library, '-lsmallc', rather
  16625. than Newlib.
  16626. '-msys-crt0=STARTFILE'
  16627. STARTFILE is the file name of the startfile (crt0) to use when
  16628. linking. This option is only useful in conjunction with '-mhal'.
  16629. '-msys-lib=SYSTEMLIB'
  16630. SYSTEMLIB is the library name of the library that provides
  16631. low-level system calls required by the C library, e.g. 'read' and
  16632. 'write'. This option is typically used to link with a library
  16633. provided by a HAL BSP.
  16634. 
  16635. File: gcc.info, Node: Nvidia PTX Options, Next: PDP-11 Options, Prev: Nios II Options, Up: Submodel Options
  16636. 3.18.33 Nvidia PTX Options
  16637. --------------------------
  16638. These options are defined for Nvidia PTX:
  16639. '-m32'
  16640. '-m64'
  16641. Generate code for 32-bit or 64-bit ABI.
  16642. '-mmainkernel'
  16643. Link in code for a __main kernel. This is for stand-alone instead
  16644. of offloading execution.
  16645. '-moptimize'
  16646. Apply partitioned execution optimizations. This is the default
  16647. when any level of optimization is selected.
  16648. '-msoft-stack'
  16649. Generate code that does not use '.local' memory directly for stack
  16650. storage. Instead, a per-warp stack pointer is maintained
  16651. explicitly. This enables variable-length stack allocation (with
  16652. variable-length arrays or 'alloca'), and when global memory is used
  16653. for underlying storage, makes it possible to access automatic
  16654. variables from other threads, or with atomic instructions. This
  16655. code generation variant is used for OpenMP offloading, but the
  16656. option is exposed on its own for the purpose of testing the
  16657. compiler; to generate code suitable for linking into programs using
  16658. OpenMP offloading, use option '-mgomp'.
  16659. '-muniform-simt'
  16660. Switch to code generation variant that allows to execute all
  16661. threads in each warp, while maintaining memory state and side
  16662. effects as if only one thread in each warp was active outside of
  16663. OpenMP SIMD regions. All atomic operations and calls to runtime
  16664. (malloc, free, vprintf) are conditionally executed (iff current
  16665. lane index equals the master lane index), and the register being
  16666. assigned is copied via a shuffle instruction from the master lane.
  16667. Outside of SIMD regions lane 0 is the master; inside, each thread
  16668. sees itself as the master. Shared memory array 'int __nvptx_uni[]'
  16669. stores all-zeros or all-ones bitmasks for each warp, indicating
  16670. current mode (0 outside of SIMD regions). Each thread can
  16671. bitwise-and the bitmask at position 'tid.y' with current lane index
  16672. to compute the master lane index.
  16673. '-mgomp'
  16674. Generate code for use in OpenMP offloading: enables '-msoft-stack'
  16675. and '-muniform-simt' options, and selects corresponding multilib
  16676. variant.
  16677. 
  16678. File: gcc.info, Node: PDP-11 Options, Next: picoChip Options, Prev: Nvidia PTX Options, Up: Submodel Options
  16679. 3.18.34 PDP-11 Options
  16680. ----------------------
  16681. These options are defined for the PDP-11:
  16682. '-mfpu'
  16683. Use hardware FPP floating point. This is the default. (FIS
  16684. floating point on the PDP-11/40 is not supported.)
  16685. '-msoft-float'
  16686. Do not use hardware floating point.
  16687. '-mac0'
  16688. Return floating-point results in ac0 (fr0 in Unix assembler
  16689. syntax).
  16690. '-mno-ac0'
  16691. Return floating-point results in memory. This is the default.
  16692. '-m40'
  16693. Generate code for a PDP-11/40.
  16694. '-m45'
  16695. Generate code for a PDP-11/45. This is the default.
  16696. '-m10'
  16697. Generate code for a PDP-11/10.
  16698. '-mbcopy-builtin'
  16699. Use inline 'movmemhi' patterns for copying memory. This is the
  16700. default.
  16701. '-mbcopy'
  16702. Do not use inline 'movmemhi' patterns for copying memory.
  16703. '-mint16'
  16704. '-mno-int32'
  16705. Use 16-bit 'int'. This is the default.
  16706. '-mint32'
  16707. '-mno-int16'
  16708. Use 32-bit 'int'.
  16709. '-mfloat64'
  16710. '-mno-float32'
  16711. Use 64-bit 'float'. This is the default.
  16712. '-mfloat32'
  16713. '-mno-float64'
  16714. Use 32-bit 'float'.
  16715. '-mabshi'
  16716. Use 'abshi2' pattern. This is the default.
  16717. '-mno-abshi'
  16718. Do not use 'abshi2' pattern.
  16719. '-mbranch-expensive'
  16720. Pretend that branches are expensive. This is for experimenting
  16721. with code generation only.
  16722. '-mbranch-cheap'
  16723. Do not pretend that branches are expensive. This is the default.
  16724. '-munix-asm'
  16725. Use Unix assembler syntax. This is the default when configured for
  16726. 'pdp11-*-bsd'.
  16727. '-mdec-asm'
  16728. Use DEC assembler syntax. This is the default when configured for
  16729. any PDP-11 target other than 'pdp11-*-bsd'.
  16730. 
  16731. File: gcc.info, Node: picoChip Options, Next: PowerPC Options, Prev: PDP-11 Options, Up: Submodel Options
  16732. 3.18.35 picoChip Options
  16733. ------------------------
  16734. These '-m' options are defined for picoChip implementations:
  16735. '-mae=AE_TYPE'
  16736. Set the instruction set, register set, and instruction scheduling
  16737. parameters for array element type AE_TYPE. Supported values for
  16738. AE_TYPE are 'ANY', 'MUL', and 'MAC'.
  16739. '-mae=ANY' selects a completely generic AE type. Code generated
  16740. with this option runs on any of the other AE types. The code is
  16741. not as efficient as it would be if compiled for a specific AE type,
  16742. and some types of operation (e.g., multiplication) do not work
  16743. properly on all types of AE.
  16744. '-mae=MUL' selects a MUL AE type. This is the most useful AE type
  16745. for compiled code, and is the default.
  16746. '-mae=MAC' selects a DSP-style MAC AE. Code compiled with this
  16747. option may suffer from poor performance of byte (char)
  16748. manipulation, since the DSP AE does not provide hardware support
  16749. for byte load/stores.
  16750. '-msymbol-as-address'
  16751. Enable the compiler to directly use a symbol name as an address in
  16752. a load/store instruction, without first loading it into a register.
  16753. Typically, the use of this option generates larger programs, which
  16754. run faster than when the option isn't used. However, the results
  16755. vary from program to program, so it is left as a user option,
  16756. rather than being permanently enabled.
  16757. '-mno-inefficient-warnings'
  16758. Disables warnings about the generation of inefficient code. These
  16759. warnings can be generated, for example, when compiling code that
  16760. performs byte-level memory operations on the MAC AE type. The MAC
  16761. AE has no hardware support for byte-level memory operations, so all
  16762. byte load/stores must be synthesized from word load/store
  16763. operations. This is inefficient and a warning is generated to
  16764. indicate that you should rewrite the code to avoid byte operations,
  16765. or to target an AE type that has the necessary hardware support.
  16766. This option disables these warnings.
  16767. 
  16768. File: gcc.info, Node: PowerPC Options, Next: PowerPC SPE Options, Prev: picoChip Options, Up: Submodel Options
  16769. 3.18.36 PowerPC Options
  16770. -----------------------
  16771. These are listed under *Note RS/6000 and PowerPC Options::.
  16772. 
  16773. File: gcc.info, Node: PowerPC SPE Options, Next: RISC-V Options, Prev: PowerPC Options, Up: Submodel Options
  16774. 3.18.37 PowerPC SPE Options
  16775. ---------------------------
  16776. These '-m' options are defined for PowerPC SPE:
  16777. '-mmfcrf'
  16778. '-mno-mfcrf'
  16779. '-mpopcntb'
  16780. '-mno-popcntb'
  16781. You use these options to specify which instructions are available
  16782. on the processor you are using. The default value of these options
  16783. is determined when configuring GCC. Specifying the
  16784. '-mcpu=CPU_TYPE' overrides the specification of these options. We
  16785. recommend you use the '-mcpu=CPU_TYPE' option rather than the
  16786. options listed above.
  16787. The '-mmfcrf' option allows GCC to generate the move from condition
  16788. register field instruction implemented on the POWER4 processor and
  16789. other processors that support the PowerPC V2.01 architecture. The
  16790. '-mpopcntb' option allows GCC to generate the popcount and
  16791. double-precision FP reciprocal estimate instruction implemented on
  16792. the POWER5 processor and other processors that support the PowerPC
  16793. V2.02 architecture.
  16794. '-mcpu=CPU_TYPE'
  16795. Set architecture type, register usage, and instruction scheduling
  16796. parameters for machine type CPU_TYPE. Supported values for
  16797. CPU_TYPE are '8540', '8548', and 'native'.
  16798. '-mcpu=powerpc' specifies pure 32-bit PowerPC (either endian), with
  16799. an appropriate, generic processor model assumed for scheduling
  16800. purposes.
  16801. Specifying 'native' as cpu type detects and selects the
  16802. architecture option that corresponds to the host processor of the
  16803. system performing the compilation. '-mcpu=native' has no effect if
  16804. GCC does not recognize the processor.
  16805. The other options specify a specific processor. Code generated
  16806. under those options runs best on that processor, and may not run at
  16807. all on others.
  16808. The '-mcpu' options automatically enable or disable the following
  16809. options:
  16810. -mhard-float -mmfcrf -mmultiple
  16811. -mpopcntb -mpopcntd
  16812. -msingle-float -mdouble-float
  16813. -mfloat128
  16814. The particular options set for any particular CPU varies between
  16815. compiler versions, depending on what setting seems to produce
  16816. optimal code for that CPU; it doesn't necessarily reflect the
  16817. actual hardware's capabilities. If you wish to set an individual
  16818. option to a particular value, you may specify it after the '-mcpu'
  16819. option, like '-mcpu=8548'.
  16820. '-mtune=CPU_TYPE'
  16821. Set the instruction scheduling parameters for machine type
  16822. CPU_TYPE, but do not set the architecture type or register usage,
  16823. as '-mcpu=CPU_TYPE' does. The same values for CPU_TYPE are used
  16824. for '-mtune' as for '-mcpu'. If both are specified, the code
  16825. generated uses the architecture and registers set by '-mcpu', but
  16826. the scheduling parameters set by '-mtune'.
  16827. '-msecure-plt'
  16828. Generate code that allows 'ld' and 'ld.so' to build executables and
  16829. shared libraries with non-executable '.plt' and '.got' sections.
  16830. This is a PowerPC 32-bit SYSV ABI option.
  16831. '-mbss-plt'
  16832. Generate code that uses a BSS '.plt' section that 'ld.so' fills in,
  16833. and requires '.plt' and '.got' sections that are both writable and
  16834. executable. This is a PowerPC 32-bit SYSV ABI option.
  16835. '-misel'
  16836. '-mno-isel'
  16837. This switch enables or disables the generation of ISEL
  16838. instructions.
  16839. '-misel=YES/NO'
  16840. This switch has been deprecated. Use '-misel' and '-mno-isel'
  16841. instead.
  16842. '-mspe'
  16843. '-mno-spe'
  16844. This switch enables or disables the generation of SPE simd
  16845. instructions.
  16846. '-mspe=YES/NO'
  16847. This option has been deprecated. Use '-mspe' and '-mno-spe'
  16848. instead.
  16849. '-mfloat128'
  16850. '-mno-float128'
  16851. Enable/disable the __FLOAT128 keyword for IEEE 128-bit floating
  16852. point and use either software emulation for IEEE 128-bit floating
  16853. point or hardware instructions.
  16854. '-mfloat-gprs=YES/SINGLE/DOUBLE/NO'
  16855. '-mfloat-gprs'
  16856. This switch enables or disables the generation of floating-point
  16857. operations on the general-purpose registers for architectures that
  16858. support it.
  16859. The argument 'yes' or 'single' enables the use of single-precision
  16860. floating-point operations.
  16861. The argument 'double' enables the use of single and
  16862. double-precision floating-point operations.
  16863. The argument 'no' disables floating-point operations on the
  16864. general-purpose registers.
  16865. This option is currently only available on the MPC854x.
  16866. '-mfull-toc'
  16867. '-mno-fp-in-toc'
  16868. '-mno-sum-in-toc'
  16869. '-mminimal-toc'
  16870. Modify generation of the TOC (Table Of Contents), which is created
  16871. for every executable file. The '-mfull-toc' option is selected by
  16872. default. In that case, GCC allocates at least one TOC entry for
  16873. each unique non-automatic variable reference in your program. GCC
  16874. also places floating-point constants in the TOC. However, only
  16875. 16,384 entries are available in the TOC.
  16876. If you receive a linker error message that saying you have
  16877. overflowed the available TOC space, you can reduce the amount of
  16878. TOC space used with the '-mno-fp-in-toc' and '-mno-sum-in-toc'
  16879. options. '-mno-fp-in-toc' prevents GCC from putting floating-point
  16880. constants in the TOC and '-mno-sum-in-toc' forces GCC to generate
  16881. code to calculate the sum of an address and a constant at run time
  16882. instead of putting that sum into the TOC. You may specify one or
  16883. both of these options. Each causes GCC to produce very slightly
  16884. slower and larger code at the expense of conserving TOC space.
  16885. If you still run out of space in the TOC even when you specify both
  16886. of these options, specify '-mminimal-toc' instead. This option
  16887. causes GCC to make only one TOC entry for every file. When you
  16888. specify this option, GCC produces code that is slower and larger
  16889. but which uses extremely little TOC space. You may wish to use
  16890. this option only on files that contain less frequently-executed
  16891. code.
  16892. '-maix32'
  16893. Disables the 64-bit ABI. GCC defaults to '-maix32'.
  16894. '-mxl-compat'
  16895. '-mno-xl-compat'
  16896. Produce code that conforms more closely to IBM XL compiler
  16897. semantics when using AIX-compatible ABI. Pass floating-point
  16898. arguments to prototyped functions beyond the register save area
  16899. (RSA) on the stack in addition to argument FPRs. Do not assume
  16900. that most significant double in 128-bit long double value is
  16901. properly rounded when comparing values and converting to double.
  16902. Use XL symbol names for long double support routines.
  16903. The AIX calling convention was extended but not initially
  16904. documented to handle an obscure K&R C case of calling a function
  16905. that takes the address of its arguments with fewer arguments than
  16906. declared. IBM XL compilers access floating-point arguments that do
  16907. not fit in the RSA from the stack when a subroutine is compiled
  16908. without optimization. Because always storing floating-point
  16909. arguments on the stack is inefficient and rarely needed, this
  16910. option is not enabled by default and only is necessary when calling
  16911. subroutines compiled by IBM XL compilers without optimization.
  16912. '-malign-natural'
  16913. '-malign-power'
  16914. On AIX, 32-bit Darwin, and 64-bit PowerPC GNU/Linux, the option
  16915. '-malign-natural' overrides the ABI-defined alignment of larger
  16916. types, such as floating-point doubles, on their natural size-based
  16917. boundary. The option '-malign-power' instructs GCC to follow the
  16918. ABI-specified alignment rules. GCC defaults to the standard
  16919. alignment defined in the ABI.
  16920. On 64-bit Darwin, natural alignment is the default, and
  16921. '-malign-power' is not supported.
  16922. '-msoft-float'
  16923. '-mhard-float'
  16924. Generate code that does not use (uses) the floating-point register
  16925. set. Software floating-point emulation is provided if you use the
  16926. '-msoft-float' option, and pass the option to GCC when linking.
  16927. '-msingle-float'
  16928. '-mdouble-float'
  16929. Generate code for single- or double-precision floating-point
  16930. operations. '-mdouble-float' implies '-msingle-float'.
  16931. '-mmultiple'
  16932. '-mno-multiple'
  16933. Generate code that uses (does not use) the load multiple word
  16934. instructions and the store multiple word instructions. These
  16935. instructions are generated by default on POWER systems, and not
  16936. generated on PowerPC systems. Do not use '-mmultiple' on
  16937. little-endian PowerPC systems, since those instructions do not work
  16938. when the processor is in little-endian mode. The exceptions are
  16939. PPC740 and PPC750 which permit these instructions in little-endian
  16940. mode.
  16941. '-mupdate'
  16942. '-mno-update'
  16943. Generate code that uses (does not use) the load or store
  16944. instructions that update the base register to the address of the
  16945. calculated memory location. These instructions are generated by
  16946. default. If you use '-mno-update', there is a small window between
  16947. the time that the stack pointer is updated and the address of the
  16948. previous frame is stored, which means code that walks the stack
  16949. frame across interrupts or signals may get corrupted data.
  16950. '-mavoid-indexed-addresses'
  16951. '-mno-avoid-indexed-addresses'
  16952. Generate code that tries to avoid (not avoid) the use of indexed
  16953. load or store instructions. These instructions can incur a
  16954. performance penalty on Power6 processors in certain situations,
  16955. such as when stepping through large arrays that cross a 16M
  16956. boundary. This option is enabled by default when targeting Power6
  16957. and disabled otherwise.
  16958. '-mfused-madd'
  16959. '-mno-fused-madd'
  16960. Generate code that uses (does not use) the floating-point multiply
  16961. and accumulate instructions. These instructions are generated by
  16962. default if hardware floating point is used. The machine-dependent
  16963. '-mfused-madd' option is now mapped to the machine-independent
  16964. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  16965. '-ffp-contract=off'.
  16966. '-mno-strict-align'
  16967. '-mstrict-align'
  16968. On System V.4 and embedded PowerPC systems do not (do) assume that
  16969. unaligned memory references are handled by the system.
  16970. '-mrelocatable'
  16971. '-mno-relocatable'
  16972. Generate code that allows (does not allow) a static executable to
  16973. be relocated to a different address at run time. A simple embedded
  16974. PowerPC system loader should relocate the entire contents of
  16975. '.got2' and 4-byte locations listed in the '.fixup' section, a
  16976. table of 32-bit addresses generated by this option. For this to
  16977. work, all objects linked together must be compiled with
  16978. '-mrelocatable' or '-mrelocatable-lib'. '-mrelocatable' code
  16979. aligns the stack to an 8-byte boundary.
  16980. '-mrelocatable-lib'
  16981. '-mno-relocatable-lib'
  16982. Like '-mrelocatable', '-mrelocatable-lib' generates a '.fixup'
  16983. section to allow static executables to be relocated at run time,
  16984. but '-mrelocatable-lib' does not use the smaller stack alignment of
  16985. '-mrelocatable'. Objects compiled with '-mrelocatable-lib' may be
  16986. linked with objects compiled with any combination of the
  16987. '-mrelocatable' options.
  16988. '-mno-toc'
  16989. '-mtoc'
  16990. On System V.4 and embedded PowerPC systems do not (do) assume that
  16991. register 2 contains a pointer to a global area pointing to the
  16992. addresses used in the program.
  16993. '-mlittle'
  16994. '-mlittle-endian'
  16995. On System V.4 and embedded PowerPC systems compile code for the
  16996. processor in little-endian mode. The '-mlittle-endian' option is
  16997. the same as '-mlittle'.
  16998. '-mbig'
  16999. '-mbig-endian'
  17000. On System V.4 and embedded PowerPC systems compile code for the
  17001. processor in big-endian mode. The '-mbig-endian' option is the
  17002. same as '-mbig'.
  17003. '-mdynamic-no-pic'
  17004. On Darwin and Mac OS X systems, compile code so that it is not
  17005. relocatable, but that its external references are relocatable. The
  17006. resulting code is suitable for applications, but not shared
  17007. libraries.
  17008. '-msingle-pic-base'
  17009. Treat the register used for PIC addressing as read-only, rather
  17010. than loading it in the prologue for each function. The runtime
  17011. system is responsible for initializing this register with an
  17012. appropriate value before execution begins.
  17013. '-mprioritize-restricted-insns=PRIORITY'
  17014. This option controls the priority that is assigned to dispatch-slot
  17015. restricted instructions during the second scheduling pass. The
  17016. argument PRIORITY takes the value '0', '1', or '2' to assign no,
  17017. highest, or second-highest (respectively) priority to dispatch-slot
  17018. restricted instructions.
  17019. '-msched-costly-dep=DEPENDENCE_TYPE'
  17020. This option controls which dependences are considered costly by the
  17021. target during instruction scheduling. The argument DEPENDENCE_TYPE
  17022. takes one of the following values:
  17023. 'no'
  17024. No dependence is costly.
  17025. 'all'
  17026. All dependences are costly.
  17027. 'true_store_to_load'
  17028. A true dependence from store to load is costly.
  17029. 'store_to_load'
  17030. Any dependence from store to load is costly.
  17031. NUMBER
  17032. Any dependence for which the latency is greater than or equal
  17033. to NUMBER is costly.
  17034. '-minsert-sched-nops=SCHEME'
  17035. This option controls which NOP insertion scheme is used during the
  17036. second scheduling pass. The argument SCHEME takes one of the
  17037. following values:
  17038. 'no'
  17039. Don't insert NOPs.
  17040. 'pad'
  17041. Pad with NOPs any dispatch group that has vacant issue slots,
  17042. according to the scheduler's grouping.
  17043. 'regroup_exact'
  17044. Insert NOPs to force costly dependent insns into separate
  17045. groups. Insert exactly as many NOPs as needed to force an
  17046. insn to a new group, according to the estimated processor
  17047. grouping.
  17048. NUMBER
  17049. Insert NOPs to force costly dependent insns into separate
  17050. groups. Insert NUMBER NOPs to force an insn to a new group.
  17051. '-mcall-sysv'
  17052. On System V.4 and embedded PowerPC systems compile code using
  17053. calling conventions that adhere to the March 1995 draft of the
  17054. System V Application Binary Interface, PowerPC processor
  17055. supplement. This is the default unless you configured GCC using
  17056. 'powerpc-*-eabiaix'.
  17057. '-mcall-sysv-eabi'
  17058. '-mcall-eabi'
  17059. Specify both '-mcall-sysv' and '-meabi' options.
  17060. '-mcall-sysv-noeabi'
  17061. Specify both '-mcall-sysv' and '-mno-eabi' options.
  17062. '-mcall-aixdesc'
  17063. On System V.4 and embedded PowerPC systems compile code for the AIX
  17064. operating system.
  17065. '-mcall-linux'
  17066. On System V.4 and embedded PowerPC systems compile code for the
  17067. Linux-based GNU system.
  17068. '-mcall-freebsd'
  17069. On System V.4 and embedded PowerPC systems compile code for the
  17070. FreeBSD operating system.
  17071. '-mcall-netbsd'
  17072. On System V.4 and embedded PowerPC systems compile code for the
  17073. NetBSD operating system.
  17074. '-mcall-openbsd'
  17075. On System V.4 and embedded PowerPC systems compile code for the
  17076. OpenBSD operating system.
  17077. '-maix-struct-return'
  17078. Return all structures in memory (as specified by the AIX ABI).
  17079. '-msvr4-struct-return'
  17080. Return structures smaller than 8 bytes in registers (as specified
  17081. by the SVR4 ABI).
  17082. '-mabi=ABI-TYPE'
  17083. Extend the current ABI with a particular extension, or remove such
  17084. extension. Valid values are 'altivec', 'no-altivec', 'spe',
  17085. 'no-spe', 'ibmlongdouble', 'ieeelongdouble', 'elfv1', 'elfv2'.
  17086. '-mabi=spe'
  17087. Extend the current ABI with SPE ABI extensions. This does not
  17088. change the default ABI, instead it adds the SPE ABI extensions to
  17089. the current ABI.
  17090. '-mabi=no-spe'
  17091. Disable Book-E SPE ABI extensions for the current ABI.
  17092. '-mabi=ibmlongdouble'
  17093. Change the current ABI to use IBM extended-precision long double.
  17094. This is not likely to work if your system defaults to using IEEE
  17095. extended-precision long double. If you change the long double type
  17096. from IEEE extended-precision, the compiler will issue a warning
  17097. unless you use the '-Wno-psabi' option. Requires
  17098. '-mlong-double-128' to be enabled.
  17099. '-mabi=ieeelongdouble'
  17100. Change the current ABI to use IEEE extended-precision long double.
  17101. This is not likely to work if your system defaults to using IBM
  17102. extended-precision long double. If you change the long double type
  17103. from IBM extended-precision, the compiler will issue a warning
  17104. unless you use the '-Wno-psabi' option. Requires
  17105. '-mlong-double-128' to be enabled.
  17106. '-mabi=elfv1'
  17107. Change the current ABI to use the ELFv1 ABI. This is the default
  17108. ABI for big-endian PowerPC 64-bit Linux. Overriding the default
  17109. ABI requires special system support and is likely to fail in
  17110. spectacular ways.
  17111. '-mabi=elfv2'
  17112. Change the current ABI to use the ELFv2 ABI. This is the default
  17113. ABI for little-endian PowerPC 64-bit Linux. Overriding the default
  17114. ABI requires special system support and is likely to fail in
  17115. spectacular ways.
  17116. '-mgnu-attribute'
  17117. '-mno-gnu-attribute'
  17118. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  17119. .gnu.attributes section that specify ABI variations in function
  17120. parameters or return values.
  17121. '-mprototype'
  17122. '-mno-prototype'
  17123. On System V.4 and embedded PowerPC systems assume that all calls to
  17124. variable argument functions are properly prototyped. Otherwise,
  17125. the compiler must insert an instruction before every non-prototyped
  17126. call to set or clear bit 6 of the condition code register ('CR') to
  17127. indicate whether floating-point values are passed in the
  17128. floating-point registers in case the function takes variable
  17129. arguments. With '-mprototype', only calls to prototyped variable
  17130. argument functions set or clear the bit.
  17131. '-msim'
  17132. On embedded PowerPC systems, assume that the startup module is
  17133. called 'sim-crt0.o' and that the standard C libraries are
  17134. 'libsim.a' and 'libc.a'. This is the default for
  17135. 'powerpc-*-eabisim' configurations.
  17136. '-mmvme'
  17137. On embedded PowerPC systems, assume that the startup module is
  17138. called 'crt0.o' and the standard C libraries are 'libmvme.a' and
  17139. 'libc.a'.
  17140. '-mads'
  17141. On embedded PowerPC systems, assume that the startup module is
  17142. called 'crt0.o' and the standard C libraries are 'libads.a' and
  17143. 'libc.a'.
  17144. '-myellowknife'
  17145. On embedded PowerPC systems, assume that the startup module is
  17146. called 'crt0.o' and the standard C libraries are 'libyk.a' and
  17147. 'libc.a'.
  17148. '-mvxworks'
  17149. On System V.4 and embedded PowerPC systems, specify that you are
  17150. compiling for a VxWorks system.
  17151. '-memb'
  17152. On embedded PowerPC systems, set the 'PPC_EMB' bit in the ELF flags
  17153. header to indicate that 'eabi' extended relocations are used.
  17154. '-meabi'
  17155. '-mno-eabi'
  17156. On System V.4 and embedded PowerPC systems do (do not) adhere to
  17157. the Embedded Applications Binary Interface (EABI), which is a set
  17158. of modifications to the System V.4 specifications. Selecting
  17159. '-meabi' means that the stack is aligned to an 8-byte boundary, a
  17160. function '__eabi' is called from 'main' to set up the EABI
  17161. environment, and the '-msdata' option can use both 'r2' and 'r13'
  17162. to point to two separate small data areas. Selecting '-mno-eabi'
  17163. means that the stack is aligned to a 16-byte boundary, no EABI
  17164. initialization function is called from 'main', and the '-msdata'
  17165. option only uses 'r13' to point to a single small data area. The
  17166. '-meabi' option is on by default if you configured GCC using one of
  17167. the 'powerpc*-*-eabi*' options.
  17168. '-msdata=eabi'
  17169. On System V.4 and embedded PowerPC systems, put small initialized
  17170. 'const' global and static data in the '.sdata2' section, which is
  17171. pointed to by register 'r2'. Put small initialized non-'const'
  17172. global and static data in the '.sdata' section, which is pointed to
  17173. by register 'r13'. Put small uninitialized global and static data
  17174. in the '.sbss' section, which is adjacent to the '.sdata' section.
  17175. The '-msdata=eabi' option is incompatible with the '-mrelocatable'
  17176. option. The '-msdata=eabi' option also sets the '-memb' option.
  17177. '-msdata=sysv'
  17178. On System V.4 and embedded PowerPC systems, put small global and
  17179. static data in the '.sdata' section, which is pointed to by
  17180. register 'r13'. Put small uninitialized global and static data in
  17181. the '.sbss' section, which is adjacent to the '.sdata' section.
  17182. The '-msdata=sysv' option is incompatible with the '-mrelocatable'
  17183. option.
  17184. '-msdata=default'
  17185. '-msdata'
  17186. On System V.4 and embedded PowerPC systems, if '-meabi' is used,
  17187. compile code the same as '-msdata=eabi', otherwise compile code the
  17188. same as '-msdata=sysv'.
  17189. '-msdata=data'
  17190. On System V.4 and embedded PowerPC systems, put small global data
  17191. in the '.sdata' section. Put small uninitialized global data in
  17192. the '.sbss' section. Do not use register 'r13' to address small
  17193. data however. This is the default behavior unless other '-msdata'
  17194. options are used.
  17195. '-msdata=none'
  17196. '-mno-sdata'
  17197. On embedded PowerPC systems, put all initialized global and static
  17198. data in the '.data' section, and all uninitialized data in the
  17199. '.bss' section.
  17200. '-mblock-move-inline-limit=NUM'
  17201. Inline all block moves (such as calls to 'memcpy' or structure
  17202. copies) less than or equal to NUM bytes. The minimum value for NUM
  17203. is 32 bytes on 32-bit targets and 64 bytes on 64-bit targets. The
  17204. default value is target-specific.
  17205. '-G NUM'
  17206. On embedded PowerPC systems, put global and static items less than
  17207. or equal to NUM bytes into the small data or BSS sections instead
  17208. of the normal data or BSS section. By default, NUM is 8. The '-G
  17209. NUM' switch is also passed to the linker. All modules should be
  17210. compiled with the same '-G NUM' value.
  17211. '-mregnames'
  17212. '-mno-regnames'
  17213. On System V.4 and embedded PowerPC systems do (do not) emit
  17214. register names in the assembly language output using symbolic
  17215. forms.
  17216. '-mlongcall'
  17217. '-mno-longcall'
  17218. By default assume that all calls are far away so that a longer and
  17219. more expensive calling sequence is required. This is required for
  17220. calls farther than 32 megabytes (33,554,432 bytes) from the current
  17221. location. A short call is generated if the compiler knows the call
  17222. cannot be that far away. This setting can be overridden by the
  17223. 'shortcall' function attribute, or by '#pragma longcall(0)'.
  17224. Some linkers are capable of detecting out-of-range calls and
  17225. generating glue code on the fly. On these systems, long calls are
  17226. unnecessary and generate slower code. As of this writing, the AIX
  17227. linker can do this, as can the GNU linker for PowerPC/64. It is
  17228. planned to add this feature to the GNU linker for 32-bit PowerPC
  17229. systems as well.
  17230. In the future, GCC may ignore all longcall specifications when the
  17231. linker is known to generate glue.
  17232. '-mtls-markers'
  17233. '-mno-tls-markers'
  17234. Mark (do not mark) calls to '__tls_get_addr' with a relocation
  17235. specifying the function argument. The relocation allows the linker
  17236. to reliably associate function call with argument setup
  17237. instructions for TLS optimization, which in turn allows GCC to
  17238. better schedule the sequence.
  17239. '-mrecip'
  17240. '-mno-recip'
  17241. This option enables use of the reciprocal estimate and reciprocal
  17242. square root estimate instructions with additional Newton-Raphson
  17243. steps to increase precision instead of doing a divide or square
  17244. root and divide for floating-point arguments. You should use the
  17245. '-ffast-math' option when using '-mrecip' (or at least
  17246. '-funsafe-math-optimizations', '-ffinite-math-only',
  17247. '-freciprocal-math' and '-fno-trapping-math'). Note that while the
  17248. throughput of the sequence is generally higher than the throughput
  17249. of the non-reciprocal instruction, the precision of the sequence
  17250. can be decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  17251. 0.99999994) for reciprocal square roots.
  17252. '-mrecip=OPT'
  17253. This option controls which reciprocal estimate instructions may be
  17254. used. OPT is a comma-separated list of options, which may be
  17255. preceded by a '!' to invert the option:
  17256. 'all'
  17257. Enable all estimate instructions.
  17258. 'default'
  17259. Enable the default instructions, equivalent to '-mrecip'.
  17260. 'none'
  17261. Disable all estimate instructions, equivalent to '-mno-recip'.
  17262. 'div'
  17263. Enable the reciprocal approximation instructions for both
  17264. single and double precision.
  17265. 'divf'
  17266. Enable the single-precision reciprocal approximation
  17267. instructions.
  17268. 'divd'
  17269. Enable the double-precision reciprocal approximation
  17270. instructions.
  17271. 'rsqrt'
  17272. Enable the reciprocal square root approximation instructions
  17273. for both single and double precision.
  17274. 'rsqrtf'
  17275. Enable the single-precision reciprocal square root
  17276. approximation instructions.
  17277. 'rsqrtd'
  17278. Enable the double-precision reciprocal square root
  17279. approximation instructions.
  17280. So, for example, '-mrecip=all,!rsqrtd' enables all of the
  17281. reciprocal estimate instructions, except for the 'FRSQRTE',
  17282. 'XSRSQRTEDP', and 'XVRSQRTEDP' instructions which handle the
  17283. double-precision reciprocal square root calculations.
  17284. '-mrecip-precision'
  17285. '-mno-recip-precision'
  17286. Assume (do not assume) that the reciprocal estimate instructions
  17287. provide higher-precision estimates than is mandated by the PowerPC
  17288. ABI. Selecting '-mcpu=power6', '-mcpu=power7' or '-mcpu=power8'
  17289. automatically selects '-mrecip-precision'. The double-precision
  17290. square root estimate instructions are not generated by default on
  17291. low-precision machines, since they do not provide an estimate that
  17292. converges after three steps.
  17293. '-mpointers-to-nested-functions'
  17294. '-mno-pointers-to-nested-functions'
  17295. Generate (do not generate) code to load up the static chain
  17296. register ('r11') when calling through a pointer on AIX and 64-bit
  17297. Linux systems where a function pointer points to a 3-word
  17298. descriptor giving the function address, TOC value to be loaded in
  17299. register 'r2', and static chain value to be loaded in register
  17300. 'r11'. The '-mpointers-to-nested-functions' is on by default. You
  17301. cannot call through pointers to nested functions or pointers to
  17302. functions compiled in other languages that use the static chain if
  17303. you use '-mno-pointers-to-nested-functions'.
  17304. '-msave-toc-indirect'
  17305. '-mno-save-toc-indirect'
  17306. Generate (do not generate) code to save the TOC value in the
  17307. reserved stack location in the function prologue if the function
  17308. calls through a pointer on AIX and 64-bit Linux systems. If the
  17309. TOC value is not saved in the prologue, it is saved just before the
  17310. call through the pointer. The '-mno-save-toc-indirect' option is
  17311. the default.
  17312. '-mcompat-align-parm'
  17313. '-mno-compat-align-parm'
  17314. Generate (do not generate) code to pass structure parameters with a
  17315. maximum alignment of 64 bits, for compatibility with older versions
  17316. of GCC.
  17317. Older versions of GCC (prior to 4.9.0) incorrectly did not align a
  17318. structure parameter on a 128-bit boundary when that structure
  17319. contained a member requiring 128-bit alignment. This is corrected
  17320. in more recent versions of GCC. This option may be used to generate
  17321. code that is compatible with functions compiled with older versions
  17322. of GCC.
  17323. The '-mno-compat-align-parm' option is the default.
  17324. '-mstack-protector-guard=GUARD'
  17325. '-mstack-protector-guard-reg=REG'
  17326. '-mstack-protector-guard-offset=OFFSET'
  17327. '-mstack-protector-guard-symbol=SYMBOL'
  17328. Generate stack protection code using canary at GUARD. Supported
  17329. locations are 'global' for global canary or 'tls' for per-thread
  17330. canary in the TLS block (the default with GNU libc version 2.4 or
  17331. later).
  17332. With the latter choice the options
  17333. '-mstack-protector-guard-reg=REG' and
  17334. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  17335. register to use as base register for reading the canary, and from
  17336. what offset from that base register. The default for those is as
  17337. specified in the relevant ABI.
  17338. '-mstack-protector-guard-symbol=SYMBOL' overrides the offset with a
  17339. symbol reference to a canary in the TLS block.
  17340. 
  17341. File: gcc.info, Node: RISC-V Options, Next: RL78 Options, Prev: PowerPC SPE Options, Up: Submodel Options
  17342. 3.18.38 RISC-V Options
  17343. ----------------------
  17344. These command-line options are defined for RISC-V targets:
  17345. '-mbranch-cost=N'
  17346. Set the cost of branches to roughly N instructions.
  17347. '-mplt'
  17348. '-mno-plt'
  17349. When generating PIC code, do or don't allow the use of PLTs.
  17350. Ignored for non-PIC. The default is '-mplt'.
  17351. '-mabi=ABI-STRING'
  17352. Specify integer and floating-point calling convention. ABI-STRING
  17353. contains two parts: the size of integer types and the registers
  17354. used for floating-point types. For example '-march=rv64ifd
  17355. -mabi=lp64d' means that 'long' and pointers are 64-bit (implicitly
  17356. defining 'int' to be 32-bit), and that floating-point values up to
  17357. 64 bits wide are passed in F registers. Contrast this with
  17358. '-march=rv64ifd -mabi=lp64f', which still allows the compiler to
  17359. generate code that uses the F and D extensions but only allows
  17360. floating-point values up to 32 bits long to be passed in registers;
  17361. or '-march=rv64ifd -mabi=lp64', in which no floating-point
  17362. arguments will be passed in registers.
  17363. The default for this argument is system dependent, users who want a
  17364. specific calling convention should specify one explicitly. The
  17365. valid calling conventions are: 'ilp32', 'ilp32f', 'ilp32d', 'lp64',
  17366. 'lp64f', and 'lp64d'. Some calling conventions are impossible to
  17367. implement on some ISAs: for example, '-march=rv32if -mabi=ilp32d'
  17368. is invalid because the ABI requires 64-bit values be passed in F
  17369. registers, but F registers are only 32 bits wide. There is also
  17370. the 'ilp32e' ABI that can only be used with the 'rv32e'
  17371. architecture. This ABI is not well specified at present, and is
  17372. subject to change.
  17373. '-mfdiv'
  17374. '-mno-fdiv'
  17375. Do or don't use hardware floating-point divide and square root
  17376. instructions. This requires the F or D extensions for
  17377. floating-point registers. The default is to use them if the
  17378. specified architecture has these instructions.
  17379. '-mdiv'
  17380. '-mno-div'
  17381. Do or don't use hardware instructions for integer division. This
  17382. requires the M extension. The default is to use them if the
  17383. specified architecture has these instructions.
  17384. '-march=ISA-STRING'
  17385. Generate code for given RISC-V ISA (e.g. 'rv64im'). ISA strings
  17386. must be lower-case. Examples include 'rv64i', 'rv32g', 'rv32e',
  17387. and 'rv32imaf'.
  17388. '-mtune=PROCESSOR-STRING'
  17389. Optimize the output for the given processor, specified by
  17390. microarchitecture name. Permissible values for this option are:
  17391. 'rocket', 'sifive-3-series', 'sifive-5-series', 'sifive-7-series',
  17392. and 'size'.
  17393. When '-mtune=' is not specified, the default is 'rocket'.
  17394. The 'size' choice is not intended for use by end-users. This is
  17395. used when '-Os' is specified. It overrides the instruction cost
  17396. info provided by '-mtune=', but does not override the pipeline
  17397. info. This helps reduce code size while still giving good
  17398. performance.
  17399. '-mpreferred-stack-boundary=NUM'
  17400. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  17401. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  17402. the default is 4 (16 bytes or 128-bits).
  17403. *Warning:* If you use this switch, then you must build all modules
  17404. with the same value, including any libraries. This includes the
  17405. system libraries and startup modules.
  17406. '-msmall-data-limit=N'
  17407. Put global and static data smaller than N bytes into a special
  17408. section (on some targets).
  17409. '-msave-restore'
  17410. '-mno-save-restore'
  17411. Do or don't use smaller but slower prologue and epilogue code that
  17412. uses library function calls. The default is to use fast inline
  17413. prologues and epilogues.
  17414. '-mstrict-align'
  17415. '-mno-strict-align'
  17416. Do not or do generate unaligned memory accesses. The default is
  17417. set depending on whether the processor we are optimizing for
  17418. supports fast unaligned access or not.
  17419. '-mcmodel=medlow'
  17420. Generate code for the medium-low code model. The program and its
  17421. statically defined symbols must lie within a single 2 GiB address
  17422. range and must lie between absolute addresses -2 GiB and +2 GiB.
  17423. Programs can be statically or dynamically linked. This is the
  17424. default code model.
  17425. '-mcmodel=medany'
  17426. Generate code for the medium-any code model. The program and its
  17427. statically defined symbols must be within any single 2 GiB address
  17428. range. Programs can be statically or dynamically linked.
  17429. '-mexplicit-relocs'
  17430. '-mno-exlicit-relocs'
  17431. Use or do not use assembler relocation operators when dealing with
  17432. symbolic addresses. The alternative is to use assembler macros
  17433. instead, which may limit optimization.
  17434. '-mrelax'
  17435. '-mno-relax'
  17436. Take advantage of linker relaxations to reduce the number of
  17437. instructions required to materialize symbol addresses. The default
  17438. is to take advantage of linker relaxations.
  17439. '-memit-attribute'
  17440. '-mno-emit-attribute'
  17441. Emit (do not emit) RISC-V attribute to record extra information
  17442. into ELF objects. This feature requires at least binutils 2.32.
  17443. '-malign-data=TYPE'
  17444. Control how GCC aligns variables and constants of array, structure,
  17445. or union types. Supported values for TYPE are 'xlen' which uses x
  17446. register width as the alignment value, and 'natural' which uses
  17447. natural alignment. 'xlen' is the default.
  17448. 
  17449. File: gcc.info, Node: RL78 Options, Next: RS/6000 and PowerPC Options, Prev: RISC-V Options, Up: Submodel Options
  17450. 3.18.39 RL78 Options
  17451. --------------------
  17452. '-msim'
  17453. Links in additional target libraries to support operation within a
  17454. simulator.
  17455. '-mmul=none'
  17456. '-mmul=g10'
  17457. '-mmul=g13'
  17458. '-mmul=g14'
  17459. '-mmul=rl78'
  17460. Specifies the type of hardware multiplication and division support
  17461. to be used. The simplest is 'none', which uses software for both
  17462. multiplication and division. This is the default. The 'g13' value
  17463. is for the hardware multiply/divide peripheral found on the
  17464. RL78/G13 (S2 core) targets. The 'g14' value selects the use of the
  17465. multiplication and division instructions supported by the RL78/G14
  17466. (S3 core) parts. The value 'rl78' is an alias for 'g14' and the
  17467. value 'mg10' is an alias for 'none'.
  17468. In addition a C preprocessor macro is defined, based upon the
  17469. setting of this option. Possible values are: '__RL78_MUL_NONE__',
  17470. '__RL78_MUL_G13__' or '__RL78_MUL_G14__'.
  17471. '-mcpu=g10'
  17472. '-mcpu=g13'
  17473. '-mcpu=g14'
  17474. '-mcpu=rl78'
  17475. Specifies the RL78 core to target. The default is the G14 core,
  17476. also known as an S3 core or just RL78. The G13 or S2 core does not
  17477. have multiply or divide instructions, instead it uses a hardware
  17478. peripheral for these operations. The G10 or S1 core does not have
  17479. register banks, so it uses a different calling convention.
  17480. If this option is set it also selects the type of hardware multiply
  17481. support to use, unless this is overridden by an explicit
  17482. '-mmul=none' option on the command line. Thus specifying
  17483. '-mcpu=g13' enables the use of the G13 hardware multiply peripheral
  17484. and specifying '-mcpu=g10' disables the use of hardware
  17485. multiplications altogether.
  17486. Note, although the RL78/G14 core is the default target, specifying
  17487. '-mcpu=g14' or '-mcpu=rl78' on the command line does change the
  17488. behavior of the toolchain since it also enables G14 hardware
  17489. multiply support. If these options are not specified on the
  17490. command line then software multiplication routines will be used
  17491. even though the code targets the RL78 core. This is for backwards
  17492. compatibility with older toolchains which did not have hardware
  17493. multiply and divide support.
  17494. In addition a C preprocessor macro is defined, based upon the
  17495. setting of this option. Possible values are: '__RL78_G10__',
  17496. '__RL78_G13__' or '__RL78_G14__'.
  17497. '-mg10'
  17498. '-mg13'
  17499. '-mg14'
  17500. '-mrl78'
  17501. These are aliases for the corresponding '-mcpu=' option. They are
  17502. provided for backwards compatibility.
  17503. '-mallregs'
  17504. Allow the compiler to use all of the available registers. By
  17505. default registers 'r24..r31' are reserved for use in interrupt
  17506. handlers. With this option enabled these registers can be used in
  17507. ordinary functions as well.
  17508. '-m64bit-doubles'
  17509. '-m32bit-doubles'
  17510. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  17511. bits ('-m32bit-doubles') in size. The default is
  17512. '-m32bit-doubles'.
  17513. '-msave-mduc-in-interrupts'
  17514. '-mno-save-mduc-in-interrupts'
  17515. Specifies that interrupt handler functions should preserve the MDUC
  17516. registers. This is only necessary if normal code might use the
  17517. MDUC registers, for example because it performs multiplication and
  17518. division operations. The default is to ignore the MDUC registers
  17519. as this makes the interrupt handlers faster. The target option
  17520. -mg13 needs to be passed for this to work as this feature is only
  17521. available on the G13 target (S2 core). The MDUC registers will
  17522. only be saved if the interrupt handler performs a multiplication or
  17523. division operation or it calls another function.
  17524. 
  17525. File: gcc.info, Node: RS/6000 and PowerPC Options, Next: RX Options, Prev: RL78 Options, Up: Submodel Options
  17526. 3.18.40 IBM RS/6000 and PowerPC Options
  17527. ---------------------------------------
  17528. These '-m' options are defined for the IBM RS/6000 and PowerPC:
  17529. '-mpowerpc-gpopt'
  17530. '-mno-powerpc-gpopt'
  17531. '-mpowerpc-gfxopt'
  17532. '-mno-powerpc-gfxopt'
  17533. '-mpowerpc64'
  17534. '-mno-powerpc64'
  17535. '-mmfcrf'
  17536. '-mno-mfcrf'
  17537. '-mpopcntb'
  17538. '-mno-popcntb'
  17539. '-mpopcntd'
  17540. '-mno-popcntd'
  17541. '-mfprnd'
  17542. '-mno-fprnd'
  17543. '-mcmpb'
  17544. '-mno-cmpb'
  17545. '-mmfpgpr'
  17546. '-mno-mfpgpr'
  17547. '-mhard-dfp'
  17548. '-mno-hard-dfp'
  17549. You use these options to specify which instructions are available
  17550. on the processor you are using. The default value of these options
  17551. is determined when configuring GCC. Specifying the
  17552. '-mcpu=CPU_TYPE' overrides the specification of these options. We
  17553. recommend you use the '-mcpu=CPU_TYPE' option rather than the
  17554. options listed above.
  17555. Specifying '-mpowerpc-gpopt' allows GCC to use the optional PowerPC
  17556. architecture instructions in the General Purpose group, including
  17557. floating-point square root. Specifying '-mpowerpc-gfxopt' allows
  17558. GCC to use the optional PowerPC architecture instructions in the
  17559. Graphics group, including floating-point select.
  17560. The '-mmfcrf' option allows GCC to generate the move from condition
  17561. register field instruction implemented on the POWER4 processor and
  17562. other processors that support the PowerPC V2.01 architecture. The
  17563. '-mpopcntb' option allows GCC to generate the popcount and
  17564. double-precision FP reciprocal estimate instruction implemented on
  17565. the POWER5 processor and other processors that support the PowerPC
  17566. V2.02 architecture. The '-mpopcntd' option allows GCC to generate
  17567. the popcount instruction implemented on the POWER7 processor and
  17568. other processors that support the PowerPC V2.06 architecture. The
  17569. '-mfprnd' option allows GCC to generate the FP round to integer
  17570. instructions implemented on the POWER5+ processor and other
  17571. processors that support the PowerPC V2.03 architecture. The
  17572. '-mcmpb' option allows GCC to generate the compare bytes
  17573. instruction implemented on the POWER6 processor and other
  17574. processors that support the PowerPC V2.05 architecture. The
  17575. '-mmfpgpr' option allows GCC to generate the FP move to/from
  17576. general-purpose register instructions implemented on the POWER6X
  17577. processor and other processors that support the extended PowerPC
  17578. V2.05 architecture. The '-mhard-dfp' option allows GCC to generate
  17579. the decimal floating-point instructions implemented on some POWER
  17580. processors.
  17581. The '-mpowerpc64' option allows GCC to generate the additional
  17582. 64-bit instructions that are found in the full PowerPC64
  17583. architecture and to treat GPRs as 64-bit, doubleword quantities.
  17584. GCC defaults to '-mno-powerpc64'.
  17585. '-mcpu=CPU_TYPE'
  17586. Set architecture type, register usage, and instruction scheduling
  17587. parameters for machine type CPU_TYPE. Supported values for
  17588. CPU_TYPE are '401', '403', '405', '405fp', '440', '440fp', '464',
  17589. '464fp', '476', '476fp', '505', '601', '602', '603', '603e', '604',
  17590. '604e', '620', '630', '740', '7400', '7450', '750', '801', '821',
  17591. '823', '860', '970', '8540', 'a2', 'e300c2', 'e300c3', 'e500mc',
  17592. 'e500mc64', 'e5500', 'e6500', 'ec603e', 'G3', 'G4', 'G5', 'titan',
  17593. 'power3', 'power4', 'power5', 'power5+', 'power6', 'power6x',
  17594. 'power7', 'power8', 'power9', 'powerpc', 'powerpc64',
  17595. 'powerpc64le', 'rs64', and 'native'.
  17596. '-mcpu=powerpc', '-mcpu=powerpc64', and '-mcpu=powerpc64le' specify
  17597. pure 32-bit PowerPC (either endian), 64-bit big endian PowerPC and
  17598. 64-bit little endian PowerPC architecture machine types, with an
  17599. appropriate, generic processor model assumed for scheduling
  17600. purposes.
  17601. Specifying 'native' as cpu type detects and selects the
  17602. architecture option that corresponds to the host processor of the
  17603. system performing the compilation. '-mcpu=native' has no effect if
  17604. GCC does not recognize the processor.
  17605. The other options specify a specific processor. Code generated
  17606. under those options runs best on that processor, and may not run at
  17607. all on others.
  17608. The '-mcpu' options automatically enable or disable the following
  17609. options:
  17610. -maltivec -mfprnd -mhard-float -mmfcrf -mmultiple
  17611. -mpopcntb -mpopcntd -mpowerpc64
  17612. -mpowerpc-gpopt -mpowerpc-gfxopt -msingle-float -mdouble-float
  17613. -msimple-fpu -mmulhw -mdlmzb -mmfpgpr -mvsx
  17614. -mcrypto -mhtm -mpower8-fusion -mpower8-vector
  17615. -mquad-memory -mquad-memory-atomic -mfloat128 -mfloat128-hardware
  17616. The particular options set for any particular CPU varies between
  17617. compiler versions, depending on what setting seems to produce
  17618. optimal code for that CPU; it doesn't necessarily reflect the
  17619. actual hardware's capabilities. If you wish to set an individual
  17620. option to a particular value, you may specify it after the '-mcpu'
  17621. option, like '-mcpu=970 -mno-altivec'.
  17622. On AIX, the '-maltivec' and '-mpowerpc64' options are not enabled
  17623. or disabled by the '-mcpu' option at present because AIX does not
  17624. have full support for these options. You may still enable or
  17625. disable them individually if you're sure it'll work in your
  17626. environment.
  17627. '-mtune=CPU_TYPE'
  17628. Set the instruction scheduling parameters for machine type
  17629. CPU_TYPE, but do not set the architecture type or register usage,
  17630. as '-mcpu=CPU_TYPE' does. The same values for CPU_TYPE are used
  17631. for '-mtune' as for '-mcpu'. If both are specified, the code
  17632. generated uses the architecture and registers set by '-mcpu', but
  17633. the scheduling parameters set by '-mtune'.
  17634. '-mcmodel=small'
  17635. Generate PowerPC64 code for the small model: The TOC is limited to
  17636. 64k.
  17637. '-mcmodel=medium'
  17638. Generate PowerPC64 code for the medium model: The TOC and other
  17639. static data may be up to a total of 4G in size. This is the
  17640. default for 64-bit Linux.
  17641. '-mcmodel=large'
  17642. Generate PowerPC64 code for the large model: The TOC may be up to
  17643. 4G in size. Other data and code is only limited by the 64-bit
  17644. address space.
  17645. '-maltivec'
  17646. '-mno-altivec'
  17647. Generate code that uses (does not use) AltiVec instructions, and
  17648. also enable the use of built-in functions that allow more direct
  17649. access to the AltiVec instruction set. You may also need to set
  17650. '-mabi=altivec' to adjust the current ABI with AltiVec ABI
  17651. enhancements.
  17652. When '-maltivec' is used, rather than '-maltivec=le' or
  17653. '-maltivec=be', the element order for AltiVec intrinsics such as
  17654. 'vec_splat', 'vec_extract', and 'vec_insert' match array element
  17655. order corresponding to the endianness of the target. That is,
  17656. element zero identifies the leftmost element in a vector register
  17657. when targeting a big-endian platform, and identifies the rightmost
  17658. element in a vector register when targeting a little-endian
  17659. platform.
  17660. '-maltivec=be'
  17661. Generate AltiVec instructions using big-endian element order,
  17662. regardless of whether the target is big- or little-endian. This is
  17663. the default when targeting a big-endian platform. Using this
  17664. option is currently deprecated. Support for this feature will be
  17665. removed in GCC 9.
  17666. The element order is used to interpret element numbers in AltiVec
  17667. intrinsics such as 'vec_splat', 'vec_extract', and 'vec_insert'.
  17668. By default, these match array element order corresponding to the
  17669. endianness for the target.
  17670. '-maltivec=le'
  17671. Generate AltiVec instructions using little-endian element order,
  17672. regardless of whether the target is big- or little-endian. This is
  17673. the default when targeting a little-endian platform. This option
  17674. is currently ignored when targeting a big-endian platform.
  17675. The element order is used to interpret element numbers in AltiVec
  17676. intrinsics such as 'vec_splat', 'vec_extract', and 'vec_insert'.
  17677. By default, these match array element order corresponding to the
  17678. endianness for the target.
  17679. '-mvrsave'
  17680. '-mno-vrsave'
  17681. Generate VRSAVE instructions when generating AltiVec code.
  17682. '-msecure-plt'
  17683. Generate code that allows 'ld' and 'ld.so' to build executables and
  17684. shared libraries with non-executable '.plt' and '.got' sections.
  17685. This is a PowerPC 32-bit SYSV ABI option.
  17686. '-mbss-plt'
  17687. Generate code that uses a BSS '.plt' section that 'ld.so' fills in,
  17688. and requires '.plt' and '.got' sections that are both writable and
  17689. executable. This is a PowerPC 32-bit SYSV ABI option.
  17690. '-misel'
  17691. '-mno-isel'
  17692. This switch enables or disables the generation of ISEL
  17693. instructions.
  17694. '-misel=YES/NO'
  17695. This switch has been deprecated. Use '-misel' and '-mno-isel'
  17696. instead.
  17697. '-mpaired'
  17698. '-mno-paired'
  17699. This switch enables or disables the generation of PAIRED simd
  17700. instructions.
  17701. '-mvsx'
  17702. '-mno-vsx'
  17703. Generate code that uses (does not use) vector/scalar (VSX)
  17704. instructions, and also enable the use of built-in functions that
  17705. allow more direct access to the VSX instruction set.
  17706. '-mcrypto'
  17707. '-mno-crypto'
  17708. Enable the use (disable) of the built-in functions that allow
  17709. direct access to the cryptographic instructions that were added in
  17710. version 2.07 of the PowerPC ISA.
  17711. '-mhtm'
  17712. '-mno-htm'
  17713. Enable (disable) the use of the built-in functions that allow
  17714. direct access to the Hardware Transactional Memory (HTM)
  17715. instructions that were added in version 2.07 of the PowerPC ISA.
  17716. '-mpower8-fusion'
  17717. '-mno-power8-fusion'
  17718. Generate code that keeps (does not keeps) some integer operations
  17719. adjacent so that the instructions can be fused together on power8
  17720. and later processors.
  17721. '-mpower8-vector'
  17722. '-mno-power8-vector'
  17723. Generate code that uses (does not use) the vector and scalar
  17724. instructions that were added in version 2.07 of the PowerPC ISA.
  17725. Also enable the use of built-in functions that allow more direct
  17726. access to the vector instructions.
  17727. '-mquad-memory'
  17728. '-mno-quad-memory'
  17729. Generate code that uses (does not use) the non-atomic quad word
  17730. memory instructions. The '-mquad-memory' option requires use of
  17731. 64-bit mode.
  17732. '-mquad-memory-atomic'
  17733. '-mno-quad-memory-atomic'
  17734. Generate code that uses (does not use) the atomic quad word memory
  17735. instructions. The '-mquad-memory-atomic' option requires use of
  17736. 64-bit mode.
  17737. '-mfloat128'
  17738. '-mno-float128'
  17739. Enable/disable the __FLOAT128 keyword for IEEE 128-bit floating
  17740. point and use either software emulation for IEEE 128-bit floating
  17741. point or hardware instructions.
  17742. The VSX instruction set ('-mvsx', '-mcpu=power7', '-mcpu=power8'),
  17743. or '-mcpu=power9' must be enabled to use the IEEE 128-bit floating
  17744. point support. The IEEE 128-bit floating point support only works
  17745. on PowerPC Linux systems.
  17746. The default for '-mfloat128' is enabled on PowerPC Linux systems
  17747. using the VSX instruction set, and disabled on other systems.
  17748. If you use the ISA 3.0 instruction set ('-mpower9-vector' or
  17749. '-mcpu=power9') on a 64-bit system, the IEEE 128-bit floating point
  17750. support will also enable the generation of ISA 3.0 IEEE 128-bit
  17751. floating point instructions. Otherwise, if you do not specify to
  17752. generate ISA 3.0 instructions or you are targeting a 32-bit big
  17753. endian system, IEEE 128-bit floating point will be done with
  17754. software emulation.
  17755. '-mfloat128-hardware'
  17756. '-mno-float128-hardware'
  17757. Enable/disable using ISA 3.0 hardware instructions to support the
  17758. __FLOAT128 data type.
  17759. The default for '-mfloat128-hardware' is enabled on PowerPC Linux
  17760. systems using the ISA 3.0 instruction set, and disabled on other
  17761. systems.
  17762. '-m32'
  17763. '-m64'
  17764. Generate code for 32-bit or 64-bit environments of Darwin and SVR4
  17765. targets (including GNU/Linux). The 32-bit environment sets int,
  17766. long and pointer to 32 bits and generates code that runs on any
  17767. PowerPC variant. The 64-bit environment sets int to 32 bits and
  17768. long and pointer to 64 bits, and generates code for PowerPC64, as
  17769. for '-mpowerpc64'.
  17770. '-mfull-toc'
  17771. '-mno-fp-in-toc'
  17772. '-mno-sum-in-toc'
  17773. '-mminimal-toc'
  17774. Modify generation of the TOC (Table Of Contents), which is created
  17775. for every executable file. The '-mfull-toc' option is selected by
  17776. default. In that case, GCC allocates at least one TOC entry for
  17777. each unique non-automatic variable reference in your program. GCC
  17778. also places floating-point constants in the TOC. However, only
  17779. 16,384 entries are available in the TOC.
  17780. If you receive a linker error message that saying you have
  17781. overflowed the available TOC space, you can reduce the amount of
  17782. TOC space used with the '-mno-fp-in-toc' and '-mno-sum-in-toc'
  17783. options. '-mno-fp-in-toc' prevents GCC from putting floating-point
  17784. constants in the TOC and '-mno-sum-in-toc' forces GCC to generate
  17785. code to calculate the sum of an address and a constant at run time
  17786. instead of putting that sum into the TOC. You may specify one or
  17787. both of these options. Each causes GCC to produce very slightly
  17788. slower and larger code at the expense of conserving TOC space.
  17789. If you still run out of space in the TOC even when you specify both
  17790. of these options, specify '-mminimal-toc' instead. This option
  17791. causes GCC to make only one TOC entry for every file. When you
  17792. specify this option, GCC produces code that is slower and larger
  17793. but which uses extremely little TOC space. You may wish to use
  17794. this option only on files that contain less frequently-executed
  17795. code.
  17796. '-maix64'
  17797. '-maix32'
  17798. Enable 64-bit AIX ABI and calling convention: 64-bit pointers,
  17799. 64-bit 'long' type, and the infrastructure needed to support them.
  17800. Specifying '-maix64' implies '-mpowerpc64', while '-maix32'
  17801. disables the 64-bit ABI and implies '-mno-powerpc64'. GCC defaults
  17802. to '-maix32'.
  17803. '-mxl-compat'
  17804. '-mno-xl-compat'
  17805. Produce code that conforms more closely to IBM XL compiler
  17806. semantics when using AIX-compatible ABI. Pass floating-point
  17807. arguments to prototyped functions beyond the register save area
  17808. (RSA) on the stack in addition to argument FPRs. Do not assume
  17809. that most significant double in 128-bit long double value is
  17810. properly rounded when comparing values and converting to double.
  17811. Use XL symbol names for long double support routines.
  17812. The AIX calling convention was extended but not initially
  17813. documented to handle an obscure K&R C case of calling a function
  17814. that takes the address of its arguments with fewer arguments than
  17815. declared. IBM XL compilers access floating-point arguments that do
  17816. not fit in the RSA from the stack when a subroutine is compiled
  17817. without optimization. Because always storing floating-point
  17818. arguments on the stack is inefficient and rarely needed, this
  17819. option is not enabled by default and only is necessary when calling
  17820. subroutines compiled by IBM XL compilers without optimization.
  17821. '-mpe'
  17822. Support "IBM RS/6000 SP" "Parallel Environment" (PE). Link an
  17823. application written to use message passing with special startup
  17824. code to enable the application to run. The system must have PE
  17825. installed in the standard location ('/usr/lpp/ppe.poe/'), or the
  17826. 'specs' file must be overridden with the '-specs=' option to
  17827. specify the appropriate directory location. The Parallel
  17828. Environment does not support threads, so the '-mpe' option and the
  17829. '-pthread' option are incompatible.
  17830. '-malign-natural'
  17831. '-malign-power'
  17832. On AIX, 32-bit Darwin, and 64-bit PowerPC GNU/Linux, the option
  17833. '-malign-natural' overrides the ABI-defined alignment of larger
  17834. types, such as floating-point doubles, on their natural size-based
  17835. boundary. The option '-malign-power' instructs GCC to follow the
  17836. ABI-specified alignment rules. GCC defaults to the standard
  17837. alignment defined in the ABI.
  17838. On 64-bit Darwin, natural alignment is the default, and
  17839. '-malign-power' is not supported.
  17840. '-msoft-float'
  17841. '-mhard-float'
  17842. Generate code that does not use (uses) the floating-point register
  17843. set. Software floating-point emulation is provided if you use the
  17844. '-msoft-float' option, and pass the option to GCC when linking.
  17845. '-msingle-float'
  17846. '-mdouble-float'
  17847. Generate code for single- or double-precision floating-point
  17848. operations. '-mdouble-float' implies '-msingle-float'.
  17849. '-msimple-fpu'
  17850. Do not generate 'sqrt' and 'div' instructions for hardware
  17851. floating-point unit.
  17852. '-mfpu=NAME'
  17853. Specify type of floating-point unit. Valid values for NAME are
  17854. 'sp_lite' (equivalent to '-msingle-float -msimple-fpu'), 'dp_lite'
  17855. (equivalent to '-mdouble-float -msimple-fpu'), 'sp_full'
  17856. (equivalent to '-msingle-float'), and 'dp_full' (equivalent to
  17857. '-mdouble-float').
  17858. '-mxilinx-fpu'
  17859. Perform optimizations for the floating-point unit on Xilinx PPC
  17860. 405/440.
  17861. '-mmultiple'
  17862. '-mno-multiple'
  17863. Generate code that uses (does not use) the load multiple word
  17864. instructions and the store multiple word instructions. These
  17865. instructions are generated by default on POWER systems, and not
  17866. generated on PowerPC systems. Do not use '-mmultiple' on
  17867. little-endian PowerPC systems, since those instructions do not work
  17868. when the processor is in little-endian mode. The exceptions are
  17869. PPC740 and PPC750 which permit these instructions in little-endian
  17870. mode.
  17871. '-mupdate'
  17872. '-mno-update'
  17873. Generate code that uses (does not use) the load or store
  17874. instructions that update the base register to the address of the
  17875. calculated memory location. These instructions are generated by
  17876. default. If you use '-mno-update', there is a small window between
  17877. the time that the stack pointer is updated and the address of the
  17878. previous frame is stored, which means code that walks the stack
  17879. frame across interrupts or signals may get corrupted data.
  17880. '-mavoid-indexed-addresses'
  17881. '-mno-avoid-indexed-addresses'
  17882. Generate code that tries to avoid (not avoid) the use of indexed
  17883. load or store instructions. These instructions can incur a
  17884. performance penalty on Power6 processors in certain situations,
  17885. such as when stepping through large arrays that cross a 16M
  17886. boundary. This option is enabled by default when targeting Power6
  17887. and disabled otherwise.
  17888. '-mfused-madd'
  17889. '-mno-fused-madd'
  17890. Generate code that uses (does not use) the floating-point multiply
  17891. and accumulate instructions. These instructions are generated by
  17892. default if hardware floating point is used. The machine-dependent
  17893. '-mfused-madd' option is now mapped to the machine-independent
  17894. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  17895. '-ffp-contract=off'.
  17896. '-mmulhw'
  17897. '-mno-mulhw'
  17898. Generate code that uses (does not use) the half-word multiply and
  17899. multiply-accumulate instructions on the IBM 405, 440, 464 and 476
  17900. processors. These instructions are generated by default when
  17901. targeting those processors.
  17902. '-mdlmzb'
  17903. '-mno-dlmzb'
  17904. Generate code that uses (does not use) the string-search 'dlmzb'
  17905. instruction on the IBM 405, 440, 464 and 476 processors. This
  17906. instruction is generated by default when targeting those
  17907. processors.
  17908. '-mno-bit-align'
  17909. '-mbit-align'
  17910. On System V.4 and embedded PowerPC systems do not (do) force
  17911. structures and unions that contain bit-fields to be aligned to the
  17912. base type of the bit-field.
  17913. For example, by default a structure containing nothing but 8
  17914. 'unsigned' bit-fields of length 1 is aligned to a 4-byte boundary
  17915. and has a size of 4 bytes. By using '-mno-bit-align', the
  17916. structure is aligned to a 1-byte boundary and is 1 byte in size.
  17917. '-mno-strict-align'
  17918. '-mstrict-align'
  17919. On System V.4 and embedded PowerPC systems do not (do) assume that
  17920. unaligned memory references are handled by the system.
  17921. '-mrelocatable'
  17922. '-mno-relocatable'
  17923. Generate code that allows (does not allow) a static executable to
  17924. be relocated to a different address at run time. A simple embedded
  17925. PowerPC system loader should relocate the entire contents of
  17926. '.got2' and 4-byte locations listed in the '.fixup' section, a
  17927. table of 32-bit addresses generated by this option. For this to
  17928. work, all objects linked together must be compiled with
  17929. '-mrelocatable' or '-mrelocatable-lib'. '-mrelocatable' code
  17930. aligns the stack to an 8-byte boundary.
  17931. '-mrelocatable-lib'
  17932. '-mno-relocatable-lib'
  17933. Like '-mrelocatable', '-mrelocatable-lib' generates a '.fixup'
  17934. section to allow static executables to be relocated at run time,
  17935. but '-mrelocatable-lib' does not use the smaller stack alignment of
  17936. '-mrelocatable'. Objects compiled with '-mrelocatable-lib' may be
  17937. linked with objects compiled with any combination of the
  17938. '-mrelocatable' options.
  17939. '-mno-toc'
  17940. '-mtoc'
  17941. On System V.4 and embedded PowerPC systems do not (do) assume that
  17942. register 2 contains a pointer to a global area pointing to the
  17943. addresses used in the program.
  17944. '-mlittle'
  17945. '-mlittle-endian'
  17946. On System V.4 and embedded PowerPC systems compile code for the
  17947. processor in little-endian mode. The '-mlittle-endian' option is
  17948. the same as '-mlittle'.
  17949. '-mbig'
  17950. '-mbig-endian'
  17951. On System V.4 and embedded PowerPC systems compile code for the
  17952. processor in big-endian mode. The '-mbig-endian' option is the
  17953. same as '-mbig'.
  17954. '-mdynamic-no-pic'
  17955. On Darwin and Mac OS X systems, compile code so that it is not
  17956. relocatable, but that its external references are relocatable. The
  17957. resulting code is suitable for applications, but not shared
  17958. libraries.
  17959. '-msingle-pic-base'
  17960. Treat the register used for PIC addressing as read-only, rather
  17961. than loading it in the prologue for each function. The runtime
  17962. system is responsible for initializing this register with an
  17963. appropriate value before execution begins.
  17964. '-mprioritize-restricted-insns=PRIORITY'
  17965. This option controls the priority that is assigned to dispatch-slot
  17966. restricted instructions during the second scheduling pass. The
  17967. argument PRIORITY takes the value '0', '1', or '2' to assign no,
  17968. highest, or second-highest (respectively) priority to dispatch-slot
  17969. restricted instructions.
  17970. '-msched-costly-dep=DEPENDENCE_TYPE'
  17971. This option controls which dependences are considered costly by the
  17972. target during instruction scheduling. The argument DEPENDENCE_TYPE
  17973. takes one of the following values:
  17974. 'no'
  17975. No dependence is costly.
  17976. 'all'
  17977. All dependences are costly.
  17978. 'true_store_to_load'
  17979. A true dependence from store to load is costly.
  17980. 'store_to_load'
  17981. Any dependence from store to load is costly.
  17982. NUMBER
  17983. Any dependence for which the latency is greater than or equal
  17984. to NUMBER is costly.
  17985. '-minsert-sched-nops=SCHEME'
  17986. This option controls which NOP insertion scheme is used during the
  17987. second scheduling pass. The argument SCHEME takes one of the
  17988. following values:
  17989. 'no'
  17990. Don't insert NOPs.
  17991. 'pad'
  17992. Pad with NOPs any dispatch group that has vacant issue slots,
  17993. according to the scheduler's grouping.
  17994. 'regroup_exact'
  17995. Insert NOPs to force costly dependent insns into separate
  17996. groups. Insert exactly as many NOPs as needed to force an
  17997. insn to a new group, according to the estimated processor
  17998. grouping.
  17999. NUMBER
  18000. Insert NOPs to force costly dependent insns into separate
  18001. groups. Insert NUMBER NOPs to force an insn to a new group.
  18002. '-mcall-sysv'
  18003. On System V.4 and embedded PowerPC systems compile code using
  18004. calling conventions that adhere to the March 1995 draft of the
  18005. System V Application Binary Interface, PowerPC processor
  18006. supplement. This is the default unless you configured GCC using
  18007. 'powerpc-*-eabiaix'.
  18008. '-mcall-sysv-eabi'
  18009. '-mcall-eabi'
  18010. Specify both '-mcall-sysv' and '-meabi' options.
  18011. '-mcall-sysv-noeabi'
  18012. Specify both '-mcall-sysv' and '-mno-eabi' options.
  18013. '-mcall-aixdesc'
  18014. On System V.4 and embedded PowerPC systems compile code for the AIX
  18015. operating system.
  18016. '-mcall-linux'
  18017. On System V.4 and embedded PowerPC systems compile code for the
  18018. Linux-based GNU system.
  18019. '-mcall-freebsd'
  18020. On System V.4 and embedded PowerPC systems compile code for the
  18021. FreeBSD operating system.
  18022. '-mcall-netbsd'
  18023. On System V.4 and embedded PowerPC systems compile code for the
  18024. NetBSD operating system.
  18025. '-mcall-openbsd'
  18026. On System V.4 and embedded PowerPC systems compile code for the
  18027. OpenBSD operating system.
  18028. '-mtraceback=TRACEBACK_TYPE'
  18029. Select the type of traceback table. Valid values for
  18030. TRACEBACK_TYPE are 'full', 'part', and 'no'.
  18031. '-maix-struct-return'
  18032. Return all structures in memory (as specified by the AIX ABI).
  18033. '-msvr4-struct-return'
  18034. Return structures smaller than 8 bytes in registers (as specified
  18035. by the SVR4 ABI).
  18036. '-mabi=ABI-TYPE'
  18037. Extend the current ABI with a particular extension, or remove such
  18038. extension. Valid values are 'altivec', 'no-altivec', 'spe',
  18039. 'no-spe', 'ibmlongdouble', 'ieeelongdouble', 'elfv1', 'elfv2'.
  18040. '-mabi=ibmlongdouble'
  18041. Change the current ABI to use IBM extended-precision long double.
  18042. This is not likely to work if your system defaults to using IEEE
  18043. extended-precision long double. If you change the long double type
  18044. from IEEE extended-precision, the compiler will issue a warning
  18045. unless you use the '-Wno-psabi' option. Requires
  18046. '-mlong-double-128' to be enabled.
  18047. '-mabi=ieeelongdouble'
  18048. Change the current ABI to use IEEE extended-precision long double.
  18049. This is not likely to work if your system defaults to using IBM
  18050. extended-precision long double. If you change the long double type
  18051. from IBM extended-precision, the compiler will issue a warning
  18052. unless you use the '-Wno-psabi' option. Requires
  18053. '-mlong-double-128' to be enabled.
  18054. '-mabi=elfv1'
  18055. Change the current ABI to use the ELFv1 ABI. This is the default
  18056. ABI for big-endian PowerPC 64-bit Linux. Overriding the default
  18057. ABI requires special system support and is likely to fail in
  18058. spectacular ways.
  18059. '-mabi=elfv2'
  18060. Change the current ABI to use the ELFv2 ABI. This is the default
  18061. ABI for little-endian PowerPC 64-bit Linux. Overriding the default
  18062. ABI requires special system support and is likely to fail in
  18063. spectacular ways.
  18064. '-mgnu-attribute'
  18065. '-mno-gnu-attribute'
  18066. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  18067. .gnu.attributes section that specify ABI variations in function
  18068. parameters or return values.
  18069. '-mprototype'
  18070. '-mno-prototype'
  18071. On System V.4 and embedded PowerPC systems assume that all calls to
  18072. variable argument functions are properly prototyped. Otherwise,
  18073. the compiler must insert an instruction before every non-prototyped
  18074. call to set or clear bit 6 of the condition code register ('CR') to
  18075. indicate whether floating-point values are passed in the
  18076. floating-point registers in case the function takes variable
  18077. arguments. With '-mprototype', only calls to prototyped variable
  18078. argument functions set or clear the bit.
  18079. '-msim'
  18080. On embedded PowerPC systems, assume that the startup module is
  18081. called 'sim-crt0.o' and that the standard C libraries are
  18082. 'libsim.a' and 'libc.a'. This is the default for
  18083. 'powerpc-*-eabisim' configurations.
  18084. '-mmvme'
  18085. On embedded PowerPC systems, assume that the startup module is
  18086. called 'crt0.o' and the standard C libraries are 'libmvme.a' and
  18087. 'libc.a'.
  18088. '-mads'
  18089. On embedded PowerPC systems, assume that the startup module is
  18090. called 'crt0.o' and the standard C libraries are 'libads.a' and
  18091. 'libc.a'.
  18092. '-myellowknife'
  18093. On embedded PowerPC systems, assume that the startup module is
  18094. called 'crt0.o' and the standard C libraries are 'libyk.a' and
  18095. 'libc.a'.
  18096. '-mvxworks'
  18097. On System V.4 and embedded PowerPC systems, specify that you are
  18098. compiling for a VxWorks system.
  18099. '-memb'
  18100. On embedded PowerPC systems, set the 'PPC_EMB' bit in the ELF flags
  18101. header to indicate that 'eabi' extended relocations are used.
  18102. '-meabi'
  18103. '-mno-eabi'
  18104. On System V.4 and embedded PowerPC systems do (do not) adhere to
  18105. the Embedded Applications Binary Interface (EABI), which is a set
  18106. of modifications to the System V.4 specifications. Selecting
  18107. '-meabi' means that the stack is aligned to an 8-byte boundary, a
  18108. function '__eabi' is called from 'main' to set up the EABI
  18109. environment, and the '-msdata' option can use both 'r2' and 'r13'
  18110. to point to two separate small data areas. Selecting '-mno-eabi'
  18111. means that the stack is aligned to a 16-byte boundary, no EABI
  18112. initialization function is called from 'main', and the '-msdata'
  18113. option only uses 'r13' to point to a single small data area. The
  18114. '-meabi' option is on by default if you configured GCC using one of
  18115. the 'powerpc*-*-eabi*' options.
  18116. '-msdata=eabi'
  18117. On System V.4 and embedded PowerPC systems, put small initialized
  18118. 'const' global and static data in the '.sdata2' section, which is
  18119. pointed to by register 'r2'. Put small initialized non-'const'
  18120. global and static data in the '.sdata' section, which is pointed to
  18121. by register 'r13'. Put small uninitialized global and static data
  18122. in the '.sbss' section, which is adjacent to the '.sdata' section.
  18123. The '-msdata=eabi' option is incompatible with the '-mrelocatable'
  18124. option. The '-msdata=eabi' option also sets the '-memb' option.
  18125. '-msdata=sysv'
  18126. On System V.4 and embedded PowerPC systems, put small global and
  18127. static data in the '.sdata' section, which is pointed to by
  18128. register 'r13'. Put small uninitialized global and static data in
  18129. the '.sbss' section, which is adjacent to the '.sdata' section.
  18130. The '-msdata=sysv' option is incompatible with the '-mrelocatable'
  18131. option.
  18132. '-msdata=default'
  18133. '-msdata'
  18134. On System V.4 and embedded PowerPC systems, if '-meabi' is used,
  18135. compile code the same as '-msdata=eabi', otherwise compile code the
  18136. same as '-msdata=sysv'.
  18137. '-msdata=data'
  18138. On System V.4 and embedded PowerPC systems, put small global data
  18139. in the '.sdata' section. Put small uninitialized global data in
  18140. the '.sbss' section. Do not use register 'r13' to address small
  18141. data however. This is the default behavior unless other '-msdata'
  18142. options are used.
  18143. '-msdata=none'
  18144. '-mno-sdata'
  18145. On embedded PowerPC systems, put all initialized global and static
  18146. data in the '.data' section, and all uninitialized data in the
  18147. '.bss' section.
  18148. '-mreadonly-in-sdata'
  18149. '-mreadonly-in-sdata'
  18150. Put read-only objects in the '.sdata' section as well. This is the
  18151. default.
  18152. '-mblock-move-inline-limit=NUM'
  18153. Inline all block moves (such as calls to 'memcpy' or structure
  18154. copies) less than or equal to NUM bytes. The minimum value for NUM
  18155. is 32 bytes on 32-bit targets and 64 bytes on 64-bit targets. The
  18156. default value is target-specific.
  18157. '-mblock-compare-inline-limit=NUM'
  18158. Generate non-looping inline code for all block compares (such as
  18159. calls to 'memcmp' or structure compares) less than or equal to NUM
  18160. bytes. If NUM is 0, all inline expansion (non-loop and loop) of
  18161. block compare is disabled. The default value is target-specific.
  18162. '-mblock-compare-inline-loop-limit=NUM'
  18163. Generate an inline expansion using loop code for all block compares
  18164. that are less than or equal to NUM bytes, but greater than the
  18165. limit for non-loop inline block compare expansion. If the block
  18166. length is not constant, at most NUM bytes will be compared before
  18167. 'memcmp' is called to compare the remainder of the block. The
  18168. default value is target-specific.
  18169. '-mstring-compare-inline-limit=NUM'
  18170. Generate at most NUM pairs of load instructions to compare the
  18171. string inline. If the difference or end of string is not found at
  18172. the end of the inline compare a call to 'strcmp' or 'strncmp' will
  18173. take care of the rest of the comparison. The default is 8 pairs of
  18174. loads, which will compare 64 bytes on a 64-bit target and 32 bytes
  18175. on a 32-bit target.
  18176. '-G NUM'
  18177. On embedded PowerPC systems, put global and static items less than
  18178. or equal to NUM bytes into the small data or BSS sections instead
  18179. of the normal data or BSS section. By default, NUM is 8. The '-G
  18180. NUM' switch is also passed to the linker. All modules should be
  18181. compiled with the same '-G NUM' value.
  18182. '-mregnames'
  18183. '-mno-regnames'
  18184. On System V.4 and embedded PowerPC systems do (do not) emit
  18185. register names in the assembly language output using symbolic
  18186. forms.
  18187. '-mlongcall'
  18188. '-mno-longcall'
  18189. By default assume that all calls are far away so that a longer and
  18190. more expensive calling sequence is required. This is required for
  18191. calls farther than 32 megabytes (33,554,432 bytes) from the current
  18192. location. A short call is generated if the compiler knows the call
  18193. cannot be that far away. This setting can be overridden by the
  18194. 'shortcall' function attribute, or by '#pragma longcall(0)'.
  18195. Some linkers are capable of detecting out-of-range calls and
  18196. generating glue code on the fly. On these systems, long calls are
  18197. unnecessary and generate slower code. As of this writing, the AIX
  18198. linker can do this, as can the GNU linker for PowerPC/64. It is
  18199. planned to add this feature to the GNU linker for 32-bit PowerPC
  18200. systems as well.
  18201. On Darwin/PPC systems, '#pragma longcall' generates 'jbsr callee,
  18202. L42', plus a "branch island" (glue code). The two target addresses
  18203. represent the callee and the branch island. The Darwin/PPC linker
  18204. prefers the first address and generates a 'bl callee' if the PPC
  18205. 'bl' instruction reaches the callee directly; otherwise, the linker
  18206. generates 'bl L42' to call the branch island. The branch island is
  18207. appended to the body of the calling function; it computes the full
  18208. 32-bit address of the callee and jumps to it.
  18209. On Mach-O (Darwin) systems, this option directs the compiler emit
  18210. to the glue for every direct call, and the Darwin linker decides
  18211. whether to use or discard it.
  18212. In the future, GCC may ignore all longcall specifications when the
  18213. linker is known to generate glue.
  18214. '-mtls-markers'
  18215. '-mno-tls-markers'
  18216. Mark (do not mark) calls to '__tls_get_addr' with a relocation
  18217. specifying the function argument. The relocation allows the linker
  18218. to reliably associate function call with argument setup
  18219. instructions for TLS optimization, which in turn allows GCC to
  18220. better schedule the sequence.
  18221. '-mrecip'
  18222. '-mno-recip'
  18223. This option enables use of the reciprocal estimate and reciprocal
  18224. square root estimate instructions with additional Newton-Raphson
  18225. steps to increase precision instead of doing a divide or square
  18226. root and divide for floating-point arguments. You should use the
  18227. '-ffast-math' option when using '-mrecip' (or at least
  18228. '-funsafe-math-optimizations', '-ffinite-math-only',
  18229. '-freciprocal-math' and '-fno-trapping-math'). Note that while the
  18230. throughput of the sequence is generally higher than the throughput
  18231. of the non-reciprocal instruction, the precision of the sequence
  18232. can be decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  18233. 0.99999994) for reciprocal square roots.
  18234. '-mrecip=OPT'
  18235. This option controls which reciprocal estimate instructions may be
  18236. used. OPT is a comma-separated list of options, which may be
  18237. preceded by a '!' to invert the option:
  18238. 'all'
  18239. Enable all estimate instructions.
  18240. 'default'
  18241. Enable the default instructions, equivalent to '-mrecip'.
  18242. 'none'
  18243. Disable all estimate instructions, equivalent to '-mno-recip'.
  18244. 'div'
  18245. Enable the reciprocal approximation instructions for both
  18246. single and double precision.
  18247. 'divf'
  18248. Enable the single-precision reciprocal approximation
  18249. instructions.
  18250. 'divd'
  18251. Enable the double-precision reciprocal approximation
  18252. instructions.
  18253. 'rsqrt'
  18254. Enable the reciprocal square root approximation instructions
  18255. for both single and double precision.
  18256. 'rsqrtf'
  18257. Enable the single-precision reciprocal square root
  18258. approximation instructions.
  18259. 'rsqrtd'
  18260. Enable the double-precision reciprocal square root
  18261. approximation instructions.
  18262. So, for example, '-mrecip=all,!rsqrtd' enables all of the
  18263. reciprocal estimate instructions, except for the 'FRSQRTE',
  18264. 'XSRSQRTEDP', and 'XVRSQRTEDP' instructions which handle the
  18265. double-precision reciprocal square root calculations.
  18266. '-mrecip-precision'
  18267. '-mno-recip-precision'
  18268. Assume (do not assume) that the reciprocal estimate instructions
  18269. provide higher-precision estimates than is mandated by the PowerPC
  18270. ABI. Selecting '-mcpu=power6', '-mcpu=power7' or '-mcpu=power8'
  18271. automatically selects '-mrecip-precision'. The double-precision
  18272. square root estimate instructions are not generated by default on
  18273. low-precision machines, since they do not provide an estimate that
  18274. converges after three steps.
  18275. '-mveclibabi=TYPE'
  18276. Specifies the ABI type to use for vectorizing intrinsics using an
  18277. external library. The only type supported at present is 'mass',
  18278. which specifies to use IBM's Mathematical Acceleration Subsystem
  18279. (MASS) libraries for vectorizing intrinsics using external
  18280. libraries. GCC currently emits calls to 'acosd2', 'acosf4',
  18281. 'acoshd2', 'acoshf4', 'asind2', 'asinf4', 'asinhd2', 'asinhf4',
  18282. 'atan2d2', 'atan2f4', 'atand2', 'atanf4', 'atanhd2', 'atanhf4',
  18283. 'cbrtd2', 'cbrtf4', 'cosd2', 'cosf4', 'coshd2', 'coshf4', 'erfcd2',
  18284. 'erfcf4', 'erfd2', 'erff4', 'exp2d2', 'exp2f4', 'expd2', 'expf4',
  18285. 'expm1d2', 'expm1f4', 'hypotd2', 'hypotf4', 'lgammad2', 'lgammaf4',
  18286. 'log10d2', 'log10f4', 'log1pd2', 'log1pf4', 'log2d2', 'log2f4',
  18287. 'logd2', 'logf4', 'powd2', 'powf4', 'sind2', 'sinf4', 'sinhd2',
  18288. 'sinhf4', 'sqrtd2', 'sqrtf4', 'tand2', 'tanf4', 'tanhd2', and
  18289. 'tanhf4' when generating code for power7. Both '-ftree-vectorize'
  18290. and '-funsafe-math-optimizations' must also be enabled. The MASS
  18291. libraries must be specified at link time.
  18292. '-mfriz'
  18293. '-mno-friz'
  18294. Generate (do not generate) the 'friz' instruction when the
  18295. '-funsafe-math-optimizations' option is used to optimize rounding
  18296. of floating-point values to 64-bit integer and back to floating
  18297. point. The 'friz' instruction does not return the same value if
  18298. the floating-point number is too large to fit in an integer.
  18299. '-mpointers-to-nested-functions'
  18300. '-mno-pointers-to-nested-functions'
  18301. Generate (do not generate) code to load up the static chain
  18302. register ('r11') when calling through a pointer on AIX and 64-bit
  18303. Linux systems where a function pointer points to a 3-word
  18304. descriptor giving the function address, TOC value to be loaded in
  18305. register 'r2', and static chain value to be loaded in register
  18306. 'r11'. The '-mpointers-to-nested-functions' is on by default. You
  18307. cannot call through pointers to nested functions or pointers to
  18308. functions compiled in other languages that use the static chain if
  18309. you use '-mno-pointers-to-nested-functions'.
  18310. '-msave-toc-indirect'
  18311. '-mno-save-toc-indirect'
  18312. Generate (do not generate) code to save the TOC value in the
  18313. reserved stack location in the function prologue if the function
  18314. calls through a pointer on AIX and 64-bit Linux systems. If the
  18315. TOC value is not saved in the prologue, it is saved just before the
  18316. call through the pointer. The '-mno-save-toc-indirect' option is
  18317. the default.
  18318. '-mcompat-align-parm'
  18319. '-mno-compat-align-parm'
  18320. Generate (do not generate) code to pass structure parameters with a
  18321. maximum alignment of 64 bits, for compatibility with older versions
  18322. of GCC.
  18323. Older versions of GCC (prior to 4.9.0) incorrectly did not align a
  18324. structure parameter on a 128-bit boundary when that structure
  18325. contained a member requiring 128-bit alignment. This is corrected
  18326. in more recent versions of GCC. This option may be used to generate
  18327. code that is compatible with functions compiled with older versions
  18328. of GCC.
  18329. The '-mno-compat-align-parm' option is the default.
  18330. '-mstack-protector-guard=GUARD'
  18331. '-mstack-protector-guard-reg=REG'
  18332. '-mstack-protector-guard-offset=OFFSET'
  18333. '-mstack-protector-guard-symbol=SYMBOL'
  18334. Generate stack protection code using canary at GUARD. Supported
  18335. locations are 'global' for global canary or 'tls' for per-thread
  18336. canary in the TLS block (the default with GNU libc version 2.4 or
  18337. later).
  18338. With the latter choice the options
  18339. '-mstack-protector-guard-reg=REG' and
  18340. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  18341. register to use as base register for reading the canary, and from
  18342. what offset from that base register. The default for those is as
  18343. specified in the relevant ABI.
  18344. '-mstack-protector-guard-symbol=SYMBOL' overrides the offset with a
  18345. symbol reference to a canary in the TLS block.
  18346. 
  18347. File: gcc.info, Node: RX Options, Next: S/390 and zSeries Options, Prev: RS/6000 and PowerPC Options, Up: Submodel Options
  18348. 3.18.41 RX Options
  18349. ------------------
  18350. These command-line options are defined for RX targets:
  18351. '-m64bit-doubles'
  18352. '-m32bit-doubles'
  18353. Make the 'double' data type be 64 bits ('-m64bit-doubles') or 32
  18354. bits ('-m32bit-doubles') in size. The default is
  18355. '-m32bit-doubles'. _Note_ RX floating-point hardware only works on
  18356. 32-bit values, which is why the default is '-m32bit-doubles'.
  18357. '-fpu'
  18358. '-nofpu'
  18359. Enables ('-fpu') or disables ('-nofpu') the use of RX
  18360. floating-point hardware. The default is enabled for the RX600
  18361. series and disabled for the RX200 series.
  18362. Floating-point instructions are only generated for 32-bit
  18363. floating-point values, however, so the FPU hardware is not used for
  18364. doubles if the '-m64bit-doubles' option is used.
  18365. _Note_ If the '-fpu' option is enabled then
  18366. '-funsafe-math-optimizations' is also enabled automatically. This
  18367. is because the RX FPU instructions are themselves unsafe.
  18368. '-mcpu=NAME'
  18369. Selects the type of RX CPU to be targeted. Currently three types
  18370. are supported, the generic 'RX600' and 'RX200' series hardware and
  18371. the specific 'RX610' CPU. The default is 'RX600'.
  18372. The only difference between 'RX600' and 'RX610' is that the 'RX610'
  18373. does not support the 'MVTIPL' instruction.
  18374. The 'RX200' series does not have a hardware floating-point unit and
  18375. so '-nofpu' is enabled by default when this type is selected.
  18376. '-mbig-endian-data'
  18377. '-mlittle-endian-data'
  18378. Store data (but not code) in the big-endian format. The default is
  18379. '-mlittle-endian-data', i.e. to store data in the little-endian
  18380. format.
  18381. '-msmall-data-limit=N'
  18382. Specifies the maximum size in bytes of global and static variables
  18383. which can be placed into the small data area. Using the small data
  18384. area can lead to smaller and faster code, but the size of area is
  18385. limited and it is up to the programmer to ensure that the area does
  18386. not overflow. Also when the small data area is used one of the
  18387. RX's registers (usually 'r13') is reserved for use pointing to this
  18388. area, so it is no longer available for use by the compiler. This
  18389. could result in slower and/or larger code if variables are pushed
  18390. onto the stack instead of being held in this register.
  18391. Note, common variables (variables that have not been initialized)
  18392. and constants are not placed into the small data area as they are
  18393. assigned to other sections in the output executable.
  18394. The default value is zero, which disables this feature. Note, this
  18395. feature is not enabled by default with higher optimization levels
  18396. ('-O2' etc) because of the potentially detrimental effects of
  18397. reserving a register. It is up to the programmer to experiment and
  18398. discover whether this feature is of benefit to their program. See
  18399. the description of the '-mpid' option for a description of how the
  18400. actual register to hold the small data area pointer is chosen.
  18401. '-msim'
  18402. '-mno-sim'
  18403. Use the simulator runtime. The default is to use the libgloss
  18404. board-specific runtime.
  18405. '-mas100-syntax'
  18406. '-mno-as100-syntax'
  18407. When generating assembler output use a syntax that is compatible
  18408. with Renesas's AS100 assembler. This syntax can also be handled by
  18409. the GAS assembler, but it has some restrictions so it is not
  18410. generated by default.
  18411. '-mmax-constant-size=N'
  18412. Specifies the maximum size, in bytes, of a constant that can be
  18413. used as an operand in a RX instruction. Although the RX
  18414. instruction set does allow constants of up to 4 bytes in length to
  18415. be used in instructions, a longer value equates to a longer
  18416. instruction. Thus in some circumstances it can be beneficial to
  18417. restrict the size of constants that are used in instructions.
  18418. Constants that are too big are instead placed into a constant pool
  18419. and referenced via register indirection.
  18420. The value N can be between 0 and 4. A value of 0 (the default) or
  18421. 4 means that constants of any size are allowed.
  18422. '-mrelax'
  18423. Enable linker relaxation. Linker relaxation is a process whereby
  18424. the linker attempts to reduce the size of a program by finding
  18425. shorter versions of various instructions. Disabled by default.
  18426. '-mint-register=N'
  18427. Specify the number of registers to reserve for fast interrupt
  18428. handler functions. The value N can be between 0 and 4. A value of
  18429. 1 means that register 'r13' is reserved for the exclusive use of
  18430. fast interrupt handlers. A value of 2 reserves 'r13' and 'r12'. A
  18431. value of 3 reserves 'r13', 'r12' and 'r11', and a value of 4
  18432. reserves 'r13' through 'r10'. A value of 0, the default, does not
  18433. reserve any registers.
  18434. '-msave-acc-in-interrupts'
  18435. Specifies that interrupt handler functions should preserve the
  18436. accumulator register. This is only necessary if normal code might
  18437. use the accumulator register, for example because it performs
  18438. 64-bit multiplications. The default is to ignore the accumulator
  18439. as this makes the interrupt handlers faster.
  18440. '-mpid'
  18441. '-mno-pid'
  18442. Enables the generation of position independent data. When enabled
  18443. any access to constant data is done via an offset from a base
  18444. address held in a register. This allows the location of constant
  18445. data to be determined at run time without requiring the executable
  18446. to be relocated, which is a benefit to embedded applications with
  18447. tight memory constraints. Data that can be modified is not
  18448. affected by this option.
  18449. Note, using this feature reserves a register, usually 'r13', for
  18450. the constant data base address. This can result in slower and/or
  18451. larger code, especially in complicated functions.
  18452. The actual register chosen to hold the constant data base address
  18453. depends upon whether the '-msmall-data-limit' and/or the
  18454. '-mint-register' command-line options are enabled. Starting with
  18455. register 'r13' and proceeding downwards, registers are allocated
  18456. first to satisfy the requirements of '-mint-register', then '-mpid'
  18457. and finally '-msmall-data-limit'. Thus it is possible for the
  18458. small data area register to be 'r8' if both '-mint-register=4' and
  18459. '-mpid' are specified on the command line.
  18460. By default this feature is not enabled. The default can be
  18461. restored via the '-mno-pid' command-line option.
  18462. '-mno-warn-multiple-fast-interrupts'
  18463. '-mwarn-multiple-fast-interrupts'
  18464. Prevents GCC from issuing a warning message if it finds more than
  18465. one fast interrupt handler when it is compiling a file. The
  18466. default is to issue a warning for each extra fast interrupt handler
  18467. found, as the RX only supports one such interrupt.
  18468. '-mallow-string-insns'
  18469. '-mno-allow-string-insns'
  18470. Enables or disables the use of the string manipulation instructions
  18471. 'SMOVF', 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' and also the
  18472. 'RMPA' instruction. These instructions may prefetch data, which is
  18473. not safe to do if accessing an I/O register. (See section 12.2.7
  18474. of the RX62N Group User's Manual for more information).
  18475. The default is to allow these instructions, but it is not possible
  18476. for GCC to reliably detect all circumstances where a string
  18477. instruction might be used to access an I/O register, so their use
  18478. cannot be disabled automatically. Instead it is reliant upon the
  18479. programmer to use the '-mno-allow-string-insns' option if their
  18480. program accesses I/O space.
  18481. When the instructions are enabled GCC defines the C preprocessor
  18482. symbol '__RX_ALLOW_STRING_INSNS__', otherwise it defines the symbol
  18483. '__RX_DISALLOW_STRING_INSNS__'.
  18484. '-mjsr'
  18485. '-mno-jsr'
  18486. Use only (or not only) 'JSR' instructions to access functions.
  18487. This option can be used when code size exceeds the range of 'BSR'
  18488. instructions. Note that '-mno-jsr' does not mean to not use 'JSR'
  18489. but instead means that any type of branch may be used.
  18490. _Note:_ The generic GCC command-line option '-ffixed-REG' has special
  18491. significance to the RX port when used with the 'interrupt' function
  18492. attribute. This attribute indicates a function intended to process fast
  18493. interrupts. GCC ensures that it only uses the registers 'r10', 'r11',
  18494. 'r12' and/or 'r13' and only provided that the normal use of the
  18495. corresponding registers have been restricted via the '-ffixed-REG' or
  18496. '-mint-register' command-line options.
  18497. 
  18498. File: gcc.info, Node: S/390 and zSeries Options, Next: Score Options, Prev: RX Options, Up: Submodel Options
  18499. 3.18.42 S/390 and zSeries Options
  18500. ---------------------------------
  18501. These are the '-m' options defined for the S/390 and zSeries
  18502. architecture.
  18503. '-mhard-float'
  18504. '-msoft-float'
  18505. Use (do not use) the hardware floating-point instructions and
  18506. registers for floating-point operations. When '-msoft-float' is
  18507. specified, functions in 'libgcc.a' are used to perform
  18508. floating-point operations. When '-mhard-float' is specified, the
  18509. compiler generates IEEE floating-point instructions. This is the
  18510. default.
  18511. '-mhard-dfp'
  18512. '-mno-hard-dfp'
  18513. Use (do not use) the hardware decimal-floating-point instructions
  18514. for decimal-floating-point operations. When '-mno-hard-dfp' is
  18515. specified, functions in 'libgcc.a' are used to perform
  18516. decimal-floating-point operations. When '-mhard-dfp' is specified,
  18517. the compiler generates decimal-floating-point hardware
  18518. instructions. This is the default for '-march=z9-ec' or higher.
  18519. '-mlong-double-64'
  18520. '-mlong-double-128'
  18521. These switches control the size of 'long double' type. A size of
  18522. 64 bits makes the 'long double' type equivalent to the 'double'
  18523. type. This is the default.
  18524. '-mbackchain'
  18525. '-mno-backchain'
  18526. Store (do not store) the address of the caller's frame as backchain
  18527. pointer into the callee's stack frame. A backchain may be needed
  18528. to allow debugging using tools that do not understand DWARF call
  18529. frame information. When '-mno-packed-stack' is in effect, the
  18530. backchain pointer is stored at the bottom of the stack frame; when
  18531. '-mpacked-stack' is in effect, the backchain is placed into the
  18532. topmost word of the 96/160 byte register save area.
  18533. In general, code compiled with '-mbackchain' is call-compatible
  18534. with code compiled with '-mmo-backchain'; however, use of the
  18535. backchain for debugging purposes usually requires that the whole
  18536. binary is built with '-mbackchain'. Note that the combination of
  18537. '-mbackchain', '-mpacked-stack' and '-mhard-float' is not
  18538. supported. In order to build a linux kernel use '-msoft-float'.
  18539. The default is to not maintain the backchain.
  18540. '-mpacked-stack'
  18541. '-mno-packed-stack'
  18542. Use (do not use) the packed stack layout. When '-mno-packed-stack'
  18543. is specified, the compiler uses the all fields of the 96/160 byte
  18544. register save area only for their default purpose; unused fields
  18545. still take up stack space. When '-mpacked-stack' is specified,
  18546. register save slots are densely packed at the top of the register
  18547. save area; unused space is reused for other purposes, allowing for
  18548. more efficient use of the available stack space. However, when
  18549. '-mbackchain' is also in effect, the topmost word of the save area
  18550. is always used to store the backchain, and the return address
  18551. register is always saved two words below the backchain.
  18552. As long as the stack frame backchain is not used, code generated
  18553. with '-mpacked-stack' is call-compatible with code generated with
  18554. '-mno-packed-stack'. Note that some non-FSF releases of GCC 2.95
  18555. for S/390 or zSeries generated code that uses the stack frame
  18556. backchain at run time, not just for debugging purposes. Such code
  18557. is not call-compatible with code compiled with '-mpacked-stack'.
  18558. Also, note that the combination of '-mbackchain', '-mpacked-stack'
  18559. and '-mhard-float' is not supported. In order to build a linux
  18560. kernel use '-msoft-float'.
  18561. The default is to not use the packed stack layout.
  18562. '-msmall-exec'
  18563. '-mno-small-exec'
  18564. Generate (or do not generate) code using the 'bras' instruction to
  18565. do subroutine calls. This only works reliably if the total
  18566. executable size does not exceed 64k. The default is to use the
  18567. 'basr' instruction instead, which does not have this limitation.
  18568. '-m64'
  18569. '-m31'
  18570. When '-m31' is specified, generate code compliant to the GNU/Linux
  18571. for S/390 ABI. When '-m64' is specified, generate code compliant
  18572. to the GNU/Linux for zSeries ABI. This allows GCC in particular to
  18573. generate 64-bit instructions. For the 's390' targets, the default
  18574. is '-m31', while the 's390x' targets default to '-m64'.
  18575. '-mzarch'
  18576. '-mesa'
  18577. When '-mzarch' is specified, generate code using the instructions
  18578. available on z/Architecture. When '-mesa' is specified, generate
  18579. code using the instructions available on ESA/390. Note that
  18580. '-mesa' is not possible with '-m64'. When generating code
  18581. compliant to the GNU/Linux for S/390 ABI, the default is '-mesa'.
  18582. When generating code compliant to the GNU/Linux for zSeries ABI,
  18583. the default is '-mzarch'.
  18584. '-mhtm'
  18585. '-mno-htm'
  18586. The '-mhtm' option enables a set of builtins making use of
  18587. instructions available with the transactional execution facility
  18588. introduced with the IBM zEnterprise EC12 machine generation *note
  18589. S/390 System z Built-in Functions::. '-mhtm' is enabled by default
  18590. when using '-march=zEC12'.
  18591. '-mvx'
  18592. '-mno-vx'
  18593. When '-mvx' is specified, generate code using the instructions
  18594. available with the vector extension facility introduced with the
  18595. IBM z13 machine generation. This option changes the ABI for some
  18596. vector type values with regard to alignment and calling
  18597. conventions. In case vector type values are being used in an
  18598. ABI-relevant context a GAS '.gnu_attribute' command will be added
  18599. to mark the resulting binary with the ABI used. '-mvx' is enabled
  18600. by default when using '-march=z13'.
  18601. '-mzvector'
  18602. '-mno-zvector'
  18603. The '-mzvector' option enables vector language extensions and
  18604. builtins using instructions available with the vector extension
  18605. facility introduced with the IBM z13 machine generation. This
  18606. option adds support for 'vector' to be used as a keyword to define
  18607. vector type variables and arguments. 'vector' is only available
  18608. when GNU extensions are enabled. It will not be expanded when
  18609. requesting strict standard compliance e.g. with '-std=c99'. In
  18610. addition to the GCC low-level builtins '-mzvector' enables a set of
  18611. builtins added for compatibility with AltiVec-style implementations
  18612. like Power and Cell. In order to make use of these builtins the
  18613. header file 'vecintrin.h' needs to be included. '-mzvector' is
  18614. disabled by default.
  18615. '-mmvcle'
  18616. '-mno-mvcle'
  18617. Generate (or do not generate) code using the 'mvcle' instruction to
  18618. perform block moves. When '-mno-mvcle' is specified, use a 'mvc'
  18619. loop instead. This is the default unless optimizing for size.
  18620. '-mdebug'
  18621. '-mno-debug'
  18622. Print (or do not print) additional debug information when
  18623. compiling. The default is to not print debug information.
  18624. '-march=CPU-TYPE'
  18625. Generate code that runs on CPU-TYPE, which is the name of a system
  18626. representing a certain processor type. Possible values for
  18627. CPU-TYPE are 'z900'/'arch5', 'z990'/'arch6', 'z9-109',
  18628. 'z9-ec'/'arch7', 'z10'/'arch8', 'z196'/'arch9', 'zEC12',
  18629. 'z13'/'arch11', 'z14'/'arch12', and 'native'.
  18630. The default is '-march=z900'. 'g5'/'arch3' and 'g6' are deprecated
  18631. and will be removed with future releases.
  18632. Specifying 'native' as cpu type can be used to select the best
  18633. architecture option for the host processor. '-march=native' has no
  18634. effect if GCC does not recognize the processor.
  18635. '-mtune=CPU-TYPE'
  18636. Tune to CPU-TYPE everything applicable about the generated code,
  18637. except for the ABI and the set of available instructions. The list
  18638. of CPU-TYPE values is the same as for '-march'. The default is the
  18639. value used for '-march'.
  18640. '-mtpf-trace'
  18641. '-mno-tpf-trace'
  18642. Generate code that adds (does not add) in TPF OS specific branches
  18643. to trace routines in the operating system. This option is off by
  18644. default, even when compiling for the TPF OS.
  18645. '-mfused-madd'
  18646. '-mno-fused-madd'
  18647. Generate code that uses (does not use) the floating-point multiply
  18648. and accumulate instructions. These instructions are generated by
  18649. default if hardware floating point is used.
  18650. '-mwarn-framesize=FRAMESIZE'
  18651. Emit a warning if the current function exceeds the given frame
  18652. size. Because this is a compile-time check it doesn't need to be a
  18653. real problem when the program runs. It is intended to identify
  18654. functions that most probably cause a stack overflow. It is useful
  18655. to be used in an environment with limited stack size e.g. the linux
  18656. kernel.
  18657. '-mwarn-dynamicstack'
  18658. Emit a warning if the function calls 'alloca' or uses
  18659. dynamically-sized arrays. This is generally a bad idea with a
  18660. limited stack size.
  18661. '-mstack-guard=STACK-GUARD'
  18662. '-mstack-size=STACK-SIZE'
  18663. If these options are provided the S/390 back end emits additional
  18664. instructions in the function prologue that trigger a trap if the
  18665. stack size is STACK-GUARD bytes above the STACK-SIZE (remember that
  18666. the stack on S/390 grows downward). If the STACK-GUARD option is
  18667. omitted the smallest power of 2 larger than the frame size of the
  18668. compiled function is chosen. These options are intended to be used
  18669. to help debugging stack overflow problems. The additionally
  18670. emitted code causes only little overhead and hence can also be used
  18671. in production-like systems without greater performance degradation.
  18672. The given values have to be exact powers of 2 and STACK-SIZE has to
  18673. be greater than STACK-GUARD without exceeding 64k. In order to be
  18674. efficient the extra code makes the assumption that the stack starts
  18675. at an address aligned to the value given by STACK-SIZE. The
  18676. STACK-GUARD option can only be used in conjunction with STACK-SIZE.
  18677. '-mhotpatch=PRE-HALFWORDS,POST-HALFWORDS'
  18678. If the hotpatch option is enabled, a "hot-patching" function
  18679. prologue is generated for all functions in the compilation unit.
  18680. The funtion label is prepended with the given number of two-byte
  18681. NOP instructions (PRE-HALFWORDS, maximum 1000000). After the
  18682. label, 2 * POST-HALFWORDS bytes are appended, using the largest NOP
  18683. like instructions the architecture allows (maximum 1000000).
  18684. If both arguments are zero, hotpatching is disabled.
  18685. This option can be overridden for individual functions with the
  18686. 'hotpatch' attribute.
  18687. 
  18688. File: gcc.info, Node: Score Options, Next: SH Options, Prev: S/390 and zSeries Options, Up: Submodel Options
  18689. 3.18.43 Score Options
  18690. ---------------------
  18691. These options are defined for Score implementations:
  18692. '-meb'
  18693. Compile code for big-endian mode. This is the default.
  18694. '-mel'
  18695. Compile code for little-endian mode.
  18696. '-mnhwloop'
  18697. Disable generation of 'bcnz' instructions.
  18698. '-muls'
  18699. Enable generation of unaligned load and store instructions.
  18700. '-mmac'
  18701. Enable the use of multiply-accumulate instructions. Disabled by
  18702. default.
  18703. '-mscore5'
  18704. Specify the SCORE5 as the target architecture.
  18705. '-mscore5u'
  18706. Specify the SCORE5U of the target architecture.
  18707. '-mscore7'
  18708. Specify the SCORE7 as the target architecture. This is the
  18709. default.
  18710. '-mscore7d'
  18711. Specify the SCORE7D as the target architecture.
  18712. 
  18713. File: gcc.info, Node: SH Options, Next: Solaris 2 Options, Prev: Score Options, Up: Submodel Options
  18714. 3.18.44 SH Options
  18715. ------------------
  18716. These '-m' options are defined for the SH implementations:
  18717. '-m1'
  18718. Generate code for the SH1.
  18719. '-m2'
  18720. Generate code for the SH2.
  18721. '-m2e'
  18722. Generate code for the SH2e.
  18723. '-m2a-nofpu'
  18724. Generate code for the SH2a without FPU, or for a SH2a-FPU in such a
  18725. way that the floating-point unit is not used.
  18726. '-m2a-single-only'
  18727. Generate code for the SH2a-FPU, in such a way that no
  18728. double-precision floating-point operations are used.
  18729. '-m2a-single'
  18730. Generate code for the SH2a-FPU assuming the floating-point unit is
  18731. in single-precision mode by default.
  18732. '-m2a'
  18733. Generate code for the SH2a-FPU assuming the floating-point unit is
  18734. in double-precision mode by default.
  18735. '-m3'
  18736. Generate code for the SH3.
  18737. '-m3e'
  18738. Generate code for the SH3e.
  18739. '-m4-nofpu'
  18740. Generate code for the SH4 without a floating-point unit.
  18741. '-m4-single-only'
  18742. Generate code for the SH4 with a floating-point unit that only
  18743. supports single-precision arithmetic.
  18744. '-m4-single'
  18745. Generate code for the SH4 assuming the floating-point unit is in
  18746. single-precision mode by default.
  18747. '-m4'
  18748. Generate code for the SH4.
  18749. '-m4-100'
  18750. Generate code for SH4-100.
  18751. '-m4-100-nofpu'
  18752. Generate code for SH4-100 in such a way that the floating-point
  18753. unit is not used.
  18754. '-m4-100-single'
  18755. Generate code for SH4-100 assuming the floating-point unit is in
  18756. single-precision mode by default.
  18757. '-m4-100-single-only'
  18758. Generate code for SH4-100 in such a way that no double-precision
  18759. floating-point operations are used.
  18760. '-m4-200'
  18761. Generate code for SH4-200.
  18762. '-m4-200-nofpu'
  18763. Generate code for SH4-200 without in such a way that the
  18764. floating-point unit is not used.
  18765. '-m4-200-single'
  18766. Generate code for SH4-200 assuming the floating-point unit is in
  18767. single-precision mode by default.
  18768. '-m4-200-single-only'
  18769. Generate code for SH4-200 in such a way that no double-precision
  18770. floating-point operations are used.
  18771. '-m4-300'
  18772. Generate code for SH4-300.
  18773. '-m4-300-nofpu'
  18774. Generate code for SH4-300 without in such a way that the
  18775. floating-point unit is not used.
  18776. '-m4-300-single'
  18777. Generate code for SH4-300 in such a way that no double-precision
  18778. floating-point operations are used.
  18779. '-m4-300-single-only'
  18780. Generate code for SH4-300 in such a way that no double-precision
  18781. floating-point operations are used.
  18782. '-m4-340'
  18783. Generate code for SH4-340 (no MMU, no FPU).
  18784. '-m4-500'
  18785. Generate code for SH4-500 (no FPU). Passes '-isa=sh4-nofpu' to the
  18786. assembler.
  18787. '-m4a-nofpu'
  18788. Generate code for the SH4al-dsp, or for a SH4a in such a way that
  18789. the floating-point unit is not used.
  18790. '-m4a-single-only'
  18791. Generate code for the SH4a, in such a way that no double-precision
  18792. floating-point operations are used.
  18793. '-m4a-single'
  18794. Generate code for the SH4a assuming the floating-point unit is in
  18795. single-precision mode by default.
  18796. '-m4a'
  18797. Generate code for the SH4a.
  18798. '-m4al'
  18799. Same as '-m4a-nofpu', except that it implicitly passes '-dsp' to
  18800. the assembler. GCC doesn't generate any DSP instructions at the
  18801. moment.
  18802. '-mb'
  18803. Compile code for the processor in big-endian mode.
  18804. '-ml'
  18805. Compile code for the processor in little-endian mode.
  18806. '-mdalign'
  18807. Align doubles at 64-bit boundaries. Note that this changes the
  18808. calling conventions, and thus some functions from the standard C
  18809. library do not work unless you recompile it first with '-mdalign'.
  18810. '-mrelax'
  18811. Shorten some address references at link time, when possible; uses
  18812. the linker option '-relax'.
  18813. '-mbigtable'
  18814. Use 32-bit offsets in 'switch' tables. The default is to use
  18815. 16-bit offsets.
  18816. '-mbitops'
  18817. Enable the use of bit manipulation instructions on SH2A.
  18818. '-mfmovd'
  18819. Enable the use of the instruction 'fmovd'. Check '-mdalign' for
  18820. alignment constraints.
  18821. '-mrenesas'
  18822. Comply with the calling conventions defined by Renesas.
  18823. '-mno-renesas'
  18824. Comply with the calling conventions defined for GCC before the
  18825. Renesas conventions were available. This option is the default for
  18826. all targets of the SH toolchain.
  18827. '-mnomacsave'
  18828. Mark the 'MAC' register as call-clobbered, even if '-mrenesas' is
  18829. given.
  18830. '-mieee'
  18831. '-mno-ieee'
  18832. Control the IEEE compliance of floating-point comparisons, which
  18833. affects the handling of cases where the result of a comparison is
  18834. unordered. By default '-mieee' is implicitly enabled. If
  18835. '-ffinite-math-only' is enabled '-mno-ieee' is implicitly set,
  18836. which results in faster floating-point greater-equal and less-equal
  18837. comparisons. The implicit settings can be overridden by specifying
  18838. either '-mieee' or '-mno-ieee'.
  18839. '-minline-ic_invalidate'
  18840. Inline code to invalidate instruction cache entries after setting
  18841. up nested function trampolines. This option has no effect if
  18842. '-musermode' is in effect and the selected code generation option
  18843. (e.g. '-m4') does not allow the use of the 'icbi' instruction. If
  18844. the selected code generation option does not allow the use of the
  18845. 'icbi' instruction, and '-musermode' is not in effect, the inlined
  18846. code manipulates the instruction cache address array directly with
  18847. an associative write. This not only requires privileged mode at
  18848. run time, but it also fails if the cache line had been mapped via
  18849. the TLB and has become unmapped.
  18850. '-misize'
  18851. Dump instruction size and location in the assembly code.
  18852. '-mpadstruct'
  18853. This option is deprecated. It pads structures to multiple of 4
  18854. bytes, which is incompatible with the SH ABI.
  18855. '-matomic-model=MODEL'
  18856. Sets the model of atomic operations and additional parameters as a
  18857. comma separated list. For details on the atomic built-in functions
  18858. see *note __atomic Builtins::. The following models and parameters
  18859. are supported:
  18860. 'none'
  18861. Disable compiler generated atomic sequences and emit library
  18862. calls for atomic operations. This is the default if the
  18863. target is not 'sh*-*-linux*'.
  18864. 'soft-gusa'
  18865. Generate GNU/Linux compatible gUSA software atomic sequences
  18866. for the atomic built-in functions. The generated atomic
  18867. sequences require additional support from the
  18868. interrupt/exception handling code of the system and are only
  18869. suitable for SH3* and SH4* single-core systems. This option
  18870. is enabled by default when the target is 'sh*-*-linux*' and
  18871. SH3* or SH4*. When the target is SH4A, this option also
  18872. partially utilizes the hardware atomic instructions 'movli.l'
  18873. and 'movco.l' to create more efficient code, unless 'strict'
  18874. is specified.
  18875. 'soft-tcb'
  18876. Generate software atomic sequences that use a variable in the
  18877. thread control block. This is a variation of the gUSA
  18878. sequences which can also be used on SH1* and SH2* targets.
  18879. The generated atomic sequences require additional support from
  18880. the interrupt/exception handling code of the system and are
  18881. only suitable for single-core systems. When using this model,
  18882. the 'gbr-offset=' parameter has to be specified as well.
  18883. 'soft-imask'
  18884. Generate software atomic sequences that temporarily disable
  18885. interrupts by setting 'SR.IMASK = 1111'. This model works
  18886. only when the program runs in privileged mode and is only
  18887. suitable for single-core systems. Additional support from the
  18888. interrupt/exception handling code of the system is not
  18889. required. This model is enabled by default when the target is
  18890. 'sh*-*-linux*' and SH1* or SH2*.
  18891. 'hard-llcs'
  18892. Generate hardware atomic sequences using the 'movli.l' and
  18893. 'movco.l' instructions only. This is only available on SH4A
  18894. and is suitable for multi-core systems. Since the hardware
  18895. instructions support only 32 bit atomic variables access to 8
  18896. or 16 bit variables is emulated with 32 bit accesses. Code
  18897. compiled with this option is also compatible with other
  18898. software atomic model interrupt/exception handling systems if
  18899. executed on an SH4A system. Additional support from the
  18900. interrupt/exception handling code of the system is not
  18901. required for this model.
  18902. 'gbr-offset='
  18903. This parameter specifies the offset in bytes of the variable
  18904. in the thread control block structure that should be used by
  18905. the generated atomic sequences when the 'soft-tcb' model has
  18906. been selected. For other models this parameter is ignored.
  18907. The specified value must be an integer multiple of four and in
  18908. the range 0-1020.
  18909. 'strict'
  18910. This parameter prevents mixed usage of multiple atomic models,
  18911. even if they are compatible, and makes the compiler generate
  18912. atomic sequences of the specified model only.
  18913. '-mtas'
  18914. Generate the 'tas.b' opcode for '__atomic_test_and_set'. Notice
  18915. that depending on the particular hardware and software
  18916. configuration this can degrade overall performance due to the
  18917. operand cache line flushes that are implied by the 'tas.b'
  18918. instruction. On multi-core SH4A processors the 'tas.b' instruction
  18919. must be used with caution since it can result in data corruption
  18920. for certain cache configurations.
  18921. '-mprefergot'
  18922. When generating position-independent code, emit function calls
  18923. using the Global Offset Table instead of the Procedure Linkage
  18924. Table.
  18925. '-musermode'
  18926. '-mno-usermode'
  18927. Don't allow (allow) the compiler generating privileged mode code.
  18928. Specifying '-musermode' also implies '-mno-inline-ic_invalidate' if
  18929. the inlined code would not work in user mode. '-musermode' is the
  18930. default when the target is 'sh*-*-linux*'. If the target is SH1*
  18931. or SH2* '-musermode' has no effect, since there is no user mode.
  18932. '-multcost=NUMBER'
  18933. Set the cost to assume for a multiply insn.
  18934. '-mdiv=STRATEGY'
  18935. Set the division strategy to be used for integer division
  18936. operations. STRATEGY can be one of:
  18937. 'call-div1'
  18938. Calls a library function that uses the single-step division
  18939. instruction 'div1' to perform the operation. Division by zero
  18940. calculates an unspecified result and does not trap. This is
  18941. the default except for SH4, SH2A and SHcompact.
  18942. 'call-fp'
  18943. Calls a library function that performs the operation in double
  18944. precision floating point. Division by zero causes a
  18945. floating-point exception. This is the default for SHcompact
  18946. with FPU. Specifying this for targets that do not have a
  18947. double precision FPU defaults to 'call-div1'.
  18948. 'call-table'
  18949. Calls a library function that uses a lookup table for small
  18950. divisors and the 'div1' instruction with case distinction for
  18951. larger divisors. Division by zero calculates an unspecified
  18952. result and does not trap. This is the default for SH4.
  18953. Specifying this for targets that do not have dynamic shift
  18954. instructions defaults to 'call-div1'.
  18955. When a division strategy has not been specified the default
  18956. strategy is selected based on the current target. For SH2A the
  18957. default strategy is to use the 'divs' and 'divu' instructions
  18958. instead of library function calls.
  18959. '-maccumulate-outgoing-args'
  18960. Reserve space once for outgoing arguments in the function prologue
  18961. rather than around each call. Generally beneficial for performance
  18962. and size. Also needed for unwinding to avoid changing the stack
  18963. frame around conditional code.
  18964. '-mdivsi3_libfunc=NAME'
  18965. Set the name of the library function used for 32-bit signed
  18966. division to NAME. This only affects the name used in the 'call'
  18967. division strategies, and the compiler still expects the same sets
  18968. of input/output/clobbered registers as if this option were not
  18969. present.
  18970. '-mfixed-range=REGISTER-RANGE'
  18971. Generate code treating the given register range as fixed registers.
  18972. A fixed register is one that the register allocator can not use.
  18973. This is useful when compiling kernel code. A register range is
  18974. specified as two registers separated by a dash. Multiple register
  18975. ranges can be specified separated by a comma.
  18976. '-mbranch-cost=NUM'
  18977. Assume NUM to be the cost for a branch instruction. Higher numbers
  18978. make the compiler try to generate more branch-free code if
  18979. possible. If not specified the value is selected depending on the
  18980. processor type that is being compiled for.
  18981. '-mzdcbranch'
  18982. '-mno-zdcbranch'
  18983. Assume (do not assume) that zero displacement conditional branch
  18984. instructions 'bt' and 'bf' are fast. If '-mzdcbranch' is
  18985. specified, the compiler prefers zero displacement branch code
  18986. sequences. This is enabled by default when generating code for SH4
  18987. and SH4A. It can be explicitly disabled by specifying
  18988. '-mno-zdcbranch'.
  18989. '-mcbranch-force-delay-slot'
  18990. Force the usage of delay slots for conditional branches, which
  18991. stuffs the delay slot with a 'nop' if a suitable instruction cannot
  18992. be found. By default this option is disabled. It can be enabled
  18993. to work around hardware bugs as found in the original SH7055.
  18994. '-mfused-madd'
  18995. '-mno-fused-madd'
  18996. Generate code that uses (does not use) the floating-point multiply
  18997. and accumulate instructions. These instructions are generated by
  18998. default if hardware floating point is used. The machine-dependent
  18999. '-mfused-madd' option is now mapped to the machine-independent
  19000. '-ffp-contract=fast' option, and '-mno-fused-madd' is mapped to
  19001. '-ffp-contract=off'.
  19002. '-mfsca'
  19003. '-mno-fsca'
  19004. Allow or disallow the compiler to emit the 'fsca' instruction for
  19005. sine and cosine approximations. The option '-mfsca' must be used
  19006. in combination with '-funsafe-math-optimizations'. It is enabled
  19007. by default when generating code for SH4A. Using '-mno-fsca'
  19008. disables sine and cosine approximations even if
  19009. '-funsafe-math-optimizations' is in effect.
  19010. '-mfsrra'
  19011. '-mno-fsrra'
  19012. Allow or disallow the compiler to emit the 'fsrra' instruction for
  19013. reciprocal square root approximations. The option '-mfsrra' must
  19014. be used in combination with '-funsafe-math-optimizations' and
  19015. '-ffinite-math-only'. It is enabled by default when generating
  19016. code for SH4A. Using '-mno-fsrra' disables reciprocal square root
  19017. approximations even if '-funsafe-math-optimizations' and
  19018. '-ffinite-math-only' are in effect.
  19019. '-mpretend-cmove'
  19020. Prefer zero-displacement conditional branches for conditional move
  19021. instruction patterns. This can result in faster code on the SH4
  19022. processor.
  19023. '-mfdpic'
  19024. Generate code using the FDPIC ABI.
  19025. 
  19026. File: gcc.info, Node: Solaris 2 Options, Next: SPARC Options, Prev: SH Options, Up: Submodel Options
  19027. 3.18.45 Solaris 2 Options
  19028. -------------------------
  19029. These '-m' options are supported on Solaris 2:
  19030. '-mclear-hwcap'
  19031. '-mclear-hwcap' tells the compiler to remove the hardware
  19032. capabilities generated by the Solaris assembler. This is only
  19033. necessary when object files use ISA extensions not supported by the
  19034. current machine, but check at runtime whether or not to use them.
  19035. '-mimpure-text'
  19036. '-mimpure-text', used in addition to '-shared', tells the compiler
  19037. to not pass '-z text' to the linker when linking a shared object.
  19038. Using this option, you can link position-dependent code into a
  19039. shared object.
  19040. '-mimpure-text' suppresses the "relocations remain against
  19041. allocatable but non-writable sections" linker error message.
  19042. However, the necessary relocations trigger copy-on-write, and the
  19043. shared object is not actually shared across processes. Instead of
  19044. using '-mimpure-text', you should compile all source code with
  19045. '-fpic' or '-fPIC'.
  19046. These switches are supported in addition to the above on Solaris 2:
  19047. '-pthreads'
  19048. This is a synonym for '-pthread'.
  19049. 
  19050. File: gcc.info, Node: SPARC Options, Next: SPU Options, Prev: Solaris 2 Options, Up: Submodel Options
  19051. 3.18.46 SPARC Options
  19052. ---------------------
  19053. These '-m' options are supported on the SPARC:
  19054. '-mno-app-regs'
  19055. '-mapp-regs'
  19056. Specify '-mapp-regs' to generate output using the global registers
  19057. 2 through 4, which the SPARC SVR4 ABI reserves for applications.
  19058. Like the global register 1, each global register 2 through 4 is
  19059. then treated as an allocable register that is clobbered by function
  19060. calls. This is the default.
  19061. To be fully SVR4 ABI-compliant at the cost of some performance
  19062. loss, specify '-mno-app-regs'. You should compile libraries and
  19063. system software with this option.
  19064. '-mflat'
  19065. '-mno-flat'
  19066. With '-mflat', the compiler does not generate save/restore
  19067. instructions and uses a "flat" or single register window model.
  19068. This model is compatible with the regular register window model.
  19069. The local registers and the input registers (0-5) are still treated
  19070. as "call-saved" registers and are saved on the stack as needed.
  19071. With '-mno-flat' (the default), the compiler generates save/restore
  19072. instructions (except for leaf functions). This is the normal
  19073. operating mode.
  19074. '-mfpu'
  19075. '-mhard-float'
  19076. Generate output containing floating-point instructions. This is
  19077. the default.
  19078. '-mno-fpu'
  19079. '-msoft-float'
  19080. Generate output containing library calls for floating point.
  19081. *Warning:* the requisite libraries are not available for all SPARC
  19082. targets. Normally the facilities of the machine's usual C compiler
  19083. are used, but this cannot be done directly in cross-compilation.
  19084. You must make your own arrangements to provide suitable library
  19085. functions for cross-compilation. The embedded targets
  19086. 'sparc-*-aout' and 'sparclite-*-*' do provide software
  19087. floating-point support.
  19088. '-msoft-float' changes the calling convention in the output file;
  19089. therefore, it is only useful if you compile _all_ of a program with
  19090. this option. In particular, you need to compile 'libgcc.a', the
  19091. library that comes with GCC, with '-msoft-float' in order for this
  19092. to work.
  19093. '-mhard-quad-float'
  19094. Generate output containing quad-word (long double) floating-point
  19095. instructions.
  19096. '-msoft-quad-float'
  19097. Generate output containing library calls for quad-word (long
  19098. double) floating-point instructions. The functions called are
  19099. those specified in the SPARC ABI. This is the default.
  19100. As of this writing, there are no SPARC implementations that have
  19101. hardware support for the quad-word floating-point instructions.
  19102. They all invoke a trap handler for one of these instructions, and
  19103. then the trap handler emulates the effect of the instruction.
  19104. Because of the trap handler overhead, this is much slower than
  19105. calling the ABI library routines. Thus the '-msoft-quad-float'
  19106. option is the default.
  19107. '-mno-unaligned-doubles'
  19108. '-munaligned-doubles'
  19109. Assume that doubles have 8-byte alignment. This is the default.
  19110. With '-munaligned-doubles', GCC assumes that doubles have 8-byte
  19111. alignment only if they are contained in another type, or if they
  19112. have an absolute address. Otherwise, it assumes they have 4-byte
  19113. alignment. Specifying this option avoids some rare compatibility
  19114. problems with code generated by other compilers. It is not the
  19115. default because it results in a performance loss, especially for
  19116. floating-point code.
  19117. '-muser-mode'
  19118. '-mno-user-mode'
  19119. Do not generate code that can only run in supervisor mode. This is
  19120. relevant only for the 'casa' instruction emitted for the LEON3
  19121. processor. This is the default.
  19122. '-mfaster-structs'
  19123. '-mno-faster-structs'
  19124. With '-mfaster-structs', the compiler assumes that structures
  19125. should have 8-byte alignment. This enables the use of pairs of
  19126. 'ldd' and 'std' instructions for copies in structure assignment, in
  19127. place of twice as many 'ld' and 'st' pairs. However, the use of
  19128. this changed alignment directly violates the SPARC ABI. Thus, it's
  19129. intended only for use on targets where the developer acknowledges
  19130. that their resulting code is not directly in line with the rules of
  19131. the ABI.
  19132. '-mstd-struct-return'
  19133. '-mno-std-struct-return'
  19134. With '-mstd-struct-return', the compiler generates checking code in
  19135. functions returning structures or unions to detect size mismatches
  19136. between the two sides of function calls, as per the 32-bit ABI.
  19137. The default is '-mno-std-struct-return'. This option has no effect
  19138. in 64-bit mode.
  19139. '-mlra'
  19140. '-mno-lra'
  19141. Enable Local Register Allocation. This is the default for SPARC
  19142. since GCC 7 so '-mno-lra' needs to be passed to get old Reload.
  19143. '-mcpu=CPU_TYPE'
  19144. Set the instruction set, register set, and instruction scheduling
  19145. parameters for machine type CPU_TYPE. Supported values for
  19146. CPU_TYPE are 'v7', 'cypress', 'v8', 'supersparc', 'hypersparc',
  19147. 'leon', 'leon3', 'leon3v7', 'sparclite', 'f930', 'f934',
  19148. 'sparclite86x', 'sparclet', 'tsc701', 'v9', 'ultrasparc',
  19149. 'ultrasparc3', 'niagara', 'niagara2', 'niagara3', 'niagara4',
  19150. 'niagara7' and 'm8'.
  19151. Native Solaris and GNU/Linux toolchains also support the value
  19152. 'native', which selects the best architecture option for the host
  19153. processor. '-mcpu=native' has no effect if GCC does not recognize
  19154. the processor.
  19155. Default instruction scheduling parameters are used for values that
  19156. select an architecture and not an implementation. These are 'v7',
  19157. 'v8', 'sparclite', 'sparclet', 'v9'.
  19158. Here is a list of each supported architecture and their supported
  19159. implementations.
  19160. v7
  19161. cypress, leon3v7
  19162. v8
  19163. supersparc, hypersparc, leon, leon3
  19164. sparclite
  19165. f930, f934, sparclite86x
  19166. sparclet
  19167. tsc701
  19168. v9
  19169. ultrasparc, ultrasparc3, niagara, niagara2, niagara3,
  19170. niagara4, niagara7, m8
  19171. By default (unless configured otherwise), GCC generates code for
  19172. the V7 variant of the SPARC architecture. With '-mcpu=cypress',
  19173. the compiler additionally optimizes it for the Cypress CY7C602
  19174. chip, as used in the SPARCStation/SPARCServer 3xx series. This is
  19175. also appropriate for the older SPARCStation 1, 2, IPX etc.
  19176. With '-mcpu=v8', GCC generates code for the V8 variant of the SPARC
  19177. architecture. The only difference from V7 code is that the
  19178. compiler emits the integer multiply and integer divide instructions
  19179. which exist in SPARC-V8 but not in SPARC-V7. With
  19180. '-mcpu=supersparc', the compiler additionally optimizes it for the
  19181. SuperSPARC chip, as used in the SPARCStation 10, 1000 and 2000
  19182. series.
  19183. With '-mcpu=sparclite', GCC generates code for the SPARClite
  19184. variant of the SPARC architecture. This adds the integer multiply,
  19185. integer divide step and scan ('ffs') instructions which exist in
  19186. SPARClite but not in SPARC-V7. With '-mcpu=f930', the compiler
  19187. additionally optimizes it for the Fujitsu MB86930 chip, which is
  19188. the original SPARClite, with no FPU. With '-mcpu=f934', the
  19189. compiler additionally optimizes it for the Fujitsu MB86934 chip,
  19190. which is the more recent SPARClite with FPU.
  19191. With '-mcpu=sparclet', GCC generates code for the SPARClet variant
  19192. of the SPARC architecture. This adds the integer multiply,
  19193. multiply/accumulate, integer divide step and scan ('ffs')
  19194. instructions which exist in SPARClet but not in SPARC-V7. With
  19195. '-mcpu=tsc701', the compiler additionally optimizes it for the
  19196. TEMIC SPARClet chip.
  19197. With '-mcpu=v9', GCC generates code for the V9 variant of the SPARC
  19198. architecture. This adds 64-bit integer and floating-point move
  19199. instructions, 3 additional floating-point condition code registers
  19200. and conditional move instructions. With '-mcpu=ultrasparc', the
  19201. compiler additionally optimizes it for the Sun UltraSPARC I/II/IIi
  19202. chips. With '-mcpu=ultrasparc3', the compiler additionally
  19203. optimizes it for the Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+
  19204. chips. With '-mcpu=niagara', the compiler additionally optimizes
  19205. it for Sun UltraSPARC T1 chips. With '-mcpu=niagara2', the
  19206. compiler additionally optimizes it for Sun UltraSPARC T2 chips.
  19207. With '-mcpu=niagara3', the compiler additionally optimizes it for
  19208. Sun UltraSPARC T3 chips. With '-mcpu=niagara4', the compiler
  19209. additionally optimizes it for Sun UltraSPARC T4 chips. With
  19210. '-mcpu=niagara7', the compiler additionally optimizes it for Oracle
  19211. SPARC M7 chips. With '-mcpu=m8', the compiler additionally
  19212. optimizes it for Oracle M8 chips.
  19213. '-mtune=CPU_TYPE'
  19214. Set the instruction scheduling parameters for machine type
  19215. CPU_TYPE, but do not set the instruction set or register set that
  19216. the option '-mcpu=CPU_TYPE' does.
  19217. The same values for '-mcpu=CPU_TYPE' can be used for
  19218. '-mtune=CPU_TYPE', but the only useful values are those that select
  19219. a particular CPU implementation. Those are 'cypress',
  19220. 'supersparc', 'hypersparc', 'leon', 'leon3', 'leon3v7', 'f930',
  19221. 'f934', 'sparclite86x', 'tsc701', 'ultrasparc', 'ultrasparc3',
  19222. 'niagara', 'niagara2', 'niagara3', 'niagara4', 'niagara7' and 'm8'.
  19223. With native Solaris and GNU/Linux toolchains, 'native' can also be
  19224. used.
  19225. '-mv8plus'
  19226. '-mno-v8plus'
  19227. With '-mv8plus', GCC generates code for the SPARC-V8+ ABI. The
  19228. difference from the V8 ABI is that the global and out registers are
  19229. considered 64 bits wide. This is enabled by default on Solaris in
  19230. 32-bit mode for all SPARC-V9 processors.
  19231. '-mvis'
  19232. '-mno-vis'
  19233. With '-mvis', GCC generates code that takes advantage of the
  19234. UltraSPARC Visual Instruction Set extensions. The default is
  19235. '-mno-vis'.
  19236. '-mvis2'
  19237. '-mno-vis2'
  19238. With '-mvis2', GCC generates code that takes advantage of version
  19239. 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  19240. default is '-mvis2' when targeting a cpu that supports such
  19241. instructions, such as UltraSPARC-III and later. Setting '-mvis2'
  19242. also sets '-mvis'.
  19243. '-mvis3'
  19244. '-mno-vis3'
  19245. With '-mvis3', GCC generates code that takes advantage of version
  19246. 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  19247. default is '-mvis3' when targeting a cpu that supports such
  19248. instructions, such as niagara-3 and later. Setting '-mvis3' also
  19249. sets '-mvis2' and '-mvis'.
  19250. '-mvis4'
  19251. '-mno-vis4'
  19252. With '-mvis4', GCC generates code that takes advantage of version
  19253. 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  19254. default is '-mvis4' when targeting a cpu that supports such
  19255. instructions, such as niagara-7 and later. Setting '-mvis4' also
  19256. sets '-mvis3', '-mvis2' and '-mvis'.
  19257. '-mvis4b'
  19258. '-mno-vis4b'
  19259. With '-mvis4b', GCC generates code that takes advantage of version
  19260. 4.0 of the UltraSPARC Visual Instruction Set extensions, plus the
  19261. additional VIS instructions introduced in the Oracle SPARC
  19262. Architecture 2017. The default is '-mvis4b' when targeting a cpu
  19263. that supports such instructions, such as m8 and later. Setting
  19264. '-mvis4b' also sets '-mvis4', '-mvis3', '-mvis2' and '-mvis'.
  19265. '-mcbcond'
  19266. '-mno-cbcond'
  19267. With '-mcbcond', GCC generates code that takes advantage of the
  19268. UltraSPARC Compare-and-Branch-on-Condition instructions. The
  19269. default is '-mcbcond' when targeting a CPU that supports such
  19270. instructions, such as Niagara-4 and later.
  19271. '-mfmaf'
  19272. '-mno-fmaf'
  19273. With '-mfmaf', GCC generates code that takes advantage of the
  19274. UltraSPARC Fused Multiply-Add Floating-point instructions. The
  19275. default is '-mfmaf' when targeting a CPU that supports such
  19276. instructions, such as Niagara-3 and later.
  19277. '-mfsmuld'
  19278. '-mno-fsmuld'
  19279. With '-mfsmuld', GCC generates code that takes advantage of the
  19280. Floating-point Multiply Single to Double (FsMULd) instruction. The
  19281. default is '-mfsmuld' when targeting a CPU supporting the
  19282. architecture versions V8 or V9 with FPU except '-mcpu=leon'.
  19283. '-mpopc'
  19284. '-mno-popc'
  19285. With '-mpopc', GCC generates code that takes advantage of the
  19286. UltraSPARC Population Count instruction. The default is '-mpopc'
  19287. when targeting a CPU that supports such an instruction, such as
  19288. Niagara-2 and later.
  19289. '-msubxc'
  19290. '-mno-subxc'
  19291. With '-msubxc', GCC generates code that takes advantage of the
  19292. UltraSPARC Subtract-Extended-with-Carry instruction. The default
  19293. is '-msubxc' when targeting a CPU that supports such an
  19294. instruction, such as Niagara-7 and later.
  19295. '-mfix-at697f'
  19296. Enable the documented workaround for the single erratum of the
  19297. Atmel AT697F processor (which corresponds to erratum #13 of the
  19298. AT697E processor).
  19299. '-mfix-ut699'
  19300. Enable the documented workarounds for the floating-point errata and
  19301. the data cache nullify errata of the UT699 processor.
  19302. '-mfix-ut700'
  19303. Enable the documented workaround for the back-to-back store errata
  19304. of the UT699E/UT700 processor.
  19305. '-mfix-gr712rc'
  19306. Enable the documented workaround for the back-to-back store errata
  19307. of the GR712RC processor.
  19308. These '-m' options are supported in addition to the above on SPARC-V9
  19309. processors in 64-bit environments:
  19310. '-m32'
  19311. '-m64'
  19312. Generate code for a 32-bit or 64-bit environment. The 32-bit
  19313. environment sets int, long and pointer to 32 bits. The 64-bit
  19314. environment sets int to 32 bits and long and pointer to 64 bits.
  19315. '-mcmodel=WHICH'
  19316. Set the code model to one of
  19317. 'medlow'
  19318. The Medium/Low code model: 64-bit addresses, programs must be
  19319. linked in the low 32 bits of memory. Programs can be
  19320. statically or dynamically linked.
  19321. 'medmid'
  19322. The Medium/Middle code model: 64-bit addresses, programs must
  19323. be linked in the low 44 bits of memory, the text and data
  19324. segments must be less than 2GB in size and the data segment
  19325. must be located within 2GB of the text segment.
  19326. 'medany'
  19327. The Medium/Anywhere code model: 64-bit addresses, programs may
  19328. be linked anywhere in memory, the text and data segments must
  19329. be less than 2GB in size and the data segment must be located
  19330. within 2GB of the text segment.
  19331. 'embmedany'
  19332. The Medium/Anywhere code model for embedded systems: 64-bit
  19333. addresses, the text and data segments must be less than 2GB in
  19334. size, both starting anywhere in memory (determined at link
  19335. time). The global register %g4 points to the base of the data
  19336. segment. Programs are statically linked and PIC is not
  19337. supported.
  19338. '-mmemory-model=MEM-MODEL'
  19339. Set the memory model in force on the processor to one of
  19340. 'default'
  19341. The default memory model for the processor and operating
  19342. system.
  19343. 'rmo'
  19344. Relaxed Memory Order
  19345. 'pso'
  19346. Partial Store Order
  19347. 'tso'
  19348. Total Store Order
  19349. 'sc'
  19350. Sequential Consistency
  19351. These memory models are formally defined in Appendix D of the
  19352. SPARC-V9 architecture manual, as set in the processor's 'PSTATE.MM'
  19353. field.
  19354. '-mstack-bias'
  19355. '-mno-stack-bias'
  19356. With '-mstack-bias', GCC assumes that the stack pointer, and frame
  19357. pointer if present, are offset by -2047 which must be added back
  19358. when making stack frame references. This is the default in 64-bit
  19359. mode. Otherwise, assume no such offset is present.
  19360. 
  19361. File: gcc.info, Node: SPU Options, Next: System V Options, Prev: SPARC Options, Up: Submodel Options
  19362. 3.18.47 SPU Options
  19363. -------------------
  19364. These '-m' options are supported on the SPU:
  19365. '-mwarn-reloc'
  19366. '-merror-reloc'
  19367. The loader for SPU does not handle dynamic relocations. By
  19368. default, GCC gives an error when it generates code that requires a
  19369. dynamic relocation. '-mno-error-reloc' disables the error,
  19370. '-mwarn-reloc' generates a warning instead.
  19371. '-msafe-dma'
  19372. '-munsafe-dma'
  19373. Instructions that initiate or test completion of DMA must not be
  19374. reordered with respect to loads and stores of the memory that is
  19375. being accessed. With '-munsafe-dma' you must use the 'volatile'
  19376. keyword to protect memory accesses, but that can lead to
  19377. inefficient code in places where the memory is known to not change.
  19378. Rather than mark the memory as volatile, you can use '-msafe-dma'
  19379. to tell the compiler to treat the DMA instructions as potentially
  19380. affecting all memory.
  19381. '-mbranch-hints'
  19382. By default, GCC generates a branch hint instruction to avoid
  19383. pipeline stalls for always-taken or probably-taken branches. A
  19384. hint is not generated closer than 8 instructions away from its
  19385. branch. There is little reason to disable them, except for
  19386. debugging purposes, or to make an object a little bit smaller.
  19387. '-msmall-mem'
  19388. '-mlarge-mem'
  19389. By default, GCC generates code assuming that addresses are never
  19390. larger than 18 bits. With '-mlarge-mem' code is generated that
  19391. assumes a full 32-bit address.
  19392. '-mstdmain'
  19393. By default, GCC links against startup code that assumes the
  19394. SPU-style main function interface (which has an unconventional
  19395. parameter list). With '-mstdmain', GCC links your program against
  19396. startup code that assumes a C99-style interface to 'main',
  19397. including a local copy of 'argv' strings.
  19398. '-mfixed-range=REGISTER-RANGE'
  19399. Generate code treating the given register range as fixed registers.
  19400. A fixed register is one that the register allocator cannot use.
  19401. This is useful when compiling kernel code. A register range is
  19402. specified as two registers separated by a dash. Multiple register
  19403. ranges can be specified separated by a comma.
  19404. '-mea32'
  19405. '-mea64'
  19406. Compile code assuming that pointers to the PPU address space
  19407. accessed via the '__ea' named address space qualifier are either 32
  19408. or 64 bits wide. The default is 32 bits. As this is an
  19409. ABI-changing option, all object code in an executable must be
  19410. compiled with the same setting.
  19411. '-maddress-space-conversion'
  19412. '-mno-address-space-conversion'
  19413. Allow/disallow treating the '__ea' address space as superset of the
  19414. generic address space. This enables explicit type casts between
  19415. '__ea' and generic pointer as well as implicit conversions of
  19416. generic pointers to '__ea' pointers. The default is to allow
  19417. address space pointer conversions.
  19418. '-mcache-size=CACHE-SIZE'
  19419. This option controls the version of libgcc that the compiler links
  19420. to an executable and selects a software-managed cache for accessing
  19421. variables in the '__ea' address space with a particular cache size.
  19422. Possible options for CACHE-SIZE are '8', '16', '32', '64' and
  19423. '128'. The default cache size is 64KB.
  19424. '-matomic-updates'
  19425. '-mno-atomic-updates'
  19426. This option controls the version of libgcc that the compiler links
  19427. to an executable and selects whether atomic updates to the
  19428. software-managed cache of PPU-side variables are used. If you use
  19429. atomic updates, changes to a PPU variable from SPU code using the
  19430. '__ea' named address space qualifier do not interfere with changes
  19431. to other PPU variables residing in the same cache line from PPU
  19432. code. If you do not use atomic updates, such interference may
  19433. occur; however, writing back cache lines is more efficient. The
  19434. default behavior is to use atomic updates.
  19435. '-mdual-nops'
  19436. '-mdual-nops=N'
  19437. By default, GCC inserts NOPs to increase dual issue when it expects
  19438. it to increase performance. N can be a value from 0 to 10. A
  19439. smaller N inserts fewer NOPs. 10 is the default, 0 is the same as
  19440. '-mno-dual-nops'. Disabled with '-Os'.
  19441. '-mhint-max-nops=N'
  19442. Maximum number of NOPs to insert for a branch hint. A branch hint
  19443. must be at least 8 instructions away from the branch it is
  19444. affecting. GCC inserts up to N NOPs to enforce this, otherwise it
  19445. does not generate the branch hint.
  19446. '-mhint-max-distance=N'
  19447. The encoding of the branch hint instruction limits the hint to be
  19448. within 256 instructions of the branch it is affecting. By default,
  19449. GCC makes sure it is within 125.
  19450. '-msafe-hints'
  19451. Work around a hardware bug that causes the SPU to stall
  19452. indefinitely. By default, GCC inserts the 'hbrp' instruction to
  19453. make sure this stall won't happen.
  19454. 
  19455. File: gcc.info, Node: System V Options, Next: TILE-Gx Options, Prev: SPU Options, Up: Submodel Options
  19456. 3.18.48 Options for System V
  19457. ----------------------------
  19458. These additional options are available on System V Release 4 for
  19459. compatibility with other compilers on those systems:
  19460. '-G'
  19461. Create a shared object. It is recommended that '-symbolic' or
  19462. '-shared' be used instead.
  19463. '-Qy'
  19464. Identify the versions of each tool used by the compiler, in a
  19465. '.ident' assembler directive in the output.
  19466. '-Qn'
  19467. Refrain from adding '.ident' directives to the output file (this is
  19468. the default).
  19469. '-YP,DIRS'
  19470. Search the directories DIRS, and no others, for libraries specified
  19471. with '-l'.
  19472. '-Ym,DIR'
  19473. Look in the directory DIR to find the M4 preprocessor. The
  19474. assembler uses this option.
  19475. 
  19476. File: gcc.info, Node: TILE-Gx Options, Next: TILEPro Options, Prev: System V Options, Up: Submodel Options
  19477. 3.18.49 TILE-Gx Options
  19478. -----------------------
  19479. These '-m' options are supported on the TILE-Gx:
  19480. '-mcmodel=small'
  19481. Generate code for the small model. The distance for direct calls
  19482. is limited to 500M in either direction. PC-relative addresses are
  19483. 32 bits. Absolute addresses support the full address range.
  19484. '-mcmodel=large'
  19485. Generate code for the large model. There is no limitation on call
  19486. distance, pc-relative addresses, or absolute addresses.
  19487. '-mcpu=NAME'
  19488. Selects the type of CPU to be targeted. Currently the only
  19489. supported type is 'tilegx'.
  19490. '-m32'
  19491. '-m64'
  19492. Generate code for a 32-bit or 64-bit environment. The 32-bit
  19493. environment sets int, long, and pointer to 32 bits. The 64-bit
  19494. environment sets int to 32 bits and long and pointer to 64 bits.
  19495. '-mbig-endian'
  19496. '-mlittle-endian'
  19497. Generate code in big/little endian mode, respectively.
  19498. 
  19499. File: gcc.info, Node: TILEPro Options, Next: V850 Options, Prev: TILE-Gx Options, Up: Submodel Options
  19500. 3.18.50 TILEPro Options
  19501. -----------------------
  19502. These '-m' options are supported on the TILEPro:
  19503. '-mcpu=NAME'
  19504. Selects the type of CPU to be targeted. Currently the only
  19505. supported type is 'tilepro'.
  19506. '-m32'
  19507. Generate code for a 32-bit environment, which sets int, long, and
  19508. pointer to 32 bits. This is the only supported behavior so the
  19509. flag is essentially ignored.
  19510. 
  19511. File: gcc.info, Node: V850 Options, Next: VAX Options, Prev: TILEPro Options, Up: Submodel Options
  19512. 3.18.51 V850 Options
  19513. --------------------
  19514. These '-m' options are defined for V850 implementations:
  19515. '-mlong-calls'
  19516. '-mno-long-calls'
  19517. Treat all calls as being far away (near). If calls are assumed to
  19518. be far away, the compiler always loads the function's address into
  19519. a register, and calls indirect through the pointer.
  19520. '-mno-ep'
  19521. '-mep'
  19522. Do not optimize (do optimize) basic blocks that use the same index
  19523. pointer 4 or more times to copy pointer into the 'ep' register, and
  19524. use the shorter 'sld' and 'sst' instructions. The '-mep' option is
  19525. on by default if you optimize.
  19526. '-mno-prolog-function'
  19527. '-mprolog-function'
  19528. Do not use (do use) external functions to save and restore
  19529. registers at the prologue and epilogue of a function. The external
  19530. functions are slower, but use less code space if more than one
  19531. function saves the same number of registers. The
  19532. '-mprolog-function' option is on by default if you optimize.
  19533. '-mspace'
  19534. Try to make the code as small as possible. At present, this just
  19535. turns on the '-mep' and '-mprolog-function' options.
  19536. '-mtda=N'
  19537. Put static or global variables whose size is N bytes or less into
  19538. the tiny data area that register 'ep' points to. The tiny data
  19539. area can hold up to 256 bytes in total (128 bytes for byte
  19540. references).
  19541. '-msda=N'
  19542. Put static or global variables whose size is N bytes or less into
  19543. the small data area that register 'gp' points to. The small data
  19544. area can hold up to 64 kilobytes.
  19545. '-mzda=N'
  19546. Put static or global variables whose size is N bytes or less into
  19547. the first 32 kilobytes of memory.
  19548. '-mv850'
  19549. Specify that the target processor is the V850.
  19550. '-mv850e3v5'
  19551. Specify that the target processor is the V850E3V5. The
  19552. preprocessor constant '__v850e3v5__' is defined if this option is
  19553. used.
  19554. '-mv850e2v4'
  19555. Specify that the target processor is the V850E3V5. This is an
  19556. alias for the '-mv850e3v5' option.
  19557. '-mv850e2v3'
  19558. Specify that the target processor is the V850E2V3. The
  19559. preprocessor constant '__v850e2v3__' is defined if this option is
  19560. used.
  19561. '-mv850e2'
  19562. Specify that the target processor is the V850E2. The preprocessor
  19563. constant '__v850e2__' is defined if this option is used.
  19564. '-mv850e1'
  19565. Specify that the target processor is the V850E1. The preprocessor
  19566. constants '__v850e1__' and '__v850e__' are defined if this option
  19567. is used.
  19568. '-mv850es'
  19569. Specify that the target processor is the V850ES. This is an alias
  19570. for the '-mv850e1' option.
  19571. '-mv850e'
  19572. Specify that the target processor is the V850E. The preprocessor
  19573. constant '__v850e__' is defined if this option is used.
  19574. If neither '-mv850' nor '-mv850e' nor '-mv850e1' nor '-mv850e2' nor
  19575. '-mv850e2v3' nor '-mv850e3v5' are defined then a default target
  19576. processor is chosen and the relevant '__v850*__' preprocessor
  19577. constant is defined.
  19578. The preprocessor constants '__v850' and '__v851__' are always
  19579. defined, regardless of which processor variant is the target.
  19580. '-mdisable-callt'
  19581. '-mno-disable-callt'
  19582. This option suppresses generation of the 'CALLT' instruction for
  19583. the v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the
  19584. v850 architecture.
  19585. This option is enabled by default when the RH850 ABI is in use (see
  19586. '-mrh850-abi'), and disabled by default when the GCC ABI is in use.
  19587. If 'CALLT' instructions are being generated then the C preprocessor
  19588. symbol '__V850_CALLT__' is defined.
  19589. '-mrelax'
  19590. '-mno-relax'
  19591. Pass on (or do not pass on) the '-mrelax' command-line option to
  19592. the assembler.
  19593. '-mlong-jumps'
  19594. '-mno-long-jumps'
  19595. Disable (or re-enable) the generation of PC-relative jump
  19596. instructions.
  19597. '-msoft-float'
  19598. '-mhard-float'
  19599. Disable (or re-enable) the generation of hardware floating point
  19600. instructions. This option is only significant when the target
  19601. architecture is 'V850E2V3' or higher. If hardware floating point
  19602. instructions are being generated then the C preprocessor symbol
  19603. '__FPU_OK__' is defined, otherwise the symbol '__NO_FPU__' is
  19604. defined.
  19605. '-mloop'
  19606. Enables the use of the e3v5 LOOP instruction. The use of this
  19607. instruction is not enabled by default when the e3v5 architecture is
  19608. selected because its use is still experimental.
  19609. '-mrh850-abi'
  19610. '-mghs'
  19611. Enables support for the RH850 version of the V850 ABI. This is the
  19612. default. With this version of the ABI the following rules apply:
  19613. * Integer sized structures and unions are returned via a memory
  19614. pointer rather than a register.
  19615. * Large structures and unions (more than 8 bytes in size) are
  19616. passed by value.
  19617. * Functions are aligned to 16-bit boundaries.
  19618. * The '-m8byte-align' command-line option is supported.
  19619. * The '-mdisable-callt' command-line option is enabled by
  19620. default. The '-mno-disable-callt' command-line option is not
  19621. supported.
  19622. When this version of the ABI is enabled the C preprocessor symbol
  19623. '__V850_RH850_ABI__' is defined.
  19624. '-mgcc-abi'
  19625. Enables support for the old GCC version of the V850 ABI. With this
  19626. version of the ABI the following rules apply:
  19627. * Integer sized structures and unions are returned in register
  19628. 'r10'.
  19629. * Large structures and unions (more than 8 bytes in size) are
  19630. passed by reference.
  19631. * Functions are aligned to 32-bit boundaries, unless optimizing
  19632. for size.
  19633. * The '-m8byte-align' command-line option is not supported.
  19634. * The '-mdisable-callt' command-line option is supported but not
  19635. enabled by default.
  19636. When this version of the ABI is enabled the C preprocessor symbol
  19637. '__V850_GCC_ABI__' is defined.
  19638. '-m8byte-align'
  19639. '-mno-8byte-align'
  19640. Enables support for 'double' and 'long long' types to be aligned on
  19641. 8-byte boundaries. The default is to restrict the alignment of all
  19642. objects to at most 4-bytes. When '-m8byte-align' is in effect the
  19643. C preprocessor symbol '__V850_8BYTE_ALIGN__' is defined.
  19644. '-mbig-switch'
  19645. Generate code suitable for big switch tables. Use this option only
  19646. if the assembler/linker complain about out of range branches within
  19647. a switch table.
  19648. '-mapp-regs'
  19649. This option causes r2 and r5 to be used in the code generated by
  19650. the compiler. This setting is the default.
  19651. '-mno-app-regs'
  19652. This option causes r2 and r5 to be treated as fixed registers.
  19653. 
  19654. File: gcc.info, Node: VAX Options, Next: Visium Options, Prev: V850 Options, Up: Submodel Options
  19655. 3.18.52 VAX Options
  19656. -------------------
  19657. These '-m' options are defined for the VAX:
  19658. '-munix'
  19659. Do not output certain jump instructions ('aobleq' and so on) that
  19660. the Unix assembler for the VAX cannot handle across long ranges.
  19661. '-mgnu'
  19662. Do output those jump instructions, on the assumption that the GNU
  19663. assembler is being used.
  19664. '-mg'
  19665. Output code for G-format floating-point numbers instead of
  19666. D-format.
  19667. 
  19668. File: gcc.info, Node: Visium Options, Next: VMS Options, Prev: VAX Options, Up: Submodel Options
  19669. 3.18.53 Visium Options
  19670. ----------------------
  19671. '-mdebug'
  19672. A program which performs file I/O and is destined to run on an MCM
  19673. target should be linked with this option. It causes the libraries
  19674. libc.a and libdebug.a to be linked. The program should be run on
  19675. the target under the control of the GDB remote debugging stub.
  19676. '-msim'
  19677. A program which performs file I/O and is destined to run on the
  19678. simulator should be linked with option. This causes libraries
  19679. libc.a and libsim.a to be linked.
  19680. '-mfpu'
  19681. '-mhard-float'
  19682. Generate code containing floating-point instructions. This is the
  19683. default.
  19684. '-mno-fpu'
  19685. '-msoft-float'
  19686. Generate code containing library calls for floating-point.
  19687. '-msoft-float' changes the calling convention in the output file;
  19688. therefore, it is only useful if you compile _all_ of a program with
  19689. this option. In particular, you need to compile 'libgcc.a', the
  19690. library that comes with GCC, with '-msoft-float' in order for this
  19691. to work.
  19692. '-mcpu=CPU_TYPE'
  19693. Set the instruction set, register set, and instruction scheduling
  19694. parameters for machine type CPU_TYPE. Supported values for
  19695. CPU_TYPE are 'mcm', 'gr5' and 'gr6'.
  19696. 'mcm' is a synonym of 'gr5' present for backward compatibility.
  19697. By default (unless configured otherwise), GCC generates code for
  19698. the GR5 variant of the Visium architecture.
  19699. With '-mcpu=gr6', GCC generates code for the GR6 variant of the
  19700. Visium architecture. The only difference from GR5 code is that the
  19701. compiler will generate block move instructions.
  19702. '-mtune=CPU_TYPE'
  19703. Set the instruction scheduling parameters for machine type
  19704. CPU_TYPE, but do not set the instruction set or register set that
  19705. the option '-mcpu=CPU_TYPE' would.
  19706. '-msv-mode'
  19707. Generate code for the supervisor mode, where there are no
  19708. restrictions on the access to general registers. This is the
  19709. default.
  19710. '-muser-mode'
  19711. Generate code for the user mode, where the access to some general
  19712. registers is forbidden: on the GR5, registers r24 to r31 cannot be
  19713. accessed in this mode; on the GR6, only registers r29 to r31 are
  19714. affected.
  19715. 
  19716. File: gcc.info, Node: VMS Options, Next: VxWorks Options, Prev: Visium Options, Up: Submodel Options
  19717. 3.18.54 VMS Options
  19718. -------------------
  19719. These '-m' options are defined for the VMS implementations:
  19720. '-mvms-return-codes'
  19721. Return VMS condition codes from 'main'. The default is to return
  19722. POSIX-style condition (e.g. error) codes.
  19723. '-mdebug-main=PREFIX'
  19724. Flag the first routine whose name starts with PREFIX as the main
  19725. routine for the debugger.
  19726. '-mmalloc64'
  19727. Default to 64-bit memory allocation routines.
  19728. '-mpointer-size=SIZE'
  19729. Set the default size of pointers. Possible options for SIZE are
  19730. '32' or 'short' for 32 bit pointers, '64' or 'long' for 64 bit
  19731. pointers, and 'no' for supporting only 32 bit pointers. The later
  19732. option disables 'pragma pointer_size'.
  19733. 
  19734. File: gcc.info, Node: VxWorks Options, Next: x86 Options, Prev: VMS Options, Up: Submodel Options
  19735. 3.18.55 VxWorks Options
  19736. -----------------------
  19737. The options in this section are defined for all VxWorks targets.
  19738. Options specific to the target hardware are listed with the other
  19739. options for that target.
  19740. '-mrtp'
  19741. GCC can generate code for both VxWorks kernels and real time
  19742. processes (RTPs). This option switches from the former to the
  19743. latter. It also defines the preprocessor macro '__RTP__'.
  19744. '-non-static'
  19745. Link an RTP executable against shared libraries rather than static
  19746. libraries. The options '-static' and '-shared' can also be used
  19747. for RTPs (*note Link Options::); '-static' is the default.
  19748. '-Bstatic'
  19749. '-Bdynamic'
  19750. These options are passed down to the linker. They are defined for
  19751. compatibility with Diab.
  19752. '-Xbind-lazy'
  19753. Enable lazy binding of function calls. This option is equivalent
  19754. to '-Wl,-z,now' and is defined for compatibility with Diab.
  19755. '-Xbind-now'
  19756. Disable lazy binding of function calls. This option is the default
  19757. and is defined for compatibility with Diab.
  19758. 
  19759. File: gcc.info, Node: x86 Options, Next: x86 Windows Options, Prev: VxWorks Options, Up: Submodel Options
  19760. 3.18.56 x86 Options
  19761. -------------------
  19762. These '-m' options are defined for the x86 family of computers.
  19763. '-march=CPU-TYPE'
  19764. Generate instructions for the machine type CPU-TYPE. In contrast
  19765. to '-mtune=CPU-TYPE', which merely tunes the generated code for the
  19766. specified CPU-TYPE, '-march=CPU-TYPE' allows GCC to generate code
  19767. that may not run at all on processors other than the one indicated.
  19768. Specifying '-march=CPU-TYPE' implies '-mtune=CPU-TYPE'.
  19769. The choices for CPU-TYPE are:
  19770. 'native'
  19771. This selects the CPU to generate code for at compilation time
  19772. by determining the processor type of the compiling machine.
  19773. Using '-march=native' enables all instruction subsets
  19774. supported by the local machine (hence the result might not run
  19775. on different machines). Using '-mtune=native' produces code
  19776. optimized for the local machine under the constraints of the
  19777. selected instruction set.
  19778. 'x86-64'
  19779. A generic CPU with 64-bit extensions.
  19780. 'i386'
  19781. Original Intel i386 CPU.
  19782. 'i486'
  19783. Intel i486 CPU. (No scheduling is implemented for this chip.)
  19784. 'i586'
  19785. 'pentium'
  19786. Intel Pentium CPU with no MMX support.
  19787. 'lakemont'
  19788. Intel Lakemont MCU, based on Intel Pentium CPU.
  19789. 'pentium-mmx'
  19790. Intel Pentium MMX CPU, based on Pentium core with MMX
  19791. instruction set support.
  19792. 'pentiumpro'
  19793. Intel Pentium Pro CPU.
  19794. 'i686'
  19795. When used with '-march', the Pentium Pro instruction set is
  19796. used, so the code runs on all i686 family chips. When used
  19797. with '-mtune', it has the same meaning as 'generic'.
  19798. 'pentium2'
  19799. Intel Pentium II CPU, based on Pentium Pro core with MMX
  19800. instruction set support.
  19801. 'pentium3'
  19802. 'pentium3m'
  19803. Intel Pentium III CPU, based on Pentium Pro core with MMX and
  19804. SSE instruction set support.
  19805. 'pentium-m'
  19806. Intel Pentium M; low-power version of Intel Pentium III CPU
  19807. with MMX, SSE and SSE2 instruction set support. Used by
  19808. Centrino notebooks.
  19809. 'pentium4'
  19810. 'pentium4m'
  19811. Intel Pentium 4 CPU with MMX, SSE and SSE2 instruction set
  19812. support.
  19813. 'prescott'
  19814. Improved version of Intel Pentium 4 CPU with MMX, SSE, SSE2
  19815. and SSE3 instruction set support.
  19816. 'nocona'
  19817. Improved version of Intel Pentium 4 CPU with 64-bit
  19818. extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
  19819. 'core2'
  19820. Intel Core 2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3
  19821. and SSSE3 instruction set support.
  19822. 'nehalem'
  19823. Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2,
  19824. SSE3, SSSE3, SSE4.1, SSE4.2 and POPCNT instruction set
  19825. support.
  19826. 'westmere'
  19827. Intel Westmere CPU with 64-bit extensions, MMX, SSE, SSE2,
  19828. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES and PCLMUL
  19829. instruction set support.
  19830. 'sandybridge'
  19831. Intel Sandy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  19832. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL
  19833. instruction set support.
  19834. 'ivybridge'
  19835. Intel Ivy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2,
  19836. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL,
  19837. FSGSBASE, RDRND and F16C instruction set support.
  19838. 'haswell'
  19839. Intel Haswell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  19840. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  19841. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2 and F16C instruction
  19842. set support.
  19843. 'broadwell'
  19844. Intel Broadwell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  19845. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  19846. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX
  19847. and PREFETCHW instruction set support.
  19848. 'skylake'
  19849. Intel Skylake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  19850. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES,
  19851. PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX,
  19852. PREFETCHW, CLFLUSHOPT, XSAVEC and XSAVES instruction set
  19853. support.
  19854. 'bonnell'
  19855. Intel Bonnell CPU with 64-bit extensions, MOVBE, MMX, SSE,
  19856. SSE2, SSE3 and SSSE3 instruction set support.
  19857. 'silvermont'
  19858. Intel Silvermont CPU with 64-bit extensions, MOVBE, MMX, SSE,
  19859. SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PCLMUL and
  19860. RDRND instruction set support.
  19861. 'knl'
  19862. Intel Knight's Landing CPU with 64-bit extensions, MOVBE, MMX,
  19863. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  19864. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  19865. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER and AVX512CD
  19866. instruction set support.
  19867. 'knm'
  19868. Intel Knights Mill CPU with 64-bit extensions, MOVBE, MMX,
  19869. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2,
  19870. AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C, RDSEED,
  19871. ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER, AVX512CD,
  19872. AVX5124VNNIW, AVX5124FMAPS and AVX512VPOPCNTDQ instruction set
  19873. support.
  19874. 'skylake-avx512'
  19875. Intel Skylake Server CPU with 64-bit extensions, MOVBE, MMX,
  19876. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  19877. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  19878. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  19879. CLWB, AVX512VL, AVX512BW, AVX512DQ and AVX512CD instruction
  19880. set support.
  19881. 'cannonlake'
  19882. Intel Cannonlake Server CPU with 64-bit extensions, MOVBE,
  19883. MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  19884. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  19885. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  19886. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  19887. AVX512IFMA, SHA and UMIP instruction set support.
  19888. 'icelake-client'
  19889. Intel Icelake Client CPU with 64-bit extensions, MOVBE, MMX,
  19890. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  19891. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  19892. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  19893. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  19894. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  19895. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES
  19896. instruction set support.
  19897. 'icelake-server'
  19898. Intel Icelake Server CPU with 64-bit extensions, MOVBE, MMX,
  19899. SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX,
  19900. AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2, F16C,
  19901. RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  19902. AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  19903. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2,
  19904. AVX512VPOPCNTDQ, AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES,
  19905. PCONFIG and WBNOINVD instruction set support.
  19906. 'k6'
  19907. AMD K6 CPU with MMX instruction set support.
  19908. 'k6-2'
  19909. 'k6-3'
  19910. Improved versions of AMD K6 CPU with MMX and 3DNow!
  19911. instruction set support.
  19912. 'athlon'
  19913. 'athlon-tbird'
  19914. AMD Athlon CPU with MMX, 3dNOW!, enhanced 3DNow! and SSE
  19915. prefetch instructions support.
  19916. 'athlon-4'
  19917. 'athlon-xp'
  19918. 'athlon-mp'
  19919. Improved AMD Athlon CPU with MMX, 3DNow!, enhanced 3DNow! and
  19920. full SSE instruction set support.
  19921. 'k8'
  19922. 'opteron'
  19923. 'athlon64'
  19924. 'athlon-fx'
  19925. Processors based on the AMD K8 core with x86-64 instruction
  19926. set support, including the AMD Opteron, Athlon 64, and Athlon
  19927. 64 FX processors. (This supersets MMX, SSE, SSE2, 3DNow!,
  19928. enhanced 3DNow! and 64-bit instruction set extensions.)
  19929. 'k8-sse3'
  19930. 'opteron-sse3'
  19931. 'athlon64-sse3'
  19932. Improved versions of AMD K8 cores with SSE3 instruction set
  19933. support.
  19934. 'amdfam10'
  19935. 'barcelona'
  19936. CPUs based on AMD Family 10h cores with x86-64 instruction set
  19937. support. (This supersets MMX, SSE, SSE2, SSE3, SSE4A, 3DNow!,
  19938. enhanced 3DNow!, ABM and 64-bit instruction set extensions.)
  19939. 'bdver1'
  19940. CPUs based on AMD Family 15h cores with x86-64 instruction set
  19941. support. (This supersets FMA4, AVX, XOP, LWP, AES, PCL_MUL,
  19942. CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM
  19943. and 64-bit instruction set extensions.)
  19944. 'bdver2'
  19945. AMD Family 15h core based CPUs with x86-64 instruction set
  19946. support. (This supersets BMI, TBM, F16C, FMA, FMA4, AVX, XOP,
  19947. LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  19948. SSE4.1, SSE4.2, ABM and 64-bit instruction set extensions.)
  19949. 'bdver3'
  19950. AMD Family 15h core based CPUs with x86-64 instruction set
  19951. support. (This supersets BMI, TBM, F16C, FMA, FMA4, FSGSBASE,
  19952. AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3,
  19953. SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit instruction set
  19954. extensions.
  19955. 'bdver4'
  19956. AMD Family 15h core based CPUs with x86-64 instruction set
  19957. support. (This supersets BMI, BMI2, TBM, F16C, FMA, FMA4,
  19958. FSGSBASE, AVX, AVX2, XOP, LWP, AES, PCL_MUL, CX16, MOVBE, MMX,
  19959. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM and 64-bit
  19960. instruction set extensions.
  19961. 'znver1'
  19962. AMD Family 17h core based CPUs with x86-64 instruction set
  19963. support. (This supersets BMI, BMI2, F16C, FMA, FSGSBASE, AVX,
  19964. AVX2, ADCX, RDSEED, MWAITX, SHA, CLZERO, AES, PCL_MUL, CX16,
  19965. MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2,
  19966. ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, and 64-bit
  19967. instruction set extensions.
  19968. 'btver1'
  19969. CPUs based on AMD Family 14h cores with x86-64 instruction set
  19970. support. (This supersets MMX, SSE, SSE2, SSE3, SSSE3, SSE4A,
  19971. CX16, ABM and 64-bit instruction set extensions.)
  19972. 'btver2'
  19973. CPUs based on AMD Family 16h cores with x86-64 instruction set
  19974. support. This includes MOVBE, F16C, BMI, AVX, PCL_MUL, AES,
  19975. SSE4.2, SSE4.1, CX16, ABM, SSE4A, SSSE3, SSE3, SSE2, SSE, MMX
  19976. and 64-bit instruction set extensions.
  19977. 'winchip-c6'
  19978. IDT WinChip C6 CPU, dealt in same way as i486 with additional
  19979. MMX instruction set support.
  19980. 'winchip2'
  19981. IDT WinChip 2 CPU, dealt in same way as i486 with additional
  19982. MMX and 3DNow! instruction set support.
  19983. 'c3'
  19984. VIA C3 CPU with MMX and 3DNow! instruction set support. (No
  19985. scheduling is implemented for this chip.)
  19986. 'c3-2'
  19987. VIA C3-2 (Nehemiah/C5XL) CPU with MMX and SSE instruction set
  19988. support. (No scheduling is implemented for this chip.)
  19989. 'c7'
  19990. VIA C7 (Esther) CPU with MMX, SSE, SSE2 and SSE3 instruction
  19991. set support. (No scheduling is implemented for this chip.)
  19992. 'samuel-2'
  19993. VIA Eden Samuel 2 CPU with MMX and 3DNow! instruction set
  19994. support. (No scheduling is implemented for this chip.)
  19995. 'nehemiah'
  19996. VIA Eden Nehemiah CPU with MMX and SSE instruction set
  19997. support. (No scheduling is implemented for this chip.)
  19998. 'esther'
  19999. VIA Eden Esther CPU with MMX, SSE, SSE2 and SSE3 instruction
  20000. set support. (No scheduling is implemented for this chip.)
  20001. 'eden-x2'
  20002. VIA Eden X2 CPU with x86-64, MMX, SSE, SSE2 and SSE3
  20003. instruction set support. (No scheduling is implemented for
  20004. this chip.)
  20005. 'eden-x4'
  20006. VIA Eden X4 CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3,
  20007. SSE4.1, SSE4.2, AVX and AVX2 instruction set support. (No
  20008. scheduling is implemented for this chip.)
  20009. 'nano'
  20010. Generic VIA Nano CPU with x86-64, MMX, SSE, SSE2, SSE3 and
  20011. SSSE3 instruction set support. (No scheduling is implemented
  20012. for this chip.)
  20013. 'nano-1000'
  20014. VIA Nano 1xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  20015. instruction set support. (No scheduling is implemented for
  20016. this chip.)
  20017. 'nano-2000'
  20018. VIA Nano 2xxx CPU with x86-64, MMX, SSE, SSE2, SSE3 and SSSE3
  20019. instruction set support. (No scheduling is implemented for
  20020. this chip.)
  20021. 'nano-3000'
  20022. VIA Nano 3xxx CPU with x86-64, MMX, SSE, SSE2, SSE3, SSSE3 and
  20023. SSE4.1 instruction set support. (No scheduling is implemented
  20024. for this chip.)
  20025. 'nano-x2'
  20026. VIA Nano Dual Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  20027. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  20028. implemented for this chip.)
  20029. 'nano-x4'
  20030. VIA Nano Quad Core CPU with x86-64, MMX, SSE, SSE2, SSE3,
  20031. SSSE3 and SSE4.1 instruction set support. (No scheduling is
  20032. implemented for this chip.)
  20033. 'geode'
  20034. AMD Geode embedded processor with MMX and 3DNow! instruction
  20035. set support.
  20036. '-mtune=CPU-TYPE'
  20037. Tune to CPU-TYPE everything applicable about the generated code,
  20038. except for the ABI and the set of available instructions. While
  20039. picking a specific CPU-TYPE schedules things appropriately for that
  20040. particular chip, the compiler does not generate any code that
  20041. cannot run on the default machine type unless you use a
  20042. '-march=CPU-TYPE' option. For example, if GCC is configured for
  20043. i686-pc-linux-gnu then '-mtune=pentium4' generates code that is
  20044. tuned for Pentium 4 but still runs on i686 machines.
  20045. The choices for CPU-TYPE are the same as for '-march'. In
  20046. addition, '-mtune' supports 2 extra choices for CPU-TYPE:
  20047. 'generic'
  20048. Produce code optimized for the most common IA32/AMD64/EM64T
  20049. processors. If you know the CPU on which your code will run,
  20050. then you should use the corresponding '-mtune' or '-march'
  20051. option instead of '-mtune=generic'. But, if you do not know
  20052. exactly what CPU users of your application will have, then you
  20053. should use this option.
  20054. As new processors are deployed in the marketplace, the
  20055. behavior of this option will change. Therefore, if you
  20056. upgrade to a newer version of GCC, code generation controlled
  20057. by this option will change to reflect the processors that are
  20058. most common at the time that version of GCC is released.
  20059. There is no '-march=generic' option because '-march' indicates
  20060. the instruction set the compiler can use, and there is no
  20061. generic instruction set applicable to all processors. In
  20062. contrast, '-mtune' indicates the processor (or, in this case,
  20063. collection of processors) for which the code is optimized.
  20064. 'intel'
  20065. Produce code optimized for the most current Intel processors,
  20066. which are Haswell and Silvermont for this version of GCC. If
  20067. you know the CPU on which your code will run, then you should
  20068. use the corresponding '-mtune' or '-march' option instead of
  20069. '-mtune=intel'. But, if you want your application performs
  20070. better on both Haswell and Silvermont, then you should use
  20071. this option.
  20072. As new Intel processors are deployed in the marketplace, the
  20073. behavior of this option will change. Therefore, if you
  20074. upgrade to a newer version of GCC, code generation controlled
  20075. by this option will change to reflect the most current Intel
  20076. processors at the time that version of GCC is released.
  20077. There is no '-march=intel' option because '-march' indicates
  20078. the instruction set the compiler can use, and there is no
  20079. common instruction set applicable to all processors. In
  20080. contrast, '-mtune' indicates the processor (or, in this case,
  20081. collection of processors) for which the code is optimized.
  20082. '-mcpu=CPU-TYPE'
  20083. A deprecated synonym for '-mtune'.
  20084. '-mfpmath=UNIT'
  20085. Generate floating-point arithmetic for selected unit UNIT. The
  20086. choices for UNIT are:
  20087. '387'
  20088. Use the standard 387 floating-point coprocessor present on the
  20089. majority of chips and emulated otherwise. Code compiled with
  20090. this option runs almost everywhere. The temporary results are
  20091. computed in 80-bit precision instead of the precision
  20092. specified by the type, resulting in slightly different results
  20093. compared to most of other chips. See '-ffloat-store' for more
  20094. detailed description.
  20095. This is the default choice for non-Darwin x86-32 targets.
  20096. 'sse'
  20097. Use scalar floating-point instructions present in the SSE
  20098. instruction set. This instruction set is supported by Pentium
  20099. III and newer chips, and in the AMD line by Athlon-4, Athlon
  20100. XP and Athlon MP chips. The earlier version of the SSE
  20101. instruction set supports only single-precision arithmetic,
  20102. thus the double and extended-precision arithmetic are still
  20103. done using 387. A later version, present only in Pentium 4
  20104. and AMD x86-64 chips, supports double-precision arithmetic
  20105. too.
  20106. For the x86-32 compiler, you must use '-march=CPU-TYPE',
  20107. '-msse' or '-msse2' switches to enable SSE extensions and make
  20108. this option effective. For the x86-64 compiler, these
  20109. extensions are enabled by default.
  20110. The resulting code should be considerably faster in the
  20111. majority of cases and avoid the numerical instability problems
  20112. of 387 code, but may break some existing code that expects
  20113. temporaries to be 80 bits.
  20114. This is the default choice for the x86-64 compiler, Darwin
  20115. x86-32 targets, and the default choice for x86-32 targets with
  20116. the SSE2 instruction set when '-ffast-math' is enabled.
  20117. 'sse,387'
  20118. 'sse+387'
  20119. 'both'
  20120. Attempt to utilize both instruction sets at once. This
  20121. effectively doubles the amount of available registers, and on
  20122. chips with separate execution units for 387 and SSE the
  20123. execution resources too. Use this option with care, as it is
  20124. still experimental, because the GCC register allocator does
  20125. not model separate functional units well, resulting in
  20126. unstable performance.
  20127. '-masm=DIALECT'
  20128. Output assembly instructions using selected DIALECT. Also affects
  20129. which dialect is used for basic 'asm' (*note Basic Asm::) and
  20130. extended 'asm' (*note Extended Asm::). Supported choices (in
  20131. dialect order) are 'att' or 'intel'. The default is 'att'. Darwin
  20132. does not support 'intel'.
  20133. '-mieee-fp'
  20134. '-mno-ieee-fp'
  20135. Control whether or not the compiler uses IEEE floating-point
  20136. comparisons. These correctly handle the case where the result of a
  20137. comparison is unordered.
  20138. '-m80387'
  20139. '-mhard-float'
  20140. Generate output containing 80387 instructions for floating point.
  20141. '-mno-80387'
  20142. '-msoft-float'
  20143. Generate output containing library calls for floating point.
  20144. *Warning:* the requisite libraries are not part of GCC. Normally
  20145. the facilities of the machine's usual C compiler are used, but this
  20146. cannot be done directly in cross-compilation. You must make your
  20147. own arrangements to provide suitable library functions for
  20148. cross-compilation.
  20149. On machines where a function returns floating-point results in the
  20150. 80387 register stack, some floating-point opcodes may be emitted
  20151. even if '-msoft-float' is used.
  20152. '-mno-fp-ret-in-387'
  20153. Do not use the FPU registers for return values of functions.
  20154. The usual calling convention has functions return values of types
  20155. 'float' and 'double' in an FPU register, even if there is no FPU.
  20156. The idea is that the operating system should emulate an FPU.
  20157. The option '-mno-fp-ret-in-387' causes such values to be returned
  20158. in ordinary CPU registers instead.
  20159. '-mno-fancy-math-387'
  20160. Some 387 emulators do not support the 'sin', 'cos' and 'sqrt'
  20161. instructions for the 387. Specify this option to avoid generating
  20162. those instructions. This option is the default on OpenBSD and
  20163. NetBSD. This option is overridden when '-march' indicates that the
  20164. target CPU always has an FPU and so the instruction does not need
  20165. emulation. These instructions are not generated unless you also
  20166. use the '-funsafe-math-optimizations' switch.
  20167. '-malign-double'
  20168. '-mno-align-double'
  20169. Control whether GCC aligns 'double', 'long double', and 'long long'
  20170. variables on a two-word boundary or a one-word boundary. Aligning
  20171. 'double' variables on a two-word boundary produces code that runs
  20172. somewhat faster on a Pentium at the expense of more memory.
  20173. On x86-64, '-malign-double' is enabled by default.
  20174. *Warning:* if you use the '-malign-double' switch, structures
  20175. containing the above types are aligned differently than the
  20176. published application binary interface specifications for the
  20177. x86-32 and are not binary compatible with structures in code
  20178. compiled without that switch.
  20179. '-m96bit-long-double'
  20180. '-m128bit-long-double'
  20181. These switches control the size of 'long double' type. The x86-32
  20182. application binary interface specifies the size to be 96 bits, so
  20183. '-m96bit-long-double' is the default in 32-bit mode.
  20184. Modern architectures (Pentium and newer) prefer 'long double' to be
  20185. aligned to an 8- or 16-byte boundary. In arrays or structures
  20186. conforming to the ABI, this is not possible. So specifying
  20187. '-m128bit-long-double' aligns 'long double' to a 16-byte boundary
  20188. by padding the 'long double' with an additional 32-bit zero.
  20189. In the x86-64 compiler, '-m128bit-long-double' is the default
  20190. choice as its ABI specifies that 'long double' is aligned on
  20191. 16-byte boundary.
  20192. Notice that neither of these options enable any extra precision
  20193. over the x87 standard of 80 bits for a 'long double'.
  20194. *Warning:* if you override the default value for your target ABI,
  20195. this changes the size of structures and arrays containing 'long
  20196. double' variables, as well as modifying the function calling
  20197. convention for functions taking 'long double'. Hence they are not
  20198. binary-compatible with code compiled without that switch.
  20199. '-mlong-double-64'
  20200. '-mlong-double-80'
  20201. '-mlong-double-128'
  20202. These switches control the size of 'long double' type. A size of
  20203. 64 bits makes the 'long double' type equivalent to the 'double'
  20204. type. This is the default for 32-bit Bionic C library. A size of
  20205. 128 bits makes the 'long double' type equivalent to the
  20206. '__float128' type. This is the default for 64-bit Bionic C
  20207. library.
  20208. *Warning:* if you override the default value for your target ABI,
  20209. this changes the size of structures and arrays containing 'long
  20210. double' variables, as well as modifying the function calling
  20211. convention for functions taking 'long double'. Hence they are not
  20212. binary-compatible with code compiled without that switch.
  20213. '-malign-data=TYPE'
  20214. Control how GCC aligns variables. Supported values for TYPE are
  20215. 'compat' uses increased alignment value compatible uses GCC 4.8 and
  20216. earlier, 'abi' uses alignment value as specified by the psABI, and
  20217. 'cacheline' uses increased alignment value to match the cache line
  20218. size. 'compat' is the default.
  20219. '-mlarge-data-threshold=THRESHOLD'
  20220. When '-mcmodel=medium' is specified, data objects larger than
  20221. THRESHOLD are placed in the large data section. This value must be
  20222. the same across all objects linked into the binary, and defaults to
  20223. 65535.
  20224. '-mrtd'
  20225. Use a different function-calling convention, in which functions
  20226. that take a fixed number of arguments return with the 'ret NUM'
  20227. instruction, which pops their arguments while returning. This
  20228. saves one instruction in the caller since there is no need to pop
  20229. the arguments there.
  20230. You can specify that an individual function is called with this
  20231. calling sequence with the function attribute 'stdcall'. You can
  20232. also override the '-mrtd' option by using the function attribute
  20233. 'cdecl'. *Note Function Attributes::.
  20234. *Warning:* this calling convention is incompatible with the one
  20235. normally used on Unix, so you cannot use it if you need to call
  20236. libraries compiled with the Unix compiler.
  20237. Also, you must provide function prototypes for all functions that
  20238. take variable numbers of arguments (including 'printf'); otherwise
  20239. incorrect code is generated for calls to those functions.
  20240. In addition, seriously incorrect code results if you call a
  20241. function with too many arguments. (Normally, extra arguments are
  20242. harmlessly ignored.)
  20243. '-mregparm=NUM'
  20244. Control how many registers are used to pass integer arguments. By
  20245. default, no registers are used to pass arguments, and at most 3
  20246. registers can be used. You can control this behavior for a
  20247. specific function by using the function attribute 'regparm'. *Note
  20248. Function Attributes::.
  20249. *Warning:* if you use this switch, and NUM is nonzero, then you
  20250. must build all modules with the same value, including any
  20251. libraries. This includes the system libraries and startup modules.
  20252. '-msseregparm'
  20253. Use SSE register passing conventions for float and double arguments
  20254. and return values. You can control this behavior for a specific
  20255. function by using the function attribute 'sseregparm'. *Note
  20256. Function Attributes::.
  20257. *Warning:* if you use this switch then you must build all modules
  20258. with the same value, including any libraries. This includes the
  20259. system libraries and startup modules.
  20260. '-mvect8-ret-in-mem'
  20261. Return 8-byte vectors in memory instead of MMX registers. This is
  20262. the default on Solaris 8 and 9 and VxWorks to match the ABI of the
  20263. Sun Studio compilers until version 12. Later compiler versions
  20264. (starting with Studio 12 Update 1) follow the ABI used by other x86
  20265. targets, which is the default on Solaris 10 and later. _Only_ use
  20266. this option if you need to remain compatible with existing code
  20267. produced by those previous compiler versions or older versions of
  20268. GCC.
  20269. '-mpc32'
  20270. '-mpc64'
  20271. '-mpc80'
  20272. Set 80387 floating-point precision to 32, 64 or 80 bits. When
  20273. '-mpc32' is specified, the significands of results of
  20274. floating-point operations are rounded to 24 bits (single
  20275. precision); '-mpc64' rounds the significands of results of
  20276. floating-point operations to 53 bits (double precision) and
  20277. '-mpc80' rounds the significands of results of floating-point
  20278. operations to 64 bits (extended double precision), which is the
  20279. default. When this option is used, floating-point operations in
  20280. higher precisions are not available to the programmer without
  20281. setting the FPU control word explicitly.
  20282. Setting the rounding of floating-point operations to less than the
  20283. default 80 bits can speed some programs by 2% or more. Note that
  20284. some mathematical libraries assume that extended-precision (80-bit)
  20285. floating-point operations are enabled by default; routines in such
  20286. libraries could suffer significant loss of accuracy, typically
  20287. through so-called "catastrophic cancellation", when this option is
  20288. used to set the precision to less than extended precision.
  20289. '-mstackrealign'
  20290. Realign the stack at entry. On the x86, the '-mstackrealign'
  20291. option generates an alternate prologue and epilogue that realigns
  20292. the run-time stack if necessary. This supports mixing legacy codes
  20293. that keep 4-byte stack alignment with modern codes that keep
  20294. 16-byte stack alignment for SSE compatibility. See also the
  20295. attribute 'force_align_arg_pointer', applicable to individual
  20296. functions.
  20297. '-mpreferred-stack-boundary=NUM'
  20298. Attempt to keep the stack boundary aligned to a 2 raised to NUM
  20299. byte boundary. If '-mpreferred-stack-boundary' is not specified,
  20300. the default is 4 (16 bytes or 128 bits).
  20301. *Warning:* When generating code for the x86-64 architecture with
  20302. SSE extensions disabled, '-mpreferred-stack-boundary=3' can be used
  20303. to keep the stack boundary aligned to 8 byte boundary. Since
  20304. x86-64 ABI require 16 byte stack alignment, this is ABI
  20305. incompatible and intended to be used in controlled environment
  20306. where stack space is important limitation. This option leads to
  20307. wrong code when functions compiled with 16 byte stack alignment
  20308. (such as functions from a standard library) are called with
  20309. misaligned stack. In this case, SSE instructions may lead to
  20310. misaligned memory access traps. In addition, variable arguments
  20311. are handled incorrectly for 16 byte aligned objects (including x87
  20312. long double and __int128), leading to wrong results. You must
  20313. build all modules with '-mpreferred-stack-boundary=3', including
  20314. any libraries. This includes the system libraries and startup
  20315. modules.
  20316. '-mincoming-stack-boundary=NUM'
  20317. Assume the incoming stack is aligned to a 2 raised to NUM byte
  20318. boundary. If '-mincoming-stack-boundary' is not specified, the one
  20319. specified by '-mpreferred-stack-boundary' is used.
  20320. On Pentium and Pentium Pro, 'double' and 'long double' values
  20321. should be aligned to an 8-byte boundary (see '-malign-double') or
  20322. suffer significant run time performance penalties. On Pentium III,
  20323. the Streaming SIMD Extension (SSE) data type '__m128' may not work
  20324. properly if it is not 16-byte aligned.
  20325. To ensure proper alignment of this values on the stack, the stack
  20326. boundary must be as aligned as that required by any value stored on
  20327. the stack. Further, every function must be generated such that it
  20328. keeps the stack aligned. Thus calling a function compiled with a
  20329. higher preferred stack boundary from a function compiled with a
  20330. lower preferred stack boundary most likely misaligns the stack. It
  20331. is recommended that libraries that use callbacks always use the
  20332. default setting.
  20333. This extra alignment does consume extra stack space, and generally
  20334. increases code size. Code that is sensitive to stack space usage,
  20335. such as embedded systems and operating system kernels, may want to
  20336. reduce the preferred alignment to '-mpreferred-stack-boundary=2'.
  20337. '-mmmx'
  20338. '-msse'
  20339. '-msse2'
  20340. '-msse3'
  20341. '-mssse3'
  20342. '-msse4'
  20343. '-msse4a'
  20344. '-msse4.1'
  20345. '-msse4.2'
  20346. '-mavx'
  20347. '-mavx2'
  20348. '-mavx512f'
  20349. '-mavx512pf'
  20350. '-mavx512er'
  20351. '-mavx512cd'
  20352. '-mavx512vl'
  20353. '-mavx512bw'
  20354. '-mavx512dq'
  20355. '-mavx512ifma'
  20356. '-mavx512vbmi'
  20357. '-msha'
  20358. '-maes'
  20359. '-mpclmul'
  20360. '-mclflushopt'
  20361. '-mclwb'
  20362. '-mfsgsbase'
  20363. '-mrdrnd'
  20364. '-mf16c'
  20365. '-mfma'
  20366. '-mpconfig'
  20367. '-mwbnoinvd'
  20368. '-mfma4'
  20369. '-mprfchw'
  20370. '-mrdpid'
  20371. '-mprefetchwt1'
  20372. '-mrdseed'
  20373. '-msgx'
  20374. '-mxop'
  20375. '-mlwp'
  20376. '-m3dnow'
  20377. '-m3dnowa'
  20378. '-mpopcnt'
  20379. '-mabm'
  20380. '-madx'
  20381. '-mbmi'
  20382. '-mbmi2'
  20383. '-mlzcnt'
  20384. '-mfxsr'
  20385. '-mxsave'
  20386. '-mxsaveopt'
  20387. '-mxsavec'
  20388. '-mxsaves'
  20389. '-mrtm'
  20390. '-mhle'
  20391. '-mtbm'
  20392. '-mmpx'
  20393. '-mmwaitx'
  20394. '-mclzero'
  20395. '-mpku'
  20396. '-mavx512vbmi2'
  20397. '-mgfni'
  20398. '-mvaes'
  20399. '-mvpclmulqdq'
  20400. '-mavx512bitalg'
  20401. '-mmovdiri'
  20402. '-mmovdir64b'
  20403. '-mavx512vpopcntdq'
  20404. '-mavx5124fmaps'
  20405. '-mavx512vnni'
  20406. '-mavx5124vnniw'
  20407. These switches enable the use of instructions in the MMX, SSE,
  20408. SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F,
  20409. AVX512PF, AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ,
  20410. AVX512IFMA, AVX512VBMI, SHA, AES, PCLMUL, CLFLUSHOPT, CLWB,
  20411. FSGSBASE, RDRND, F16C, FMA, PCONFIG, WBNOINVD, FMA4, PREFETCHW,
  20412. RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP, 3DNow!, enhanced 3DNow!,
  20413. POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE, XSAVEOPT, XSAVEC,
  20414. XSAVES, RTM, HLE, TBM, MPX, MWAITX, CLZERO, PKU, AVX512VBMI2, GFNI,
  20415. VAES, VPCLMULQDQ, AVX512BITALG, MOVDIRI, MOVDIR64B,
  20416. AVX512VPOPCNTDQ, AVX5124FMAPS, AVX512VNNI, or AVX5124VNNIW extended
  20417. instruction sets. Each has a corresponding '-mno-' option to
  20418. disable use of these instructions.
  20419. These extensions are also available as built-in functions: see
  20420. *note x86 Built-in Functions::, for details of the functions
  20421. enabled and disabled by these switches.
  20422. To generate SSE/SSE2 instructions automatically from floating-point
  20423. code (as opposed to 387 instructions), see '-mfpmath=sse'.
  20424. GCC depresses SSEx instructions when '-mavx' is used. Instead, it
  20425. generates new AVX instructions or AVX equivalence for all SSEx
  20426. instructions when needed.
  20427. These options enable GCC to use these extended instructions in
  20428. generated code, even without '-mfpmath=sse'. Applications that
  20429. perform run-time CPU detection must compile separate files for each
  20430. supported architecture, using the appropriate flags. In
  20431. particular, the file containing the CPU detection code should be
  20432. compiled without these options.
  20433. '-mdump-tune-features'
  20434. This option instructs GCC to dump the names of the x86 performance
  20435. tuning features and default settings. The names can be used in
  20436. '-mtune-ctrl=FEATURE-LIST'.
  20437. '-mtune-ctrl=FEATURE-LIST'
  20438. This option is used to do fine grain control of x86 code generation
  20439. features. FEATURE-LIST is a comma separated list of FEATURE names.
  20440. See also '-mdump-tune-features'. When specified, the FEATURE is
  20441. turned on if it is not preceded with '^', otherwise, it is turned
  20442. off. '-mtune-ctrl=FEATURE-LIST' is intended to be used by GCC
  20443. developers. Using it may lead to code paths not covered by testing
  20444. and can potentially result in compiler ICEs or runtime errors.
  20445. '-mno-default'
  20446. This option instructs GCC to turn off all tunable features. See
  20447. also '-mtune-ctrl=FEATURE-LIST' and '-mdump-tune-features'.
  20448. '-mcld'
  20449. This option instructs GCC to emit a 'cld' instruction in the
  20450. prologue of functions that use string instructions. String
  20451. instructions depend on the DF flag to select between autoincrement
  20452. or autodecrement mode. While the ABI specifies the DF flag to be
  20453. cleared on function entry, some operating systems violate this
  20454. specification by not clearing the DF flag in their exception
  20455. dispatchers. The exception handler can be invoked with the DF flag
  20456. set, which leads to wrong direction mode when string instructions
  20457. are used. This option can be enabled by default on 32-bit x86
  20458. targets by configuring GCC with the '--enable-cld' configure
  20459. option. Generation of 'cld' instructions can be suppressed with
  20460. the '-mno-cld' compiler option in this case.
  20461. '-mvzeroupper'
  20462. This option instructs GCC to emit a 'vzeroupper' instruction before
  20463. a transfer of control flow out of the function to minimize the AVX
  20464. to SSE transition penalty as well as remove unnecessary 'zeroupper'
  20465. intrinsics.
  20466. '-mprefer-avx128'
  20467. This option instructs GCC to use 128-bit AVX instructions instead
  20468. of 256-bit AVX instructions in the auto-vectorizer.
  20469. '-mprefer-vector-width=OPT'
  20470. This option instructs GCC to use OPT-bit vector width in
  20471. instructions instead of default on the selected platform.
  20472. 'none'
  20473. No extra limitations applied to GCC other than defined by the
  20474. selected platform.
  20475. '128'
  20476. Prefer 128-bit vector width for instructions.
  20477. '256'
  20478. Prefer 256-bit vector width for instructions.
  20479. '512'
  20480. Prefer 512-bit vector width for instructions.
  20481. '-mcx16'
  20482. This option enables GCC to generate 'CMPXCHG16B' instructions in
  20483. 64-bit code to implement compare-and-exchange operations on 16-byte
  20484. aligned 128-bit objects. This is useful for atomic updates of data
  20485. structures exceeding one machine word in size. The compiler uses
  20486. this instruction to implement *note __sync Builtins::. However,
  20487. for *note __atomic Builtins:: operating on 128-bit integers, a
  20488. library call is always used.
  20489. '-msahf'
  20490. This option enables generation of 'SAHF' instructions in 64-bit
  20491. code. Early Intel Pentium 4 CPUs with Intel 64 support, prior to
  20492. the introduction of Pentium 4 G1 step in December 2005, lacked the
  20493. 'LAHF' and 'SAHF' instructions which are supported by AMD64. These
  20494. are load and store instructions, respectively, for certain status
  20495. flags. In 64-bit mode, the 'SAHF' instruction is used to optimize
  20496. 'fmod', 'drem', and 'remainder' built-in functions; see *note Other
  20497. Builtins:: for details.
  20498. '-mmovbe'
  20499. This option enables use of the 'movbe' instruction to implement
  20500. '__builtin_bswap32' and '__builtin_bswap64'.
  20501. '-mshstk'
  20502. The '-mshstk' option enables shadow stack built-in functions from
  20503. x86 Control-flow Enforcement Technology (CET).
  20504. '-mcrc32'
  20505. This option enables built-in functions '__builtin_ia32_crc32qi',
  20506. '__builtin_ia32_crc32hi', '__builtin_ia32_crc32si' and
  20507. '__builtin_ia32_crc32di' to generate the 'crc32' machine
  20508. instruction.
  20509. '-mrecip'
  20510. This option enables use of 'RCPSS' and 'RSQRTSS' instructions (and
  20511. their vectorized variants 'RCPPS' and 'RSQRTPS') with an additional
  20512. Newton-Raphson step to increase precision instead of 'DIVSS' and
  20513. 'SQRTSS' (and their vectorized variants) for single-precision
  20514. floating-point arguments. These instructions are generated only
  20515. when '-funsafe-math-optimizations' is enabled together with
  20516. '-ffinite-math-only' and '-fno-trapping-math'. Note that while the
  20517. throughput of the sequence is higher than the throughput of the
  20518. non-reciprocal instruction, the precision of the sequence can be
  20519. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals
  20520. 0.99999994).
  20521. Note that GCC implements '1.0f/sqrtf(X)' in terms of 'RSQRTSS' (or
  20522. 'RSQRTPS') already with '-ffast-math' (or the above option
  20523. combination), and doesn't need '-mrecip'.
  20524. Also note that GCC emits the above sequence with additional
  20525. Newton-Raphson step for vectorized single-float division and
  20526. vectorized 'sqrtf(X)' already with '-ffast-math' (or the above
  20527. option combination), and doesn't need '-mrecip'.
  20528. '-mrecip=OPT'
  20529. This option controls which reciprocal estimate instructions may be
  20530. used. OPT is a comma-separated list of options, which may be
  20531. preceded by a '!' to invert the option:
  20532. 'all'
  20533. Enable all estimate instructions.
  20534. 'default'
  20535. Enable the default instructions, equivalent to '-mrecip'.
  20536. 'none'
  20537. Disable all estimate instructions, equivalent to '-mno-recip'.
  20538. 'div'
  20539. Enable the approximation for scalar division.
  20540. 'vec-div'
  20541. Enable the approximation for vectorized division.
  20542. 'sqrt'
  20543. Enable the approximation for scalar square root.
  20544. 'vec-sqrt'
  20545. Enable the approximation for vectorized square root.
  20546. So, for example, '-mrecip=all,!sqrt' enables all of the reciprocal
  20547. approximations, except for square root.
  20548. '-mveclibabi=TYPE'
  20549. Specifies the ABI type to use for vectorizing intrinsics using an
  20550. external library. Supported values for TYPE are 'svml' for the
  20551. Intel short vector math library and 'acml' for the AMD math core
  20552. library. To use this option, both '-ftree-vectorize' and
  20553. '-funsafe-math-optimizations' have to be enabled, and an SVML or
  20554. ACML ABI-compatible library must be specified at link time.
  20555. GCC currently emits calls to 'vmldExp2', 'vmldLn2', 'vmldLog102',
  20556. 'vmldPow2', 'vmldTanh2', 'vmldTan2', 'vmldAtan2', 'vmldAtanh2',
  20557. 'vmldCbrt2', 'vmldSinh2', 'vmldSin2', 'vmldAsinh2', 'vmldAsin2',
  20558. 'vmldCosh2', 'vmldCos2', 'vmldAcosh2', 'vmldAcos2', 'vmlsExp4',
  20559. 'vmlsLn4', 'vmlsLog104', 'vmlsPow4', 'vmlsTanh4', 'vmlsTan4',
  20560. 'vmlsAtan4', 'vmlsAtanh4', 'vmlsCbrt4', 'vmlsSinh4', 'vmlsSin4',
  20561. 'vmlsAsinh4', 'vmlsAsin4', 'vmlsCosh4', 'vmlsCos4', 'vmlsAcosh4'
  20562. and 'vmlsAcos4' for corresponding function type when
  20563. '-mveclibabi=svml' is used, and '__vrd2_sin', '__vrd2_cos',
  20564. '__vrd2_exp', '__vrd2_log', '__vrd2_log2', '__vrd2_log10',
  20565. '__vrs4_sinf', '__vrs4_cosf', '__vrs4_expf', '__vrs4_logf',
  20566. '__vrs4_log2f', '__vrs4_log10f' and '__vrs4_powf' for the
  20567. corresponding function type when '-mveclibabi=acml' is used.
  20568. '-mabi=NAME'
  20569. Generate code for the specified calling convention. Permissible
  20570. values are 'sysv' for the ABI used on GNU/Linux and other systems,
  20571. and 'ms' for the Microsoft ABI. The default is to use the Microsoft
  20572. ABI when targeting Microsoft Windows and the SysV ABI on all other
  20573. systems. You can control this behavior for specific functions by
  20574. using the function attributes 'ms_abi' and 'sysv_abi'. *Note
  20575. Function Attributes::.
  20576. '-mforce-indirect-call'
  20577. Force all calls to functions to be indirect. This is useful when
  20578. using Intel Processor Trace where it generates more precise timing
  20579. information for function calls.
  20580. '-mcall-ms2sysv-xlogues'
  20581. Due to differences in 64-bit ABIs, any Microsoft ABI function that
  20582. calls a System V ABI function must consider RSI, RDI and XMM6-15 as
  20583. clobbered. By default, the code for saving and restoring these
  20584. registers is emitted inline, resulting in fairly lengthy prologues
  20585. and epilogues. Using '-mcall-ms2sysv-xlogues' emits prologues and
  20586. epilogues that use stubs in the static portion of libgcc to perform
  20587. these saves and restores, thus reducing function size at the cost
  20588. of a few extra instructions.
  20589. '-mtls-dialect=TYPE'
  20590. Generate code to access thread-local storage using the 'gnu' or
  20591. 'gnu2' conventions. 'gnu' is the conservative default; 'gnu2' is
  20592. more efficient, but it may add compile- and run-time requirements
  20593. that cannot be satisfied on all systems.
  20594. '-mpush-args'
  20595. '-mno-push-args'
  20596. Use PUSH operations to store outgoing parameters. This method is
  20597. shorter and usually equally fast as method using SUB/MOV operations
  20598. and is enabled by default. In some cases disabling it may improve
  20599. performance because of improved scheduling and reduced
  20600. dependencies.
  20601. '-maccumulate-outgoing-args'
  20602. If enabled, the maximum amount of space required for outgoing
  20603. arguments is computed in the function prologue. This is faster on
  20604. most modern CPUs because of reduced dependencies, improved
  20605. scheduling and reduced stack usage when the preferred stack
  20606. boundary is not equal to 2. The drawback is a notable increase in
  20607. code size. This switch implies '-mno-push-args'.
  20608. '-mthreads'
  20609. Support thread-safe exception handling on MinGW. Programs that rely
  20610. on thread-safe exception handling must compile and link all code
  20611. with the '-mthreads' option. When compiling, '-mthreads' defines
  20612. '-D_MT'; when linking, it links in a special thread helper library
  20613. '-lmingwthrd' which cleans up per-thread exception-handling data.
  20614. '-mms-bitfields'
  20615. '-mno-ms-bitfields'
  20616. Enable/disable bit-field layout compatible with the native
  20617. Microsoft Windows compiler.
  20618. If 'packed' is used on a structure, or if bit-fields are used, it
  20619. may be that the Microsoft ABI lays out the structure differently
  20620. than the way GCC normally does. Particularly when moving packed
  20621. data between functions compiled with GCC and the native Microsoft
  20622. compiler (either via function call or as data in a file), it may be
  20623. necessary to access either format.
  20624. This option is enabled by default for Microsoft Windows targets.
  20625. This behavior can also be controlled locally by use of variable or
  20626. type attributes. For more information, see *note x86 Variable
  20627. Attributes:: and *note x86 Type Attributes::.
  20628. The Microsoft structure layout algorithm is fairly simple with the
  20629. exception of the bit-field packing. The padding and alignment of
  20630. members of structures and whether a bit-field can straddle a
  20631. storage-unit boundary are determine by these rules:
  20632. 1. Structure members are stored sequentially in the order in
  20633. which they are declared: the first member has the lowest
  20634. memory address and the last member the highest.
  20635. 2. Every data object has an alignment requirement. The alignment
  20636. requirement for all data except structures, unions, and arrays
  20637. is either the size of the object or the current packing size
  20638. (specified with either the 'aligned' attribute or the 'pack'
  20639. pragma), whichever is less. For structures, unions, and
  20640. arrays, the alignment requirement is the largest alignment
  20641. requirement of its members. Every object is allocated an
  20642. offset so that:
  20643. offset % alignment_requirement == 0
  20644. 3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte
  20645. allocation unit if the integral types are the same size and if
  20646. the next bit-field fits into the current allocation unit
  20647. without crossing the boundary imposed by the common alignment
  20648. requirements of the bit-fields.
  20649. MSVC interprets zero-length bit-fields in the following ways:
  20650. 1. If a zero-length bit-field is inserted between two bit-fields
  20651. that are normally coalesced, the bit-fields are not coalesced.
  20652. For example:
  20653. struct
  20654. {
  20655. unsigned long bf_1 : 12;
  20656. unsigned long : 0;
  20657. unsigned long bf_2 : 12;
  20658. } t1;
  20659. The size of 't1' is 8 bytes with the zero-length bit-field.
  20660. If the zero-length bit-field were removed, 't1''s size would
  20661. be 4 bytes.
  20662. 2. If a zero-length bit-field is inserted after a bit-field,
  20663. 'foo', and the alignment of the zero-length bit-field is
  20664. greater than the member that follows it, 'bar', 'bar' is
  20665. aligned as the type of the zero-length bit-field.
  20666. For example:
  20667. struct
  20668. {
  20669. char foo : 4;
  20670. short : 0;
  20671. char bar;
  20672. } t2;
  20673. struct
  20674. {
  20675. char foo : 4;
  20676. short : 0;
  20677. double bar;
  20678. } t3;
  20679. For 't2', 'bar' is placed at offset 2, rather than offset 1.
  20680. Accordingly, the size of 't2' is 4. For 't3', the zero-length
  20681. bit-field does not affect the alignment of 'bar' or, as a
  20682. result, the size of the structure.
  20683. Taking this into account, it is important to note the
  20684. following:
  20685. 1. If a zero-length bit-field follows a normal bit-field,
  20686. the type of the zero-length bit-field may affect the
  20687. alignment of the structure as whole. For example, 't2'
  20688. has a size of 4 bytes, since the zero-length bit-field
  20689. follows a normal bit-field, and is of type short.
  20690. 2. Even if a zero-length bit-field is not followed by a
  20691. normal bit-field, it may still affect the alignment of
  20692. the structure:
  20693. struct
  20694. {
  20695. char foo : 6;
  20696. long : 0;
  20697. } t4;
  20698. Here, 't4' takes up 4 bytes.
  20699. 3. Zero-length bit-fields following non-bit-field members are
  20700. ignored:
  20701. struct
  20702. {
  20703. char foo;
  20704. long : 0;
  20705. char bar;
  20706. } t5;
  20707. Here, 't5' takes up 2 bytes.
  20708. '-mno-align-stringops'
  20709. Do not align the destination of inlined string operations. This
  20710. switch reduces code size and improves performance in case the
  20711. destination is already aligned, but GCC doesn't know about it.
  20712. '-minline-all-stringops'
  20713. By default GCC inlines string operations only when the destination
  20714. is known to be aligned to least a 4-byte boundary. This enables
  20715. more inlining and increases code size, but may improve performance
  20716. of code that depends on fast 'memcpy', 'strlen', and 'memset' for
  20717. short lengths.
  20718. '-minline-stringops-dynamically'
  20719. For string operations of unknown size, use run-time checks with
  20720. inline code for small blocks and a library call for large blocks.
  20721. '-mstringop-strategy=ALG'
  20722. Override the internal decision heuristic for the particular
  20723. algorithm to use for inlining string operations. The allowed
  20724. values for ALG are:
  20725. 'rep_byte'
  20726. 'rep_4byte'
  20727. 'rep_8byte'
  20728. Expand using i386 'rep' prefix of the specified size.
  20729. 'byte_loop'
  20730. 'loop'
  20731. 'unrolled_loop'
  20732. Expand into an inline loop.
  20733. 'libcall'
  20734. Always use a library call.
  20735. '-mmemcpy-strategy=STRATEGY'
  20736. Override the internal decision heuristic to decide if
  20737. '__builtin_memcpy' should be inlined and what inline algorithm to
  20738. use when the expected size of the copy operation is known.
  20739. STRATEGY is a comma-separated list of ALG:MAX_SIZE:DEST_ALIGN
  20740. triplets. ALG is specified in '-mstringop-strategy', MAX_SIZE
  20741. specifies the max byte size with which inline algorithm ALG is
  20742. allowed. For the last triplet, the MAX_SIZE must be '-1'. The
  20743. MAX_SIZE of the triplets in the list must be specified in
  20744. increasing order. The minimal byte size for ALG is '0' for the
  20745. first triplet and 'MAX_SIZE + 1' of the preceding range.
  20746. '-mmemset-strategy=STRATEGY'
  20747. The option is similar to '-mmemcpy-strategy=' except that it is to
  20748. control '__builtin_memset' expansion.
  20749. '-momit-leaf-frame-pointer'
  20750. Don't keep the frame pointer in a register for leaf functions.
  20751. This avoids the instructions to save, set up, and restore frame
  20752. pointers and makes an extra register available in leaf functions.
  20753. The option '-fomit-leaf-frame-pointer' removes the frame pointer
  20754. for leaf functions, which might make debugging harder.
  20755. '-mtls-direct-seg-refs'
  20756. '-mno-tls-direct-seg-refs'
  20757. Controls whether TLS variables may be accessed with offsets from
  20758. the TLS segment register ('%gs' for 32-bit, '%fs' for 64-bit), or
  20759. whether the thread base pointer must be added. Whether or not this
  20760. is valid depends on the operating system, and whether it maps the
  20761. segment to cover the entire TLS area.
  20762. For systems that use the GNU C Library, the default is on.
  20763. '-msse2avx'
  20764. '-mno-sse2avx'
  20765. Specify that the assembler should encode SSE instructions with VEX
  20766. prefix. The option '-mavx' turns this on by default.
  20767. '-mfentry'
  20768. '-mno-fentry'
  20769. If profiling is active ('-pg'), put the profiling counter call
  20770. before the prologue. Note: On x86 architectures the attribute
  20771. 'ms_hook_prologue' isn't possible at the moment for '-mfentry' and
  20772. '-pg'.
  20773. '-mrecord-mcount'
  20774. '-mno-record-mcount'
  20775. If profiling is active ('-pg'), generate a __mcount_loc section
  20776. that contains pointers to each profiling call. This is useful for
  20777. automatically patching and out calls.
  20778. '-mnop-mcount'
  20779. '-mno-nop-mcount'
  20780. If profiling is active ('-pg'), generate the calls to the profiling
  20781. functions as NOPs. This is useful when they should be patched in
  20782. later dynamically. This is likely only useful together with
  20783. '-mrecord-mcount'.
  20784. '-mskip-rax-setup'
  20785. '-mno-skip-rax-setup'
  20786. When generating code for the x86-64 architecture with SSE
  20787. extensions disabled, '-mskip-rax-setup' can be used to skip setting
  20788. up RAX register when there are no variable arguments passed in
  20789. vector registers.
  20790. *Warning:* Since RAX register is used to avoid unnecessarily saving
  20791. vector registers on stack when passing variable arguments, the
  20792. impacts of this option are callees may waste some stack space,
  20793. misbehave or jump to a random location. GCC 4.4 or newer don't
  20794. have those issues, regardless the RAX register value.
  20795. '-m8bit-idiv'
  20796. '-mno-8bit-idiv'
  20797. On some processors, like Intel Atom, 8-bit unsigned integer divide
  20798. is much faster than 32-bit/64-bit integer divide. This option
  20799. generates a run-time check. If both dividend and divisor are
  20800. within range of 0 to 255, 8-bit unsigned integer divide is used
  20801. instead of 32-bit/64-bit integer divide.
  20802. '-mavx256-split-unaligned-load'
  20803. '-mavx256-split-unaligned-store'
  20804. Split 32-byte AVX unaligned load and store.
  20805. '-mstack-protector-guard=GUARD'
  20806. '-mstack-protector-guard-reg=REG'
  20807. '-mstack-protector-guard-offset=OFFSET'
  20808. Generate stack protection code using canary at GUARD. Supported
  20809. locations are 'global' for global canary or 'tls' for per-thread
  20810. canary in the TLS block (the default). This option has effect only
  20811. when '-fstack-protector' or '-fstack-protector-all' is specified.
  20812. With the latter choice the options
  20813. '-mstack-protector-guard-reg=REG' and
  20814. '-mstack-protector-guard-offset=OFFSET' furthermore specify which
  20815. segment register ('%fs' or '%gs') to use as base register for
  20816. reading the canary, and from what offset from that base register.
  20817. The default for those is as specified in the relevant ABI.
  20818. '-mmitigate-rop'
  20819. Try to avoid generating code sequences that contain unintended
  20820. return opcodes, to mitigate against certain forms of attack. At
  20821. the moment, this option is limited in what it can do and should not
  20822. be relied on to provide serious protection.
  20823. '-mgeneral-regs-only'
  20824. Generate code that uses only the general-purpose registers. This
  20825. prevents the compiler from using floating-point, vector, mask and
  20826. bound registers.
  20827. '-mindirect-branch=CHOICE'
  20828. Convert indirect call and jump with CHOICE. The default is 'keep',
  20829. which keeps indirect call and jump unmodified. 'thunk' converts
  20830. indirect call and jump to call and return thunk. 'thunk-inline'
  20831. converts indirect call and jump to inlined call and return thunk.
  20832. 'thunk-extern' converts indirect call and jump to external call and
  20833. return thunk provided in a separate object file. You can control
  20834. this behavior for a specific function by using the function
  20835. attribute 'indirect_branch'. *Note Function Attributes::.
  20836. Note that '-mcmodel=large' is incompatible with
  20837. '-mindirect-branch=thunk' and '-mindirect-branch=thunk-extern'
  20838. since the thunk function may not be reachable in the large code
  20839. model.
  20840. Note that '-mindirect-branch=thunk-extern' is incompatible with
  20841. '-fcf-protection=branch' and '-fcheck-pointer-bounds' since the
  20842. external thunk can not be modified to disable control-flow check.
  20843. '-mfunction-return=CHOICE'
  20844. Convert function return with CHOICE. The default is 'keep', which
  20845. keeps function return unmodified. 'thunk' converts function return
  20846. to call and return thunk. 'thunk-inline' converts function return
  20847. to inlined call and return thunk. 'thunk-extern' converts function
  20848. return to external call and return thunk provided in a separate
  20849. object file. You can control this behavior for a specific function
  20850. by using the function attribute 'function_return'. *Note Function
  20851. Attributes::.
  20852. Note that '-mcmodel=large' is incompatible with
  20853. '-mfunction-return=thunk' and '-mfunction-return=thunk-extern'
  20854. since the thunk function may not be reachable in the large code
  20855. model.
  20856. '-mindirect-branch-register'
  20857. Force indirect call and jump via register.
  20858. These '-m' switches are supported in addition to the above on x86-64
  20859. processors in 64-bit environments.
  20860. '-m32'
  20861. '-m64'
  20862. '-mx32'
  20863. '-m16'
  20864. '-miamcu'
  20865. Generate code for a 16-bit, 32-bit or 64-bit environment. The
  20866. '-m32' option sets 'int', 'long', and pointer types to 32 bits, and
  20867. generates code that runs on any i386 system.
  20868. The '-m64' option sets 'int' to 32 bits and 'long' and pointer
  20869. types to 64 bits, and generates code for the x86-64 architecture.
  20870. For Darwin only the '-m64' option also turns off the '-fno-pic' and
  20871. '-mdynamic-no-pic' options.
  20872. The '-mx32' option sets 'int', 'long', and pointer types to 32
  20873. bits, and generates code for the x86-64 architecture.
  20874. The '-m16' option is the same as '-m32', except for that it outputs
  20875. the '.code16gcc' assembly directive at the beginning of the
  20876. assembly output so that the binary can run in 16-bit mode.
  20877. The '-miamcu' option generates code which conforms to Intel MCU
  20878. psABI. It requires the '-m32' option to be turned on.
  20879. '-mno-red-zone'
  20880. Do not use a so-called "red zone" for x86-64 code. The red zone is
  20881. mandated by the x86-64 ABI; it is a 128-byte area beyond the
  20882. location of the stack pointer that is not modified by signal or
  20883. interrupt handlers and therefore can be used for temporary data
  20884. without adjusting the stack pointer. The flag '-mno-red-zone'
  20885. disables this red zone.
  20886. '-mcmodel=small'
  20887. Generate code for the small code model: the program and its symbols
  20888. must be linked in the lower 2 GB of the address space. Pointers
  20889. are 64 bits. Programs can be statically or dynamically linked.
  20890. This is the default code model.
  20891. '-mcmodel=kernel'
  20892. Generate code for the kernel code model. The kernel runs in the
  20893. negative 2 GB of the address space. This model has to be used for
  20894. Linux kernel code.
  20895. '-mcmodel=medium'
  20896. Generate code for the medium model: the program is linked in the
  20897. lower 2 GB of the address space. Small symbols are also placed
  20898. there. Symbols with sizes larger than '-mlarge-data-threshold' are
  20899. put into large data or BSS sections and can be located above 2GB.
  20900. Programs can be statically or dynamically linked.
  20901. '-mcmodel=large'
  20902. Generate code for the large model. This model makes no assumptions
  20903. about addresses and sizes of sections.
  20904. '-maddress-mode=long'
  20905. Generate code for long address mode. This is only supported for
  20906. 64-bit and x32 environments. It is the default address mode for
  20907. 64-bit environments.
  20908. '-maddress-mode=short'
  20909. Generate code for short address mode. This is only supported for
  20910. 32-bit and x32 environments. It is the default address mode for
  20911. 32-bit and x32 environments.
  20912. 
  20913. File: gcc.info, Node: x86 Windows Options, Next: Xstormy16 Options, Prev: x86 Options, Up: Submodel Options
  20914. 3.18.57 x86 Windows Options
  20915. ---------------------------
  20916. These additional options are available for Microsoft Windows targets:
  20917. '-mconsole'
  20918. This option specifies that a console application is to be
  20919. generated, by instructing the linker to set the PE header subsystem
  20920. type required for console applications. This option is available
  20921. for Cygwin and MinGW targets and is enabled by default on those
  20922. targets.
  20923. '-mdll'
  20924. This option is available for Cygwin and MinGW targets. It
  20925. specifies that a DLL--a dynamic link library--is to be generated,
  20926. enabling the selection of the required runtime startup object and
  20927. entry point.
  20928. '-mnop-fun-dllimport'
  20929. This option is available for Cygwin and MinGW targets. It
  20930. specifies that the 'dllimport' attribute should be ignored.
  20931. '-mthread'
  20932. This option is available for MinGW targets. It specifies that
  20933. MinGW-specific thread support is to be used.
  20934. '-municode'
  20935. This option is available for MinGW-w64 targets. It causes the
  20936. 'UNICODE' preprocessor macro to be predefined, and chooses
  20937. Unicode-capable runtime startup code.
  20938. '-mwin32'
  20939. This option is available for Cygwin and MinGW targets. It
  20940. specifies that the typical Microsoft Windows predefined macros are
  20941. to be set in the pre-processor, but does not influence the choice
  20942. of runtime library/startup code.
  20943. '-mwindows'
  20944. This option is available for Cygwin and MinGW targets. It
  20945. specifies that a GUI application is to be generated by instructing
  20946. the linker to set the PE header subsystem type appropriately.
  20947. '-fno-set-stack-executable'
  20948. This option is available for MinGW targets. It specifies that the
  20949. executable flag for the stack used by nested functions isn't set.
  20950. This is necessary for binaries running in kernel mode of Microsoft
  20951. Windows, as there the User32 API, which is used to set executable
  20952. privileges, isn't available.
  20953. '-fwritable-relocated-rdata'
  20954. This option is available for MinGW and Cygwin targets. It
  20955. specifies that relocated-data in read-only section is put into the
  20956. '.data' section. This is a necessary for older runtimes not
  20957. supporting modification of '.rdata' sections for pseudo-relocation.
  20958. '-mpe-aligned-commons'
  20959. This option is available for Cygwin and MinGW targets. It
  20960. specifies that the GNU extension to the PE file format that permits
  20961. the correct alignment of COMMON variables should be used when
  20962. generating code. It is enabled by default if GCC detects that the
  20963. target assembler found during configuration supports the feature.
  20964. See also under *note x86 Options:: for standard options.
  20965. 
  20966. File: gcc.info, Node: Xstormy16 Options, Next: Xtensa Options, Prev: x86 Windows Options, Up: Submodel Options
  20967. 3.18.58 Xstormy16 Options
  20968. -------------------------
  20969. These options are defined for Xstormy16:
  20970. '-msim'
  20971. Choose startup files and linker script suitable for the simulator.
  20972. 
  20973. File: gcc.info, Node: Xtensa Options, Next: zSeries Options, Prev: Xstormy16 Options, Up: Submodel Options
  20974. 3.18.59 Xtensa Options
  20975. ----------------------
  20976. These options are supported for Xtensa targets:
  20977. '-mconst16'
  20978. '-mno-const16'
  20979. Enable or disable use of 'CONST16' instructions for loading
  20980. constant values. The 'CONST16' instruction is currently not a
  20981. standard option from Tensilica. When enabled, 'CONST16'
  20982. instructions are always used in place of the standard 'L32R'
  20983. instructions. The use of 'CONST16' is enabled by default only if
  20984. the 'L32R' instruction is not available.
  20985. '-mfused-madd'
  20986. '-mno-fused-madd'
  20987. Enable or disable use of fused multiply/add and multiply/subtract
  20988. instructions in the floating-point option. This has no effect if
  20989. the floating-point option is not also enabled. Disabling fused
  20990. multiply/add and multiply/subtract instructions forces the compiler
  20991. to use separate instructions for the multiply and add/subtract
  20992. operations. This may be desirable in some cases where strict IEEE
  20993. 754-compliant results are required: the fused multiply add/subtract
  20994. instructions do not round the intermediate result, thereby
  20995. producing results with _more_ bits of precision than specified by
  20996. the IEEE standard. Disabling fused multiply add/subtract
  20997. instructions also ensures that the program output is not sensitive
  20998. to the compiler's ability to combine multiply and add/subtract
  20999. operations.
  21000. '-mserialize-volatile'
  21001. '-mno-serialize-volatile'
  21002. When this option is enabled, GCC inserts 'MEMW' instructions before
  21003. 'volatile' memory references to guarantee sequential consistency.
  21004. The default is '-mserialize-volatile'. Use
  21005. '-mno-serialize-volatile' to omit the 'MEMW' instructions.
  21006. '-mforce-no-pic'
  21007. For targets, like GNU/Linux, where all user-mode Xtensa code must
  21008. be position-independent code (PIC), this option disables PIC for
  21009. compiling kernel code.
  21010. '-mtext-section-literals'
  21011. '-mno-text-section-literals'
  21012. These options control the treatment of literal pools. The default
  21013. is '-mno-text-section-literals', which places literals in a
  21014. separate section in the output file. This allows the literal pool
  21015. to be placed in a data RAM/ROM, and it also allows the linker to
  21016. combine literal pools from separate object files to remove
  21017. redundant literals and improve code size. With
  21018. '-mtext-section-literals', the literals are interspersed in the
  21019. text section in order to keep them as close as possible to their
  21020. references. This may be necessary for large assembly files.
  21021. Literals for each function are placed right before that function.
  21022. '-mauto-litpools'
  21023. '-mno-auto-litpools'
  21024. These options control the treatment of literal pools. The default
  21025. is '-mno-auto-litpools', which places literals in a separate
  21026. section in the output file unless '-mtext-section-literals' is
  21027. used. With '-mauto-litpools' the literals are interspersed in the
  21028. text section by the assembler. Compiler does not produce explicit
  21029. '.literal' directives and loads literals into registers with 'MOVI'
  21030. instructions instead of 'L32R' to let the assembler do relaxation
  21031. and place literals as necessary. This option allows assembler to
  21032. create several literal pools per function and assemble very big
  21033. functions, which may not be possible with
  21034. '-mtext-section-literals'.
  21035. '-mtarget-align'
  21036. '-mno-target-align'
  21037. When this option is enabled, GCC instructs the assembler to
  21038. automatically align instructions to reduce branch penalties at the
  21039. expense of some code density. The assembler attempts to widen
  21040. density instructions to align branch targets and the instructions
  21041. following call instructions. If there are not enough preceding
  21042. safe density instructions to align a target, no widening is
  21043. performed. The default is '-mtarget-align'. These options do not
  21044. affect the treatment of auto-aligned instructions like 'LOOP',
  21045. which the assembler always aligns, either by widening density
  21046. instructions or by inserting NOP instructions.
  21047. '-mlongcalls'
  21048. '-mno-longcalls'
  21049. When this option is enabled, GCC instructs the assembler to
  21050. translate direct calls to indirect calls unless it can determine
  21051. that the target of a direct call is in the range allowed by the
  21052. call instruction. This translation typically occurs for calls to
  21053. functions in other source files. Specifically, the assembler
  21054. translates a direct 'CALL' instruction into an 'L32R' followed by a
  21055. 'CALLX' instruction. The default is '-mno-longcalls'. This option
  21056. should be used in programs where the call target can potentially be
  21057. out of range. This option is implemented in the assembler, not the
  21058. compiler, so the assembly code generated by GCC still shows direct
  21059. call instructions--look at the disassembled object code to see the
  21060. actual instructions. Note that the assembler uses an indirect call
  21061. for every cross-file call, not just those that really are out of
  21062. range.
  21063. 
  21064. File: gcc.info, Node: zSeries Options, Prev: Xtensa Options, Up: Submodel Options
  21065. 3.18.60 zSeries Options
  21066. -----------------------
  21067. These are listed under *Note S/390 and zSeries Options::.
  21068. 
  21069. File: gcc.info, Node: Spec Files, Next: Environment Variables, Prev: Submodel Options, Up: Invoking GCC
  21070. 3.19 Specifying Subprocesses and the Switches to Pass to Them
  21071. =============================================================
  21072. 'gcc' is a driver program. It performs its job by invoking a sequence
  21073. of other programs to do the work of compiling, assembling and linking.
  21074. GCC interprets its command-line parameters and uses these to deduce
  21075. which programs it should invoke, and which command-line options it ought
  21076. to place on their command lines. This behavior is controlled by "spec
  21077. strings". In most cases there is one spec string for each program that
  21078. GCC can invoke, but a few programs have multiple spec strings to control
  21079. their behavior. The spec strings built into GCC can be overridden by
  21080. using the '-specs=' command-line switch to specify a spec file.
  21081. "Spec files" are plain-text files that are used to construct spec
  21082. strings. They consist of a sequence of directives separated by blank
  21083. lines. The type of directive is determined by the first non-whitespace
  21084. character on the line, which can be one of the following:
  21085. '%COMMAND'
  21086. Issues a COMMAND to the spec file processor. The commands that can
  21087. appear here are:
  21088. '%include <FILE>'
  21089. Search for FILE and insert its text at the current point in
  21090. the specs file.
  21091. '%include_noerr <FILE>'
  21092. Just like '%include', but do not generate an error message if
  21093. the include file cannot be found.
  21094. '%rename OLD_NAME NEW_NAME'
  21095. Rename the spec string OLD_NAME to NEW_NAME.
  21096. '*[SPEC_NAME]:'
  21097. This tells the compiler to create, override or delete the named
  21098. spec string. All lines after this directive up to the next
  21099. directive or blank line are considered to be the text for the spec
  21100. string. If this results in an empty string then the spec is
  21101. deleted. (Or, if the spec did not exist, then nothing happens.)
  21102. Otherwise, if the spec does not currently exist a new spec is
  21103. created. If the spec does exist then its contents are overridden
  21104. by the text of this directive, unless the first character of that
  21105. text is the '+' character, in which case the text is appended to
  21106. the spec.
  21107. '[SUFFIX]:'
  21108. Creates a new '[SUFFIX] spec' pair. All lines after this directive
  21109. and up to the next directive or blank line are considered to make
  21110. up the spec string for the indicated suffix. When the compiler
  21111. encounters an input file with the named suffix, it processes the
  21112. spec string in order to work out how to compile that file. For
  21113. example:
  21114. .ZZ:
  21115. z-compile -input %i
  21116. This says that any input file whose name ends in '.ZZ' should be
  21117. passed to the program 'z-compile', which should be invoked with the
  21118. command-line switch '-input' and with the result of performing the
  21119. '%i' substitution. (See below.)
  21120. As an alternative to providing a spec string, the text following a
  21121. suffix directive can be one of the following:
  21122. '@LANGUAGE'
  21123. This says that the suffix is an alias for a known LANGUAGE.
  21124. This is similar to using the '-x' command-line switch to GCC
  21125. to specify a language explicitly. For example:
  21126. .ZZ:
  21127. @c++
  21128. Says that .ZZ files are, in fact, C++ source files.
  21129. '#NAME'
  21130. This causes an error messages saying:
  21131. NAME compiler not installed on this system.
  21132. GCC already has an extensive list of suffixes built into it. This
  21133. directive adds an entry to the end of the list of suffixes, but
  21134. since the list is searched from the end backwards, it is
  21135. effectively possible to override earlier entries using this
  21136. technique.
  21137. GCC has the following spec strings built into it. Spec files can
  21138. override these strings or create their own. Note that individual
  21139. targets can also add their own spec strings to this list.
  21140. asm Options to pass to the assembler
  21141. asm_final Options to pass to the assembler post-processor
  21142. cpp Options to pass to the C preprocessor
  21143. cc1 Options to pass to the C compiler
  21144. cc1plus Options to pass to the C++ compiler
  21145. endfile Object files to include at the end of the link
  21146. link Options to pass to the linker
  21147. lib Libraries to include on the command line to the linker
  21148. libgcc Decides which GCC support library to pass to the linker
  21149. linker Sets the name of the linker
  21150. predefines Defines to be passed to the C preprocessor
  21151. signed_char Defines to pass to CPP to say whether char is signed
  21152. by default
  21153. startfile Object files to include at the start of the link
  21154. Here is a small example of a spec file:
  21155. %rename lib old_lib
  21156. *lib:
  21157. --start-group -lgcc -lc -leval1 --end-group %(old_lib)
  21158. This example renames the spec called 'lib' to 'old_lib' and then
  21159. overrides the previous definition of 'lib' with a new one. The new
  21160. definition adds in some extra command-line options before including the
  21161. text of the old definition.
  21162. "Spec strings" are a list of command-line options to be passed to their
  21163. corresponding program. In addition, the spec strings can contain
  21164. '%'-prefixed sequences to substitute variable text or to conditionally
  21165. insert text into the command line. Using these constructs it is
  21166. possible to generate quite complex command lines.
  21167. Here is a table of all defined '%'-sequences for spec strings. Note
  21168. that spaces are not generated automatically around the results of
  21169. expanding these sequences. Therefore you can concatenate them together
  21170. or combine them with constant text in a single argument.
  21171. '%%'
  21172. Substitute one '%' into the program name or argument.
  21173. '%i'
  21174. Substitute the name of the input file being processed.
  21175. '%b'
  21176. Substitute the basename of the input file being processed. This is
  21177. the substring up to (and not including) the last period and not
  21178. including the directory.
  21179. '%B'
  21180. This is the same as '%b', but include the file suffix (text after
  21181. the last period).
  21182. '%d'
  21183. Marks the argument containing or following the '%d' as a temporary
  21184. file name, so that that file is deleted if GCC exits successfully.
  21185. Unlike '%g', this contributes no text to the argument.
  21186. '%gSUFFIX'
  21187. Substitute a file name that has suffix SUFFIX and is chosen once
  21188. per compilation, and mark the argument in the same way as '%d'. To
  21189. reduce exposure to denial-of-service attacks, the file name is now
  21190. chosen in a way that is hard to predict even when previously chosen
  21191. file names are known. For example, '%g.s ... %g.o ... %g.s' might
  21192. turn into 'ccUVUUAU.s ccXYAXZ12.o ccUVUUAU.s'. SUFFIX matches the
  21193. regexp '[.A-Za-z]*' or the special string '%O', which is treated
  21194. exactly as if '%O' had been preprocessed. Previously, '%g' was
  21195. simply substituted with a file name chosen once per compilation,
  21196. without regard to any appended suffix (which was therefore treated
  21197. just like ordinary text), making such attacks more likely to
  21198. succeed.
  21199. '%uSUFFIX'
  21200. Like '%g', but generates a new temporary file name each time it
  21201. appears instead of once per compilation.
  21202. '%USUFFIX'
  21203. Substitutes the last file name generated with '%uSUFFIX',
  21204. generating a new one if there is no such last file name. In the
  21205. absence of any '%uSUFFIX', this is just like '%gSUFFIX', except
  21206. they don't share the same suffix _space_, so '%g.s ... %U.s ...
  21207. %g.s ... %U.s' involves the generation of two distinct file names,
  21208. one for each '%g.s' and another for each '%U.s'. Previously, '%U'
  21209. was simply substituted with a file name chosen for the previous
  21210. '%u', without regard to any appended suffix.
  21211. '%jSUFFIX'
  21212. Substitutes the name of the 'HOST_BIT_BUCKET', if any, and if it is
  21213. writable, and if '-save-temps' is not used; otherwise, substitute
  21214. the name of a temporary file, just like '%u'. This temporary file
  21215. is not meant for communication between processes, but rather as a
  21216. junk disposal mechanism.
  21217. '%|SUFFIX'
  21218. '%mSUFFIX'
  21219. Like '%g', except if '-pipe' is in effect. In that case '%|'
  21220. substitutes a single dash and '%m' substitutes nothing at all.
  21221. These are the two most common ways to instruct a program that it
  21222. should read from standard input or write to standard output. If
  21223. you need something more elaborate you can use an '%{pipe:'X'}'
  21224. construct: see for example 'f/lang-specs.h'.
  21225. '%.SUFFIX'
  21226. Substitutes .SUFFIX for the suffixes of a matched switch's args
  21227. when it is subsequently output with '%*'. SUFFIX is terminated by
  21228. the next space or %.
  21229. '%w'
  21230. Marks the argument containing or following the '%w' as the
  21231. designated output file of this compilation. This puts the argument
  21232. into the sequence of arguments that '%o' substitutes.
  21233. '%o'
  21234. Substitutes the names of all the output files, with spaces
  21235. automatically placed around them. You should write spaces around
  21236. the '%o' as well or the results are undefined. '%o' is for use in
  21237. the specs for running the linker. Input files whose names have no
  21238. recognized suffix are not compiled at all, but they are included
  21239. among the output files, so they are linked.
  21240. '%O'
  21241. Substitutes the suffix for object files. Note that this is handled
  21242. specially when it immediately follows '%g, %u, or %U', because of
  21243. the need for those to form complete file names. The handling is
  21244. such that '%O' is treated exactly as if it had already been
  21245. substituted, except that '%g, %u, and %U' do not currently support
  21246. additional SUFFIX characters following '%O' as they do following,
  21247. for example, '.o'.
  21248. '%p'
  21249. Substitutes the standard macro predefinitions for the current
  21250. target machine. Use this when running 'cpp'.
  21251. '%P'
  21252. Like '%p', but puts '__' before and after the name of each
  21253. predefined macro, except for macros that start with '__' or with
  21254. '_L', where L is an uppercase letter. This is for ISO C.
  21255. '%I'
  21256. Substitute any of '-iprefix' (made from 'GCC_EXEC_PREFIX'),
  21257. '-isysroot' (made from 'TARGET_SYSTEM_ROOT'), '-isystem' (made from
  21258. 'COMPILER_PATH' and '-B' options) and '-imultilib' as necessary.
  21259. '%s'
  21260. Current argument is the name of a library or startup file of some
  21261. sort. Search for that file in a standard list of directories and
  21262. substitute the full name found. The current working directory is
  21263. included in the list of directories scanned.
  21264. '%T'
  21265. Current argument is the name of a linker script. Search for that
  21266. file in the current list of directories to scan for libraries. If
  21267. the file is located insert a '--script' option into the command
  21268. line followed by the full path name found. If the file is not
  21269. found then generate an error message. Note: the current working
  21270. directory is not searched.
  21271. '%eSTR'
  21272. Print STR as an error message. STR is terminated by a newline.
  21273. Use this when inconsistent options are detected.
  21274. '%(NAME)'
  21275. Substitute the contents of spec string NAME at this point.
  21276. '%x{OPTION}'
  21277. Accumulate an option for '%X'.
  21278. '%X'
  21279. Output the accumulated linker options specified by '-Wl' or a '%x'
  21280. spec string.
  21281. '%Y'
  21282. Output the accumulated assembler options specified by '-Wa'.
  21283. '%Z'
  21284. Output the accumulated preprocessor options specified by '-Wp'.
  21285. '%a'
  21286. Process the 'asm' spec. This is used to compute the switches to be
  21287. passed to the assembler.
  21288. '%A'
  21289. Process the 'asm_final' spec. This is a spec string for passing
  21290. switches to an assembler post-processor, if such a program is
  21291. needed.
  21292. '%l'
  21293. Process the 'link' spec. This is the spec for computing the
  21294. command line passed to the linker. Typically it makes use of the
  21295. '%L %G %S %D and %E' sequences.
  21296. '%D'
  21297. Dump out a '-L' option for each directory that GCC believes might
  21298. contain startup files. If the target supports multilibs then the
  21299. current multilib directory is prepended to each of these paths.
  21300. '%L'
  21301. Process the 'lib' spec. This is a spec string for deciding which
  21302. libraries are included on the command line to the linker.
  21303. '%G'
  21304. Process the 'libgcc' spec. This is a spec string for deciding
  21305. which GCC support library is included on the command line to the
  21306. linker.
  21307. '%S'
  21308. Process the 'startfile' spec. This is a spec for deciding which
  21309. object files are the first ones passed to the linker. Typically
  21310. this might be a file named 'crt0.o'.
  21311. '%E'
  21312. Process the 'endfile' spec. This is a spec string that specifies
  21313. the last object files that are passed to the linker.
  21314. '%C'
  21315. Process the 'cpp' spec. This is used to construct the arguments to
  21316. be passed to the C preprocessor.
  21317. '%1'
  21318. Process the 'cc1' spec. This is used to construct the options to
  21319. be passed to the actual C compiler ('cc1').
  21320. '%2'
  21321. Process the 'cc1plus' spec. This is used to construct the options
  21322. to be passed to the actual C++ compiler ('cc1plus').
  21323. '%*'
  21324. Substitute the variable part of a matched option. See below. Note
  21325. that each comma in the substituted string is replaced by a single
  21326. space.
  21327. '%<S'
  21328. Remove all occurrences of '-S' from the command line. Note--this
  21329. command is position dependent. '%' commands in the spec string
  21330. before this one see '-S', '%' commands in the spec string after
  21331. this one do not.
  21332. '%:FUNCTION(ARGS)'
  21333. Call the named function FUNCTION, passing it ARGS. ARGS is first
  21334. processed as a nested spec string, then split into an argument
  21335. vector in the usual fashion. The function returns a string which
  21336. is processed as if it had appeared literally as part of the current
  21337. spec.
  21338. The following built-in spec functions are provided:
  21339. 'getenv'
  21340. The 'getenv' spec function takes two arguments: an environment
  21341. variable name and a string. If the environment variable is
  21342. not defined, a fatal error is issued. Otherwise, the return
  21343. value is the value of the environment variable concatenated
  21344. with the string. For example, if 'TOPDIR' is defined as
  21345. '/path/to/top', then:
  21346. %:getenv(TOPDIR /include)
  21347. expands to '/path/to/top/include'.
  21348. 'if-exists'
  21349. The 'if-exists' spec function takes one argument, an absolute
  21350. pathname to a file. If the file exists, 'if-exists' returns
  21351. the pathname. Here is a small example of its usage:
  21352. *startfile:
  21353. crt0%O%s %:if-exists(crti%O%s) crtbegin%O%s
  21354. 'if-exists-else'
  21355. The 'if-exists-else' spec function is similar to the
  21356. 'if-exists' spec function, except that it takes two arguments.
  21357. The first argument is an absolute pathname to a file. If the
  21358. file exists, 'if-exists-else' returns the pathname. If it
  21359. does not exist, it returns the second argument. This way,
  21360. 'if-exists-else' can be used to select one file or another,
  21361. based on the existence of the first. Here is a small example
  21362. of its usage:
  21363. *startfile:
  21364. crt0%O%s %:if-exists(crti%O%s) \
  21365. %:if-exists-else(crtbeginT%O%s crtbegin%O%s)
  21366. 'replace-outfile'
  21367. The 'replace-outfile' spec function takes two arguments. It
  21368. looks for the first argument in the outfiles array and
  21369. replaces it with the second argument. Here is a small example
  21370. of its usage:
  21371. %{fgnu-runtime:%:replace-outfile(-lobjc -lobjc-gnu)}
  21372. 'remove-outfile'
  21373. The 'remove-outfile' spec function takes one argument. It
  21374. looks for the first argument in the outfiles array and removes
  21375. it. Here is a small example its usage:
  21376. %:remove-outfile(-lm)
  21377. 'pass-through-libs'
  21378. The 'pass-through-libs' spec function takes any number of
  21379. arguments. It finds any '-l' options and any non-options
  21380. ending in '.a' (which it assumes are the names of linker input
  21381. library archive files) and returns a result containing all the
  21382. found arguments each prepended by '-plugin-opt=-pass-through='
  21383. and joined by spaces. This list is intended to be passed to
  21384. the LTO linker plugin.
  21385. %:pass-through-libs(%G %L %G)
  21386. 'print-asm-header'
  21387. The 'print-asm-header' function takes no arguments and simply
  21388. prints a banner like:
  21389. Assembler options
  21390. =================
  21391. Use "-Wa,OPTION" to pass "OPTION" to the assembler.
  21392. It is used to separate compiler options from assembler options
  21393. in the '--target-help' output.
  21394. '%{S}'
  21395. Substitutes the '-S' switch, if that switch is given to GCC. If
  21396. that switch is not specified, this substitutes nothing. Note that
  21397. the leading dash is omitted when specifying this option, and it is
  21398. automatically inserted if the substitution is performed. Thus the
  21399. spec string '%{foo}' matches the command-line option '-foo' and
  21400. outputs the command-line option '-foo'.
  21401. '%W{S}'
  21402. Like %{'S'} but mark last argument supplied within as a file to be
  21403. deleted on failure.
  21404. '%{S*}'
  21405. Substitutes all the switches specified to GCC whose names start
  21406. with '-S', but which also take an argument. This is used for
  21407. switches like '-o', '-D', '-I', etc. GCC considers '-o foo' as
  21408. being one switch whose name starts with 'o'. %{o*} substitutes
  21409. this text, including the space. Thus two arguments are generated.
  21410. '%{S*&T*}'
  21411. Like %{'S'*}, but preserve order of 'S' and 'T' options (the order
  21412. of 'S' and 'T' in the spec is not significant). There can be any
  21413. number of ampersand-separated variables; for each the wild card is
  21414. optional. Useful for CPP as '%{D*&U*&A*}'.
  21415. '%{S:X}'
  21416. Substitutes 'X', if the '-S' switch is given to GCC.
  21417. '%{!S:X}'
  21418. Substitutes 'X', if the '-S' switch is _not_ given to GCC.
  21419. '%{S*:X}'
  21420. Substitutes 'X' if one or more switches whose names start with '-S'
  21421. are specified to GCC. Normally 'X' is substituted only once, no
  21422. matter how many such switches appeared. However, if '%*' appears
  21423. somewhere in 'X', then 'X' is substituted once for each matching
  21424. switch, with the '%*' replaced by the part of that switch matching
  21425. the '*'.
  21426. If '%*' appears as the last part of a spec sequence then a space is
  21427. added after the end of the last substitution. If there is more
  21428. text in the sequence, however, then a space is not generated. This
  21429. allows the '%*' substitution to be used as part of a larger string.
  21430. For example, a spec string like this:
  21431. %{mcu=*:--script=%*/memory.ld}
  21432. when matching an option like '-mcu=newchip' produces:
  21433. --script=newchip/memory.ld
  21434. '%{.S:X}'
  21435. Substitutes 'X', if processing a file with suffix 'S'.
  21436. '%{!.S:X}'
  21437. Substitutes 'X', if _not_ processing a file with suffix 'S'.
  21438. '%{,S:X}'
  21439. Substitutes 'X', if processing a file for language 'S'.
  21440. '%{!,S:X}'
  21441. Substitutes 'X', if not processing a file for language 'S'.
  21442. '%{S|P:X}'
  21443. Substitutes 'X' if either '-S' or '-P' is given to GCC. This may
  21444. be combined with '!', '.', ',', and '*' sequences as well, although
  21445. they have a stronger binding than the '|'. If '%*' appears in 'X',
  21446. all of the alternatives must be starred, and only the first
  21447. matching alternative is substituted.
  21448. For example, a spec string like this:
  21449. %{.c:-foo} %{!.c:-bar} %{.c|d:-baz} %{!.c|d:-boggle}
  21450. outputs the following command-line options from the following input
  21451. command-line options:
  21452. fred.c -foo -baz
  21453. jim.d -bar -boggle
  21454. -d fred.c -foo -baz -boggle
  21455. -d jim.d -bar -baz -boggle
  21456. '%{S:X; T:Y; :D}'
  21457. If 'S' is given to GCC, substitutes 'X'; else if 'T' is given to
  21458. GCC, substitutes 'Y'; else substitutes 'D'. There can be as many
  21459. clauses as you need. This may be combined with '.', ',', '!', '|',
  21460. and '*' as needed.
  21461. The switch matching text 'S' in a '%{S}', '%{S:X}' or similar construct
  21462. can use a backslash to ignore the special meaning of the character
  21463. following it, thus allowing literal matching of a character that is
  21464. otherwise specially treated. For example, '%{std=iso9899\:1999:X}'
  21465. substitutes 'X' if the '-std=iso9899:1999' option is given.
  21466. The conditional text 'X' in a '%{S:X}' or similar construct may contain
  21467. other nested '%' constructs or spaces, or even newlines. They are
  21468. processed as usual, as described above. Trailing white space in 'X' is
  21469. ignored. White space may also appear anywhere on the left side of the
  21470. colon in these constructs, except between '.' or '*' and the
  21471. corresponding word.
  21472. The '-O', '-f', '-m', and '-W' switches are handled specifically in
  21473. these constructs. If another value of '-O' or the negated form of a
  21474. '-f', '-m', or '-W' switch is found later in the command line, the
  21475. earlier switch value is ignored, except with {'S'*} where 'S' is just
  21476. one letter, which passes all matching options.
  21477. The character '|' at the beginning of the predicate text is used to
  21478. indicate that a command should be piped to the following command, but
  21479. only if '-pipe' is specified.
  21480. It is built into GCC which switches take arguments and which do not.
  21481. (You might think it would be useful to generalize this to allow each
  21482. compiler's spec to say which switches take arguments. But this cannot
  21483. be done in a consistent fashion. GCC cannot even decide which input
  21484. files have been specified without knowing which switches take arguments,
  21485. and it must know which input files to compile in order to tell which
  21486. compilers to run).
  21487. GCC also knows implicitly that arguments starting in '-l' are to be
  21488. treated as compiler output files, and passed to the linker in their
  21489. proper position among the other output files.
  21490. 
  21491. File: gcc.info, Node: Environment Variables, Next: Precompiled Headers, Prev: Spec Files, Up: Invoking GCC
  21492. 3.20 Environment Variables Affecting GCC
  21493. ========================================
  21494. This section describes several environment variables that affect how GCC
  21495. operates. Some of them work by specifying directories or prefixes to
  21496. use when searching for various kinds of files. Some are used to specify
  21497. other aspects of the compilation environment.
  21498. Note that you can also specify places to search using options such as
  21499. '-B', '-I' and '-L' (*note Directory Options::). These take precedence
  21500. over places specified using environment variables, which in turn take
  21501. precedence over those specified by the configuration of GCC. *Note
  21502. Controlling the Compilation Driver 'gcc': (gccint)Driver.
  21503. 'LANG'
  21504. 'LC_CTYPE'
  21505. 'LC_MESSAGES'
  21506. 'LC_ALL'
  21507. These environment variables control the way that GCC uses
  21508. localization information which allows GCC to work with different
  21509. national conventions. GCC inspects the locale categories
  21510. 'LC_CTYPE' and 'LC_MESSAGES' if it has been configured to do so.
  21511. These locale categories can be set to any value supported by your
  21512. installation. A typical value is 'en_GB.UTF-8' for English in the
  21513. United Kingdom encoded in UTF-8.
  21514. The 'LC_CTYPE' environment variable specifies character
  21515. classification. GCC uses it to determine the character boundaries
  21516. in a string; this is needed for some multibyte encodings that
  21517. contain quote and escape characters that are otherwise interpreted
  21518. as a string end or escape.
  21519. The 'LC_MESSAGES' environment variable specifies the language to
  21520. use in diagnostic messages.
  21521. If the 'LC_ALL' environment variable is set, it overrides the value
  21522. of 'LC_CTYPE' and 'LC_MESSAGES'; otherwise, 'LC_CTYPE' and
  21523. 'LC_MESSAGES' default to the value of the 'LANG' environment
  21524. variable. If none of these variables are set, GCC defaults to
  21525. traditional C English behavior.
  21526. 'TMPDIR'
  21527. If 'TMPDIR' is set, it specifies the directory to use for temporary
  21528. files. GCC uses temporary files to hold the output of one stage of
  21529. compilation which is to be used as input to the next stage: for
  21530. example, the output of the preprocessor, which is the input to the
  21531. compiler proper.
  21532. 'GCC_COMPARE_DEBUG'
  21533. Setting 'GCC_COMPARE_DEBUG' is nearly equivalent to passing
  21534. '-fcompare-debug' to the compiler driver. See the documentation of
  21535. this option for more details.
  21536. 'GCC_EXEC_PREFIX'
  21537. If 'GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  21538. names of the subprograms executed by the compiler. No slash is
  21539. added when this prefix is combined with the name of a subprogram,
  21540. but you can specify a prefix that ends with a slash if you wish.
  21541. If 'GCC_EXEC_PREFIX' is not set, GCC attempts to figure out an
  21542. appropriate prefix to use based on the pathname it is invoked with.
  21543. If GCC cannot find the subprogram using the specified prefix, it
  21544. tries looking in the usual places for the subprogram.
  21545. The default value of 'GCC_EXEC_PREFIX' is 'PREFIX/lib/gcc/' where
  21546. PREFIX is the prefix to the installed compiler. In many cases
  21547. PREFIX is the value of 'prefix' when you ran the 'configure'
  21548. script.
  21549. Other prefixes specified with '-B' take precedence over this
  21550. prefix.
  21551. This prefix is also used for finding files such as 'crt0.o' that
  21552. are used for linking.
  21553. In addition, the prefix is used in an unusual way in finding the
  21554. directories to search for header files. For each of the standard
  21555. directories whose name normally begins with '/usr/local/lib/gcc'
  21556. (more precisely, with the value of 'GCC_INCLUDE_DIR'), GCC tries
  21557. replacing that beginning with the specified prefix to produce an
  21558. alternate directory name. Thus, with '-Bfoo/', GCC searches
  21559. 'foo/bar' just before it searches the standard directory
  21560. '/usr/local/lib/bar'. If a standard directory begins with the
  21561. configured PREFIX then the value of PREFIX is replaced by
  21562. 'GCC_EXEC_PREFIX' when looking for header files.
  21563. 'COMPILER_PATH'
  21564. The value of 'COMPILER_PATH' is a colon-separated list of
  21565. directories, much like 'PATH'. GCC tries the directories thus
  21566. specified when searching for subprograms, if it cannot find the
  21567. subprograms using 'GCC_EXEC_PREFIX'.
  21568. 'LIBRARY_PATH'
  21569. The value of 'LIBRARY_PATH' is a colon-separated list of
  21570. directories, much like 'PATH'. When configured as a native
  21571. compiler, GCC tries the directories thus specified when searching
  21572. for special linker files, if it cannot find them using
  21573. 'GCC_EXEC_PREFIX'. Linking using GCC also uses these directories
  21574. when searching for ordinary libraries for the '-l' option (but
  21575. directories specified with '-L' come first).
  21576. 'LANG'
  21577. This variable is used to pass locale information to the compiler.
  21578. One way in which this information is used is to determine the
  21579. character set to be used when character literals, string literals
  21580. and comments are parsed in C and C++. When the compiler is
  21581. configured to allow multibyte characters, the following values for
  21582. 'LANG' are recognized:
  21583. 'C-JIS'
  21584. Recognize JIS characters.
  21585. 'C-SJIS'
  21586. Recognize SJIS characters.
  21587. 'C-EUCJP'
  21588. Recognize EUCJP characters.
  21589. If 'LANG' is not defined, or if it has some other value, then the
  21590. compiler uses 'mblen' and 'mbtowc' as defined by the default locale
  21591. to recognize and translate multibyte characters.
  21592. Some additional environment variables affect the behavior of the
  21593. preprocessor.
  21594. 'CPATH'
  21595. 'C_INCLUDE_PATH'
  21596. 'CPLUS_INCLUDE_PATH'
  21597. 'OBJC_INCLUDE_PATH'
  21598. Each variable's value is a list of directories separated by a
  21599. special character, much like 'PATH', in which to look for header
  21600. files. The special character, 'PATH_SEPARATOR', is
  21601. target-dependent and determined at GCC build time. For Microsoft
  21602. Windows-based targets it is a semicolon, and for almost all other
  21603. targets it is a colon.
  21604. 'CPATH' specifies a list of directories to be searched as if
  21605. specified with '-I', but after any paths given with '-I' options on
  21606. the command line. This environment variable is used regardless of
  21607. which language is being preprocessed.
  21608. The remaining environment variables apply only when preprocessing
  21609. the particular language indicated. Each specifies a list of
  21610. directories to be searched as if specified with '-isystem', but
  21611. after any paths given with '-isystem' options on the command line.
  21612. In all these variables, an empty element instructs the compiler to
  21613. search its current working directory. Empty elements can appear at
  21614. the beginning or end of a path. For instance, if the value of
  21615. 'CPATH' is ':/special/include', that has the same effect as
  21616. '-I. -I/special/include'.
  21617. 'DEPENDENCIES_OUTPUT'
  21618. If this variable is set, its value specifies how to output
  21619. dependencies for Make based on the non-system header files
  21620. processed by the compiler. System header files are ignored in the
  21621. dependency output.
  21622. The value of 'DEPENDENCIES_OUTPUT' can be just a file name, in
  21623. which case the Make rules are written to that file, guessing the
  21624. target name from the source file name. Or the value can have the
  21625. form 'FILE TARGET', in which case the rules are written to file
  21626. FILE using TARGET as the target name.
  21627. In other words, this environment variable is equivalent to
  21628. combining the options '-MM' and '-MF' (*note Preprocessor
  21629. Options::), with an optional '-MT' switch too.
  21630. 'SUNPRO_DEPENDENCIES'
  21631. This variable is the same as 'DEPENDENCIES_OUTPUT' (see above),
  21632. except that system header files are not ignored, so it implies '-M'
  21633. rather than '-MM'. However, the dependence on the main input file
  21634. is omitted. *Note Preprocessor Options::.
  21635. 'SOURCE_DATE_EPOCH'
  21636. If this variable is set, its value specifies a UNIX timestamp to be
  21637. used in replacement of the current date and time in the '__DATE__'
  21638. and '__TIME__' macros, so that the embedded timestamps become
  21639. reproducible.
  21640. The value of 'SOURCE_DATE_EPOCH' must be a UNIX timestamp, defined
  21641. as the number of seconds (excluding leap seconds) since 01 Jan 1970
  21642. 00:00:00 represented in ASCII; identical to the output of ''date
  21643. +%s'' on GNU/Linux and other systems that support the '%s'
  21644. extension in the 'date' command.
  21645. The value should be a known timestamp such as the last modification
  21646. time of the source or package and it should be set by the build
  21647. process.
  21648. 
  21649. File: gcc.info, Node: Precompiled Headers, Prev: Environment Variables, Up: Invoking GCC
  21650. 3.21 Using Precompiled Headers
  21651. ==============================
  21652. Often large projects have many header files that are included in every
  21653. source file. The time the compiler takes to process these header files
  21654. over and over again can account for nearly all of the time required to
  21655. build the project. To make builds faster, GCC allows you to
  21656. "precompile" a header file.
  21657. To create a precompiled header file, simply compile it as you would any
  21658. other file, if necessary using the '-x' option to make the driver treat
  21659. it as a C or C++ header file. You may want to use a tool like 'make' to
  21660. keep the precompiled header up-to-date when the headers it contains
  21661. change.
  21662. A precompiled header file is searched for when '#include' is seen in
  21663. the compilation. As it searches for the included file (*note Search
  21664. Path: (cpp)Search Path.) the compiler looks for a precompiled header in
  21665. each directory just before it looks for the include file in that
  21666. directory. The name searched for is the name specified in the
  21667. '#include' with '.gch' appended. If the precompiled header file cannot
  21668. be used, it is ignored.
  21669. For instance, if you have '#include "all.h"', and you have 'all.h.gch'
  21670. in the same directory as 'all.h', then the precompiled header file is
  21671. used if possible, and the original header is used otherwise.
  21672. Alternatively, you might decide to put the precompiled header file in a
  21673. directory and use '-I' to ensure that directory is searched before (or
  21674. instead of) the directory containing the original header. Then, if you
  21675. want to check that the precompiled header file is always used, you can
  21676. put a file of the same name as the original header in this directory
  21677. containing an '#error' command.
  21678. This also works with '-include'. So yet another way to use precompiled
  21679. headers, good for projects not designed with precompiled header files in
  21680. mind, is to simply take most of the header files used by a project,
  21681. include them from another header file, precompile that header file, and
  21682. '-include' the precompiled header. If the header files have guards
  21683. against multiple inclusion, they are skipped because they've already
  21684. been included (in the precompiled header).
  21685. If you need to precompile the same header file for different languages,
  21686. targets, or compiler options, you can instead make a _directory_ named
  21687. like 'all.h.gch', and put each precompiled header in the directory,
  21688. perhaps using '-o'. It doesn't matter what you call the files in the
  21689. directory; every precompiled header in the directory is considered. The
  21690. first precompiled header encountered in the directory that is valid for
  21691. this compilation is used; they're searched in no particular order.
  21692. There are many other possibilities, limited only by your imagination,
  21693. good sense, and the constraints of your build system.
  21694. A precompiled header file can be used only when these conditions apply:
  21695. * Only one precompiled header can be used in a particular
  21696. compilation.
  21697. * A precompiled header cannot be used once the first C token is seen.
  21698. You can have preprocessor directives before a precompiled header;
  21699. you cannot include a precompiled header from inside another header.
  21700. * The precompiled header file must be produced for the same language
  21701. as the current compilation. You cannot use a C precompiled header
  21702. for a C++ compilation.
  21703. * The precompiled header file must have been produced by the same
  21704. compiler binary as the current compilation is using.
  21705. * Any macros defined before the precompiled header is included must
  21706. either be defined in the same way as when the precompiled header
  21707. was generated, or must not affect the precompiled header, which
  21708. usually means that they don't appear in the precompiled header at
  21709. all.
  21710. The '-D' option is one way to define a macro before a precompiled
  21711. header is included; using a '#define' can also do it. There are
  21712. also some options that define macros implicitly, like '-O' and
  21713. '-Wdeprecated'; the same rule applies to macros defined this way.
  21714. * If debugging information is output when using the precompiled
  21715. header, using '-g' or similar, the same kind of debugging
  21716. information must have been output when building the precompiled
  21717. header. However, a precompiled header built using '-g' can be used
  21718. in a compilation when no debugging information is being output.
  21719. * The same '-m' options must generally be used when building and
  21720. using the precompiled header. *Note Submodel Options::, for any
  21721. cases where this rule is relaxed.
  21722. * Each of the following options must be the same when building and
  21723. using the precompiled header:
  21724. -fexceptions
  21725. * Some other command-line options starting with '-f', '-p', or '-O'
  21726. must be defined in the same way as when the precompiled header was
  21727. generated. At present, it's not clear which options are safe to
  21728. change and which are not; the safest choice is to use exactly the
  21729. same options when generating and using the precompiled header. The
  21730. following are known to be safe:
  21731. -fmessage-length= -fpreprocessed -fsched-interblock
  21732. -fsched-spec -fsched-spec-load -fsched-spec-load-dangerous
  21733. -fsched-verbose=NUMBER -fschedule-insns -fvisibility=
  21734. -pedantic-errors
  21735. For all of these except the last, the compiler automatically ignores
  21736. the precompiled header if the conditions aren't met. If you find an
  21737. option combination that doesn't work and doesn't cause the precompiled
  21738. header to be ignored, please consider filing a bug report, see *note
  21739. Bugs::.
  21740. If you do use differing options when generating and using the
  21741. precompiled header, the actual behavior is a mixture of the behavior for
  21742. the options. For instance, if you use '-g' to generate the precompiled
  21743. header but not when using it, you may or may not get debugging
  21744. information for routines in the precompiled header.
  21745. 
  21746. File: gcc.info, Node: C Implementation, Next: C++ Implementation, Prev: Invoking GCC, Up: Top
  21747. 4 C Implementation-Defined Behavior
  21748. ***********************************
  21749. A conforming implementation of ISO C is required to document its choice
  21750. of behavior in each of the areas that are designated "implementation
  21751. defined". The following lists all such areas, along with the section
  21752. numbers from the ISO/IEC 9899:1990, ISO/IEC 9899:1999 and ISO/IEC
  21753. 9899:2011 standards. Some areas are only implementation-defined in one
  21754. version of the standard.
  21755. Some choices depend on the externally determined ABI for the platform
  21756. (including standard character encodings) which GCC follows; these are
  21757. listed as "determined by ABI" below. *Note Binary Compatibility:
  21758. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  21759. documented in the preprocessor manual. *Note Implementation-defined
  21760. behavior: (cpp)Implementation-defined behavior. Some choices are made
  21761. by the library and operating system (or other environment when compiling
  21762. for a freestanding environment); refer to their documentation for
  21763. details.
  21764. * Menu:
  21765. * Translation implementation::
  21766. * Environment implementation::
  21767. * Identifiers implementation::
  21768. * Characters implementation::
  21769. * Integers implementation::
  21770. * Floating point implementation::
  21771. * Arrays and pointers implementation::
  21772. * Hints implementation::
  21773. * Structures unions enumerations and bit-fields implementation::
  21774. * Qualifiers implementation::
  21775. * Declarators implementation::
  21776. * Statements implementation::
  21777. * Preprocessing directives implementation::
  21778. * Library functions implementation::
  21779. * Architecture implementation::
  21780. * Locale-specific behavior implementation::
  21781. 
  21782. File: gcc.info, Node: Translation implementation, Next: Environment implementation, Up: C Implementation
  21783. 4.1 Translation
  21784. ===============
  21785. * 'How a diagnostic is identified (C90 3.7, C99 and C11 3.10, C90,
  21786. C99 and C11 5.1.1.3).'
  21787. Diagnostics consist of all the output sent to stderr by GCC.
  21788. * 'Whether each nonempty sequence of white-space characters other
  21789. than new-line is retained or replaced by one space character in
  21790. translation phase 3 (C90, C99 and C11 5.1.1.2).'
  21791. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21792. behavior.
  21793. 
  21794. File: gcc.info, Node: Environment implementation, Next: Identifiers implementation, Prev: Translation implementation, Up: C Implementation
  21795. 4.2 Environment
  21796. ===============
  21797. The behavior of most of these points are dependent on the implementation
  21798. of the C library, and are not defined by GCC itself.
  21799. * 'The mapping between physical source file multibyte characters and
  21800. the source character set in translation phase 1 (C90, C99 and C11
  21801. 5.1.1.2).'
  21802. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21803. behavior.
  21804. 
  21805. File: gcc.info, Node: Identifiers implementation, Next: Characters implementation, Prev: Environment implementation, Up: C Implementation
  21806. 4.3 Identifiers
  21807. ===============
  21808. * 'Which additional multibyte characters may appear in identifiers
  21809. and their correspondence to universal character names (C99 and C11
  21810. 6.4.2).'
  21811. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21812. behavior.
  21813. * 'The number of significant initial characters in an identifier (C90
  21814. 6.1.2, C90, C99 and C11 5.2.4.1, C99 and C11 6.4.2).'
  21815. For internal names, all characters are significant. For external
  21816. names, the number of significant characters are defined by the
  21817. linker; for almost all targets, all characters are significant.
  21818. * 'Whether case distinctions are significant in an identifier with
  21819. external linkage (C90 6.1.2).'
  21820. This is a property of the linker. C99 and C11 require that case
  21821. distinctions are always significant in identifiers with external
  21822. linkage and systems without this property are not supported by GCC.
  21823. 
  21824. File: gcc.info, Node: Characters implementation, Next: Integers implementation, Prev: Identifiers implementation, Up: C Implementation
  21825. 4.4 Characters
  21826. ==============
  21827. * 'The number of bits in a byte (C90 3.4, C99 and C11 3.6).'
  21828. Determined by ABI.
  21829. * 'The values of the members of the execution character set (C90, C99
  21830. and C11 5.2.1).'
  21831. Determined by ABI.
  21832. * 'The unique value of the member of the execution character set
  21833. produced for each of the standard alphabetic escape sequences (C90,
  21834. C99 and C11 5.2.2).'
  21835. Determined by ABI.
  21836. * 'The value of a 'char' object into which has been stored any
  21837. character other than a member of the basic execution character set
  21838. (C90 6.1.2.5, C99 and C11 6.2.5).'
  21839. Determined by ABI.
  21840. * 'Which of 'signed char' or 'unsigned char' has the same range,
  21841. representation, and behavior as "plain" 'char' (C90 6.1.2.5, C90
  21842. 6.2.1.1, C99 and C11 6.2.5, C99 and C11 6.3.1.1).'
  21843. Determined by ABI. The options '-funsigned-char' and
  21844. '-fsigned-char' change the default. *Note Options Controlling C
  21845. Dialect: C Dialect Options.
  21846. * 'The mapping of members of the source character set (in character
  21847. constants and string literals) to members of the execution
  21848. character set (C90 6.1.3.4, C99 and C11 6.4.4.4, C90, C99 and C11
  21849. 5.1.1.2).'
  21850. Determined by ABI.
  21851. * 'The value of an integer character constant containing more than
  21852. one character or containing a character or escape sequence that
  21853. does not map to a single-byte execution character (C90 6.1.3.4, C99
  21854. and C11 6.4.4.4).'
  21855. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21856. behavior.
  21857. * 'The value of a wide character constant containing more than one
  21858. multibyte character or a single multibyte character that maps to
  21859. multiple members of the extended execution character set, or
  21860. containing a multibyte character or escape sequence not represented
  21861. in the extended execution character set (C90 6.1.3.4, C99 and C11
  21862. 6.4.4.4).'
  21863. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21864. behavior.
  21865. * 'The current locale used to convert a wide character constant
  21866. consisting of a single multibyte character that maps to a member of
  21867. the extended execution character set into a corresponding wide
  21868. character code (C90 6.1.3.4, C99 and C11 6.4.4.4).'
  21869. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21870. behavior.
  21871. * 'Whether differently-prefixed wide string literal tokens can be
  21872. concatenated and, if so, the treatment of the resulting multibyte
  21873. character sequence (C11 6.4.5).'
  21874. Such tokens may not be concatenated.
  21875. * 'The current locale used to convert a wide string literal into
  21876. corresponding wide character codes (C90 6.1.4, C99 and C11 6.4.5).'
  21877. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21878. behavior.
  21879. * 'The value of a string literal containing a multibyte character or
  21880. escape sequence not represented in the execution character set (C90
  21881. 6.1.4, C99 and C11 6.4.5).'
  21882. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21883. behavior.
  21884. * 'The encoding of any of 'wchar_t', 'char16_t', and 'char32_t' where
  21885. the corresponding standard encoding macro ('__STDC_ISO_10646__',
  21886. '__STDC_UTF_16__', or '__STDC_UTF_32__') is not defined (C11
  21887. 6.10.8.2).'
  21888. *Note Implementation-defined behavior: (cpp)Implementation-defined
  21889. behavior. 'char16_t' and 'char32_t' literals are always encoded in
  21890. UTF-16 and UTF-32 respectively.
  21891. 
  21892. File: gcc.info, Node: Integers implementation, Next: Floating point implementation, Prev: Characters implementation, Up: C Implementation
  21893. 4.5 Integers
  21894. ============
  21895. * 'Any extended integer types that exist in the implementation (C99
  21896. and C11 6.2.5).'
  21897. GCC does not support any extended integer types.
  21898. * 'Whether signed integer types are represented using sign and
  21899. magnitude, two's complement, or one's complement, and whether the
  21900. extraordinary value is a trap representation or an ordinary value
  21901. (C99 and C11 6.2.6.2).'
  21902. GCC supports only two's complement integer types, and all bit
  21903. patterns are ordinary values.
  21904. * 'The rank of any extended integer type relative to another extended
  21905. integer type with the same precision (C99 and C11 6.3.1.1).'
  21906. GCC does not support any extended integer types.
  21907. * 'The result of, or the signal raised by, converting an integer to a
  21908. signed integer type when the value cannot be represented in an
  21909. object of that type (C90 6.2.1.2, C99 and C11 6.3.1.3).'
  21910. For conversion to a type of width N, the value is reduced modulo
  21911. 2^N to be within range of the type; no signal is raised.
  21912. * 'The results of some bitwise operations on signed integers (C90
  21913. 6.3, C99 and C11 6.5).'
  21914. Bitwise operators act on the representation of the value including
  21915. both the sign and value bits, where the sign bit is considered
  21916. immediately above the highest-value value bit. Signed '>>' acts on
  21917. negative numbers by sign extension.
  21918. As an extension to the C language, GCC does not use the latitude
  21919. given in C99 and C11 only to treat certain aspects of signed '<<'
  21920. as undefined. However, '-fsanitize=shift' (and
  21921. '-fsanitize=undefined') will diagnose such cases. They are also
  21922. diagnosed where constant expressions are required.
  21923. * 'The sign of the remainder on integer division (C90 6.3.5).'
  21924. GCC always follows the C99 and C11 requirement that the result of
  21925. division is truncated towards zero.
  21926. 
  21927. File: gcc.info, Node: Floating point implementation, Next: Arrays and pointers implementation, Prev: Integers implementation, Up: C Implementation
  21928. 4.6 Floating Point
  21929. ==================
  21930. * 'The accuracy of the floating-point operations and of the library
  21931. functions in '<math.h>' and '<complex.h>' that return
  21932. floating-point results (C90, C99 and C11 5.2.4.2.2).'
  21933. The accuracy is unknown.
  21934. * 'The rounding behaviors characterized by non-standard values of
  21935. 'FLT_ROUNDS' (C90, C99 and C11 5.2.4.2.2).'
  21936. GCC does not use such values.
  21937. * 'The evaluation methods characterized by non-standard negative
  21938. values of 'FLT_EVAL_METHOD' (C99 and C11 5.2.4.2.2).'
  21939. GCC does not use such values.
  21940. * 'The direction of rounding when an integer is converted to a
  21941. floating-point number that cannot exactly represent the original
  21942. value (C90 6.2.1.3, C99 and C11 6.3.1.4).'
  21943. C99 Annex F is followed.
  21944. * 'The direction of rounding when a floating-point number is
  21945. converted to a narrower floating-point number (C90 6.2.1.4, C99 and
  21946. C11 6.3.1.5).'
  21947. C99 Annex F is followed.
  21948. * 'How the nearest representable value or the larger or smaller
  21949. representable value immediately adjacent to the nearest
  21950. representable value is chosen for certain floating constants (C90
  21951. 6.1.3.1, C99 and C11 6.4.4.2).'
  21952. C99 Annex F is followed.
  21953. * 'Whether and how floating expressions are contracted when not
  21954. disallowed by the 'FP_CONTRACT' pragma (C99 and C11 6.5).'
  21955. Expressions are currently only contracted if '-ffp-contract=fast',
  21956. '-funsafe-math-optimizations' or '-ffast-math' are used. This is
  21957. subject to change.
  21958. * 'The default state for the 'FENV_ACCESS' pragma (C99 and C11
  21959. 7.6.1).'
  21960. This pragma is not implemented, but the default is to "off" unless
  21961. '-frounding-math' is used in which case it is "on".
  21962. * 'Additional floating-point exceptions, rounding modes,
  21963. environments, and classifications, and their macro names (C99 and
  21964. C11 7.6, C99 and C11 7.12).'
  21965. This is dependent on the implementation of the C library, and is
  21966. not defined by GCC itself.
  21967. * 'The default state for the 'FP_CONTRACT' pragma (C99 and C11
  21968. 7.12.2).'
  21969. This pragma is not implemented. Expressions are currently only
  21970. contracted if '-ffp-contract=fast', '-funsafe-math-optimizations'
  21971. or '-ffast-math' are used. This is subject to change.
  21972. * 'Whether the "inexact" floating-point exception can be raised when
  21973. the rounded result actually does equal the mathematical result in
  21974. an IEC 60559 conformant implementation (C99 F.9).'
  21975. This is dependent on the implementation of the C library, and is
  21976. not defined by GCC itself.
  21977. * 'Whether the "underflow" (and "inexact") floating-point exception
  21978. can be raised when a result is tiny but not inexact in an IEC 60559
  21979. conformant implementation (C99 F.9).'
  21980. This is dependent on the implementation of the C library, and is
  21981. not defined by GCC itself.
  21982. 
  21983. File: gcc.info, Node: Arrays and pointers implementation, Next: Hints implementation, Prev: Floating point implementation, Up: C Implementation
  21984. 4.7 Arrays and Pointers
  21985. =======================
  21986. * 'The result of converting a pointer to an integer or vice versa
  21987. (C90 6.3.4, C99 and C11 6.3.2.3).'
  21988. A cast from pointer to integer discards most-significant bits if
  21989. the pointer representation is larger than the integer type,
  21990. sign-extends(1) if the pointer representation is smaller than the
  21991. integer type, otherwise the bits are unchanged.
  21992. A cast from integer to pointer discards most-significant bits if
  21993. the pointer representation is smaller than the integer type,
  21994. extends according to the signedness of the integer type if the
  21995. pointer representation is larger than the integer type, otherwise
  21996. the bits are unchanged.
  21997. When casting from pointer to integer and back again, the resulting
  21998. pointer must reference the same object as the original pointer,
  21999. otherwise the behavior is undefined. That is, one may not use
  22000. integer arithmetic to avoid the undefined behavior of pointer
  22001. arithmetic as proscribed in C99 and C11 6.5.6/8.
  22002. * 'The size of the result of subtracting two pointers to elements of
  22003. the same array (C90 6.3.6, C99 and C11 6.5.6).'
  22004. The value is as specified in the standard and the type is
  22005. determined by the ABI.
  22006. ---------- Footnotes ----------
  22007. (1) Future versions of GCC may zero-extend, or use a target-defined
  22008. 'ptr_extend' pattern. Do not rely on sign extension.
  22009. 
  22010. File: gcc.info, Node: Hints implementation, Next: Structures unions enumerations and bit-fields implementation, Prev: Arrays and pointers implementation, Up: C Implementation
  22011. 4.8 Hints
  22012. =========
  22013. * 'The extent to which suggestions made by using the 'register'
  22014. storage-class specifier are effective (C90 6.5.1, C99 and C11
  22015. 6.7.1).'
  22016. The 'register' specifier affects code generation only in these
  22017. ways:
  22018. * When used as part of the register variable extension, see
  22019. *note Explicit Register Variables::.
  22020. * When '-O0' is in use, the compiler allocates distinct stack
  22021. memory for all variables that do not have the 'register'
  22022. storage-class specifier; if 'register' is specified, the
  22023. variable may have a shorter lifespan than the code would
  22024. indicate and may never be placed in memory.
  22025. * On some rare x86 targets, 'setjmp' doesn't save the registers
  22026. in all circumstances. In those cases, GCC doesn't allocate
  22027. any variables in registers unless they are marked 'register'.
  22028. * 'The extent to which suggestions made by using the inline function
  22029. specifier are effective (C99 and C11 6.7.4).'
  22030. GCC will not inline any functions if the '-fno-inline' option is
  22031. used or if '-O0' is used. Otherwise, GCC may still be unable to
  22032. inline a function for many reasons; the '-Winline' option may be
  22033. used to determine if a function has not been inlined and why not.
  22034. 
  22035. File: gcc.info, Node: Structures unions enumerations and bit-fields implementation, Next: Qualifiers implementation, Prev: Hints implementation, Up: C Implementation
  22036. 4.9 Structures, Unions, Enumerations, and Bit-Fields
  22037. ====================================================
  22038. * 'A member of a union object is accessed using a member of a
  22039. different type (C90 6.3.2.3).'
  22040. The relevant bytes of the representation of the object are treated
  22041. as an object of the type used for the access. *Note
  22042. Type-punning::. This may be a trap representation.
  22043. * 'Whether a "plain" 'int' bit-field is treated as a 'signed int'
  22044. bit-field or as an 'unsigned int' bit-field (C90 6.5.2, C90
  22045. 6.5.2.1, C99 and C11 6.7.2, C99 and C11 6.7.2.1).'
  22046. By default it is treated as 'signed int' but this may be changed by
  22047. the '-funsigned-bitfields' option.
  22048. * 'Allowable bit-field types other than '_Bool', 'signed int', and
  22049. 'unsigned int' (C99 and C11 6.7.2.1).'
  22050. Other integer types, such as 'long int', and enumerated types are
  22051. permitted even in strictly conforming mode.
  22052. * 'Whether atomic types are permitted for bit-fields (C11 6.7.2.1).'
  22053. Atomic types are not permitted for bit-fields.
  22054. * 'Whether a bit-field can straddle a storage-unit boundary (C90
  22055. 6.5.2.1, C99 and C11 6.7.2.1).'
  22056. Determined by ABI.
  22057. * 'The order of allocation of bit-fields within a unit (C90 6.5.2.1,
  22058. C99 and C11 6.7.2.1).'
  22059. Determined by ABI.
  22060. * 'The alignment of non-bit-field members of structures (C90 6.5.2.1,
  22061. C99 and C11 6.7.2.1).'
  22062. Determined by ABI.
  22063. * 'The integer type compatible with each enumerated type (C90
  22064. 6.5.2.2, C99 and C11 6.7.2.2).'
  22065. Normally, the type is 'unsigned int' if there are no negative
  22066. values in the enumeration, otherwise 'int'. If '-fshort-enums' is
  22067. specified, then if there are negative values it is the first of
  22068. 'signed char', 'short' and 'int' that can represent all the values,
  22069. otherwise it is the first of 'unsigned char', 'unsigned short' and
  22070. 'unsigned int' that can represent all the values.
  22071. On some targets, '-fshort-enums' is the default; this is determined
  22072. by the ABI.
  22073. 
  22074. File: gcc.info, Node: Qualifiers implementation, Next: Declarators implementation, Prev: Structures unions enumerations and bit-fields implementation, Up: C Implementation
  22075. 4.10 Qualifiers
  22076. ===============
  22077. * 'What constitutes an access to an object that has
  22078. volatile-qualified type (C90 6.5.3, C99 and C11 6.7.3).'
  22079. Such an object is normally accessed by pointers and used for
  22080. accessing hardware. In most expressions, it is intuitively obvious
  22081. what is a read and what is a write. For example
  22082. volatile int *dst = SOMEVALUE;
  22083. volatile int *src = SOMEOTHERVALUE;
  22084. *dst = *src;
  22085. will cause a read of the volatile object pointed to by SRC and
  22086. store the value into the volatile object pointed to by DST. There
  22087. is no guarantee that these reads and writes are atomic, especially
  22088. for objects larger than 'int'.
  22089. However, if the volatile storage is not being modified, and the
  22090. value of the volatile storage is not used, then the situation is
  22091. less obvious. For example
  22092. volatile int *src = SOMEVALUE;
  22093. *src;
  22094. According to the C standard, such an expression is an rvalue whose
  22095. type is the unqualified version of its original type, i.e. 'int'.
  22096. Whether GCC interprets this as a read of the volatile object being
  22097. pointed to or only as a request to evaluate the expression for its
  22098. side effects depends on this type.
  22099. If it is a scalar type, or on most targets an aggregate type whose
  22100. only member object is of a scalar type, or a union type whose
  22101. member objects are of scalar types, the expression is interpreted
  22102. by GCC as a read of the volatile object; in the other cases, the
  22103. expression is only evaluated for its side effects.
  22104. 
  22105. File: gcc.info, Node: Declarators implementation, Next: Statements implementation, Prev: Qualifiers implementation, Up: C Implementation
  22106. 4.11 Declarators
  22107. ================
  22108. * 'The maximum number of declarators that may modify an arithmetic,
  22109. structure or union type (C90 6.5.4).'
  22110. GCC is only limited by available memory.
  22111. 
  22112. File: gcc.info, Node: Statements implementation, Next: Preprocessing directives implementation, Prev: Declarators implementation, Up: C Implementation
  22113. 4.12 Statements
  22114. ===============
  22115. * 'The maximum number of 'case' values in a 'switch' statement (C90
  22116. 6.6.4.2).'
  22117. GCC is only limited by available memory.
  22118. 
  22119. File: gcc.info, Node: Preprocessing directives implementation, Next: Library functions implementation, Prev: Statements implementation, Up: C Implementation
  22120. 4.13 Preprocessing Directives
  22121. =============================
  22122. *Note Implementation-defined behavior: (cpp)Implementation-defined
  22123. behavior, for details of these aspects of implementation-defined
  22124. behavior.
  22125. * 'The locations within '#pragma' directives where header name
  22126. preprocessing tokens are recognized (C11 6.4, C11 6.4.7).'
  22127. * 'How sequences in both forms of header names are mapped to headers
  22128. or external source file names (C90 6.1.7, C99 and C11 6.4.7).'
  22129. * 'Whether the value of a character constant in a constant expression
  22130. that controls conditional inclusion matches the value of the same
  22131. character constant in the execution character set (C90 6.8.1, C99
  22132. and C11 6.10.1).'
  22133. * 'Whether the value of a single-character character constant in a
  22134. constant expression that controls conditional inclusion may have a
  22135. negative value (C90 6.8.1, C99 and C11 6.10.1).'
  22136. * 'The places that are searched for an included '<>' delimited
  22137. header, and how the places are specified or the header is
  22138. identified (C90 6.8.2, C99 and C11 6.10.2).'
  22139. * 'How the named source file is searched for in an included '""'
  22140. delimited header (C90 6.8.2, C99 and C11 6.10.2).'
  22141. * 'The method by which preprocessing tokens (possibly resulting from
  22142. macro expansion) in a '#include' directive are combined into a
  22143. header name (C90 6.8.2, C99 and C11 6.10.2).'
  22144. * 'The nesting limit for '#include' processing (C90 6.8.2, C99 and
  22145. C11 6.10.2).'
  22146. * 'Whether the '#' operator inserts a '\' character before the '\'
  22147. character that begins a universal character name in a character
  22148. constant or string literal (C99 and C11 6.10.3.2).'
  22149. * 'The behavior on each recognized non-'STDC #pragma' directive (C90
  22150. 6.8.6, C99 and C11 6.10.6).'
  22151. *Note Pragmas: (cpp)Pragmas, for details of pragmas accepted by GCC
  22152. on all targets. *Note Pragmas Accepted by GCC: Pragmas, for
  22153. details of target-specific pragmas.
  22154. * 'The definitions for '__DATE__' and '__TIME__' when respectively,
  22155. the date and time of translation are not available (C90 6.8.8, C99
  22156. 6.10.8, C11 6.10.8.1).'
  22157. 
  22158. File: gcc.info, Node: Library functions implementation, Next: Architecture implementation, Prev: Preprocessing directives implementation, Up: C Implementation
  22159. 4.14 Library Functions
  22160. ======================
  22161. The behavior of most of these points are dependent on the implementation
  22162. of the C library, and are not defined by GCC itself.
  22163. * 'The null pointer constant to which the macro 'NULL' expands (C90
  22164. 7.1.6, C99 7.17, C11 7.19).'
  22165. In '<stddef.h>', 'NULL' expands to '((void *)0)'. GCC does not
  22166. provide the other headers which define 'NULL' and some library
  22167. implementations may use other definitions in those headers.
  22168. 
  22169. File: gcc.info, Node: Architecture implementation, Next: Locale-specific behavior implementation, Prev: Library functions implementation, Up: C Implementation
  22170. 4.15 Architecture
  22171. =================
  22172. * 'The values or expressions assigned to the macros specified in the
  22173. headers '<float.h>', '<limits.h>', and '<stdint.h>' (C90, C99 and
  22174. C11 5.2.4.2, C99 7.18.2, C99 7.18.3, C11 7.20.2, C11 7.20.3).'
  22175. Determined by ABI.
  22176. * 'The result of attempting to indirectly access an object with
  22177. automatic or thread storage duration from a thread other than the
  22178. one with which it is associated (C11 6.2.4).'
  22179. Such accesses are supported, subject to the same requirements for
  22180. synchronization for concurrent accesses as for concurrent accesses
  22181. to any object.
  22182. * 'The number, order, and encoding of bytes in any object (when not
  22183. explicitly specified in this International Standard) (C99 and C11
  22184. 6.2.6.1).'
  22185. Determined by ABI.
  22186. * 'Whether any extended alignments are supported and the contexts in
  22187. which they are supported (C11 6.2.8).'
  22188. Extended alignments up to 2^{28} (bytes) are supported for objects
  22189. of automatic storage duration. Alignments supported for objects of
  22190. static and thread storage duration are determined by the ABI.
  22191. * 'Valid alignment values other than those returned by an _Alignof
  22192. expression for fundamental types, if any (C11 6.2.8).'
  22193. Valid alignments are powers of 2 up to and including 2^{28}.
  22194. * 'The value of the result of the 'sizeof' and '_Alignof' operators
  22195. (C90 6.3.3.4, C99 and C11 6.5.3.4).'
  22196. Determined by ABI.
  22197. 
  22198. File: gcc.info, Node: Locale-specific behavior implementation, Prev: Architecture implementation, Up: C Implementation
  22199. 4.16 Locale-Specific Behavior
  22200. =============================
  22201. The behavior of these points are dependent on the implementation of the
  22202. C library, and are not defined by GCC itself.
  22203. 
  22204. File: gcc.info, Node: C++ Implementation, Next: C Extensions, Prev: C Implementation, Up: Top
  22205. 5 C++ Implementation-Defined Behavior
  22206. *************************************
  22207. A conforming implementation of ISO C++ is required to document its
  22208. choice of behavior in each of the areas that are designated
  22209. "implementation defined". The following lists all such areas, along
  22210. with the section numbers from the ISO/IEC 14882:1998 and ISO/IEC
  22211. 14882:2003 standards. Some areas are only implementation-defined in one
  22212. version of the standard.
  22213. Some choices depend on the externally determined ABI for the platform
  22214. (including standard character encodings) which GCC follows; these are
  22215. listed as "determined by ABI" below. *Note Binary Compatibility:
  22216. Compatibility, and <http://gcc.gnu.org/readings.html>. Some choices are
  22217. documented in the preprocessor manual. *Note Implementation-defined
  22218. behavior: (cpp)Implementation-defined behavior. Some choices are
  22219. documented in the corresponding document for the C language. *Note C
  22220. Implementation::. Some choices are made by the library and operating
  22221. system (or other environment when compiling for a freestanding
  22222. environment); refer to their documentation for details.
  22223. * Menu:
  22224. * Conditionally-supported behavior::
  22225. * Exception handling::
  22226. 
  22227. File: gcc.info, Node: Conditionally-supported behavior, Next: Exception handling, Up: C++ Implementation
  22228. 5.1 Conditionally-Supported Behavior
  22229. ====================================
  22230. 'Each implementation shall include documentation that identifies all
  22231. conditionally-supported constructs that it does not support (C++0x
  22232. 1.4).'
  22233. * 'Whether an argument of class type with a non-trivial copy
  22234. constructor or destructor can be passed to ... (C++0x 5.2.2).'
  22235. Such argument passing is supported, using the same
  22236. pass-by-invisible-reference approach used for normal function
  22237. arguments of such types.
  22238. 
  22239. File: gcc.info, Node: Exception handling, Prev: Conditionally-supported behavior, Up: C++ Implementation
  22240. 5.2 Exception Handling
  22241. ======================
  22242. * 'In the situation where no matching handler is found, it is
  22243. implementation-defined whether or not the stack is unwound before
  22244. std::terminate() is called (C++98 15.5.1).'
  22245. The stack is not unwound before std::terminate is called.
  22246. c Copyright (C) 1988-2018 Free Software Foundation, Inc.
  22247. 
  22248. File: gcc.info, Node: C Extensions, Next: C++ Extensions, Prev: C++ Implementation, Up: Top
  22249. 6 Extensions to the C Language Family
  22250. *************************************
  22251. GNU C provides several language features not found in ISO standard C.
  22252. (The '-pedantic' option directs GCC to print a warning message if any of
  22253. these features is used.) To test for the availability of these features
  22254. in conditional compilation, check for a predefined macro '__GNUC__',
  22255. which is always defined under GCC.
  22256. These extensions are available in C and Objective-C. Most of them are
  22257. also available in C++. *Note Extensions to the C++ Language: C++
  22258. Extensions, for extensions that apply _only_ to C++.
  22259. Some features that are in ISO C99 but not C90 or C++ are also, as
  22260. extensions, accepted by GCC in C90 mode and in C++.
  22261. * Menu:
  22262. * Statement Exprs:: Putting statements and declarations inside expressions.
  22263. * Local Labels:: Labels local to a block.
  22264. * Labels as Values:: Getting pointers to labels, and computed gotos.
  22265. * Nested Functions:: As in Algol and Pascal, lexical scoping of functions.
  22266. * Constructing Calls:: Dispatching a call to another function.
  22267. * Typeof:: 'typeof': referring to the type of an expression.
  22268. * Conditionals:: Omitting the middle operand of a '?:' expression.
  22269. * __int128:: 128-bit integers--'__int128'.
  22270. * Long Long:: Double-word integers--'long long int'.
  22271. * Complex:: Data types for complex numbers.
  22272. * Floating Types:: Additional Floating Types.
  22273. * Half-Precision:: Half-Precision Floating Point.
  22274. * Decimal Float:: Decimal Floating Types.
  22275. * Hex Floats:: Hexadecimal floating-point constants.
  22276. * Fixed-Point:: Fixed-Point Types.
  22277. * Named Address Spaces::Named address spaces.
  22278. * Zero Length:: Zero-length arrays.
  22279. * Empty Structures:: Structures with no members.
  22280. * Variable Length:: Arrays whose length is computed at run time.
  22281. * Variadic Macros:: Macros with a variable number of arguments.
  22282. * Escaped Newlines:: Slightly looser rules for escaped newlines.
  22283. * Subscripting:: Any array can be subscripted, even if not an lvalue.
  22284. * Pointer Arith:: Arithmetic on 'void'-pointers and function pointers.
  22285. * Pointers to Arrays:: Pointers to arrays with qualifiers work as expected.
  22286. * Initializers:: Non-constant initializers.
  22287. * Compound Literals:: Compound literals give structures, unions
  22288. or arrays as values.
  22289. * Designated Inits:: Labeling elements of initializers.
  22290. * Case Ranges:: 'case 1 ... 9' and such.
  22291. * Cast to Union:: Casting to union type from any member of the union.
  22292. * Mixed Declarations:: Mixing declarations and code.
  22293. * Function Attributes:: Declaring that functions have no side effects,
  22294. or that they can never return.
  22295. * Variable Attributes:: Specifying attributes of variables.
  22296. * Type Attributes:: Specifying attributes of types.
  22297. * Label Attributes:: Specifying attributes on labels.
  22298. * Enumerator Attributes:: Specifying attributes on enumerators.
  22299. * Statement Attributes:: Specifying attributes on statements.
  22300. * Attribute Syntax:: Formal syntax for attributes.
  22301. * Function Prototypes:: Prototype declarations and old-style definitions.
  22302. * C++ Comments:: C++ comments are recognized.
  22303. * Dollar Signs:: Dollar sign is allowed in identifiers.
  22304. * Character Escapes:: '\e' stands for the character <ESC>.
  22305. * Alignment:: Inquiring about the alignment of a type or variable.
  22306. * Inline:: Defining inline functions (as fast as macros).
  22307. * Volatiles:: What constitutes an access to a volatile object.
  22308. * Using Assembly Language with C:: Instructions and extensions for interfacing C with assembler.
  22309. * Alternate Keywords:: '__const__', '__asm__', etc., for header files.
  22310. * Incomplete Enums:: 'enum foo;', with details to follow.
  22311. * Function Names:: Printable strings which are the name of the current
  22312. function.
  22313. * Return Address:: Getting the return or frame address of a function.
  22314. * Vector Extensions:: Using vector instructions through built-in functions.
  22315. * Offsetof:: Special syntax for implementing 'offsetof'.
  22316. * __sync Builtins:: Legacy built-in functions for atomic memory access.
  22317. * __atomic Builtins:: Atomic built-in functions with memory model.
  22318. * Integer Overflow Builtins:: Built-in functions to perform arithmetics and
  22319. arithmetic overflow checking.
  22320. * x86 specific memory model extensions for transactional memory:: x86 memory models.
  22321. * Object Size Checking:: Built-in functions for limited buffer overflow
  22322. checking.
  22323. * Pointer Bounds Checker builtins:: Built-in functions for Pointer Bounds Checker.
  22324. * Other Builtins:: Other built-in functions.
  22325. * Target Builtins:: Built-in functions specific to particular targets.
  22326. * Target Format Checks:: Format checks specific to particular targets.
  22327. * Pragmas:: Pragmas accepted by GCC.
  22328. * Unnamed Fields:: Unnamed struct/union fields within structs/unions.
  22329. * Thread-Local:: Per-thread variables.
  22330. * Binary constants:: Binary constants using the '0b' prefix.
  22331. 
  22332. File: gcc.info, Node: Statement Exprs, Next: Local Labels, Up: C Extensions
  22333. 6.1 Statements and Declarations in Expressions
  22334. ==============================================
  22335. A compound statement enclosed in parentheses may appear as an expression
  22336. in GNU C. This allows you to use loops, switches, and local variables
  22337. within an expression.
  22338. Recall that a compound statement is a sequence of statements surrounded
  22339. by braces; in this construct, parentheses go around the braces. For
  22340. example:
  22341. ({ int y = foo (); int z;
  22342. if (y > 0) z = y;
  22343. else z = - y;
  22344. z; })
  22345. is a valid (though slightly more complex than necessary) expression for
  22346. the absolute value of 'foo ()'.
  22347. The last thing in the compound statement should be an expression
  22348. followed by a semicolon; the value of this subexpression serves as the
  22349. value of the entire construct. (If you use some other kind of statement
  22350. last within the braces, the construct has type 'void', and thus
  22351. effectively no value.)
  22352. This feature is especially useful in making macro definitions "safe"
  22353. (so that they evaluate each operand exactly once). For example, the
  22354. "maximum" function is commonly defined as a macro in standard C as
  22355. follows:
  22356. #define max(a,b) ((a) > (b) ? (a) : (b))
  22357. But this definition computes either A or B twice, with bad results if
  22358. the operand has side effects. In GNU C, if you know the type of the
  22359. operands (here taken as 'int'), you can define the macro safely as
  22360. follows:
  22361. #define maxint(a,b) \
  22362. ({int _a = (a), _b = (b); _a > _b ? _a : _b; })
  22363. Embedded statements are not allowed in constant expressions, such as
  22364. the value of an enumeration constant, the width of a bit-field, or the
  22365. initial value of a static variable.
  22366. If you don't know the type of the operand, you can still do this, but
  22367. you must use 'typeof' or '__auto_type' (*note Typeof::).
  22368. In G++, the result value of a statement expression undergoes array and
  22369. function pointer decay, and is returned by value to the enclosing
  22370. expression. For instance, if 'A' is a class, then
  22371. A a;
  22372. ({a;}).Foo ()
  22373. constructs a temporary 'A' object to hold the result of the statement
  22374. expression, and that is used to invoke 'Foo'. Therefore the 'this'
  22375. pointer observed by 'Foo' is not the address of 'a'.
  22376. In a statement expression, any temporaries created within a statement
  22377. are destroyed at that statement's end. This makes statement expressions
  22378. inside macros slightly different from function calls. In the latter
  22379. case temporaries introduced during argument evaluation are destroyed at
  22380. the end of the statement that includes the function call. In the
  22381. statement expression case they are destroyed during the statement
  22382. expression. For instance,
  22383. #define macro(a) ({__typeof__(a) b = (a); b + 3; })
  22384. template<typename T> T function(T a) { T b = a; return b + 3; }
  22385. void foo ()
  22386. {
  22387. macro (X ());
  22388. function (X ());
  22389. }
  22390. has different places where temporaries are destroyed. For the 'macro'
  22391. case, the temporary 'X' is destroyed just after the initialization of
  22392. 'b'. In the 'function' case that temporary is destroyed when the
  22393. function returns.
  22394. These considerations mean that it is probably a bad idea to use
  22395. statement expressions of this form in header files that are designed to
  22396. work with C++. (Note that some versions of the GNU C Library contained
  22397. header files using statement expressions that lead to precisely this
  22398. bug.)
  22399. Jumping into a statement expression with 'goto' or using a 'switch'
  22400. statement outside the statement expression with a 'case' or 'default'
  22401. label inside the statement expression is not permitted. Jumping into a
  22402. statement expression with a computed 'goto' (*note Labels as Values::)
  22403. has undefined behavior. Jumping out of a statement expression is
  22404. permitted, but if the statement expression is part of a larger
  22405. expression then it is unspecified which other subexpressions of that
  22406. expression have been evaluated except where the language definition
  22407. requires certain subexpressions to be evaluated before or after the
  22408. statement expression. In any case, as with a function call, the
  22409. evaluation of a statement expression is not interleaved with the
  22410. evaluation of other parts of the containing expression. For example,
  22411. foo (), (({ bar1 (); goto a; 0; }) + bar2 ()), baz();
  22412. calls 'foo' and 'bar1' and does not call 'baz' but may or may not call
  22413. 'bar2'. If 'bar2' is called, it is called after 'foo' and before
  22414. 'bar1'.
  22415. 
  22416. File: gcc.info, Node: Local Labels, Next: Labels as Values, Prev: Statement Exprs, Up: C Extensions
  22417. 6.2 Locally Declared Labels
  22418. ===========================
  22419. GCC allows you to declare "local labels" in any nested block scope. A
  22420. local label is just like an ordinary label, but you can only reference
  22421. it (with a 'goto' statement, or by taking its address) within the block
  22422. in which it is declared.
  22423. A local label declaration looks like this:
  22424. __label__ LABEL;
  22425. or
  22426. __label__ LABEL1, LABEL2, /* ... */;
  22427. Local label declarations must come at the beginning of the block,
  22428. before any ordinary declarations or statements.
  22429. The label declaration defines the label _name_, but does not define the
  22430. label itself. You must do this in the usual way, with 'LABEL:', within
  22431. the statements of the statement expression.
  22432. The local label feature is useful for complex macros. If a macro
  22433. contains nested loops, a 'goto' can be useful for breaking out of them.
  22434. However, an ordinary label whose scope is the whole function cannot be
  22435. used: if the macro can be expanded several times in one function, the
  22436. label is multiply defined in that function. A local label avoids this
  22437. problem. For example:
  22438. #define SEARCH(value, array, target) \
  22439. do { \
  22440. __label__ found; \
  22441. typeof (target) _SEARCH_target = (target); \
  22442. typeof (*(array)) *_SEARCH_array = (array); \
  22443. int i, j; \
  22444. int value; \
  22445. for (i = 0; i < max; i++) \
  22446. for (j = 0; j < max; j++) \
  22447. if (_SEARCH_array[i][j] == _SEARCH_target) \
  22448. { (value) = i; goto found; } \
  22449. (value) = -1; \
  22450. found:; \
  22451. } while (0)
  22452. This could also be written using a statement expression:
  22453. #define SEARCH(array, target) \
  22454. ({ \
  22455. __label__ found; \
  22456. typeof (target) _SEARCH_target = (target); \
  22457. typeof (*(array)) *_SEARCH_array = (array); \
  22458. int i, j; \
  22459. int value; \
  22460. for (i = 0; i < max; i++) \
  22461. for (j = 0; j < max; j++) \
  22462. if (_SEARCH_array[i][j] == _SEARCH_target) \
  22463. { value = i; goto found; } \
  22464. value = -1; \
  22465. found: \
  22466. value; \
  22467. })
  22468. Local label declarations also make the labels they declare visible to
  22469. nested functions, if there are any. *Note Nested Functions::, for
  22470. details.
  22471. 
  22472. File: gcc.info, Node: Labels as Values, Next: Nested Functions, Prev: Local Labels, Up: C Extensions
  22473. 6.3 Labels as Values
  22474. ====================
  22475. You can get the address of a label defined in the current function (or a
  22476. containing function) with the unary operator '&&'. The value has type
  22477. 'void *'. This value is a constant and can be used wherever a constant
  22478. of that type is valid. For example:
  22479. void *ptr;
  22480. /* ... */
  22481. ptr = &&foo;
  22482. To use these values, you need to be able to jump to one. This is done
  22483. with the computed goto statement(1), 'goto *EXP;'. For example,
  22484. goto *ptr;
  22485. Any expression of type 'void *' is allowed.
  22486. One way of using these constants is in initializing a static array that
  22487. serves as a jump table:
  22488. static void *array[] = { &&foo, &&bar, &&hack };
  22489. Then you can select a label with indexing, like this:
  22490. goto *array[i];
  22491. Note that this does not check whether the subscript is in bounds--array
  22492. indexing in C never does that.
  22493. Such an array of label values serves a purpose much like that of the
  22494. 'switch' statement. The 'switch' statement is cleaner, so use that
  22495. rather than an array unless the problem does not fit a 'switch'
  22496. statement very well.
  22497. Another use of label values is in an interpreter for threaded code.
  22498. The labels within the interpreter function can be stored in the threaded
  22499. code for super-fast dispatching.
  22500. You may not use this mechanism to jump to code in a different function.
  22501. If you do that, totally unpredictable things happen. The best way to
  22502. avoid this is to store the label address only in automatic variables and
  22503. never pass it as an argument.
  22504. An alternate way to write the above example is
  22505. static const int array[] = { &&foo - &&foo, &&bar - &&foo,
  22506. &&hack - &&foo };
  22507. goto *(&&foo + array[i]);
  22508. This is more friendly to code living in shared libraries, as it reduces
  22509. the number of dynamic relocations that are needed, and by consequence,
  22510. allows the data to be read-only. This alternative with label
  22511. differences is not supported for the AVR target, please use the first
  22512. approach for AVR programs.
  22513. The '&&foo' expressions for the same label might have different values
  22514. if the containing function is inlined or cloned. If a program relies on
  22515. them being always the same, '__attribute__((__noinline__,__noclone__))'
  22516. should be used to prevent inlining and cloning. If '&&foo' is used in a
  22517. static variable initializer, inlining and cloning is forbidden.
  22518. ---------- Footnotes ----------
  22519. (1) The analogous feature in Fortran is called an assigned goto, but
  22520. that name seems inappropriate in C, where one can do more than simply
  22521. store label addresses in label variables.
  22522. 
  22523. File: gcc.info, Node: Nested Functions, Next: Constructing Calls, Prev: Labels as Values, Up: C Extensions
  22524. 6.4 Nested Functions
  22525. ====================
  22526. A "nested function" is a function defined inside another function.
  22527. Nested functions are supported as an extension in GNU C, but are not
  22528. supported by GNU C++.
  22529. The nested function's name is local to the block where it is defined.
  22530. For example, here we define a nested function named 'square', and call
  22531. it twice:
  22532. foo (double a, double b)
  22533. {
  22534. double square (double z) { return z * z; }
  22535. return square (a) + square (b);
  22536. }
  22537. The nested function can access all the variables of the containing
  22538. function that are visible at the point of its definition. This is
  22539. called "lexical scoping". For example, here we show a nested function
  22540. which uses an inherited variable named 'offset':
  22541. bar (int *array, int offset, int size)
  22542. {
  22543. int access (int *array, int index)
  22544. { return array[index + offset]; }
  22545. int i;
  22546. /* ... */
  22547. for (i = 0; i < size; i++)
  22548. /* ... */ access (array, i) /* ... */
  22549. }
  22550. Nested function definitions are permitted within functions in the
  22551. places where variable definitions are allowed; that is, in any block,
  22552. mixed with the other declarations and statements in the block.
  22553. It is possible to call the nested function from outside the scope of
  22554. its name by storing its address or passing the address to another
  22555. function:
  22556. hack (int *array, int size)
  22557. {
  22558. void store (int index, int value)
  22559. { array[index] = value; }
  22560. intermediate (store, size);
  22561. }
  22562. Here, the function 'intermediate' receives the address of 'store' as an
  22563. argument. If 'intermediate' calls 'store', the arguments given to
  22564. 'store' are used to store into 'array'. But this technique works only
  22565. so long as the containing function ('hack', in this example) does not
  22566. exit.
  22567. If you try to call the nested function through its address after the
  22568. containing function exits, all hell breaks loose. If you try to call it
  22569. after a containing scope level exits, and if it refers to some of the
  22570. variables that are no longer in scope, you may be lucky, but it's not
  22571. wise to take the risk. If, however, the nested function does not refer
  22572. to anything that has gone out of scope, you should be safe.
  22573. GCC implements taking the address of a nested function using a
  22574. technique called "trampolines". This technique was described in
  22575. 'Lexical Closures for C++' (Thomas M. Breuel, USENIX C++ Conference
  22576. Proceedings, October 17-21, 1988).
  22577. A nested function can jump to a label inherited from a containing
  22578. function, provided the label is explicitly declared in the containing
  22579. function (*note Local Labels::). Such a jump returns instantly to the
  22580. containing function, exiting the nested function that did the 'goto' and
  22581. any intermediate functions as well. Here is an example:
  22582. bar (int *array, int offset, int size)
  22583. {
  22584. __label__ failure;
  22585. int access (int *array, int index)
  22586. {
  22587. if (index > size)
  22588. goto failure;
  22589. return array[index + offset];
  22590. }
  22591. int i;
  22592. /* ... */
  22593. for (i = 0; i < size; i++)
  22594. /* ... */ access (array, i) /* ... */
  22595. /* ... */
  22596. return 0;
  22597. /* Control comes here from 'access'
  22598. if it detects an error. */
  22599. failure:
  22600. return -1;
  22601. }
  22602. A nested function always has no linkage. Declaring one with 'extern'
  22603. or 'static' is erroneous. If you need to declare the nested function
  22604. before its definition, use 'auto' (which is otherwise meaningless for
  22605. function declarations).
  22606. bar (int *array, int offset, int size)
  22607. {
  22608. __label__ failure;
  22609. auto int access (int *, int);
  22610. /* ... */
  22611. int access (int *array, int index)
  22612. {
  22613. if (index > size)
  22614. goto failure;
  22615. return array[index + offset];
  22616. }
  22617. /* ... */
  22618. }
  22619. 
  22620. File: gcc.info, Node: Constructing Calls, Next: Typeof, Prev: Nested Functions, Up: C Extensions
  22621. 6.5 Constructing Function Calls
  22622. ===============================
  22623. Using the built-in functions described below, you can record the
  22624. arguments a function received, and call another function with the same
  22625. arguments, without knowing the number or types of the arguments.
  22626. You can also record the return value of that function call, and later
  22627. return that value, without knowing what data type the function tried to
  22628. return (as long as your caller expects that data type).
  22629. However, these built-in functions may interact badly with some
  22630. sophisticated features or other extensions of the language. It is,
  22631. therefore, not recommended to use them outside very simple functions
  22632. acting as mere forwarders for their arguments.
  22633. -- Built-in Function: void * __builtin_apply_args ()
  22634. This built-in function returns a pointer to data describing how to
  22635. perform a call with the same arguments as are passed to the current
  22636. function.
  22637. The function saves the arg pointer register, structure value
  22638. address, and all registers that might be used to pass arguments to
  22639. a function into a block of memory allocated on the stack. Then it
  22640. returns the address of that block.
  22641. -- Built-in Function: void * __builtin_apply (void (*FUNCTION)(), void
  22642. *ARGUMENTS, size_t SIZE)
  22643. This built-in function invokes FUNCTION with a copy of the
  22644. parameters described by ARGUMENTS and SIZE.
  22645. The value of ARGUMENTS should be the value returned by
  22646. '__builtin_apply_args'. The argument SIZE specifies the size of
  22647. the stack argument data, in bytes.
  22648. This function returns a pointer to data describing how to return
  22649. whatever value is returned by FUNCTION. The data is saved in a
  22650. block of memory allocated on the stack.
  22651. It is not always simple to compute the proper value for SIZE. The
  22652. value is used by '__builtin_apply' to compute the amount of data
  22653. that should be pushed on the stack and copied from the incoming
  22654. argument area.
  22655. -- Built-in Function: void __builtin_return (void *RESULT)
  22656. This built-in function returns the value described by RESULT from
  22657. the containing function. You should specify, for RESULT, a value
  22658. returned by '__builtin_apply'.
  22659. -- Built-in Function: __builtin_va_arg_pack ()
  22660. This built-in function represents all anonymous arguments of an
  22661. inline function. It can be used only in inline functions that are
  22662. always inlined, never compiled as a separate function, such as
  22663. those using '__attribute__ ((__always_inline__))' or '__attribute__
  22664. ((__gnu_inline__))' extern inline functions. It must be only
  22665. passed as last argument to some other function with variable
  22666. arguments. This is useful for writing small wrapper inlines for
  22667. variable argument functions, when using preprocessor macros is
  22668. undesirable. For example:
  22669. extern int myprintf (FILE *f, const char *format, ...);
  22670. extern inline __attribute__ ((__gnu_inline__)) int
  22671. myprintf (FILE *f, const char *format, ...)
  22672. {
  22673. int r = fprintf (f, "myprintf: ");
  22674. if (r < 0)
  22675. return r;
  22676. int s = fprintf (f, format, __builtin_va_arg_pack ());
  22677. if (s < 0)
  22678. return s;
  22679. return r + s;
  22680. }
  22681. -- Built-in Function: size_t __builtin_va_arg_pack_len ()
  22682. This built-in function returns the number of anonymous arguments of
  22683. an inline function. It can be used only in inline functions that
  22684. are always inlined, never compiled as a separate function, such as
  22685. those using '__attribute__ ((__always_inline__))' or '__attribute__
  22686. ((__gnu_inline__))' extern inline functions. For example following
  22687. does link- or run-time checking of open arguments for optimized
  22688. code:
  22689. #ifdef __OPTIMIZE__
  22690. extern inline __attribute__((__gnu_inline__)) int
  22691. myopen (const char *path, int oflag, ...)
  22692. {
  22693. if (__builtin_va_arg_pack_len () > 1)
  22694. warn_open_too_many_arguments ();
  22695. if (__builtin_constant_p (oflag))
  22696. {
  22697. if ((oflag & O_CREAT) != 0 && __builtin_va_arg_pack_len () < 1)
  22698. {
  22699. warn_open_missing_mode ();
  22700. return __open_2 (path, oflag);
  22701. }
  22702. return open (path, oflag, __builtin_va_arg_pack ());
  22703. }
  22704. if (__builtin_va_arg_pack_len () < 1)
  22705. return __open_2 (path, oflag);
  22706. return open (path, oflag, __builtin_va_arg_pack ());
  22707. }
  22708. #endif
  22709. 
  22710. File: gcc.info, Node: Typeof, Next: Conditionals, Prev: Constructing Calls, Up: C Extensions
  22711. 6.6 Referring to a Type with 'typeof'
  22712. =====================================
  22713. Another way to refer to the type of an expression is with 'typeof'. The
  22714. syntax of using of this keyword looks like 'sizeof', but the construct
  22715. acts semantically like a type name defined with 'typedef'.
  22716. There are two ways of writing the argument to 'typeof': with an
  22717. expression or with a type. Here is an example with an expression:
  22718. typeof (x[0](1))
  22719. This assumes that 'x' is an array of pointers to functions; the type
  22720. described is that of the values of the functions.
  22721. Here is an example with a typename as the argument:
  22722. typeof (int *)
  22723. Here the type described is that of pointers to 'int'.
  22724. If you are writing a header file that must work when included in ISO C
  22725. programs, write '__typeof__' instead of 'typeof'. *Note Alternate
  22726. Keywords::.
  22727. A 'typeof' construct can be used anywhere a typedef name can be used.
  22728. For example, you can use it in a declaration, in a cast, or inside of
  22729. 'sizeof' or 'typeof'.
  22730. The operand of 'typeof' is evaluated for its side effects if and only
  22731. if it is an expression of variably modified type or the name of such a
  22732. type.
  22733. 'typeof' is often useful in conjunction with statement expressions
  22734. (*note Statement Exprs::). Here is how the two together can be used to
  22735. define a safe "maximum" macro which operates on any arithmetic type and
  22736. evaluates each of its arguments exactly once:
  22737. #define max(a,b) \
  22738. ({ typeof (a) _a = (a); \
  22739. typeof (b) _b = (b); \
  22740. _a > _b ? _a : _b; })
  22741. The reason for using names that start with underscores for the local
  22742. variables is to avoid conflicts with variable names that occur within
  22743. the expressions that are substituted for 'a' and 'b'. Eventually we
  22744. hope to design a new form of declaration syntax that allows you to
  22745. declare variables whose scopes start only after their initializers; this
  22746. will be a more reliable way to prevent such conflicts.
  22747. Some more examples of the use of 'typeof':
  22748. * This declares 'y' with the type of what 'x' points to.
  22749. typeof (*x) y;
  22750. * This declares 'y' as an array of such values.
  22751. typeof (*x) y[4];
  22752. * This declares 'y' as an array of pointers to characters:
  22753. typeof (typeof (char *)[4]) y;
  22754. It is equivalent to the following traditional C declaration:
  22755. char *y[4];
  22756. To see the meaning of the declaration using 'typeof', and why it
  22757. might be a useful way to write, rewrite it with these macros:
  22758. #define pointer(T) typeof(T *)
  22759. #define array(T, N) typeof(T [N])
  22760. Now the declaration can be rewritten this way:
  22761. array (pointer (char), 4) y;
  22762. Thus, 'array (pointer (char), 4)' is the type of arrays of 4
  22763. pointers to 'char'.
  22764. In GNU C, but not GNU C++, you may also declare the type of a variable
  22765. as '__auto_type'. In that case, the declaration must declare only one
  22766. variable, whose declarator must just be an identifier, the declaration
  22767. must be initialized, and the type of the variable is determined by the
  22768. initializer; the name of the variable is not in scope until after the
  22769. initializer. (In C++, you should use C++11 'auto' for this purpose.)
  22770. Using '__auto_type', the "maximum" macro above could be written as:
  22771. #define max(a,b) \
  22772. ({ __auto_type _a = (a); \
  22773. __auto_type _b = (b); \
  22774. _a > _b ? _a : _b; })
  22775. Using '__auto_type' instead of 'typeof' has two advantages:
  22776. * Each argument to the macro appears only once in the expansion of
  22777. the macro. This prevents the size of the macro expansion growing
  22778. exponentially when calls to such macros are nested inside arguments
  22779. of such macros.
  22780. * If the argument to the macro has variably modified type, it is
  22781. evaluated only once when using '__auto_type', but twice if 'typeof'
  22782. is used.
  22783. 
  22784. File: gcc.info, Node: Conditionals, Next: __int128, Prev: Typeof, Up: C Extensions
  22785. 6.7 Conditionals with Omitted Operands
  22786. ======================================
  22787. The middle operand in a conditional expression may be omitted. Then if
  22788. the first operand is nonzero, its value is the value of the conditional
  22789. expression.
  22790. Therefore, the expression
  22791. x ? : y
  22792. has the value of 'x' if that is nonzero; otherwise, the value of 'y'.
  22793. This example is perfectly equivalent to
  22794. x ? x : y
  22795. In this simple case, the ability to omit the middle operand is not
  22796. especially useful. When it becomes useful is when the first operand
  22797. does, or may (if it is a macro argument), contain a side effect. Then
  22798. repeating the operand in the middle would perform the side effect twice.
  22799. Omitting the middle operand uses the value already computed without the
  22800. undesirable effects of recomputing it.
  22801. 
  22802. File: gcc.info, Node: __int128, Next: Long Long, Prev: Conditionals, Up: C Extensions
  22803. 6.8 128-bit Integers
  22804. ====================
  22805. As an extension the integer scalar type '__int128' is supported for
  22806. targets which have an integer mode wide enough to hold 128 bits. Simply
  22807. write '__int128' for a signed 128-bit integer, or 'unsigned __int128'
  22808. for an unsigned 128-bit integer. There is no support in GCC for
  22809. expressing an integer constant of type '__int128' for targets with 'long
  22810. long' integer less than 128 bits wide.
  22811. 
  22812. File: gcc.info, Node: Long Long, Next: Complex, Prev: __int128, Up: C Extensions
  22813. 6.9 Double-Word Integers
  22814. ========================
  22815. ISO C99 supports data types for integers that are at least 64 bits wide,
  22816. and as an extension GCC supports them in C90 mode and in C++. Simply
  22817. write 'long long int' for a signed integer, or 'unsigned long long int'
  22818. for an unsigned integer. To make an integer constant of type 'long long
  22819. int', add the suffix 'LL' to the integer. To make an integer constant
  22820. of type 'unsigned long long int', add the suffix 'ULL' to the integer.
  22821. You can use these types in arithmetic like any other integer types.
  22822. Addition, subtraction, and bitwise boolean operations on these types are
  22823. open-coded on all types of machines. Multiplication is open-coded if
  22824. the machine supports a fullword-to-doubleword widening multiply
  22825. instruction. Division and shifts are open-coded only on machines that
  22826. provide special support. The operations that are not open-coded use
  22827. special library routines that come with GCC.
  22828. There may be pitfalls when you use 'long long' types for function
  22829. arguments without function prototypes. If a function expects type 'int'
  22830. for its argument, and you pass a value of type 'long long int',
  22831. confusion results because the caller and the subroutine disagree about
  22832. the number of bytes for the argument. Likewise, if the function expects
  22833. 'long long int' and you pass 'int'. The best way to avoid such problems
  22834. is to use prototypes.
  22835. 
  22836. File: gcc.info, Node: Complex, Next: Floating Types, Prev: Long Long, Up: C Extensions
  22837. 6.10 Complex Numbers
  22838. ====================
  22839. ISO C99 supports complex floating data types, and as an extension GCC
  22840. supports them in C90 mode and in C++. GCC also supports complex integer
  22841. data types which are not part of ISO C99. You can declare complex types
  22842. using the keyword '_Complex'. As an extension, the older GNU keyword
  22843. '__complex__' is also supported.
  22844. For example, '_Complex double x;' declares 'x' as a variable whose real
  22845. part and imaginary part are both of type 'double'. '_Complex short int
  22846. y;' declares 'y' to have real and imaginary parts of type 'short int';
  22847. this is not likely to be useful, but it shows that the set of complex
  22848. types is complete.
  22849. To write a constant with a complex data type, use the suffix 'i' or 'j'
  22850. (either one; they are equivalent). For example, '2.5fi' has type
  22851. '_Complex float' and '3i' has type '_Complex int'. Such a constant
  22852. always has a pure imaginary value, but you can form any complex value
  22853. you like by adding one to a real constant. This is a GNU extension; if
  22854. you have an ISO C99 conforming C library (such as the GNU C Library),
  22855. and want to construct complex constants of floating type, you should
  22856. include '<complex.h>' and use the macros 'I' or '_Complex_I' instead.
  22857. The ISO C++14 library also defines the 'i' suffix, so C++14 code that
  22858. includes the '<complex>' header cannot use 'i' for the GNU extension.
  22859. The 'j' suffix still has the GNU meaning.
  22860. To extract the real part of a complex-valued expression EXP, write
  22861. '__real__ EXP'. Likewise, use '__imag__' to extract the imaginary part.
  22862. This is a GNU extension; for values of floating type, you should use the
  22863. ISO C99 functions 'crealf', 'creal', 'creall', 'cimagf', 'cimag' and
  22864. 'cimagl', declared in '<complex.h>' and also provided as built-in
  22865. functions by GCC.
  22866. The operator '~' performs complex conjugation when used on a value with
  22867. a complex type. This is a GNU extension; for values of floating type,
  22868. you should use the ISO C99 functions 'conjf', 'conj' and 'conjl',
  22869. declared in '<complex.h>' and also provided as built-in functions by
  22870. GCC.
  22871. GCC can allocate complex automatic variables in a noncontiguous
  22872. fashion; it's even possible for the real part to be in a register while
  22873. the imaginary part is on the stack (or vice versa). Only the DWARF
  22874. debug info format can represent this, so use of DWARF is recommended.
  22875. If you are using the stabs debug info format, GCC describes a
  22876. noncontiguous complex variable as if it were two separate variables of
  22877. noncomplex type. If the variable's actual name is 'foo', the two
  22878. fictitious variables are named 'foo$real' and 'foo$imag'. You can
  22879. examine and set these two fictitious variables with your debugger.
  22880. 
  22881. File: gcc.info, Node: Floating Types, Next: Half-Precision, Prev: Complex, Up: C Extensions
  22882. 6.11 Additional Floating Types
  22883. ==============================
  22884. ISO/IEC TS 18661-3:2015 defines C support for additional floating types
  22885. '_FloatN' and '_FloatNx', and GCC supports these type names; the set of
  22886. types supported depends on the target architecture. These types are not
  22887. supported when compiling C++. Constants with these types use suffixes
  22888. 'fN' or 'FN' and 'fNx' or 'FNx'. These type names can be used together
  22889. with '_Complex' to declare complex types.
  22890. As an extension, GNU C and GNU C++ support additional floating types,
  22891. which are not supported by all targets.
  22892. * '__float128' is available on i386, x86_64, IA-64, and hppa HP-UX,
  22893. as well as on PowerPC GNU/Linux targets that enable the vector
  22894. scalar (VSX) instruction set. '__float128' supports the 128-bit
  22895. floating type. On i386, x86_64, PowerPC, and IA-64 other than
  22896. HP-UX, '__float128' is an alias for '_Float128'. On hppa and IA-64
  22897. HP-UX, '__float128' is an alias for 'long double'.
  22898. * '__float80' is available on the i386, x86_64, and IA-64 targets,
  22899. and supports the 80-bit ('XFmode') floating type. It is an alias
  22900. for the type name '_Float64x' on these targets.
  22901. * '__ibm128' is available on PowerPC targets, and provides access to
  22902. the IBM extended double format which is the current format used for
  22903. 'long double'. When 'long double' transitions to '__float128' on
  22904. PowerPC in the future, '__ibm128' will remain for use in
  22905. conversions between the two types.
  22906. Support for these additional types includes the arithmetic operators:
  22907. add, subtract, multiply, divide; unary arithmetic operators; relational
  22908. operators; equality operators; and conversions to and from integer and
  22909. other floating types. Use a suffix 'w' or 'W' in a literal constant of
  22910. type '__float80' or type '__ibm128'. Use a suffix 'q' or 'Q' for
  22911. '_float128'.
  22912. In order to use '_Float128', '__float128', and '__ibm128' on PowerPC
  22913. Linux systems, you must use the '-mfloat128' option. It is expected in
  22914. future versions of GCC that '_Float128' and '__float128' will be enabled
  22915. automatically.
  22916. The '_Float128' type is supported on all systems where '__float128' is
  22917. supported or where 'long double' has the IEEE binary128 format. The
  22918. '_Float64x' type is supported on all systems where '__float128' is
  22919. supported. The '_Float32' type is supported on all systems supporting
  22920. IEEE binary32; the '_Float64' and '_Float32x' types are supported on all
  22921. systems supporting IEEE binary64. The '_Float16' type is supported on
  22922. AArch64 systems by default, and on ARM systems when the IEEE format for
  22923. 16-bit floating-point types is selected with '-mfp16-format=ieee'. GCC
  22924. does not currently support '_Float128x' on any systems.
  22925. On the i386, x86_64, IA-64, and HP-UX targets, you can declare complex
  22926. types using the corresponding internal complex type, 'XCmode' for
  22927. '__float80' type and 'TCmode' for '__float128' type:
  22928. typedef _Complex float __attribute__((mode(TC))) _Complex128;
  22929. typedef _Complex float __attribute__((mode(XC))) _Complex80;
  22930. On the PowerPC Linux VSX targets, you can declare complex types using
  22931. the corresponding internal complex type, 'KCmode' for '__float128' type
  22932. and 'ICmode' for '__ibm128' type:
  22933. typedef _Complex float __attribute__((mode(KC))) _Complex_float128;
  22934. typedef _Complex float __attribute__((mode(IC))) _Complex_ibm128;
  22935. 
  22936. File: gcc.info, Node: Half-Precision, Next: Decimal Float, Prev: Floating Types, Up: C Extensions
  22937. 6.12 Half-Precision Floating Point
  22938. ==================================
  22939. On ARM and AArch64 targets, GCC supports half-precision (16-bit)
  22940. floating point via the '__fp16' type defined in the ARM C Language
  22941. Extensions. On ARM systems, you must enable this type explicitly with
  22942. the '-mfp16-format' command-line option in order to use it.
  22943. ARM targets support two incompatible representations for half-precision
  22944. floating-point values. You must choose one of the representations and
  22945. use it consistently in your program.
  22946. Specifying '-mfp16-format=ieee' selects the IEEE 754-2008 format. This
  22947. format can represent normalized values in the range of 2^{-14} to 65504.
  22948. There are 11 bits of significand precision, approximately 3 decimal
  22949. digits.
  22950. Specifying '-mfp16-format=alternative' selects the ARM alternative
  22951. format. This representation is similar to the IEEE format, but does not
  22952. support infinities or NaNs. Instead, the range of exponents is
  22953. extended, so that this format can represent normalized values in the
  22954. range of 2^{-14} to 131008.
  22955. The GCC port for AArch64 only supports the IEEE 754-2008 format, and
  22956. does not require use of the '-mfp16-format' command-line option.
  22957. The '__fp16' type may only be used as an argument to intrinsics defined
  22958. in '<arm_fp16.h>', or as a storage format. For purposes of arithmetic
  22959. and other operations, '__fp16' values in C or C++ expressions are
  22960. automatically promoted to 'float'.
  22961. The ARM target provides hardware support for conversions between
  22962. '__fp16' and 'float' values as an extension to VFP and NEON (Advanced
  22963. SIMD), and from ARMv8-A provides hardware support for conversions
  22964. between '__fp16' and 'double' values. GCC generates code using these
  22965. hardware instructions if you compile with options to select an FPU that
  22966. provides them; for example, '-mfpu=neon-fp16 -mfloat-abi=softfp', in
  22967. addition to the '-mfp16-format' option to select a half-precision
  22968. format.
  22969. Language-level support for the '__fp16' data type is independent of
  22970. whether GCC generates code using hardware floating-point instructions.
  22971. In cases where hardware support is not specified, GCC implements
  22972. conversions between '__fp16' and other types as library calls.
  22973. It is recommended that portable code use the '_Float16' type defined by
  22974. ISO/IEC TS 18661-3:2015. *Note Floating Types::.
  22975. 
  22976. File: gcc.info, Node: Decimal Float, Next: Hex Floats, Prev: Half-Precision, Up: C Extensions
  22977. 6.13 Decimal Floating Types
  22978. ===========================
  22979. As an extension, GNU C supports decimal floating types as defined in the
  22980. N1312 draft of ISO/IEC WDTR24732. Support for decimal floating types in
  22981. GCC will evolve as the draft technical report changes. Calling
  22982. conventions for any target might also change. Not all targets support
  22983. decimal floating types.
  22984. The decimal floating types are '_Decimal32', '_Decimal64', and
  22985. '_Decimal128'. They use a radix of ten, unlike the floating types
  22986. 'float', 'double', and 'long double' whose radix is not specified by the
  22987. C standard but is usually two.
  22988. Support for decimal floating types includes the arithmetic operators
  22989. add, subtract, multiply, divide; unary arithmetic operators; relational
  22990. operators; equality operators; and conversions to and from integer and
  22991. other floating types. Use a suffix 'df' or 'DF' in a literal constant
  22992. of type '_Decimal32', 'dd' or 'DD' for '_Decimal64', and 'dl' or 'DL'
  22993. for '_Decimal128'.
  22994. GCC support of decimal float as specified by the draft technical report
  22995. is incomplete:
  22996. * When the value of a decimal floating type cannot be represented in
  22997. the integer type to which it is being converted, the result is
  22998. undefined rather than the result value specified by the draft
  22999. technical report.
  23000. * GCC does not provide the C library functionality associated with
  23001. 'math.h', 'fenv.h', 'stdio.h', 'stdlib.h', and 'wchar.h', which
  23002. must come from a separate C library implementation. Because of
  23003. this the GNU C compiler does not define macro '__STDC_DEC_FP__' to
  23004. indicate that the implementation conforms to the technical report.
  23005. Types '_Decimal32', '_Decimal64', and '_Decimal128' are supported by
  23006. the DWARF debug information format.
  23007. 
  23008. File: gcc.info, Node: Hex Floats, Next: Fixed-Point, Prev: Decimal Float, Up: C Extensions
  23009. 6.14 Hex Floats
  23010. ===============
  23011. ISO C99 supports floating-point numbers written not only in the usual
  23012. decimal notation, such as '1.55e1', but also numbers such as '0x1.fp3'
  23013. written in hexadecimal format. As a GNU extension, GCC supports this in
  23014. C90 mode (except in some cases when strictly conforming) and in C++. In
  23015. that format the '0x' hex introducer and the 'p' or 'P' exponent field
  23016. are mandatory. The exponent is a decimal number that indicates the
  23017. power of 2 by which the significant part is multiplied. Thus '0x1.f' is
  23018. 1 15/16, 'p3' multiplies it by 8, and the value of '0x1.fp3' is the same
  23019. as '1.55e1'.
  23020. Unlike for floating-point numbers in the decimal notation the exponent
  23021. is always required in the hexadecimal notation. Otherwise the compiler
  23022. would not be able to resolve the ambiguity of, e.g., '0x1.f'. This
  23023. could mean '1.0f' or '1.9375' since 'f' is also the extension for
  23024. floating-point constants of type 'float'.
  23025. 
  23026. File: gcc.info, Node: Fixed-Point, Next: Named Address Spaces, Prev: Hex Floats, Up: C Extensions
  23027. 6.15 Fixed-Point Types
  23028. ======================
  23029. As an extension, GNU C supports fixed-point types as defined in the
  23030. N1169 draft of ISO/IEC DTR 18037. Support for fixed-point types in GCC
  23031. will evolve as the draft technical report changes. Calling conventions
  23032. for any target might also change. Not all targets support fixed-point
  23033. types.
  23034. The fixed-point types are 'short _Fract', '_Fract', 'long _Fract',
  23035. 'long long _Fract', 'unsigned short _Fract', 'unsigned _Fract',
  23036. 'unsigned long _Fract', 'unsigned long long _Fract', '_Sat short
  23037. _Fract', '_Sat _Fract', '_Sat long _Fract', '_Sat long long _Fract',
  23038. '_Sat unsigned short _Fract', '_Sat unsigned _Fract', '_Sat unsigned
  23039. long _Fract', '_Sat unsigned long long _Fract', 'short _Accum',
  23040. '_Accum', 'long _Accum', 'long long _Accum', 'unsigned short _Accum',
  23041. 'unsigned _Accum', 'unsigned long _Accum', 'unsigned long long _Accum',
  23042. '_Sat short _Accum', '_Sat _Accum', '_Sat long _Accum', '_Sat long long
  23043. _Accum', '_Sat unsigned short _Accum', '_Sat unsigned _Accum', '_Sat
  23044. unsigned long _Accum', '_Sat unsigned long long _Accum'.
  23045. Fixed-point data values contain fractional and optional integral parts.
  23046. The format of fixed-point data varies and depends on the target machine.
  23047. Support for fixed-point types includes:
  23048. * prefix and postfix increment and decrement operators ('++', '--')
  23049. * unary arithmetic operators ('+', '-', '!')
  23050. * binary arithmetic operators ('+', '-', '*', '/')
  23051. * binary shift operators ('<<', '>>')
  23052. * relational operators ('<', '<=', '>=', '>')
  23053. * equality operators ('==', '!=')
  23054. * assignment operators ('+=', '-=', '*=', '/=', '<<=', '>>=')
  23055. * conversions to and from integer, floating-point, or fixed-point
  23056. types
  23057. Use a suffix in a fixed-point literal constant:
  23058. * 'hr' or 'HR' for 'short _Fract' and '_Sat short _Fract'
  23059. * 'r' or 'R' for '_Fract' and '_Sat _Fract'
  23060. * 'lr' or 'LR' for 'long _Fract' and '_Sat long _Fract'
  23061. * 'llr' or 'LLR' for 'long long _Fract' and '_Sat long long _Fract'
  23062. * 'uhr' or 'UHR' for 'unsigned short _Fract' and '_Sat unsigned short
  23063. _Fract'
  23064. * 'ur' or 'UR' for 'unsigned _Fract' and '_Sat unsigned _Fract'
  23065. * 'ulr' or 'ULR' for 'unsigned long _Fract' and '_Sat unsigned long
  23066. _Fract'
  23067. * 'ullr' or 'ULLR' for 'unsigned long long _Fract' and '_Sat unsigned
  23068. long long _Fract'
  23069. * 'hk' or 'HK' for 'short _Accum' and '_Sat short _Accum'
  23070. * 'k' or 'K' for '_Accum' and '_Sat _Accum'
  23071. * 'lk' or 'LK' for 'long _Accum' and '_Sat long _Accum'
  23072. * 'llk' or 'LLK' for 'long long _Accum' and '_Sat long long _Accum'
  23073. * 'uhk' or 'UHK' for 'unsigned short _Accum' and '_Sat unsigned short
  23074. _Accum'
  23075. * 'uk' or 'UK' for 'unsigned _Accum' and '_Sat unsigned _Accum'
  23076. * 'ulk' or 'ULK' for 'unsigned long _Accum' and '_Sat unsigned long
  23077. _Accum'
  23078. * 'ullk' or 'ULLK' for 'unsigned long long _Accum' and '_Sat unsigned
  23079. long long _Accum'
  23080. GCC support of fixed-point types as specified by the draft technical
  23081. report is incomplete:
  23082. * Pragmas to control overflow and rounding behaviors are not
  23083. implemented.
  23084. Fixed-point types are supported by the DWARF debug information format.
  23085. 
  23086. File: gcc.info, Node: Named Address Spaces, Next: Zero Length, Prev: Fixed-Point, Up: C Extensions
  23087. 6.16 Named Address Spaces
  23088. =========================
  23089. As an extension, GNU C supports named address spaces as defined in the
  23090. N1275 draft of ISO/IEC DTR 18037. Support for named address spaces in
  23091. GCC will evolve as the draft technical report changes. Calling
  23092. conventions for any target might also change. At present, only the AVR,
  23093. SPU, M32C, RL78, and x86 targets support address spaces other than the
  23094. generic address space.
  23095. Address space identifiers may be used exactly like any other C type
  23096. qualifier (e.g., 'const' or 'volatile'). See the N1275 document for
  23097. more details.
  23098. 6.16.1 AVR Named Address Spaces
  23099. -------------------------------
  23100. On the AVR target, there are several address spaces that can be used in
  23101. order to put read-only data into the flash memory and access that data
  23102. by means of the special instructions 'LPM' or 'ELPM' needed to read from
  23103. flash.
  23104. Devices belonging to 'avrtiny' and 'avrxmega3' can access flash memory
  23105. by means of 'LD*' instructions because the flash memory is mapped into
  23106. the RAM address space. There is _no need_ for language extensions like
  23107. '__flash' or attribute *note 'progmem': AVR Variable Attributes. The
  23108. default linker description files for these devices cater for that
  23109. feature and '.rodata' stays in flash: The compiler just generates 'LD*'
  23110. instructions, and the linker script adds core specific offsets to all
  23111. '.rodata' symbols: '0x4000' in the case of 'avrtiny' and '0x8000' in the
  23112. case of 'avrxmega3'. See *note AVR Options:: for a list of respective
  23113. devices.
  23114. For devices not in 'avrtiny' or 'avrxmega3', any data including
  23115. read-only data is located in RAM (the generic address space) because
  23116. flash memory is not visible in the RAM address space. In order to
  23117. locate read-only data in flash memory _and_ to generate the right
  23118. instructions to access this data without using (inline) assembler code,
  23119. special address spaces are needed.
  23120. '__flash'
  23121. The '__flash' qualifier locates data in the '.progmem.data'
  23122. section. Data is read using the 'LPM' instruction. Pointers to
  23123. this address space are 16 bits wide.
  23124. '__flash1'
  23125. '__flash2'
  23126. '__flash3'
  23127. '__flash4'
  23128. '__flash5'
  23129. These are 16-bit address spaces locating data in section
  23130. '.progmemN.data' where N refers to address space '__flashN'. The
  23131. compiler sets the 'RAMPZ' segment register appropriately before
  23132. reading data by means of the 'ELPM' instruction.
  23133. '__memx'
  23134. This is a 24-bit address space that linearizes flash and RAM: If
  23135. the high bit of the address is set, data is read from RAM using the
  23136. lower two bytes as RAM address. If the high bit of the address is
  23137. clear, data is read from flash with 'RAMPZ' set according to the
  23138. high byte of the address. *Note '__builtin_avr_flash_segment': AVR
  23139. Built-in Functions.
  23140. Objects in this address space are located in '.progmemx.data'.
  23141. Example
  23142. char my_read (const __flash char ** p)
  23143. {
  23144. /* p is a pointer to RAM that points to a pointer to flash.
  23145. The first indirection of p reads that flash pointer
  23146. from RAM and the second indirection reads a char from this
  23147. flash address. */
  23148. return **p;
  23149. }
  23150. /* Locate array[] in flash memory */
  23151. const __flash int array[] = { 3, 5, 7, 11, 13, 17, 19 };
  23152. int i = 1;
  23153. int main (void)
  23154. {
  23155. /* Return 17 by reading from flash memory */
  23156. return array[array[i]];
  23157. }
  23158. For each named address space supported by avr-gcc there is an equally
  23159. named but uppercase built-in macro defined. The purpose is to
  23160. facilitate testing if respective address space support is available or
  23161. not:
  23162. #ifdef __FLASH
  23163. const __flash int var = 1;
  23164. int read_var (void)
  23165. {
  23166. return var;
  23167. }
  23168. #else
  23169. #include <avr/pgmspace.h> /* From AVR-LibC */
  23170. const int var PROGMEM = 1;
  23171. int read_var (void)
  23172. {
  23173. return (int) pgm_read_word (&var);
  23174. }
  23175. #endif /* __FLASH */
  23176. Notice that attribute *note 'progmem': AVR Variable Attributes. locates
  23177. data in flash but accesses to these data read from generic address
  23178. space, i.e. from RAM, so that you need special accessors like
  23179. 'pgm_read_byte' from AVR-LibC (http://nongnu.org/avr-libc/user-manual/)
  23180. together with attribute 'progmem'.
  23181. Limitations and caveats
  23182. * Reading across the 64 KiB section boundary of the '__flash' or
  23183. '__flashN' address spaces shows undefined behavior. The only
  23184. address space that supports reading across the 64 KiB flash segment
  23185. boundaries is '__memx'.
  23186. * If you use one of the '__flashN' address spaces you must arrange
  23187. your linker script to locate the '.progmemN.data' sections
  23188. according to your needs.
  23189. * Any data or pointers to the non-generic address spaces must be
  23190. qualified as 'const', i.e. as read-only data. This still applies
  23191. if the data in one of these address spaces like software version
  23192. number or calibration lookup table are intended to be changed after
  23193. load time by, say, a boot loader. In this case the right
  23194. qualification is 'const' 'volatile' so that the compiler must not
  23195. optimize away known values or insert them as immediates into
  23196. operands of instructions.
  23197. * The following code initializes a variable 'pfoo' located in static
  23198. storage with a 24-bit address:
  23199. extern const __memx char foo;
  23200. const __memx void *pfoo = &foo;
  23201. * On the reduced Tiny devices like ATtiny40, no address spaces are
  23202. supported. Just use vanilla C / C++ code without overhead as
  23203. outlined above. Attribute 'progmem' is supported but works
  23204. differently, see *note AVR Variable Attributes::.
  23205. 6.16.2 M32C Named Address Spaces
  23206. --------------------------------
  23207. On the M32C target, with the R8C and M16C CPU variants, variables
  23208. qualified with '__far' are accessed using 32-bit addresses in order to
  23209. access memory beyond the first 64 Ki bytes. If '__far' is used with the
  23210. M32CM or M32C CPU variants, it has no effect.
  23211. 6.16.3 RL78 Named Address Spaces
  23212. --------------------------------
  23213. On the RL78 target, variables qualified with '__far' are accessed with
  23214. 32-bit pointers (20-bit addresses) rather than the default 16-bit
  23215. addresses. Non-far variables are assumed to appear in the topmost
  23216. 64 KiB of the address space.
  23217. 6.16.4 SPU Named Address Spaces
  23218. -------------------------------
  23219. On the SPU target variables may be declared as belonging to another
  23220. address space by qualifying the type with the '__ea' address space
  23221. identifier:
  23222. extern int __ea i;
  23223. The compiler generates special code to access the variable 'i'. It may
  23224. use runtime library support, or generate special machine instructions to
  23225. access that address space.
  23226. 6.16.5 x86 Named Address Spaces
  23227. -------------------------------
  23228. On the x86 target, variables may be declared as being relative to the
  23229. '%fs' or '%gs' segments.
  23230. '__seg_fs'
  23231. '__seg_gs'
  23232. The object is accessed with the respective segment override prefix.
  23233. The respective segment base must be set via some method specific to
  23234. the operating system. Rather than require an expensive system call
  23235. to retrieve the segment base, these address spaces are not
  23236. considered to be subspaces of the generic (flat) address space.
  23237. This means that explicit casts are required to convert pointers
  23238. between these address spaces and the generic address space. In
  23239. practice the application should cast to 'uintptr_t' and apply the
  23240. segment base offset that it installed previously.
  23241. The preprocessor symbols '__SEG_FS' and '__SEG_GS' are defined when
  23242. these address spaces are supported.
  23243. 
  23244. File: gcc.info, Node: Zero Length, Next: Empty Structures, Prev: Named Address Spaces, Up: C Extensions
  23245. 6.17 Arrays of Length Zero
  23246. ==========================
  23247. Zero-length arrays are allowed in GNU C. They are very useful as the
  23248. last element of a structure that is really a header for a
  23249. variable-length object:
  23250. struct line {
  23251. int length;
  23252. char contents[0];
  23253. };
  23254. struct line *thisline = (struct line *)
  23255. malloc (sizeof (struct line) + this_length);
  23256. thisline->length = this_length;
  23257. In ISO C90, you would have to give 'contents' a length of 1, which
  23258. means either you waste space or complicate the argument to 'malloc'.
  23259. In ISO C99, you would use a "flexible array member", which is slightly
  23260. different in syntax and semantics:
  23261. * Flexible array members are written as 'contents[]' without the '0'.
  23262. * Flexible array members have incomplete type, and so the 'sizeof'
  23263. operator may not be applied. As a quirk of the original
  23264. implementation of zero-length arrays, 'sizeof' evaluates to zero.
  23265. * Flexible array members may only appear as the last member of a
  23266. 'struct' that is otherwise non-empty.
  23267. * A structure containing a flexible array member, or a union
  23268. containing such a structure (possibly recursively), may not be a
  23269. member of a structure or an element of an array. (However, these
  23270. uses are permitted by GCC as extensions.)
  23271. Non-empty initialization of zero-length arrays is treated like any case
  23272. where there are more initializer elements than the array holds, in that
  23273. a suitable warning about "excess elements in array" is given, and the
  23274. excess elements (all of them, in this case) are ignored.
  23275. GCC allows static initialization of flexible array members. This is
  23276. equivalent to defining a new structure containing the original structure
  23277. followed by an array of sufficient size to contain the data. E.g. in
  23278. the following, 'f1' is constructed as if it were declared like 'f2'.
  23279. struct f1 {
  23280. int x; int y[];
  23281. } f1 = { 1, { 2, 3, 4 } };
  23282. struct f2 {
  23283. struct f1 f1; int data[3];
  23284. } f2 = { { 1 }, { 2, 3, 4 } };
  23285. The convenience of this extension is that 'f1' has the desired type,
  23286. eliminating the need to consistently refer to 'f2.f1'.
  23287. This has symmetry with normal static arrays, in that an array of
  23288. unknown size is also written with '[]'.
  23289. Of course, this extension only makes sense if the extra data comes at
  23290. the end of a top-level object, as otherwise we would be overwriting data
  23291. at subsequent offsets. To avoid undue complication and confusion with
  23292. initialization of deeply nested arrays, we simply disallow any non-empty
  23293. initialization except when the structure is the top-level object. For
  23294. example:
  23295. struct foo { int x; int y[]; };
  23296. struct bar { struct foo z; };
  23297. struct foo a = { 1, { 2, 3, 4 } }; // Valid.
  23298. struct bar b = { { 1, { 2, 3, 4 } } }; // Invalid.
  23299. struct bar c = { { 1, { } } }; // Valid.
  23300. struct foo d[1] = { { 1, { 2, 3, 4 } } }; // Invalid.
  23301. 
  23302. File: gcc.info, Node: Empty Structures, Next: Variable Length, Prev: Zero Length, Up: C Extensions
  23303. 6.18 Structures with No Members
  23304. ===============================
  23305. GCC permits a C structure to have no members:
  23306. struct empty {
  23307. };
  23308. The structure has size zero. In C++, empty structures are part of the
  23309. language. G++ treats empty structures as if they had a single member of
  23310. type 'char'.
  23311. 
  23312. File: gcc.info, Node: Variable Length, Next: Variadic Macros, Prev: Empty Structures, Up: C Extensions
  23313. 6.19 Arrays of Variable Length
  23314. ==============================
  23315. Variable-length automatic arrays are allowed in ISO C99, and as an
  23316. extension GCC accepts them in C90 mode and in C++. These arrays are
  23317. declared like any other automatic arrays, but with a length that is not
  23318. a constant expression. The storage is allocated at the point of
  23319. declaration and deallocated when the block scope containing the
  23320. declaration exits. For example:
  23321. FILE *
  23322. concat_fopen (char *s1, char *s2, char *mode)
  23323. {
  23324. char str[strlen (s1) + strlen (s2) + 1];
  23325. strcpy (str, s1);
  23326. strcat (str, s2);
  23327. return fopen (str, mode);
  23328. }
  23329. Jumping or breaking out of the scope of the array name deallocates the
  23330. storage. Jumping into the scope is not allowed; you get an error
  23331. message for it.
  23332. As an extension, GCC accepts variable-length arrays as a member of a
  23333. structure or a union. For example:
  23334. void
  23335. foo (int n)
  23336. {
  23337. struct S { int x[n]; };
  23338. }
  23339. You can use the function 'alloca' to get an effect much like
  23340. variable-length arrays. The function 'alloca' is available in many
  23341. other C implementations (but not in all). On the other hand,
  23342. variable-length arrays are more elegant.
  23343. There are other differences between these two methods. Space allocated
  23344. with 'alloca' exists until the containing _function_ returns. The space
  23345. for a variable-length array is deallocated as soon as the array name's
  23346. scope ends, unless you also use 'alloca' in this scope.
  23347. You can also use variable-length arrays as arguments to functions:
  23348. struct entry
  23349. tester (int len, char data[len][len])
  23350. {
  23351. /* ... */
  23352. }
  23353. The length of an array is computed once when the storage is allocated
  23354. and is remembered for the scope of the array in case you access it with
  23355. 'sizeof'.
  23356. If you want to pass the array first and the length afterward, you can
  23357. use a forward declaration in the parameter list--another GNU extension.
  23358. struct entry
  23359. tester (int len; char data[len][len], int len)
  23360. {
  23361. /* ... */
  23362. }
  23363. The 'int len' before the semicolon is a "parameter forward
  23364. declaration", and it serves the purpose of making the name 'len' known
  23365. when the declaration of 'data' is parsed.
  23366. You can write any number of such parameter forward declarations in the
  23367. parameter list. They can be separated by commas or semicolons, but the
  23368. last one must end with a semicolon, which is followed by the "real"
  23369. parameter declarations. Each forward declaration must match a "real"
  23370. declaration in parameter name and data type. ISO C99 does not support
  23371. parameter forward declarations.
  23372. 
  23373. File: gcc.info, Node: Variadic Macros, Next: Escaped Newlines, Prev: Variable Length, Up: C Extensions
  23374. 6.20 Macros with a Variable Number of Arguments.
  23375. ================================================
  23376. In the ISO C standard of 1999, a macro can be declared to accept a
  23377. variable number of arguments much as a function can. The syntax for
  23378. defining the macro is similar to that of a function. Here is an
  23379. example:
  23380. #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)
  23381. Here '...' is a "variable argument". In the invocation of such a macro,
  23382. it represents the zero or more tokens until the closing parenthesis that
  23383. ends the invocation, including any commas. This set of tokens replaces
  23384. the identifier '__VA_ARGS__' in the macro body wherever it appears. See
  23385. the CPP manual for more information.
  23386. GCC has long supported variadic macros, and used a different syntax
  23387. that allowed you to give a name to the variable arguments just like any
  23388. other argument. Here is an example:
  23389. #define debug(format, args...) fprintf (stderr, format, args)
  23390. This is in all ways equivalent to the ISO C example above, but arguably
  23391. more readable and descriptive.
  23392. GNU CPP has two further variadic macro extensions, and permits them to
  23393. be used with either of the above forms of macro definition.
  23394. In standard C, you are not allowed to leave the variable argument out
  23395. entirely; but you are allowed to pass an empty argument. For example,
  23396. this invocation is invalid in ISO C, because there is no comma after the
  23397. string:
  23398. debug ("A message")
  23399. GNU CPP permits you to completely omit the variable arguments in this
  23400. way. In the above examples, the compiler would complain, though since
  23401. the expansion of the macro still has the extra comma after the format
  23402. string.
  23403. To help solve this problem, CPP behaves specially for variable
  23404. arguments used with the token paste operator, '##'. If instead you
  23405. write
  23406. #define debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
  23407. and if the variable arguments are omitted or empty, the '##' operator
  23408. causes the preprocessor to remove the comma before it. If you do
  23409. provide some variable arguments in your macro invocation, GNU CPP does
  23410. not complain about the paste operation and instead places the variable
  23411. arguments after the comma. Just like any other pasted macro argument,
  23412. these arguments are not macro expanded.
  23413. 
  23414. File: gcc.info, Node: Escaped Newlines, Next: Subscripting, Prev: Variadic Macros, Up: C Extensions
  23415. 6.21 Slightly Looser Rules for Escaped Newlines
  23416. ===============================================
  23417. The preprocessor treatment of escaped newlines is more relaxed than that
  23418. specified by the C90 standard, which requires the newline to immediately
  23419. follow a backslash. GCC's implementation allows whitespace in the form
  23420. of spaces, horizontal and vertical tabs, and form feeds between the
  23421. backslash and the subsequent newline. The preprocessor issues a
  23422. warning, but treats it as a valid escaped newline and combines the two
  23423. lines to form a single logical line. This works within comments and
  23424. tokens, as well as between tokens. Comments are _not_ treated as
  23425. whitespace for the purposes of this relaxation, since they have not yet
  23426. been replaced with spaces.
  23427. 
  23428. File: gcc.info, Node: Subscripting, Next: Pointer Arith, Prev: Escaped Newlines, Up: C Extensions
  23429. 6.22 Non-Lvalue Arrays May Have Subscripts
  23430. ==========================================
  23431. In ISO C99, arrays that are not lvalues still decay to pointers, and may
  23432. be subscripted, although they may not be modified or used after the next
  23433. sequence point and the unary '&' operator may not be applied to them.
  23434. As an extension, GNU C allows such arrays to be subscripted in C90 mode,
  23435. though otherwise they do not decay to pointers outside C99 mode. For
  23436. example, this is valid in GNU C though not valid in C90:
  23437. struct foo {int a[4];};
  23438. struct foo f();
  23439. bar (int index)
  23440. {
  23441. return f().a[index];
  23442. }
  23443. 
  23444. File: gcc.info, Node: Pointer Arith, Next: Pointers to Arrays, Prev: Subscripting, Up: C Extensions
  23445. 6.23 Arithmetic on 'void'- and Function-Pointers
  23446. ================================================
  23447. In GNU C, addition and subtraction operations are supported on pointers
  23448. to 'void' and on pointers to functions. This is done by treating the
  23449. size of a 'void' or of a function as 1.
  23450. A consequence of this is that 'sizeof' is also allowed on 'void' and on
  23451. function types, and returns 1.
  23452. The option '-Wpointer-arith' requests a warning if these extensions are
  23453. used.
  23454. 
  23455. File: gcc.info, Node: Pointers to Arrays, Next: Initializers, Prev: Pointer Arith, Up: C Extensions
  23456. 6.24 Pointers to Arrays with Qualifiers Work as Expected
  23457. ========================================================
  23458. In GNU C, pointers to arrays with qualifiers work similar to pointers to
  23459. other qualified types. For example, a value of type 'int (*)[5]' can be
  23460. used to initialize a variable of type 'const int (*)[5]'. These types
  23461. are incompatible in ISO C because the 'const' qualifier is formally
  23462. attached to the element type of the array and not the array itself.
  23463. extern void
  23464. transpose (int N, int M, double out[M][N], const double in[N][M]);
  23465. double x[3][2];
  23466. double y[2][3];
  23467. ...
  23468. transpose(3, 2, y, x);
  23469. 
  23470. File: gcc.info, Node: Initializers, Next: Compound Literals, Prev: Pointers to Arrays, Up: C Extensions
  23471. 6.25 Non-Constant Initializers
  23472. ==============================
  23473. As in standard C++ and ISO C99, the elements of an aggregate initializer
  23474. for an automatic variable are not required to be constant expressions in
  23475. GNU C. Here is an example of an initializer with run-time varying
  23476. elements:
  23477. foo (float f, float g)
  23478. {
  23479. float beat_freqs[2] = { f-g, f+g };
  23480. /* ... */
  23481. }
  23482. 
  23483. File: gcc.info, Node: Compound Literals, Next: Designated Inits, Prev: Initializers, Up: C Extensions
  23484. 6.26 Compound Literals
  23485. ======================
  23486. A compound literal looks like a cast of a brace-enclosed aggregate
  23487. initializer list. Its value is an object of the type specified in the
  23488. cast, containing the elements specified in the initializer. Unlike the
  23489. result of a cast, a compound literal is an lvalue. ISO C99 and later
  23490. support compound literals. As an extension, GCC supports compound
  23491. literals also in C90 mode and in C++, although as explained below, the
  23492. C++ semantics are somewhat different.
  23493. Usually, the specified type of a compound literal is a structure.
  23494. Assume that 'struct foo' and 'structure' are declared as shown:
  23495. struct foo {int a; char b[2];} structure;
  23496. Here is an example of constructing a 'struct foo' with a compound
  23497. literal:
  23498. structure = ((struct foo) {x + y, 'a', 0});
  23499. This is equivalent to writing the following:
  23500. {
  23501. struct foo temp = {x + y, 'a', 0};
  23502. structure = temp;
  23503. }
  23504. You can also construct an array, though this is dangerous in C++, as
  23505. explained below. If all the elements of the compound literal are (made
  23506. up of) simple constant expressions suitable for use in initializers of
  23507. objects of static storage duration, then the compound literal can be
  23508. coerced to a pointer to its first element and used in such an
  23509. initializer, as shown here:
  23510. char **foo = (char *[]) { "x", "y", "z" };
  23511. Compound literals for scalar types and union types are also allowed.
  23512. In the following example the variable 'i' is initialized to the value
  23513. '2', the result of incrementing the unnamed object created by the
  23514. compound literal.
  23515. int i = ++(int) { 1 };
  23516. As a GNU extension, GCC allows initialization of objects with static
  23517. storage duration by compound literals (which is not possible in ISO C99
  23518. because the initializer is not a constant). It is handled as if the
  23519. object were initialized only with the brace-enclosed list if the types
  23520. of the compound literal and the object match. The elements of the
  23521. compound literal must be constant. If the object being initialized has
  23522. array type of unknown size, the size is determined by the size of the
  23523. compound literal.
  23524. static struct foo x = (struct foo) {1, 'a', 'b'};
  23525. static int y[] = (int []) {1, 2, 3};
  23526. static int z[] = (int [3]) {1};
  23527. The above lines are equivalent to the following:
  23528. static struct foo x = {1, 'a', 'b'};
  23529. static int y[] = {1, 2, 3};
  23530. static int z[] = {1, 0, 0};
  23531. In C, a compound literal designates an unnamed object with static or
  23532. automatic storage duration. In C++, a compound literal designates a
  23533. temporary object that only lives until the end of its full-expression.
  23534. As a result, well-defined C code that takes the address of a subobject
  23535. of a compound literal can be undefined in C++, so G++ rejects the
  23536. conversion of a temporary array to a pointer. For instance, if the
  23537. array compound literal example above appeared inside a function, any
  23538. subsequent use of 'foo' in C++ would have undefined behavior because the
  23539. lifetime of the array ends after the declaration of 'foo'.
  23540. As an optimization, G++ sometimes gives array compound literals longer
  23541. lifetimes: when the array either appears outside a function or has a
  23542. 'const'-qualified type. If 'foo' and its initializer had elements of
  23543. type 'char *const' rather than 'char *', or if 'foo' were a global
  23544. variable, the array would have static storage duration. But it is
  23545. probably safest just to avoid the use of array compound literals in C++
  23546. code.
  23547. 
  23548. File: gcc.info, Node: Designated Inits, Next: Case Ranges, Prev: Compound Literals, Up: C Extensions
  23549. 6.27 Designated Initializers
  23550. ============================
  23551. Standard C90 requires the elements of an initializer to appear in a
  23552. fixed order, the same as the order of the elements in the array or
  23553. structure being initialized.
  23554. In ISO C99 you can give the elements in any order, specifying the array
  23555. indices or structure field names they apply to, and GNU C allows this as
  23556. an extension in C90 mode as well. This extension is not implemented in
  23557. GNU C++.
  23558. To specify an array index, write '[INDEX] =' before the element value.
  23559. For example,
  23560. int a[6] = { [4] = 29, [2] = 15 };
  23561. is equivalent to
  23562. int a[6] = { 0, 0, 15, 0, 29, 0 };
  23563. The index values must be constant expressions, even if the array being
  23564. initialized is automatic.
  23565. An alternative syntax for this that has been obsolete since GCC 2.5 but
  23566. GCC still accepts is to write '[INDEX]' before the element value, with
  23567. no '='.
  23568. To initialize a range of elements to the same value, write '[FIRST ...
  23569. LAST] = VALUE'. This is a GNU extension. For example,
  23570. int widths[] = { [0 ... 9] = 1, [10 ... 99] = 2, [100] = 3 };
  23571. If the value in it has side effects, the side effects happen only once,
  23572. not for each initialized field by the range initializer.
  23573. Note that the length of the array is the highest value specified plus
  23574. one.
  23575. In a structure initializer, specify the name of a field to initialize
  23576. with '.FIELDNAME =' before the element value. For example, given the
  23577. following structure,
  23578. struct point { int x, y; };
  23579. the following initialization
  23580. struct point p = { .y = yvalue, .x = xvalue };
  23581. is equivalent to
  23582. struct point p = { xvalue, yvalue };
  23583. Another syntax that has the same meaning, obsolete since GCC 2.5, is
  23584. 'FIELDNAME:', as shown here:
  23585. struct point p = { y: yvalue, x: xvalue };
  23586. Omitted field members are implicitly initialized the same as objects
  23587. that have static storage duration.
  23588. The '[INDEX]' or '.FIELDNAME' is known as a "designator". You can also
  23589. use a designator (or the obsolete colon syntax) when initializing a
  23590. union, to specify which element of the union should be used. For
  23591. example,
  23592. union foo { int i; double d; };
  23593. union foo f = { .d = 4 };
  23594. converts 4 to a 'double' to store it in the union using the second
  23595. element. By contrast, casting 4 to type 'union foo' stores it into the
  23596. union as the integer 'i', since it is an integer. *Note Cast to
  23597. Union::.
  23598. You can combine this technique of naming elements with ordinary C
  23599. initialization of successive elements. Each initializer element that
  23600. does not have a designator applies to the next consecutive element of
  23601. the array or structure. For example,
  23602. int a[6] = { [1] = v1, v2, [4] = v4 };
  23603. is equivalent to
  23604. int a[6] = { 0, v1, v2, 0, v4, 0 };
  23605. Labeling the elements of an array initializer is especially useful when
  23606. the indices are characters or belong to an 'enum' type. For example:
  23607. int whitespace[256]
  23608. = { [' '] = 1, ['\t'] = 1, ['\h'] = 1,
  23609. ['\f'] = 1, ['\n'] = 1, ['\r'] = 1 };
  23610. You can also write a series of '.FIELDNAME' and '[INDEX]' designators
  23611. before an '=' to specify a nested subobject to initialize; the list is
  23612. taken relative to the subobject corresponding to the closest surrounding
  23613. brace pair. For example, with the 'struct point' declaration above:
  23614. struct point ptarray[10] = { [2].y = yv2, [2].x = xv2, [0].x = xv0 };
  23615. If the same field is initialized multiple times, it has the value from
  23616. the last initialization. If any such overridden initialization has side
  23617. effect, it is unspecified whether the side effect happens or not.
  23618. Currently, GCC discards them and issues a warning.
  23619. 
  23620. File: gcc.info, Node: Case Ranges, Next: Cast to Union, Prev: Designated Inits, Up: C Extensions
  23621. 6.28 Case Ranges
  23622. ================
  23623. You can specify a range of consecutive values in a single 'case' label,
  23624. like this:
  23625. case LOW ... HIGH:
  23626. This has the same effect as the proper number of individual 'case'
  23627. labels, one for each integer value from LOW to HIGH, inclusive.
  23628. This feature is especially useful for ranges of ASCII character codes:
  23629. case 'A' ... 'Z':
  23630. *Be careful:* Write spaces around the '...', for otherwise it may be
  23631. parsed wrong when you use it with integer values. For example, write
  23632. this:
  23633. case 1 ... 5:
  23634. rather than this:
  23635. case 1...5:
  23636. 
  23637. File: gcc.info, Node: Cast to Union, Next: Mixed Declarations, Prev: Case Ranges, Up: C Extensions
  23638. 6.29 Cast to a Union Type
  23639. =========================
  23640. A cast to union type looks similar to other casts, except that the type
  23641. specified is a union type. You can specify the type either with the
  23642. 'union' keyword or with a 'typedef' name that refers to a union. A cast
  23643. to a union actually creates a compound literal and yields an lvalue, not
  23644. an rvalue like true casts do. *Note Compound Literals::.
  23645. The types that may be cast to the union type are those of the members
  23646. of the union. Thus, given the following union and variables:
  23647. union foo { int i; double d; };
  23648. int x;
  23649. double y;
  23650. both 'x' and 'y' can be cast to type 'union foo'.
  23651. Using the cast as the right-hand side of an assignment to a variable of
  23652. union type is equivalent to storing in a member of the union:
  23653. union foo u;
  23654. /* ... */
  23655. u = (union foo) x == u.i = x
  23656. u = (union foo) y == u.d = y
  23657. You can also use the union cast as a function argument:
  23658. void hack (union foo);
  23659. /* ... */
  23660. hack ((union foo) x);
  23661. 
  23662. File: gcc.info, Node: Mixed Declarations, Next: Function Attributes, Prev: Cast to Union, Up: C Extensions
  23663. 6.30 Mixed Declarations and Code
  23664. ================================
  23665. ISO C99 and ISO C++ allow declarations and code to be freely mixed
  23666. within compound statements. As an extension, GNU C also allows this in
  23667. C90 mode. For example, you could do:
  23668. int i;
  23669. /* ... */
  23670. i++;
  23671. int j = i + 2;
  23672. Each identifier is visible from where it is declared until the end of
  23673. the enclosing block.
  23674. 
  23675. File: gcc.info, Node: Function Attributes, Next: Variable Attributes, Prev: Mixed Declarations, Up: C Extensions
  23676. 6.31 Declaring Attributes of Functions
  23677. ======================================
  23678. In GNU C, you can use function attributes to declare certain things
  23679. about functions called in your program which help the compiler optimize
  23680. calls and check your code more carefully. For example, you can use
  23681. attributes to declare that a function never returns ('noreturn'),
  23682. returns a value depending only on its arguments ('pure'), or has
  23683. 'printf'-style arguments ('format').
  23684. You can also use attributes to control memory placement, code
  23685. generation options or call/return conventions within the function being
  23686. annotated. Many of these attributes are target-specific. For example,
  23687. many targets support attributes for defining interrupt handler
  23688. functions, which typically must follow special register usage and return
  23689. conventions.
  23690. Function attributes are introduced by the '__attribute__' keyword on a
  23691. declaration, followed by an attribute specification inside double
  23692. parentheses. You can specify multiple attributes in a declaration by
  23693. separating them by commas within the double parentheses or by
  23694. immediately following an attribute declaration with another attribute
  23695. declaration. *Note Attribute Syntax::, for the exact rules on attribute
  23696. syntax and placement. Compatible attribute specifications on distinct
  23697. declarations of the same function are merged. An attribute
  23698. specification that is not compatible with attributes already applied to
  23699. a declaration of the same function is ignored with a warning.
  23700. GCC also supports attributes on variable declarations (*note Variable
  23701. Attributes::), labels (*note Label Attributes::), enumerators (*note
  23702. Enumerator Attributes::), statements (*note Statement Attributes::), and
  23703. types (*note Type Attributes::).
  23704. There is some overlap between the purposes of attributes and pragmas
  23705. (*note Pragmas Accepted by GCC: Pragmas.). It has been found convenient
  23706. to use '__attribute__' to achieve a natural attachment of attributes to
  23707. their corresponding declarations, whereas '#pragma' is of use for
  23708. compatibility with other compilers or constructs that do not naturally
  23709. form part of the grammar.
  23710. In addition to the attributes documented here, GCC plugins may provide
  23711. their own attributes.
  23712. * Menu:
  23713. * Common Function Attributes::
  23714. * AArch64 Function Attributes::
  23715. * ARC Function Attributes::
  23716. * ARM Function Attributes::
  23717. * AVR Function Attributes::
  23718. * Blackfin Function Attributes::
  23719. * CR16 Function Attributes::
  23720. * Epiphany Function Attributes::
  23721. * H8/300 Function Attributes::
  23722. * IA-64 Function Attributes::
  23723. * M32C Function Attributes::
  23724. * M32R/D Function Attributes::
  23725. * m68k Function Attributes::
  23726. * MCORE Function Attributes::
  23727. * MeP Function Attributes::
  23728. * MicroBlaze Function Attributes::
  23729. * Microsoft Windows Function Attributes::
  23730. * MIPS Function Attributes::
  23731. * MSP430 Function Attributes::
  23732. * NDS32 Function Attributes::
  23733. * Nios II Function Attributes::
  23734. * Nvidia PTX Function Attributes::
  23735. * PowerPC Function Attributes::
  23736. * RISC-V Function Attributes::
  23737. * RL78 Function Attributes::
  23738. * RX Function Attributes::
  23739. * S/390 Function Attributes::
  23740. * SH Function Attributes::
  23741. * SPU Function Attributes::
  23742. * Symbian OS Function Attributes::
  23743. * V850 Function Attributes::
  23744. * Visium Function Attributes::
  23745. * x86 Function Attributes::
  23746. * Xstormy16 Function Attributes::
  23747. 
  23748. File: gcc.info, Node: Common Function Attributes, Next: AArch64 Function Attributes, Up: Function Attributes
  23749. 6.31.1 Common Function Attributes
  23750. ---------------------------------
  23751. The following attributes are supported on most targets.
  23752. 'alias ("TARGET")'
  23753. The 'alias' attribute causes the declaration to be emitted as an
  23754. alias for another symbol, which must be specified. For instance,
  23755. void __f () { /* Do something. */; }
  23756. void f () __attribute__ ((weak, alias ("__f")));
  23757. defines 'f' to be a weak alias for '__f'. In C++, the mangled name
  23758. for the target must be used. It is an error if '__f' is not
  23759. defined in the same translation unit.
  23760. This attribute requires assembler and object file support, and may
  23761. not be available on all targets.
  23762. 'aligned (ALIGNMENT)'
  23763. This attribute specifies a minimum alignment for the function,
  23764. measured in bytes.
  23765. You cannot use this attribute to decrease the alignment of a
  23766. function, only to increase it. However, when you explicitly
  23767. specify a function alignment this overrides the effect of the
  23768. '-falign-functions' (*note Optimize Options::) option for this
  23769. function.
  23770. Note that the effectiveness of 'aligned' attributes may be limited
  23771. by inherent limitations in your linker. On many systems, the
  23772. linker is only able to arrange for functions to be aligned up to a
  23773. certain maximum alignment. (For some linkers, the maximum
  23774. supported alignment may be very very small.) See your linker
  23775. documentation for further information.
  23776. The 'aligned' attribute can also be used for variables and fields
  23777. (*note Variable Attributes::.)
  23778. 'alloc_align'
  23779. The 'alloc_align' attribute is used to tell the compiler that the
  23780. function return value points to memory, where the returned pointer
  23781. minimum alignment is given by one of the functions parameters. GCC
  23782. uses this information to improve pointer alignment analysis.
  23783. The function parameter denoting the allocated alignment is
  23784. specified by one integer argument, whose number is the argument of
  23785. the attribute. Argument numbering starts at one.
  23786. For instance,
  23787. void* my_memalign(size_t, size_t) __attribute__((alloc_align(1)))
  23788. declares that 'my_memalign' returns memory with minimum alignment
  23789. given by parameter 1.
  23790. 'alloc_size'
  23791. The 'alloc_size' attribute is used to tell the compiler that the
  23792. function return value points to memory, where the size is given by
  23793. one or two of the functions parameters. GCC uses this information
  23794. to improve the correctness of '__builtin_object_size'.
  23795. The function parameter(s) denoting the allocated size are specified
  23796. by one or two integer arguments supplied to the attribute. The
  23797. allocated size is either the value of the single function argument
  23798. specified or the product of the two function arguments specified.
  23799. Argument numbering starts at one.
  23800. For instance,
  23801. void* my_calloc(size_t, size_t) __attribute__((alloc_size(1,2)))
  23802. void* my_realloc(void*, size_t) __attribute__((alloc_size(2)))
  23803. declares that 'my_calloc' returns memory of the size given by the
  23804. product of parameter 1 and 2 and that 'my_realloc' returns memory
  23805. of the size given by parameter 2.
  23806. 'always_inline'
  23807. Generally, functions are not inlined unless optimization is
  23808. specified. For functions declared inline, this attribute inlines
  23809. the function independent of any restrictions that otherwise apply
  23810. to inlining. Failure to inline such a function is diagnosed as an
  23811. error. Note that if such a function is called indirectly the
  23812. compiler may or may not inline it depending on optimization level
  23813. and a failure to inline an indirect call may or may not be
  23814. diagnosed.
  23815. 'artificial'
  23816. This attribute is useful for small inline wrappers that if possible
  23817. should appear during debugging as a unit. Depending on the debug
  23818. info format it either means marking the function as artificial or
  23819. using the caller location for all instructions within the inlined
  23820. body.
  23821. 'assume_aligned'
  23822. The 'assume_aligned' attribute is used to tell the compiler that
  23823. the function return value points to memory, where the returned
  23824. pointer minimum alignment is given by the first argument. If the
  23825. attribute has two arguments, the second argument is misalignment
  23826. offset.
  23827. For instance
  23828. void* my_alloc1(size_t) __attribute__((assume_aligned(16)))
  23829. void* my_alloc2(size_t) __attribute__((assume_aligned(32, 8)))
  23830. declares that 'my_alloc1' returns 16-byte aligned pointer and that
  23831. 'my_alloc2' returns a pointer whose value modulo 32 is equal to 8.
  23832. 'bnd_instrument'
  23833. The 'bnd_instrument' attribute on functions is used to inform the
  23834. compiler that the function should be instrumented when compiled
  23835. with the '-fchkp-instrument-marked-only' option.
  23836. 'bnd_legacy'
  23837. The 'bnd_legacy' attribute on functions is used to inform the
  23838. compiler that the function should not be instrumented when compiled
  23839. with the '-fcheck-pointer-bounds' option.
  23840. 'cold'
  23841. The 'cold' attribute on functions is used to inform the compiler
  23842. that the function is unlikely to be executed. The function is
  23843. optimized for size rather than speed and on many targets it is
  23844. placed into a special subsection of the text section so all cold
  23845. functions appear close together, improving code locality of
  23846. non-cold parts of program. The paths leading to calls of cold
  23847. functions within code are marked as unlikely by the branch
  23848. prediction mechanism. It is thus useful to mark functions used to
  23849. handle unlikely conditions, such as 'perror', as cold to improve
  23850. optimization of hot functions that do call marked functions in rare
  23851. occasions.
  23852. When profile feedback is available, via '-fprofile-use', cold
  23853. functions are automatically detected and this attribute is ignored.
  23854. 'const'
  23855. Many functions do not examine any values except their arguments,
  23856. and have no effects except to return a value. Calls to such
  23857. functions lend themselves to optimization such as common
  23858. subexpression elimination. The 'const' attribute imposes greater
  23859. restrictions on a function's definition than the similar 'pure'
  23860. attribute below because it prohibits the function from reading
  23861. global variables. Consequently, the presence of the attribute on a
  23862. function declaration allows GCC to emit more efficient code for
  23863. some calls to the function. Decorating the same function with both
  23864. the 'const' and the 'pure' attribute is diagnosed.
  23865. Note that a function that has pointer arguments and examines the
  23866. data pointed to must _not_ be declared 'const'. Likewise, a
  23867. function that calls a non-'const' function usually must not be
  23868. 'const'. Because a 'const' function cannot have any side effects
  23869. it does not make sense for such a function to return 'void'.
  23870. Declaring such a function is diagnosed.
  23871. 'constructor'
  23872. 'destructor'
  23873. 'constructor (PRIORITY)'
  23874. 'destructor (PRIORITY)'
  23875. The 'constructor' attribute causes the function to be called
  23876. automatically before execution enters 'main ()'. Similarly, the
  23877. 'destructor' attribute causes the function to be called
  23878. automatically after 'main ()' completes or 'exit ()' is called.
  23879. Functions with these attributes are useful for initializing data
  23880. that is used implicitly during the execution of the program.
  23881. You may provide an optional integer priority to control the order
  23882. in which constructor and destructor functions are run. A
  23883. constructor with a smaller priority number runs before a
  23884. constructor with a larger priority number; the opposite
  23885. relationship holds for destructors. So, if you have a constructor
  23886. that allocates a resource and a destructor that deallocates the
  23887. same resource, both functions typically have the same priority.
  23888. The priorities for constructor and destructor functions are the
  23889. same as those specified for namespace-scope C++ objects (*note C++
  23890. Attributes::). However, at present, the order in which
  23891. constructors for C++ objects with static storage duration and
  23892. functions decorated with attribute 'constructor' are invoked is
  23893. unspecified. In mixed declarations, attribute 'init_priority' can
  23894. be used to impose a specific ordering.
  23895. 'deprecated'
  23896. 'deprecated (MSG)'
  23897. The 'deprecated' attribute results in a warning if the function is
  23898. used anywhere in the source file. This is useful when identifying
  23899. functions that are expected to be removed in a future version of a
  23900. program. The warning also includes the location of the declaration
  23901. of the deprecated function, to enable users to easily find further
  23902. information about why the function is deprecated, or what they
  23903. should do instead. Note that the warnings only occurs for uses:
  23904. int old_fn () __attribute__ ((deprecated));
  23905. int old_fn ();
  23906. int (*fn_ptr)() = old_fn;
  23907. results in a warning on line 3 but not line 2. The optional MSG
  23908. argument, which must be a string, is printed in the warning if
  23909. present.
  23910. The 'deprecated' attribute can also be used for variables and types
  23911. (*note Variable Attributes::, *note Type Attributes::.)
  23912. 'error ("MESSAGE")'
  23913. 'warning ("MESSAGE")'
  23914. If the 'error' or 'warning' attribute is used on a function
  23915. declaration and a call to such a function is not eliminated through
  23916. dead code elimination or other optimizations, an error or warning
  23917. (respectively) that includes MESSAGE is diagnosed. This is useful
  23918. for compile-time checking, especially together with
  23919. '__builtin_constant_p' and inline functions where checking the
  23920. inline function arguments is not possible through 'extern char
  23921. [(condition) ? 1 : -1];' tricks.
  23922. While it is possible to leave the function undefined and thus
  23923. invoke a link failure (to define the function with a message in
  23924. '.gnu.warning*' section), when using these attributes the problem
  23925. is diagnosed earlier and with exact location of the call even in
  23926. presence of inline functions or when not emitting debugging
  23927. information.
  23928. 'externally_visible'
  23929. This attribute, attached to a global variable or function,
  23930. nullifies the effect of the '-fwhole-program' command-line option,
  23931. so the object remains visible outside the current compilation unit.
  23932. If '-fwhole-program' is used together with '-flto' and 'gold' is
  23933. used as the linker plugin, 'externally_visible' attributes are
  23934. automatically added to functions (not variable yet due to a current
  23935. 'gold' issue) that are accessed outside of LTO objects according to
  23936. resolution file produced by 'gold'. For other linkers that cannot
  23937. generate resolution file, explicit 'externally_visible' attributes
  23938. are still necessary.
  23939. 'flatten'
  23940. Generally, inlining into a function is limited. For a function
  23941. marked with this attribute, every call inside this function is
  23942. inlined, if possible. Whether the function itself is considered
  23943. for inlining depends on its size and the current inlining
  23944. parameters.
  23945. 'format (ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)'
  23946. The 'format' attribute specifies that a function takes 'printf',
  23947. 'scanf', 'strftime' or 'strfmon' style arguments that should be
  23948. type-checked against a format string. For example, the
  23949. declaration:
  23950. extern int
  23951. my_printf (void *my_object, const char *my_format, ...)
  23952. __attribute__ ((format (printf, 2, 3)));
  23953. causes the compiler to check the arguments in calls to 'my_printf'
  23954. for consistency with the 'printf' style format string argument
  23955. 'my_format'.
  23956. The parameter ARCHETYPE determines how the format string is
  23957. interpreted, and should be 'printf', 'scanf', 'strftime',
  23958. 'gnu_printf', 'gnu_scanf', 'gnu_strftime' or 'strfmon'. (You can
  23959. also use '__printf__', '__scanf__', '__strftime__' or
  23960. '__strfmon__'.) On MinGW targets, 'ms_printf', 'ms_scanf', and
  23961. 'ms_strftime' are also present. ARCHETYPE values such as 'printf'
  23962. refer to the formats accepted by the system's C runtime library,
  23963. while values prefixed with 'gnu_' always refer to the formats
  23964. accepted by the GNU C Library. On Microsoft Windows targets,
  23965. values prefixed with 'ms_' refer to the formats accepted by the
  23966. 'msvcrt.dll' library. The parameter STRING-INDEX specifies which
  23967. argument is the format string argument (starting from 1), while
  23968. FIRST-TO-CHECK is the number of the first argument to check against
  23969. the format string. For functions where the arguments are not
  23970. available to be checked (such as 'vprintf'), specify the third
  23971. parameter as zero. In this case the compiler only checks the
  23972. format string for consistency. For 'strftime' formats, the third
  23973. parameter is required to be zero. Since non-static C++ methods
  23974. have an implicit 'this' argument, the arguments of such methods
  23975. should be counted from two, not one, when giving values for
  23976. STRING-INDEX and FIRST-TO-CHECK.
  23977. In the example above, the format string ('my_format') is the second
  23978. argument of the function 'my_print', and the arguments to check
  23979. start with the third argument, so the correct parameters for the
  23980. format attribute are 2 and 3.
  23981. The 'format' attribute allows you to identify your own functions
  23982. that take format strings as arguments, so that GCC can check the
  23983. calls to these functions for errors. The compiler always (unless
  23984. '-ffreestanding' or '-fno-builtin' is used) checks formats for the
  23985. standard library functions 'printf', 'fprintf', 'sprintf', 'scanf',
  23986. 'fscanf', 'sscanf', 'strftime', 'vprintf', 'vfprintf' and
  23987. 'vsprintf' whenever such warnings are requested (using '-Wformat'),
  23988. so there is no need to modify the header file 'stdio.h'. In C99
  23989. mode, the functions 'snprintf', 'vsnprintf', 'vscanf', 'vfscanf'
  23990. and 'vsscanf' are also checked. Except in strictly conforming C
  23991. standard modes, the X/Open function 'strfmon' is also checked as
  23992. are 'printf_unlocked' and 'fprintf_unlocked'. *Note Options
  23993. Controlling C Dialect: C Dialect Options.
  23994. For Objective-C dialects, 'NSString' (or '__NSString__') is
  23995. recognized in the same context. Declarations including these
  23996. format attributes are parsed for correct syntax, however the result
  23997. of checking of such format strings is not yet defined, and is not
  23998. carried out by this version of the compiler.
  23999. The target may also provide additional types of format checks.
  24000. *Note Format Checks Specific to Particular Target Machines: Target
  24001. Format Checks.
  24002. 'format_arg (STRING-INDEX)'
  24003. The 'format_arg' attribute specifies that a function takes a format
  24004. string for a 'printf', 'scanf', 'strftime' or 'strfmon' style
  24005. function and modifies it (for example, to translate it into another
  24006. language), so the result can be passed to a 'printf', 'scanf',
  24007. 'strftime' or 'strfmon' style function (with the remaining
  24008. arguments to the format function the same as they would have been
  24009. for the unmodified string). For example, the declaration:
  24010. extern char *
  24011. my_dgettext (char *my_domain, const char *my_format)
  24012. __attribute__ ((format_arg (2)));
  24013. causes the compiler to check the arguments in calls to a 'printf',
  24014. 'scanf', 'strftime' or 'strfmon' type function, whose format string
  24015. argument is a call to the 'my_dgettext' function, for consistency
  24016. with the format string argument 'my_format'. If the 'format_arg'
  24017. attribute had not been specified, all the compiler could tell in
  24018. such calls to format functions would be that the format string
  24019. argument is not constant; this would generate a warning when
  24020. '-Wformat-nonliteral' is used, but the calls could not be checked
  24021. without the attribute.
  24022. The parameter STRING-INDEX specifies which argument is the format
  24023. string argument (starting from one). Since non-static C++ methods
  24024. have an implicit 'this' argument, the arguments of such methods
  24025. should be counted from two.
  24026. The 'format_arg' attribute allows you to identify your own
  24027. functions that modify format strings, so that GCC can check the
  24028. calls to 'printf', 'scanf', 'strftime' or 'strfmon' type function
  24029. whose operands are a call to one of your own function. The
  24030. compiler always treats 'gettext', 'dgettext', and 'dcgettext' in
  24031. this manner except when strict ISO C support is requested by
  24032. '-ansi' or an appropriate '-std' option, or '-ffreestanding' or
  24033. '-fno-builtin' is used. *Note Options Controlling C Dialect: C
  24034. Dialect Options.
  24035. For Objective-C dialects, the 'format-arg' attribute may refer to
  24036. an 'NSString' reference for compatibility with the 'format'
  24037. attribute above.
  24038. The target may also allow additional types in 'format-arg'
  24039. attributes. *Note Format Checks Specific to Particular Target
  24040. Machines: Target Format Checks.
  24041. 'gnu_inline'
  24042. This attribute should be used with a function that is also declared
  24043. with the 'inline' keyword. It directs GCC to treat the function as
  24044. if it were defined in gnu90 mode even when compiling in C99 or
  24045. gnu99 mode.
  24046. If the function is declared 'extern', then this definition of the
  24047. function is used only for inlining. In no case is the function
  24048. compiled as a standalone function, not even if you take its address
  24049. explicitly. Such an address becomes an external reference, as if
  24050. you had only declared the function, and had not defined it. This
  24051. has almost the effect of a macro. The way to use this is to put a
  24052. function definition in a header file with this attribute, and put
  24053. another copy of the function, without 'extern', in a library file.
  24054. The definition in the header file causes most calls to the function
  24055. to be inlined. If any uses of the function remain, they refer to
  24056. the single copy in the library. Note that the two definitions of
  24057. the functions need not be precisely the same, although if they do
  24058. not have the same effect your program may behave oddly.
  24059. In C, if the function is neither 'extern' nor 'static', then the
  24060. function is compiled as a standalone function, as well as being
  24061. inlined where possible.
  24062. This is how GCC traditionally handled functions declared 'inline'.
  24063. Since ISO C99 specifies a different semantics for 'inline', this
  24064. function attribute is provided as a transition measure and as a
  24065. useful feature in its own right. This attribute is available in
  24066. GCC 4.1.3 and later. It is available if either of the preprocessor
  24067. macros '__GNUC_GNU_INLINE__' or '__GNUC_STDC_INLINE__' are defined.
  24068. *Note An Inline Function is As Fast As a Macro: Inline.
  24069. In C++, this attribute does not depend on 'extern' in any way, but
  24070. it still requires the 'inline' keyword to enable its special
  24071. behavior.
  24072. 'hot'
  24073. The 'hot' attribute on a function is used to inform the compiler
  24074. that the function is a hot spot of the compiled program. The
  24075. function is optimized more aggressively and on many targets it is
  24076. placed into a special subsection of the text section so all hot
  24077. functions appear close together, improving locality.
  24078. When profile feedback is available, via '-fprofile-use', hot
  24079. functions are automatically detected and this attribute is ignored.
  24080. 'ifunc ("RESOLVER")'
  24081. The 'ifunc' attribute is used to mark a function as an indirect
  24082. function using the STT_GNU_IFUNC symbol type extension to the ELF
  24083. standard. This allows the resolution of the symbol value to be
  24084. determined dynamically at load time, and an optimized version of
  24085. the routine to be selected for the particular processor or other
  24086. system characteristics determined then. To use this attribute,
  24087. first define the implementation functions available, and a resolver
  24088. function that returns a pointer to the selected implementation
  24089. function. The implementation functions' declarations must match
  24090. the API of the function being implemented. The resolver should be
  24091. declared to be a function taking no arguments and returning a
  24092. pointer to a function of the same type as the implementation. For
  24093. example:
  24094. void *my_memcpy (void *dst, const void *src, size_t len)
  24095. {
  24096. ...
  24097. return dst;
  24098. }
  24099. static void * (*resolve_memcpy (void))(void *, const void *, size_t)
  24100. {
  24101. return my_memcpy; // we will just always select this routine
  24102. }
  24103. The exported header file declaring the function the user calls
  24104. would contain:
  24105. extern void *memcpy (void *, const void *, size_t);
  24106. allowing the user to call 'memcpy' as a regular function, unaware
  24107. of the actual implementation. Finally, the indirect function needs
  24108. to be defined in the same translation unit as the resolver
  24109. function:
  24110. void *memcpy (void *, const void *, size_t)
  24111. __attribute__ ((ifunc ("resolve_memcpy")));
  24112. In C++, the 'ifunc' attribute takes a string that is the mangled
  24113. name of the resolver function. A C++ resolver for a non-static
  24114. member function of class 'C' should be declared to return a pointer
  24115. to a non-member function taking pointer to 'C' as the first
  24116. argument, followed by the same arguments as of the implementation
  24117. function. G++ checks the signatures of the two functions and
  24118. issues a '-Wattribute-alias' warning for mismatches. To suppress a
  24119. warning for the necessary cast from a pointer to the implementation
  24120. member function to the type of the corresponding non-member
  24121. function use the '-Wno-pmf-conversions' option. For example:
  24122. class S
  24123. {
  24124. private:
  24125. int debug_impl (int);
  24126. int optimized_impl (int);
  24127. typedef int Func (S*, int);
  24128. static Func* resolver ();
  24129. public:
  24130. int interface (int);
  24131. };
  24132. int S::debug_impl (int) { /* ... */ }
  24133. int S::optimized_impl (int) { /* ... */ }
  24134. S::Func* S::resolver ()
  24135. {
  24136. int (S::*pimpl) (int)
  24137. = getenv ("DEBUG") ? &S::debug_impl : &S::optimized_impl;
  24138. // Cast triggers -Wno-pmf-conversions.
  24139. return reinterpret_cast<Func*>(pimpl);
  24140. }
  24141. int S::interface (int) __attribute__ ((ifunc ("_ZN1S8resolverEv")));
  24142. Indirect functions cannot be weak. Binutils version 2.20.1 or
  24143. higher and GNU C Library version 2.11.1 are required to use this
  24144. feature.
  24145. 'interrupt'
  24146. 'interrupt_handler'
  24147. Many GCC back ends support attributes to indicate that a function
  24148. is an interrupt handler, which tells the compiler to generate
  24149. function entry and exit sequences that differ from those from
  24150. regular functions. The exact syntax and behavior are
  24151. target-specific; refer to the following subsections for details.
  24152. 'leaf'
  24153. Calls to external functions with this attribute must return to the
  24154. current compilation unit only by return or by exception handling.
  24155. In particular, a leaf function is not allowed to invoke callback
  24156. functions passed to it from the current compilation unit, directly
  24157. call functions exported by the unit, or 'longjmp' into the unit.
  24158. Leaf functions might still call functions from other compilation
  24159. units and thus they are not necessarily leaf in the sense that they
  24160. contain no function calls at all.
  24161. The attribute is intended for library functions to improve dataflow
  24162. analysis. The compiler takes the hint that any data not escaping
  24163. the current compilation unit cannot be used or modified by the leaf
  24164. function. For example, the 'sin' function is a leaf function, but
  24165. 'qsort' is not.
  24166. Note that leaf functions might indirectly run a signal handler
  24167. defined in the current compilation unit that uses static variables.
  24168. Similarly, when lazy symbol resolution is in effect, leaf functions
  24169. might invoke indirect functions whose resolver function or
  24170. implementation function is defined in the current compilation unit
  24171. and uses static variables. There is no standard-compliant way to
  24172. write such a signal handler, resolver function, or implementation
  24173. function, and the best that you can do is to remove the 'leaf'
  24174. attribute or mark all such static variables 'volatile'. Lastly,
  24175. for ELF-based systems that support symbol interposition, care
  24176. should be taken that functions defined in the current compilation
  24177. unit do not unexpectedly interpose other symbols based on the
  24178. defined standards mode and defined feature test macros; otherwise
  24179. an inadvertent callback would be added.
  24180. The attribute has no effect on functions defined within the current
  24181. compilation unit. This is to allow easy merging of multiple
  24182. compilation units into one, for example, by using the link-time
  24183. optimization. For this reason the attribute is not allowed on
  24184. types to annotate indirect calls.
  24185. 'malloc'
  24186. This tells the compiler that a function is 'malloc'-like, i.e.,
  24187. that the pointer P returned by the function cannot alias any other
  24188. pointer valid when the function returns, and moreover no pointers
  24189. to valid objects occur in any storage addressed by P.
  24190. Using this attribute can improve optimization. Functions like
  24191. 'malloc' and 'calloc' have this property because they return a
  24192. pointer to uninitialized or zeroed-out storage. However, functions
  24193. like 'realloc' do not have this property, as they can return a
  24194. pointer to storage containing pointers.
  24195. 'no_icf'
  24196. This function attribute prevents a functions from being merged with
  24197. another semantically equivalent function.
  24198. 'no_instrument_function'
  24199. If '-finstrument-functions' is given, profiling function calls are
  24200. generated at entry and exit of most user-compiled functions.
  24201. Functions with this attribute are not so instrumented.
  24202. 'no_profile_instrument_function'
  24203. The 'no_profile_instrument_function' attribute on functions is used
  24204. to inform the compiler that it should not process any profile
  24205. feedback based optimization code instrumentation.
  24206. 'no_reorder'
  24207. Do not reorder functions or variables marked 'no_reorder' against
  24208. each other or top level assembler statements the executable. The
  24209. actual order in the program will depend on the linker command line.
  24210. Static variables marked like this are also not removed. This has a
  24211. similar effect as the '-fno-toplevel-reorder' option, but only
  24212. applies to the marked symbols.
  24213. 'no_sanitize ("SANITIZE_OPTION")'
  24214. The 'no_sanitize' attribute on functions is used to inform the
  24215. compiler that it should not do sanitization of all options
  24216. mentioned in SANITIZE_OPTION. A list of values acceptable by
  24217. '-fsanitize' option can be provided.
  24218. void __attribute__ ((no_sanitize ("alignment", "object-size")))
  24219. f () { /* Do something. */; }
  24220. void __attribute__ ((no_sanitize ("alignment,object-size")))
  24221. g () { /* Do something. */; }
  24222. 'no_sanitize_address'
  24223. 'no_address_safety_analysis'
  24224. The 'no_sanitize_address' attribute on functions is used to inform
  24225. the compiler that it should not instrument memory accesses in the
  24226. function when compiling with the '-fsanitize=address' option. The
  24227. 'no_address_safety_analysis' is a deprecated alias of the
  24228. 'no_sanitize_address' attribute, new code should use
  24229. 'no_sanitize_address'.
  24230. 'no_sanitize_thread'
  24231. The 'no_sanitize_thread' attribute on functions is used to inform
  24232. the compiler that it should not instrument memory accesses in the
  24233. function when compiling with the '-fsanitize=thread' option.
  24234. 'no_sanitize_undefined'
  24235. The 'no_sanitize_undefined' attribute on functions is used to
  24236. inform the compiler that it should not check for undefined behavior
  24237. in the function when compiling with the '-fsanitize=undefined'
  24238. option.
  24239. 'no_split_stack'
  24240. If '-fsplit-stack' is given, functions have a small prologue which
  24241. decides whether to split the stack. Functions with the
  24242. 'no_split_stack' attribute do not have that prologue, and thus may
  24243. run with only a small amount of stack space available.
  24244. 'no_stack_limit'
  24245. This attribute locally overrides the '-fstack-limit-register' and
  24246. '-fstack-limit-symbol' command-line options; it has the effect of
  24247. disabling stack limit checking in the function it applies to.
  24248. 'noclone'
  24249. This function attribute prevents a function from being considered
  24250. for cloning--a mechanism that produces specialized copies of
  24251. functions and which is (currently) performed by interprocedural
  24252. constant propagation.
  24253. 'noinline'
  24254. This function attribute prevents a function from being considered
  24255. for inlining. If the function does not have side effects, there
  24256. are optimizations other than inlining that cause function calls to
  24257. be optimized away, although the function call is live. To keep
  24258. such calls from being optimized away, put
  24259. asm ("");
  24260. (*note Extended Asm::) in the called function, to serve as a
  24261. special side effect.
  24262. 'noipa'
  24263. Disable interprocedural optimizations between the function with
  24264. this attribute and its callers, as if the body of the function is
  24265. not available when optimizing callers and the callers are
  24266. unavailable when optimizing the body. This attribute implies
  24267. 'noinline', 'noclone' and 'no_icf' attributes. However, this
  24268. attribute is not equivalent to a combination of other attributes,
  24269. because its purpose is to suppress existing and future
  24270. optimizations employing interprocedural analysis, including those
  24271. that do not have an attribute suitable for disabling them
  24272. individually. This attribute is supported mainly for the purpose
  24273. of testing the compiler.
  24274. 'nonnull (ARG-INDEX, ...)'
  24275. The 'nonnull' attribute specifies that some function parameters
  24276. should be non-null pointers. For instance, the declaration:
  24277. extern void *
  24278. my_memcpy (void *dest, const void *src, size_t len)
  24279. __attribute__((nonnull (1, 2)));
  24280. causes the compiler to check that, in calls to 'my_memcpy',
  24281. arguments DEST and SRC are non-null. If the compiler determines
  24282. that a null pointer is passed in an argument slot marked as
  24283. non-null, and the '-Wnonnull' option is enabled, a warning is
  24284. issued. The compiler may also choose to make optimizations based
  24285. on the knowledge that certain function arguments will never be
  24286. null.
  24287. If no argument index list is given to the 'nonnull' attribute, all
  24288. pointer arguments are marked as non-null. To illustrate, the
  24289. following declaration is equivalent to the previous example:
  24290. extern void *
  24291. my_memcpy (void *dest, const void *src, size_t len)
  24292. __attribute__((nonnull));
  24293. 'noplt'
  24294. The 'noplt' attribute is the counterpart to option '-fno-plt'.
  24295. Calls to functions marked with this attribute in
  24296. position-independent code do not use the PLT.
  24297. /* Externally defined function foo. */
  24298. int foo () __attribute__ ((noplt));
  24299. int
  24300. main (/* ... */)
  24301. {
  24302. /* ... */
  24303. foo ();
  24304. /* ... */
  24305. }
  24306. The 'noplt' attribute on function 'foo' tells the compiler to
  24307. assume that the function 'foo' is externally defined and that the
  24308. call to 'foo' must avoid the PLT in position-independent code.
  24309. In position-dependent code, a few targets also convert calls to
  24310. functions that are marked to not use the PLT to use the GOT
  24311. instead.
  24312. 'noreturn'
  24313. A few standard library functions, such as 'abort' and 'exit',
  24314. cannot return. GCC knows this automatically. Some programs define
  24315. their own functions that never return. You can declare them
  24316. 'noreturn' to tell the compiler this fact. For example,
  24317. void fatal () __attribute__ ((noreturn));
  24318. void
  24319. fatal (/* ... */)
  24320. {
  24321. /* ... */ /* Print error message. */ /* ... */
  24322. exit (1);
  24323. }
  24324. The 'noreturn' keyword tells the compiler to assume that 'fatal'
  24325. cannot return. It can then optimize without regard to what would
  24326. happen if 'fatal' ever did return. This makes slightly better
  24327. code. More importantly, it helps avoid spurious warnings of
  24328. uninitialized variables.
  24329. The 'noreturn' keyword does not affect the exceptional path when
  24330. that applies: a 'noreturn'-marked function may still return to the
  24331. caller by throwing an exception or calling 'longjmp'.
  24332. Do not assume that registers saved by the calling function are
  24333. restored before calling the 'noreturn' function.
  24334. It does not make sense for a 'noreturn' function to have a return
  24335. type other than 'void'.
  24336. 'nothrow'
  24337. The 'nothrow' attribute is used to inform the compiler that a
  24338. function cannot throw an exception. For example, most functions in
  24339. the standard C library can be guaranteed not to throw an exception
  24340. with the notable exceptions of 'qsort' and 'bsearch' that take
  24341. function pointer arguments.
  24342. 'optimize'
  24343. The 'optimize' attribute is used to specify that a function is to
  24344. be compiled with different optimization options than specified on
  24345. the command line. Arguments can either be numbers or strings.
  24346. Numbers are assumed to be an optimization level. Strings that
  24347. begin with 'O' are assumed to be an optimization option, while
  24348. other options are assumed to be used with a '-f' prefix. You can
  24349. also use the '#pragma GCC optimize' pragma to set the optimization
  24350. options that affect more than one function. *Note Function
  24351. Specific Option Pragmas::, for details about the '#pragma GCC
  24352. optimize' pragma.
  24353. This attribute should be used for debugging purposes only. It is
  24354. not suitable in production code.
  24355. 'patchable_function_entry'
  24356. In case the target's text segment can be made writable at run time
  24357. by any means, padding the function entry with a number of NOPs can
  24358. be used to provide a universal tool for instrumentation.
  24359. The 'patchable_function_entry' function attribute can be used to
  24360. change the number of NOPs to any desired value. The two-value
  24361. syntax is the same as for the command-line switch
  24362. '-fpatchable-function-entry=N,M', generating N NOPs, with the
  24363. function entry point before the Mth NOP instruction. M defaults to
  24364. 0 if omitted e.g. function entry point is before the first NOP.
  24365. If patchable function entries are enabled globally using the
  24366. command-line option '-fpatchable-function-entry=N,M', then you must
  24367. disable instrumentation on all functions that are part of the
  24368. instrumentation framework with the attribute
  24369. 'patchable_function_entry (0)' to prevent recursion.
  24370. 'pure'
  24371. Many functions have no effects except the return value and their
  24372. return value depends only on the parameters and/or global
  24373. variables. Calls to such functions can be subject to common
  24374. subexpression elimination and loop optimization just as an
  24375. arithmetic operator would be. These functions should be declared
  24376. with the attribute 'pure'. For example,
  24377. int square (int) __attribute__ ((pure));
  24378. says that the hypothetical function 'square' is safe to call fewer
  24379. times than the program says.
  24380. Some common examples of pure functions are 'strlen' or 'memcmp'.
  24381. Interesting non-pure functions are functions with infinite loops or
  24382. those depending on volatile memory or other system resource, that
  24383. may change between two consecutive calls (such as 'feof' in a
  24384. multithreading environment).
  24385. The 'pure' attribute imposes similar but looser restrictions on a
  24386. function's defintion than the 'const' attribute: it allows the
  24387. function to read global variables. Decorating the same function
  24388. with both the 'pure' and the 'const' attribute is diagnosed.
  24389. Because a 'pure' function cannot have any side effects it does not
  24390. make sense for such a function to return 'void'. Declaring such a
  24391. function is diagnosed.
  24392. 'returns_nonnull'
  24393. The 'returns_nonnull' attribute specifies that the function return
  24394. value should be a non-null pointer. For instance, the declaration:
  24395. extern void *
  24396. mymalloc (size_t len) __attribute__((returns_nonnull));
  24397. lets the compiler optimize callers based on the knowledge that the
  24398. return value will never be null.
  24399. 'returns_twice'
  24400. The 'returns_twice' attribute tells the compiler that a function
  24401. may return more than one time. The compiler ensures that all
  24402. registers are dead before calling such a function and emits a
  24403. warning about the variables that may be clobbered after the second
  24404. return from the function. Examples of such functions are 'setjmp'
  24405. and 'vfork'. The 'longjmp'-like counterpart of such function, if
  24406. any, might need to be marked with the 'noreturn' attribute.
  24407. 'section ("SECTION-NAME")'
  24408. Normally, the compiler places the code it generates in the 'text'
  24409. section. Sometimes, however, you need additional sections, or you
  24410. need certain particular functions to appear in special sections.
  24411. The 'section' attribute specifies that a function lives in a
  24412. particular section. For example, the declaration:
  24413. extern void foobar (void) __attribute__ ((section ("bar")));
  24414. puts the function 'foobar' in the 'bar' section.
  24415. Some file formats do not support arbitrary sections so the
  24416. 'section' attribute is not available on all platforms. If you need
  24417. to map the entire contents of a module to a particular section,
  24418. consider using the facilities of the linker instead.
  24419. 'sentinel'
  24420. This function attribute ensures that a parameter in a function call
  24421. is an explicit 'NULL'. The attribute is only valid on variadic
  24422. functions. By default, the sentinel is located at position zero,
  24423. the last parameter of the function call. If an optional integer
  24424. position argument P is supplied to the attribute, the sentinel must
  24425. be located at position P counting backwards from the end of the
  24426. argument list.
  24427. __attribute__ ((sentinel))
  24428. is equivalent to
  24429. __attribute__ ((sentinel(0)))
  24430. The attribute is automatically set with a position of 0 for the
  24431. built-in functions 'execl' and 'execlp'. The built-in function
  24432. 'execle' has the attribute set with a position of 1.
  24433. A valid 'NULL' in this context is defined as zero with any pointer
  24434. type. If your system defines the 'NULL' macro with an integer type
  24435. then you need to add an explicit cast. GCC replaces 'stddef.h'
  24436. with a copy that redefines NULL appropriately.
  24437. The warnings for missing or incorrect sentinels are enabled with
  24438. '-Wformat'.
  24439. 'simd'
  24440. 'simd("MASK")'
  24441. This attribute enables creation of one or more function versions
  24442. that can process multiple arguments using SIMD instructions from a
  24443. single invocation. Specifying this attribute allows compiler to
  24444. assume that such versions are available at link time (provided in
  24445. the same or another translation unit). Generated versions are
  24446. target-dependent and described in the corresponding Vector ABI
  24447. document. For x86_64 target this document can be found
  24448. here (https://sourceware.org/glibc/wiki/libmvec?action=AttachFile&do=view&target=VectorABI.txt).
  24449. The optional argument MASK may have the value 'notinbranch' or
  24450. 'inbranch', and instructs the compiler to generate non-masked or
  24451. masked clones correspondingly. By default, all clones are
  24452. generated.
  24453. If the attribute is specified and '#pragma omp declare simd' is
  24454. present on a declaration and the '-fopenmp' or '-fopenmp-simd'
  24455. switch is specified, then the attribute is ignored.
  24456. 'stack_protect'
  24457. This attribute adds stack protection code to the function if flags
  24458. '-fstack-protector', '-fstack-protector-strong' or
  24459. '-fstack-protector-explicit' are set.
  24460. 'target (OPTIONS)'
  24461. Multiple target back ends implement the 'target' attribute to
  24462. specify that a function is to be compiled with different target
  24463. options than specified on the command line. This can be used for
  24464. instance to have functions compiled with a different ISA
  24465. (instruction set architecture) than the default. You can also use
  24466. the '#pragma GCC target' pragma to set more than one function to be
  24467. compiled with specific target options. *Note Function Specific
  24468. Option Pragmas::, for details about the '#pragma GCC target'
  24469. pragma.
  24470. For instance, on an x86, you could declare one function with the
  24471. 'target("sse4.1,arch=core2")' attribute and another with
  24472. 'target("sse4a,arch=amdfam10")'. This is equivalent to compiling
  24473. the first function with '-msse4.1' and '-march=core2' options, and
  24474. the second function with '-msse4a' and '-march=amdfam10' options.
  24475. It is up to you to make sure that a function is only invoked on a
  24476. machine that supports the particular ISA it is compiled for (for
  24477. example by using 'cpuid' on x86 to determine what feature bits and
  24478. architecture family are used).
  24479. int core2_func (void) __attribute__ ((__target__ ("arch=core2")));
  24480. int sse3_func (void) __attribute__ ((__target__ ("sse3")));
  24481. You can either use multiple strings separated by commas to specify
  24482. multiple options, or separate the options with a comma (',') within
  24483. a single string.
  24484. The options supported are specific to each target; refer to *note
  24485. x86 Function Attributes::, *note PowerPC Function Attributes::,
  24486. *note ARM Function Attributes::, *note AArch64 Function
  24487. Attributes::, *note Nios II Function Attributes::, and *note S/390
  24488. Function Attributes:: for details.
  24489. 'target_clones (OPTIONS)'
  24490. The 'target_clones' attribute is used to specify that a function be
  24491. cloned into multiple versions compiled with different target
  24492. options than specified on the command line. The supported options
  24493. and restrictions are the same as for 'target' attribute.
  24494. For instance, on an x86, you could compile a function with
  24495. 'target_clones("sse4.1,avx")'. GCC creates two function clones,
  24496. one compiled with '-msse4.1' and another with '-mavx'.
  24497. On a PowerPC, you can compile a function with
  24498. 'target_clones("cpu=power9,default")'. GCC will create two
  24499. function clones, one compiled with '-mcpu=power9' and another with
  24500. the default options. GCC must be configured to use GLIBC 2.23 or
  24501. newer in order to use the 'target_clones' attribute.
  24502. It also creates a resolver function (see the 'ifunc' attribute
  24503. above) that dynamically selects a clone suitable for current
  24504. architecture. The resolver is created only if there is a usage of
  24505. a function with 'target_clones' attribute.
  24506. 'unused'
  24507. This attribute, attached to a function, means that the function is
  24508. meant to be possibly unused. GCC does not produce a warning for
  24509. this function.
  24510. 'used'
  24511. This attribute, attached to a function, means that code must be
  24512. emitted for the function even if it appears that the function is
  24513. not referenced. This is useful, for example, when the function is
  24514. referenced only in inline assembly.
  24515. When applied to a member function of a C++ class template, the
  24516. attribute also means that the function is instantiated if the class
  24517. itself is instantiated.
  24518. 'visibility ("VISIBILITY_TYPE")'
  24519. This attribute affects the linkage of the declaration to which it
  24520. is attached. It can be applied to variables (*note Common Variable
  24521. Attributes::) and types (*note Common Type Attributes::) as well as
  24522. functions.
  24523. There are four supported VISIBILITY_TYPE values: default, hidden,
  24524. protected or internal visibility.
  24525. void __attribute__ ((visibility ("protected")))
  24526. f () { /* Do something. */; }
  24527. int i __attribute__ ((visibility ("hidden")));
  24528. The possible values of VISIBILITY_TYPE correspond to the visibility
  24529. settings in the ELF gABI.
  24530. 'default'
  24531. Default visibility is the normal case for the object file
  24532. format. This value is available for the visibility attribute
  24533. to override other options that may change the assumed
  24534. visibility of entities.
  24535. On ELF, default visibility means that the declaration is
  24536. visible to other modules and, in shared libraries, means that
  24537. the declared entity may be overridden.
  24538. On Darwin, default visibility means that the declaration is
  24539. visible to other modules.
  24540. Default visibility corresponds to "external linkage" in the
  24541. language.
  24542. 'hidden'
  24543. Hidden visibility indicates that the entity declared has a new
  24544. form of linkage, which we call "hidden linkage". Two
  24545. declarations of an object with hidden linkage refer to the
  24546. same object if they are in the same shared object.
  24547. 'internal'
  24548. Internal visibility is like hidden visibility, but with
  24549. additional processor specific semantics. Unless otherwise
  24550. specified by the psABI, GCC defines internal visibility to
  24551. mean that a function is _never_ called from another module.
  24552. Compare this with hidden functions which, while they cannot be
  24553. referenced directly by other modules, can be referenced
  24554. indirectly via function pointers. By indicating that a
  24555. function cannot be called from outside the module, GCC may for
  24556. instance omit the load of a PIC register since it is known
  24557. that the calling function loaded the correct value.
  24558. 'protected'
  24559. Protected visibility is like default visibility except that it
  24560. indicates that references within the defining module bind to
  24561. the definition in that module. That is, the declared entity
  24562. cannot be overridden by another module.
  24563. All visibilities are supported on many, but not all, ELF targets
  24564. (supported when the assembler supports the '.visibility'
  24565. pseudo-op). Default visibility is supported everywhere. Hidden
  24566. visibility is supported on Darwin targets.
  24567. The visibility attribute should be applied only to declarations
  24568. that would otherwise have external linkage. The attribute should
  24569. be applied consistently, so that the same entity should not be
  24570. declared with different settings of the attribute.
  24571. In C++, the visibility attribute applies to types as well as
  24572. functions and objects, because in C++ types have linkage. A class
  24573. must not have greater visibility than its non-static data member
  24574. types and bases, and class members default to the visibility of
  24575. their class. Also, a declaration without explicit visibility is
  24576. limited to the visibility of its type.
  24577. In C++, you can mark member functions and static member variables
  24578. of a class with the visibility attribute. This is useful if you
  24579. know a particular method or static member variable should only be
  24580. used from one shared object; then you can mark it hidden while the
  24581. rest of the class has default visibility. Care must be taken to
  24582. avoid breaking the One Definition Rule; for example, it is usually
  24583. not useful to mark an inline method as hidden without marking the
  24584. whole class as hidden.
  24585. A C++ namespace declaration can also have the visibility attribute.
  24586. namespace nspace1 __attribute__ ((visibility ("protected")))
  24587. { /* Do something. */; }
  24588. This attribute applies only to the particular namespace body, not
  24589. to other definitions of the same namespace; it is equivalent to
  24590. using '#pragma GCC visibility' before and after the namespace
  24591. definition (*note Visibility Pragmas::).
  24592. In C++, if a template argument has limited visibility, this
  24593. restriction is implicitly propagated to the template instantiation.
  24594. Otherwise, template instantiations and specializations default to
  24595. the visibility of their template.
  24596. If both the template and enclosing class have explicit visibility,
  24597. the visibility from the template is used.
  24598. 'warn_unused_result'
  24599. The 'warn_unused_result' attribute causes a warning to be emitted
  24600. if a caller of the function with this attribute does not use its
  24601. return value. This is useful for functions where not checking the
  24602. result is either a security problem or always a bug, such as
  24603. 'realloc'.
  24604. int fn () __attribute__ ((warn_unused_result));
  24605. int foo ()
  24606. {
  24607. if (fn () < 0) return -1;
  24608. fn ();
  24609. return 0;
  24610. }
  24611. results in warning on line 5.
  24612. 'weak'
  24613. The 'weak' attribute causes the declaration to be emitted as a weak
  24614. symbol rather than a global. This is primarily useful in defining
  24615. library functions that can be overridden in user code, though it
  24616. can also be used with non-function declarations. Weak symbols are
  24617. supported for ELF targets, and also for a.out targets when using
  24618. the GNU assembler and linker.
  24619. 'weakref'
  24620. 'weakref ("TARGET")'
  24621. The 'weakref' attribute marks a declaration as a weak reference.
  24622. Without arguments, it should be accompanied by an 'alias' attribute
  24623. naming the target symbol. Optionally, the TARGET may be given as
  24624. an argument to 'weakref' itself. In either case, 'weakref'
  24625. implicitly marks the declaration as 'weak'. Without a TARGET,
  24626. given as an argument to 'weakref' or to 'alias', 'weakref' is
  24627. equivalent to 'weak'.
  24628. static int x() __attribute__ ((weakref ("y")));
  24629. /* is equivalent to... */
  24630. static int x() __attribute__ ((weak, weakref, alias ("y")));
  24631. /* and to... */
  24632. static int x() __attribute__ ((weakref));
  24633. static int x() __attribute__ ((alias ("y")));
  24634. A weak reference is an alias that does not by itself require a
  24635. definition to be given for the target symbol. If the target symbol
  24636. is only referenced through weak references, then it becomes a
  24637. 'weak' undefined symbol. If it is directly referenced, however,
  24638. then such strong references prevail, and a definition is required
  24639. for the symbol, not necessarily in the same translation unit.
  24640. The effect is equivalent to moving all references to the alias to a
  24641. separate translation unit, renaming the alias to the aliased
  24642. symbol, declaring it as weak, compiling the two separate
  24643. translation units and performing a reloadable link on them.
  24644. At present, a declaration to which 'weakref' is attached can only
  24645. be 'static'.
  24646. 
  24647. File: gcc.info, Node: AArch64 Function Attributes, Next: ARC Function Attributes, Prev: Common Function Attributes, Up: Function Attributes
  24648. 6.31.2 AArch64 Function Attributes
  24649. ----------------------------------
  24650. The following target-specific function attributes are available for the
  24651. AArch64 target. For the most part, these options mirror the behavior of
  24652. similar command-line options (*note AArch64 Options::), but on a
  24653. per-function basis.
  24654. 'general-regs-only'
  24655. Indicates that no floating-point or Advanced SIMD registers should
  24656. be used when generating code for this function. If the function
  24657. explicitly uses floating-point code, then the compiler gives an
  24658. error. This is the same behavior as that of the command-line
  24659. option '-mgeneral-regs-only'.
  24660. 'fix-cortex-a53-835769'
  24661. Indicates that the workaround for the Cortex-A53 erratum 835769
  24662. should be applied to this function. To explicitly disable the
  24663. workaround for this function specify the negated form:
  24664. 'no-fix-cortex-a53-835769'. This corresponds to the behavior of
  24665. the command line options '-mfix-cortex-a53-835769' and
  24666. '-mno-fix-cortex-a53-835769'.
  24667. 'cmodel='
  24668. Indicates that code should be generated for a particular code model
  24669. for this function. The behavior and permissible arguments are the
  24670. same as for the command line option '-mcmodel='.
  24671. 'strict-align'
  24672. Indicates that the compiler should not assume that unaligned memory
  24673. references are handled by the system. The behavior is the same as
  24674. for the command-line option '-mstrict-align'.
  24675. 'omit-leaf-frame-pointer'
  24676. Indicates that the frame pointer should be omitted for a leaf
  24677. function call. To keep the frame pointer, the inverse attribute
  24678. 'no-omit-leaf-frame-pointer' can be specified. These attributes
  24679. have the same behavior as the command-line options
  24680. '-momit-leaf-frame-pointer' and '-mno-omit-leaf-frame-pointer'.
  24681. 'tls-dialect='
  24682. Specifies the TLS dialect to use for this function. The behavior
  24683. and permissible arguments are the same as for the command-line
  24684. option '-mtls-dialect='.
  24685. 'arch='
  24686. Specifies the architecture version and architectural extensions to
  24687. use for this function. The behavior and permissible arguments are
  24688. the same as for the '-march=' command-line option.
  24689. 'tune='
  24690. Specifies the core for which to tune the performance of this
  24691. function. The behavior and permissible arguments are the same as
  24692. for the '-mtune=' command-line option.
  24693. 'cpu='
  24694. Specifies the core for which to tune the performance of this
  24695. function and also whose architectural features to use. The
  24696. behavior and valid arguments are the same as for the '-mcpu='
  24697. command-line option.
  24698. 'sign-return-address'
  24699. Select the function scope on which return address signing will be
  24700. applied. The behavior and permissible arguments are the same as
  24701. for the command-line option '-msign-return-address='. The default
  24702. value is 'none'.
  24703. The above target attributes can be specified as follows:
  24704. __attribute__((target("ATTR-STRING")))
  24705. int
  24706. f (int a)
  24707. {
  24708. return a + 5;
  24709. }
  24710. where 'ATTR-STRING' is one of the attribute strings specified above.
  24711. Additionally, the architectural extension string may be specified on
  24712. its own. This can be used to turn on and off particular architectural
  24713. extensions without having to specify a particular architecture version
  24714. or core. Example:
  24715. __attribute__((target("+crc+nocrypto")))
  24716. int
  24717. foo (int a)
  24718. {
  24719. return a + 5;
  24720. }
  24721. In this example 'target("+crc+nocrypto")' enables the 'crc' extension
  24722. and disables the 'crypto' extension for the function 'foo' without
  24723. modifying an existing '-march=' or '-mcpu' option.
  24724. Multiple target function attributes can be specified by separating them
  24725. with a comma. For example:
  24726. __attribute__((target("arch=armv8-a+crc+crypto,tune=cortex-a53")))
  24727. int
  24728. foo (int a)
  24729. {
  24730. return a + 5;
  24731. }
  24732. is valid and compiles function 'foo' for ARMv8-A with 'crc' and
  24733. 'crypto' extensions and tunes it for 'cortex-a53'.
  24734. 6.31.2.1 Inlining rules
  24735. .......................
  24736. Specifying target attributes on individual functions or performing
  24737. link-time optimization across translation units compiled with different
  24738. target options can affect function inlining rules:
  24739. In particular, a caller function can inline a callee function only if
  24740. the architectural features available to the callee are a subset of the
  24741. features available to the caller. For example: A function 'foo'
  24742. compiled with '-march=armv8-a+crc', or tagged with the equivalent
  24743. 'arch=armv8-a+crc' attribute, can inline a function 'bar' compiled with
  24744. '-march=armv8-a+nocrc' because the all the architectural features that
  24745. function 'bar' requires are available to function 'foo'. Conversely,
  24746. function 'bar' cannot inline function 'foo'.
  24747. Additionally inlining a function compiled with '-mstrict-align' into a
  24748. function compiled without '-mstrict-align' is not allowed. However,
  24749. inlining a function compiled without '-mstrict-align' into a function
  24750. compiled with '-mstrict-align' is allowed.
  24751. Note that CPU tuning options and attributes such as the '-mcpu=',
  24752. '-mtune=' do not inhibit inlining unless the CPU specified by the
  24753. '-mcpu=' option or the 'cpu=' attribute conflicts with the architectural
  24754. feature rules specified above.
  24755. 
  24756. File: gcc.info, Node: ARC Function Attributes, Next: ARM Function Attributes, Prev: AArch64 Function Attributes, Up: Function Attributes
  24757. 6.31.3 ARC Function Attributes
  24758. ------------------------------
  24759. These function attributes are supported by the ARC back end:
  24760. 'interrupt'
  24761. Use this attribute to indicate that the specified function is an
  24762. interrupt handler. The compiler generates function entry and exit
  24763. sequences suitable for use in an interrupt handler when this
  24764. attribute is present.
  24765. On the ARC, you must specify the kind of interrupt to be handled in
  24766. a parameter to the interrupt attribute like this:
  24767. void f () __attribute__ ((interrupt ("ilink1")));
  24768. Permissible values for this parameter are: 'ilink1' and 'ilink2'.
  24769. 'long_call'
  24770. 'medium_call'
  24771. 'short_call'
  24772. These attributes specify how a particular function is called.
  24773. These attributes override the '-mlong-calls' and '-mmedium-calls'
  24774. (*note ARC Options::) command-line switches and '#pragma
  24775. long_calls' settings.
  24776. For ARC, a function marked with the 'long_call' attribute is always
  24777. called using register-indirect jump-and-link instructions, thereby
  24778. enabling the called function to be placed anywhere within the
  24779. 32-bit address space. A function marked with the 'medium_call'
  24780. attribute will always be close enough to be called with an
  24781. unconditional branch-and-link instruction, which has a 25-bit
  24782. offset from the call site. A function marked with the 'short_call'
  24783. attribute will always be close enough to be called with a
  24784. conditional branch-and-link instruction, which has a 21-bit offset
  24785. from the call site.
  24786. 'jli_always'
  24787. Forces a particular function to be called using 'jli' instruction.
  24788. The 'jli' instruction makes use of a table stored into '.jlitab'
  24789. section, which holds the location of the functions which are
  24790. addressed using this instruction.
  24791. 'jli_fixed'
  24792. Identical like the above one, but the location of the function in
  24793. the 'jli' table is known and given as an attribute parameter.
  24794. 'secure_call'
  24795. This attribute allows one to mark secure-code functions that are
  24796. callable from normal mode. The location of the secure call
  24797. function into the 'sjli' table needs to be passed as argument.
  24798. 
  24799. File: gcc.info, Node: ARM Function Attributes, Next: AVR Function Attributes, Prev: ARC Function Attributes, Up: Function Attributes
  24800. 6.31.4 ARM Function Attributes
  24801. ------------------------------
  24802. These function attributes are supported for ARM targets:
  24803. 'interrupt'
  24804. Use this attribute to indicate that the specified function is an
  24805. interrupt handler. The compiler generates function entry and exit
  24806. sequences suitable for use in an interrupt handler when this
  24807. attribute is present.
  24808. You can specify the kind of interrupt to be handled by adding an
  24809. optional parameter to the interrupt attribute like this:
  24810. void f () __attribute__ ((interrupt ("IRQ")));
  24811. Permissible values for this parameter are: 'IRQ', 'FIQ', 'SWI',
  24812. 'ABORT' and 'UNDEF'.
  24813. On ARMv7-M the interrupt type is ignored, and the attribute means
  24814. the function may be called with a word-aligned stack pointer.
  24815. 'isr'
  24816. Use this attribute on ARM to write Interrupt Service Routines.
  24817. This is an alias to the 'interrupt' attribute above.
  24818. 'long_call'
  24819. 'short_call'
  24820. These attributes specify how a particular function is called.
  24821. These attributes override the '-mlong-calls' (*note ARM Options::)
  24822. command-line switch and '#pragma long_calls' settings. For ARM,
  24823. the 'long_call' attribute indicates that the function might be far
  24824. away from the call site and require a different (more expensive)
  24825. calling sequence. The 'short_call' attribute always places the
  24826. offset to the function from the call site into the 'BL' instruction
  24827. directly.
  24828. 'naked'
  24829. This attribute allows the compiler to construct the requisite
  24830. function declaration, while allowing the body of the function to be
  24831. assembly code. The specified function will not have
  24832. prologue/epilogue sequences generated by the compiler. Only basic
  24833. 'asm' statements can safely be included in naked functions (*note
  24834. Basic Asm::). While using extended 'asm' or a mixture of basic
  24835. 'asm' and C code may appear to work, they cannot be depended upon
  24836. to work reliably and are not supported.
  24837. 'pcs'
  24838. The 'pcs' attribute can be used to control the calling convention
  24839. used for a function on ARM. The attribute takes an argument that
  24840. specifies the calling convention to use.
  24841. When compiling using the AAPCS ABI (or a variant of it) then valid
  24842. values for the argument are '"aapcs"' and '"aapcs-vfp"'. In order
  24843. to use a variant other than '"aapcs"' then the compiler must be
  24844. permitted to use the appropriate co-processor registers (i.e., the
  24845. VFP registers must be available in order to use '"aapcs-vfp"').
  24846. For example,
  24847. /* Argument passed in r0, and result returned in r0+r1. */
  24848. double f2d (float) __attribute__((pcs("aapcs")));
  24849. Variadic functions always use the '"aapcs"' calling convention and
  24850. the compiler rejects attempts to specify an alternative.
  24851. 'target (OPTIONS)'
  24852. As discussed in *note Common Function Attributes::, this attribute
  24853. allows specification of target-specific compilation options.
  24854. On ARM, the following options are allowed:
  24855. 'thumb'
  24856. Force code generation in the Thumb (T16/T32) ISA, depending on
  24857. the architecture level.
  24858. 'arm'
  24859. Force code generation in the ARM (A32) ISA.
  24860. Functions from different modes can be inlined in the caller's
  24861. mode.
  24862. 'fpu='
  24863. Specifies the fpu for which to tune the performance of this
  24864. function. The behavior and permissible arguments are the same
  24865. as for the '-mfpu=' command-line option.
  24866. 'arch='
  24867. Specifies the architecture version and architectural
  24868. extensions to use for this function. The behavior and
  24869. permissible arguments are the same as for the '-march='
  24870. command-line option.
  24871. The above target attributes can be specified as follows:
  24872. __attribute__((target("arch=armv8-a+crc")))
  24873. int
  24874. f (int a)
  24875. {
  24876. return a + 5;
  24877. }
  24878. Additionally, the architectural extension string may be
  24879. specified on its own. This can be used to turn on and off
  24880. particular architectural extensions without having to specify
  24881. a particular architecture version or core. Example:
  24882. __attribute__((target("+crc+nocrypto")))
  24883. int
  24884. foo (int a)
  24885. {
  24886. return a + 5;
  24887. }
  24888. In this example 'target("+crc+nocrypto")' enables the 'crc'
  24889. extension and disables the 'crypto' extension for the function
  24890. 'foo' without modifying an existing '-march=' or '-mcpu'
  24891. option.
  24892. 
  24893. File: gcc.info, Node: AVR Function Attributes, Next: Blackfin Function Attributes, Prev: ARM Function Attributes, Up: Function Attributes
  24894. 6.31.5 AVR Function Attributes
  24895. ------------------------------
  24896. These function attributes are supported by the AVR back end:
  24897. 'interrupt'
  24898. Use this attribute to indicate that the specified function is an
  24899. interrupt handler. The compiler generates function entry and exit
  24900. sequences suitable for use in an interrupt handler when this
  24901. attribute is present.
  24902. On the AVR, the hardware globally disables interrupts when an
  24903. interrupt is executed. The first instruction of an interrupt
  24904. handler declared with this attribute is a 'SEI' instruction to
  24905. re-enable interrupts. See also the 'signal' function attribute
  24906. that does not insert a 'SEI' instruction. If both 'signal' and
  24907. 'interrupt' are specified for the same function, 'signal' is
  24908. silently ignored.
  24909. 'naked'
  24910. This attribute allows the compiler to construct the requisite
  24911. function declaration, while allowing the body of the function to be
  24912. assembly code. The specified function will not have
  24913. prologue/epilogue sequences generated by the compiler. Only basic
  24914. 'asm' statements can safely be included in naked functions (*note
  24915. Basic Asm::). While using extended 'asm' or a mixture of basic
  24916. 'asm' and C code may appear to work, they cannot be depended upon
  24917. to work reliably and are not supported.
  24918. 'no_gccisr'
  24919. Do not use '__gcc_isr' pseudo instructions in a function with the
  24920. 'interrupt' or 'signal' attribute aka. interrupt service routine
  24921. (ISR). Use this attribute if the preamble of the ISR prologue
  24922. should always read
  24923. push __zero_reg__
  24924. push __tmp_reg__
  24925. in __tmp_reg__, __SREG__
  24926. push __tmp_reg__
  24927. clr __zero_reg__
  24928. and accordingly for the postamble of the epilogue -- no matter
  24929. whether the mentioned registers are actually used in the ISR or
  24930. not. Situations where you might want to use this attribute
  24931. include:
  24932. * Code that (effectively) clobbers bits of 'SREG' other than the
  24933. 'I'-flag by writing to the memory location of 'SREG'.
  24934. * Code that uses inline assembler to jump to a different
  24935. function which expects (parts of) the prologue code as
  24936. outlined above to be present.
  24937. To disable '__gcc_isr' generation for the whole compilation unit,
  24938. there is option '-mno-gas-isr-prologues', *note AVR Options::.
  24939. 'OS_main'
  24940. 'OS_task'
  24941. On AVR, functions with the 'OS_main' or 'OS_task' attribute do not
  24942. save/restore any call-saved register in their prologue/epilogue.
  24943. The 'OS_main' attribute can be used when there _is guarantee_ that
  24944. interrupts are disabled at the time when the function is entered.
  24945. This saves resources when the stack pointer has to be changed to
  24946. set up a frame for local variables.
  24947. The 'OS_task' attribute can be used when there is _no guarantee_
  24948. that interrupts are disabled at that time when the function is
  24949. entered like for, e.g. task functions in a multi-threading
  24950. operating system. In that case, changing the stack pointer
  24951. register is guarded by save/clear/restore of the global interrupt
  24952. enable flag.
  24953. The differences to the 'naked' function attribute are:
  24954. * 'naked' functions do not have a return instruction whereas
  24955. 'OS_main' and 'OS_task' functions have a 'RET' or 'RETI'
  24956. return instruction.
  24957. * 'naked' functions do not set up a frame for local variables or
  24958. a frame pointer whereas 'OS_main' and 'OS_task' do this as
  24959. needed.
  24960. 'signal'
  24961. Use this attribute on the AVR to indicate that the specified
  24962. function is an interrupt handler. The compiler generates function
  24963. entry and exit sequences suitable for use in an interrupt handler
  24964. when this attribute is present.
  24965. See also the 'interrupt' function attribute.
  24966. The AVR hardware globally disables interrupts when an interrupt is
  24967. executed. Interrupt handler functions defined with the 'signal'
  24968. attribute do not re-enable interrupts. It is save to enable
  24969. interrupts in a 'signal' handler. This "save" only applies to the
  24970. code generated by the compiler and not to the IRQ layout of the
  24971. application which is responsibility of the application.
  24972. If both 'signal' and 'interrupt' are specified for the same
  24973. function, 'signal' is silently ignored.
  24974. 
  24975. File: gcc.info, Node: Blackfin Function Attributes, Next: CR16 Function Attributes, Prev: AVR Function Attributes, Up: Function Attributes
  24976. 6.31.6 Blackfin Function Attributes
  24977. -----------------------------------
  24978. These function attributes are supported by the Blackfin back end:
  24979. 'exception_handler'
  24980. Use this attribute on the Blackfin to indicate that the specified
  24981. function is an exception handler. The compiler generates function
  24982. entry and exit sequences suitable for use in an exception handler
  24983. when this attribute is present.
  24984. 'interrupt_handler'
  24985. Use this attribute to indicate that the specified function is an
  24986. interrupt handler. The compiler generates function entry and exit
  24987. sequences suitable for use in an interrupt handler when this
  24988. attribute is present.
  24989. 'kspisusp'
  24990. When used together with 'interrupt_handler', 'exception_handler' or
  24991. 'nmi_handler', code is generated to load the stack pointer from the
  24992. USP register in the function prologue.
  24993. 'l1_text'
  24994. This attribute specifies a function to be placed into L1
  24995. Instruction SRAM. The function is put into a specific section
  24996. named '.l1.text'. With '-mfdpic', function calls with a such
  24997. function as the callee or caller uses inlined PLT.
  24998. 'l2'
  24999. This attribute specifies a function to be placed into L2 SRAM. The
  25000. function is put into a specific section named '.l2.text'. With
  25001. '-mfdpic', callers of such functions use an inlined PLT.
  25002. 'longcall'
  25003. 'shortcall'
  25004. The 'longcall' attribute indicates that the function might be far
  25005. away from the call site and require a different (more expensive)
  25006. calling sequence. The 'shortcall' attribute indicates that the
  25007. function is always close enough for the shorter calling sequence to
  25008. be used. These attributes override the '-mlongcall' switch.
  25009. 'nesting'
  25010. Use this attribute together with 'interrupt_handler',
  25011. 'exception_handler' or 'nmi_handler' to indicate that the function
  25012. entry code should enable nested interrupts or exceptions.
  25013. 'nmi_handler'
  25014. Use this attribute on the Blackfin to indicate that the specified
  25015. function is an NMI handler. The compiler generates function entry
  25016. and exit sequences suitable for use in an NMI handler when this
  25017. attribute is present.
  25018. 'saveall'
  25019. Use this attribute to indicate that all registers except the stack
  25020. pointer should be saved in the prologue regardless of whether they
  25021. are used or not.
  25022. 
  25023. File: gcc.info, Node: CR16 Function Attributes, Next: Epiphany Function Attributes, Prev: Blackfin Function Attributes, Up: Function Attributes
  25024. 6.31.7 CR16 Function Attributes
  25025. -------------------------------
  25026. These function attributes are supported by the CR16 back end:
  25027. 'interrupt'
  25028. Use this attribute to indicate that the specified function is an
  25029. interrupt handler. The compiler generates function entry and exit
  25030. sequences suitable for use in an interrupt handler when this
  25031. attribute is present.
  25032. 
  25033. File: gcc.info, Node: Epiphany Function Attributes, Next: H8/300 Function Attributes, Prev: CR16 Function Attributes, Up: Function Attributes
  25034. 6.31.8 Epiphany Function Attributes
  25035. -----------------------------------
  25036. These function attributes are supported by the Epiphany back end:
  25037. 'disinterrupt'
  25038. This attribute causes the compiler to emit instructions to disable
  25039. interrupts for the duration of the given function.
  25040. 'forwarder_section'
  25041. This attribute modifies the behavior of an interrupt handler. The
  25042. interrupt handler may be in external memory which cannot be reached
  25043. by a branch instruction, so generate a local memory trampoline to
  25044. transfer control. The single parameter identifies the section
  25045. where the trampoline is placed.
  25046. 'interrupt'
  25047. Use this attribute to indicate that the specified function is an
  25048. interrupt handler. The compiler generates function entry and exit
  25049. sequences suitable for use in an interrupt handler when this
  25050. attribute is present. It may also generate a special section with
  25051. code to initialize the interrupt vector table.
  25052. On Epiphany targets one or more optional parameters can be added
  25053. like this:
  25054. void __attribute__ ((interrupt ("dma0, dma1"))) universal_dma_handler ();
  25055. Permissible values for these parameters are: 'reset',
  25056. 'software_exception', 'page_miss', 'timer0', 'timer1', 'message',
  25057. 'dma0', 'dma1', 'wand' and 'swi'. Multiple parameters indicate
  25058. that multiple entries in the interrupt vector table should be
  25059. initialized for this function, i.e. for each parameter NAME, a jump
  25060. to the function is emitted in the section ivt_entry_NAME. The
  25061. parameter(s) may be omitted entirely, in which case no interrupt
  25062. vector table entry is provided.
  25063. Note that interrupts are enabled inside the function unless the
  25064. 'disinterrupt' attribute is also specified.
  25065. The following examples are all valid uses of these attributes on
  25066. Epiphany targets:
  25067. void __attribute__ ((interrupt)) universal_handler ();
  25068. void __attribute__ ((interrupt ("dma1"))) dma1_handler ();
  25069. void __attribute__ ((interrupt ("dma0, dma1")))
  25070. universal_dma_handler ();
  25071. void __attribute__ ((interrupt ("timer0"), disinterrupt))
  25072. fast_timer_handler ();
  25073. void __attribute__ ((interrupt ("dma0, dma1"),
  25074. forwarder_section ("tramp")))
  25075. external_dma_handler ();
  25076. 'long_call'
  25077. 'short_call'
  25078. These attributes specify how a particular function is called.
  25079. These attributes override the '-mlong-calls' (*note Adapteva
  25080. Epiphany Options::) command-line switch and '#pragma long_calls'
  25081. settings.
  25082. 
  25083. File: gcc.info, Node: H8/300 Function Attributes, Next: IA-64 Function Attributes, Prev: Epiphany Function Attributes, Up: Function Attributes
  25084. 6.31.9 H8/300 Function Attributes
  25085. ---------------------------------
  25086. These function attributes are available for H8/300 targets:
  25087. 'function_vector'
  25088. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  25089. the specified function should be called through the function
  25090. vector. Calling a function through the function vector reduces
  25091. code size; however, the function vector has a limited size (maximum
  25092. 128 entries on the H8/300 and 64 entries on the H8/300H and H8S)
  25093. and shares space with the interrupt vector.
  25094. 'interrupt_handler'
  25095. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  25096. the specified function is an interrupt handler. The compiler
  25097. generates function entry and exit sequences suitable for use in an
  25098. interrupt handler when this attribute is present.
  25099. 'saveall'
  25100. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  25101. all registers except the stack pointer should be saved in the
  25102. prologue regardless of whether they are used or not.
  25103. 
  25104. File: gcc.info, Node: IA-64 Function Attributes, Next: M32C Function Attributes, Prev: H8/300 Function Attributes, Up: Function Attributes
  25105. 6.31.10 IA-64 Function Attributes
  25106. ---------------------------------
  25107. These function attributes are supported on IA-64 targets:
  25108. 'syscall_linkage'
  25109. This attribute is used to modify the IA-64 calling convention by
  25110. marking all input registers as live at all function exits. This
  25111. makes it possible to restart a system call after an interrupt
  25112. without having to save/restore the input registers. This also
  25113. prevents kernel data from leaking into application code.
  25114. 'version_id'
  25115. This IA-64 HP-UX attribute, attached to a global variable or
  25116. function, renames a symbol to contain a version string, thus
  25117. allowing for function level versioning. HP-UX system header files
  25118. may use function level versioning for some system calls.
  25119. extern int foo () __attribute__((version_id ("20040821")));
  25120. Calls to 'foo' are mapped to calls to 'foo{20040821}'.
  25121. 
  25122. File: gcc.info, Node: M32C Function Attributes, Next: M32R/D Function Attributes, Prev: IA-64 Function Attributes, Up: Function Attributes
  25123. 6.31.11 M32C Function Attributes
  25124. --------------------------------
  25125. These function attributes are supported by the M32C back end:
  25126. 'bank_switch'
  25127. When added to an interrupt handler with the M32C port, causes the
  25128. prologue and epilogue to use bank switching to preserve the
  25129. registers rather than saving them on the stack.
  25130. 'fast_interrupt'
  25131. Use this attribute on the M32C port to indicate that the specified
  25132. function is a fast interrupt handler. This is just like the
  25133. 'interrupt' attribute, except that 'freit' is used to return
  25134. instead of 'reit'.
  25135. 'function_vector'
  25136. On M16C/M32C targets, the 'function_vector' attribute declares a
  25137. special page subroutine call function. Use of this attribute
  25138. reduces the code size by 2 bytes for each call generated to the
  25139. subroutine. The argument to the attribute is the vector number
  25140. entry from the special page vector table which contains the 16
  25141. low-order bits of the subroutine's entry address. Each vector
  25142. table has special page number (18 to 255) that is used in 'jsrs'
  25143. instructions. Jump addresses of the routines are generated by
  25144. adding 0x0F0000 (in case of M16C targets) or 0xFF0000 (in case of
  25145. M32C targets), to the 2-byte addresses set in the vector table.
  25146. Therefore you need to ensure that all the special page vector
  25147. routines should get mapped within the address range 0x0F0000 to
  25148. 0x0FFFFF (for M16C) and 0xFF0000 to 0xFFFFFF (for M32C).
  25149. In the following example 2 bytes are saved for each call to
  25150. function 'foo'.
  25151. void foo (void) __attribute__((function_vector(0x18)));
  25152. void foo (void)
  25153. {
  25154. }
  25155. void bar (void)
  25156. {
  25157. foo();
  25158. }
  25159. If functions are defined in one file and are called in another
  25160. file, then be sure to write this declaration in both files.
  25161. This attribute is ignored for R8C target.
  25162. 'interrupt'
  25163. Use this attribute to indicate that the specified function is an
  25164. interrupt handler. The compiler generates function entry and exit
  25165. sequences suitable for use in an interrupt handler when this
  25166. attribute is present.
  25167. 
  25168. File: gcc.info, Node: M32R/D Function Attributes, Next: m68k Function Attributes, Prev: M32C Function Attributes, Up: Function Attributes
  25169. 6.31.12 M32R/D Function Attributes
  25170. ----------------------------------
  25171. These function attributes are supported by the M32R/D back end:
  25172. 'interrupt'
  25173. Use this attribute to indicate that the specified function is an
  25174. interrupt handler. The compiler generates function entry and exit
  25175. sequences suitable for use in an interrupt handler when this
  25176. attribute is present.
  25177. 'model (MODEL-NAME)'
  25178. On the M32R/D, use this attribute to set the addressability of an
  25179. object, and of the code generated for a function. The identifier
  25180. MODEL-NAME is one of 'small', 'medium', or 'large', representing
  25181. each of the code models.
  25182. Small model objects live in the lower 16MB of memory (so that their
  25183. addresses can be loaded with the 'ld24' instruction), and are
  25184. callable with the 'bl' instruction.
  25185. Medium model objects may live anywhere in the 32-bit address space
  25186. (the compiler generates 'seth/add3' instructions to load their
  25187. addresses), and are callable with the 'bl' instruction.
  25188. Large model objects may live anywhere in the 32-bit address space
  25189. (the compiler generates 'seth/add3' instructions to load their
  25190. addresses), and may not be reachable with the 'bl' instruction (the
  25191. compiler generates the much slower 'seth/add3/jl' instruction
  25192. sequence).
  25193. 
  25194. File: gcc.info, Node: m68k Function Attributes, Next: MCORE Function Attributes, Prev: M32R/D Function Attributes, Up: Function Attributes
  25195. 6.31.13 m68k Function Attributes
  25196. --------------------------------
  25197. These function attributes are supported by the m68k back end:
  25198. 'interrupt'
  25199. 'interrupt_handler'
  25200. Use this attribute to indicate that the specified function is an
  25201. interrupt handler. The compiler generates function entry and exit
  25202. sequences suitable for use in an interrupt handler when this
  25203. attribute is present. Either name may be used.
  25204. 'interrupt_thread'
  25205. Use this attribute on fido, a subarchitecture of the m68k, to
  25206. indicate that the specified function is an interrupt handler that
  25207. is designed to run as a thread. The compiler omits generate
  25208. prologue/epilogue sequences and replaces the return instruction
  25209. with a 'sleep' instruction. This attribute is available only on
  25210. fido.
  25211. 
  25212. File: gcc.info, Node: MCORE Function Attributes, Next: MeP Function Attributes, Prev: m68k Function Attributes, Up: Function Attributes
  25213. 6.31.14 MCORE Function Attributes
  25214. ---------------------------------
  25215. These function attributes are supported by the MCORE back end:
  25216. 'naked'
  25217. This attribute allows the compiler to construct the requisite
  25218. function declaration, while allowing the body of the function to be
  25219. assembly code. The specified function will not have
  25220. prologue/epilogue sequences generated by the compiler. Only basic
  25221. 'asm' statements can safely be included in naked functions (*note
  25222. Basic Asm::). While using extended 'asm' or a mixture of basic
  25223. 'asm' and C code may appear to work, they cannot be depended upon
  25224. to work reliably and are not supported.
  25225. 
  25226. File: gcc.info, Node: MeP Function Attributes, Next: MicroBlaze Function Attributes, Prev: MCORE Function Attributes, Up: Function Attributes
  25227. 6.31.15 MeP Function Attributes
  25228. -------------------------------
  25229. These function attributes are supported by the MeP back end:
  25230. 'disinterrupt'
  25231. On MeP targets, this attribute causes the compiler to emit
  25232. instructions to disable interrupts for the duration of the given
  25233. function.
  25234. 'interrupt'
  25235. Use this attribute to indicate that the specified function is an
  25236. interrupt handler. The compiler generates function entry and exit
  25237. sequences suitable for use in an interrupt handler when this
  25238. attribute is present.
  25239. 'near'
  25240. This attribute causes the compiler to assume the called function is
  25241. close enough to use the normal calling convention, overriding the
  25242. '-mtf' command-line option.
  25243. 'far'
  25244. On MeP targets this causes the compiler to use a calling convention
  25245. that assumes the called function is too far away for the built-in
  25246. addressing modes.
  25247. 'vliw'
  25248. The 'vliw' attribute tells the compiler to emit instructions in
  25249. VLIW mode instead of core mode. Note that this attribute is not
  25250. allowed unless a VLIW coprocessor has been configured and enabled
  25251. through command-line options.
  25252. 
  25253. File: gcc.info, Node: MicroBlaze Function Attributes, Next: Microsoft Windows Function Attributes, Prev: MeP Function Attributes, Up: Function Attributes
  25254. 6.31.16 MicroBlaze Function Attributes
  25255. --------------------------------------
  25256. These function attributes are supported on MicroBlaze targets:
  25257. 'save_volatiles'
  25258. Use this attribute to indicate that the function is an interrupt
  25259. handler. All volatile registers (in addition to non-volatile
  25260. registers) are saved in the function prologue. If the function is
  25261. a leaf function, only volatiles used by the function are saved. A
  25262. normal function return is generated instead of a return from
  25263. interrupt.
  25264. 'break_handler'
  25265. Use this attribute to indicate that the specified function is a
  25266. break handler. The compiler generates function entry and exit
  25267. sequences suitable for use in an break handler when this attribute
  25268. is present. The return from 'break_handler' is done through the
  25269. 'rtbd' instead of 'rtsd'.
  25270. void f () __attribute__ ((break_handler));
  25271. 'interrupt_handler'
  25272. 'fast_interrupt'
  25273. These attributes indicate that the specified function is an
  25274. interrupt handler. Use the 'fast_interrupt' attribute to indicate
  25275. handlers used in low-latency interrupt mode, and
  25276. 'interrupt_handler' for interrupts that do not use low-latency
  25277. handlers. In both cases, GCC emits appropriate prologue code and
  25278. generates a return from the handler using 'rtid' instead of 'rtsd'.
  25279. 
  25280. File: gcc.info, Node: Microsoft Windows Function Attributes, Next: MIPS Function Attributes, Prev: MicroBlaze Function Attributes, Up: Function Attributes
  25281. 6.31.17 Microsoft Windows Function Attributes
  25282. ---------------------------------------------
  25283. The following attributes are available on Microsoft Windows and Symbian
  25284. OS targets.
  25285. 'dllexport'
  25286. On Microsoft Windows targets and Symbian OS targets the 'dllexport'
  25287. attribute causes the compiler to provide a global pointer to a
  25288. pointer in a DLL, so that it can be referenced with the 'dllimport'
  25289. attribute. On Microsoft Windows targets, the pointer name is
  25290. formed by combining '_imp__' and the function or variable name.
  25291. You can use '__declspec(dllexport)' as a synonym for '__attribute__
  25292. ((dllexport))' for compatibility with other compilers.
  25293. On systems that support the 'visibility' attribute, this attribute
  25294. also implies "default" visibility. It is an error to explicitly
  25295. specify any other visibility.
  25296. GCC's default behavior is to emit all inline functions with the
  25297. 'dllexport' attribute. Since this can cause object file-size
  25298. bloat, you can use '-fno-keep-inline-dllexport', which tells GCC to
  25299. ignore the attribute for inlined functions unless the
  25300. '-fkeep-inline-functions' flag is used instead.
  25301. The attribute is ignored for undefined symbols.
  25302. When applied to C++ classes, the attribute marks defined
  25303. non-inlined member functions and static data members as exports.
  25304. Static consts initialized in-class are not marked unless they are
  25305. also defined out-of-class.
  25306. For Microsoft Windows targets there are alternative methods for
  25307. including the symbol in the DLL's export table such as using a
  25308. '.def' file with an 'EXPORTS' section or, with GNU ld, using the
  25309. '--export-all' linker flag.
  25310. 'dllimport'
  25311. On Microsoft Windows and Symbian OS targets, the 'dllimport'
  25312. attribute causes the compiler to reference a function or variable
  25313. via a global pointer to a pointer that is set up by the DLL
  25314. exporting the symbol. The attribute implies 'extern'. On
  25315. Microsoft Windows targets, the pointer name is formed by combining
  25316. '_imp__' and the function or variable name.
  25317. You can use '__declspec(dllimport)' as a synonym for '__attribute__
  25318. ((dllimport))' for compatibility with other compilers.
  25319. On systems that support the 'visibility' attribute, this attribute
  25320. also implies "default" visibility. It is an error to explicitly
  25321. specify any other visibility.
  25322. Currently, the attribute is ignored for inlined functions. If the
  25323. attribute is applied to a symbol _definition_, an error is
  25324. reported. If a symbol previously declared 'dllimport' is later
  25325. defined, the attribute is ignored in subsequent references, and a
  25326. warning is emitted. The attribute is also overridden by a
  25327. subsequent declaration as 'dllexport'.
  25328. When applied to C++ classes, the attribute marks non-inlined member
  25329. functions and static data members as imports. However, the
  25330. attribute is ignored for virtual methods to allow creation of
  25331. vtables using thunks.
  25332. On the SH Symbian OS target the 'dllimport' attribute also has
  25333. another affect--it can cause the vtable and run-time type
  25334. information for a class to be exported. This happens when the
  25335. class has a dllimported constructor or a non-inline, non-pure
  25336. virtual function and, for either of those two conditions, the class
  25337. also has an inline constructor or destructor and has a key function
  25338. that is defined in the current translation unit.
  25339. For Microsoft Windows targets the use of the 'dllimport' attribute
  25340. on functions is not necessary, but provides a small performance
  25341. benefit by eliminating a thunk in the DLL. The use of the
  25342. 'dllimport' attribute on imported variables can be avoided by
  25343. passing the '--enable-auto-import' switch to the GNU linker. As
  25344. with functions, using the attribute for a variable eliminates a
  25345. thunk in the DLL.
  25346. One drawback to using this attribute is that a pointer to a
  25347. _variable_ marked as 'dllimport' cannot be used as a constant
  25348. address. However, a pointer to a _function_ with the 'dllimport'
  25349. attribute can be used as a constant initializer; in this case, the
  25350. address of a stub function in the import lib is referenced. On
  25351. Microsoft Windows targets, the attribute can be disabled for
  25352. functions by setting the '-mnop-fun-dllimport' flag.
  25353. 
  25354. File: gcc.info, Node: MIPS Function Attributes, Next: MSP430 Function Attributes, Prev: Microsoft Windows Function Attributes, Up: Function Attributes
  25355. 6.31.18 MIPS Function Attributes
  25356. --------------------------------
  25357. These function attributes are supported by the MIPS back end:
  25358. 'interrupt'
  25359. Use this attribute to indicate that the specified function is an
  25360. interrupt handler. The compiler generates function entry and exit
  25361. sequences suitable for use in an interrupt handler when this
  25362. attribute is present. An optional argument is supported for the
  25363. interrupt attribute which allows the interrupt mode to be
  25364. described. By default GCC assumes the external interrupt
  25365. controller (EIC) mode is in use, this can be explicitly set using
  25366. 'eic'. When interrupts are non-masked then the requested Interrupt
  25367. Priority Level (IPL) is copied to the current IPL which has the
  25368. effect of only enabling higher priority interrupts. To use
  25369. vectored interrupt mode use the argument
  25370. 'vector=[sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5]', this will change the
  25371. behavior of the non-masked interrupt support and GCC will arrange
  25372. to mask all interrupts from sw0 up to and including the specified
  25373. interrupt vector.
  25374. You can use the following attributes to modify the behavior of an
  25375. interrupt handler:
  25376. 'use_shadow_register_set'
  25377. Assume that the handler uses a shadow register set, instead of
  25378. the main general-purpose registers. An optional argument
  25379. 'intstack' is supported to indicate that the shadow register
  25380. set contains a valid stack pointer.
  25381. 'keep_interrupts_masked'
  25382. Keep interrupts masked for the whole function. Without this
  25383. attribute, GCC tries to reenable interrupts for as much of the
  25384. function as it can.
  25385. 'use_debug_exception_return'
  25386. Return using the 'deret' instruction. Interrupt handlers that
  25387. don't have this attribute return using 'eret' instead.
  25388. You can use any combination of these attributes, as shown below:
  25389. void __attribute__ ((interrupt)) v0 ();
  25390. void __attribute__ ((interrupt, use_shadow_register_set)) v1 ();
  25391. void __attribute__ ((interrupt, keep_interrupts_masked)) v2 ();
  25392. void __attribute__ ((interrupt, use_debug_exception_return)) v3 ();
  25393. void __attribute__ ((interrupt, use_shadow_register_set,
  25394. keep_interrupts_masked)) v4 ();
  25395. void __attribute__ ((interrupt, use_shadow_register_set,
  25396. use_debug_exception_return)) v5 ();
  25397. void __attribute__ ((interrupt, keep_interrupts_masked,
  25398. use_debug_exception_return)) v6 ();
  25399. void __attribute__ ((interrupt, use_shadow_register_set,
  25400. keep_interrupts_masked,
  25401. use_debug_exception_return)) v7 ();
  25402. void __attribute__ ((interrupt("eic"))) v8 ();
  25403. void __attribute__ ((interrupt("vector=hw3"))) v9 ();
  25404. 'long_call'
  25405. 'short_call'
  25406. 'near'
  25407. 'far'
  25408. These attributes specify how a particular function is called on
  25409. MIPS. The attributes override the '-mlong-calls' (*note MIPS
  25410. Options::) command-line switch. The 'long_call' and 'far'
  25411. attributes are synonyms, and cause the compiler to always call the
  25412. function by first loading its address into a register, and then
  25413. using the contents of that register. The 'short_call' and 'near'
  25414. attributes are synonyms, and have the opposite effect; they specify
  25415. that non-PIC calls should be made using the more efficient 'jal'
  25416. instruction.
  25417. 'mips16'
  25418. 'nomips16'
  25419. On MIPS targets, you can use the 'mips16' and 'nomips16' function
  25420. attributes to locally select or turn off MIPS16 code generation. A
  25421. function with the 'mips16' attribute is emitted as MIPS16 code,
  25422. while MIPS16 code generation is disabled for functions with the
  25423. 'nomips16' attribute. These attributes override the '-mips16' and
  25424. '-mno-mips16' options on the command line (*note MIPS Options::).
  25425. When compiling files containing mixed MIPS16 and non-MIPS16 code,
  25426. the preprocessor symbol '__mips16' reflects the setting on the
  25427. command line, not that within individual functions. Mixed MIPS16
  25428. and non-MIPS16 code may interact badly with some GCC extensions
  25429. such as '__builtin_apply' (*note Constructing Calls::).
  25430. 'micromips, MIPS'
  25431. 'nomicromips, MIPS'
  25432. On MIPS targets, you can use the 'micromips' and 'nomicromips'
  25433. function attributes to locally select or turn off microMIPS code
  25434. generation. A function with the 'micromips' attribute is emitted
  25435. as microMIPS code, while microMIPS code generation is disabled for
  25436. functions with the 'nomicromips' attribute. These attributes
  25437. override the '-mmicromips' and '-mno-micromips' options on the
  25438. command line (*note MIPS Options::).
  25439. When compiling files containing mixed microMIPS and non-microMIPS
  25440. code, the preprocessor symbol '__mips_micromips' reflects the
  25441. setting on the command line, not that within individual functions.
  25442. Mixed microMIPS and non-microMIPS code may interact badly with some
  25443. GCC extensions such as '__builtin_apply' (*note Constructing
  25444. Calls::).
  25445. 'nocompression'
  25446. On MIPS targets, you can use the 'nocompression' function attribute
  25447. to locally turn off MIPS16 and microMIPS code generation. This
  25448. attribute overrides the '-mips16' and '-mmicromips' options on the
  25449. command line (*note MIPS Options::).
  25450. 
  25451. File: gcc.info, Node: MSP430 Function Attributes, Next: NDS32 Function Attributes, Prev: MIPS Function Attributes, Up: Function Attributes
  25452. 6.31.19 MSP430 Function Attributes
  25453. ----------------------------------
  25454. These function attributes are supported by the MSP430 back end:
  25455. 'critical'
  25456. Critical functions disable interrupts upon entry and restore the
  25457. previous interrupt state upon exit. Critical functions cannot also
  25458. have the 'naked' or 'reentrant' attributes. They can have the
  25459. 'interrupt' attribute.
  25460. 'interrupt'
  25461. Use this attribute to indicate that the specified function is an
  25462. interrupt handler. The compiler generates function entry and exit
  25463. sequences suitable for use in an interrupt handler when this
  25464. attribute is present.
  25465. You can provide an argument to the interrupt attribute which
  25466. specifies a name or number. If the argument is a number it
  25467. indicates the slot in the interrupt vector table (0 - 31) to which
  25468. this handler should be assigned. If the argument is a name it is
  25469. treated as a symbolic name for the vector slot. These names should
  25470. match up with appropriate entries in the linker script. By default
  25471. the names 'watchdog' for vector 26, 'nmi' for vector 30 and 'reset'
  25472. for vector 31 are recognized.
  25473. 'naked'
  25474. This attribute allows the compiler to construct the requisite
  25475. function declaration, while allowing the body of the function to be
  25476. assembly code. The specified function will not have
  25477. prologue/epilogue sequences generated by the compiler. Only basic
  25478. 'asm' statements can safely be included in naked functions (*note
  25479. Basic Asm::). While using extended 'asm' or a mixture of basic
  25480. 'asm' and C code may appear to work, they cannot be depended upon
  25481. to work reliably and are not supported.
  25482. 'reentrant'
  25483. Reentrant functions disable interrupts upon entry and enable them
  25484. upon exit. Reentrant functions cannot also have the 'naked' or
  25485. 'critical' attributes. They can have the 'interrupt' attribute.
  25486. 'wakeup'
  25487. This attribute only applies to interrupt functions. It is silently
  25488. ignored if applied to a non-interrupt function. A wakeup interrupt
  25489. function will rouse the processor from any low-power state that it
  25490. might be in when the function exits.
  25491. 'lower'
  25492. 'upper'
  25493. 'either'
  25494. On the MSP430 target these attributes can be used to specify
  25495. whether the function or variable should be placed into low memory,
  25496. high memory, or the placement should be left to the linker to
  25497. decide. The attributes are only significant if compiling for the
  25498. MSP430X architecture.
  25499. The attributes work in conjunction with a linker script that has
  25500. been augmented to specify where to place sections with a '.lower'
  25501. and a '.upper' prefix. So, for example, as well as placing the
  25502. '.data' section, the script also specifies the placement of a
  25503. '.lower.data' and a '.upper.data' section. The intention is that
  25504. 'lower' sections are placed into a small but easier to access
  25505. memory region and the upper sections are placed into a larger, but
  25506. slower to access, region.
  25507. The 'either' attribute is special. It tells the linker to place
  25508. the object into the corresponding 'lower' section if there is room
  25509. for it. If there is insufficient room then the object is placed
  25510. into the corresponding 'upper' section instead. Note that the
  25511. placement algorithm is not very sophisticated. It does not attempt
  25512. to find an optimal packing of the 'lower' sections. It just makes
  25513. one pass over the objects and does the best that it can. Using the
  25514. '-ffunction-sections' and '-fdata-sections' command-line options
  25515. can help the packing, however, since they produce smaller, easier
  25516. to pack regions.
  25517. 
  25518. File: gcc.info, Node: NDS32 Function Attributes, Next: Nios II Function Attributes, Prev: MSP430 Function Attributes, Up: Function Attributes
  25519. 6.31.20 NDS32 Function Attributes
  25520. ---------------------------------
  25521. These function attributes are supported by the NDS32 back end:
  25522. 'exception'
  25523. Use this attribute on the NDS32 target to indicate that the
  25524. specified function is an exception handler. The compiler will
  25525. generate corresponding sections for use in an exception handler.
  25526. 'interrupt'
  25527. On NDS32 target, this attribute indicates that the specified
  25528. function is an interrupt handler. The compiler generates
  25529. corresponding sections for use in an interrupt handler. You can
  25530. use the following attributes to modify the behavior:
  25531. 'nested'
  25532. This interrupt service routine is interruptible.
  25533. 'not_nested'
  25534. This interrupt service routine is not interruptible.
  25535. 'nested_ready'
  25536. This interrupt service routine is interruptible after
  25537. 'PSW.GIE' (global interrupt enable) is set. This allows
  25538. interrupt service routine to finish some short critical code
  25539. before enabling interrupts.
  25540. 'save_all'
  25541. The system will help save all registers into stack before
  25542. entering interrupt handler.
  25543. 'partial_save'
  25544. The system will help save caller registers into stack before
  25545. entering interrupt handler.
  25546. 'naked'
  25547. This attribute allows the compiler to construct the requisite
  25548. function declaration, while allowing the body of the function to be
  25549. assembly code. The specified function will not have
  25550. prologue/epilogue sequences generated by the compiler. Only basic
  25551. 'asm' statements can safely be included in naked functions (*note
  25552. Basic Asm::). While using extended 'asm' or a mixture of basic
  25553. 'asm' and C code may appear to work, they cannot be depended upon
  25554. to work reliably and are not supported.
  25555. 'reset'
  25556. Use this attribute on the NDS32 target to indicate that the
  25557. specified function is a reset handler. The compiler will generate
  25558. corresponding sections for use in a reset handler. You can use the
  25559. following attributes to provide extra exception handling:
  25560. 'nmi'
  25561. Provide a user-defined function to handle NMI exception.
  25562. 'warm'
  25563. Provide a user-defined function to handle warm reset
  25564. exception.
  25565. 
  25566. File: gcc.info, Node: Nios II Function Attributes, Next: Nvidia PTX Function Attributes, Prev: NDS32 Function Attributes, Up: Function Attributes
  25567. 6.31.21 Nios II Function Attributes
  25568. -----------------------------------
  25569. These function attributes are supported by the Nios II back end:
  25570. 'target (OPTIONS)'
  25571. As discussed in *note Common Function Attributes::, this attribute
  25572. allows specification of target-specific compilation options.
  25573. When compiling for Nios II, the following options are allowed:
  25574. 'custom-INSN=N'
  25575. 'no-custom-INSN'
  25576. Each 'custom-INSN=N' attribute locally enables use of a custom
  25577. instruction with encoding N when generating code that uses
  25578. INSN. Similarly, 'no-custom-INSN' locally inhibits use of the
  25579. custom instruction INSN. These target attributes correspond
  25580. to the '-mcustom-INSN=N' and '-mno-custom-INSN' command-line
  25581. options, and support the same set of INSN keywords. *Note
  25582. Nios II Options::, for more information.
  25583. 'custom-fpu-cfg=NAME'
  25584. This attribute corresponds to the '-mcustom-fpu-cfg=NAME'
  25585. command-line option, to select a predefined set of custom
  25586. instructions named NAME. *Note Nios II Options::, for more
  25587. information.
  25588. 
  25589. File: gcc.info, Node: Nvidia PTX Function Attributes, Next: PowerPC Function Attributes, Prev: Nios II Function Attributes, Up: Function Attributes
  25590. 6.31.22 Nvidia PTX Function Attributes
  25591. --------------------------------------
  25592. These function attributes are supported by the Nvidia PTX back end:
  25593. 'kernel'
  25594. This attribute indicates that the corresponding function should be
  25595. compiled as a kernel function, which can be invoked from the host
  25596. via the CUDA RT library. By default functions are only callable
  25597. only from other PTX functions.
  25598. Kernel functions must have 'void' return type.
  25599. 
  25600. File: gcc.info, Node: PowerPC Function Attributes, Next: RISC-V Function Attributes, Prev: Nvidia PTX Function Attributes, Up: Function Attributes
  25601. 6.31.23 PowerPC Function Attributes
  25602. -----------------------------------
  25603. These function attributes are supported by the PowerPC back end:
  25604. 'longcall'
  25605. 'shortcall'
  25606. The 'longcall' attribute indicates that the function might be far
  25607. away from the call site and require a different (more expensive)
  25608. calling sequence. The 'shortcall' attribute indicates that the
  25609. function is always close enough for the shorter calling sequence to
  25610. be used. These attributes override both the '-mlongcall' switch
  25611. and the '#pragma longcall' setting.
  25612. *Note RS/6000 and PowerPC Options::, for more information on
  25613. whether long calls are necessary.
  25614. 'target (OPTIONS)'
  25615. As discussed in *note Common Function Attributes::, this attribute
  25616. allows specification of target-specific compilation options.
  25617. On the PowerPC, the following options are allowed:
  25618. 'altivec'
  25619. 'no-altivec'
  25620. Generate code that uses (does not use) AltiVec instructions.
  25621. In 32-bit code, you cannot enable AltiVec instructions unless
  25622. '-mabi=altivec' is used on the command line.
  25623. 'cmpb'
  25624. 'no-cmpb'
  25625. Generate code that uses (does not use) the compare bytes
  25626. instruction implemented on the POWER6 processor and other
  25627. processors that support the PowerPC V2.05 architecture.
  25628. 'dlmzb'
  25629. 'no-dlmzb'
  25630. Generate code that uses (does not use) the string-search
  25631. 'dlmzb' instruction on the IBM 405, 440, 464 and 476
  25632. processors. This instruction is generated by default when
  25633. targeting those processors.
  25634. 'fprnd'
  25635. 'no-fprnd'
  25636. Generate code that uses (does not use) the FP round to integer
  25637. instructions implemented on the POWER5+ processor and other
  25638. processors that support the PowerPC V2.03 architecture.
  25639. 'hard-dfp'
  25640. 'no-hard-dfp'
  25641. Generate code that uses (does not use) the decimal
  25642. floating-point instructions implemented on some POWER
  25643. processors.
  25644. 'isel'
  25645. 'no-isel'
  25646. Generate code that uses (does not use) ISEL instruction.
  25647. 'mfcrf'
  25648. 'no-mfcrf'
  25649. Generate code that uses (does not use) the move from condition
  25650. register field instruction implemented on the POWER4 processor
  25651. and other processors that support the PowerPC V2.01
  25652. architecture.
  25653. 'mfpgpr'
  25654. 'no-mfpgpr'
  25655. Generate code that uses (does not use) the FP move to/from
  25656. general purpose register instructions implemented on the
  25657. POWER6X processor and other processors that support the
  25658. extended PowerPC V2.05 architecture.
  25659. 'mulhw'
  25660. 'no-mulhw'
  25661. Generate code that uses (does not use) the half-word multiply
  25662. and multiply-accumulate instructions on the IBM 405, 440, 464
  25663. and 476 processors. These instructions are generated by
  25664. default when targeting those processors.
  25665. 'multiple'
  25666. 'no-multiple'
  25667. Generate code that uses (does not use) the load multiple word
  25668. instructions and the store multiple word instructions.
  25669. 'update'
  25670. 'no-update'
  25671. Generate code that uses (does not use) the load or store
  25672. instructions that update the base register to the address of
  25673. the calculated memory location.
  25674. 'popcntb'
  25675. 'no-popcntb'
  25676. Generate code that uses (does not use) the popcount and
  25677. double-precision FP reciprocal estimate instruction
  25678. implemented on the POWER5 processor and other processors that
  25679. support the PowerPC V2.02 architecture.
  25680. 'popcntd'
  25681. 'no-popcntd'
  25682. Generate code that uses (does not use) the popcount
  25683. instruction implemented on the POWER7 processor and other
  25684. processors that support the PowerPC V2.06 architecture.
  25685. 'powerpc-gfxopt'
  25686. 'no-powerpc-gfxopt'
  25687. Generate code that uses (does not use) the optional PowerPC
  25688. architecture instructions in the Graphics group, including
  25689. floating-point select.
  25690. 'powerpc-gpopt'
  25691. 'no-powerpc-gpopt'
  25692. Generate code that uses (does not use) the optional PowerPC
  25693. architecture instructions in the General Purpose group,
  25694. including floating-point square root.
  25695. 'recip-precision'
  25696. 'no-recip-precision'
  25697. Assume (do not assume) that the reciprocal estimate
  25698. instructions provide higher-precision estimates than is
  25699. mandated by the PowerPC ABI.
  25700. 'string'
  25701. 'no-string'
  25702. Generate code that uses (does not use) the load string
  25703. instructions and the store string word instructions to save
  25704. multiple registers and do small block moves.
  25705. 'vsx'
  25706. 'no-vsx'
  25707. Generate code that uses (does not use) vector/scalar (VSX)
  25708. instructions, and also enable the use of built-in functions
  25709. that allow more direct access to the VSX instruction set. In
  25710. 32-bit code, you cannot enable VSX or AltiVec instructions
  25711. unless '-mabi=altivec' is used on the command line.
  25712. 'friz'
  25713. 'no-friz'
  25714. Generate (do not generate) the 'friz' instruction when the
  25715. '-funsafe-math-optimizations' option is used to optimize
  25716. rounding a floating-point value to 64-bit integer and back to
  25717. floating point. The 'friz' instruction does not return the
  25718. same value if the floating-point number is too large to fit in
  25719. an integer.
  25720. 'avoid-indexed-addresses'
  25721. 'no-avoid-indexed-addresses'
  25722. Generate code that tries to avoid (not avoid) the use of
  25723. indexed load or store instructions.
  25724. 'paired'
  25725. 'no-paired'
  25726. Generate code that uses (does not use) the generation of
  25727. PAIRED simd instructions.
  25728. 'longcall'
  25729. 'no-longcall'
  25730. Generate code that assumes (does not assume) that all calls
  25731. are far away so that a longer more expensive calling sequence
  25732. is required.
  25733. 'cpu=CPU'
  25734. Specify the architecture to generate code for when compiling
  25735. the function. If you select the 'target("cpu=power7")'
  25736. attribute when generating 32-bit code, VSX and AltiVec
  25737. instructions are not generated unless you use the
  25738. '-mabi=altivec' option on the command line.
  25739. 'tune=TUNE'
  25740. Specify the architecture to tune for when compiling the
  25741. function. If you do not specify the 'target("tune=TUNE")'
  25742. attribute and you do specify the 'target("cpu=CPU")'
  25743. attribute, compilation tunes for the CPU architecture, and not
  25744. the default tuning specified on the command line.
  25745. On the PowerPC, the inliner does not inline a function that has
  25746. different target options than the caller, unless the callee has a
  25747. subset of the target options of the caller.
  25748. 
  25749. File: gcc.info, Node: RISC-V Function Attributes, Next: RL78 Function Attributes, Prev: PowerPC Function Attributes, Up: Function Attributes
  25750. 6.31.24 RISC-V Function Attributes
  25751. ----------------------------------
  25752. These function attributes are supported by the RISC-V back end:
  25753. 'naked'
  25754. This attribute allows the compiler to construct the requisite
  25755. function declaration, while allowing the body of the function to be
  25756. assembly code. The specified function will not have
  25757. prologue/epilogue sequences generated by the compiler. Only basic
  25758. 'asm' statements can safely be included in naked functions (*note
  25759. Basic Asm::). While using extended 'asm' or a mixture of basic
  25760. 'asm' and C code may appear to work, they cannot be depended upon
  25761. to work reliably and are not supported.
  25762. 'interrupt'
  25763. Use this attribute to indicate that the specified function is an
  25764. interrupt handler. The compiler generates function entry and exit
  25765. sequences suitable for use in an interrupt handler when this
  25766. attribute is present.
  25767. You can specify the kind of interrupt to be handled by adding an
  25768. optional parameter to the interrupt attribute like this:
  25769. void f (void) __attribute__ ((interrupt ("user")));
  25770. Permissible values for this parameter are 'user', 'supervisor', and
  25771. 'machine'. If there is no parameter, then it defaults to
  25772. 'machine'.
  25773. You can specify an SiFive CLIC preemptible interrupt handler by
  25774. adding an optional parameter to the interrupt attribute like this:
  25775. void f (void) __attribute__ ((interrupt ("SiFive-CLIC-preemptible")));
  25776. In this type of interrupt handler, in the prologue, the mepc and
  25777. mcause registers are saved, and interrupts are enabled. In the
  25778. epilogue, interrupts are disabled, and the mepc and mcause
  25779. registers are restored. This type of interrupt handler must be
  25780. 'machine' mode, and must not use the frame pointer.
  25781. You can specify an SiFive CLIC stack swapping interrupt handler by
  25782. adding an optional parameter to the interrupt attribute like this:
  25783. void f (void) __attribute__ ((interrupt ("SiFive-CLIC-stack-swap")));
  25784. In this type of interrupt handler, the stack pointer will be
  25785. swapped with the 'mscratch' register in the prologue before the
  25786. first use of the stack pointer, and in the epilogue after the last
  25787. use of the stack pointer. This type of interrupt handler must be
  25788. 'machine' mode.
  25789. 
  25790. File: gcc.info, Node: RL78 Function Attributes, Next: RX Function Attributes, Prev: RISC-V Function Attributes, Up: Function Attributes
  25791. 6.31.25 RL78 Function Attributes
  25792. --------------------------------
  25793. These function attributes are supported by the RL78 back end:
  25794. 'interrupt'
  25795. 'brk_interrupt'
  25796. These attributes indicate that the specified function is an
  25797. interrupt handler. The compiler generates function entry and exit
  25798. sequences suitable for use in an interrupt handler when this
  25799. attribute is present.
  25800. Use 'brk_interrupt' instead of 'interrupt' for handlers intended to
  25801. be used with the 'BRK' opcode (i.e. those that must end with 'RETB'
  25802. instead of 'RETI').
  25803. 'naked'
  25804. This attribute allows the compiler to construct the requisite
  25805. function declaration, while allowing the body of the function to be
  25806. assembly code. The specified function will not have
  25807. prologue/epilogue sequences generated by the compiler. Only basic
  25808. 'asm' statements can safely be included in naked functions (*note
  25809. Basic Asm::). While using extended 'asm' or a mixture of basic
  25810. 'asm' and C code may appear to work, they cannot be depended upon
  25811. to work reliably and are not supported.
  25812. 
  25813. File: gcc.info, Node: RX Function Attributes, Next: S/390 Function Attributes, Prev: RL78 Function Attributes, Up: Function Attributes
  25814. 6.31.26 RX Function Attributes
  25815. ------------------------------
  25816. These function attributes are supported by the RX back end:
  25817. 'fast_interrupt'
  25818. Use this attribute on the RX port to indicate that the specified
  25819. function is a fast interrupt handler. This is just like the
  25820. 'interrupt' attribute, except that 'freit' is used to return
  25821. instead of 'reit'.
  25822. 'interrupt'
  25823. Use this attribute to indicate that the specified function is an
  25824. interrupt handler. The compiler generates function entry and exit
  25825. sequences suitable for use in an interrupt handler when this
  25826. attribute is present.
  25827. On RX and RL78 targets, you may specify one or more vector numbers
  25828. as arguments to the attribute, as well as naming an alternate table
  25829. name. Parameters are handled sequentially, so one handler can be
  25830. assigned to multiple entries in multiple tables. One may also pass
  25831. the magic string '"$default"' which causes the function to be used
  25832. for any unfilled slots in the current table.
  25833. This example shows a simple assignment of a function to one vector
  25834. in the default table (note that preprocessor macros may be used for
  25835. chip-specific symbolic vector names):
  25836. void __attribute__ ((interrupt (5))) txd1_handler ();
  25837. This example assigns a function to two slots in the default table
  25838. (using preprocessor macros defined elsewhere) and makes it the
  25839. default for the 'dct' table:
  25840. void __attribute__ ((interrupt (RXD1_VECT,RXD2_VECT,"dct","$default")))
  25841. txd1_handler ();
  25842. 'naked'
  25843. This attribute allows the compiler to construct the requisite
  25844. function declaration, while allowing the body of the function to be
  25845. assembly code. The specified function will not have
  25846. prologue/epilogue sequences generated by the compiler. Only basic
  25847. 'asm' statements can safely be included in naked functions (*note
  25848. Basic Asm::). While using extended 'asm' or a mixture of basic
  25849. 'asm' and C code may appear to work, they cannot be depended upon
  25850. to work reliably and are not supported.
  25851. 'vector'
  25852. This RX attribute is similar to the 'interrupt' attribute,
  25853. including its parameters, but does not make the function an
  25854. interrupt-handler type function (i.e. it retains the normal C
  25855. function calling ABI). See the 'interrupt' attribute for a
  25856. description of its arguments.
  25857. 
  25858. File: gcc.info, Node: S/390 Function Attributes, Next: SH Function Attributes, Prev: RX Function Attributes, Up: Function Attributes
  25859. 6.31.27 S/390 Function Attributes
  25860. ---------------------------------
  25861. These function attributes are supported on the S/390:
  25862. 'hotpatch (HALFWORDS-BEFORE-FUNCTION-LABEL,HALFWORDS-AFTER-FUNCTION-LABEL)'
  25863. On S/390 System z targets, you can use this function attribute to
  25864. make GCC generate a "hot-patching" function prologue. If the
  25865. '-mhotpatch=' command-line option is used at the same time, the
  25866. 'hotpatch' attribute takes precedence. The first of the two
  25867. arguments specifies the number of halfwords to be added before the
  25868. function label. A second argument can be used to specify the
  25869. number of halfwords to be added after the function label. For both
  25870. arguments the maximum allowed value is 1000000.
  25871. If both arguments are zero, hotpatching is disabled.
  25872. 'target (OPTIONS)'
  25873. As discussed in *note Common Function Attributes::, this attribute
  25874. allows specification of target-specific compilation options.
  25875. On S/390, the following options are supported:
  25876. 'arch='
  25877. 'tune='
  25878. 'stack-guard='
  25879. 'stack-size='
  25880. 'branch-cost='
  25881. 'warn-framesize='
  25882. 'backchain'
  25883. 'no-backchain'
  25884. 'hard-dfp'
  25885. 'no-hard-dfp'
  25886. 'hard-float'
  25887. 'soft-float'
  25888. 'htm'
  25889. 'no-htm'
  25890. 'vx'
  25891. 'no-vx'
  25892. 'packed-stack'
  25893. 'no-packed-stack'
  25894. 'small-exec'
  25895. 'no-small-exec'
  25896. 'mvcle'
  25897. 'no-mvcle'
  25898. 'warn-dynamicstack'
  25899. 'no-warn-dynamicstack'
  25900. The options work exactly like the S/390 specific command line
  25901. options (without the prefix '-m') except that they do not change
  25902. any feature macros. For example,
  25903. target("no-vx")
  25904. does not undefine the '__VEC__' macro.
  25905. 
  25906. File: gcc.info, Node: SH Function Attributes, Next: SPU Function Attributes, Prev: S/390 Function Attributes, Up: Function Attributes
  25907. 6.31.28 SH Function Attributes
  25908. ------------------------------
  25909. These function attributes are supported on the SH family of processors:
  25910. 'function_vector'
  25911. On SH2A targets, this attribute declares a function to be called
  25912. using the TBR relative addressing mode. The argument to this
  25913. attribute is the entry number of the same function in a vector
  25914. table containing all the TBR relative addressable functions. For
  25915. correct operation the TBR must be setup accordingly to point to the
  25916. start of the vector table before any functions with this attribute
  25917. are invoked. Usually a good place to do the initialization is the
  25918. startup routine. The TBR relative vector table can have at max 256
  25919. function entries. The jumps to these functions are generated using
  25920. a SH2A specific, non delayed branch instruction JSR/N @(disp8,TBR).
  25921. You must use GAS and GLD from GNU binutils version 2.7 or later for
  25922. this attribute to work correctly.
  25923. In an application, for a function being called once, this attribute
  25924. saves at least 8 bytes of code; and if other successive calls are
  25925. being made to the same function, it saves 2 bytes of code per each
  25926. of these calls.
  25927. 'interrupt_handler'
  25928. Use this attribute to indicate that the specified function is an
  25929. interrupt handler. The compiler generates function entry and exit
  25930. sequences suitable for use in an interrupt handler when this
  25931. attribute is present.
  25932. 'nosave_low_regs'
  25933. Use this attribute on SH targets to indicate that an
  25934. 'interrupt_handler' function should not save and restore registers
  25935. R0..R7. This can be used on SH3* and SH4* targets that have a
  25936. second R0..R7 register bank for non-reentrant interrupt handlers.
  25937. 'renesas'
  25938. On SH targets this attribute specifies that the function or struct
  25939. follows the Renesas ABI.
  25940. 'resbank'
  25941. On the SH2A target, this attribute enables the high-speed register
  25942. saving and restoration using a register bank for
  25943. 'interrupt_handler' routines. Saving to the bank is performed
  25944. automatically after the CPU accepts an interrupt that uses a
  25945. register bank.
  25946. The nineteen 32-bit registers comprising general register R0 to
  25947. R14, control register GBR, and system registers MACH, MACL, and PR
  25948. and the vector table address offset are saved into a register bank.
  25949. Register banks are stacked in first-in last-out (FILO) sequence.
  25950. Restoration from the bank is executed by issuing a RESBANK
  25951. instruction.
  25952. 'sp_switch'
  25953. Use this attribute on the SH to indicate an 'interrupt_handler'
  25954. function should switch to an alternate stack. It expects a string
  25955. argument that names a global variable holding the address of the
  25956. alternate stack.
  25957. void *alt_stack;
  25958. void f () __attribute__ ((interrupt_handler,
  25959. sp_switch ("alt_stack")));
  25960. 'trap_exit'
  25961. Use this attribute on the SH for an 'interrupt_handler' to return
  25962. using 'trapa' instead of 'rte'. This attribute expects an integer
  25963. argument specifying the trap number to be used.
  25964. 'trapa_handler'
  25965. On SH targets this function attribute is similar to
  25966. 'interrupt_handler' but it does not save and restore all registers.
  25967. 
  25968. File: gcc.info, Node: SPU Function Attributes, Next: Symbian OS Function Attributes, Prev: SH Function Attributes, Up: Function Attributes
  25969. 6.31.29 SPU Function Attributes
  25970. -------------------------------
  25971. These function attributes are supported by the SPU back end:
  25972. 'naked'
  25973. This attribute allows the compiler to construct the requisite
  25974. function declaration, while allowing the body of the function to be
  25975. assembly code. The specified function will not have
  25976. prologue/epilogue sequences generated by the compiler. Only basic
  25977. 'asm' statements can safely be included in naked functions (*note
  25978. Basic Asm::). While using extended 'asm' or a mixture of basic
  25979. 'asm' and C code may appear to work, they cannot be depended upon
  25980. to work reliably and are not supported.
  25981. 
  25982. File: gcc.info, Node: Symbian OS Function Attributes, Next: V850 Function Attributes, Prev: SPU Function Attributes, Up: Function Attributes
  25983. 6.31.30 Symbian OS Function Attributes
  25984. --------------------------------------
  25985. *Note Microsoft Windows Function Attributes::, for discussion of the
  25986. 'dllexport' and 'dllimport' attributes.
  25987. 
  25988. File: gcc.info, Node: V850 Function Attributes, Next: Visium Function Attributes, Prev: Symbian OS Function Attributes, Up: Function Attributes
  25989. 6.31.31 V850 Function Attributes
  25990. --------------------------------
  25991. The V850 back end supports these function attributes:
  25992. 'interrupt'
  25993. 'interrupt_handler'
  25994. Use these attributes to indicate that the specified function is an
  25995. interrupt handler. The compiler generates function entry and exit
  25996. sequences suitable for use in an interrupt handler when either
  25997. attribute is present.
  25998. 
  25999. File: gcc.info, Node: Visium Function Attributes, Next: x86 Function Attributes, Prev: V850 Function Attributes, Up: Function Attributes
  26000. 6.31.32 Visium Function Attributes
  26001. ----------------------------------
  26002. These function attributes are supported by the Visium back end:
  26003. 'interrupt'
  26004. Use this attribute to indicate that the specified function is an
  26005. interrupt handler. The compiler generates function entry and exit
  26006. sequences suitable for use in an interrupt handler when this
  26007. attribute is present.
  26008. 
  26009. File: gcc.info, Node: x86 Function Attributes, Next: Xstormy16 Function Attributes, Prev: Visium Function Attributes, Up: Function Attributes
  26010. 6.31.33 x86 Function Attributes
  26011. -------------------------------
  26012. These function attributes are supported by the x86 back end:
  26013. 'cdecl'
  26014. On the x86-32 targets, the 'cdecl' attribute causes the compiler to
  26015. assume that the calling function pops off the stack space used to
  26016. pass arguments. This is useful to override the effects of the
  26017. '-mrtd' switch.
  26018. 'fastcall'
  26019. On x86-32 targets, the 'fastcall' attribute causes the compiler to
  26020. pass the first argument (if of integral type) in the register ECX
  26021. and the second argument (if of integral type) in the register EDX.
  26022. Subsequent and other typed arguments are passed on the stack. The
  26023. called function pops the arguments off the stack. If the number of
  26024. arguments is variable all arguments are pushed on the stack.
  26025. 'thiscall'
  26026. On x86-32 targets, the 'thiscall' attribute causes the compiler to
  26027. pass the first argument (if of integral type) in the register ECX.
  26028. Subsequent and other typed arguments are passed on the stack. The
  26029. called function pops the arguments off the stack. If the number of
  26030. arguments is variable all arguments are pushed on the stack. The
  26031. 'thiscall' attribute is intended for C++ non-static member
  26032. functions. As a GCC extension, this calling convention can be used
  26033. for C functions and for static member methods.
  26034. 'ms_abi'
  26035. 'sysv_abi'
  26036. On 32-bit and 64-bit x86 targets, you can use an ABI attribute to
  26037. indicate which calling convention should be used for a function.
  26038. The 'ms_abi' attribute tells the compiler to use the Microsoft ABI,
  26039. while the 'sysv_abi' attribute tells the compiler to use the ABI
  26040. used on GNU/Linux and other systems. The default is to use the
  26041. Microsoft ABI when targeting Windows. On all other systems, the
  26042. default is the x86/AMD ABI.
  26043. Note, the 'ms_abi' attribute for Microsoft Windows 64-bit targets
  26044. currently requires the '-maccumulate-outgoing-args' option.
  26045. 'callee_pop_aggregate_return (NUMBER)'
  26046. On x86-32 targets, you can use this attribute to control how
  26047. aggregates are returned in memory. If the caller is responsible
  26048. for popping the hidden pointer together with the rest of the
  26049. arguments, specify NUMBER equal to zero. If callee is responsible
  26050. for popping the hidden pointer, specify NUMBER equal to one.
  26051. The default x86-32 ABI assumes that the callee pops the stack for
  26052. hidden pointer. However, on x86-32 Microsoft Windows targets, the
  26053. compiler assumes that the caller pops the stack for hidden pointer.
  26054. 'ms_hook_prologue'
  26055. On 32-bit and 64-bit x86 targets, you can use this function
  26056. attribute to make GCC generate the "hot-patching" function prologue
  26057. used in Win32 API functions in Microsoft Windows XP Service Pack 2
  26058. and newer.
  26059. 'naked'
  26060. This attribute allows the compiler to construct the requisite
  26061. function declaration, while allowing the body of the function to be
  26062. assembly code. The specified function will not have
  26063. prologue/epilogue sequences generated by the compiler. Only basic
  26064. 'asm' statements can safely be included in naked functions (*note
  26065. Basic Asm::). While using extended 'asm' or a mixture of basic
  26066. 'asm' and C code may appear to work, they cannot be depended upon
  26067. to work reliably and are not supported.
  26068. 'regparm (NUMBER)'
  26069. On x86-32 targets, the 'regparm' attribute causes the compiler to
  26070. pass arguments number one to NUMBER if they are of integral type in
  26071. registers EAX, EDX, and ECX instead of on the stack. Functions
  26072. that take a variable number of arguments continue to be passed all
  26073. of their arguments on the stack.
  26074. Beware that on some ELF systems this attribute is unsuitable for
  26075. global functions in shared libraries with lazy binding (which is
  26076. the default). Lazy binding sends the first call via resolving code
  26077. in the loader, which might assume EAX, EDX and ECX can be
  26078. clobbered, as per the standard calling conventions. Solaris 8 is
  26079. affected by this. Systems with the GNU C Library version 2.1 or
  26080. higher and FreeBSD are believed to be safe since the loaders there
  26081. save EAX, EDX and ECX. (Lazy binding can be disabled with the
  26082. linker or the loader if desired, to avoid the problem.)
  26083. 'sseregparm'
  26084. On x86-32 targets with SSE support, the 'sseregparm' attribute
  26085. causes the compiler to pass up to 3 floating-point arguments in SSE
  26086. registers instead of on the stack. Functions that take a variable
  26087. number of arguments continue to pass all of their floating-point
  26088. arguments on the stack.
  26089. 'force_align_arg_pointer'
  26090. On x86 targets, the 'force_align_arg_pointer' attribute may be
  26091. applied to individual function definitions, generating an alternate
  26092. prologue and epilogue that realigns the run-time stack if
  26093. necessary. This supports mixing legacy codes that run with a
  26094. 4-byte aligned stack with modern codes that keep a 16-byte stack
  26095. for SSE compatibility.
  26096. 'stdcall'
  26097. On x86-32 targets, the 'stdcall' attribute causes the compiler to
  26098. assume that the called function pops off the stack space used to
  26099. pass arguments, unless it takes a variable number of arguments.
  26100. 'no_caller_saved_registers'
  26101. Use this attribute to indicate that the specified function has no
  26102. caller-saved registers. That is, all registers are callee-saved.
  26103. For example, this attribute can be used for a function called from
  26104. an interrupt handler. The compiler generates proper function entry
  26105. and exit sequences to save and restore any modified registers,
  26106. except for the EFLAGS register. Since GCC doesn't preserve MPX,
  26107. SSE, MMX nor x87 states, the GCC option '-mgeneral-regs-only'
  26108. should be used to compile functions with
  26109. 'no_caller_saved_registers' attribute.
  26110. 'interrupt'
  26111. Use this attribute to indicate that the specified function is an
  26112. interrupt handler or an exception handler (depending on parameters
  26113. passed to the function, explained further). The compiler generates
  26114. function entry and exit sequences suitable for use in an interrupt
  26115. handler when this attribute is present. The 'IRET' instruction,
  26116. instead of the 'RET' instruction, is used to return from interrupt
  26117. handlers. All registers, except for the EFLAGS register which is
  26118. restored by the 'IRET' instruction, are preserved by the compiler.
  26119. Since GCC doesn't preserve MPX, SSE, MMX nor x87 states, the GCC
  26120. option '-mgeneral-regs-only' should be used to compile interrupt
  26121. and exception handlers.
  26122. Any interruptible-without-stack-switch code must be compiled with
  26123. '-mno-red-zone' since interrupt handlers can and will, because of
  26124. the hardware design, touch the red zone.
  26125. An interrupt handler must be declared with a mandatory pointer
  26126. argument:
  26127. struct interrupt_frame;
  26128. __attribute__ ((interrupt))
  26129. void
  26130. f (struct interrupt_frame *frame)
  26131. {
  26132. }
  26133. and you must define 'struct interrupt_frame' as described in the
  26134. processor's manual.
  26135. Exception handlers differ from interrupt handlers because the
  26136. system pushes an error code on the stack. An exception handler
  26137. declaration is similar to that for an interrupt handler, but with a
  26138. different mandatory function signature. The compiler arranges to
  26139. pop the error code off the stack before the 'IRET' instruction.
  26140. #ifdef __x86_64__
  26141. typedef unsigned long long int uword_t;
  26142. #else
  26143. typedef unsigned int uword_t;
  26144. #endif
  26145. struct interrupt_frame;
  26146. __attribute__ ((interrupt))
  26147. void
  26148. f (struct interrupt_frame *frame, uword_t error_code)
  26149. {
  26150. ...
  26151. }
  26152. Exception handlers should only be used for exceptions that push an
  26153. error code; you should use an interrupt handler in other cases.
  26154. The system will crash if the wrong kind of handler is used.
  26155. 'target (OPTIONS)'
  26156. As discussed in *note Common Function Attributes::, this attribute
  26157. allows specification of target-specific compilation options.
  26158. On the x86, the following options are allowed:
  26159. '3dnow'
  26160. 'no-3dnow'
  26161. Enable/disable the generation of the 3DNow! instructions.
  26162. '3dnowa'
  26163. 'no-3dnowa'
  26164. Enable/disable the generation of the enhanced 3DNow!
  26165. instructions.
  26166. 'abm'
  26167. 'no-abm'
  26168. Enable/disable the generation of the advanced bit
  26169. instructions.
  26170. 'adx'
  26171. 'no-adx'
  26172. Enable/disable the generation of the ADX instructions.
  26173. 'aes'
  26174. 'no-aes'
  26175. Enable/disable the generation of the AES instructions.
  26176. 'avx'
  26177. 'no-avx'
  26178. Enable/disable the generation of the AVX instructions.
  26179. 'avx2'
  26180. 'no-avx2'
  26181. Enable/disable the generation of the AVX2 instructions.
  26182. 'avx5124fmaps'
  26183. 'no-avx5124fmaps'
  26184. Enable/disable the generation of the AVX5124FMAPS
  26185. instructions.
  26186. 'avx5124vnniw'
  26187. 'no-avx5124vnniw'
  26188. Enable/disable the generation of the AVX5124VNNIW
  26189. instructions.
  26190. 'avx512bitalg'
  26191. 'no-avx512bitalg'
  26192. Enable/disable the generation of the AVX512BITALG
  26193. instructions.
  26194. 'avx512bw'
  26195. 'no-avx512bw'
  26196. Enable/disable the generation of the AVX512BW instructions.
  26197. 'avx512cd'
  26198. 'no-avx512cd'
  26199. Enable/disable the generation of the AVX512CD instructions.
  26200. 'avx512dq'
  26201. 'no-avx512dq'
  26202. Enable/disable the generation of the AVX512DQ instructions.
  26203. 'avx512er'
  26204. 'no-avx512er'
  26205. Enable/disable the generation of the AVX512ER instructions.
  26206. 'avx512f'
  26207. 'no-avx512f'
  26208. Enable/disable the generation of the AVX512F instructions.
  26209. 'avx512ifma'
  26210. 'no-avx512ifma'
  26211. Enable/disable the generation of the AVX512IFMA instructions.
  26212. 'avx512pf'
  26213. 'no-avx512pf'
  26214. Enable/disable the generation of the AVX512PF instructions.
  26215. 'avx512vbmi'
  26216. 'no-avx512vbmi'
  26217. Enable/disable the generation of the AVX512VBMI instructions.
  26218. 'avx512vbmi2'
  26219. 'no-avx512vbmi2'
  26220. Enable/disable the generation of the AVX512VBMI2 instructions.
  26221. 'avx512vl'
  26222. 'no-avx512vl'
  26223. Enable/disable the generation of the AVX512VL instructions.
  26224. 'avx512vnni'
  26225. 'no-avx512vnni'
  26226. Enable/disable the generation of the AVX512VNNI instructions.
  26227. 'avx512vpopcntdq'
  26228. 'no-avx512vpopcntdq'
  26229. Enable/disable the generation of the AVX512VPOPCNTDQ
  26230. instructions.
  26231. 'bmi'
  26232. 'no-bmi'
  26233. Enable/disable the generation of the BMI instructions.
  26234. 'bmi2'
  26235. 'no-bmi2'
  26236. Enable/disable the generation of the BMI2 instructions.
  26237. 'clflushopt'
  26238. 'no-clflushopt'
  26239. Enable/disable the generation of the CLFLUSHOPT instructions.
  26240. 'clwb'
  26241. 'no-clwb'
  26242. Enable/disable the generation of the CLWB instructions.
  26243. 'clzero'
  26244. 'no-clzero'
  26245. Enable/disable the generation of the CLZERO instructions.
  26246. 'crc32'
  26247. 'no-crc32'
  26248. Enable/disable the generation of the CRC32 instructions.
  26249. 'cx16'
  26250. 'no-cx16'
  26251. Enable/disable the generation of the CMPXCHG16B instructions.
  26252. 'default'
  26253. *Note Function Multiversioning::, where it is used to specify
  26254. the default function version.
  26255. 'f16c'
  26256. 'no-f16c'
  26257. Enable/disable the generation of the F16C instructions.
  26258. 'fma'
  26259. 'no-fma'
  26260. Enable/disable the generation of the FMA instructions.
  26261. 'fma4'
  26262. 'no-fma4'
  26263. Enable/disable the generation of the FMA4 instructions.
  26264. 'fsgsbase'
  26265. 'no-fsgsbase'
  26266. Enable/disable the generation of the FSGSBASE instructions.
  26267. 'fxsr'
  26268. 'no-fxsr'
  26269. Enable/disable the generation of the FXSR instructions.
  26270. 'gfni'
  26271. 'no-gfni'
  26272. Enable/disable the generation of the GFNI instructions.
  26273. 'hle'
  26274. 'no-hle'
  26275. Enable/disable the generation of the HLE instruction prefixes.
  26276. 'lwp'
  26277. 'no-lwp'
  26278. Enable/disable the generation of the LWP instructions.
  26279. 'lzcnt'
  26280. 'no-lzcnt'
  26281. Enable/disable the generation of the LZCNT instructions.
  26282. 'mmx'
  26283. 'no-mmx'
  26284. Enable/disable the generation of the MMX instructions.
  26285. 'movbe'
  26286. 'no-movbe'
  26287. Enable/disable the generation of the MOVBE instructions.
  26288. 'movdir64b'
  26289. 'no-movdir64b'
  26290. Enable/disable the generation of the MOVDIR64B instructions.
  26291. 'movdiri'
  26292. 'no-movdiri'
  26293. Enable/disable the generation of the MOVDIRI instructions.
  26294. 'mwaitx'
  26295. 'no-mwaitx'
  26296. Enable/disable the generation of the MWAITX instructions.
  26297. 'pclmul'
  26298. 'no-pclmul'
  26299. Enable/disable the generation of the PCLMUL instructions.
  26300. 'pconfig'
  26301. 'no-pconfig'
  26302. Enable/disable the generation of the PCONFIG instructions.
  26303. 'pku'
  26304. 'no-pku'
  26305. Enable/disable the generation of the PKU instructions.
  26306. 'popcnt'
  26307. 'no-popcnt'
  26308. Enable/disable the generation of the POPCNT instruction.
  26309. 'prefetchwt1'
  26310. 'no-prefetchwt1'
  26311. Enable/disable the generation of the PREFETCHWT1 instructions.
  26312. 'prfchw'
  26313. 'no-prfchw'
  26314. Enable/disable the generation of the PREFETCHW instruction.
  26315. 'rdpid'
  26316. 'no-rdpid'
  26317. Enable/disable the generation of the RDPID instructions.
  26318. 'rdrnd'
  26319. 'no-rdrnd'
  26320. Enable/disable the generation of the RDRND instructions.
  26321. 'rdseed'
  26322. 'no-rdseed'
  26323. Enable/disable the generation of the RDSEED instructions.
  26324. 'rtm'
  26325. 'no-rtm'
  26326. Enable/disable the generation of the RTM instructions.
  26327. 'sahf'
  26328. 'no-sahf'
  26329. Enable/disable the generation of the SAHF instructions.
  26330. 'sgx'
  26331. 'no-sgx'
  26332. Enable/disable the generation of the SGX instructions.
  26333. 'sha'
  26334. 'no-sha'
  26335. Enable/disable the generation of the SHA instructions.
  26336. 'shstk'
  26337. 'no-shstk'
  26338. Enable/disable the shadow stack built-in functions from CET.
  26339. 'sse'
  26340. 'no-sse'
  26341. Enable/disable the generation of the SSE instructions.
  26342. 'sse2'
  26343. 'no-sse2'
  26344. Enable/disable the generation of the SSE2 instructions.
  26345. 'sse3'
  26346. 'no-sse3'
  26347. Enable/disable the generation of the SSE3 instructions.
  26348. 'sse4'
  26349. 'no-sse4'
  26350. Enable/disable the generation of the SSE4 instructions (both
  26351. SSE4.1 and SSE4.2).
  26352. 'sse4.1'
  26353. 'no-sse4.1'
  26354. Enable/disable the generation of the sse4.1 instructions.
  26355. 'sse4.2'
  26356. 'no-sse4.2'
  26357. Enable/disable the generation of the sse4.2 instructions.
  26358. 'sse4a'
  26359. 'no-sse4a'
  26360. Enable/disable the generation of the SSE4A instructions.
  26361. 'ssse3'
  26362. 'no-ssse3'
  26363. Enable/disable the generation of the SSSE3 instructions.
  26364. 'tbm'
  26365. 'no-tbm'
  26366. Enable/disable the generation of the TBM instructions.
  26367. 'vaes'
  26368. 'no-vaes'
  26369. Enable/disable the generation of the VAES instructions.
  26370. 'vpclmulqdq'
  26371. 'no-vpclmulqdq'
  26372. Enable/disable the generation of the VPCLMULQDQ instructions.
  26373. 'wbnoinvd'
  26374. 'no-wbnoinvd'
  26375. Enable/disable the generation of the WBNOINVD instructions.
  26376. 'xop'
  26377. 'no-xop'
  26378. Enable/disable the generation of the XOP instructions.
  26379. 'xsave'
  26380. 'no-xsave'
  26381. Enable/disable the generation of the XSAVE instructions.
  26382. 'xsavec'
  26383. 'no-xsavec'
  26384. Enable/disable the generation of the XSAVEC instructions.
  26385. 'xsaveopt'
  26386. 'no-xsaveopt'
  26387. Enable/disable the generation of the XSAVEOPT instructions.
  26388. 'xsaves'
  26389. 'no-xsaves'
  26390. Enable/disable the generation of the XSAVES instructions.
  26391. 'cld'
  26392. 'no-cld'
  26393. Enable/disable the generation of the CLD before string moves.
  26394. 'fancy-math-387'
  26395. 'no-fancy-math-387'
  26396. Enable/disable the generation of the 'sin', 'cos', and 'sqrt'
  26397. instructions on the 387 floating-point unit.
  26398. 'ieee-fp'
  26399. 'no-ieee-fp'
  26400. Enable/disable the generation of floating point that depends
  26401. on IEEE arithmetic.
  26402. 'inline-all-stringops'
  26403. 'no-inline-all-stringops'
  26404. Enable/disable inlining of string operations.
  26405. 'inline-stringops-dynamically'
  26406. 'no-inline-stringops-dynamically'
  26407. Enable/disable the generation of the inline code to do small
  26408. string operations and calling the library routines for large
  26409. operations.
  26410. 'align-stringops'
  26411. 'no-align-stringops'
  26412. Do/do not align destination of inlined string operations.
  26413. 'recip'
  26414. 'no-recip'
  26415. Enable/disable the generation of RCPSS, RCPPS, RSQRTSS and
  26416. RSQRTPS instructions followed an additional Newton-Raphson
  26417. step instead of doing a floating-point division.
  26418. 'arch=ARCH'
  26419. Specify the architecture to generate code for in compiling the
  26420. function.
  26421. 'tune=TUNE'
  26422. Specify the architecture to tune for in compiling the
  26423. function.
  26424. 'fpmath=FPMATH'
  26425. Specify which floating-point unit to use. You must specify
  26426. the 'target("fpmath=sse,387")' option as
  26427. 'target("fpmath=sse+387")' because the comma would separate
  26428. different options.
  26429. 'indirect_branch("CHOICE")'
  26430. On x86 targets, the 'indirect_branch' attribute causes the
  26431. compiler to convert indirect call and jump with CHOICE.
  26432. 'keep' keeps indirect call and jump unmodified. 'thunk'
  26433. converts indirect call and jump to call and return thunk.
  26434. 'thunk-inline' converts indirect call and jump to inlined call
  26435. and return thunk. 'thunk-extern' converts indirect call and
  26436. jump to external call and return thunk provided in a separate
  26437. object file.
  26438. 'function_return("CHOICE")'
  26439. On x86 targets, the 'function_return' attribute causes the
  26440. compiler to convert function return with CHOICE. 'keep' keeps
  26441. function return unmodified. 'thunk' converts function return
  26442. to call and return thunk. 'thunk-inline' converts function
  26443. return to inlined call and return thunk. 'thunk-extern'
  26444. converts function return to external call and return thunk
  26445. provided in a separate object file.
  26446. 'nocf_check'
  26447. The 'nocf_check' attribute on a function is used to inform the
  26448. compiler that the function's prologue should not be
  26449. instrumented when compiled with the '-fcf-protection=branch'
  26450. option. The compiler assumes that the function's address is a
  26451. valid target for a control-flow transfer.
  26452. The 'nocf_check' attribute on a type of pointer to function is
  26453. used to inform the compiler that a call through the pointer
  26454. should not be instrumented when compiled with the
  26455. '-fcf-protection=branch' option. The compiler assumes that
  26456. the function's address from the pointer is a valid target for
  26457. a control-flow transfer. A direct function call through a
  26458. function name is assumed to be a safe call thus direct calls
  26459. are not instrumented by the compiler.
  26460. The 'nocf_check' attribute is applied to an object's type. In
  26461. case of assignment of a function address or a function pointer
  26462. to another pointer, the attribute is not carried over from the
  26463. right-hand object's type; the type of left-hand object stays
  26464. unchanged. The compiler checks for 'nocf_check' attribute
  26465. mismatch and reports a warning in case of mismatch.
  26466. {
  26467. int foo (void) __attribute__(nocf_check);
  26468. void (*foo1)(void) __attribute__(nocf_check);
  26469. void (*foo2)(void);
  26470. /* foo's address is assumed to be valid. */
  26471. int
  26472. foo (void)
  26473. /* This call site is not checked for control-flow
  26474. validity. */
  26475. (*foo1)();
  26476. /* A warning is issued about attribute mismatch. */
  26477. foo1 = foo2;
  26478. /* This call site is still not checked. */
  26479. (*foo1)();
  26480. /* This call site is checked. */
  26481. (*foo2)();
  26482. /* A warning is issued about attribute mismatch. */
  26483. foo2 = foo1;
  26484. /* This call site is still checked. */
  26485. (*foo2)();
  26486. return 0;
  26487. }
  26488. On the x86, the inliner does not inline a function that has
  26489. different target options than the caller, unless the callee has a
  26490. subset of the target options of the caller. For example a function
  26491. declared with 'target("sse3")' can inline a function with
  26492. 'target("sse2")', since '-msse3' implies '-msse2'.
  26493. 
  26494. File: gcc.info, Node: Xstormy16 Function Attributes, Prev: x86 Function Attributes, Up: Function Attributes
  26495. 6.31.34 Xstormy16 Function Attributes
  26496. -------------------------------------
  26497. These function attributes are supported by the Xstormy16 back end:
  26498. 'interrupt'
  26499. Use this attribute to indicate that the specified function is an
  26500. interrupt handler. The compiler generates function entry and exit
  26501. sequences suitable for use in an interrupt handler when this
  26502. attribute is present.
  26503. 
  26504. File: gcc.info, Node: Variable Attributes, Next: Type Attributes, Prev: Function Attributes, Up: C Extensions
  26505. 6.32 Specifying Attributes of Variables
  26506. =======================================
  26507. The keyword '__attribute__' allows you to specify special attributes of
  26508. variables or structure fields. This keyword is followed by an attribute
  26509. specification inside double parentheses. Some attributes are currently
  26510. defined generically for variables. Other attributes are defined for
  26511. variables on particular target systems. Other attributes are available
  26512. for functions (*note Function Attributes::), labels (*note Label
  26513. Attributes::), enumerators (*note Enumerator Attributes::), statements
  26514. (*note Statement Attributes::), and for types (*note Type Attributes::).
  26515. Other front ends might define more attributes (*note Extensions to the
  26516. C++ Language: C++ Extensions.).
  26517. *Note Attribute Syntax::, for details of the exact syntax for using
  26518. attributes.
  26519. * Menu:
  26520. * Common Variable Attributes::
  26521. * ARC Variable Attributes::
  26522. * AVR Variable Attributes::
  26523. * Blackfin Variable Attributes::
  26524. * H8/300 Variable Attributes::
  26525. * IA-64 Variable Attributes::
  26526. * M32R/D Variable Attributes::
  26527. * MeP Variable Attributes::
  26528. * Microsoft Windows Variable Attributes::
  26529. * MSP430 Variable Attributes::
  26530. * Nvidia PTX Variable Attributes::
  26531. * PowerPC Variable Attributes::
  26532. * RL78 Variable Attributes::
  26533. * SPU Variable Attributes::
  26534. * V850 Variable Attributes::
  26535. * x86 Variable Attributes::
  26536. * Xstormy16 Variable Attributes::
  26537. 
  26538. File: gcc.info, Node: Common Variable Attributes, Next: ARC Variable Attributes, Up: Variable Attributes
  26539. 6.32.1 Common Variable Attributes
  26540. ---------------------------------
  26541. The following attributes are supported on most targets.
  26542. 'aligned (ALIGNMENT)'
  26543. This attribute specifies a minimum alignment for the variable or
  26544. structure field, measured in bytes. For example, the declaration:
  26545. int x __attribute__ ((aligned (16))) = 0;
  26546. causes the compiler to allocate the global variable 'x' on a
  26547. 16-byte boundary. On a 68040, this could be used in conjunction
  26548. with an 'asm' expression to access the 'move16' instruction which
  26549. requires 16-byte aligned operands.
  26550. You can also specify the alignment of structure fields. For
  26551. example, to create a double-word aligned 'int' pair, you could
  26552. write:
  26553. struct foo { int x[2] __attribute__ ((aligned (8))); };
  26554. This is an alternative to creating a union with a 'double' member,
  26555. which forces the union to be double-word aligned.
  26556. As in the preceding examples, you can explicitly specify the
  26557. alignment (in bytes) that you wish the compiler to use for a given
  26558. variable or structure field. Alternatively, you can leave out the
  26559. alignment factor and just ask the compiler to align a variable or
  26560. field to the default alignment for the target architecture you are
  26561. compiling for. The default alignment is sufficient for all scalar
  26562. types, but may not be enough for all vector types on a target that
  26563. supports vector operations. The default alignment is fixed for a
  26564. particular target ABI.
  26565. GCC also provides a target specific macro '__BIGGEST_ALIGNMENT__',
  26566. which is the largest alignment ever used for any data type on the
  26567. target machine you are compiling for. For example, you could
  26568. write:
  26569. short array[3] __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)));
  26570. The compiler automatically sets the alignment for the declared
  26571. variable or field to '__BIGGEST_ALIGNMENT__'. Doing this can often
  26572. make copy operations more efficient, because the compiler can use
  26573. whatever instructions copy the biggest chunks of memory when
  26574. performing copies to or from the variables or fields that you have
  26575. aligned this way. Note that the value of '__BIGGEST_ALIGNMENT__'
  26576. may change depending on command-line options.
  26577. When used on a struct, or struct member, the 'aligned' attribute
  26578. can only increase the alignment; in order to decrease it, the
  26579. 'packed' attribute must be specified as well. When used as part of
  26580. a typedef, the 'aligned' attribute can both increase and decrease
  26581. alignment, and specifying the 'packed' attribute generates a
  26582. warning.
  26583. Note that the effectiveness of 'aligned' attributes may be limited
  26584. by inherent limitations in your linker. On many systems, the
  26585. linker is only able to arrange for variables to be aligned up to a
  26586. certain maximum alignment. (For some linkers, the maximum
  26587. supported alignment may be very very small.) If your linker is
  26588. only able to align variables up to a maximum of 8-byte alignment,
  26589. then specifying 'aligned(16)' in an '__attribute__' still only
  26590. provides you with 8-byte alignment. See your linker documentation
  26591. for further information.
  26592. The 'aligned' attribute can also be used for functions (*note
  26593. Common Function Attributes::.)
  26594. 'warn_if_not_aligned (ALIGNMENT)'
  26595. This attribute specifies a threshold for the structure field,
  26596. measured in bytes. If the structure field is aligned below the
  26597. threshold, a warning will be issued. For example, the declaration:
  26598. struct foo
  26599. {
  26600. int i1;
  26601. int i2;
  26602. unsigned long long x __attribute__((warn_if_not_aligned(16)));
  26603. };
  26604. causes the compiler to issue an warning on 'struct foo', like
  26605. 'warning: alignment 8 of 'struct foo' is less than 16'. The
  26606. compiler also issues a warning, like 'warning: 'x' offset 8 in
  26607. 'struct foo' isn't aligned to 16', when the structure field has the
  26608. misaligned offset:
  26609. struct foo
  26610. {
  26611. int i1;
  26612. int i2;
  26613. unsigned long long x __attribute__((warn_if_not_aligned(16)));
  26614. } __attribute__((aligned(16)));
  26615. This warning can be disabled by '-Wno-if-not-aligned'. The
  26616. 'warn_if_not_aligned' attribute can also be used for types (*note
  26617. Common Type Attributes::.)
  26618. 'cleanup (CLEANUP_FUNCTION)'
  26619. The 'cleanup' attribute runs a function when the variable goes out
  26620. of scope. This attribute can only be applied to auto function
  26621. scope variables; it may not be applied to parameters or variables
  26622. with static storage duration. The function must take one
  26623. parameter, a pointer to a type compatible with the variable. The
  26624. return value of the function (if any) is ignored.
  26625. If '-fexceptions' is enabled, then CLEANUP_FUNCTION is run during
  26626. the stack unwinding that happens during the processing of the
  26627. exception. Note that the 'cleanup' attribute does not allow the
  26628. exception to be caught, only to perform an action. It is undefined
  26629. what happens if CLEANUP_FUNCTION does not return normally.
  26630. 'common'
  26631. 'nocommon'
  26632. The 'common' attribute requests GCC to place a variable in "common"
  26633. storage. The 'nocommon' attribute requests the opposite--to
  26634. allocate space for it directly.
  26635. These attributes override the default chosen by the '-fno-common'
  26636. and '-fcommon' flags respectively.
  26637. 'deprecated'
  26638. 'deprecated (MSG)'
  26639. The 'deprecated' attribute results in a warning if the variable is
  26640. used anywhere in the source file. This is useful when identifying
  26641. variables that are expected to be removed in a future version of a
  26642. program. The warning also includes the location of the declaration
  26643. of the deprecated variable, to enable users to easily find further
  26644. information about why the variable is deprecated, or what they
  26645. should do instead. Note that the warning only occurs for uses:
  26646. extern int old_var __attribute__ ((deprecated));
  26647. extern int old_var;
  26648. int new_fn () { return old_var; }
  26649. results in a warning on line 3 but not line 2. The optional MSG
  26650. argument, which must be a string, is printed in the warning if
  26651. present.
  26652. The 'deprecated' attribute can also be used for functions and types
  26653. (*note Common Function Attributes::, *note Common Type
  26654. Attributes::).
  26655. 'nonstring'
  26656. The 'nonstring' variable attribute specifies that an object or
  26657. member declaration with type array of 'char', 'signed char', or
  26658. 'unsigned char', or pointer to such a type is intended to store
  26659. character arrays that do not necessarily contain a terminating
  26660. 'NUL'. This is useful in detecting uses of such arrays or pointers
  26661. with functions that expect 'NUL'-terminated strings, and to avoid
  26662. warnings when such an array or pointer is used as an argument to a
  26663. bounded string manipulation function such as 'strncpy'. For
  26664. example, without the attribute, GCC will issue a warning for the
  26665. 'strncpy' call below because it may truncate the copy without
  26666. appending the terminating 'NUL' character. Using the attribute
  26667. makes it possible to suppress the warning. However, when the array
  26668. is declared with the attribute the call to 'strlen' is diagnosed
  26669. because when the array doesn't contain a 'NUL'-terminated string
  26670. the call is undefined. To copy, compare, of search non-string
  26671. character arrays use the 'memcpy', 'memcmp', 'memchr', and other
  26672. functions that operate on arrays of bytes. In addition, calling
  26673. 'strnlen' and 'strndup' with such arrays is safe provided a
  26674. suitable bound is specified, and not diagnosed.
  26675. struct Data
  26676. {
  26677. char name [32] __attribute__ ((nonstring));
  26678. };
  26679. int f (struct Data *pd, const char *s)
  26680. {
  26681. strncpy (pd->name, s, sizeof pd->name);
  26682. ...
  26683. return strlen (pd->name); // unsafe, gets a warning
  26684. }
  26685. 'mode (MODE)'
  26686. This attribute specifies the data type for the
  26687. declaration--whichever type corresponds to the mode MODE. This in
  26688. effect lets you request an integer or floating-point type according
  26689. to its width.
  26690. *Note (gccint)Machine Modes::, for a list of the possible keywords
  26691. for MODE. You may also specify a mode of 'byte' or '__byte__' to
  26692. indicate the mode corresponding to a one-byte integer, 'word' or
  26693. '__word__' for the mode of a one-word integer, and 'pointer' or
  26694. '__pointer__' for the mode used to represent pointers.
  26695. 'packed'
  26696. The 'packed' attribute specifies that a variable or structure field
  26697. should have the smallest possible alignment--one byte for a
  26698. variable, and one bit for a field, unless you specify a larger
  26699. value with the 'aligned' attribute.
  26700. Here is a structure in which the field 'x' is packed, so that it
  26701. immediately follows 'a':
  26702. struct foo
  26703. {
  26704. char a;
  26705. int x[2] __attribute__ ((packed));
  26706. };
  26707. _Note:_ The 4.1, 4.2 and 4.3 series of GCC ignore the 'packed'
  26708. attribute on bit-fields of type 'char'. This has been fixed in GCC
  26709. 4.4 but the change can lead to differences in the structure layout.
  26710. See the documentation of '-Wpacked-bitfield-compat' for more
  26711. information.
  26712. 'section ("SECTION-NAME")'
  26713. Normally, the compiler places the objects it generates in sections
  26714. like 'data' and 'bss'. Sometimes, however, you need additional
  26715. sections, or you need certain particular variables to appear in
  26716. special sections, for example to map to special hardware. The
  26717. 'section' attribute specifies that a variable (or function) lives
  26718. in a particular section. For example, this small program uses
  26719. several specific section names:
  26720. struct duart a __attribute__ ((section ("DUART_A"))) = { 0 };
  26721. struct duart b __attribute__ ((section ("DUART_B"))) = { 0 };
  26722. char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };
  26723. int init_data __attribute__ ((section ("INITDATA")));
  26724. main()
  26725. {
  26726. /* Initialize stack pointer */
  26727. init_sp (stack + sizeof (stack));
  26728. /* Initialize initialized data */
  26729. memcpy (&init_data, &data, &edata - &data);
  26730. /* Turn on the serial ports */
  26731. init_duart (&a);
  26732. init_duart (&b);
  26733. }
  26734. Use the 'section' attribute with _global_ variables and not _local_
  26735. variables, as shown in the example.
  26736. You may use the 'section' attribute with initialized or
  26737. uninitialized global variables but the linker requires each object
  26738. be defined once, with the exception that uninitialized variables
  26739. tentatively go in the 'common' (or 'bss') section and can be
  26740. multiply "defined". Using the 'section' attribute changes what
  26741. section the variable goes into and may cause the linker to issue an
  26742. error if an uninitialized variable has multiple definitions. You
  26743. can force a variable to be initialized with the '-fno-common' flag
  26744. or the 'nocommon' attribute.
  26745. Some file formats do not support arbitrary sections so the
  26746. 'section' attribute is not available on all platforms. If you need
  26747. to map the entire contents of a module to a particular section,
  26748. consider using the facilities of the linker instead.
  26749. 'tls_model ("TLS_MODEL")'
  26750. The 'tls_model' attribute sets thread-local storage model (*note
  26751. Thread-Local::) of a particular '__thread' variable, overriding
  26752. '-ftls-model=' command-line switch on a per-variable basis. The
  26753. TLS_MODEL argument should be one of 'global-dynamic',
  26754. 'local-dynamic', 'initial-exec' or 'local-exec'.
  26755. Not all targets support this attribute.
  26756. 'unused'
  26757. This attribute, attached to a variable, means that the variable is
  26758. meant to be possibly unused. GCC does not produce a warning for
  26759. this variable.
  26760. 'used'
  26761. This attribute, attached to a variable with static storage, means
  26762. that the variable must be emitted even if it appears that the
  26763. variable is not referenced.
  26764. When applied to a static data member of a C++ class template, the
  26765. attribute also means that the member is instantiated if the class
  26766. itself is instantiated.
  26767. 'vector_size (BYTES)'
  26768. This attribute specifies the vector size for the variable, measured
  26769. in bytes. For example, the declaration:
  26770. int foo __attribute__ ((vector_size (16)));
  26771. causes the compiler to set the mode for 'foo', to be 16 bytes,
  26772. divided into 'int' sized units. Assuming a 32-bit int (a vector of
  26773. 4 units of 4 bytes), the corresponding mode of 'foo' is V4SI.
  26774. This attribute is only applicable to integral and float scalars,
  26775. although arrays, pointers, and function return values are allowed
  26776. in conjunction with this construct.
  26777. Aggregates with this attribute are invalid, even if they are of the
  26778. same size as a corresponding scalar. For example, the declaration:
  26779. struct S { int a; };
  26780. struct S __attribute__ ((vector_size (16))) foo;
  26781. is invalid even if the size of the structure is the same as the
  26782. size of the 'int'.
  26783. 'visibility ("VISIBILITY_TYPE")'
  26784. This attribute affects the linkage of the declaration to which it
  26785. is attached. The 'visibility' attribute is described in *note
  26786. Common Function Attributes::.
  26787. 'weak'
  26788. The 'weak' attribute is described in *note Common Function
  26789. Attributes::.
  26790. 
  26791. File: gcc.info, Node: ARC Variable Attributes, Next: AVR Variable Attributes, Prev: Common Variable Attributes, Up: Variable Attributes
  26792. 6.32.2 ARC Variable Attributes
  26793. ------------------------------
  26794. 'aux'
  26795. The 'aux' attribute is used to directly access the ARC's auxiliary
  26796. register space from C. The auxilirary register number is given via
  26797. attribute argument.
  26798. 
  26799. File: gcc.info, Node: AVR Variable Attributes, Next: Blackfin Variable Attributes, Prev: ARC Variable Attributes, Up: Variable Attributes
  26800. 6.32.3 AVR Variable Attributes
  26801. ------------------------------
  26802. 'progmem'
  26803. The 'progmem' attribute is used on the AVR to place read-only data
  26804. in the non-volatile program memory (flash). The 'progmem'
  26805. attribute accomplishes this by putting respective variables into a
  26806. section whose name starts with '.progmem'.
  26807. This attribute works similar to the 'section' attribute but adds
  26808. additional checking.
  26809. * Ordinary AVR cores with 32 general purpose registers:
  26810. 'progmem' affects the location of the data but not how this
  26811. data is accessed. In order to read data located with the
  26812. 'progmem' attribute (inline) assembler must be used.
  26813. /* Use custom macros from AVR-LibC (http://nongnu.org/avr-libc/user-manual/) */
  26814. #include <avr/pgmspace.h>
  26815. /* Locate var in flash memory */
  26816. const int var[2] PROGMEM = { 1, 2 };
  26817. int read_var (int i)
  26818. {
  26819. /* Access var[] by accessor macro from avr/pgmspace.h */
  26820. return (int) pgm_read_word (& var[i]);
  26821. }
  26822. AVR is a Harvard architecture processor and data and read-only
  26823. data normally resides in the data memory (RAM).
  26824. See also the *note AVR Named Address Spaces:: section for an
  26825. alternate way to locate and access data in flash memory.
  26826. * AVR cores with flash memory visible in the RAM address range:
  26827. On such devices, there is no need for attribute 'progmem' or
  26828. *note '__flash': AVR Named Address Spaces. qualifier at all.
  26829. Just use standard C / C++. The compiler will generate 'LD*'
  26830. instructions. As flash memory is visible in the RAM address
  26831. range, and the default linker script does _not_ locate
  26832. '.rodata' in RAM, no special features are needed in order not
  26833. to waste RAM for read-only data or to read from flash. You
  26834. might even get slightly better performance by avoiding
  26835. 'progmem' and '__flash'. This applies to devices from
  26836. families 'avrtiny' and 'avrxmega3', see *note AVR Options::
  26837. for an overview.
  26838. * Reduced AVR Tiny cores like ATtiny40:
  26839. The compiler adds '0x4000' to the addresses of objects and
  26840. declarations in 'progmem' and locates the objects in flash
  26841. memory, namely in section '.progmem.data'. The offset is
  26842. needed because the flash memory is visible in the RAM address
  26843. space starting at address '0x4000'.
  26844. Data in 'progmem' can be accessed by means of ordinary C code,
  26845. no special functions or macros are needed.
  26846. /* var is located in flash memory */
  26847. extern const int var[2] __attribute__((progmem));
  26848. int read_var (int i)
  26849. {
  26850. return var[i];
  26851. }
  26852. Please notice that on these devices, there is no need for
  26853. 'progmem' at all.
  26854. 'io'
  26855. 'io (ADDR)'
  26856. Variables with the 'io' attribute are used to address memory-mapped
  26857. peripherals in the io address range. If an address is specified,
  26858. the variable is assigned that address, and the value is interpreted
  26859. as an address in the data address space. Example:
  26860. volatile int porta __attribute__((io (0x22)));
  26861. The address specified in the address in the data address range.
  26862. Otherwise, the variable it is not assigned an address, but the
  26863. compiler will still use in/out instructions where applicable,
  26864. assuming some other module assigns an address in the io address
  26865. range. Example:
  26866. extern volatile int porta __attribute__((io));
  26867. 'io_low'
  26868. 'io_low (ADDR)'
  26869. This is like the 'io' attribute, but additionally it informs the
  26870. compiler that the object lies in the lower half of the I/O area,
  26871. allowing the use of 'cbi', 'sbi', 'sbic' and 'sbis' instructions.
  26872. 'address'
  26873. 'address (ADDR)'
  26874. Variables with the 'address' attribute are used to address
  26875. memory-mapped peripherals that may lie outside the io address
  26876. range.
  26877. volatile int porta __attribute__((address (0x600)));
  26878. 'absdata'
  26879. Variables in static storage and with the 'absdata' attribute can be
  26880. accessed by the 'LDS' and 'STS' instructions which take absolute
  26881. addresses.
  26882. * This attribute is only supported for the reduced AVR Tiny core
  26883. like ATtiny40.
  26884. * You must make sure that respective data is located in the
  26885. address range '0x40'...'0xbf' accessible by 'LDS' and 'STS'.
  26886. One way to achieve this as an appropriate linker description
  26887. file.
  26888. * If the location does not fit the address range of 'LDS' and
  26889. 'STS', there is currently (Binutils 2.26) just an unspecific
  26890. warning like
  26891. 'module.c:(.text+0x1c): warning: internal error: out of
  26892. range error'
  26893. See also the '-mabsdata' *note command-line option: AVR Options.
  26894. 
  26895. File: gcc.info, Node: Blackfin Variable Attributes, Next: H8/300 Variable Attributes, Prev: AVR Variable Attributes, Up: Variable Attributes
  26896. 6.32.4 Blackfin Variable Attributes
  26897. -----------------------------------
  26898. Three attributes are currently defined for the Blackfin.
  26899. 'l1_data'
  26900. 'l1_data_A'
  26901. 'l1_data_B'
  26902. Use these attributes on the Blackfin to place the variable into L1
  26903. Data SRAM. Variables with 'l1_data' attribute are put into the
  26904. specific section named '.l1.data'. Those with 'l1_data_A'
  26905. attribute are put into the specific section named '.l1.data.A'.
  26906. Those with 'l1_data_B' attribute are put into the specific section
  26907. named '.l1.data.B'.
  26908. 'l2'
  26909. Use this attribute on the Blackfin to place the variable into L2
  26910. SRAM. Variables with 'l2' attribute are put into the specific
  26911. section named '.l2.data'.
  26912. 
  26913. File: gcc.info, Node: H8/300 Variable Attributes, Next: IA-64 Variable Attributes, Prev: Blackfin Variable Attributes, Up: Variable Attributes
  26914. 6.32.5 H8/300 Variable Attributes
  26915. ---------------------------------
  26916. These variable attributes are available for H8/300 targets:
  26917. 'eightbit_data'
  26918. Use this attribute on the H8/300, H8/300H, and H8S to indicate that
  26919. the specified variable should be placed into the eight-bit data
  26920. section. The compiler generates more efficient code for certain
  26921. operations on data in the eight-bit data area. Note the eight-bit
  26922. data area is limited to 256 bytes of data.
  26923. You must use GAS and GLD from GNU binutils version 2.7 or later for
  26924. this attribute to work correctly.
  26925. 'tiny_data'
  26926. Use this attribute on the H8/300H and H8S to indicate that the
  26927. specified variable should be placed into the tiny data section.
  26928. The compiler generates more efficient code for loads and stores on
  26929. data in the tiny data section. Note the tiny data area is limited
  26930. to slightly under 32KB of data.
  26931. 
  26932. File: gcc.info, Node: IA-64 Variable Attributes, Next: M32R/D Variable Attributes, Prev: H8/300 Variable Attributes, Up: Variable Attributes
  26933. 6.32.6 IA-64 Variable Attributes
  26934. --------------------------------
  26935. The IA-64 back end supports the following variable attribute:
  26936. 'model (MODEL-NAME)'
  26937. On IA-64, use this attribute to set the addressability of an
  26938. object. At present, the only supported identifier for MODEL-NAME
  26939. is 'small', indicating addressability via "small" (22-bit)
  26940. addresses (so that their addresses can be loaded with the 'addl'
  26941. instruction). Caveat: such addressing is by definition not
  26942. position independent and hence this attribute must not be used for
  26943. objects defined by shared libraries.
  26944. 
  26945. File: gcc.info, Node: M32R/D Variable Attributes, Next: MeP Variable Attributes, Prev: IA-64 Variable Attributes, Up: Variable Attributes
  26946. 6.32.7 M32R/D Variable Attributes
  26947. ---------------------------------
  26948. One attribute is currently defined for the M32R/D.
  26949. 'model (MODEL-NAME)'
  26950. Use this attribute on the M32R/D to set the addressability of an
  26951. object. The identifier MODEL-NAME is one of 'small', 'medium', or
  26952. 'large', representing each of the code models.
  26953. Small model objects live in the lower 16MB of memory (so that their
  26954. addresses can be loaded with the 'ld24' instruction).
  26955. Medium and large model objects may live anywhere in the 32-bit
  26956. address space (the compiler generates 'seth/add3' instructions to
  26957. load their addresses).
  26958. 
  26959. File: gcc.info, Node: MeP Variable Attributes, Next: Microsoft Windows Variable Attributes, Prev: M32R/D Variable Attributes, Up: Variable Attributes
  26960. 6.32.8 MeP Variable Attributes
  26961. ------------------------------
  26962. The MeP target has a number of addressing modes and busses. The 'near'
  26963. space spans the standard memory space's first 16 megabytes (24 bits).
  26964. The 'far' space spans the entire 32-bit memory space. The 'based' space
  26965. is a 128-byte region in the memory space that is addressed relative to
  26966. the '$tp' register. The 'tiny' space is a 65536-byte region relative to
  26967. the '$gp' register. In addition to these memory regions, the MeP target
  26968. has a separate 16-bit control bus which is specified with 'cb'
  26969. attributes.
  26970. 'based'
  26971. Any variable with the 'based' attribute is assigned to the '.based'
  26972. section, and is accessed with relative to the '$tp' register.
  26973. 'tiny'
  26974. Likewise, the 'tiny' attribute assigned variables to the '.tiny'
  26975. section, relative to the '$gp' register.
  26976. 'near'
  26977. Variables with the 'near' attribute are assumed to have addresses
  26978. that fit in a 24-bit addressing mode. This is the default for
  26979. large variables ('-mtiny=4' is the default) but this attribute can
  26980. override '-mtiny=' for small variables, or override '-ml'.
  26981. 'far'
  26982. Variables with the 'far' attribute are addressed using a full
  26983. 32-bit address. Since this covers the entire memory space, this
  26984. allows modules to make no assumptions about where variables might
  26985. be stored.
  26986. 'io'
  26987. 'io (ADDR)'
  26988. Variables with the 'io' attribute are used to address memory-mapped
  26989. peripherals. If an address is specified, the variable is assigned
  26990. that address, else it is not assigned an address (it is assumed
  26991. some other module assigns an address). Example:
  26992. int timer_count __attribute__((io(0x123)));
  26993. 'cb'
  26994. 'cb (ADDR)'
  26995. Variables with the 'cb' attribute are used to access the control
  26996. bus, using special instructions. 'addr' indicates the control bus
  26997. address. Example:
  26998. int cpu_clock __attribute__((cb(0x123)));
  26999. 
  27000. File: gcc.info, Node: Microsoft Windows Variable Attributes, Next: MSP430 Variable Attributes, Prev: MeP Variable Attributes, Up: Variable Attributes
  27001. 6.32.9 Microsoft Windows Variable Attributes
  27002. --------------------------------------------
  27003. You can use these attributes on Microsoft Windows targets. *note x86
  27004. Variable Attributes:: for additional Windows compatibility attributes
  27005. available on all x86 targets.
  27006. 'dllimport'
  27007. 'dllexport'
  27008. The 'dllimport' and 'dllexport' attributes are described in *note
  27009. Microsoft Windows Function Attributes::.
  27010. 'selectany'
  27011. The 'selectany' attribute causes an initialized global variable to
  27012. have link-once semantics. When multiple definitions of the
  27013. variable are encountered by the linker, the first is selected and
  27014. the remainder are discarded. Following usage by the Microsoft
  27015. compiler, the linker is told _not_ to warn about size or content
  27016. differences of the multiple definitions.
  27017. Although the primary usage of this attribute is for POD types, the
  27018. attribute can also be applied to global C++ objects that are
  27019. initialized by a constructor. In this case, the static
  27020. initialization and destruction code for the object is emitted in
  27021. each translation defining the object, but the calls to the
  27022. constructor and destructor are protected by a link-once guard
  27023. variable.
  27024. The 'selectany' attribute is only available on Microsoft Windows
  27025. targets. You can use '__declspec (selectany)' as a synonym for
  27026. '__attribute__ ((selectany))' for compatibility with other
  27027. compilers.
  27028. 'shared'
  27029. On Microsoft Windows, in addition to putting variable definitions
  27030. in a named section, the section can also be shared among all
  27031. running copies of an executable or DLL. For example, this small
  27032. program defines shared data by putting it in a named section
  27033. 'shared' and marking the section shareable:
  27034. int foo __attribute__((section ("shared"), shared)) = 0;
  27035. int
  27036. main()
  27037. {
  27038. /* Read and write foo. All running
  27039. copies see the same value. */
  27040. return 0;
  27041. }
  27042. You may only use the 'shared' attribute along with 'section'
  27043. attribute with a fully-initialized global definition because of the
  27044. way linkers work. See 'section' attribute for more information.
  27045. The 'shared' attribute is only available on Microsoft Windows.
  27046. 
  27047. File: gcc.info, Node: MSP430 Variable Attributes, Next: Nvidia PTX Variable Attributes, Prev: Microsoft Windows Variable Attributes, Up: Variable Attributes
  27048. 6.32.10 MSP430 Variable Attributes
  27049. ----------------------------------
  27050. 'noinit'
  27051. Any data with the 'noinit' attribute will not be initialised by the
  27052. C runtime startup code, or the program loader. Not initialising
  27053. data in this way can reduce program startup times.
  27054. 'persistent'
  27055. Any variable with the 'persistent' attribute will not be
  27056. initialised by the C runtime startup code. Instead its value will
  27057. be set once, when the application is loaded, and then never
  27058. initialised again, even if the processor is reset or the program
  27059. restarts. Persistent data is intended to be placed into FLASH RAM,
  27060. where its value will be retained across resets. The linker script
  27061. being used to create the application should ensure that persistent
  27062. data is correctly placed.
  27063. 'lower'
  27064. 'upper'
  27065. 'either'
  27066. These attributes are the same as the MSP430 function attributes of
  27067. the same name (*note MSP430 Function Attributes::). These
  27068. attributes can be applied to both functions and variables.
  27069. 
  27070. File: gcc.info, Node: Nvidia PTX Variable Attributes, Next: PowerPC Variable Attributes, Prev: MSP430 Variable Attributes, Up: Variable Attributes
  27071. 6.32.11 Nvidia PTX Variable Attributes
  27072. --------------------------------------
  27073. These variable attributes are supported by the Nvidia PTX back end:
  27074. 'shared'
  27075. Use this attribute to place a variable in the '.shared' memory
  27076. space. This memory space is private to each cooperative thread
  27077. array; only threads within one thread block refer to the same
  27078. instance of the variable. The runtime does not initialize
  27079. variables in this memory space.
  27080. 
  27081. File: gcc.info, Node: PowerPC Variable Attributes, Next: RL78 Variable Attributes, Prev: Nvidia PTX Variable Attributes, Up: Variable Attributes
  27082. 6.32.12 PowerPC Variable Attributes
  27083. -----------------------------------
  27084. Three attributes currently are defined for PowerPC configurations:
  27085. 'altivec', 'ms_struct' and 'gcc_struct'.
  27086. For full documentation of the struct attributes please see the
  27087. documentation in *note x86 Variable Attributes::.
  27088. For documentation of 'altivec' attribute please see the documentation
  27089. in *note PowerPC Type Attributes::.
  27090. 
  27091. File: gcc.info, Node: RL78 Variable Attributes, Next: SPU Variable Attributes, Prev: PowerPC Variable Attributes, Up: Variable Attributes
  27092. 6.32.13 RL78 Variable Attributes
  27093. --------------------------------
  27094. The RL78 back end supports the 'saddr' variable attribute. This
  27095. specifies placement of the corresponding variable in the SADDR area,
  27096. which can be accessed more efficiently than the default memory region.
  27097. 
  27098. File: gcc.info, Node: SPU Variable Attributes, Next: V850 Variable Attributes, Prev: RL78 Variable Attributes, Up: Variable Attributes
  27099. 6.32.14 SPU Variable Attributes
  27100. -------------------------------
  27101. The SPU supports the 'spu_vector' attribute for variables. For
  27102. documentation of this attribute please see the documentation in *note
  27103. SPU Type Attributes::.
  27104. 
  27105. File: gcc.info, Node: V850 Variable Attributes, Next: x86 Variable Attributes, Prev: SPU Variable Attributes, Up: Variable Attributes
  27106. 6.32.15 V850 Variable Attributes
  27107. --------------------------------
  27108. These variable attributes are supported by the V850 back end:
  27109. 'sda'
  27110. Use this attribute to explicitly place a variable in the small data
  27111. area, which can hold up to 64 kilobytes.
  27112. 'tda'
  27113. Use this attribute to explicitly place a variable in the tiny data
  27114. area, which can hold up to 256 bytes in total.
  27115. 'zda'
  27116. Use this attribute to explicitly place a variable in the first 32
  27117. kilobytes of memory.
  27118. 
  27119. File: gcc.info, Node: x86 Variable Attributes, Next: Xstormy16 Variable Attributes, Prev: V850 Variable Attributes, Up: Variable Attributes
  27120. 6.32.16 x86 Variable Attributes
  27121. -------------------------------
  27122. Two attributes are currently defined for x86 configurations: 'ms_struct'
  27123. and 'gcc_struct'.
  27124. 'ms_struct'
  27125. 'gcc_struct'
  27126. If 'packed' is used on a structure, or if bit-fields are used, it
  27127. may be that the Microsoft ABI lays out the structure differently
  27128. than the way GCC normally does. Particularly when moving packed
  27129. data between functions compiled with GCC and the native Microsoft
  27130. compiler (either via function call or as data in a file), it may be
  27131. necessary to access either format.
  27132. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  27133. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  27134. respectively; see *note x86 Options::, for details of how structure
  27135. layout is affected. *Note x86 Type Attributes::, for information
  27136. about the corresponding attributes on types.
  27137. 
  27138. File: gcc.info, Node: Xstormy16 Variable Attributes, Prev: x86 Variable Attributes, Up: Variable Attributes
  27139. 6.32.17 Xstormy16 Variable Attributes
  27140. -------------------------------------
  27141. One attribute is currently defined for xstormy16 configurations:
  27142. 'below100'.
  27143. 'below100'
  27144. If a variable has the 'below100' attribute ('BELOW100' is allowed
  27145. also), GCC places the variable in the first 0x100 bytes of memory
  27146. and use special opcodes to access it. Such variables are placed in
  27147. either the '.bss_below100' section or the '.data_below100' section.
  27148. 
  27149. File: gcc.info, Node: Type Attributes, Next: Label Attributes, Prev: Variable Attributes, Up: C Extensions
  27150. 6.33 Specifying Attributes of Types
  27151. ===================================
  27152. The keyword '__attribute__' allows you to specify special attributes of
  27153. types. Some type attributes apply only to 'struct' and 'union' types,
  27154. while others can apply to any type defined via a 'typedef' declaration.
  27155. Other attributes are defined for functions (*note Function
  27156. Attributes::), labels (*note Label Attributes::), enumerators (*note
  27157. Enumerator Attributes::), statements (*note Statement Attributes::), and
  27158. for variables (*note Variable Attributes::).
  27159. The '__attribute__' keyword is followed by an attribute specification
  27160. inside double parentheses.
  27161. You may specify type attributes in an enum, struct or union type
  27162. declaration or definition by placing them immediately after the
  27163. 'struct', 'union' or 'enum' keyword. A less preferred syntax is to
  27164. place them just past the closing curly brace of the definition.
  27165. You can also include type attributes in a 'typedef' declaration. *Note
  27166. Attribute Syntax::, for details of the exact syntax for using
  27167. attributes.
  27168. * Menu:
  27169. * Common Type Attributes::
  27170. * ARC Type Attributes::
  27171. * ARM Type Attributes::
  27172. * MeP Type Attributes::
  27173. * PowerPC Type Attributes::
  27174. * SPU Type Attributes::
  27175. * x86 Type Attributes::
  27176. 
  27177. File: gcc.info, Node: Common Type Attributes, Next: ARC Type Attributes, Up: Type Attributes
  27178. 6.33.1 Common Type Attributes
  27179. -----------------------------
  27180. The following type attributes are supported on most targets.
  27181. 'aligned (ALIGNMENT)'
  27182. This attribute specifies a minimum alignment (in bytes) for
  27183. variables of the specified type. For example, the declarations:
  27184. struct S { short f[3]; } __attribute__ ((aligned (8)));
  27185. typedef int more_aligned_int __attribute__ ((aligned (8)));
  27186. force the compiler to ensure (as far as it can) that each variable
  27187. whose type is 'struct S' or 'more_aligned_int' is allocated and
  27188. aligned _at least_ on a 8-byte boundary. On a SPARC, having all
  27189. variables of type 'struct S' aligned to 8-byte boundaries allows
  27190. the compiler to use the 'ldd' and 'std' (doubleword load and store)
  27191. instructions when copying one variable of type 'struct S' to
  27192. another, thus improving run-time efficiency.
  27193. Note that the alignment of any given 'struct' or 'union' type is
  27194. required by the ISO C standard to be at least a perfect multiple of
  27195. the lowest common multiple of the alignments of all of the members
  27196. of the 'struct' or 'union' in question. This means that you _can_
  27197. effectively adjust the alignment of a 'struct' or 'union' type by
  27198. attaching an 'aligned' attribute to any one of the members of such
  27199. a type, but the notation illustrated in the example above is a more
  27200. obvious, intuitive, and readable way to request the compiler to
  27201. adjust the alignment of an entire 'struct' or 'union' type.
  27202. As in the preceding example, you can explicitly specify the
  27203. alignment (in bytes) that you wish the compiler to use for a given
  27204. 'struct' or 'union' type. Alternatively, you can leave out the
  27205. alignment factor and just ask the compiler to align a type to the
  27206. maximum useful alignment for the target machine you are compiling
  27207. for. For example, you could write:
  27208. struct S { short f[3]; } __attribute__ ((aligned));
  27209. Whenever you leave out the alignment factor in an 'aligned'
  27210. attribute specification, the compiler automatically sets the
  27211. alignment for the type to the largest alignment that is ever used
  27212. for any data type on the target machine you are compiling for.
  27213. Doing this can often make copy operations more efficient, because
  27214. the compiler can use whatever instructions copy the biggest chunks
  27215. of memory when performing copies to or from the variables that have
  27216. types that you have aligned this way.
  27217. In the example above, if the size of each 'short' is 2 bytes, then
  27218. the size of the entire 'struct S' type is 6 bytes. The smallest
  27219. power of two that is greater than or equal to that is 8, so the
  27220. compiler sets the alignment for the entire 'struct S' type to 8
  27221. bytes.
  27222. Note that although you can ask the compiler to select a
  27223. time-efficient alignment for a given type and then declare only
  27224. individual stand-alone objects of that type, the compiler's ability
  27225. to select a time-efficient alignment is primarily useful only when
  27226. you plan to create arrays of variables having the relevant
  27227. (efficiently aligned) type. If you declare or use arrays of
  27228. variables of an efficiently-aligned type, then it is likely that
  27229. your program also does pointer arithmetic (or subscripting, which
  27230. amounts to the same thing) on pointers to the relevant type, and
  27231. the code that the compiler generates for these pointer arithmetic
  27232. operations is often more efficient for efficiently-aligned types
  27233. than for other types.
  27234. Note that the effectiveness of 'aligned' attributes may be limited
  27235. by inherent limitations in your linker. On many systems, the
  27236. linker is only able to arrange for variables to be aligned up to a
  27237. certain maximum alignment. (For some linkers, the maximum
  27238. supported alignment may be very very small.) If your linker is
  27239. only able to align variables up to a maximum of 8-byte alignment,
  27240. then specifying 'aligned(16)' in an '__attribute__' still only
  27241. provides you with 8-byte alignment. See your linker documentation
  27242. for further information.
  27243. The 'aligned' attribute can only increase alignment. Alignment can
  27244. be decreased by specifying the 'packed' attribute. See below.
  27245. 'warn_if_not_aligned (ALIGNMENT)'
  27246. This attribute specifies a threshold for the structure field,
  27247. measured in bytes. If the structure field is aligned below the
  27248. threshold, a warning will be issued. For example, the declaration:
  27249. typedef unsigned long long __u64
  27250. __attribute__((aligned(4),warn_if_not_aligned(8)));
  27251. struct foo
  27252. {
  27253. int i1;
  27254. int i2;
  27255. __u64 x;
  27256. };
  27257. causes the compiler to issue an warning on 'struct foo', like
  27258. 'warning: alignment 4 of 'struct foo' is less than 8'. It is used
  27259. to define 'struct foo' in such a way that 'struct foo' has the same
  27260. layout and the structure field 'x' has the same alignment when
  27261. '__u64' is aligned at either 4 or 8 bytes. Align 'struct foo' to 8
  27262. bytes:
  27263. struct foo
  27264. {
  27265. int i1;
  27266. int i2;
  27267. __u64 x;
  27268. } __attribute__((aligned(8)));
  27269. silences the warning. The compiler also issues a warning, like
  27270. 'warning: 'x' offset 12 in 'struct foo' isn't aligned to 8', when
  27271. the structure field has the misaligned offset:
  27272. struct foo
  27273. {
  27274. int i1;
  27275. int i2;
  27276. int i3;
  27277. __u64 x;
  27278. } __attribute__((aligned(8)));
  27279. This warning can be disabled by '-Wno-if-not-aligned'.
  27280. 'bnd_variable_size'
  27281. When applied to a structure field, this attribute tells Pointer
  27282. Bounds Checker that the size of this field should not be computed
  27283. using static type information. It may be used to mark
  27284. variably-sized static array fields placed at the end of a
  27285. structure.
  27286. struct S
  27287. {
  27288. int size;
  27289. char data[1];
  27290. }
  27291. S *p = (S *)malloc (sizeof(S) + 100);
  27292. p->data[10] = 0; //Bounds violation
  27293. By using an attribute for the field we may avoid unwanted bound
  27294. violation checks:
  27295. struct S
  27296. {
  27297. int size;
  27298. char data[1] __attribute__((bnd_variable_size));
  27299. }
  27300. S *p = (S *)malloc (sizeof(S) + 100);
  27301. p->data[10] = 0; //OK
  27302. 'deprecated'
  27303. 'deprecated (MSG)'
  27304. The 'deprecated' attribute results in a warning if the type is used
  27305. anywhere in the source file. This is useful when identifying types
  27306. that are expected to be removed in a future version of a program.
  27307. If possible, the warning also includes the location of the
  27308. declaration of the deprecated type, to enable users to easily find
  27309. further information about why the type is deprecated, or what they
  27310. should do instead. Note that the warnings only occur for uses and
  27311. then only if the type is being applied to an identifier that itself
  27312. is not being declared as deprecated.
  27313. typedef int T1 __attribute__ ((deprecated));
  27314. T1 x;
  27315. typedef T1 T2;
  27316. T2 y;
  27317. typedef T1 T3 __attribute__ ((deprecated));
  27318. T3 z __attribute__ ((deprecated));
  27319. results in a warning on line 2 and 3 but not lines 4, 5, or 6. No
  27320. warning is issued for line 4 because T2 is not explicitly
  27321. deprecated. Line 5 has no warning because T3 is explicitly
  27322. deprecated. Similarly for line 6. The optional MSG argument,
  27323. which must be a string, is printed in the warning if present.
  27324. The 'deprecated' attribute can also be used for functions and
  27325. variables (*note Function Attributes::, *note Variable
  27326. Attributes::.)
  27327. 'designated_init'
  27328. This attribute may only be applied to structure types. It
  27329. indicates that any initialization of an object of this type must
  27330. use designated initializers rather than positional initializers.
  27331. The intent of this attribute is to allow the programmer to indicate
  27332. that a structure's layout may change, and that therefore relying on
  27333. positional initialization will result in future breakage.
  27334. GCC emits warnings based on this attribute by default; use
  27335. '-Wno-designated-init' to suppress them.
  27336. 'may_alias'
  27337. Accesses through pointers to types with this attribute are not
  27338. subject to type-based alias analysis, but are instead assumed to be
  27339. able to alias any other type of objects. In the context of section
  27340. 6.5 paragraph 7 of the C99 standard, an lvalue expression
  27341. dereferencing such a pointer is treated like having a character
  27342. type. See '-fstrict-aliasing' for more information on aliasing
  27343. issues. This extension exists to support some vector APIs, in
  27344. which pointers to one vector type are permitted to alias pointers
  27345. to a different vector type.
  27346. Note that an object of a type with this attribute does not have any
  27347. special semantics.
  27348. Example of use:
  27349. typedef short __attribute__((__may_alias__)) short_a;
  27350. int
  27351. main (void)
  27352. {
  27353. int a = 0x12345678;
  27354. short_a *b = (short_a *) &a;
  27355. b[1] = 0;
  27356. if (a == 0x12345678)
  27357. abort();
  27358. exit(0);
  27359. }
  27360. If you replaced 'short_a' with 'short' in the variable declaration,
  27361. the above program would abort when compiled with
  27362. '-fstrict-aliasing', which is on by default at '-O2' or above.
  27363. 'packed'
  27364. This attribute, attached to 'struct' or 'union' type definition,
  27365. specifies that each member (other than zero-width bit-fields) of
  27366. the structure or union is placed to minimize the memory required.
  27367. When attached to an 'enum' definition, it indicates that the
  27368. smallest integral type should be used.
  27369. Specifying the 'packed' attribute for 'struct' and 'union' types is
  27370. equivalent to specifying the 'packed' attribute on each of the
  27371. structure or union members. Specifying the '-fshort-enums' flag on
  27372. the command line is equivalent to specifying the 'packed' attribute
  27373. on all 'enum' definitions.
  27374. In the following example 'struct my_packed_struct''s members are
  27375. packed closely together, but the internal layout of its 's' member
  27376. is not packed--to do that, 'struct my_unpacked_struct' needs to be
  27377. packed too.
  27378. struct my_unpacked_struct
  27379. {
  27380. char c;
  27381. int i;
  27382. };
  27383. struct __attribute__ ((__packed__)) my_packed_struct
  27384. {
  27385. char c;
  27386. int i;
  27387. struct my_unpacked_struct s;
  27388. };
  27389. You may only specify the 'packed' attribute attribute on the
  27390. definition of an 'enum', 'struct' or 'union', not on a 'typedef'
  27391. that does not also define the enumerated type, structure or union.
  27392. 'scalar_storage_order ("ENDIANNESS")'
  27393. When attached to a 'union' or a 'struct', this attribute sets the
  27394. storage order, aka endianness, of the scalar fields of the type, as
  27395. well as the array fields whose component is scalar. The supported
  27396. endiannesses are 'big-endian' and 'little-endian'. The attribute
  27397. has no effects on fields which are themselves a 'union', a 'struct'
  27398. or an array whose component is a 'union' or a 'struct', and it is
  27399. possible for these fields to have a different scalar storage order
  27400. than the enclosing type.
  27401. This attribute is supported only for targets that use a uniform
  27402. default scalar storage order (fortunately, most of them), i.e.
  27403. targets that store the scalars either all in big-endian or all in
  27404. little-endian.
  27405. Additional restrictions are enforced for types with the reverse
  27406. scalar storage order with regard to the scalar storage order of the
  27407. target:
  27408. * Taking the address of a scalar field of a 'union' or a
  27409. 'struct' with reverse scalar storage order is not permitted
  27410. and yields an error.
  27411. * Taking the address of an array field, whose component is
  27412. scalar, of a 'union' or a 'struct' with reverse scalar storage
  27413. order is permitted but yields a warning, unless
  27414. '-Wno-scalar-storage-order' is specified.
  27415. * Taking the address of a 'union' or a 'struct' with reverse
  27416. scalar storage order is permitted.
  27417. These restrictions exist because the storage order attribute is
  27418. lost when the address of a scalar or the address of an array with
  27419. scalar component is taken, so storing indirectly through this
  27420. address generally does not work. The second case is nevertheless
  27421. allowed to be able to perform a block copy from or to the array.
  27422. Moreover, the use of type punning or aliasing to toggle the storage
  27423. order is not supported; that is to say, a given scalar object
  27424. cannot be accessed through distinct types that assign a different
  27425. storage order to it.
  27426. 'transparent_union'
  27427. This attribute, attached to a 'union' type definition, indicates
  27428. that any function parameter having that union type causes calls to
  27429. that function to be treated in a special way.
  27430. First, the argument corresponding to a transparent union type can
  27431. be of any type in the union; no cast is required. Also, if the
  27432. union contains a pointer type, the corresponding argument can be a
  27433. null pointer constant or a void pointer expression; and if the
  27434. union contains a void pointer type, the corresponding argument can
  27435. be any pointer expression. If the union member type is a pointer,
  27436. qualifiers like 'const' on the referenced type must be respected,
  27437. just as with normal pointer conversions.
  27438. Second, the argument is passed to the function using the calling
  27439. conventions of the first member of the transparent union, not the
  27440. calling conventions of the union itself. All members of the union
  27441. must have the same machine representation; this is necessary for
  27442. this argument passing to work properly.
  27443. Transparent unions are designed for library functions that have
  27444. multiple interfaces for compatibility reasons. For example,
  27445. suppose the 'wait' function must accept either a value of type 'int
  27446. *' to comply with POSIX, or a value of type 'union wait *' to
  27447. comply with the 4.1BSD interface. If 'wait''s parameter were 'void
  27448. *', 'wait' would accept both kinds of arguments, but it would also
  27449. accept any other pointer type and this would make argument type
  27450. checking less useful. Instead, '<sys/wait.h>' might define the
  27451. interface as follows:
  27452. typedef union __attribute__ ((__transparent_union__))
  27453. {
  27454. int *__ip;
  27455. union wait *__up;
  27456. } wait_status_ptr_t;
  27457. pid_t wait (wait_status_ptr_t);
  27458. This interface allows either 'int *' or 'union wait *' arguments to
  27459. be passed, using the 'int *' calling convention. The program can
  27460. call 'wait' with arguments of either type:
  27461. int w1 () { int w; return wait (&w); }
  27462. int w2 () { union wait w; return wait (&w); }
  27463. With this interface, 'wait''s implementation might look like this:
  27464. pid_t wait (wait_status_ptr_t p)
  27465. {
  27466. return waitpid (-1, p.__ip, 0);
  27467. }
  27468. 'unused'
  27469. When attached to a type (including a 'union' or a 'struct'), this
  27470. attribute means that variables of that type are meant to appear
  27471. possibly unused. GCC does not produce a warning for any variables
  27472. of that type, even if the variable appears to do nothing. This is
  27473. often the case with lock or thread classes, which are usually
  27474. defined and then not referenced, but contain constructors and
  27475. destructors that have nontrivial bookkeeping functions.
  27476. 'visibility'
  27477. In C++, attribute visibility (*note Function Attributes::) can also
  27478. be applied to class, struct, union and enum types. Unlike other
  27479. type attributes, the attribute must appear between the initial
  27480. keyword and the name of the type; it cannot appear after the body
  27481. of the type.
  27482. Note that the type visibility is applied to vague linkage entities
  27483. associated with the class (vtable, typeinfo node, etc.). In
  27484. particular, if a class is thrown as an exception in one shared
  27485. object and caught in another, the class must have default
  27486. visibility. Otherwise the two shared objects are unable to use the
  27487. same typeinfo node and exception handling will break.
  27488. To specify multiple attributes, separate them by commas within the
  27489. double parentheses: for example, '__attribute__ ((aligned (16),
  27490. packed))'.
  27491. 
  27492. File: gcc.info, Node: ARC Type Attributes, Next: ARM Type Attributes, Prev: Common Type Attributes, Up: Type Attributes
  27493. 6.33.2 ARC Type Attributes
  27494. --------------------------
  27495. Declaring objects with 'uncached' allows you to exclude data-cache
  27496. participation in load and store operations on those objects without
  27497. involving the additional semantic implications of 'volatile'. The '.di'
  27498. instruction suffix is used for all loads and stores of data declared
  27499. 'uncached'.
  27500. 
  27501. File: gcc.info, Node: ARM Type Attributes, Next: MeP Type Attributes, Prev: ARC Type Attributes, Up: Type Attributes
  27502. 6.33.3 ARM Type Attributes
  27503. --------------------------
  27504. On those ARM targets that support 'dllimport' (such as Symbian OS), you
  27505. can use the 'notshared' attribute to indicate that the virtual table and
  27506. other similar data for a class should not be exported from a DLL. For
  27507. example:
  27508. class __declspec(notshared) C {
  27509. public:
  27510. __declspec(dllimport) C();
  27511. virtual void f();
  27512. }
  27513. __declspec(dllexport)
  27514. C::C() {}
  27515. In this code, 'C::C' is exported from the current DLL, but the virtual
  27516. table for 'C' is not exported. (You can use '__attribute__' instead of
  27517. '__declspec' if you prefer, but most Symbian OS code uses '__declspec'.)
  27518. 
  27519. File: gcc.info, Node: MeP Type Attributes, Next: PowerPC Type Attributes, Prev: ARM Type Attributes, Up: Type Attributes
  27520. 6.33.4 MeP Type Attributes
  27521. --------------------------
  27522. Many of the MeP variable attributes may be applied to types as well.
  27523. Specifically, the 'based', 'tiny', 'near', and 'far' attributes may be
  27524. applied to either. The 'io' and 'cb' attributes may not be applied to
  27525. types.
  27526. 
  27527. File: gcc.info, Node: PowerPC Type Attributes, Next: SPU Type Attributes, Prev: MeP Type Attributes, Up: Type Attributes
  27528. 6.33.5 PowerPC Type Attributes
  27529. ------------------------------
  27530. Three attributes currently are defined for PowerPC configurations:
  27531. 'altivec', 'ms_struct' and 'gcc_struct'.
  27532. For full documentation of the 'ms_struct' and 'gcc_struct' attributes
  27533. please see the documentation in *note x86 Type Attributes::.
  27534. The 'altivec' attribute allows one to declare AltiVec vector data types
  27535. supported by the AltiVec Programming Interface Manual. The attribute
  27536. requires an argument to specify one of three vector types: 'vector__',
  27537. 'pixel__' (always followed by unsigned short), and 'bool__' (always
  27538. followed by unsigned).
  27539. __attribute__((altivec(vector__)))
  27540. __attribute__((altivec(pixel__))) unsigned short
  27541. __attribute__((altivec(bool__))) unsigned
  27542. These attributes mainly are intended to support the '__vector',
  27543. '__pixel', and '__bool' AltiVec keywords.
  27544. 
  27545. File: gcc.info, Node: SPU Type Attributes, Next: x86 Type Attributes, Prev: PowerPC Type Attributes, Up: Type Attributes
  27546. 6.33.6 SPU Type Attributes
  27547. --------------------------
  27548. The SPU supports the 'spu_vector' attribute for types. This attribute
  27549. allows one to declare vector data types supported by the
  27550. Sony/Toshiba/IBM SPU Language Extensions Specification. It is intended
  27551. to support the '__vector' keyword.
  27552. 
  27553. File: gcc.info, Node: x86 Type Attributes, Prev: SPU Type Attributes, Up: Type Attributes
  27554. 6.33.7 x86 Type Attributes
  27555. --------------------------
  27556. Two attributes are currently defined for x86 configurations: 'ms_struct'
  27557. and 'gcc_struct'.
  27558. 'ms_struct'
  27559. 'gcc_struct'
  27560. If 'packed' is used on a structure, or if bit-fields are used it
  27561. may be that the Microsoft ABI packs them differently than GCC
  27562. normally packs them. Particularly when moving packed data between
  27563. functions compiled with GCC and the native Microsoft compiler
  27564. (either via function call or as data in a file), it may be
  27565. necessary to access either format.
  27566. The 'ms_struct' and 'gcc_struct' attributes correspond to the
  27567. '-mms-bitfields' and '-mno-ms-bitfields' command-line options,
  27568. respectively; see *note x86 Options::, for details of how structure
  27569. layout is affected. *Note x86 Variable Attributes::, for
  27570. information about the corresponding attributes on variables.
  27571. 
  27572. File: gcc.info, Node: Label Attributes, Next: Enumerator Attributes, Prev: Type Attributes, Up: C Extensions
  27573. 6.34 Label Attributes
  27574. =====================
  27575. GCC allows attributes to be set on C labels. *Note Attribute Syntax::,
  27576. for details of the exact syntax for using attributes. Other attributes
  27577. are available for functions (*note Function Attributes::), variables
  27578. (*note Variable Attributes::), enumerators (*note Enumerator
  27579. Attributes::), statements (*note Statement Attributes::), and for types
  27580. (*note Type Attributes::).
  27581. This example uses the 'cold' label attribute to indicate the
  27582. 'ErrorHandling' branch is unlikely to be taken and that the
  27583. 'ErrorHandling' label is unused:
  27584. asm goto ("some asm" : : : : NoError);
  27585. /* This branch (the fall-through from the asm) is less commonly used */
  27586. ErrorHandling:
  27587. __attribute__((cold, unused)); /* Semi-colon is required here */
  27588. printf("error\n");
  27589. return 0;
  27590. NoError:
  27591. printf("no error\n");
  27592. return 1;
  27593. 'unused'
  27594. This feature is intended for program-generated code that may
  27595. contain unused labels, but which is compiled with '-Wall'. It is
  27596. not normally appropriate to use in it human-written code, though it
  27597. could be useful in cases where the code that jumps to the label is
  27598. contained within an '#ifdef' conditional.
  27599. 'hot'
  27600. The 'hot' attribute on a label is used to inform the compiler that
  27601. the path following the label is more likely than paths that are not
  27602. so annotated. This attribute is used in cases where
  27603. '__builtin_expect' cannot be used, for instance with computed goto
  27604. or 'asm goto'.
  27605. 'cold'
  27606. The 'cold' attribute on labels is used to inform the compiler that
  27607. the path following the label is unlikely to be executed. This
  27608. attribute is used in cases where '__builtin_expect' cannot be used,
  27609. for instance with computed goto or 'asm goto'.
  27610. 
  27611. File: gcc.info, Node: Enumerator Attributes, Next: Statement Attributes, Prev: Label Attributes, Up: C Extensions
  27612. 6.35 Enumerator Attributes
  27613. ==========================
  27614. GCC allows attributes to be set on enumerators. *Note Attribute
  27615. Syntax::, for details of the exact syntax for using attributes. Other
  27616. attributes are available for functions (*note Function Attributes::),
  27617. variables (*note Variable Attributes::), labels (*note Label
  27618. Attributes::), statements (*note Statement Attributes::), and for types
  27619. (*note Type Attributes::).
  27620. This example uses the 'deprecated' enumerator attribute to indicate the
  27621. 'oldval' enumerator is deprecated:
  27622. enum E {
  27623. oldval __attribute__((deprecated)),
  27624. newval
  27625. };
  27626. int
  27627. fn (void)
  27628. {
  27629. return oldval;
  27630. }
  27631. 'deprecated'
  27632. The 'deprecated' attribute results in a warning if the enumerator
  27633. is used anywhere in the source file. This is useful when
  27634. identifying enumerators that are expected to be removed in a future
  27635. version of a program. The warning also includes the location of
  27636. the declaration of the deprecated enumerator, to enable users to
  27637. easily find further information about why the enumerator is
  27638. deprecated, or what they should do instead. Note that the warnings
  27639. only occurs for uses.
  27640. 
  27641. File: gcc.info, Node: Statement Attributes, Next: Attribute Syntax, Prev: Enumerator Attributes, Up: C Extensions
  27642. 6.36 Statement Attributes
  27643. =========================
  27644. GCC allows attributes to be set on null statements. *Note Attribute
  27645. Syntax::, for details of the exact syntax for using attributes. Other
  27646. attributes are available for functions (*note Function Attributes::),
  27647. variables (*note Variable Attributes::), labels (*note Label
  27648. Attributes::), enumerators (*note Enumerator Attributes::), and for
  27649. types (*note Type Attributes::).
  27650. This example uses the 'fallthrough' statement attribute to indicate
  27651. that the '-Wimplicit-fallthrough' warning should not be emitted:
  27652. switch (cond)
  27653. {
  27654. case 1:
  27655. bar (1);
  27656. __attribute__((fallthrough));
  27657. case 2:
  27658. ...
  27659. }
  27660. 'fallthrough'
  27661. The 'fallthrough' attribute with a null statement serves as a
  27662. fallthrough statement. It hints to the compiler that a statement
  27663. that falls through to another case label, or user-defined label in
  27664. a switch statement is intentional and thus the
  27665. '-Wimplicit-fallthrough' warning must not trigger. The fallthrough
  27666. attribute may appear at most once in each attribute list, and may
  27667. not be mixed with other attributes. It can only be used in a
  27668. switch statement (the compiler will issue an error otherwise),
  27669. after a preceding statement and before a logically succeeding case
  27670. label, or user-defined label.
  27671. 
  27672. File: gcc.info, Node: Attribute Syntax, Next: Function Prototypes, Prev: Statement Attributes, Up: C Extensions
  27673. 6.37 Attribute Syntax
  27674. =====================
  27675. This section describes the syntax with which '__attribute__' may be
  27676. used, and the constructs to which attribute specifiers bind, for the C
  27677. language. Some details may vary for C++ and Objective-C. Because of
  27678. infelicities in the grammar for attributes, some forms described here
  27679. may not be successfully parsed in all cases.
  27680. There are some problems with the semantics of attributes in C++. For
  27681. example, there are no manglings for attributes, although they may affect
  27682. code generation, so problems may arise when attributed types are used in
  27683. conjunction with templates or overloading. Similarly, 'typeid' does not
  27684. distinguish between types with different attributes. Support for
  27685. attributes in C++ may be restricted in future to attributes on
  27686. declarations only, but not on nested declarators.
  27687. *Note Function Attributes::, for details of the semantics of attributes
  27688. applying to functions. *Note Variable Attributes::, for details of the
  27689. semantics of attributes applying to variables. *Note Type Attributes::,
  27690. for details of the semantics of attributes applying to structure, union
  27691. and enumerated types. *Note Label Attributes::, for details of the
  27692. semantics of attributes applying to labels. *Note Enumerator
  27693. Attributes::, for details of the semantics of attributes applying to
  27694. enumerators. *Note Statement Attributes::, for details of the semantics
  27695. of attributes applying to statements.
  27696. An "attribute specifier" is of the form '__attribute__
  27697. ((ATTRIBUTE-LIST))'. An "attribute list" is a possibly empty
  27698. comma-separated sequence of "attributes", where each attribute is one of
  27699. the following:
  27700. * Empty. Empty attributes are ignored.
  27701. * An attribute name (which may be an identifier such as 'unused', or
  27702. a reserved word such as 'const').
  27703. * An attribute name followed by a parenthesized list of parameters
  27704. for the attribute. These parameters take one of the following
  27705. forms:
  27706. * An identifier. For example, 'mode' attributes use this form.
  27707. * An identifier followed by a comma and a non-empty
  27708. comma-separated list of expressions. For example, 'format'
  27709. attributes use this form.
  27710. * A possibly empty comma-separated list of expressions. For
  27711. example, 'format_arg' attributes use this form with the list
  27712. being a single integer constant expression, and 'alias'
  27713. attributes use this form with the list being a single string
  27714. constant.
  27715. An "attribute specifier list" is a sequence of one or more attribute
  27716. specifiers, not separated by any other tokens.
  27717. You may optionally specify attribute names with '__' preceding and
  27718. following the name. This allows you to use them in header files without
  27719. being concerned about a possible macro of the same name. For example,
  27720. you may use the attribute name '__noreturn__' instead of 'noreturn'.
  27721. Label Attributes
  27722. ................
  27723. In GNU C, an attribute specifier list may appear after the colon
  27724. following a label, other than a 'case' or 'default' label. GNU C++ only
  27725. permits attributes on labels if the attribute specifier is immediately
  27726. followed by a semicolon (i.e., the label applies to an empty statement).
  27727. If the semicolon is missing, C++ label attributes are ambiguous, as it
  27728. is permissible for a declaration, which could begin with an attribute
  27729. list, to be labelled in C++. Declarations cannot be labelled in C90 or
  27730. C99, so the ambiguity does not arise there.
  27731. Enumerator Attributes
  27732. .....................
  27733. In GNU C, an attribute specifier list may appear as part of an
  27734. enumerator. The attribute goes after the enumeration constant, before
  27735. '=', if present. The optional attribute in the enumerator appertains to
  27736. the enumeration constant. It is not possible to place the attribute
  27737. after the constant expression, if present.
  27738. Statement Attributes
  27739. ....................
  27740. In GNU C, an attribute specifier list may appear as part of a null
  27741. statement. The attribute goes before the semicolon.
  27742. Type Attributes
  27743. ...............
  27744. An attribute specifier list may appear as part of a 'struct', 'union' or
  27745. 'enum' specifier. It may go either immediately after the 'struct',
  27746. 'union' or 'enum' keyword, or after the closing brace. The former
  27747. syntax is preferred. Where attribute specifiers follow the closing
  27748. brace, they are considered to relate to the structure, union or
  27749. enumerated type defined, not to any enclosing declaration the type
  27750. specifier appears in, and the type defined is not complete until after
  27751. the attribute specifiers.
  27752. All other attributes
  27753. ....................
  27754. Otherwise, an attribute specifier appears as part of a declaration,
  27755. counting declarations of unnamed parameters and type names, and relates
  27756. to that declaration (which may be nested in another declaration, for
  27757. example in the case of a parameter declaration), or to a particular
  27758. declarator within a declaration. Where an attribute specifier is
  27759. applied to a parameter declared as a function or an array, it should
  27760. apply to the function or array rather than the pointer to which the
  27761. parameter is implicitly converted, but this is not yet correctly
  27762. implemented.
  27763. Any list of specifiers and qualifiers at the start of a declaration may
  27764. contain attribute specifiers, whether or not such a list may in that
  27765. context contain storage class specifiers. (Some attributes, however,
  27766. are essentially in the nature of storage class specifiers, and only make
  27767. sense where storage class specifiers may be used; for example,
  27768. 'section'.) There is one necessary limitation to this syntax: the first
  27769. old-style parameter declaration in a function definition cannot begin
  27770. with an attribute specifier, because such an attribute applies to the
  27771. function instead by syntax described below (which, however, is not yet
  27772. implemented in this case). In some other cases, attribute specifiers
  27773. are permitted by this grammar but not yet supported by the compiler.
  27774. All attribute specifiers in this place relate to the declaration as a
  27775. whole. In the obsolescent usage where a type of 'int' is implied by the
  27776. absence of type specifiers, such a list of specifiers and qualifiers may
  27777. be an attribute specifier list with no other specifiers or qualifiers.
  27778. At present, the first parameter in a function prototype must have some
  27779. type specifier that is not an attribute specifier; this resolves an
  27780. ambiguity in the interpretation of 'void f(int (__attribute__((foo))
  27781. x))', but is subject to change. At present, if the parentheses of a
  27782. function declarator contain only attributes then those attributes are
  27783. ignored, rather than yielding an error or warning or implying a single
  27784. parameter of type int, but this is subject to change.
  27785. An attribute specifier list may appear immediately before a declarator
  27786. (other than the first) in a comma-separated list of declarators in a
  27787. declaration of more than one identifier using a single list of
  27788. specifiers and qualifiers. Such attribute specifiers apply only to the
  27789. identifier before whose declarator they appear. For example, in
  27790. __attribute__((noreturn)) void d0 (void),
  27791. __attribute__((format(printf, 1, 2))) d1 (const char *, ...),
  27792. d2 (void);
  27793. the 'noreturn' attribute applies to all the functions declared; the
  27794. 'format' attribute only applies to 'd1'.
  27795. An attribute specifier list may appear immediately before the comma,
  27796. '=' or semicolon terminating the declaration of an identifier other than
  27797. a function definition. Such attribute specifiers apply to the declared
  27798. object or function. Where an assembler name for an object or function
  27799. is specified (*note Asm Labels::), the attribute must follow the 'asm'
  27800. specification.
  27801. An attribute specifier list may, in future, be permitted to appear
  27802. after the declarator in a function definition (before any old-style
  27803. parameter declarations or the function body).
  27804. Attribute specifiers may be mixed with type qualifiers appearing inside
  27805. the '[]' of a parameter array declarator, in the C99 construct by which
  27806. such qualifiers are applied to the pointer to which the array is
  27807. implicitly converted. Such attribute specifiers apply to the pointer,
  27808. not to the array, but at present this is not implemented and they are
  27809. ignored.
  27810. An attribute specifier list may appear at the start of a nested
  27811. declarator. At present, there are some limitations in this usage: the
  27812. attributes correctly apply to the declarator, but for most individual
  27813. attributes the semantics this implies are not implemented. When
  27814. attribute specifiers follow the '*' of a pointer declarator, they may be
  27815. mixed with any type qualifiers present. The following describes the
  27816. formal semantics of this syntax. It makes the most sense if you are
  27817. familiar with the formal specification of declarators in the ISO C
  27818. standard.
  27819. Consider (as in C99 subclause 6.7.5 paragraph 4) a declaration 'T D1',
  27820. where 'T' contains declaration specifiers that specify a type TYPE (such
  27821. as 'int') and 'D1' is a declarator that contains an identifier IDENT.
  27822. The type specified for IDENT for derived declarators whose type does not
  27823. include an attribute specifier is as in the ISO C standard.
  27824. If 'D1' has the form '( ATTRIBUTE-SPECIFIER-LIST D )', and the
  27825. declaration 'T D' specifies the type "DERIVED-DECLARATOR-TYPE-LIST TYPE"
  27826. for IDENT, then 'T D1' specifies the type "DERIVED-DECLARATOR-TYPE-LIST
  27827. ATTRIBUTE-SPECIFIER-LIST TYPE" for IDENT.
  27828. If 'D1' has the form '* TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST D',
  27829. and the declaration 'T D' specifies the type
  27830. "DERIVED-DECLARATOR-TYPE-LIST TYPE" for IDENT, then 'T D1' specifies the
  27831. type "DERIVED-DECLARATOR-TYPE-LIST
  27832. TYPE-QUALIFIER-AND-ATTRIBUTE-SPECIFIER-LIST pointer to TYPE" for IDENT.
  27833. For example,
  27834. void (__attribute__((noreturn)) ****f) (void);
  27835. specifies the type "pointer to pointer to pointer to pointer to
  27836. non-returning function returning 'void'". As another example,
  27837. char *__attribute__((aligned(8))) *f;
  27838. specifies the type "pointer to 8-byte-aligned pointer to 'char'". Note
  27839. again that this does not work with most attributes; for example, the
  27840. usage of 'aligned' and 'noreturn' attributes given above is not yet
  27841. supported.
  27842. For compatibility with existing code written for compiler versions that
  27843. did not implement attributes on nested declarators, some laxity is
  27844. allowed in the placing of attributes. If an attribute that only applies
  27845. to types is applied to a declaration, it is treated as applying to the
  27846. type of that declaration. If an attribute that only applies to
  27847. declarations is applied to the type of a declaration, it is treated as
  27848. applying to that declaration; and, for compatibility with code placing
  27849. the attributes immediately before the identifier declared, such an
  27850. attribute applied to a function return type is treated as applying to
  27851. the function type, and such an attribute applied to an array element
  27852. type is treated as applying to the array type. If an attribute that
  27853. only applies to function types is applied to a pointer-to-function type,
  27854. it is treated as applying to the pointer target type; if such an
  27855. attribute is applied to a function return type that is not a
  27856. pointer-to-function type, it is treated as applying to the function
  27857. type.
  27858. 
  27859. File: gcc.info, Node: Function Prototypes, Next: C++ Comments, Prev: Attribute Syntax, Up: C Extensions
  27860. 6.38 Prototypes and Old-Style Function Definitions
  27861. ==================================================
  27862. GNU C extends ISO C to allow a function prototype to override a later
  27863. old-style non-prototype definition. Consider the following example:
  27864. /* Use prototypes unless the compiler is old-fashioned. */
  27865. #ifdef __STDC__
  27866. #define P(x) x
  27867. #else
  27868. #define P(x) ()
  27869. #endif
  27870. /* Prototype function declaration. */
  27871. int isroot P((uid_t));
  27872. /* Old-style function definition. */
  27873. int
  27874. isroot (x) /* ??? lossage here ??? */
  27875. uid_t x;
  27876. {
  27877. return x == 0;
  27878. }
  27879. Suppose the type 'uid_t' happens to be 'short'. ISO C does not allow
  27880. this example, because subword arguments in old-style non-prototype
  27881. definitions are promoted. Therefore in this example the function
  27882. definition's argument is really an 'int', which does not match the
  27883. prototype argument type of 'short'.
  27884. This restriction of ISO C makes it hard to write code that is portable
  27885. to traditional C compilers, because the programmer does not know whether
  27886. the 'uid_t' type is 'short', 'int', or 'long'. Therefore, in cases like
  27887. these GNU C allows a prototype to override a later old-style definition.
  27888. More precisely, in GNU C, a function prototype argument type overrides
  27889. the argument type specified by a later old-style definition if the
  27890. former type is the same as the latter type before promotion. Thus in
  27891. GNU C the above example is equivalent to the following:
  27892. int isroot (uid_t);
  27893. int
  27894. isroot (uid_t x)
  27895. {
  27896. return x == 0;
  27897. }
  27898. GNU C++ does not support old-style function definitions, so this
  27899. extension is irrelevant.
  27900. 
  27901. File: gcc.info, Node: C++ Comments, Next: Dollar Signs, Prev: Function Prototypes, Up: C Extensions
  27902. 6.39 C++ Style Comments
  27903. =======================
  27904. In GNU C, you may use C++ style comments, which start with '//' and
  27905. continue until the end of the line. Many other C implementations allow
  27906. such comments, and they are included in the 1999 C standard. However,
  27907. C++ style comments are not recognized if you specify an '-std' option
  27908. specifying a version of ISO C before C99, or '-ansi' (equivalent to
  27909. '-std=c90').
  27910. 
  27911. File: gcc.info, Node: Dollar Signs, Next: Character Escapes, Prev: C++ Comments, Up: C Extensions
  27912. 6.40 Dollar Signs in Identifier Names
  27913. =====================================
  27914. In GNU C, you may normally use dollar signs in identifier names. This
  27915. is because many traditional C implementations allow such identifiers.
  27916. However, dollar signs in identifiers are not supported on a few target
  27917. machines, typically because the target assembler does not allow them.
  27918. 
  27919. File: gcc.info, Node: Character Escapes, Next: Alignment, Prev: Dollar Signs, Up: C Extensions
  27920. 6.41 The Character <ESC> in Constants
  27921. =====================================
  27922. You can use the sequence '\e' in a string or character constant to stand
  27923. for the ASCII character <ESC>.
  27924. 
  27925. File: gcc.info, Node: Alignment, Next: Inline, Prev: Character Escapes, Up: C Extensions
  27926. 6.42 Inquiring on Alignment of Types or Variables
  27927. =================================================
  27928. The keyword '__alignof__' allows you to inquire about how an object is
  27929. aligned, or the minimum alignment usually required by a type. Its
  27930. syntax is just like 'sizeof'.
  27931. For example, if the target machine requires a 'double' value to be
  27932. aligned on an 8-byte boundary, then '__alignof__ (double)' is 8. This
  27933. is true on many RISC machines. On more traditional machine designs,
  27934. '__alignof__ (double)' is 4 or even 2.
  27935. Some machines never actually require alignment; they allow reference to
  27936. any data type even at an odd address. For these machines, '__alignof__'
  27937. reports the smallest alignment that GCC gives the data type, usually as
  27938. mandated by the target ABI.
  27939. If the operand of '__alignof__' is an lvalue rather than a type, its
  27940. value is the required alignment for its type, taking into account any
  27941. minimum alignment specified with GCC's '__attribute__' extension (*note
  27942. Variable Attributes::). For example, after this declaration:
  27943. struct foo { int x; char y; } foo1;
  27944. the value of '__alignof__ (foo1.y)' is 1, even though its actual
  27945. alignment is probably 2 or 4, the same as '__alignof__ (int)'.
  27946. It is an error to ask for the alignment of an incomplete type.
  27947. 
  27948. File: gcc.info, Node: Inline, Next: Volatiles, Prev: Alignment, Up: C Extensions
  27949. 6.43 An Inline Function is As Fast As a Macro
  27950. =============================================
  27951. By declaring a function inline, you can direct GCC to make calls to that
  27952. function faster. One way GCC can achieve this is to integrate that
  27953. function's code into the code for its callers. This makes execution
  27954. faster by eliminating the function-call overhead; in addition, if any of
  27955. the actual argument values are constant, their known values may permit
  27956. simplifications at compile time so that not all of the inline function's
  27957. code needs to be included. The effect on code size is less predictable;
  27958. object code may be larger or smaller with function inlining, depending
  27959. on the particular case. You can also direct GCC to try to integrate all
  27960. "simple enough" functions into their callers with the option
  27961. '-finline-functions'.
  27962. GCC implements three different semantics of declaring a function
  27963. inline. One is available with '-std=gnu89' or '-fgnu89-inline' or when
  27964. 'gnu_inline' attribute is present on all inline declarations, another
  27965. when '-std=c99', '-std=gnu99' or an option for a later C version is used
  27966. (without '-fgnu89-inline'), and the third is used when compiling C++.
  27967. To declare a function inline, use the 'inline' keyword in its
  27968. declaration, like this:
  27969. static inline int
  27970. inc (int *a)
  27971. {
  27972. return (*a)++;
  27973. }
  27974. If you are writing a header file to be included in ISO C90 programs,
  27975. write '__inline__' instead of 'inline'. *Note Alternate Keywords::.
  27976. The three types of inlining behave similarly in two important cases:
  27977. when the 'inline' keyword is used on a 'static' function, like the
  27978. example above, and when a function is first declared without using the
  27979. 'inline' keyword and then is defined with 'inline', like this:
  27980. extern int inc (int *a);
  27981. inline int
  27982. inc (int *a)
  27983. {
  27984. return (*a)++;
  27985. }
  27986. In both of these common cases, the program behaves the same as if you
  27987. had not used the 'inline' keyword, except for its speed.
  27988. When a function is both inline and 'static', if all calls to the
  27989. function are integrated into the caller, and the function's address is
  27990. never used, then the function's own assembler code is never referenced.
  27991. In this case, GCC does not actually output assembler code for the
  27992. function, unless you specify the option '-fkeep-inline-functions'. If
  27993. there is a nonintegrated call, then the function is compiled to
  27994. assembler code as usual. The function must also be compiled as usual if
  27995. the program refers to its address, because that cannot be inlined.
  27996. Note that certain usages in a function definition can make it
  27997. unsuitable for inline substitution. Among these usages are: variadic
  27998. functions, use of 'alloca', use of computed goto (*note Labels as
  27999. Values::), use of nonlocal goto, use of nested functions, use of
  28000. 'setjmp', use of '__builtin_longjmp' and use of '__builtin_return' or
  28001. '__builtin_apply_args'. Using '-Winline' warns when a function marked
  28002. 'inline' could not be substituted, and gives the reason for the failure.
  28003. As required by ISO C++, GCC considers member functions defined within
  28004. the body of a class to be marked inline even if they are not explicitly
  28005. declared with the 'inline' keyword. You can override this with
  28006. '-fno-default-inline'; *note Options Controlling C++ Dialect: C++
  28007. Dialect Options.
  28008. GCC does not inline any functions when not optimizing unless you
  28009. specify the 'always_inline' attribute for the function, like this:
  28010. /* Prototype. */
  28011. inline void foo (const char) __attribute__((always_inline));
  28012. The remainder of this section is specific to GNU C90 inlining.
  28013. When an inline function is not 'static', then the compiler must assume
  28014. that there may be calls from other source files; since a global symbol
  28015. can be defined only once in any program, the function must not be
  28016. defined in the other source files, so the calls therein cannot be
  28017. integrated. Therefore, a non-'static' inline function is always
  28018. compiled on its own in the usual fashion.
  28019. If you specify both 'inline' and 'extern' in the function definition,
  28020. then the definition is used only for inlining. In no case is the
  28021. function compiled on its own, not even if you refer to its address
  28022. explicitly. Such an address becomes an external reference, as if you
  28023. had only declared the function, and had not defined it.
  28024. This combination of 'inline' and 'extern' has almost the effect of a
  28025. macro. The way to use it is to put a function definition in a header
  28026. file with these keywords, and put another copy of the definition
  28027. (lacking 'inline' and 'extern') in a library file. The definition in
  28028. the header file causes most calls to the function to be inlined. If any
  28029. uses of the function remain, they refer to the single copy in the
  28030. library.
  28031. 
  28032. File: gcc.info, Node: Volatiles, Next: Using Assembly Language with C, Prev: Inline, Up: C Extensions
  28033. 6.44 When is a Volatile Object Accessed?
  28034. ========================================
  28035. C has the concept of volatile objects. These are normally accessed by
  28036. pointers and used for accessing hardware or inter-thread communication.
  28037. The standard encourages compilers to refrain from optimizations
  28038. concerning accesses to volatile objects, but leaves it implementation
  28039. defined as to what constitutes a volatile access. The minimum
  28040. requirement is that at a sequence point all previous accesses to
  28041. volatile objects have stabilized and no subsequent accesses have
  28042. occurred. Thus an implementation is free to reorder and combine
  28043. volatile accesses that occur between sequence points, but cannot do so
  28044. for accesses across a sequence point. The use of volatile does not
  28045. allow you to violate the restriction on updating objects multiple times
  28046. between two sequence points.
  28047. Accesses to non-volatile objects are not ordered with respect to
  28048. volatile accesses. You cannot use a volatile object as a memory barrier
  28049. to order a sequence of writes to non-volatile memory. For instance:
  28050. int *ptr = SOMETHING;
  28051. volatile int vobj;
  28052. *ptr = SOMETHING;
  28053. vobj = 1;
  28054. Unless *PTR and VOBJ can be aliased, it is not guaranteed that the write
  28055. to *PTR occurs by the time the update of VOBJ happens. If you need this
  28056. guarantee, you must use a stronger memory barrier such as:
  28057. int *ptr = SOMETHING;
  28058. volatile int vobj;
  28059. *ptr = SOMETHING;
  28060. asm volatile ("" : : : "memory");
  28061. vobj = 1;
  28062. A scalar volatile object is read when it is accessed in a void context:
  28063. volatile int *src = SOMEVALUE;
  28064. *src;
  28065. Such expressions are rvalues, and GCC implements this as a read of the
  28066. volatile object being pointed to.
  28067. Assignments are also expressions and have an rvalue. However when
  28068. assigning to a scalar volatile, the volatile object is not reread,
  28069. regardless of whether the assignment expression's rvalue is used or not.
  28070. If the assignment's rvalue is used, the value is that assigned to the
  28071. volatile object. For instance, there is no read of VOBJ in all the
  28072. following cases:
  28073. int obj;
  28074. volatile int vobj;
  28075. vobj = SOMETHING;
  28076. obj = vobj = SOMETHING;
  28077. obj ? vobj = ONETHING : vobj = ANOTHERTHING;
  28078. obj = (SOMETHING, vobj = ANOTHERTHING);
  28079. If you need to read the volatile object after an assignment has
  28080. occurred, you must use a separate expression with an intervening
  28081. sequence point.
  28082. As bit-fields are not individually addressable, volatile bit-fields may
  28083. be implicitly read when written to, or when adjacent bit-fields are
  28084. accessed. Bit-field operations may be optimized such that adjacent
  28085. bit-fields are only partially accessed, if they straddle a storage unit
  28086. boundary. For these reasons it is unwise to use volatile bit-fields to
  28087. access hardware.
  28088. 
  28089. File: gcc.info, Node: Using Assembly Language with C, Next: Alternate Keywords, Prev: Volatiles, Up: C Extensions
  28090. 6.45 How to Use Inline Assembly Language in C Code
  28091. ==================================================
  28092. The 'asm' keyword allows you to embed assembler instructions within C
  28093. code. GCC provides two forms of inline 'asm' statements. A "basic
  28094. 'asm'" statement is one with no operands (*note Basic Asm::), while an
  28095. "extended 'asm'" statement (*note Extended Asm::) includes one or more
  28096. operands. The extended form is preferred for mixing C and assembly
  28097. language within a function, but to include assembly language at top
  28098. level you must use basic 'asm'.
  28099. You can also use the 'asm' keyword to override the assembler name for a
  28100. C symbol, or to place a C variable in a specific register.
  28101. * Menu:
  28102. * Basic Asm:: Inline assembler without operands.
  28103. * Extended Asm:: Inline assembler with operands.
  28104. * Constraints:: Constraints for 'asm' operands
  28105. * Asm Labels:: Specifying the assembler name to use for a C symbol.
  28106. * Explicit Register Variables:: Defining variables residing in specified
  28107. registers.
  28108. * Size of an asm:: How GCC calculates the size of an 'asm' block.
  28109. 
  28110. File: gcc.info, Node: Basic Asm, Next: Extended Asm, Up: Using Assembly Language with C
  28111. 6.45.1 Basic Asm -- Assembler Instructions Without Operands
  28112. -----------------------------------------------------------
  28113. A basic 'asm' statement has the following syntax:
  28114. asm ASM-QUALIFIERS ( ASSEMBLERINSTRUCTIONS )
  28115. The 'asm' keyword is a GNU extension. When writing code that can be
  28116. compiled with '-ansi' and the various '-std' options, use '__asm__'
  28117. instead of 'asm' (*note Alternate Keywords::).
  28118. Qualifiers
  28119. ..........
  28120. 'volatile'
  28121. The optional 'volatile' qualifier has no effect. All basic 'asm'
  28122. blocks are implicitly volatile.
  28123. 'inline'
  28124. If you use the 'inline' qualifier, then for inlining purposes the
  28125. size of the asm is taken as the smallest size possible (*note Size
  28126. of an asm::).
  28127. Parameters
  28128. ..........
  28129. ASSEMBLERINSTRUCTIONS
  28130. This is a literal string that specifies the assembler code. The
  28131. string can contain any instructions recognized by the assembler,
  28132. including directives. GCC does not parse the assembler
  28133. instructions themselves and does not know what they mean or even
  28134. whether they are valid assembler input.
  28135. You may place multiple assembler instructions together in a single
  28136. 'asm' string, separated by the characters normally used in assembly
  28137. code for the system. A combination that works in most places is a
  28138. newline to break the line, plus a tab character (written as
  28139. '\n\t'). Some assemblers allow semicolons as a line separator.
  28140. However, note that some assembler dialects use semicolons to start
  28141. a comment.
  28142. Remarks
  28143. .......
  28144. Using extended 'asm' (*note Extended Asm::) typically produces smaller,
  28145. safer, and more efficient code, and in most cases it is a better
  28146. solution than basic 'asm'. However, there are two situations where only
  28147. basic 'asm' can be used:
  28148. * Extended 'asm' statements have to be inside a C function, so to
  28149. write inline assembly language at file scope ("top-level"), outside
  28150. of C functions, you must use basic 'asm'. You can use this
  28151. technique to emit assembler directives, define assembly language
  28152. macros that can be invoked elsewhere in the file, or write entire
  28153. functions in assembly language.
  28154. * Functions declared with the 'naked' attribute also require basic
  28155. 'asm' (*note Function Attributes::).
  28156. Safely accessing C data and calling functions from basic 'asm' is more
  28157. complex than it may appear. To access C data, it is better to use
  28158. extended 'asm'.
  28159. Do not expect a sequence of 'asm' statements to remain perfectly
  28160. consecutive after compilation. If certain instructions need to remain
  28161. consecutive in the output, put them in a single multi-instruction 'asm'
  28162. statement. Note that GCC's optimizers can move 'asm' statements
  28163. relative to other code, including across jumps.
  28164. 'asm' statements may not perform jumps into other 'asm' statements.
  28165. GCC does not know about these jumps, and therefore cannot take account
  28166. of them when deciding how to optimize. Jumps from 'asm' to C labels are
  28167. only supported in extended 'asm'.
  28168. Under certain circumstances, GCC may duplicate (or remove duplicates
  28169. of) your assembly code when optimizing. This can lead to unexpected
  28170. duplicate symbol errors during compilation if your assembly code defines
  28171. symbols or labels.
  28172. *Warning:* The C standards do not specify semantics for 'asm', making
  28173. it a potential source of incompatibilities between compilers. These
  28174. incompatibilities may not produce compiler warnings/errors.
  28175. GCC does not parse basic 'asm''s ASSEMBLERINSTRUCTIONS, which means
  28176. there is no way to communicate to the compiler what is happening inside
  28177. them. GCC has no visibility of symbols in the 'asm' and may discard
  28178. them as unreferenced. It also does not know about side effects of the
  28179. assembler code, such as modifications to memory or registers. Unlike
  28180. some compilers, GCC assumes that no changes to general purpose registers
  28181. occur. This assumption may change in a future release.
  28182. To avoid complications from future changes to the semantics and the
  28183. compatibility issues between compilers, consider replacing basic 'asm'
  28184. with extended 'asm'. See How to convert from basic asm to extended asm
  28185. (https://gcc.gnu.org/wiki/ConvertBasicAsmToExtended) for information
  28186. about how to perform this conversion.
  28187. The compiler copies the assembler instructions in a basic 'asm'
  28188. verbatim to the assembly language output file, without processing
  28189. dialects or any of the '%' operators that are available with extended
  28190. 'asm'. This results in minor differences between basic 'asm' strings
  28191. and extended 'asm' templates. For example, to refer to registers you
  28192. might use '%eax' in basic 'asm' and '%%eax' in extended 'asm'.
  28193. On targets such as x86 that support multiple assembler dialects, all
  28194. basic 'asm' blocks use the assembler dialect specified by the '-masm'
  28195. command-line option (*note x86 Options::). Basic 'asm' provides no
  28196. mechanism to provide different assembler strings for different dialects.
  28197. For basic 'asm' with non-empty assembler string GCC assumes the
  28198. assembler block does not change any general purpose registers, but it
  28199. may read or write any globally accessible variable.
  28200. Here is an example of basic 'asm' for i386:
  28201. /* Note that this code will not compile with -masm=intel */
  28202. #define DebugBreak() asm("int $3")
  28203. 
  28204. File: gcc.info, Node: Extended Asm, Next: Constraints, Prev: Basic Asm, Up: Using Assembly Language with C
  28205. 6.45.2 Extended Asm - Assembler Instructions with C Expression Operands
  28206. -----------------------------------------------------------------------
  28207. With extended 'asm' you can read and write C variables from assembler
  28208. and perform jumps from assembler code to C labels. Extended 'asm'
  28209. syntax uses colons (':') to delimit the operand parameters after the
  28210. assembler template:
  28211. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  28212. : OUTPUTOPERANDS
  28213. [ : INPUTOPERANDS
  28214. [ : CLOBBERS ] ])
  28215. asm ASM-QUALIFIERS ( ASSEMBLERTEMPLATE
  28216. :
  28217. : INPUTOPERANDS
  28218. : CLOBBERS
  28219. : GOTOLABELS)
  28220. where in the last form, ASM-QUALIFIERS contains 'goto' (and in the
  28221. first form, not).
  28222. The 'asm' keyword is a GNU extension. When writing code that can be
  28223. compiled with '-ansi' and the various '-std' options, use '__asm__'
  28224. instead of 'asm' (*note Alternate Keywords::).
  28225. Qualifiers
  28226. ..........
  28227. 'volatile'
  28228. The typical use of extended 'asm' statements is to manipulate input
  28229. values to produce output values. However, your 'asm' statements
  28230. may also produce side effects. If so, you may need to use the
  28231. 'volatile' qualifier to disable certain optimizations. *Note
  28232. Volatile::.
  28233. 'inline'
  28234. If you use the 'inline' qualifier, then for inlining purposes the
  28235. size of the asm is taken as the smallest size possible (*note Size
  28236. of an asm::).
  28237. 'goto'
  28238. This qualifier informs the compiler that the 'asm' statement may
  28239. perform a jump to one of the labels listed in the GOTOLABELS.
  28240. *Note GotoLabels::.
  28241. Parameters
  28242. ..........
  28243. ASSEMBLERTEMPLATE
  28244. This is a literal string that is the template for the assembler
  28245. code. It is a combination of fixed text and tokens that refer to
  28246. the input, output, and goto parameters. *Note AssemblerTemplate::.
  28247. OUTPUTOPERANDS
  28248. A comma-separated list of the C variables modified by the
  28249. instructions in the ASSEMBLERTEMPLATE. An empty list is permitted.
  28250. *Note OutputOperands::.
  28251. INPUTOPERANDS
  28252. A comma-separated list of C expressions read by the instructions in
  28253. the ASSEMBLERTEMPLATE. An empty list is permitted. *Note
  28254. InputOperands::.
  28255. CLOBBERS
  28256. A comma-separated list of registers or other values changed by the
  28257. ASSEMBLERTEMPLATE, beyond those listed as outputs. An empty list
  28258. is permitted. *Note Clobbers and Scratch Registers::.
  28259. GOTOLABELS
  28260. When you are using the 'goto' form of 'asm', this section contains
  28261. the list of all C labels to which the code in the ASSEMBLERTEMPLATE
  28262. may jump. *Note GotoLabels::.
  28263. 'asm' statements may not perform jumps into other 'asm' statements,
  28264. only to the listed GOTOLABELS. GCC's optimizers do not know about
  28265. other jumps; therefore they cannot take account of them when
  28266. deciding how to optimize.
  28267. The total number of input + output + goto operands is limited to 30.
  28268. Remarks
  28269. .......
  28270. The 'asm' statement allows you to include assembly instructions directly
  28271. within C code. This may help you to maximize performance in
  28272. time-sensitive code or to access assembly instructions that are not
  28273. readily available to C programs.
  28274. Note that extended 'asm' statements must be inside a function. Only
  28275. basic 'asm' may be outside functions (*note Basic Asm::). Functions
  28276. declared with the 'naked' attribute also require basic 'asm' (*note
  28277. Function Attributes::).
  28278. While the uses of 'asm' are many and varied, it may help to think of an
  28279. 'asm' statement as a series of low-level instructions that convert input
  28280. parameters to output parameters. So a simple (if not particularly
  28281. useful) example for i386 using 'asm' might look like this:
  28282. int src = 1;
  28283. int dst;
  28284. asm ("mov %1, %0\n\t"
  28285. "add $1, %0"
  28286. : "=r" (dst)
  28287. : "r" (src));
  28288. printf("%d\n", dst);
  28289. This code copies 'src' to 'dst' and add 1 to 'dst'.
  28290. 6.45.2.1 Volatile
  28291. .................
  28292. GCC's optimizers sometimes discard 'asm' statements if they determine
  28293. there is no need for the output variables. Also, the optimizers may
  28294. move code out of loops if they believe that the code will always return
  28295. the same result (i.e. none of its input values change between calls).
  28296. Using the 'volatile' qualifier disables these optimizations. 'asm'
  28297. statements that have no output operands, including 'asm goto'
  28298. statements, are implicitly volatile.
  28299. This i386 code demonstrates a case that does not use (or require) the
  28300. 'volatile' qualifier. If it is performing assertion checking, this code
  28301. uses 'asm' to perform the validation. Otherwise, 'dwRes' is
  28302. unreferenced by any code. As a result, the optimizers can discard the
  28303. 'asm' statement, which in turn removes the need for the entire 'DoCheck'
  28304. routine. By omitting the 'volatile' qualifier when it isn't needed you
  28305. allow the optimizers to produce the most efficient code possible.
  28306. void DoCheck(uint32_t dwSomeValue)
  28307. {
  28308. uint32_t dwRes;
  28309. // Assumes dwSomeValue is not zero.
  28310. asm ("bsfl %1,%0"
  28311. : "=r" (dwRes)
  28312. : "r" (dwSomeValue)
  28313. : "cc");
  28314. assert(dwRes > 3);
  28315. }
  28316. The next example shows a case where the optimizers can recognize that
  28317. the input ('dwSomeValue') never changes during the execution of the
  28318. function and can therefore move the 'asm' outside the loop to produce
  28319. more efficient code. Again, using 'volatile' disables this type of
  28320. optimization.
  28321. void do_print(uint32_t dwSomeValue)
  28322. {
  28323. uint32_t dwRes;
  28324. for (uint32_t x=0; x < 5; x++)
  28325. {
  28326. // Assumes dwSomeValue is not zero.
  28327. asm ("bsfl %1,%0"
  28328. : "=r" (dwRes)
  28329. : "r" (dwSomeValue)
  28330. : "cc");
  28331. printf("%u: %u %u\n", x, dwSomeValue, dwRes);
  28332. }
  28333. }
  28334. The following example demonstrates a case where you need to use the
  28335. 'volatile' qualifier. It uses the x86 'rdtsc' instruction, which reads
  28336. the computer's time-stamp counter. Without the 'volatile' qualifier,
  28337. the optimizers might assume that the 'asm' block will always return the
  28338. same value and therefore optimize away the second call.
  28339. uint64_t msr;
  28340. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  28341. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  28342. "or %%rdx, %0" // 'Or' in the lower bits.
  28343. : "=a" (msr)
  28344. :
  28345. : "rdx");
  28346. printf("msr: %llx\n", msr);
  28347. // Do other work...
  28348. // Reprint the timestamp
  28349. asm volatile ( "rdtsc\n\t" // Returns the time in EDX:EAX.
  28350. "shl $32, %%rdx\n\t" // Shift the upper bits left.
  28351. "or %%rdx, %0" // 'Or' in the lower bits.
  28352. : "=a" (msr)
  28353. :
  28354. : "rdx");
  28355. printf("msr: %llx\n", msr);
  28356. GCC's optimizers do not treat this code like the non-volatile code in
  28357. the earlier examples. They do not move it out of loops or omit it on
  28358. the assumption that the result from a previous call is still valid.
  28359. Note that the compiler can move even volatile 'asm' instructions
  28360. relative to other code, including across jump instructions. For
  28361. example, on many targets there is a system register that controls the
  28362. rounding mode of floating-point operations. Setting it with a volatile
  28363. 'asm', as in the following PowerPC example, does not work reliably.
  28364. asm volatile("mtfsf 255, %0" : : "f" (fpenv));
  28365. sum = x + y;
  28366. The compiler may move the addition back before the volatile 'asm'. To
  28367. make it work as expected, add an artificial dependency to the 'asm' by
  28368. referencing a variable in the subsequent code, for example:
  28369. asm volatile ("mtfsf 255,%1" : "=X" (sum) : "f" (fpenv));
  28370. sum = x + y;
  28371. Under certain circumstances, GCC may duplicate (or remove duplicates
  28372. of) your assembly code when optimizing. This can lead to unexpected
  28373. duplicate symbol errors during compilation if your asm code defines
  28374. symbols or labels. Using '%=' (*note AssemblerTemplate::) may help
  28375. resolve this problem.
  28376. 6.45.2.2 Assembler Template
  28377. ...........................
  28378. An assembler template is a literal string containing assembler
  28379. instructions. The compiler replaces tokens in the template that refer
  28380. to inputs, outputs, and goto labels, and then outputs the resulting
  28381. string to the assembler. The string can contain any instructions
  28382. recognized by the assembler, including directives. GCC does not parse
  28383. the assembler instructions themselves and does not know what they mean
  28384. or even whether they are valid assembler input. However, it does count
  28385. the statements (*note Size of an asm::).
  28386. You may place multiple assembler instructions together in a single
  28387. 'asm' string, separated by the characters normally used in assembly code
  28388. for the system. A combination that works in most places is a newline to
  28389. break the line, plus a tab character to move to the instruction field
  28390. (written as '\n\t'). Some assemblers allow semicolons as a line
  28391. separator. However, note that some assembler dialects use semicolons to
  28392. start a comment.
  28393. Do not expect a sequence of 'asm' statements to remain perfectly
  28394. consecutive after compilation, even when you are using the 'volatile'
  28395. qualifier. If certain instructions need to remain consecutive in the
  28396. output, put them in a single multi-instruction asm statement.
  28397. Accessing data from C programs without using input/output operands
  28398. (such as by using global symbols directly from the assembler template)
  28399. may not work as expected. Similarly, calling functions directly from an
  28400. assembler template requires a detailed understanding of the target
  28401. assembler and ABI.
  28402. Since GCC does not parse the assembler template, it has no visibility
  28403. of any symbols it references. This may result in GCC discarding those
  28404. symbols as unreferenced unless they are also listed as input, output, or
  28405. goto operands.
  28406. Special format strings
  28407. ......................
  28408. In addition to the tokens described by the input, output, and goto
  28409. operands, these tokens have special meanings in the assembler template:
  28410. '%%'
  28411. Outputs a single '%' into the assembler code.
  28412. '%='
  28413. Outputs a number that is unique to each instance of the 'asm'
  28414. statement in the entire compilation. This option is useful when
  28415. creating local labels and referring to them multiple times in a
  28416. single template that generates multiple assembler instructions.
  28417. '%{'
  28418. '%|'
  28419. '%}'
  28420. Outputs '{', '|', and '}' characters (respectively) into the
  28421. assembler code. When unescaped, these characters have special
  28422. meaning to indicate multiple assembler dialects, as described
  28423. below.
  28424. Multiple assembler dialects in 'asm' templates
  28425. ..............................................
  28426. On targets such as x86, GCC supports multiple assembler dialects. The
  28427. '-masm' option controls which dialect GCC uses as its default for inline
  28428. assembler. The target-specific documentation for the '-masm' option
  28429. contains the list of supported dialects, as well as the default dialect
  28430. if the option is not specified. This information may be important to
  28431. understand, since assembler code that works correctly when compiled
  28432. using one dialect will likely fail if compiled using another. *Note x86
  28433. Options::.
  28434. If your code needs to support multiple assembler dialects (for example,
  28435. if you are writing public headers that need to support a variety of
  28436. compilation options), use constructs of this form:
  28437. { dialect0 | dialect1 | dialect2... }
  28438. This construct outputs 'dialect0' when using dialect #0 to compile the
  28439. code, 'dialect1' for dialect #1, etc. If there are fewer alternatives
  28440. within the braces than the number of dialects the compiler supports, the
  28441. construct outputs nothing.
  28442. For example, if an x86 compiler supports two dialects ('att', 'intel'),
  28443. an assembler template such as this:
  28444. "bt{l %[Offset],%[Base] | %[Base],%[Offset]}; jc %l2"
  28445. is equivalent to one of
  28446. "btl %[Offset],%[Base] ; jc %l2" /* att dialect */
  28447. "bt %[Base],%[Offset]; jc %l2" /* intel dialect */
  28448. Using that same compiler, this code:
  28449. "xchg{l}\t{%%}ebx, %1"
  28450. corresponds to either
  28451. "xchgl\t%%ebx, %1" /* att dialect */
  28452. "xchg\tebx, %1" /* intel dialect */
  28453. There is no support for nesting dialect alternatives.
  28454. 6.45.2.3 Output Operands
  28455. ........................
  28456. An 'asm' statement has zero or more output operands indicating the names
  28457. of C variables modified by the assembler code.
  28458. In this i386 example, 'old' (referred to in the template string as
  28459. '%0') and '*Base' (as '%1') are outputs and 'Offset' ('%2') is an input:
  28460. bool old;
  28461. __asm__ ("btsl %2,%1\n\t" // Turn on zero-based bit #Offset in Base.
  28462. "sbb %0,%0" // Use the CF to calculate old.
  28463. : "=r" (old), "+rm" (*Base)
  28464. : "Ir" (Offset)
  28465. : "cc");
  28466. return old;
  28467. Operands are separated by commas. Each operand has this format:
  28468. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CVARIABLENAME)
  28469. ASMSYMBOLICNAME
  28470. Specifies a symbolic name for the operand. Reference the name in
  28471. the assembler template by enclosing it in square brackets (i.e.
  28472. '%[Value]'). The scope of the name is the 'asm' statement that
  28473. contains the definition. Any valid C variable name is acceptable,
  28474. including names already defined in the surrounding code. No two
  28475. operands within the same 'asm' statement can use the same symbolic
  28476. name.
  28477. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  28478. the operand in the list of operands in the assembler template. For
  28479. example if there are three output operands, use '%0' in the
  28480. template to refer to the first, '%1' for the second, and '%2' for
  28481. the third.
  28482. CONSTRAINT
  28483. A string constant specifying constraints on the placement of the
  28484. operand; *Note Constraints::, for details.
  28485. Output constraints must begin with either '=' (a variable
  28486. overwriting an existing value) or '+' (when reading and writing).
  28487. When using '=', do not assume the location contains the existing
  28488. value on entry to the 'asm', except when the operand is tied to an
  28489. input; *note Input Operands: InputOperands.
  28490. After the prefix, there must be one or more additional constraints
  28491. (*note Constraints::) that describe where the value resides.
  28492. Common constraints include 'r' for register and 'm' for memory.
  28493. When you list more than one possible location (for example,
  28494. '"=rm"'), the compiler chooses the most efficient one based on the
  28495. current context. If you list as many alternates as the 'asm'
  28496. statement allows, you permit the optimizers to produce the best
  28497. possible code. If you must use a specific register, but your
  28498. Machine Constraints do not provide sufficient control to select the
  28499. specific register you want, local register variables may provide a
  28500. solution (*note Local Register Variables::).
  28501. CVARIABLENAME
  28502. Specifies a C lvalue expression to hold the output, typically a
  28503. variable name. The enclosing parentheses are a required part of
  28504. the syntax.
  28505. When the compiler selects the registers to use to represent the output
  28506. operands, it does not use any of the clobbered registers (*note Clobbers
  28507. and Scratch Registers::).
  28508. Output operand expressions must be lvalues. The compiler cannot check
  28509. whether the operands have data types that are reasonable for the
  28510. instruction being executed. For output expressions that are not
  28511. directly addressable (for example a bit-field), the constraint must
  28512. allow a register. In that case, GCC uses the register as the output of
  28513. the 'asm', and then stores that register into the output.
  28514. Operands using the '+' constraint modifier count as two operands (that
  28515. is, both as input and output) towards the total maximum of 30 operands
  28516. per 'asm' statement.
  28517. Use the '&' constraint modifier (*note Modifiers::) on all output
  28518. operands that must not overlap an input. Otherwise, GCC may allocate
  28519. the output operand in the same register as an unrelated input operand,
  28520. on the assumption that the assembler code consumes its inputs before
  28521. producing outputs. This assumption may be false if the assembler code
  28522. actually consists of more than one instruction.
  28523. The same problem can occur if one output parameter (A) allows a
  28524. register constraint and another output parameter (B) allows a memory
  28525. constraint. The code generated by GCC to access the memory address in B
  28526. can contain registers which _might_ be shared by A, and GCC considers
  28527. those registers to be inputs to the asm. As above, GCC assumes that
  28528. such input registers are consumed before any outputs are written. This
  28529. assumption may result in incorrect behavior if the asm writes to A
  28530. before using B. Combining the '&' modifier with the register constraint
  28531. on A ensures that modifying A does not affect the address referenced by
  28532. B. Otherwise, the location of B is undefined if A is modified before
  28533. using B.
  28534. 'asm' supports operand modifiers on operands (for example '%k2' instead
  28535. of simply '%2'). Typically these qualifiers are hardware dependent.
  28536. The list of supported modifiers for x86 is found at *note x86 Operand
  28537. modifiers: x86Operandmodifiers.
  28538. If the C code that follows the 'asm' makes no use of any of the output
  28539. operands, use 'volatile' for the 'asm' statement to prevent the
  28540. optimizers from discarding the 'asm' statement as unneeded (see *note
  28541. Volatile::).
  28542. This code makes no use of the optional ASMSYMBOLICNAME. Therefore it
  28543. references the first output operand as '%0' (were there a second, it
  28544. would be '%1', etc). The number of the first input operand is one
  28545. greater than that of the last output operand. In this i386 example,
  28546. that makes 'Mask' referenced as '%1':
  28547. uint32_t Mask = 1234;
  28548. uint32_t Index;
  28549. asm ("bsfl %1, %0"
  28550. : "=r" (Index)
  28551. : "r" (Mask)
  28552. : "cc");
  28553. That code overwrites the variable 'Index' ('='), placing the value in a
  28554. register ('r'). Using the generic 'r' constraint instead of a
  28555. constraint for a specific register allows the compiler to pick the
  28556. register to use, which can result in more efficient code. This may not
  28557. be possible if an assembler instruction requires a specific register.
  28558. The following i386 example uses the ASMSYMBOLICNAME syntax. It
  28559. produces the same result as the code above, but some may consider it
  28560. more readable or more maintainable since reordering index numbers is not
  28561. necessary when adding or removing operands. The names 'aIndex' and
  28562. 'aMask' are only used in this example to emphasize which names get used
  28563. where. It is acceptable to reuse the names 'Index' and 'Mask'.
  28564. uint32_t Mask = 1234;
  28565. uint32_t Index;
  28566. asm ("bsfl %[aMask], %[aIndex]"
  28567. : [aIndex] "=r" (Index)
  28568. : [aMask] "r" (Mask)
  28569. : "cc");
  28570. Here are some more examples of output operands.
  28571. uint32_t c = 1;
  28572. uint32_t d;
  28573. uint32_t *e = &c;
  28574. asm ("mov %[e], %[d]"
  28575. : [d] "=rm" (d)
  28576. : [e] "rm" (*e));
  28577. Here, 'd' may either be in a register or in memory. Since the compiler
  28578. might already have the current value of the 'uint32_t' location pointed
  28579. to by 'e' in a register, you can enable it to choose the best location
  28580. for 'd' by specifying both constraints.
  28581. 6.45.2.4 Flag Output Operands
  28582. .............................
  28583. Some targets have a special register that holds the "flags" for the
  28584. result of an operation or comparison. Normally, the contents of that
  28585. register are either unmodifed by the asm, or the asm is considered to
  28586. clobber the contents.
  28587. On some targets, a special form of output operand exists by which
  28588. conditions in the flags register may be outputs of the asm. The set of
  28589. conditions supported are target specific, but the general rule is that
  28590. the output variable must be a scalar integer, and the value is boolean.
  28591. When supported, the target defines the preprocessor symbol
  28592. '__GCC_ASM_FLAG_OUTPUTS__'.
  28593. Because of the special nature of the flag output operands, the
  28594. constraint may not include alternatives.
  28595. Most often, the target has only one flags register, and thus is an
  28596. implied operand of many instructions. In this case, the operand should
  28597. not be referenced within the assembler template via '%0' etc, as there's
  28598. no corresponding text in the assembly language.
  28599. x86 family
  28600. The flag output constraints for the x86 family are of the form
  28601. '=@ccCOND' where COND is one of the standard conditions defined in
  28602. the ISA manual for 'jCC' or 'setCC'.
  28603. 'a'
  28604. "above" or unsigned greater than
  28605. 'ae'
  28606. "above or equal" or unsigned greater than or equal
  28607. 'b'
  28608. "below" or unsigned less than
  28609. 'be'
  28610. "below or equal" or unsigned less than or equal
  28611. 'c'
  28612. carry flag set
  28613. 'e'
  28614. 'z'
  28615. "equal" or zero flag set
  28616. 'g'
  28617. signed greater than
  28618. 'ge'
  28619. signed greater than or equal
  28620. 'l'
  28621. signed less than
  28622. 'le'
  28623. signed less than or equal
  28624. 'o'
  28625. overflow flag set
  28626. 'p'
  28627. parity flag set
  28628. 's'
  28629. sign flag set
  28630. 'na'
  28631. 'nae'
  28632. 'nb'
  28633. 'nbe'
  28634. 'nc'
  28635. 'ne'
  28636. 'ng'
  28637. 'nge'
  28638. 'nl'
  28639. 'nle'
  28640. 'no'
  28641. 'np'
  28642. 'ns'
  28643. 'nz'
  28644. "not" FLAG, or inverted versions of those above
  28645. 6.45.2.5 Input Operands
  28646. .......................
  28647. Input operands make values from C variables and expressions available to
  28648. the assembly code.
  28649. Operands are separated by commas. Each operand has this format:
  28650. [ [ASMSYMBOLICNAME] ] CONSTRAINT (CEXPRESSION)
  28651. ASMSYMBOLICNAME
  28652. Specifies a symbolic name for the operand. Reference the name in
  28653. the assembler template by enclosing it in square brackets (i.e.
  28654. '%[Value]'). The scope of the name is the 'asm' statement that
  28655. contains the definition. Any valid C variable name is acceptable,
  28656. including names already defined in the surrounding code. No two
  28657. operands within the same 'asm' statement can use the same symbolic
  28658. name.
  28659. When not using an ASMSYMBOLICNAME, use the (zero-based) position of
  28660. the operand in the list of operands in the assembler template. For
  28661. example if there are two output operands and three inputs, use '%2'
  28662. in the template to refer to the first input operand, '%3' for the
  28663. second, and '%4' for the third.
  28664. CONSTRAINT
  28665. A string constant specifying constraints on the placement of the
  28666. operand; *Note Constraints::, for details.
  28667. Input constraint strings may not begin with either '=' or '+'.
  28668. When you list more than one possible location (for example,
  28669. '"irm"'), the compiler chooses the most efficient one based on the
  28670. current context. If you must use a specific register, but your
  28671. Machine Constraints do not provide sufficient control to select the
  28672. specific register you want, local register variables may provide a
  28673. solution (*note Local Register Variables::).
  28674. Input constraints can also be digits (for example, '"0"'). This
  28675. indicates that the specified input must be in the same place as the
  28676. output constraint at the (zero-based) index in the output
  28677. constraint list. When using ASMSYMBOLICNAME syntax for the output
  28678. operands, you may use these names (enclosed in brackets '[]')
  28679. instead of digits.
  28680. CEXPRESSION
  28681. This is the C variable or expression being passed to the 'asm'
  28682. statement as input. The enclosing parentheses are a required part
  28683. of the syntax.
  28684. When the compiler selects the registers to use to represent the input
  28685. operands, it does not use any of the clobbered registers (*note Clobbers
  28686. and Scratch Registers::).
  28687. If there are no output operands but there are input operands, place two
  28688. consecutive colons where the output operands would go:
  28689. __asm__ ("some instructions"
  28690. : /* No outputs. */
  28691. : "r" (Offset / 8));
  28692. *Warning:* Do _not_ modify the contents of input-only operands (except
  28693. for inputs tied to outputs). The compiler assumes that on exit from the
  28694. 'asm' statement these operands contain the same values as they had
  28695. before executing the statement. It is _not_ possible to use clobbers to
  28696. inform the compiler that the values in these inputs are changing. One
  28697. common work-around is to tie the changing input variable to an output
  28698. variable that never gets used. Note, however, that if the code that
  28699. follows the 'asm' statement makes no use of any of the output operands,
  28700. the GCC optimizers may discard the 'asm' statement as unneeded (see
  28701. *note Volatile::).
  28702. 'asm' supports operand modifiers on operands (for example '%k2' instead
  28703. of simply '%2'). Typically these qualifiers are hardware dependent.
  28704. The list of supported modifiers for x86 is found at *note x86 Operand
  28705. modifiers: x86Operandmodifiers.
  28706. In this example using the fictitious 'combine' instruction, the
  28707. constraint '"0"' for input operand 1 says that it must occupy the same
  28708. location as output operand 0. Only input operands may use numbers in
  28709. constraints, and they must each refer to an output operand. Only a
  28710. number (or the symbolic assembler name) in the constraint can guarantee
  28711. that one operand is in the same place as another. The mere fact that
  28712. 'foo' is the value of both operands is not enough to guarantee that they
  28713. are in the same place in the generated assembler code.
  28714. asm ("combine %2, %0"
  28715. : "=r" (foo)
  28716. : "0" (foo), "g" (bar));
  28717. Here is an example using symbolic names.
  28718. asm ("cmoveq %1, %2, %[result]"
  28719. : [result] "=r"(result)
  28720. : "r" (test), "r" (new), "[result]" (old));
  28721. 6.45.2.6 Clobbers and Scratch Registers
  28722. .......................................
  28723. While the compiler is aware of changes to entries listed in the output
  28724. operands, the inline 'asm' code may modify more than just the outputs.
  28725. For example, calculations may require additional registers, or the
  28726. processor may overwrite a register as a side effect of a particular
  28727. assembler instruction. In order to inform the compiler of these
  28728. changes, list them in the clobber list. Clobber list items are either
  28729. register names or the special clobbers (listed below). Each clobber
  28730. list item is a string constant enclosed in double quotes and separated
  28731. by commas.
  28732. Clobber descriptions may not in any way overlap with an input or output
  28733. operand. For example, you may not have an operand describing a register
  28734. class with one member when listing that register in the clobber list.
  28735. Variables declared to live in specific registers (*note Explicit
  28736. Register Variables::) and used as 'asm' input or output operands must
  28737. have no part mentioned in the clobber description. In particular, there
  28738. is no way to specify that input operands get modified without also
  28739. specifying them as output operands.
  28740. When the compiler selects which registers to use to represent input and
  28741. output operands, it does not use any of the clobbered registers. As a
  28742. result, clobbered registers are available for any use in the assembler
  28743. code.
  28744. Here is a realistic example for the VAX showing the use of clobbered
  28745. registers:
  28746. asm volatile ("movc3 %0, %1, %2"
  28747. : /* No outputs. */
  28748. : "g" (from), "g" (to), "g" (count)
  28749. : "r0", "r1", "r2", "r3", "r4", "r5", "memory");
  28750. Also, there are two special clobber arguments:
  28751. '"cc"'
  28752. The '"cc"' clobber indicates that the assembler code modifies the
  28753. flags register. On some machines, GCC represents the condition
  28754. codes as a specific hardware register; '"cc"' serves to name this
  28755. register. On other machines, condition code handling is different,
  28756. and specifying '"cc"' has no effect. But it is valid no matter
  28757. what the target.
  28758. '"memory"'
  28759. The '"memory"' clobber tells the compiler that the assembly code
  28760. performs memory reads or writes to items other than those listed in
  28761. the input and output operands (for example, accessing the memory
  28762. pointed to by one of the input parameters). To ensure memory
  28763. contains correct values, GCC may need to flush specific register
  28764. values to memory before executing the 'asm'. Further, the compiler
  28765. does not assume that any values read from memory before an 'asm'
  28766. remain unchanged after that 'asm'; it reloads them as needed.
  28767. Using the '"memory"' clobber effectively forms a read/write memory
  28768. barrier for the compiler.
  28769. Note that this clobber does not prevent the _processor_ from doing
  28770. speculative reads past the 'asm' statement. To prevent that, you
  28771. need processor-specific fence instructions.
  28772. Flushing registers to memory has performance implications and may be an
  28773. issue for time-sensitive code. You can provide better information to
  28774. GCC to avoid this, as shown in the following examples. At a minimum,
  28775. aliasing rules allow GCC to know what memory _doesn't_ need to be
  28776. flushed.
  28777. Here is a fictitious sum of squares instruction, that takes two
  28778. pointers to floating point values in memory and produces a floating
  28779. point register output. Notice that 'x', and 'y' both appear twice in
  28780. the 'asm' parameters, once to specify memory accessed, and once to
  28781. specify a base register used by the 'asm'. You won't normally be
  28782. wasting a register by doing this as GCC can use the same register for
  28783. both purposes. However, it would be foolish to use both '%1' and '%3'
  28784. for 'x' in this 'asm' and expect them to be the same. In fact, '%3' may
  28785. well not be a register. It might be a symbolic memory reference to the
  28786. object pointed to by 'x'.
  28787. asm ("sumsq %0, %1, %2"
  28788. : "+f" (result)
  28789. : "r" (x), "r" (y), "m" (*x), "m" (*y));
  28790. Here is a fictitious '*z++ = *x++ * *y++' instruction. Notice that the
  28791. 'x', 'y' and 'z' pointer registers must be specified as input/output
  28792. because the 'asm' modifies them.
  28793. asm ("vecmul %0, %1, %2"
  28794. : "+r" (z), "+r" (x), "+r" (y), "=m" (*z)
  28795. : "m" (*x), "m" (*y));
  28796. An x86 example where the string memory argument is of unknown length.
  28797. asm("repne scasb"
  28798. : "=c" (count), "+D" (p)
  28799. : "m" (*(const char (*)[]) p), "0" (-1), "a" (0));
  28800. If you know the above will only be reading a ten byte array then you
  28801. could instead use a memory input like: '"m" (*(const char (*)[10]) p)'.
  28802. Here is an example of a PowerPC vector scale implemented in assembly,
  28803. complete with vector and condition code clobbers, and some initialized
  28804. offset registers that are unchanged by the 'asm'.
  28805. void
  28806. dscal (size_t n, double *x, double alpha)
  28807. {
  28808. asm ("/* lots of asm here */"
  28809. : "+m" (*(double (*)[n]) x), "+&r" (n), "+b" (x)
  28810. : "d" (alpha), "b" (32), "b" (48), "b" (64),
  28811. "b" (80), "b" (96), "b" (112)
  28812. : "cr0",
  28813. "vs32","vs33","vs34","vs35","vs36","vs37","vs38","vs39",
  28814. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47");
  28815. }
  28816. Rather than allocating fixed registers via clobbers to provide scratch
  28817. registers for an 'asm' statement, an alternative is to define a variable
  28818. and make it an early-clobber output as with 'a2' and 'a3' in the example
  28819. below. This gives the compiler register allocator more freedom. You
  28820. can also define a variable and make it an output tied to an input as
  28821. with 'a0' and 'a1', tied respectively to 'ap' and 'lda'. Of course,
  28822. with tied outputs your 'asm' can't use the input value after modifying
  28823. the output register since they are one and the same register. What's
  28824. more, if you omit the early-clobber on the output, it is possible that
  28825. GCC might allocate the same register to another of the inputs if GCC
  28826. could prove they had the same value on entry to the 'asm'. This is why
  28827. 'a1' has an early-clobber. Its tied input, 'lda' might conceivably be
  28828. known to have the value 16 and without an early-clobber share the same
  28829. register as '%11'. On the other hand, 'ap' can't be the same as any of
  28830. the other inputs, so an early-clobber on 'a0' is not needed. It is also
  28831. not desirable in this case. An early-clobber on 'a0' would cause GCC to
  28832. allocate a separate register for the '"m" (*(const double (*)[]) ap)'
  28833. input. Note that tying an input to an output is the way to set up an
  28834. initialized temporary register modified by an 'asm' statement. An input
  28835. not tied to an output is assumed by GCC to be unchanged, for example
  28836. '"b" (16)' below sets up '%11' to 16, and GCC might use that register in
  28837. following code if the value 16 happened to be needed. You can even use
  28838. a normal 'asm' output for a scratch if all inputs that might share the
  28839. same register are consumed before the scratch is used. The VSX
  28840. registers clobbered by the 'asm' statement could have used this
  28841. technique except for GCC's limit on the number of 'asm' parameters.
  28842. static void
  28843. dgemv_kernel_4x4 (long n, const double *ap, long lda,
  28844. const double *x, double *y, double alpha)
  28845. {
  28846. double *a0;
  28847. double *a1;
  28848. double *a2;
  28849. double *a3;
  28850. __asm__
  28851. (
  28852. /* lots of asm here */
  28853. "#n=%1 ap=%8=%12 lda=%13 x=%7=%10 y=%0=%2 alpha=%9 o16=%11\n"
  28854. "#a0=%3 a1=%4 a2=%5 a3=%6"
  28855. :
  28856. "+m" (*(double (*)[n]) y),
  28857. "+&r" (n), // 1
  28858. "+b" (y), // 2
  28859. "=b" (a0), // 3
  28860. "=&b" (a1), // 4
  28861. "=&b" (a2), // 5
  28862. "=&b" (a3) // 6
  28863. :
  28864. "m" (*(const double (*)[n]) x),
  28865. "m" (*(const double (*)[]) ap),
  28866. "d" (alpha), // 9
  28867. "r" (x), // 10
  28868. "b" (16), // 11
  28869. "3" (ap), // 12
  28870. "4" (lda) // 13
  28871. :
  28872. "cr0",
  28873. "vs32","vs33","vs34","vs35","vs36","vs37",
  28874. "vs40","vs41","vs42","vs43","vs44","vs45","vs46","vs47"
  28875. );
  28876. }
  28877. 6.45.2.7 Goto Labels
  28878. ....................
  28879. 'asm goto' allows assembly code to jump to one or more C labels. The
  28880. GOTOLABELS section in an 'asm goto' statement contains a comma-separated
  28881. list of all C labels to which the assembler code may jump. GCC assumes
  28882. that 'asm' execution falls through to the next statement (if this is not
  28883. the case, consider using the '__builtin_unreachable' intrinsic after the
  28884. 'asm' statement). Optimization of 'asm goto' may be improved by using
  28885. the 'hot' and 'cold' label attributes (*note Label Attributes::).
  28886. An 'asm goto' statement cannot have outputs. This is due to an
  28887. internal restriction of the compiler: control transfer instructions
  28888. cannot have outputs. If the assembler code does modify anything, use
  28889. the '"memory"' clobber to force the optimizers to flush all register
  28890. values to memory and reload them if necessary after the 'asm' statement.
  28891. Also note that an 'asm goto' statement is always implicitly considered
  28892. volatile.
  28893. To reference a label in the assembler template, prefix it with '%l'
  28894. (lowercase 'L') followed by its (zero-based) position in GOTOLABELS plus
  28895. the number of input operands. For example, if the 'asm' has three
  28896. inputs and references two labels, refer to the first label as '%l3' and
  28897. the second as '%l4').
  28898. Alternately, you can reference labels using the actual C label name
  28899. enclosed in brackets. For example, to reference a label named 'carry',
  28900. you can use '%l[carry]'. The label must still be listed in the
  28901. GOTOLABELS section when using this approach.
  28902. Here is an example of 'asm goto' for i386:
  28903. asm goto (
  28904. "btl %1, %0\n\t"
  28905. "jc %l2"
  28906. : /* No outputs. */
  28907. : "r" (p1), "r" (p2)
  28908. : "cc"
  28909. : carry);
  28910. return 0;
  28911. carry:
  28912. return 1;
  28913. The following example shows an 'asm goto' that uses a memory clobber.
  28914. int frob(int x)
  28915. {
  28916. int y;
  28917. asm goto ("frob %%r5, %1; jc %l[error]; mov (%2), %%r5"
  28918. : /* No outputs. */
  28919. : "r"(x), "r"(&y)
  28920. : "r5", "memory"
  28921. : error);
  28922. return y;
  28923. error:
  28924. return -1;
  28925. }
  28926. 6.45.2.8 x86 Operand Modifiers
  28927. ..............................
  28928. References to input, output, and goto operands in the assembler template
  28929. of extended 'asm' statements can use modifiers to affect the way the
  28930. operands are formatted in the code output to the assembler. For
  28931. example, the following code uses the 'h' and 'b' modifiers for x86:
  28932. uint16_t num;
  28933. asm volatile ("xchg %h0, %b0" : "+a" (num) );
  28934. These modifiers generate this assembler code:
  28935. xchg %ah, %al
  28936. The rest of this discussion uses the following code for illustrative
  28937. purposes.
  28938. int main()
  28939. {
  28940. int iInt = 1;
  28941. top:
  28942. asm volatile goto ("some assembler instructions here"
  28943. : /* No outputs. */
  28944. : "q" (iInt), "X" (sizeof(unsigned char) + 1)
  28945. : /* No clobbers. */
  28946. : top);
  28947. }
  28948. With no modifiers, this is what the output from the operands would be
  28949. for the 'att' and 'intel' dialects of assembler:
  28950. Operand 'att' 'intel'
  28951. -----------------------------------
  28952. '%0' '%eax' 'eax'
  28953. '%1' '$2' '2'
  28954. '%2' '$.L2' 'OFFSET
  28955. FLAT:.L2'
  28956. The table below shows the list of supported modifiers and their
  28957. effects.
  28958. Modifier Description Operand 'att' 'intel'
  28959. ------------------------------------------------------------------------------------
  28960. 'z' Print the opcode suffix for the size of '%z0' 'l'
  28961. the current integer operand (one of
  28962. 'b'/'w'/'l'/'q').
  28963. 'b' Print the QImode name of the register. '%b0' '%al' 'al'
  28964. 'h' Print the QImode name for a "high" '%h0' '%ah' 'ah'
  28965. register.
  28966. 'w' Print the HImode name of the register. '%w0' '%ax' 'ax'
  28967. 'k' Print the SImode name of the register. '%k0' '%eax' 'eax'
  28968. 'q' Print the DImode name of the register. '%q0' '%rax' 'rax'
  28969. 'l' Print the label name with no punctuation. '%l2' '.L2' '.L2'
  28970. 'c' Require a constant operand and print the '%c1' '2' '2'
  28971. constant expression with no punctuation.
  28972. 'V' is a special modifier which prints the name of the full integer
  28973. register without '%'.
  28974. 6.45.2.9 x86 Floating-Point 'asm' Operands
  28975. ..........................................
  28976. On x86 targets, there are several rules on the usage of stack-like
  28977. registers in the operands of an 'asm'. These rules apply only to the
  28978. operands that are stack-like registers:
  28979. 1. Given a set of input registers that die in an 'asm', it is
  28980. necessary to know which are implicitly popped by the 'asm', and
  28981. which must be explicitly popped by GCC.
  28982. An input register that is implicitly popped by the 'asm' must be
  28983. explicitly clobbered, unless it is constrained to match an output
  28984. operand.
  28985. 2. For any input register that is implicitly popped by an 'asm', it is
  28986. necessary to know how to adjust the stack to compensate for the
  28987. pop. If any non-popped input is closer to the top of the reg-stack
  28988. than the implicitly popped register, it would not be possible to
  28989. know what the stack looked like--it's not clear how the rest of the
  28990. stack "slides up".
  28991. All implicitly popped input registers must be closer to the top of
  28992. the reg-stack than any input that is not implicitly popped.
  28993. It is possible that if an input dies in an 'asm', the compiler
  28994. might use the input register for an output reload. Consider this
  28995. example:
  28996. asm ("foo" : "=t" (a) : "f" (b));
  28997. This code says that input 'b' is not popped by the 'asm', and that
  28998. the 'asm' pushes a result onto the reg-stack, i.e., the stack is
  28999. one deeper after the 'asm' than it was before. But, it is possible
  29000. that reload may think that it can use the same register for both
  29001. the input and the output.
  29002. To prevent this from happening, if any input operand uses the 'f'
  29003. constraint, all output register constraints must use the '&'
  29004. early-clobber modifier.
  29005. The example above is correctly written as:
  29006. asm ("foo" : "=&t" (a) : "f" (b));
  29007. 3. Some operands need to be in particular places on the stack. All
  29008. output operands fall in this category--GCC has no other way to know
  29009. which registers the outputs appear in unless you indicate this in
  29010. the constraints.
  29011. Output operands must specifically indicate which register an output
  29012. appears in after an 'asm'. '=f' is not allowed: the operand
  29013. constraints must select a class with a single register.
  29014. 4. Output operands may not be "inserted" between existing stack
  29015. registers. Since no 387 opcode uses a read/write operand, all
  29016. output operands are dead before the 'asm', and are pushed by the
  29017. 'asm'. It makes no sense to push anywhere but the top of the
  29018. reg-stack.
  29019. Output operands must start at the top of the reg-stack: output
  29020. operands may not "skip" a register.
  29021. 5. Some 'asm' statements may need extra stack space for internal
  29022. calculations. This can be guaranteed by clobbering stack registers
  29023. unrelated to the inputs and outputs.
  29024. This 'asm' takes one input, which is internally popped, and produces
  29025. two outputs.
  29026. asm ("fsincos" : "=t" (cos), "=u" (sin) : "0" (inp));
  29027. This 'asm' takes two inputs, which are popped by the 'fyl2xp1' opcode,
  29028. and replaces them with one output. The 'st(1)' clobber is necessary for
  29029. the compiler to know that 'fyl2xp1' pops both inputs.
  29030. asm ("fyl2xp1" : "=t" (result) : "0" (x), "u" (y) : "st(1)");
  29031. 
  29032. File: gcc.info, Node: Constraints, Next: Asm Labels, Prev: Extended Asm, Up: Using Assembly Language with C
  29033. 6.45.3 Constraints for 'asm' Operands
  29034. -------------------------------------
  29035. Here are specific details on what constraint letters you can use with
  29036. 'asm' operands. Constraints can say whether an operand may be in a
  29037. register, and which kinds of register; whether the operand can be a
  29038. memory reference, and which kinds of address; whether the operand may be
  29039. an immediate constant, and which possible values it may have.
  29040. Constraints can also require two operands to match. Side-effects aren't
  29041. allowed in operands of inline 'asm', unless '<' or '>' constraints are
  29042. used, because there is no guarantee that the side effects will happen
  29043. exactly once in an instruction that can update the addressing register.
  29044. * Menu:
  29045. * Simple Constraints:: Basic use of constraints.
  29046. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  29047. * Modifiers:: More precise control over effects of constraints.
  29048. * Machine Constraints:: Special constraints for some particular machines.
  29049. 
  29050. File: gcc.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  29051. 6.45.3.1 Simple Constraints
  29052. ...........................
  29053. The simplest kind of constraint is a string full of letters, each of
  29054. which describes one kind of operand that is permitted. Here are the
  29055. letters that are allowed:
  29056. whitespace
  29057. Whitespace characters are ignored and can be inserted at any
  29058. position except the first. This enables each alternative for
  29059. different operands to be visually aligned in the machine
  29060. description even if they have different number of constraints and
  29061. modifiers.
  29062. 'm'
  29063. A memory operand is allowed, with any kind of address that the
  29064. machine supports in general. Note that the letter used for the
  29065. general memory constraint can be re-defined by a back end using the
  29066. 'TARGET_MEM_CONSTRAINT' macro.
  29067. 'o'
  29068. A memory operand is allowed, but only if the address is
  29069. "offsettable". This means that adding a small integer (actually,
  29070. the width in bytes of the operand, as determined by its machine
  29071. mode) may be added to the address and the result is also a valid
  29072. memory address.
  29073. For example, an address which is constant is offsettable; so is an
  29074. address that is the sum of a register and a constant (as long as a
  29075. slightly larger constant is also within the range of
  29076. address-offsets supported by the machine); but an autoincrement or
  29077. autodecrement address is not offsettable. More complicated
  29078. indirect/indexed addresses may or may not be offsettable depending
  29079. on the other addressing modes that the machine supports.
  29080. Note that in an output operand which can be matched by another
  29081. operand, the constraint letter 'o' is valid only when accompanied
  29082. by both '<' (if the target machine has predecrement addressing) and
  29083. '>' (if the target machine has preincrement addressing).
  29084. 'V'
  29085. A memory operand that is not offsettable. In other words, anything
  29086. that would fit the 'm' constraint but not the 'o' constraint.
  29087. '<'
  29088. A memory operand with autodecrement addressing (either predecrement
  29089. or postdecrement) is allowed. In inline 'asm' this constraint is
  29090. only allowed if the operand is used exactly once in an instruction
  29091. that can handle the side effects. Not using an operand with '<' in
  29092. constraint string in the inline 'asm' pattern at all or using it in
  29093. multiple instructions isn't valid, because the side effects
  29094. wouldn't be performed or would be performed more than once.
  29095. Furthermore, on some targets the operand with '<' in constraint
  29096. string must be accompanied by special instruction suffixes like
  29097. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  29098. '>'
  29099. A memory operand with autoincrement addressing (either preincrement
  29100. or postincrement) is allowed. In inline 'asm' the same
  29101. restrictions as for '<' apply.
  29102. 'r'
  29103. A register operand is allowed provided that it is in a general
  29104. register.
  29105. 'i'
  29106. An immediate integer operand (one with constant value) is allowed.
  29107. This includes symbolic constants whose values will be known only at
  29108. assembly time or later.
  29109. 'n'
  29110. An immediate integer operand with a known numeric value is allowed.
  29111. Many systems cannot support assembly-time constants for operands
  29112. less than a word wide. Constraints for these operands should use
  29113. 'n' rather than 'i'.
  29114. 'I', 'J', 'K', ... 'P'
  29115. Other letters in the range 'I' through 'P' may be defined in a
  29116. machine-dependent fashion to permit immediate integer operands with
  29117. explicit integer values in specified ranges. For example, on the
  29118. 68000, 'I' is defined to stand for the range of values 1 to 8.
  29119. This is the range permitted as a shift count in the shift
  29120. instructions.
  29121. 'E'
  29122. An immediate floating operand (expression code 'const_double') is
  29123. allowed, but only if the target floating point format is the same
  29124. as that of the host machine (on which the compiler is running).
  29125. 'F'
  29126. An immediate floating operand (expression code 'const_double' or
  29127. 'const_vector') is allowed.
  29128. 'G', 'H'
  29129. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  29130. immediate floating operands in particular ranges of values.
  29131. 's'
  29132. An immediate integer operand whose value is not an explicit integer
  29133. is allowed.
  29134. This might appear strange; if an insn allows a constant operand
  29135. with a value not known at compile time, it certainly must allow any
  29136. known value. So why use 's' instead of 'i'? Sometimes it allows
  29137. better code to be generated.
  29138. For example, on the 68000 in a fullword instruction it is possible
  29139. to use an immediate operand; but if the immediate value is between
  29140. -128 and 127, better code results from loading the value into a
  29141. register and using the register. This is because the load into the
  29142. register can be done with a 'moveq' instruction. We arrange for
  29143. this to happen by defining the letter 'K' to mean "any integer
  29144. outside the range -128 to 127", and then specifying 'Ks' in the
  29145. operand constraints.
  29146. 'g'
  29147. Any register, memory or immediate integer operand is allowed,
  29148. except for registers that are not general registers.
  29149. 'X'
  29150. Any operand whatsoever is allowed.
  29151. '0', '1', '2', ... '9'
  29152. An operand that matches the specified operand number is allowed.
  29153. If a digit is used together with letters within the same
  29154. alternative, the digit should come last.
  29155. This number is allowed to be more than a single digit. If multiple
  29156. digits are encountered consecutively, they are interpreted as a
  29157. single decimal integer. There is scant chance for ambiguity, since
  29158. to-date it has never been desirable that '10' be interpreted as
  29159. matching either operand 1 _or_ operand 0. Should this be desired,
  29160. one can use multiple alternatives instead.
  29161. This is called a "matching constraint" and what it really means is
  29162. that the assembler has only a single operand that fills two roles
  29163. which 'asm' distinguishes. For example, an add instruction uses
  29164. two input operands and an output operand, but on most CISC machines
  29165. an add instruction really has only two operands, one of them an
  29166. input-output operand:
  29167. addl #35,r12
  29168. Matching constraints are used in these circumstances. More
  29169. precisely, the two operands that match must include one input-only
  29170. operand and one output-only operand. Moreover, the digit must be a
  29171. smaller number than the number of the operand that uses it in the
  29172. constraint.
  29173. 'p'
  29174. An operand that is a valid memory address is allowed. This is for
  29175. "load address" and "push address" instructions.
  29176. 'p' in the constraint must be accompanied by 'address_operand' as
  29177. the predicate in the 'match_operand'. This predicate interprets
  29178. the mode specified in the 'match_operand' as the mode of the memory
  29179. reference for which the address would be valid.
  29180. OTHER-LETTERS
  29181. Other letters can be defined in machine-dependent fashion to stand
  29182. for particular classes of registers or other arbitrary operand
  29183. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  29184. for data, address and floating point registers.
  29185. 
  29186. File: gcc.info, Node: Multi-Alternative, Next: Modifiers, Prev: Simple Constraints, Up: Constraints
  29187. 6.45.3.2 Multiple Alternative Constraints
  29188. .........................................
  29189. Sometimes a single instruction has multiple alternative sets of possible
  29190. operands. For example, on the 68000, a logical-or instruction can
  29191. combine register or an immediate value into memory, or it can combine
  29192. any kind of operand into a register; but it cannot combine one memory
  29193. location into another.
  29194. These constraints are represented as multiple alternatives. An
  29195. alternative can be described by a series of letters for each operand.
  29196. The overall constraint for an operand is made from the letters for this
  29197. operand from the first alternative, a comma, the letters for this
  29198. operand from the second alternative, a comma, and so on until the last
  29199. alternative. All operands for a single instruction must have the same
  29200. number of alternatives.
  29201. So the first alternative for the 68000's logical-or could be written as
  29202. '"+m" (output) : "ir" (input)'. The second could be '"+r" (output):
  29203. "irm" (input)'. However, the fact that two memory locations cannot be
  29204. used in a single instruction prevents simply using '"+rm" (output) :
  29205. "irm" (input)'. Using multi-alternatives, this might be written as
  29206. '"+m,r" (output) : "ir,irm" (input)'. This describes all the available
  29207. alternatives to the compiler, allowing it to choose the most efficient
  29208. one for the current conditions.
  29209. There is no way within the template to determine which alternative was
  29210. chosen. However you may be able to wrap your 'asm' statements with
  29211. builtins such as '__builtin_constant_p' to achieve the desired results.
  29212. 
  29213. File: gcc.info, Node: Modifiers, Next: Machine Constraints, Prev: Multi-Alternative, Up: Constraints
  29214. 6.45.3.3 Constraint Modifier Characters
  29215. .......................................
  29216. Here are constraint modifier characters.
  29217. '='
  29218. Means that this operand is written to by this instruction: the
  29219. previous value is discarded and replaced by new data.
  29220. '+'
  29221. Means that this operand is both read and written by the
  29222. instruction.
  29223. When the compiler fixes up the operands to satisfy the constraints,
  29224. it needs to know which operands are read by the instruction and
  29225. which are written by it. '=' identifies an operand which is only
  29226. written; '+' identifies an operand that is both read and written;
  29227. all other operands are assumed to only be read.
  29228. If you specify '=' or '+' in a constraint, you put it in the first
  29229. character of the constraint string.
  29230. '&'
  29231. Means (in a particular alternative) that this operand is an
  29232. "earlyclobber" operand, which is written before the instruction is
  29233. finished using the input operands. Therefore, this operand may not
  29234. lie in a register that is read by the instruction or as part of any
  29235. memory address.
  29236. '&' applies only to the alternative in which it is written. In
  29237. constraints with multiple alternatives, sometimes one alternative
  29238. requires '&' while others do not. See, for example, the 'movdf'
  29239. insn of the 68000.
  29240. A operand which is read by the instruction can be tied to an
  29241. earlyclobber operand if its only use as an input occurs before the
  29242. early result is written. Adding alternatives of this form often
  29243. allows GCC to produce better code when only some of the read
  29244. operands can be affected by the earlyclobber. See, for example,
  29245. the 'mulsi3' insn of the ARM.
  29246. Furthermore, if the "earlyclobber" operand is also a read/write
  29247. operand, then that operand is written only after it's used.
  29248. '&' does not obviate the need to write '=' or '+'. As
  29249. "earlyclobber" operands are always written, a read-only
  29250. "earlyclobber" operand is ill-formed and will be rejected by the
  29251. compiler.
  29252. '%'
  29253. Declares the instruction to be commutative for this operand and the
  29254. following operand. This means that the compiler may interchange
  29255. the two operands if that is the cheapest way to make all operands
  29256. fit the constraints. '%' applies to all alternatives and must
  29257. appear as the first character in the constraint. Only read-only
  29258. operands can use '%'.
  29259. GCC can only handle one commutative pair in an asm; if you use
  29260. more, the compiler may fail. Note that you need not use the
  29261. modifier if the two alternatives are strictly identical; this would
  29262. only waste time in the reload pass.
  29263. 
  29264. File: gcc.info, Node: Machine Constraints, Prev: Modifiers, Up: Constraints
  29265. 6.45.3.4 Constraints for Particular Machines
  29266. ............................................
  29267. Whenever possible, you should use the general-purpose constraint letters
  29268. in 'asm' arguments, since they will convey meaning more readily to
  29269. people reading your code. Failing that, use the constraint letters that
  29270. usually have very similar meanings across architectures. The most
  29271. commonly used constraints are 'm' and 'r' (for memory and
  29272. general-purpose registers respectively; *note Simple Constraints::), and
  29273. 'I', usually the letter indicating the most common immediate-constant
  29274. format.
  29275. Each architecture defines additional constraints. These constraints
  29276. are used by the compiler itself for instruction generation, as well as
  29277. for 'asm' statements; therefore, some of the constraints are not
  29278. particularly useful for 'asm'. Here is a summary of some of the
  29279. machine-dependent constraints available on some particular machines; it
  29280. includes both constraints that are useful for 'asm' and constraints that
  29281. aren't. The compiler source file mentioned in the table heading for
  29282. each architecture is the definitive reference for the meanings of that
  29283. architecture's constraints.
  29284. _AArch64 family--'config/aarch64/constraints.md'_
  29285. 'k'
  29286. The stack pointer register ('SP')
  29287. 'w'
  29288. Floating point register, Advanced SIMD vector register or SVE
  29289. vector register
  29290. 'Upl'
  29291. One of the low eight SVE predicate registers ('P0' to 'P7')
  29292. 'Upa'
  29293. Any of the SVE predicate registers ('P0' to 'P15')
  29294. 'I'
  29295. Integer constant that is valid as an immediate operand in an
  29296. 'ADD' instruction
  29297. 'J'
  29298. Integer constant that is valid as an immediate operand in a
  29299. 'SUB' instruction (once negated)
  29300. 'K'
  29301. Integer constant that can be used with a 32-bit logical
  29302. instruction
  29303. 'L'
  29304. Integer constant that can be used with a 64-bit logical
  29305. instruction
  29306. 'M'
  29307. Integer constant that is valid as an immediate operand in a
  29308. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  29309. to one of several different machine instructions depending on
  29310. the value
  29311. 'N'
  29312. Integer constant that is valid as an immediate operand in a
  29313. 64-bit 'MOV' pseudo instruction
  29314. 'S'
  29315. An absolute symbolic address or a label reference
  29316. 'Y'
  29317. Floating point constant zero
  29318. 'Z'
  29319. Integer constant zero
  29320. 'Ush'
  29321. The high part (bits 12 and upwards) of the pc-relative address
  29322. of a symbol within 4GB of the instruction
  29323. 'Q'
  29324. A memory address which uses a single base register with no
  29325. offset
  29326. 'Ump'
  29327. A memory address suitable for a load/store pair instruction in
  29328. SI, DI, SF and DF modes
  29329. _ARC --'config/arc/constraints.md'_
  29330. 'q'
  29331. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  29332. 'r12'-'r15'. This constraint can only match when the '-mq'
  29333. option is in effect.
  29334. 'e'
  29335. Registers usable as base-regs of memory addresses in ARCompact
  29336. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  29337. This constraint can only match when the '-mq' option is in
  29338. effect.
  29339. 'D'
  29340. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  29341. 'I'
  29342. A signed 12-bit integer constant.
  29343. 'Cal'
  29344. constant for arithmetic/logical operations. This might be any
  29345. constant that can be put into a long immediate by the assmbler
  29346. or linker without involving a PIC relocation.
  29347. 'K'
  29348. A 3-bit unsigned integer constant.
  29349. 'L'
  29350. A 6-bit unsigned integer constant.
  29351. 'CnL'
  29352. One's complement of a 6-bit unsigned integer constant.
  29353. 'CmL'
  29354. Two's complement of a 6-bit unsigned integer constant.
  29355. 'M'
  29356. A 5-bit unsigned integer constant.
  29357. 'O'
  29358. A 7-bit unsigned integer constant.
  29359. 'P'
  29360. A 8-bit unsigned integer constant.
  29361. 'H'
  29362. Any const_double value.
  29363. _ARM family--'config/arm/constraints.md'_
  29364. 'h'
  29365. In Thumb state, the core registers 'r8'-'r15'.
  29366. 'k'
  29367. The stack pointer register.
  29368. 'l'
  29369. In Thumb State the core registers 'r0'-'r7'. In ARM state
  29370. this is an alias for the 'r' constraint.
  29371. 't'
  29372. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  29373. values.
  29374. 'w'
  29375. VFP floating-point registers 'd0'-'d31' and the appropriate
  29376. subset 'd0'-'d15' based on command line options. Used for 64
  29377. bit values only. Not valid for Thumb1.
  29378. 'y'
  29379. The iWMMX co-processor registers.
  29380. 'z'
  29381. The iWMMX GR registers.
  29382. 'G'
  29383. The floating-point constant 0.0
  29384. 'I'
  29385. Integer that is valid as an immediate operand in a data
  29386. processing instruction. That is, an integer in the range 0 to
  29387. 255 rotated by a multiple of 2
  29388. 'J'
  29389. Integer in the range -4095 to 4095
  29390. 'K'
  29391. Integer that satisfies constraint 'I' when inverted (ones
  29392. complement)
  29393. 'L'
  29394. Integer that satisfies constraint 'I' when negated (twos
  29395. complement)
  29396. 'M'
  29397. Integer in the range 0 to 32
  29398. 'Q'
  29399. A memory reference where the exact address is in a single
  29400. register (''m'' is preferable for 'asm' statements)
  29401. 'R'
  29402. An item in the constant pool
  29403. 'S'
  29404. A symbol in the text segment of the current file
  29405. 'Uv'
  29406. A memory reference suitable for VFP load/store insns
  29407. (reg+constant offset)
  29408. 'Uy'
  29409. A memory reference suitable for iWMMXt load/store
  29410. instructions.
  29411. 'Uq'
  29412. A memory reference suitable for the ARMv4 ldrsb instruction.
  29413. _AVR family--'config/avr/constraints.md'_
  29414. 'l'
  29415. Registers from r0 to r15
  29416. 'a'
  29417. Registers from r16 to r23
  29418. 'd'
  29419. Registers from r16 to r31
  29420. 'w'
  29421. Registers from r24 to r31. These registers can be used in
  29422. 'adiw' command
  29423. 'e'
  29424. Pointer register (r26-r31)
  29425. 'b'
  29426. Base pointer register (r28-r31)
  29427. 'q'
  29428. Stack pointer register (SPH:SPL)
  29429. 't'
  29430. Temporary register r0
  29431. 'x'
  29432. Register pair X (r27:r26)
  29433. 'y'
  29434. Register pair Y (r29:r28)
  29435. 'z'
  29436. Register pair Z (r31:r30)
  29437. 'I'
  29438. Constant greater than -1, less than 64
  29439. 'J'
  29440. Constant greater than -64, less than 1
  29441. 'K'
  29442. Constant integer 2
  29443. 'L'
  29444. Constant integer 0
  29445. 'M'
  29446. Constant that fits in 8 bits
  29447. 'N'
  29448. Constant integer -1
  29449. 'O'
  29450. Constant integer 8, 16, or 24
  29451. 'P'
  29452. Constant integer 1
  29453. 'G'
  29454. A floating point constant 0.0
  29455. 'Q'
  29456. A memory address based on Y or Z pointer with displacement.
  29457. _Blackfin family--'config/bfin/constraints.md'_
  29458. 'a'
  29459. P register
  29460. 'd'
  29461. D register
  29462. 'z'
  29463. A call clobbered P register.
  29464. 'qN'
  29465. A single register. If N is in the range 0 to 7, the
  29466. corresponding D register. If it is 'A', then the register P0.
  29467. 'D'
  29468. Even-numbered D register
  29469. 'W'
  29470. Odd-numbered D register
  29471. 'e'
  29472. Accumulator register.
  29473. 'A'
  29474. Even-numbered accumulator register.
  29475. 'B'
  29476. Odd-numbered accumulator register.
  29477. 'b'
  29478. I register
  29479. 'v'
  29480. B register
  29481. 'f'
  29482. M register
  29483. 'c'
  29484. Registers used for circular buffering, i.e. I, B, or L
  29485. registers.
  29486. 'C'
  29487. The CC register.
  29488. 't'
  29489. LT0 or LT1.
  29490. 'k'
  29491. LC0 or LC1.
  29492. 'u'
  29493. LB0 or LB1.
  29494. 'x'
  29495. Any D, P, B, M, I or L register.
  29496. 'y'
  29497. Additional registers typically used only in prologues and
  29498. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  29499. USP.
  29500. 'w'
  29501. Any register except accumulators or CC.
  29502. 'Ksh'
  29503. Signed 16 bit integer (in the range -32768 to 32767)
  29504. 'Kuh'
  29505. Unsigned 16 bit integer (in the range 0 to 65535)
  29506. 'Ks7'
  29507. Signed 7 bit integer (in the range -64 to 63)
  29508. 'Ku7'
  29509. Unsigned 7 bit integer (in the range 0 to 127)
  29510. 'Ku5'
  29511. Unsigned 5 bit integer (in the range 0 to 31)
  29512. 'Ks4'
  29513. Signed 4 bit integer (in the range -8 to 7)
  29514. 'Ks3'
  29515. Signed 3 bit integer (in the range -3 to 4)
  29516. 'Ku3'
  29517. Unsigned 3 bit integer (in the range 0 to 7)
  29518. 'PN'
  29519. Constant N, where N is a single-digit constant in the range 0
  29520. to 4.
  29521. 'PA'
  29522. An integer equal to one of the MACFLAG_XXX constants that is
  29523. suitable for use with either accumulator.
  29524. 'PB'
  29525. An integer equal to one of the MACFLAG_XXX constants that is
  29526. suitable for use only with accumulator A1.
  29527. 'M1'
  29528. Constant 255.
  29529. 'M2'
  29530. Constant 65535.
  29531. 'J'
  29532. An integer constant with exactly a single bit set.
  29533. 'L'
  29534. An integer constant with all bits set except exactly one.
  29535. 'H'
  29536. 'Q'
  29537. Any SYMBOL_REF.
  29538. _CR16 Architecture--'config/cr16/cr16.h'_
  29539. 'b'
  29540. Registers from r0 to r14 (registers without stack pointer)
  29541. 't'
  29542. Register from r0 to r11 (all 16-bit registers)
  29543. 'p'
  29544. Register from r12 to r15 (all 32-bit registers)
  29545. 'I'
  29546. Signed constant that fits in 4 bits
  29547. 'J'
  29548. Signed constant that fits in 5 bits
  29549. 'K'
  29550. Signed constant that fits in 6 bits
  29551. 'L'
  29552. Unsigned constant that fits in 4 bits
  29553. 'M'
  29554. Signed constant that fits in 32 bits
  29555. 'N'
  29556. Check for 64 bits wide constants for add/sub instructions
  29557. 'G'
  29558. Floating point constant that is legal for store immediate
  29559. _Epiphany--'config/epiphany/constraints.md'_
  29560. 'U16'
  29561. An unsigned 16-bit constant.
  29562. 'K'
  29563. An unsigned 5-bit constant.
  29564. 'L'
  29565. A signed 11-bit constant.
  29566. 'Cm1'
  29567. A signed 11-bit constant added to -1. Can only match when the
  29568. '-m1reg-REG' option is active.
  29569. 'Cl1'
  29570. Left-shift of -1, i.e., a bit mask with a block of leading
  29571. ones, the rest being a block of trailing zeroes. Can only
  29572. match when the '-m1reg-REG' option is active.
  29573. 'Cr1'
  29574. Right-shift of -1, i.e., a bit mask with a trailing block of
  29575. ones, the rest being zeroes. Or to put it another way, one
  29576. less than a power of two. Can only match when the
  29577. '-m1reg-REG' option is active.
  29578. 'Cal'
  29579. Constant for arithmetic/logical operations. This is like 'i',
  29580. except that for position independent code, no symbols /
  29581. expressions needing relocations are allowed.
  29582. 'Csy'
  29583. Symbolic constant for call/jump instruction.
  29584. 'Rcs'
  29585. The register class usable in short insns. This is a register
  29586. class constraint, and can thus drive register allocation.
  29587. This constraint won't match unless '-mprefer-short-insn-regs'
  29588. is in effect.
  29589. 'Rsc'
  29590. The the register class of registers that can be used to hold a
  29591. sibcall call address. I.e., a caller-saved register.
  29592. 'Rct'
  29593. Core control register class.
  29594. 'Rgs'
  29595. The register group usable in short insns. This constraint
  29596. does not use a register class, so that it only passively
  29597. matches suitable registers, and doesn't drive register
  29598. allocation.
  29599. 'Rra'
  29600. Matches the return address if it can be replaced with the link
  29601. register.
  29602. 'Rcc'
  29603. Matches the integer condition code register.
  29604. 'Sra'
  29605. Matches the return address if it is in a stack slot.
  29606. 'Cfm'
  29607. Matches control register values to switch fp mode, which are
  29608. encapsulated in 'UNSPEC_FP_MODE'.
  29609. _FRV--'config/frv/frv.h'_
  29610. 'a'
  29611. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  29612. 'b'
  29613. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  29614. 'c'
  29615. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  29616. to 'icc3').
  29617. 'd'
  29618. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  29619. 'e'
  29620. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  29621. registers are excluded not in the class but through the use of
  29622. a machine mode larger than 4 bytes.
  29623. 'f'
  29624. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  29625. 'h'
  29626. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  29627. registers are excluded not in the class but through the use of
  29628. a machine mode larger than 4 bytes.
  29629. 'l'
  29630. Register in the class 'LR_REG' (the 'lr' register).
  29631. 'q'
  29632. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  29633. numbers not divisible by 4 are excluded not in the class but
  29634. through the use of a machine mode larger than 8 bytes.
  29635. 't'
  29636. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  29637. 'u'
  29638. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  29639. 'v'
  29640. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  29641. 'w'
  29642. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  29643. 'x'
  29644. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  29645. Register numbers not divisible by 4 are excluded not in the
  29646. class but through the use of a machine mode larger than 8
  29647. bytes.
  29648. 'z'
  29649. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  29650. 'A'
  29651. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  29652. 'B'
  29653. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  29654. 'C'
  29655. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  29656. 'G'
  29657. Floating point constant zero
  29658. 'I'
  29659. 6-bit signed integer constant
  29660. 'J'
  29661. 10-bit signed integer constant
  29662. 'L'
  29663. 16-bit signed integer constant
  29664. 'M'
  29665. 16-bit unsigned integer constant
  29666. 'N'
  29667. 12-bit signed integer constant that is negative--i.e. in the
  29668. range of -2048 to -1
  29669. 'O'
  29670. Constant zero
  29671. 'P'
  29672. 12-bit signed integer constant that is greater than zero--i.e.
  29673. in the range of 1 to 2047.
  29674. _FT32--'config/ft32/constraints.md'_
  29675. 'A'
  29676. An absolute address
  29677. 'B'
  29678. An offset address
  29679. 'W'
  29680. A register indirect memory operand
  29681. 'e'
  29682. An offset address.
  29683. 'f'
  29684. An offset address.
  29685. 'O'
  29686. The constant zero or one
  29687. 'I'
  29688. A 16-bit signed constant (-32768 ... 32767)
  29689. 'w'
  29690. A bitfield mask suitable for bext or bins
  29691. 'x'
  29692. An inverted bitfield mask suitable for bext or bins
  29693. 'L'
  29694. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  29695. 'S'
  29696. A 20-bit signed constant (-524288 ... 524287)
  29697. 'b'
  29698. A constant for a bitfield width (1 ... 16)
  29699. 'KA'
  29700. A 10-bit signed constant (-512 ... 511)
  29701. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  29702. 'a'
  29703. General register 1
  29704. 'f'
  29705. Floating point register
  29706. 'q'
  29707. Shift amount register
  29708. 'x'
  29709. Floating point register (deprecated)
  29710. 'y'
  29711. Upper floating point register (32-bit), floating point
  29712. register (64-bit)
  29713. 'Z'
  29714. Any register
  29715. 'I'
  29716. Signed 11-bit integer constant
  29717. 'J'
  29718. Signed 14-bit integer constant
  29719. 'K'
  29720. Integer constant that can be deposited with a 'zdepi'
  29721. instruction
  29722. 'L'
  29723. Signed 5-bit integer constant
  29724. 'M'
  29725. Integer constant 0
  29726. 'N'
  29727. Integer constant that can be loaded with a 'ldil' instruction
  29728. 'O'
  29729. Integer constant whose value plus one is a power of 2
  29730. 'P'
  29731. Integer constant that can be used for 'and' operations in
  29732. 'depi' and 'extru' instructions
  29733. 'S'
  29734. Integer constant 31
  29735. 'U'
  29736. Integer constant 63
  29737. 'G'
  29738. Floating-point constant 0.0
  29739. 'A'
  29740. A 'lo_sum' data-linkage-table memory operand
  29741. 'Q'
  29742. A memory operand that can be used as the destination operand
  29743. of an integer store instruction
  29744. 'R'
  29745. A scaled or unscaled indexed memory operand
  29746. 'T'
  29747. A memory operand for floating-point loads and stores
  29748. 'W'
  29749. A register indirect memory operand
  29750. _Intel IA-64--'config/ia64/ia64.h'_
  29751. 'a'
  29752. General register 'r0' to 'r3' for 'addl' instruction
  29753. 'b'
  29754. Branch register
  29755. 'c'
  29756. Predicate register ('c' as in "conditional")
  29757. 'd'
  29758. Application register residing in M-unit
  29759. 'e'
  29760. Application register residing in I-unit
  29761. 'f'
  29762. Floating-point register
  29763. 'm'
  29764. Memory operand. If used together with '<' or '>', the operand
  29765. can have postincrement and postdecrement which require
  29766. printing with '%Pn' on IA-64.
  29767. 'G'
  29768. Floating-point constant 0.0 or 1.0
  29769. 'I'
  29770. 14-bit signed integer constant
  29771. 'J'
  29772. 22-bit signed integer constant
  29773. 'K'
  29774. 8-bit signed integer constant for logical instructions
  29775. 'L'
  29776. 8-bit adjusted signed integer constant for compare pseudo-ops
  29777. 'M'
  29778. 6-bit unsigned integer constant for shift counts
  29779. 'N'
  29780. 9-bit signed integer constant for load and store
  29781. postincrements
  29782. 'O'
  29783. The constant zero
  29784. 'P'
  29785. 0 or -1 for 'dep' instruction
  29786. 'Q'
  29787. Non-volatile memory for floating-point loads and stores
  29788. 'R'
  29789. Integer constant in the range 1 to 4 for 'shladd' instruction
  29790. 'S'
  29791. Memory operand except postincrement and postdecrement. This
  29792. is now roughly the same as 'm' when not used together with '<'
  29793. or '>'.
  29794. _M32C--'config/m32c/m32c.c'_
  29795. 'Rsp'
  29796. 'Rfb'
  29797. 'Rsb'
  29798. '$sp', '$fb', '$sb'.
  29799. 'Rcr'
  29800. Any control register, when they're 16 bits wide (nothing if
  29801. control registers are 24 bits wide)
  29802. 'Rcl'
  29803. Any control register, when they're 24 bits wide.
  29804. 'R0w'
  29805. 'R1w'
  29806. 'R2w'
  29807. 'R3w'
  29808. $r0, $r1, $r2, $r3.
  29809. 'R02'
  29810. $r0 or $r2, or $r2r0 for 32 bit values.
  29811. 'R13'
  29812. $r1 or $r3, or $r3r1 for 32 bit values.
  29813. 'Rdi'
  29814. A register that can hold a 64 bit value.
  29815. 'Rhl'
  29816. $r0 or $r1 (registers with addressable high/low bytes)
  29817. 'R23'
  29818. $r2 or $r3
  29819. 'Raa'
  29820. Address registers
  29821. 'Raw'
  29822. Address registers when they're 16 bits wide.
  29823. 'Ral'
  29824. Address registers when they're 24 bits wide.
  29825. 'Rqi'
  29826. Registers that can hold QI values.
  29827. 'Rad'
  29828. Registers that can be used with displacements ($a0, $a1, $sb).
  29829. 'Rsi'
  29830. Registers that can hold 32 bit values.
  29831. 'Rhi'
  29832. Registers that can hold 16 bit values.
  29833. 'Rhc'
  29834. Registers chat can hold 16 bit values, including all control
  29835. registers.
  29836. 'Rra'
  29837. $r0 through R1, plus $a0 and $a1.
  29838. 'Rfl'
  29839. The flags register.
  29840. 'Rmm'
  29841. The memory-based pseudo-registers $mem0 through $mem15.
  29842. 'Rpi'
  29843. Registers that can hold pointers (16 bit registers for r8c,
  29844. m16c; 24 bit registers for m32cm, m32c).
  29845. 'Rpa'
  29846. Matches multiple registers in a PARALLEL to form a larger
  29847. register. Used to match function return values.
  29848. 'Is3'
  29849. -8 ... 7
  29850. 'IS1'
  29851. -128 ... 127
  29852. 'IS2'
  29853. -32768 ... 32767
  29854. 'IU2'
  29855. 0 ... 65535
  29856. 'In4'
  29857. -8 ... -1 or 1 ... 8
  29858. 'In5'
  29859. -16 ... -1 or 1 ... 16
  29860. 'In6'
  29861. -32 ... -1 or 1 ... 32
  29862. 'IM2'
  29863. -65536 ... -1
  29864. 'Ilb'
  29865. An 8 bit value with exactly one bit set.
  29866. 'Ilw'
  29867. A 16 bit value with exactly one bit set.
  29868. 'Sd'
  29869. The common src/dest memory addressing modes.
  29870. 'Sa'
  29871. Memory addressed using $a0 or $a1.
  29872. 'Si'
  29873. Memory addressed with immediate addresses.
  29874. 'Ss'
  29875. Memory addressed using the stack pointer ($sp).
  29876. 'Sf'
  29877. Memory addressed using the frame base register ($fb).
  29878. 'Ss'
  29879. Memory addressed using the small base register ($sb).
  29880. 'S1'
  29881. $r1h
  29882. _MicroBlaze--'config/microblaze/constraints.md'_
  29883. 'd'
  29884. A general register ('r0' to 'r31').
  29885. 'z'
  29886. A status register ('rmsr', '$fcc1' to '$fcc7').
  29887. _MIPS--'config/mips/constraints.md'_
  29888. 'd'
  29889. A general-purpose register. This is equivalent to 'r' unless
  29890. generating MIPS16 code, in which case the MIPS16 register set
  29891. is used.
  29892. 'f'
  29893. A floating-point register (if available).
  29894. 'h'
  29895. Formerly the 'hi' register. This constraint is no longer
  29896. supported.
  29897. 'l'
  29898. The 'lo' register. Use this register to store values that are
  29899. no bigger than a word.
  29900. 'x'
  29901. The concatenated 'hi' and 'lo' registers. Use this register
  29902. to store doubleword values.
  29903. 'c'
  29904. A register suitable for use in an indirect jump. This will
  29905. always be '$25' for '-mabicalls'.
  29906. 'v'
  29907. Register '$3'. Do not use this constraint in new code; it is
  29908. retained only for compatibility with glibc.
  29909. 'y'
  29910. Equivalent to 'r'; retained for backwards compatibility.
  29911. 'z'
  29912. A floating-point condition code register.
  29913. 'I'
  29914. A signed 16-bit constant (for arithmetic instructions).
  29915. 'J'
  29916. Integer zero.
  29917. 'K'
  29918. An unsigned 16-bit constant (for logic instructions).
  29919. 'L'
  29920. A signed 32-bit constant in which the lower 16 bits are zero.
  29921. Such constants can be loaded using 'lui'.
  29922. 'M'
  29923. A constant that cannot be loaded using 'lui', 'addiu' or
  29924. 'ori'.
  29925. 'N'
  29926. A constant in the range -65535 to -1 (inclusive).
  29927. 'O'
  29928. A signed 15-bit constant.
  29929. 'P'
  29930. A constant in the range 1 to 65535 (inclusive).
  29931. 'G'
  29932. Floating-point zero.
  29933. 'R'
  29934. An address that can be used in a non-macro load or store.
  29935. 'ZC'
  29936. A memory operand whose address is formed by a base register
  29937. and offset that is suitable for use in instructions with the
  29938. same addressing mode as 'll' and 'sc'.
  29939. 'ZD'
  29940. An address suitable for a 'prefetch' instruction, or for any
  29941. other instruction with the same addressing mode as 'prefetch'.
  29942. _Motorola 680x0--'config/m68k/constraints.md'_
  29943. 'a'
  29944. Address register
  29945. 'd'
  29946. Data register
  29947. 'f'
  29948. 68881 floating-point register, if available
  29949. 'I'
  29950. Integer in the range 1 to 8
  29951. 'J'
  29952. 16-bit signed number
  29953. 'K'
  29954. Signed number whose magnitude is greater than 0x80
  29955. 'L'
  29956. Integer in the range -8 to -1
  29957. 'M'
  29958. Signed number whose magnitude is greater than 0x100
  29959. 'N'
  29960. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  29961. 'O'
  29962. 16 (for rotate using swap)
  29963. 'P'
  29964. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  29965. 'R'
  29966. Numbers that mov3q can handle
  29967. 'G'
  29968. Floating point constant that is not a 68881 constant
  29969. 'S'
  29970. Operands that satisfy 'm' when -mpcrel is in effect
  29971. 'T'
  29972. Operands that satisfy 's' when -mpcrel is not in effect
  29973. 'Q'
  29974. Address register indirect addressing mode
  29975. 'U'
  29976. Register offset addressing
  29977. 'W'
  29978. const_call_operand
  29979. 'Cs'
  29980. symbol_ref or const
  29981. 'Ci'
  29982. const_int
  29983. 'C0'
  29984. const_int 0
  29985. 'Cj'
  29986. Range of signed numbers that don't fit in 16 bits
  29987. 'Cmvq'
  29988. Integers valid for mvq
  29989. 'Capsw'
  29990. Integers valid for a moveq followed by a swap
  29991. 'Cmvz'
  29992. Integers valid for mvz
  29993. 'Cmvs'
  29994. Integers valid for mvs
  29995. 'Ap'
  29996. push_operand
  29997. 'Ac'
  29998. Non-register operands allowed in clr
  29999. _Moxie--'config/moxie/constraints.md'_
  30000. 'A'
  30001. An absolute address
  30002. 'B'
  30003. An offset address
  30004. 'W'
  30005. A register indirect memory operand
  30006. 'I'
  30007. A constant in the range of 0 to 255.
  30008. 'N'
  30009. A constant in the range of 0 to -255.
  30010. _MSP430-'config/msp430/constraints.md'_
  30011. 'R12'
  30012. Register R12.
  30013. 'R13'
  30014. Register R13.
  30015. 'K'
  30016. Integer constant 1.
  30017. 'L'
  30018. Integer constant -1^20..1^19.
  30019. 'M'
  30020. Integer constant 1-4.
  30021. 'Ya'
  30022. Memory references which do not require an extended MOVX
  30023. instruction.
  30024. 'Yl'
  30025. Memory reference, labels only.
  30026. 'Ys'
  30027. Memory reference, stack only.
  30028. _NDS32--'config/nds32/constraints.md'_
  30029. 'w'
  30030. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  30031. 'l'
  30032. LOW register class $r0 to $r7.
  30033. 'd'
  30034. MIDDLE register class $r0 to $r11, $r16 to $r19.
  30035. 'h'
  30036. HIGH register class $r12 to $r14, $r20 to $r31.
  30037. 't'
  30038. Temporary assist register $ta (i.e. $r15).
  30039. 'k'
  30040. Stack register $sp.
  30041. 'Iu03'
  30042. Unsigned immediate 3-bit value.
  30043. 'In03'
  30044. Negative immediate 3-bit value in the range of -7-0.
  30045. 'Iu04'
  30046. Unsigned immediate 4-bit value.
  30047. 'Is05'
  30048. Signed immediate 5-bit value.
  30049. 'Iu05'
  30050. Unsigned immediate 5-bit value.
  30051. 'In05'
  30052. Negative immediate 5-bit value in the range of -31-0.
  30053. 'Ip05'
  30054. Unsigned immediate 5-bit value for movpi45 instruction with
  30055. range 16-47.
  30056. 'Iu06'
  30057. Unsigned immediate 6-bit value constraint for addri36.sp
  30058. instruction.
  30059. 'Iu08'
  30060. Unsigned immediate 8-bit value.
  30061. 'Iu09'
  30062. Unsigned immediate 9-bit value.
  30063. 'Is10'
  30064. Signed immediate 10-bit value.
  30065. 'Is11'
  30066. Signed immediate 11-bit value.
  30067. 'Is15'
  30068. Signed immediate 15-bit value.
  30069. 'Iu15'
  30070. Unsigned immediate 15-bit value.
  30071. 'Ic15'
  30072. A constant which is not in the range of imm15u but ok for bclr
  30073. instruction.
  30074. 'Ie15'
  30075. A constant which is not in the range of imm15u but ok for bset
  30076. instruction.
  30077. 'It15'
  30078. A constant which is not in the range of imm15u but ok for btgl
  30079. instruction.
  30080. 'Ii15'
  30081. A constant whose compliment value is in the range of imm15u
  30082. and ok for bitci instruction.
  30083. 'Is16'
  30084. Signed immediate 16-bit value.
  30085. 'Is17'
  30086. Signed immediate 17-bit value.
  30087. 'Is19'
  30088. Signed immediate 19-bit value.
  30089. 'Is20'
  30090. Signed immediate 20-bit value.
  30091. 'Ihig'
  30092. The immediate value that can be simply set high 20-bit.
  30093. 'Izeb'
  30094. The immediate value 0xff.
  30095. 'Izeh'
  30096. The immediate value 0xffff.
  30097. 'Ixls'
  30098. The immediate value 0x01.
  30099. 'Ix11'
  30100. The immediate value 0x7ff.
  30101. 'Ibms'
  30102. The immediate value with power of 2.
  30103. 'Ifex'
  30104. The immediate value with power of 2 minus 1.
  30105. 'U33'
  30106. Memory constraint for 333 format.
  30107. 'U45'
  30108. Memory constraint for 45 format.
  30109. 'U37'
  30110. Memory constraint for 37 format.
  30111. _Nios II family--'config/nios2/constraints.md'_
  30112. 'I'
  30113. Integer that is valid as an immediate operand in an
  30114. instruction taking a signed 16-bit number. Range -32768 to
  30115. 32767.
  30116. 'J'
  30117. Integer that is valid as an immediate operand in an
  30118. instruction taking an unsigned 16-bit number. Range 0 to
  30119. 65535.
  30120. 'K'
  30121. Integer that is valid as an immediate operand in an
  30122. instruction taking only the upper 16-bits of a 32-bit number.
  30123. Range 32-bit numbers with the lower 16-bits being 0.
  30124. 'L'
  30125. Integer that is valid as an immediate operand for a shift
  30126. instruction. Range 0 to 31.
  30127. 'M'
  30128. Integer that is valid as an immediate operand for only the
  30129. value 0. Can be used in conjunction with the format modifier
  30130. 'z' to use 'r0' instead of '0' in the assembly output.
  30131. 'N'
  30132. Integer that is valid as an immediate operand for a custom
  30133. instruction opcode. Range 0 to 255.
  30134. 'P'
  30135. An immediate operand for R2 andchi/andci instructions.
  30136. 'S'
  30137. Matches immediates which are addresses in the small data
  30138. section and therefore can be added to 'gp' as a 16-bit
  30139. immediate to re-create their 32-bit value.
  30140. 'U'
  30141. Matches constants suitable as an operand for the rdprs and
  30142. cache instructions.
  30143. 'v'
  30144. A memory operand suitable for Nios II R2 load/store exclusive
  30145. instructions.
  30146. 'w'
  30147. A memory operand suitable for load/store IO and cache
  30148. instructions.
  30149. _PDP-11--'config/pdp11/constraints.md'_
  30150. 'a'
  30151. Floating point registers AC0 through AC3. These can be loaded
  30152. from/to memory with a single instruction.
  30153. 'd'
  30154. Odd numbered general registers (R1, R3, R5). These are used
  30155. for 16-bit multiply operations.
  30156. 'f'
  30157. Any of the floating point registers (AC0 through AC5).
  30158. 'G'
  30159. Floating point constant 0.
  30160. 'I'
  30161. An integer constant that fits in 16 bits.
  30162. 'J'
  30163. An integer constant whose low order 16 bits are zero.
  30164. 'K'
  30165. An integer constant that does not meet the constraints for
  30166. codes 'I' or 'J'.
  30167. 'L'
  30168. The integer constant 1.
  30169. 'M'
  30170. The integer constant -1.
  30171. 'N'
  30172. The integer constant 0.
  30173. 'O'
  30174. Integer constants -4 through -1 and 1 through 4; shifts by
  30175. these amounts are handled as multiple single-bit shifts rather
  30176. than a single variable-length shift.
  30177. 'Q'
  30178. A memory reference which requires an additional word (address
  30179. or offset) after the opcode.
  30180. 'R'
  30181. A memory reference that is encoded within the opcode.
  30182. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  30183. 'b'
  30184. Address base register
  30185. 'd'
  30186. Floating point register (containing 64-bit value)
  30187. 'f'
  30188. Floating point register (containing 32-bit value)
  30189. 'v'
  30190. Altivec vector register
  30191. 'wa'
  30192. Any VSX register if the '-mvsx' option was used or NO_REGS.
  30193. When using any of the register constraints ('wa', 'wd', 'wf',
  30194. 'wg', 'wh', 'wi', 'wj', 'wk', 'wl', 'wm', 'wo', 'wp', 'wq',
  30195. 'ws', 'wt', 'wu', 'wv', 'ww', or 'wy') that take VSX
  30196. registers, you must use '%x<n>' in the template so that the
  30197. correct register is used. Otherwise the register number
  30198. output in the assembly file will be incorrect if an Altivec
  30199. register is an operand of a VSX instruction that expects VSX
  30200. register numbering.
  30201. asm ("xvadddp %x0,%x1,%x2"
  30202. : "=wa" (v1)
  30203. : "wa" (v2), "wa" (v3));
  30204. is correct, but:
  30205. asm ("xvadddp %0,%1,%2"
  30206. : "=wa" (v1)
  30207. : "wa" (v2), "wa" (v3));
  30208. is not correct.
  30209. If an instruction only takes Altivec registers, you do not
  30210. want to use '%x<n>'.
  30211. asm ("xsaddqp %0,%1,%2"
  30212. : "=v" (v1)
  30213. : "v" (v2), "v" (v3));
  30214. is correct because the 'xsaddqp' instruction only takes
  30215. Altivec registers, while:
  30216. asm ("xsaddqp %x0,%x1,%x2"
  30217. : "=v" (v1)
  30218. : "v" (v2), "v" (v3));
  30219. is incorrect.
  30220. 'wb'
  30221. Altivec register if '-mcpu=power9' is used or NO_REGS.
  30222. 'wd'
  30223. VSX vector register to hold vector double data or NO_REGS.
  30224. 'we'
  30225. VSX register if the '-mcpu=power9' and '-m64' options were
  30226. used or NO_REGS.
  30227. 'wf'
  30228. VSX vector register to hold vector float data or NO_REGS.
  30229. 'wg'
  30230. If '-mmfpgpr' was used, a floating point register or NO_REGS.
  30231. 'wh'
  30232. Floating point register if direct moves are available, or
  30233. NO_REGS.
  30234. 'wi'
  30235. FP or VSX register to hold 64-bit integers for VSX insns or
  30236. NO_REGS.
  30237. 'wj'
  30238. FP or VSX register to hold 64-bit integers for direct moves or
  30239. NO_REGS.
  30240. 'wk'
  30241. FP or VSX register to hold 64-bit doubles for direct moves or
  30242. NO_REGS.
  30243. 'wl'
  30244. Floating point register if the LFIWAX instruction is enabled
  30245. or NO_REGS.
  30246. 'wm'
  30247. VSX register if direct move instructions are enabled, or
  30248. NO_REGS.
  30249. 'wn'
  30250. No register (NO_REGS).
  30251. 'wo'
  30252. VSX register to use for ISA 3.0 vector instructions, or
  30253. NO_REGS.
  30254. 'wp'
  30255. VSX register to use for IEEE 128-bit floating point TFmode, or
  30256. NO_REGS.
  30257. 'wq'
  30258. VSX register to use for IEEE 128-bit floating point, or
  30259. NO_REGS.
  30260. 'wr'
  30261. General purpose register if 64-bit instructions are enabled or
  30262. NO_REGS.
  30263. 'ws'
  30264. VSX vector register to hold scalar double values or NO_REGS.
  30265. 'wt'
  30266. VSX vector register to hold 128 bit integer or NO_REGS.
  30267. 'wu'
  30268. Altivec register to use for float/32-bit int loads/stores or
  30269. NO_REGS.
  30270. 'wv'
  30271. Altivec register to use for double loads/stores or NO_REGS.
  30272. 'ww'
  30273. FP or VSX register to perform float operations under '-mvsx'
  30274. or NO_REGS.
  30275. 'wx'
  30276. Floating point register if the STFIWX instruction is enabled
  30277. or NO_REGS.
  30278. 'wy'
  30279. FP or VSX register to perform ISA 2.07 float ops or NO_REGS.
  30280. 'wz'
  30281. Floating point register if the LFIWZX instruction is enabled
  30282. or NO_REGS.
  30283. 'wA'
  30284. Address base register if 64-bit instructions are enabled or
  30285. NO_REGS.
  30286. 'wB'
  30287. Signed 5-bit constant integer that can be loaded into an
  30288. altivec register.
  30289. 'wD'
  30290. Int constant that is the element number of the 64-bit scalar
  30291. in a vector.
  30292. 'wE'
  30293. Vector constant that can be loaded with the XXSPLTIB
  30294. instruction.
  30295. 'wF'
  30296. Memory operand suitable for power9 fusion load/stores.
  30297. 'wG'
  30298. Memory operand suitable for TOC fusion memory references.
  30299. 'wH'
  30300. Altivec register if '-mvsx-small-integer'.
  30301. 'wI'
  30302. Floating point register if '-mvsx-small-integer'.
  30303. 'wJ'
  30304. FP register if '-mvsx-small-integer' and '-mpower9-vector'.
  30305. 'wK'
  30306. Altivec register if '-mvsx-small-integer' and
  30307. '-mpower9-vector'.
  30308. 'wL'
  30309. Int constant that is the element number that the MFVSRLD
  30310. instruction. targets.
  30311. 'wM'
  30312. Match vector constant with all 1's if the XXLORC instruction
  30313. is available.
  30314. 'wO'
  30315. A memory operand suitable for the ISA 3.0 vector d-form
  30316. instructions.
  30317. 'wQ'
  30318. A memory address that will work with the 'lq' and 'stq'
  30319. instructions.
  30320. 'wS'
  30321. Vector constant that can be loaded with XXSPLTIB & sign
  30322. extension.
  30323. 'h'
  30324. 'MQ', 'CTR', or 'LINK' register
  30325. 'c'
  30326. 'CTR' register
  30327. 'l'
  30328. 'LINK' register
  30329. 'x'
  30330. 'CR' register (condition register) number 0
  30331. 'y'
  30332. 'CR' register (condition register)
  30333. 'z'
  30334. 'XER[CA]' carry bit (part of the XER register)
  30335. 'I'
  30336. Signed 16-bit constant
  30337. 'J'
  30338. Unsigned 16-bit constant shifted left 16 bits (use 'L' instead
  30339. for 'SImode' constants)
  30340. 'K'
  30341. Unsigned 16-bit constant
  30342. 'L'
  30343. Signed 16-bit constant shifted left 16 bits
  30344. 'M'
  30345. Constant larger than 31
  30346. 'N'
  30347. Exact power of 2
  30348. 'O'
  30349. Zero
  30350. 'P'
  30351. Constant whose negation is a signed 16-bit constant
  30352. 'G'
  30353. Floating point constant that can be loaded into a register
  30354. with one instruction per word
  30355. 'H'
  30356. Integer/Floating point constant that can be loaded into a
  30357. register using three instructions
  30358. 'm'
  30359. Memory operand. Normally, 'm' does not allow addresses that
  30360. update the base register. If '<' or '>' constraint is also
  30361. used, they are allowed and therefore on PowerPC targets in
  30362. that case it is only safe to use 'm<>' in an 'asm' statement
  30363. if that 'asm' statement accesses the operand exactly once.
  30364. The 'asm' statement must also use '%U<OPNO>' as a placeholder
  30365. for the "update" flag in the corresponding load or store
  30366. instruction. For example:
  30367. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  30368. is correct but:
  30369. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  30370. is not.
  30371. 'es'
  30372. A "stable" memory operand; that is, one which does not include
  30373. any automodification of the base register. This used to be
  30374. useful when 'm' allowed automodification of the base register,
  30375. but as those are now only allowed when '<' or '>' is used,
  30376. 'es' is basically the same as 'm' without '<' and '>'.
  30377. 'Q'
  30378. Memory operand that is an offset from a register (it is
  30379. usually better to use 'm' or 'es' in 'asm' statements)
  30380. 'Z'
  30381. Memory operand that is an indexed or indirect from a register
  30382. (it is usually better to use 'm' or 'es' in 'asm' statements)
  30383. 'R'
  30384. AIX TOC entry
  30385. 'a'
  30386. Address operand that is an indexed or indirect from a register
  30387. ('p' is preferable for 'asm' statements)
  30388. 'U'
  30389. System V Release 4 small data area reference
  30390. 'W'
  30391. Vector constant that does not require memory
  30392. 'j'
  30393. Vector constant that is all zeros.
  30394. _RL78--'config/rl78/constraints.md'_
  30395. 'Int3'
  30396. An integer constant in the range 1 ... 7.
  30397. 'Int8'
  30398. An integer constant in the range 0 ... 255.
  30399. 'J'
  30400. An integer constant in the range -255 ... 0
  30401. 'K'
  30402. The integer constant 1.
  30403. 'L'
  30404. The integer constant -1.
  30405. 'M'
  30406. The integer constant 0.
  30407. 'N'
  30408. The integer constant 2.
  30409. 'O'
  30410. The integer constant -2.
  30411. 'P'
  30412. An integer constant in the range 1 ... 15.
  30413. 'Qbi'
  30414. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  30415. 'Qsc'
  30416. The synthetic compare types-gt, lt, ge, and le.
  30417. 'Wab'
  30418. A memory reference with an absolute address.
  30419. 'Wbc'
  30420. A memory reference using 'BC' as a base register, with an
  30421. optional offset.
  30422. 'Wca'
  30423. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  30424. address, for calls.
  30425. 'Wcv'
  30426. A memory reference using any 16-bit register pair for the
  30427. address, for calls.
  30428. 'Wd2'
  30429. A memory reference using 'DE' as a base register, with an
  30430. optional offset.
  30431. 'Wde'
  30432. A memory reference using 'DE' as a base register, without any
  30433. offset.
  30434. 'Wfr'
  30435. Any memory reference to an address in the far address space.
  30436. 'Wh1'
  30437. A memory reference using 'HL' as a base register, with an
  30438. optional one-byte offset.
  30439. 'Whb'
  30440. A memory reference using 'HL' as a base register, with 'B' or
  30441. 'C' as the index register.
  30442. 'Whl'
  30443. A memory reference using 'HL' as a base register, without any
  30444. offset.
  30445. 'Ws1'
  30446. A memory reference using 'SP' as a base register, with an
  30447. optional one-byte offset.
  30448. 'Y'
  30449. Any memory reference to an address in the near address space.
  30450. 'A'
  30451. The 'AX' register.
  30452. 'B'
  30453. The 'BC' register.
  30454. 'D'
  30455. The 'DE' register.
  30456. 'R'
  30457. 'A' through 'L' registers.
  30458. 'S'
  30459. The 'SP' register.
  30460. 'T'
  30461. The 'HL' register.
  30462. 'Z08W'
  30463. The 16-bit 'R8' register.
  30464. 'Z10W'
  30465. The 16-bit 'R10' register.
  30466. 'Zint'
  30467. The registers reserved for interrupts ('R24' to 'R31').
  30468. 'a'
  30469. The 'A' register.
  30470. 'b'
  30471. The 'B' register.
  30472. 'c'
  30473. The 'C' register.
  30474. 'd'
  30475. The 'D' register.
  30476. 'e'
  30477. The 'E' register.
  30478. 'h'
  30479. The 'H' register.
  30480. 'l'
  30481. The 'L' register.
  30482. 'v'
  30483. The virtual registers.
  30484. 'w'
  30485. The 'PSW' register.
  30486. 'x'
  30487. The 'X' register.
  30488. _RISC-V--'config/riscv/constraints.md'_
  30489. 'f'
  30490. A floating-point register (if availiable).
  30491. 'I'
  30492. An I-type 12-bit signed immediate.
  30493. 'J'
  30494. Integer zero.
  30495. 'K'
  30496. A 5-bit unsigned immediate for CSR access instructions.
  30497. 'C'
  30498. A 12-bit unsigned immediate for CSR register address.
  30499. 'A'
  30500. An address that is held in a general-purpose register.
  30501. _RX--'config/rx/constraints.md'_
  30502. 'Q'
  30503. An address which does not involve register indirect addressing
  30504. or pre/post increment/decrement addressing.
  30505. 'Symbol'
  30506. A symbol reference.
  30507. 'Int08'
  30508. A constant in the range -256 to 255, inclusive.
  30509. 'Sint08'
  30510. A constant in the range -128 to 127, inclusive.
  30511. 'Sint16'
  30512. A constant in the range -32768 to 32767, inclusive.
  30513. 'Sint24'
  30514. A constant in the range -8388608 to 8388607, inclusive.
  30515. 'Uint04'
  30516. A constant in the range 0 to 15, inclusive.
  30517. _S/390 and zSeries--'config/s390/s390.h'_
  30518. 'a'
  30519. Address register (general purpose register except r0)
  30520. 'c'
  30521. Condition code register
  30522. 'd'
  30523. Data register (arbitrary general purpose register)
  30524. 'f'
  30525. Floating-point register
  30526. 'I'
  30527. Unsigned 8-bit constant (0-255)
  30528. 'J'
  30529. Unsigned 12-bit constant (0-4095)
  30530. 'K'
  30531. Signed 16-bit constant (-32768-32767)
  30532. 'L'
  30533. Value appropriate as displacement.
  30534. '(0..4095)'
  30535. for short displacement
  30536. '(-524288..524287)'
  30537. for long displacement
  30538. 'M'
  30539. Constant integer with a value of 0x7fffffff.
  30540. 'N'
  30541. Multiple letter constraint followed by 4 parameter letters.
  30542. '0..9:'
  30543. number of the part counting from most to least
  30544. significant
  30545. 'H,Q:'
  30546. mode of the part
  30547. 'D,S,H:'
  30548. mode of the containing operand
  30549. '0,F:'
  30550. value of the other parts (F--all bits set)
  30551. The constraint matches if the specified part of a constant has
  30552. a value different from its other parts.
  30553. 'Q'
  30554. Memory reference without index register and with short
  30555. displacement.
  30556. 'R'
  30557. Memory reference with index register and short displacement.
  30558. 'S'
  30559. Memory reference without index register but with long
  30560. displacement.
  30561. 'T'
  30562. Memory reference with index register and long displacement.
  30563. 'U'
  30564. Pointer with short displacement.
  30565. 'W'
  30566. Pointer with long displacement.
  30567. 'Y'
  30568. Shift count operand.
  30569. _SPARC--'config/sparc/sparc.h'_
  30570. 'f'
  30571. Floating-point register on the SPARC-V8 architecture and lower
  30572. floating-point register on the SPARC-V9 architecture.
  30573. 'e'
  30574. Floating-point register. It is equivalent to 'f' on the
  30575. SPARC-V8 architecture and contains both lower and upper
  30576. floating-point registers on the SPARC-V9 architecture.
  30577. 'c'
  30578. Floating-point condition code register.
  30579. 'd'
  30580. Lower floating-point register. It is only valid on the
  30581. SPARC-V9 architecture when the Visual Instruction Set is
  30582. available.
  30583. 'b'
  30584. Floating-point register. It is only valid on the SPARC-V9
  30585. architecture when the Visual Instruction Set is available.
  30586. 'h'
  30587. 64-bit global or out register for the SPARC-V8+ architecture.
  30588. 'C'
  30589. The constant all-ones, for floating-point.
  30590. 'A'
  30591. Signed 5-bit constant
  30592. 'D'
  30593. A vector constant
  30594. 'I'
  30595. Signed 13-bit constant
  30596. 'J'
  30597. Zero
  30598. 'K'
  30599. 32-bit constant with the low 12 bits clear (a constant that
  30600. can be loaded with the 'sethi' instruction)
  30601. 'L'
  30602. A constant in the range supported by 'movcc' instructions
  30603. (11-bit signed immediate)
  30604. 'M'
  30605. A constant in the range supported by 'movrcc' instructions
  30606. (10-bit signed immediate)
  30607. 'N'
  30608. Same as 'K', except that it verifies that bits that are not in
  30609. the lower 32-bit range are all zero. Must be used instead of
  30610. 'K' for modes wider than 'SImode'
  30611. 'O'
  30612. The constant 4096
  30613. 'G'
  30614. Floating-point zero
  30615. 'H'
  30616. Signed 13-bit constant, sign-extended to 32 or 64 bits
  30617. 'P'
  30618. The constant -1
  30619. 'Q'
  30620. Floating-point constant whose integral representation can be
  30621. moved into an integer register using a single sethi
  30622. instruction
  30623. 'R'
  30624. Floating-point constant whose integral representation can be
  30625. moved into an integer register using a single mov instruction
  30626. 'S'
  30627. Floating-point constant whose integral representation can be
  30628. moved into an integer register using a high/lo_sum instruction
  30629. sequence
  30630. 'T'
  30631. Memory address aligned to an 8-byte boundary
  30632. 'U'
  30633. Even register
  30634. 'W'
  30635. Memory address for 'e' constraint registers
  30636. 'w'
  30637. Memory address with only a base register
  30638. 'Y'
  30639. Vector zero
  30640. _SPU--'config/spu/spu.h'_
  30641. 'a'
  30642. An immediate which can be loaded with the il/ila/ilh/ilhu
  30643. instructions. const_int is treated as a 64 bit value.
  30644. 'c'
  30645. An immediate for and/xor/or instructions. const_int is
  30646. treated as a 64 bit value.
  30647. 'd'
  30648. An immediate for the 'iohl' instruction. const_int is treated
  30649. as a 64 bit value.
  30650. 'f'
  30651. An immediate which can be loaded with 'fsmbi'.
  30652. 'A'
  30653. An immediate which can be loaded with the il/ila/ilh/ilhu
  30654. instructions. const_int is treated as a 32 bit value.
  30655. 'B'
  30656. An immediate for most arithmetic instructions. const_int is
  30657. treated as a 32 bit value.
  30658. 'C'
  30659. An immediate for and/xor/or instructions. const_int is
  30660. treated as a 32 bit value.
  30661. 'D'
  30662. An immediate for the 'iohl' instruction. const_int is treated
  30663. as a 32 bit value.
  30664. 'I'
  30665. A constant in the range [-64, 63] for shift/rotate
  30666. instructions.
  30667. 'J'
  30668. An unsigned 7-bit constant for conversion/nop/channel
  30669. instructions.
  30670. 'K'
  30671. A signed 10-bit constant for most arithmetic instructions.
  30672. 'M'
  30673. A signed 16 bit immediate for 'stop'.
  30674. 'N'
  30675. An unsigned 16-bit constant for 'iohl' and 'fsmbi'.
  30676. 'O'
  30677. An unsigned 7-bit constant whose 3 least significant bits are
  30678. 0.
  30679. 'P'
  30680. An unsigned 3-bit constant for 16-byte rotates and shifts
  30681. 'R'
  30682. Call operand, reg, for indirect calls
  30683. 'S'
  30684. Call operand, symbol, for relative calls.
  30685. 'T'
  30686. Call operand, const_int, for absolute calls.
  30687. 'U'
  30688. An immediate which can be loaded with the il/ila/ilh/ilhu
  30689. instructions. const_int is sign extended to 128 bit.
  30690. 'W'
  30691. An immediate for shift and rotate instructions. const_int is
  30692. treated as a 32 bit value.
  30693. 'Y'
  30694. An immediate for and/xor/or instructions. const_int is sign
  30695. extended as a 128 bit.
  30696. 'Z'
  30697. An immediate for the 'iohl' instruction. const_int is sign
  30698. extended to 128 bit.
  30699. _TI C6X family--'config/c6x/constraints.md'_
  30700. 'a'
  30701. Register file A (A0-A31).
  30702. 'b'
  30703. Register file B (B0-B31).
  30704. 'A'
  30705. Predicate registers in register file A (A0-A2 on C64X and
  30706. higher, A1 and A2 otherwise).
  30707. 'B'
  30708. Predicate registers in register file B (B0-B2).
  30709. 'C'
  30710. A call-used register in register file B (B0-B9, B16-B31).
  30711. 'Da'
  30712. Register file A, excluding predicate registers (A3-A31, plus
  30713. A0 if not C64X or higher).
  30714. 'Db'
  30715. Register file B, excluding predicate registers (B3-B31).
  30716. 'Iu4'
  30717. Integer constant in the range 0 ... 15.
  30718. 'Iu5'
  30719. Integer constant in the range 0 ... 31.
  30720. 'In5'
  30721. Integer constant in the range -31 ... 0.
  30722. 'Is5'
  30723. Integer constant in the range -16 ... 15.
  30724. 'I5x'
  30725. Integer constant that can be the operand of an ADDA or a SUBA
  30726. insn.
  30727. 'IuB'
  30728. Integer constant in the range 0 ... 65535.
  30729. 'IsB'
  30730. Integer constant in the range -32768 ... 32767.
  30731. 'IsC'
  30732. Integer constant in the range -2^{20} ... 2^{20} - 1.
  30733. 'Jc'
  30734. Integer constant that is a valid mask for the clr instruction.
  30735. 'Js'
  30736. Integer constant that is a valid mask for the set instruction.
  30737. 'Q'
  30738. Memory location with A base register.
  30739. 'R'
  30740. Memory location with B base register.
  30741. 'Z'
  30742. Register B14 (aka DP).
  30743. _TILE-Gx--'config/tilegx/constraints.md'_
  30744. 'R00'
  30745. 'R01'
  30746. 'R02'
  30747. 'R03'
  30748. 'R04'
  30749. 'R05'
  30750. 'R06'
  30751. 'R07'
  30752. 'R08'
  30753. 'R09'
  30754. 'R10'
  30755. Each of these represents a register constraint for an
  30756. individual register, from r0 to r10.
  30757. 'I'
  30758. Signed 8-bit integer constant.
  30759. 'J'
  30760. Signed 16-bit integer constant.
  30761. 'K'
  30762. Unsigned 16-bit integer constant.
  30763. 'L'
  30764. Integer constant that fits in one signed byte when incremented
  30765. by one (-129 ... 126).
  30766. 'm'
  30767. Memory operand. If used together with '<' or '>', the operand
  30768. can have postincrement which requires printing with '%In' and
  30769. '%in' on TILE-Gx. For example:
  30770. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  30771. 'M'
  30772. A bit mask suitable for the BFINS instruction.
  30773. 'N'
  30774. Integer constant that is a byte tiled out eight times.
  30775. 'O'
  30776. The integer zero constant.
  30777. 'P'
  30778. Integer constant that is a sign-extended byte tiled out as
  30779. four shorts.
  30780. 'Q'
  30781. Integer constant that fits in one signed byte when incremented
  30782. (-129 ... 126), but excluding -1.
  30783. 'S'
  30784. Integer constant that has all 1 bits consecutive and starting
  30785. at bit 0.
  30786. 'T'
  30787. A 16-bit fragment of a got, tls, or pc-relative reference.
  30788. 'U'
  30789. Memory operand except postincrement. This is roughly the same
  30790. as 'm' when not used together with '<' or '>'.
  30791. 'W'
  30792. An 8-element vector constant with identical elements.
  30793. 'Y'
  30794. A 4-element vector constant with identical elements.
  30795. 'Z0'
  30796. The integer constant 0xffffffff.
  30797. 'Z1'
  30798. The integer constant 0xffffffff00000000.
  30799. _TILEPro--'config/tilepro/constraints.md'_
  30800. 'R00'
  30801. 'R01'
  30802. 'R02'
  30803. 'R03'
  30804. 'R04'
  30805. 'R05'
  30806. 'R06'
  30807. 'R07'
  30808. 'R08'
  30809. 'R09'
  30810. 'R10'
  30811. Each of these represents a register constraint for an
  30812. individual register, from r0 to r10.
  30813. 'I'
  30814. Signed 8-bit integer constant.
  30815. 'J'
  30816. Signed 16-bit integer constant.
  30817. 'K'
  30818. Nonzero integer constant with low 16 bits zero.
  30819. 'L'
  30820. Integer constant that fits in one signed byte when incremented
  30821. by one (-129 ... 126).
  30822. 'm'
  30823. Memory operand. If used together with '<' or '>', the operand
  30824. can have postincrement which requires printing with '%In' and
  30825. '%in' on TILEPro. For example:
  30826. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  30827. 'M'
  30828. A bit mask suitable for the MM instruction.
  30829. 'N'
  30830. Integer constant that is a byte tiled out four times.
  30831. 'O'
  30832. The integer zero constant.
  30833. 'P'
  30834. Integer constant that is a sign-extended byte tiled out as two
  30835. shorts.
  30836. 'Q'
  30837. Integer constant that fits in one signed byte when incremented
  30838. (-129 ... 126), but excluding -1.
  30839. 'T'
  30840. A symbolic operand, or a 16-bit fragment of a got, tls, or
  30841. pc-relative reference.
  30842. 'U'
  30843. Memory operand except postincrement. This is roughly the same
  30844. as 'm' when not used together with '<' or '>'.
  30845. 'W'
  30846. A 4-element vector constant with identical elements.
  30847. 'Y'
  30848. A 2-element vector constant with identical elements.
  30849. _Visium--'config/visium/constraints.md'_
  30850. 'b'
  30851. EAM register 'mdb'
  30852. 'c'
  30853. EAM register 'mdc'
  30854. 'f'
  30855. Floating point register
  30856. 'l'
  30857. General register, but not 'r29', 'r30' and 'r31'
  30858. 't'
  30859. Register 'r1'
  30860. 'u'
  30861. Register 'r2'
  30862. 'v'
  30863. Register 'r3'
  30864. 'G'
  30865. Floating-point constant 0.0
  30866. 'J'
  30867. Integer constant in the range 0 .. 65535 (16-bit immediate)
  30868. 'K'
  30869. Integer constant in the range 1 .. 31 (5-bit immediate)
  30870. 'L'
  30871. Integer constant in the range -65535 .. -1 (16-bit negative
  30872. immediate)
  30873. 'M'
  30874. Integer constant -1
  30875. 'O'
  30876. Integer constant 0
  30877. 'P'
  30878. Integer constant 32
  30879. _x86 family--'config/i386/constraints.md'_
  30880. 'R'
  30881. Legacy register--the eight integer registers available on all
  30882. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  30883. 'q'
  30884. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  30885. 'c', and 'd'; in 64-bit mode, any integer register.
  30886. 'Q'
  30887. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  30888. 'a'
  30889. The 'a' register.
  30890. 'b'
  30891. The 'b' register.
  30892. 'c'
  30893. The 'c' register.
  30894. 'd'
  30895. The 'd' register.
  30896. 'S'
  30897. The 'si' register.
  30898. 'D'
  30899. The 'di' register.
  30900. 'A'
  30901. The 'a' and 'd' registers. This class is used for
  30902. instructions that return double word results in the 'ax:dx'
  30903. register pair. Single word values will be allocated either in
  30904. 'ax' or 'dx'. For example on i386 the following implements
  30905. 'rdtsc':
  30906. unsigned long long rdtsc (void)
  30907. {
  30908. unsigned long long tick;
  30909. __asm__ __volatile__("rdtsc":"=A"(tick));
  30910. return tick;
  30911. }
  30912. This is not correct on x86-64 as it would allocate tick in
  30913. either 'ax' or 'dx'. You have to use the following variant
  30914. instead:
  30915. unsigned long long rdtsc (void)
  30916. {
  30917. unsigned int tickl, tickh;
  30918. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  30919. return ((unsigned long long)tickh << 32)|tickl;
  30920. }
  30921. 'U'
  30922. The call-clobbered integer registers.
  30923. 'f'
  30924. Any 80387 floating-point (stack) register.
  30925. 't'
  30926. Top of 80387 floating-point stack ('%st(0)').
  30927. 'u'
  30928. Second from top of 80387 floating-point stack ('%st(1)').
  30929. 'y'
  30930. Any MMX register.
  30931. 'x'
  30932. Any SSE register.
  30933. 'v'
  30934. Any EVEX encodable SSE register ('%xmm0-%xmm31').
  30935. 'Yz'
  30936. First SSE register ('%xmm0').
  30937. 'I'
  30938. Integer constant in the range 0 ... 31, for 32-bit shifts.
  30939. 'J'
  30940. Integer constant in the range 0 ... 63, for 64-bit shifts.
  30941. 'K'
  30942. Signed 8-bit integer constant.
  30943. 'L'
  30944. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  30945. 'M'
  30946. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  30947. 'N'
  30948. Unsigned 8-bit integer constant (for 'in' and 'out'
  30949. instructions).
  30950. 'G'
  30951. Standard 80387 floating point constant.
  30952. 'C'
  30953. SSE constant zero operand.
  30954. 'e'
  30955. 32-bit signed integer constant, or a symbolic reference known
  30956. to fit that range (for immediate operands in sign-extending
  30957. x86-64 instructions).
  30958. 'We'
  30959. 32-bit signed integer constant, or a symbolic reference known
  30960. to fit that range (for sign-extending conversion operations
  30961. that require non-'VOIDmode' immediate operands).
  30962. 'Wz'
  30963. 32-bit unsigned integer constant, or a symbolic reference
  30964. known to fit that range (for zero-extending conversion
  30965. operations that require non-'VOIDmode' immediate operands).
  30966. 'Wd'
  30967. 128-bit integer constant where both the high and low 64-bit
  30968. word satisfy the 'e' constraint.
  30969. 'Z'
  30970. 32-bit unsigned integer constant, or a symbolic reference
  30971. known to fit that range (for immediate operands in
  30972. zero-extending x86-64 instructions).
  30973. 'Tv'
  30974. VSIB address operand.
  30975. 'Ts'
  30976. Address operand without segment register.
  30977. 'Ti'
  30978. MPX address operand without index.
  30979. 'Tb'
  30980. MPX address operand without base.
  30981. _Xstormy16--'config/stormy16/stormy16.h'_
  30982. 'a'
  30983. Register r0.
  30984. 'b'
  30985. Register r1.
  30986. 'c'
  30987. Register r2.
  30988. 'd'
  30989. Register r8.
  30990. 'e'
  30991. Registers r0 through r7.
  30992. 't'
  30993. Registers r0 and r1.
  30994. 'y'
  30995. The carry register.
  30996. 'z'
  30997. Registers r8 and r9.
  30998. 'I'
  30999. A constant between 0 and 3 inclusive.
  31000. 'J'
  31001. A constant that has exactly one bit set.
  31002. 'K'
  31003. A constant that has exactly one bit clear.
  31004. 'L'
  31005. A constant between 0 and 255 inclusive.
  31006. 'M'
  31007. A constant between -255 and 0 inclusive.
  31008. 'N'
  31009. A constant between -3 and 0 inclusive.
  31010. 'O'
  31011. A constant between 1 and 4 inclusive.
  31012. 'P'
  31013. A constant between -4 and -1 inclusive.
  31014. 'Q'
  31015. A memory reference that is a stack push.
  31016. 'R'
  31017. A memory reference that is a stack pop.
  31018. 'S'
  31019. A memory reference that refers to a constant address of known
  31020. value.
  31021. 'T'
  31022. The register indicated by Rx (not implemented yet).
  31023. 'U'
  31024. A constant that is not between 2 and 15 inclusive.
  31025. 'Z'
  31026. The constant 0.
  31027. _Xtensa--'config/xtensa/constraints.md'_
  31028. 'a'
  31029. General-purpose 32-bit register
  31030. 'b'
  31031. One-bit boolean register
  31032. 'A'
  31033. MAC16 40-bit accumulator register
  31034. 'I'
  31035. Signed 12-bit integer constant, for use in MOVI instructions
  31036. 'J'
  31037. Signed 8-bit integer constant, for use in ADDI instructions
  31038. 'K'
  31039. Integer constant valid for BccI instructions
  31040. 'L'
  31041. Unsigned constant valid for BccUI instructions
  31042. 
  31043. File: gcc.info, Node: Asm Labels, Next: Explicit Register Variables, Prev: Constraints, Up: Using Assembly Language with C
  31044. 6.45.4 Controlling Names Used in Assembler Code
  31045. -----------------------------------------------
  31046. You can specify the name to be used in the assembler code for a C
  31047. function or variable by writing the 'asm' (or '__asm__') keyword after
  31048. the declarator. It is up to you to make sure that the assembler names
  31049. you choose do not conflict with any other assembler symbols, or
  31050. reference registers.
  31051. Assembler names for data:
  31052. .........................
  31053. This sample shows how to specify the assembler name for data:
  31054. int foo asm ("myfoo") = 2;
  31055. This specifies that the name to be used for the variable 'foo' in the
  31056. assembler code should be 'myfoo' rather than the usual '_foo'.
  31057. On systems where an underscore is normally prepended to the name of a C
  31058. variable, this feature allows you to define names for the linker that do
  31059. not start with an underscore.
  31060. GCC does not support using this feature with a non-static local
  31061. variable since such variables do not have assembler names. If you are
  31062. trying to put the variable in a particular register, see *note Explicit
  31063. Register Variables::.
  31064. Assembler names for functions:
  31065. ..............................
  31066. To specify the assembler name for functions, write a declaration for the
  31067. function before its definition and put 'asm' there, like this:
  31068. int func (int x, int y) asm ("MYFUNC");
  31069. int func (int x, int y)
  31070. {
  31071. /* ... */
  31072. This specifies that the name to be used for the function 'func' in the
  31073. assembler code should be 'MYFUNC'.
  31074. 
  31075. File: gcc.info, Node: Explicit Register Variables, Next: Size of an asm, Prev: Asm Labels, Up: Using Assembly Language with C
  31076. 6.45.5 Variables in Specified Registers
  31077. ---------------------------------------
  31078. GNU C allows you to associate specific hardware registers with C
  31079. variables. In almost all cases, allowing the compiler to assign
  31080. registers produces the best code. However under certain unusual
  31081. circumstances, more precise control over the variable storage is
  31082. required.
  31083. Both global and local variables can be associated with a register. The
  31084. consequences of performing this association are very different between
  31085. the two, as explained in the sections below.
  31086. * Menu:
  31087. * Global Register Variables:: Variables declared at global scope.
  31088. * Local Register Variables:: Variables declared within a function.
  31089. 
  31090. File: gcc.info, Node: Global Register Variables, Next: Local Register Variables, Up: Explicit Register Variables
  31091. 6.45.5.1 Defining Global Register Variables
  31092. ...........................................
  31093. You can define a global register variable and associate it with a
  31094. specified register like this:
  31095. register int *foo asm ("r12");
  31096. Here 'r12' is the name of the register that should be used. Note that
  31097. this is the same syntax used for defining local register variables, but
  31098. for a global variable the declaration appears outside a function. The
  31099. 'register' keyword is required, and cannot be combined with 'static'.
  31100. The register name must be a valid register name for the target platform.
  31101. Registers are a scarce resource on most systems and allowing the
  31102. compiler to manage their usage usually results in the best code.
  31103. However, under special circumstances it can make sense to reserve some
  31104. globally. For example this may be useful in programs such as
  31105. programming language interpreters that have a couple of global variables
  31106. that are accessed very often.
  31107. After defining a global register variable, for the current compilation
  31108. unit:
  31109. * The register is reserved entirely for this use, and will not be
  31110. allocated for any other purpose.
  31111. * The register is not saved and restored by any functions.
  31112. * Stores into this register are never deleted even if they appear to
  31113. be dead, but references may be deleted, moved or simplified.
  31114. Note that these points _only_ apply to code that is compiled with the
  31115. definition. The behavior of code that is merely linked in (for example
  31116. code from libraries) is not affected.
  31117. If you want to recompile source files that do not actually use your
  31118. global register variable so they do not use the specified register for
  31119. any other purpose, you need not actually add the global register
  31120. declaration to their source code. It suffices to specify the compiler
  31121. option '-ffixed-REG' (*note Code Gen Options::) to reserve the register.
  31122. Declaring the variable
  31123. ......................
  31124. Global register variables can not have initial values, because an
  31125. executable file has no means to supply initial contents for a register.
  31126. When selecting a register, choose one that is normally saved and
  31127. restored by function calls on your machine. This ensures that code
  31128. which is unaware of this reservation (such as library routines) will
  31129. restore it before returning.
  31130. On machines with register windows, be sure to choose a global register
  31131. that is not affected magically by the function call mechanism.
  31132. Using the variable
  31133. ..................
  31134. When calling routines that are not aware of the reservation, be cautious
  31135. if those routines call back into code which uses them. As an example,
  31136. if you call the system library version of 'qsort', it may clobber your
  31137. registers during execution, but (if you have selected appropriate
  31138. registers) it will restore them before returning. However it will _not_
  31139. restore them before calling 'qsort''s comparison function. As a result,
  31140. global values will not reliably be available to the comparison function
  31141. unless the 'qsort' function itself is rebuilt.
  31142. Similarly, it is not safe to access the global register variables from
  31143. signal handlers or from more than one thread of control. Unless you
  31144. recompile them specially for the task at hand, the system library
  31145. routines may temporarily use the register for other things.
  31146. On most machines, 'longjmp' restores to each global register variable
  31147. the value it had at the time of the 'setjmp'. On some machines,
  31148. however, 'longjmp' does not change the value of global register
  31149. variables. To be portable, the function that called 'setjmp' should
  31150. make other arrangements to save the values of the global register
  31151. variables, and to restore them in a 'longjmp'. This way, the same thing
  31152. happens regardless of what 'longjmp' does.
  31153. Eventually there may be a way of asking the compiler to choose a
  31154. register automatically, but first we need to figure out how it should
  31155. choose and how to enable you to guide the choice. No solution is
  31156. evident.
  31157. 
  31158. File: gcc.info, Node: Local Register Variables, Prev: Global Register Variables, Up: Explicit Register Variables
  31159. 6.45.5.2 Specifying Registers for Local Variables
  31160. .................................................
  31161. You can define a local register variable and associate it with a
  31162. specified register like this:
  31163. register int *foo asm ("r12");
  31164. Here 'r12' is the name of the register that should be used. Note that
  31165. this is the same syntax used for defining global register variables, but
  31166. for a local variable the declaration appears within a function. The
  31167. 'register' keyword is required, and cannot be combined with 'static'.
  31168. The register name must be a valid register name for the target platform.
  31169. As with global register variables, it is recommended that you choose a
  31170. register that is normally saved and restored by function calls on your
  31171. machine, so that calls to library routines will not clobber it.
  31172. The only supported use for this feature is to specify registers for
  31173. input and output operands when calling Extended 'asm' (*note Extended
  31174. Asm::). This may be necessary if the constraints for a particular
  31175. machine don't provide sufficient control to select the desired register.
  31176. To force an operand into a register, create a local variable and specify
  31177. the register name after the variable's declaration. Then use the local
  31178. variable for the 'asm' operand and specify any constraint letter that
  31179. matches the register:
  31180. register int *p1 asm ("r0") = ...;
  31181. register int *p2 asm ("r1") = ...;
  31182. register int *result asm ("r0");
  31183. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  31184. _Warning:_ In the above example, be aware that a register (for example
  31185. 'r0') can be call-clobbered by subsequent code, including function calls
  31186. and library calls for arithmetic operators on other variables (for
  31187. example the initialization of 'p2'). In this case, use temporary
  31188. variables for expressions between the register assignments:
  31189. int t1 = ...;
  31190. register int *p1 asm ("r0") = ...;
  31191. register int *p2 asm ("r1") = t1;
  31192. register int *result asm ("r0");
  31193. asm ("sysint" : "=r" (result) : "0" (p1), "r" (p2));
  31194. Defining a register variable does not reserve the register. Other than
  31195. when invoking the Extended 'asm', the contents of the specified register
  31196. are not guaranteed. For this reason, the following uses are explicitly
  31197. _not_ supported. If they appear to work, it is only happenstance, and
  31198. may stop working as intended due to (seemingly) unrelated changes in
  31199. surrounding code, or even minor changes in the optimization of a future
  31200. version of gcc:
  31201. * Passing parameters to or from Basic 'asm'
  31202. * Passing parameters to or from Extended 'asm' without using input or
  31203. output operands.
  31204. * Passing parameters to or from routines written in assembler (or
  31205. other languages) using non-standard calling conventions.
  31206. Some developers use Local Register Variables in an attempt to improve
  31207. gcc's allocation of registers, especially in large functions. In this
  31208. case the register name is essentially a hint to the register allocator.
  31209. While in some instances this can generate better code, improvements are
  31210. subject to the whims of the allocator/optimizers. Since there are no
  31211. guarantees that your improvements won't be lost, this usage of Local
  31212. Register Variables is discouraged.
  31213. On the MIPS platform, there is related use for local register variables
  31214. with slightly different characteristics (*note Defining coprocessor
  31215. specifics for MIPS targets: (gccint)MIPS Coprocessors.).
  31216. 
  31217. File: gcc.info, Node: Size of an asm, Prev: Explicit Register Variables, Up: Using Assembly Language with C
  31218. 6.45.6 Size of an 'asm'
  31219. -----------------------
  31220. Some targets require that GCC track the size of each instruction used in
  31221. order to generate correct code. Because the final length of the code
  31222. produced by an 'asm' statement is only known by the assembler, GCC must
  31223. make an estimate as to how big it will be. It does this by counting the
  31224. number of instructions in the pattern of the 'asm' and multiplying that
  31225. by the length of the longest instruction supported by that processor.
  31226. (When working out the number of instructions, it assumes that any
  31227. occurrence of a newline or of whatever statement separator character is
  31228. supported by the assembler -- typically ';' -- indicates the end of an
  31229. instruction.)
  31230. Normally, GCC's estimate is adequate to ensure that correct code is
  31231. generated, but it is possible to confuse the compiler if you use pseudo
  31232. instructions or assembler macros that expand into multiple real
  31233. instructions, or if you use assembler directives that expand to more
  31234. space in the object file than is needed for a single instruction. If
  31235. this happens then the assembler may produce a diagnostic saying that a
  31236. label is unreachable.
  31237. This size is also used for inlining decisions. If you use 'asm inline'
  31238. instead of just 'asm', then for inlining purposes the size of the asm is
  31239. taken as the minimum size, ignoring how many instructions GCC thinks it
  31240. is.
  31241. 
  31242. File: gcc.info, Node: Alternate Keywords, Next: Incomplete Enums, Prev: Using Assembly Language with C, Up: C Extensions
  31243. 6.46 Alternate Keywords
  31244. =======================
  31245. '-ansi' and the various '-std' options disable certain keywords. This
  31246. causes trouble when you want to use GNU C extensions, or a
  31247. general-purpose header file that should be usable by all programs,
  31248. including ISO C programs. The keywords 'asm', 'typeof' and 'inline' are
  31249. not available in programs compiled with '-ansi' or '-std' (although
  31250. 'inline' can be used in a program compiled with '-std=c99' or
  31251. '-std=c11'). The ISO C99 keyword 'restrict' is only available when
  31252. '-std=gnu99' (which will eventually be the default) or '-std=c99' (or
  31253. the equivalent '-std=iso9899:1999'), or an option for a later standard
  31254. version, is used.
  31255. The way to solve these problems is to put '__' at the beginning and end
  31256. of each problematical keyword. For example, use '__asm__' instead of
  31257. 'asm', and '__inline__' instead of 'inline'.
  31258. Other C compilers won't accept these alternative keywords; if you want
  31259. to compile with another compiler, you can define the alternate keywords
  31260. as macros to replace them with the customary keywords. It looks like
  31261. this:
  31262. #ifndef __GNUC__
  31263. #define __asm__ asm
  31264. #endif
  31265. '-pedantic' and other options cause warnings for many GNU C extensions.
  31266. You can prevent such warnings within one expression by writing
  31267. '__extension__' before the expression. '__extension__' has no effect
  31268. aside from this.
  31269. 
  31270. File: gcc.info, Node: Incomplete Enums, Next: Function Names, Prev: Alternate Keywords, Up: C Extensions
  31271. 6.47 Incomplete 'enum' Types
  31272. ============================
  31273. You can define an 'enum' tag without specifying its possible values.
  31274. This results in an incomplete type, much like what you get if you write
  31275. 'struct foo' without describing the elements. A later declaration that
  31276. does specify the possible values completes the type.
  31277. You cannot allocate variables or storage using the type while it is
  31278. incomplete. However, you can work with pointers to that type.
  31279. This extension may not be very useful, but it makes the handling of
  31280. 'enum' more consistent with the way 'struct' and 'union' are handled.
  31281. This extension is not supported by GNU C++.
  31282. 
  31283. File: gcc.info, Node: Function Names, Next: Return Address, Prev: Incomplete Enums, Up: C Extensions
  31284. 6.48 Function Names as Strings
  31285. ==============================
  31286. GCC provides three magic constants that hold the name of the current
  31287. function as a string. In C++11 and later modes, all three are treated
  31288. as constant expressions and can be used in 'constexpr' constexts. The
  31289. first of these constants is '__func__', which is part of the C99
  31290. standard:
  31291. The identifier '__func__' is implicitly declared by the translator as
  31292. if, immediately following the opening brace of each function definition,
  31293. the declaration
  31294. static const char __func__[] = "function-name";
  31295. appeared, where function-name is the name of the lexically-enclosing
  31296. function. This name is the unadorned name of the function. As an
  31297. extension, at file (or, in C++, namespace scope), '__func__' evaluates
  31298. to the empty string.
  31299. '__FUNCTION__' is another name for '__func__', provided for backward
  31300. compatibility with old versions of GCC.
  31301. In C, '__PRETTY_FUNCTION__' is yet another name for '__func__', except
  31302. that at file (or, in C++, namespace scope), it evaluates to the string
  31303. '"top level"'. In addition, in C++, '__PRETTY_FUNCTION__' contains the
  31304. signature of the function as well as its bare name. For example, this
  31305. program:
  31306. extern "C" int printf (const char *, ...);
  31307. class a {
  31308. public:
  31309. void sub (int i)
  31310. {
  31311. printf ("__FUNCTION__ = %s\n", __FUNCTION__);
  31312. printf ("__PRETTY_FUNCTION__ = %s\n", __PRETTY_FUNCTION__);
  31313. }
  31314. };
  31315. int
  31316. main (void)
  31317. {
  31318. a ax;
  31319. ax.sub (0);
  31320. return 0;
  31321. }
  31322. gives this output:
  31323. __FUNCTION__ = sub
  31324. __PRETTY_FUNCTION__ = void a::sub(int)
  31325. These identifiers are variables, not preprocessor macros, and may not
  31326. be used to initialize 'char' arrays or be concatenated with string
  31327. literals.
  31328. 
  31329. File: gcc.info, Node: Return Address, Next: Vector Extensions, Prev: Function Names, Up: C Extensions
  31330. 6.49 Getting the Return or Frame Address of a Function
  31331. ======================================================
  31332. These functions may be used to get information about the callers of a
  31333. function.
  31334. -- Built-in Function: void * __builtin_return_address (unsigned int
  31335. LEVEL)
  31336. This function returns the return address of the current function,
  31337. or of one of its callers. The LEVEL argument is number of frames
  31338. to scan up the call stack. A value of '0' yields the return
  31339. address of the current function, a value of '1' yields the return
  31340. address of the caller of the current function, and so forth. When
  31341. inlining the expected behavior is that the function returns the
  31342. address of the function that is returned to. To work around this
  31343. behavior use the 'noinline' function attribute.
  31344. The LEVEL argument must be a constant integer.
  31345. On some machines it may be impossible to determine the return
  31346. address of any function other than the current one; in such cases,
  31347. or when the top of the stack has been reached, this function
  31348. returns '0' or a random value. In addition,
  31349. '__builtin_frame_address' may be used to determine if the top of
  31350. the stack has been reached.
  31351. Additional post-processing of the returned value may be needed, see
  31352. '__builtin_extract_return_addr'.
  31353. Calling this function with a nonzero argument can have
  31354. unpredictable effects, including crashing the calling program. As
  31355. a result, calls that are considered unsafe are diagnosed when the
  31356. '-Wframe-address' option is in effect. Such calls should only be
  31357. made in debugging situations.
  31358. -- Built-in Function: void * __builtin_extract_return_addr (void *ADDR)
  31359. The address as returned by '__builtin_return_address' may have to
  31360. be fed through this function to get the actual encoded address.
  31361. For example, on the 31-bit S/390 platform the highest bit has to be
  31362. masked out, or on SPARC platforms an offset has to be added for the
  31363. true next instruction to be executed.
  31364. If no fixup is needed, this function simply passes through ADDR.
  31365. -- Built-in Function: void * __builtin_frob_return_address (void *ADDR)
  31366. This function does the reverse of '__builtin_extract_return_addr'.
  31367. -- Built-in Function: void * __builtin_frame_address (unsigned int
  31368. LEVEL)
  31369. This function is similar to '__builtin_return_address', but it
  31370. returns the address of the function frame rather than the return
  31371. address of the function. Calling '__builtin_frame_address' with a
  31372. value of '0' yields the frame address of the current function, a
  31373. value of '1' yields the frame address of the caller of the current
  31374. function, and so forth.
  31375. The frame is the area on the stack that holds local variables and
  31376. saved registers. The frame address is normally the address of the
  31377. first word pushed on to the stack by the function. However, the
  31378. exact definition depends upon the processor and the calling
  31379. convention. If the processor has a dedicated frame pointer
  31380. register, and the function has a frame, then
  31381. '__builtin_frame_address' returns the value of the frame pointer
  31382. register.
  31383. On some machines it may be impossible to determine the frame
  31384. address of any function other than the current one; in such cases,
  31385. or when the top of the stack has been reached, this function
  31386. returns '0' if the first frame pointer is properly initialized by
  31387. the startup code.
  31388. Calling this function with a nonzero argument can have
  31389. unpredictable effects, including crashing the calling program. As
  31390. a result, calls that are considered unsafe are diagnosed when the
  31391. '-Wframe-address' option is in effect. Such calls should only be
  31392. made in debugging situations.
  31393. 
  31394. File: gcc.info, Node: Vector Extensions, Next: Offsetof, Prev: Return Address, Up: C Extensions
  31395. 6.50 Using Vector Instructions through Built-in Functions
  31396. =========================================================
  31397. On some targets, the instruction set contains SIMD vector instructions
  31398. which operate on multiple values contained in one large register at the
  31399. same time. For example, on the x86 the MMX, 3DNow! and SSE extensions
  31400. can be used this way.
  31401. The first step in using these extensions is to provide the necessary
  31402. data types. This should be done using an appropriate 'typedef':
  31403. typedef int v4si __attribute__ ((vector_size (16)));
  31404. The 'int' type specifies the base type, while the attribute specifies
  31405. the vector size for the variable, measured in bytes. For example, the
  31406. declaration above causes the compiler to set the mode for the 'v4si'
  31407. type to be 16 bytes wide and divided into 'int' sized units. For a
  31408. 32-bit 'int' this means a vector of 4 units of 4 bytes, and the
  31409. corresponding mode of 'foo' is V4SI.
  31410. The 'vector_size' attribute is only applicable to integral and float
  31411. scalars, although arrays, pointers, and function return values are
  31412. allowed in conjunction with this construct. Only sizes that are a power
  31413. of two are currently allowed.
  31414. All the basic integer types can be used as base types, both as signed
  31415. and as unsigned: 'char', 'short', 'int', 'long', 'long long'. In
  31416. addition, 'float' and 'double' can be used to build floating-point
  31417. vector types.
  31418. Specifying a combination that is not valid for the current architecture
  31419. causes GCC to synthesize the instructions using a narrower mode. For
  31420. example, if you specify a variable of type 'V4SI' and your architecture
  31421. does not allow for this specific SIMD type, GCC produces code that uses
  31422. 4 'SIs'.
  31423. The types defined in this manner can be used with a subset of normal C
  31424. operations. Currently, GCC allows using the following operators on
  31425. these types: '+, -, *, /, unary minus, ^, |, &, ~, %'.
  31426. The operations behave like C++ 'valarrays'. Addition is defined as the
  31427. addition of the corresponding elements of the operands. For example, in
  31428. the code below, each of the 4 elements in A is added to the
  31429. corresponding 4 elements in B and the resulting vector is stored in C.
  31430. typedef int v4si __attribute__ ((vector_size (16)));
  31431. v4si a, b, c;
  31432. c = a + b;
  31433. Subtraction, multiplication, division, and the logical operations
  31434. operate in a similar manner. Likewise, the result of using the unary
  31435. minus or complement operators on a vector type is a vector whose
  31436. elements are the negative or complemented values of the corresponding
  31437. elements in the operand.
  31438. It is possible to use shifting operators '<<', '>>' on integer-type
  31439. vectors. The operation is defined as following: '{a0, a1, ..., an} >>
  31440. {b0, b1, ..., bn} == {a0 >> b0, a1 >> b1, ..., an >> bn}'. Vector
  31441. operands must have the same number of elements.
  31442. For convenience, it is allowed to use a binary vector operation where
  31443. one operand is a scalar. In that case the compiler transforms the
  31444. scalar operand into a vector where each element is the scalar from the
  31445. operation. The transformation happens only if the scalar could be
  31446. safely converted to the vector-element type. Consider the following
  31447. code.
  31448. typedef int v4si __attribute__ ((vector_size (16)));
  31449. v4si a, b, c;
  31450. long l;
  31451. a = b + 1; /* a = b + {1,1,1,1}; */
  31452. a = 2 * b; /* a = {2,2,2,2} * b; */
  31453. a = l + a; /* Error, cannot convert long to int. */
  31454. Vectors can be subscripted as if the vector were an array with the same
  31455. number of elements and base type. Out of bound accesses invoke
  31456. undefined behavior at run time. Warnings for out of bound accesses for
  31457. vector subscription can be enabled with '-Warray-bounds'.
  31458. Vector comparison is supported with standard comparison operators: '==,
  31459. !=, <, <=, >, >='. Comparison operands can be vector expressions of
  31460. integer-type or real-type. Comparison between integer-type vectors and
  31461. real-type vectors are not supported. The result of the comparison is a
  31462. vector of the same width and number of elements as the comparison
  31463. operands with a signed integral element type.
  31464. Vectors are compared element-wise producing 0 when comparison is false
  31465. and -1 (constant of the appropriate type where all bits are set)
  31466. otherwise. Consider the following example.
  31467. typedef int v4si __attribute__ ((vector_size (16)));
  31468. v4si a = {1,2,3,4};
  31469. v4si b = {3,2,1,4};
  31470. v4si c;
  31471. c = a > b; /* The result would be {0, 0,-1, 0} */
  31472. c = a == b; /* The result would be {0,-1, 0,-1} */
  31473. In C++, the ternary operator '?:' is available. 'a?b:c', where 'b' and
  31474. 'c' are vectors of the same type and 'a' is an integer vector with the
  31475. same number of elements of the same size as 'b' and 'c', computes all
  31476. three arguments and creates a vector '{a[0]?b[0]:c[0], a[1]?b[1]:c[1],
  31477. ...}'. Note that unlike in OpenCL, 'a' is thus interpreted as 'a != 0'
  31478. and not 'a < 0'. As in the case of binary operations, this syntax is
  31479. also accepted when one of 'b' or 'c' is a scalar that is then
  31480. transformed into a vector. If both 'b' and 'c' are scalars and the type
  31481. of 'true?b:c' has the same size as the element type of 'a', then 'b' and
  31482. 'c' are converted to a vector type whose elements have this type and
  31483. with the same number of elements as 'a'.
  31484. In C++, the logic operators '!, &&, ||' are available for vectors.
  31485. '!v' is equivalent to 'v == 0', 'a && b' is equivalent to 'a!=0 & b!=0'
  31486. and 'a || b' is equivalent to 'a!=0 | b!=0'. For mixed operations
  31487. between a scalar 's' and a vector 'v', 's && v' is equivalent to
  31488. 's?v!=0:0' (the evaluation is short-circuit) and 'v && s' is equivalent
  31489. to 'v!=0 & (s?-1:0)'.
  31490. Vector shuffling is available using functions '__builtin_shuffle (vec,
  31491. mask)' and '__builtin_shuffle (vec0, vec1, mask)'. Both functions
  31492. construct a permutation of elements from one or two vectors and return a
  31493. vector of the same type as the input vector(s). The MASK is an integral
  31494. vector with the same width (W) and element count (N) as the output
  31495. vector.
  31496. The elements of the input vectors are numbered in memory ordering of
  31497. VEC0 beginning at 0 and VEC1 beginning at N. The elements of MASK are
  31498. considered modulo N in the single-operand case and modulo 2*N in the
  31499. two-operand case.
  31500. Consider the following example,
  31501. typedef int v4si __attribute__ ((vector_size (16)));
  31502. v4si a = {1,2,3,4};
  31503. v4si b = {5,6,7,8};
  31504. v4si mask1 = {0,1,1,3};
  31505. v4si mask2 = {0,4,2,5};
  31506. v4si res;
  31507. res = __builtin_shuffle (a, mask1); /* res is {1,2,2,4} */
  31508. res = __builtin_shuffle (a, b, mask2); /* res is {1,5,3,6} */
  31509. Note that '__builtin_shuffle' is intentionally semantically compatible
  31510. with the OpenCL 'shuffle' and 'shuffle2' functions.
  31511. You can declare variables and use them in function calls and returns,
  31512. as well as in assignments and some casts. You can specify a vector type
  31513. as a return type for a function. Vector types can also be used as
  31514. function arguments. It is possible to cast from one vector type to
  31515. another, provided they are of the same size (in fact, you can also cast
  31516. vectors to and from other datatypes of the same size).
  31517. You cannot operate between vectors of different lengths or different
  31518. signedness without a cast.
  31519. 
  31520. File: gcc.info, Node: Offsetof, Next: __sync Builtins, Prev: Vector Extensions, Up: C Extensions
  31521. 6.51 Support for 'offsetof'
  31522. ===========================
  31523. GCC implements for both C and C++ a syntactic extension to implement the
  31524. 'offsetof' macro.
  31525. primary:
  31526. "__builtin_offsetof" "(" typename "," offsetof_member_designator ")"
  31527. offsetof_member_designator:
  31528. identifier
  31529. | offsetof_member_designator "." identifier
  31530. | offsetof_member_designator "[" expr "]"
  31531. This extension is sufficient such that
  31532. #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
  31533. is a suitable definition of the 'offsetof' macro. In C++, TYPE may be
  31534. dependent. In either case, MEMBER may consist of a single identifier,
  31535. or a sequence of member accesses and array references.
  31536. 
  31537. File: gcc.info, Node: __sync Builtins, Next: __atomic Builtins, Prev: Offsetof, Up: C Extensions
  31538. 6.52 Legacy '__sync' Built-in Functions for Atomic Memory Access
  31539. ================================================================
  31540. The following built-in functions are intended to be compatible with
  31541. those described in the 'Intel Itanium Processor-specific Application
  31542. Binary Interface', section 7.4. As such, they depart from normal GCC
  31543. practice by not using the '__builtin_' prefix and also by being
  31544. overloaded so that they work on multiple types.
  31545. The definition given in the Intel documentation allows only for the use
  31546. of the types 'int', 'long', 'long long' or their unsigned counterparts.
  31547. GCC allows any scalar type that is 1, 2, 4 or 8 bytes in size other than
  31548. the C type '_Bool' or the C++ type 'bool'. Operations on pointer
  31549. arguments are performed as if the operands were of the 'uintptr_t' type.
  31550. That is, they are not scaled by the size of the type to which the
  31551. pointer points.
  31552. These functions are implemented in terms of the '__atomic' builtins
  31553. (*note __atomic Builtins::). They should not be used for new code which
  31554. should use the '__atomic' builtins instead.
  31555. Not all operations are supported by all target processors. If a
  31556. particular operation cannot be implemented on the target processor, a
  31557. warning is generated and a call to an external function is generated.
  31558. The external function carries the same name as the built-in version,
  31559. with an additional suffix '_N' where N is the size of the data type.
  31560. In most cases, these built-in functions are considered a "full
  31561. barrier". That is, no memory operand is moved across the operation,
  31562. either forward or backward. Further, instructions are issued as
  31563. necessary to prevent the processor from speculating loads across the
  31564. operation and from queuing stores after the operation.
  31565. All of the routines are described in the Intel documentation to take
  31566. "an optional list of variables protected by the memory barrier". It's
  31567. not clear what is meant by that; it could mean that _only_ the listed
  31568. variables are protected, or it could mean a list of additional variables
  31569. to be protected. The list is ignored by GCC which treats it as empty.
  31570. GCC interprets an empty list as meaning that all globally accessible
  31571. variables should be protected.
  31572. 'TYPE __sync_fetch_and_add (TYPE *ptr, TYPE value, ...)'
  31573. 'TYPE __sync_fetch_and_sub (TYPE *ptr, TYPE value, ...)'
  31574. 'TYPE __sync_fetch_and_or (TYPE *ptr, TYPE value, ...)'
  31575. 'TYPE __sync_fetch_and_and (TYPE *ptr, TYPE value, ...)'
  31576. 'TYPE __sync_fetch_and_xor (TYPE *ptr, TYPE value, ...)'
  31577. 'TYPE __sync_fetch_and_nand (TYPE *ptr, TYPE value, ...)'
  31578. These built-in functions perform the operation suggested by the
  31579. name, and returns the value that had previously been in memory.
  31580. That is, operations on integer operands have the following
  31581. semantics. Operations on pointer arguments are performed as if the
  31582. operands were of the 'uintptr_t' type. That is, they are not
  31583. scaled by the size of the type to which the pointer points.
  31584. { tmp = *ptr; *ptr OP= value; return tmp; }
  31585. { tmp = *ptr; *ptr = ~(tmp & value); return tmp; } // nand
  31586. The object pointed to by the first argument must be of integer or
  31587. pointer type. It must not be a boolean type.
  31588. _Note:_ GCC 4.4 and later implement '__sync_fetch_and_nand' as
  31589. '*ptr = ~(tmp & value)' instead of '*ptr = ~tmp & value'.
  31590. 'TYPE __sync_add_and_fetch (TYPE *ptr, TYPE value, ...)'
  31591. 'TYPE __sync_sub_and_fetch (TYPE *ptr, TYPE value, ...)'
  31592. 'TYPE __sync_or_and_fetch (TYPE *ptr, TYPE value, ...)'
  31593. 'TYPE __sync_and_and_fetch (TYPE *ptr, TYPE value, ...)'
  31594. 'TYPE __sync_xor_and_fetch (TYPE *ptr, TYPE value, ...)'
  31595. 'TYPE __sync_nand_and_fetch (TYPE *ptr, TYPE value, ...)'
  31596. These built-in functions perform the operation suggested by the
  31597. name, and return the new value. That is, operations on integer
  31598. operands have the following semantics. Operations on pointer
  31599. operands are performed as if the operand's type were 'uintptr_t'.
  31600. { *ptr OP= value; return *ptr; }
  31601. { *ptr = ~(*ptr & value); return *ptr; } // nand
  31602. The same constraints on arguments apply as for the corresponding
  31603. '__sync_op_and_fetch' built-in functions.
  31604. _Note:_ GCC 4.4 and later implement '__sync_nand_and_fetch' as
  31605. '*ptr = ~(*ptr & value)' instead of '*ptr = ~*ptr & value'.
  31606. 'bool __sync_bool_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  31607. 'TYPE __sync_val_compare_and_swap (TYPE *ptr, TYPE oldval, TYPE newval, ...)'
  31608. These built-in functions perform an atomic compare and swap. That
  31609. is, if the current value of '*PTR' is OLDVAL, then write NEWVAL
  31610. into '*PTR'.
  31611. The "bool" version returns true if the comparison is successful and
  31612. NEWVAL is written. The "val" version returns the contents of
  31613. '*PTR' before the operation.
  31614. '__sync_synchronize (...)'
  31615. This built-in function issues a full memory barrier.
  31616. 'TYPE __sync_lock_test_and_set (TYPE *ptr, TYPE value, ...)'
  31617. This built-in function, as described by Intel, is not a traditional
  31618. test-and-set operation, but rather an atomic exchange operation.
  31619. It writes VALUE into '*PTR', and returns the previous contents of
  31620. '*PTR'.
  31621. Many targets have only minimal support for such locks, and do not
  31622. support a full exchange operation. In this case, a target may
  31623. support reduced functionality here by which the _only_ valid value
  31624. to store is the immediate constant 1. The exact value actually
  31625. stored in '*PTR' is implementation defined.
  31626. This built-in function is not a full barrier, but rather an
  31627. "acquire barrier". This means that references after the operation
  31628. cannot move to (or be speculated to) before the operation, but
  31629. previous memory stores may not be globally visible yet, and
  31630. previous memory loads may not yet be satisfied.
  31631. 'void __sync_lock_release (TYPE *ptr, ...)'
  31632. This built-in function releases the lock acquired by
  31633. '__sync_lock_test_and_set'. Normally this means writing the
  31634. constant 0 to '*PTR'.
  31635. This built-in function is not a full barrier, but rather a "release
  31636. barrier". This means that all previous memory stores are globally
  31637. visible, and all previous memory loads have been satisfied, but
  31638. following memory reads are not prevented from being speculated to
  31639. before the barrier.
  31640. 
  31641. File: gcc.info, Node: __atomic Builtins, Next: Integer Overflow Builtins, Prev: __sync Builtins, Up: C Extensions
  31642. 6.53 Built-in Functions for Memory Model Aware Atomic Operations
  31643. ================================================================
  31644. The following built-in functions approximately match the requirements
  31645. for the C++11 memory model. They are all identified by being prefixed
  31646. with '__atomic' and most are overloaded so that they work with multiple
  31647. types.
  31648. These functions are intended to replace the legacy '__sync' builtins.
  31649. The main difference is that the memory order that is requested is a
  31650. parameter to the functions. New code should always use the '__atomic'
  31651. builtins rather than the '__sync' builtins.
  31652. Note that the '__atomic' builtins assume that programs will conform to
  31653. the C++11 memory model. In particular, they assume that programs are
  31654. free of data races. See the C++11 standard for detailed requirements.
  31655. The '__atomic' builtins can be used with any integral scalar or pointer
  31656. type that is 1, 2, 4, or 8 bytes in length. 16-byte integral types are
  31657. also allowed if '__int128' (*note __int128::) is supported by the
  31658. architecture.
  31659. The four non-arithmetic functions (load, store, exchange, and
  31660. compare_exchange) all have a generic version as well. This generic
  31661. version works on any data type. It uses the lock-free built-in function
  31662. if the specific data type size makes that possible; otherwise, an
  31663. external call is left to be resolved at run time. This external call is
  31664. the same format with the addition of a 'size_t' parameter inserted as
  31665. the first parameter indicating the size of the object being pointed to.
  31666. All objects must be the same size.
  31667. There are 6 different memory orders that can be specified. These map
  31668. to the C++11 memory orders with the same names, see the C++11 standard
  31669. or the GCC wiki on atomic synchronization
  31670. (http://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync) for detailed
  31671. definitions. Individual targets may also support additional memory
  31672. orders for use on specific architectures. Refer to the target
  31673. documentation for details of these.
  31674. An atomic operation can both constrain code motion and be mapped to
  31675. hardware instructions for synchronization between threads (e.g., a
  31676. fence). To which extent this happens is controlled by the memory
  31677. orders, which are listed here in approximately ascending order of
  31678. strength. The description of each memory order is only meant to roughly
  31679. illustrate the effects and is not a specification; see the C++11 memory
  31680. model for precise semantics.
  31681. '__ATOMIC_RELAXED'
  31682. Implies no inter-thread ordering constraints.
  31683. '__ATOMIC_CONSUME'
  31684. This is currently implemented using the stronger '__ATOMIC_ACQUIRE'
  31685. memory order because of a deficiency in C++11's semantics for
  31686. 'memory_order_consume'.
  31687. '__ATOMIC_ACQUIRE'
  31688. Creates an inter-thread happens-before constraint from the release
  31689. (or stronger) semantic store to this acquire load. Can prevent
  31690. hoisting of code to before the operation.
  31691. '__ATOMIC_RELEASE'
  31692. Creates an inter-thread happens-before constraint to acquire (or
  31693. stronger) semantic loads that read from this release store. Can
  31694. prevent sinking of code to after the operation.
  31695. '__ATOMIC_ACQ_REL'
  31696. Combines the effects of both '__ATOMIC_ACQUIRE' and
  31697. '__ATOMIC_RELEASE'.
  31698. '__ATOMIC_SEQ_CST'
  31699. Enforces total ordering with all other '__ATOMIC_SEQ_CST'
  31700. operations.
  31701. Note that in the C++11 memory model, _fences_ (e.g.,
  31702. '__atomic_thread_fence') take effect in combination with other atomic
  31703. operations on specific memory locations (e.g., atomic loads); operations
  31704. on specific memory locations do not necessarily affect other operations
  31705. in the same way.
  31706. Target architectures are encouraged to provide their own patterns for
  31707. each of the atomic built-in functions. If no target is provided, the
  31708. original non-memory model set of '__sync' atomic built-in functions are
  31709. used, along with any required synchronization fences surrounding it in
  31710. order to achieve the proper behavior. Execution in this case is subject
  31711. to the same restrictions as those built-in functions.
  31712. If there is no pattern or mechanism to provide a lock-free instruction
  31713. sequence, a call is made to an external routine with the same parameters
  31714. to be resolved at run time.
  31715. When implementing patterns for these built-in functions, the memory
  31716. order parameter can be ignored as long as the pattern implements the
  31717. most restrictive '__ATOMIC_SEQ_CST' memory order. Any of the other
  31718. memory orders execute correctly with this memory order but they may not
  31719. execute as efficiently as they could with a more appropriate
  31720. implementation of the relaxed requirements.
  31721. Note that the C++11 standard allows for the memory order parameter to
  31722. be determined at run time rather than at compile time. These built-in
  31723. functions map any run-time value to '__ATOMIC_SEQ_CST' rather than
  31724. invoke a runtime library call or inline a switch statement. This is
  31725. standard compliant, safe, and the simplest approach for now.
  31726. The memory order parameter is a signed int, but only the lower 16 bits
  31727. are reserved for the memory order. The remainder of the signed int is
  31728. reserved for target use and should be 0. Use of the predefined atomic
  31729. values ensures proper usage.
  31730. -- Built-in Function: TYPE __atomic_load_n (TYPE *ptr, int memorder)
  31731. This built-in function implements an atomic load operation. It
  31732. returns the contents of '*PTR'.
  31733. The valid memory order variants are '__ATOMIC_RELAXED',
  31734. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', and '__ATOMIC_CONSUME'.
  31735. -- Built-in Function: void __atomic_load (TYPE *ptr, TYPE *ret, int
  31736. memorder)
  31737. This is the generic version of an atomic load. It returns the
  31738. contents of '*PTR' in '*RET'.
  31739. -- Built-in Function: void __atomic_store_n (TYPE *ptr, TYPE val, int
  31740. memorder)
  31741. This built-in function implements an atomic store operation. It
  31742. writes 'VAL' into '*PTR'.
  31743. The valid memory order variants are '__ATOMIC_RELAXED',
  31744. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  31745. -- Built-in Function: void __atomic_store (TYPE *ptr, TYPE *val, int
  31746. memorder)
  31747. This is the generic version of an atomic store. It stores the
  31748. value of '*VAL' into '*PTR'.
  31749. -- Built-in Function: TYPE __atomic_exchange_n (TYPE *ptr, TYPE val,
  31750. int memorder)
  31751. This built-in function implements an atomic exchange operation. It
  31752. writes VAL into '*PTR', and returns the previous contents of
  31753. '*PTR'.
  31754. The valid memory order variants are '__ATOMIC_RELAXED',
  31755. '__ATOMIC_SEQ_CST', '__ATOMIC_ACQUIRE', '__ATOMIC_RELEASE', and
  31756. '__ATOMIC_ACQ_REL'.
  31757. -- Built-in Function: void __atomic_exchange (TYPE *ptr, TYPE *val,
  31758. TYPE *ret, int memorder)
  31759. This is the generic version of an atomic exchange. It stores the
  31760. contents of '*VAL' into '*PTR'. The original value of '*PTR' is
  31761. copied into '*RET'.
  31762. -- Built-in Function: bool __atomic_compare_exchange_n (TYPE *ptr, TYPE
  31763. *expected, TYPE desired, bool weak, int success_memorder, int
  31764. failure_memorder)
  31765. This built-in function implements an atomic compare and exchange
  31766. operation. This compares the contents of '*PTR' with the contents
  31767. of '*EXPECTED'. If equal, the operation is a _read-modify-write_
  31768. operation that writes DESIRED into '*PTR'. If they are not equal,
  31769. the operation is a _read_ and the current contents of '*PTR' are
  31770. written into '*EXPECTED'. WEAK is true for weak compare_exchange,
  31771. which may fail spuriously, and false for the strong variation,
  31772. which never fails spuriously. Many targets only offer the strong
  31773. variation and ignore the parameter. When in doubt, use the strong
  31774. variation.
  31775. If DESIRED is written into '*PTR' then true is returned and memory
  31776. is affected according to the memory order specified by
  31777. SUCCESS_MEMORDER. There are no restrictions on what memory order
  31778. can be used here.
  31779. Otherwise, false is returned and memory is affected according to
  31780. FAILURE_MEMORDER. This memory order cannot be '__ATOMIC_RELEASE'
  31781. nor '__ATOMIC_ACQ_REL'. It also cannot be a stronger order than
  31782. that specified by SUCCESS_MEMORDER.
  31783. -- Built-in Function: bool __atomic_compare_exchange (TYPE *ptr, TYPE
  31784. *expected, TYPE *desired, bool weak, int success_memorder, int
  31785. failure_memorder)
  31786. This built-in function implements the generic version of
  31787. '__atomic_compare_exchange'. The function is virtually identical
  31788. to '__atomic_compare_exchange_n', except the desired value is also
  31789. a pointer.
  31790. -- Built-in Function: TYPE __atomic_add_fetch (TYPE *ptr, TYPE val, int
  31791. memorder)
  31792. -- Built-in Function: TYPE __atomic_sub_fetch (TYPE *ptr, TYPE val, int
  31793. memorder)
  31794. -- Built-in Function: TYPE __atomic_and_fetch (TYPE *ptr, TYPE val, int
  31795. memorder)
  31796. -- Built-in Function: TYPE __atomic_xor_fetch (TYPE *ptr, TYPE val, int
  31797. memorder)
  31798. -- Built-in Function: TYPE __atomic_or_fetch (TYPE *ptr, TYPE val, int
  31799. memorder)
  31800. -- Built-in Function: TYPE __atomic_nand_fetch (TYPE *ptr, TYPE val,
  31801. int memorder)
  31802. These built-in functions perform the operation suggested by the
  31803. name, and return the result of the operation. Operations on
  31804. pointer arguments are performed as if the operands were of the
  31805. 'uintptr_t' type. That is, they are not scaled by the size of the
  31806. type to which the pointer points.
  31807. { *ptr OP= val; return *ptr; }
  31808. The object pointed to by the first argument must be of integer or
  31809. pointer type. It must not be a boolean type. All memory orders
  31810. are valid.
  31811. -- Built-in Function: TYPE __atomic_fetch_add (TYPE *ptr, TYPE val, int
  31812. memorder)
  31813. -- Built-in Function: TYPE __atomic_fetch_sub (TYPE *ptr, TYPE val, int
  31814. memorder)
  31815. -- Built-in Function: TYPE __atomic_fetch_and (TYPE *ptr, TYPE val, int
  31816. memorder)
  31817. -- Built-in Function: TYPE __atomic_fetch_xor (TYPE *ptr, TYPE val, int
  31818. memorder)
  31819. -- Built-in Function: TYPE __atomic_fetch_or (TYPE *ptr, TYPE val, int
  31820. memorder)
  31821. -- Built-in Function: TYPE __atomic_fetch_nand (TYPE *ptr, TYPE val,
  31822. int memorder)
  31823. These built-in functions perform the operation suggested by the
  31824. name, and return the value that had previously been in '*PTR'.
  31825. Operations on pointer arguments are performed as if the operands
  31826. were of the 'uintptr_t' type. That is, they are not scaled by the
  31827. size of the type to which the pointer points.
  31828. { tmp = *ptr; *ptr OP= val; return tmp; }
  31829. The same constraints on arguments apply as for the corresponding
  31830. '__atomic_op_fetch' built-in functions. All memory orders are
  31831. valid.
  31832. -- Built-in Function: bool __atomic_test_and_set (void *ptr, int
  31833. memorder)
  31834. This built-in function performs an atomic test-and-set operation on
  31835. the byte at '*PTR'. The byte is set to some implementation defined
  31836. nonzero "set" value and the return value is 'true' if and only if
  31837. the previous contents were "set". It should be only used for
  31838. operands of type 'bool' or 'char'. For other types only part of
  31839. the value may be set.
  31840. All memory orders are valid.
  31841. -- Built-in Function: void __atomic_clear (bool *ptr, int memorder)
  31842. This built-in function performs an atomic clear operation on
  31843. '*PTR'. After the operation, '*PTR' contains 0. It should be only
  31844. used for operands of type 'bool' or 'char' and in conjunction with
  31845. '__atomic_test_and_set'. For other types it may only clear
  31846. partially. If the type is not 'bool' prefer using
  31847. '__atomic_store'.
  31848. The valid memory order variants are '__ATOMIC_RELAXED',
  31849. '__ATOMIC_SEQ_CST', and '__ATOMIC_RELEASE'.
  31850. -- Built-in Function: void __atomic_thread_fence (int memorder)
  31851. This built-in function acts as a synchronization fence between
  31852. threads based on the specified memory order.
  31853. All memory orders are valid.
  31854. -- Built-in Function: void __atomic_signal_fence (int memorder)
  31855. This built-in function acts as a synchronization fence between a
  31856. thread and signal handlers based in the same thread.
  31857. All memory orders are valid.
  31858. -- Built-in Function: bool __atomic_always_lock_free (size_t size, void
  31859. *ptr)
  31860. This built-in function returns true if objects of SIZE bytes always
  31861. generate lock-free atomic instructions for the target architecture.
  31862. SIZE must resolve to a compile-time constant and the result also
  31863. resolves to a compile-time constant.
  31864. PTR is an optional pointer to the object that may be used to
  31865. determine alignment. A value of 0 indicates typical alignment
  31866. should be used. The compiler may also ignore this parameter.
  31867. if (__atomic_always_lock_free (sizeof (long long), 0))
  31868. -- Built-in Function: bool __atomic_is_lock_free (size_t size, void
  31869. *ptr)
  31870. This built-in function returns true if objects of SIZE bytes always
  31871. generate lock-free atomic instructions for the target architecture.
  31872. If the built-in function is not known to be lock-free, a call is
  31873. made to a runtime routine named '__atomic_is_lock_free'.
  31874. PTR is an optional pointer to the object that may be used to
  31875. determine alignment. A value of 0 indicates typical alignment
  31876. should be used. The compiler may also ignore this parameter.
  31877. 
  31878. File: gcc.info, Node: Integer Overflow Builtins, Next: x86 specific memory model extensions for transactional memory, Prev: __atomic Builtins, Up: C Extensions
  31879. 6.54 Built-in Functions to Perform Arithmetic with Overflow Checking
  31880. ====================================================================
  31881. The following built-in functions allow performing simple arithmetic
  31882. operations together with checking whether the operations overflowed.
  31883. -- Built-in Function: bool __builtin_add_overflow (TYPE1 a, TYPE2 b,
  31884. TYPE3 *res)
  31885. -- Built-in Function: bool __builtin_sadd_overflow (int a, int b, int
  31886. *res)
  31887. -- Built-in Function: bool __builtin_saddl_overflow (long int a, long
  31888. int b, long int *res)
  31889. -- Built-in Function: bool __builtin_saddll_overflow (long long int a,
  31890. long long int b, long long int *res)
  31891. -- Built-in Function: bool __builtin_uadd_overflow (unsigned int a,
  31892. unsigned int b, unsigned int *res)
  31893. -- Built-in Function: bool __builtin_uaddl_overflow (unsigned long int
  31894. a, unsigned long int b, unsigned long int *res)
  31895. -- Built-in Function: bool __builtin_uaddll_overflow (unsigned long
  31896. long int a, unsigned long long int b, unsigned long long int
  31897. *res)
  31898. These built-in functions promote the first two operands into
  31899. infinite precision signed type and perform addition on those
  31900. promoted operands. The result is then cast to the type the third
  31901. pointer argument points to and stored there. If the stored result
  31902. is equal to the infinite precision result, the built-in functions
  31903. return false, otherwise they return true. As the addition is
  31904. performed in infinite signed precision, these built-in functions
  31905. have fully defined behavior for all argument values.
  31906. The first built-in function allows arbitrary integral types for
  31907. operands and the result type must be pointer to some integral type
  31908. other than enumerated or boolean type, the rest of the built-in
  31909. functions have explicit integer types.
  31910. The compiler will attempt to use hardware instructions to implement
  31911. these built-in functions where possible, like conditional jump on
  31912. overflow after addition, conditional jump on carry etc.
  31913. -- Built-in Function: bool __builtin_sub_overflow (TYPE1 a, TYPE2 b,
  31914. TYPE3 *res)
  31915. -- Built-in Function: bool __builtin_ssub_overflow (int a, int b, int
  31916. *res)
  31917. -- Built-in Function: bool __builtin_ssubl_overflow (long int a, long
  31918. int b, long int *res)
  31919. -- Built-in Function: bool __builtin_ssubll_overflow (long long int a,
  31920. long long int b, long long int *res)
  31921. -- Built-in Function: bool __builtin_usub_overflow (unsigned int a,
  31922. unsigned int b, unsigned int *res)
  31923. -- Built-in Function: bool __builtin_usubl_overflow (unsigned long int
  31924. a, unsigned long int b, unsigned long int *res)
  31925. -- Built-in Function: bool __builtin_usubll_overflow (unsigned long
  31926. long int a, unsigned long long int b, unsigned long long int
  31927. *res)
  31928. These built-in functions are similar to the add overflow checking
  31929. built-in functions above, except they perform subtraction, subtract
  31930. the second argument from the first one, instead of addition.
  31931. -- Built-in Function: bool __builtin_mul_overflow (TYPE1 a, TYPE2 b,
  31932. TYPE3 *res)
  31933. -- Built-in Function: bool __builtin_smul_overflow (int a, int b, int
  31934. *res)
  31935. -- Built-in Function: bool __builtin_smull_overflow (long int a, long
  31936. int b, long int *res)
  31937. -- Built-in Function: bool __builtin_smulll_overflow (long long int a,
  31938. long long int b, long long int *res)
  31939. -- Built-in Function: bool __builtin_umul_overflow (unsigned int a,
  31940. unsigned int b, unsigned int *res)
  31941. -- Built-in Function: bool __builtin_umull_overflow (unsigned long int
  31942. a, unsigned long int b, unsigned long int *res)
  31943. -- Built-in Function: bool __builtin_umulll_overflow (unsigned long
  31944. long int a, unsigned long long int b, unsigned long long int
  31945. *res)
  31946. These built-in functions are similar to the add overflow checking
  31947. built-in functions above, except they perform multiplication,
  31948. instead of addition.
  31949. The following built-in functions allow checking if simple arithmetic
  31950. operation would overflow.
  31951. -- Built-in Function: bool __builtin_add_overflow_p (TYPE1 a, TYPE2 b,
  31952. TYPE3 c)
  31953. -- Built-in Function: bool __builtin_sub_overflow_p (TYPE1 a, TYPE2 b,
  31954. TYPE3 c)
  31955. -- Built-in Function: bool __builtin_mul_overflow_p (TYPE1 a, TYPE2 b,
  31956. TYPE3 c)
  31957. These built-in functions are similar to '__builtin_add_overflow',
  31958. '__builtin_sub_overflow', or '__builtin_mul_overflow', except that
  31959. they don't store the result of the arithmetic operation anywhere
  31960. and the last argument is not a pointer, but some expression with
  31961. integral type other than enumerated or boolean type.
  31962. The built-in functions promote the first two operands into infinite
  31963. precision signed type and perform addition on those promoted
  31964. operands. The result is then cast to the type of the third
  31965. argument. If the cast result is equal to the infinite precision
  31966. result, the built-in functions return false, otherwise they return
  31967. true. The value of the third argument is ignored, just the side
  31968. effects in the third argument are evaluated, and no integral
  31969. argument promotions are performed on the last argument. If the
  31970. third argument is a bit-field, the type used for the result cast
  31971. has the precision and signedness of the given bit-field, rather
  31972. than precision and signedness of the underlying type.
  31973. For example, the following macro can be used to portably check, at
  31974. compile-time, whether or not adding two constant integers will
  31975. overflow, and perform the addition only when it is known to be safe
  31976. and not to trigger a '-Woverflow' warning.
  31977. #define INT_ADD_OVERFLOW_P(a, b) \
  31978. __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0)
  31979. enum {
  31980. A = INT_MAX, B = 3,
  31981. C = INT_ADD_OVERFLOW_P (A, B) ? 0 : A + B,
  31982. D = __builtin_add_overflow_p (1, SCHAR_MAX, (signed char) 0)
  31983. };
  31984. The compiler will attempt to use hardware instructions to implement
  31985. these built-in functions where possible, like conditional jump on
  31986. overflow after addition, conditional jump on carry etc.
  31987. 
  31988. File: gcc.info, Node: x86 specific memory model extensions for transactional memory, Next: Object Size Checking, Prev: Integer Overflow Builtins, Up: C Extensions
  31989. 6.55 x86-Specific Memory Model Extensions for Transactional Memory
  31990. ==================================================================
  31991. The x86 architecture supports additional memory ordering flags to mark
  31992. critical sections for hardware lock elision. These must be specified in
  31993. addition to an existing memory order to atomic intrinsics.
  31994. '__ATOMIC_HLE_ACQUIRE'
  31995. Start lock elision on a lock variable. Memory order must be
  31996. '__ATOMIC_ACQUIRE' or stronger.
  31997. '__ATOMIC_HLE_RELEASE'
  31998. End lock elision on a lock variable. Memory order must be
  31999. '__ATOMIC_RELEASE' or stronger.
  32000. When a lock acquire fails, it is required for good performance to abort
  32001. the transaction quickly. This can be done with a '_mm_pause'.
  32002. #include <immintrin.h> // For _mm_pause
  32003. int lockvar;
  32004. /* Acquire lock with lock elision */
  32005. while (__atomic_exchange_n(&lockvar, 1, __ATOMIC_ACQUIRE|__ATOMIC_HLE_ACQUIRE))
  32006. _mm_pause(); /* Abort failed transaction */
  32007. ...
  32008. /* Free lock with lock elision */
  32009. __atomic_store_n(&lockvar, 0, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
  32010. 
  32011. File: gcc.info, Node: Object Size Checking, Next: Pointer Bounds Checker builtins, Prev: x86 specific memory model extensions for transactional memory, Up: C Extensions
  32012. 6.56 Object Size Checking Built-in Functions
  32013. ============================================
  32014. GCC implements a limited buffer overflow protection mechanism that can
  32015. prevent some buffer overflow attacks by determining the sizes of objects
  32016. into which data is about to be written and preventing the writes when
  32017. the size isn't sufficient. The built-in functions described below yield
  32018. the best results when used together and when optimization is enabled.
  32019. For example, to detect object sizes across function boundaries or to
  32020. follow pointer assignments through non-trivial control flow they rely on
  32021. various optimization passes enabled with '-O2'. However, to a limited
  32022. extent, they can be used without optimization as well.
  32023. -- Built-in Function: size_t __builtin_object_size (const void * PTR,
  32024. int TYPE)
  32025. is a built-in construct that returns a constant number of bytes
  32026. from PTR to the end of the object PTR pointer points to (if known
  32027. at compile time). '__builtin_object_size' never evaluates its
  32028. arguments for side effects. If there are any side effects in them,
  32029. it returns '(size_t) -1' for TYPE 0 or 1 and '(size_t) 0' for TYPE
  32030. 2 or 3. If there are multiple objects PTR can point to and all of
  32031. them are known at compile time, the returned number is the maximum
  32032. of remaining byte counts in those objects if TYPE & 2 is 0 and
  32033. minimum if nonzero. If it is not possible to determine which
  32034. objects PTR points to at compile time, '__builtin_object_size'
  32035. should return '(size_t) -1' for TYPE 0 or 1 and '(size_t) 0' for
  32036. TYPE 2 or 3.
  32037. TYPE is an integer constant from 0 to 3. If the least significant
  32038. bit is clear, objects are whole variables, if it is set, a closest
  32039. surrounding subobject is considered the object a pointer points to.
  32040. The second bit determines if maximum or minimum of remaining bytes
  32041. is computed.
  32042. struct V { char buf1[10]; int b; char buf2[10]; } var;
  32043. char *p = &var.buf1[1], *q = &var.b;
  32044. /* Here the object p points to is var. */
  32045. assert (__builtin_object_size (p, 0) == sizeof (var) - 1);
  32046. /* The subobject p points to is var.buf1. */
  32047. assert (__builtin_object_size (p, 1) == sizeof (var.buf1) - 1);
  32048. /* The object q points to is var. */
  32049. assert (__builtin_object_size (q, 0)
  32050. == (char *) (&var + 1) - (char *) &var.b);
  32051. /* The subobject q points to is var.b. */
  32052. assert (__builtin_object_size (q, 1) == sizeof (var.b));
  32053. There are built-in functions added for many common string operation
  32054. functions, e.g., for 'memcpy' '__builtin___memcpy_chk' built-in is
  32055. provided. This built-in has an additional last argument, which is the
  32056. number of bytes remaining in the object the DEST argument points to or
  32057. '(size_t) -1' if the size is not known.
  32058. The built-in functions are optimized into the normal string functions
  32059. like 'memcpy' if the last argument is '(size_t) -1' or if it is known at
  32060. compile time that the destination object will not be overflowed. If the
  32061. compiler can determine at compile time that the object will always be
  32062. overflowed, it issues a warning.
  32063. The intended use can be e.g.
  32064. #undef memcpy
  32065. #define bos0(dest) __builtin_object_size (dest, 0)
  32066. #define memcpy(dest, src, n) \
  32067. __builtin___memcpy_chk (dest, src, n, bos0 (dest))
  32068. char *volatile p;
  32069. char buf[10];
  32070. /* It is unknown what object p points to, so this is optimized
  32071. into plain memcpy - no checking is possible. */
  32072. memcpy (p, "abcde", n);
  32073. /* Destination is known and length too. It is known at compile
  32074. time there will be no overflow. */
  32075. memcpy (&buf[5], "abcde", 5);
  32076. /* Destination is known, but the length is not known at compile time.
  32077. This will result in __memcpy_chk call that can check for overflow
  32078. at run time. */
  32079. memcpy (&buf[5], "abcde", n);
  32080. /* Destination is known and it is known at compile time there will
  32081. be overflow. There will be a warning and __memcpy_chk call that
  32082. will abort the program at run time. */
  32083. memcpy (&buf[6], "abcde", 5);
  32084. Such built-in functions are provided for 'memcpy', 'mempcpy',
  32085. 'memmove', 'memset', 'strcpy', 'stpcpy', 'strncpy', 'strcat' and
  32086. 'strncat'.
  32087. There are also checking built-in functions for formatted output
  32088. functions.
  32089. int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...);
  32090. int __builtin___snprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  32091. const char *fmt, ...);
  32092. int __builtin___vsprintf_chk (char *s, int flag, size_t os, const char *fmt,
  32093. va_list ap);
  32094. int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os,
  32095. const char *fmt, va_list ap);
  32096. The added FLAG argument is passed unchanged to '__sprintf_chk' etc.
  32097. functions and can contain implementation specific flags on what
  32098. additional security measures the checking function might take, such as
  32099. handling '%n' differently.
  32100. The OS argument is the object size S points to, like in the other
  32101. built-in functions. There is a small difference in the behavior though,
  32102. if OS is '(size_t) -1', the built-in functions are optimized into the
  32103. non-checking functions only if FLAG is 0, otherwise the checking
  32104. function is called with OS argument set to '(size_t) -1'.
  32105. In addition to this, there are checking built-in functions
  32106. '__builtin___printf_chk', '__builtin___vprintf_chk',
  32107. '__builtin___fprintf_chk' and '__builtin___vfprintf_chk'. These have
  32108. just one additional argument, FLAG, right before format string FMT. If
  32109. the compiler is able to optimize them to 'fputc' etc. functions, it
  32110. does, otherwise the checking function is called and the FLAG argument
  32111. passed to it.
  32112. 
  32113. File: gcc.info, Node: Pointer Bounds Checker builtins, Next: Other Builtins, Prev: Object Size Checking, Up: C Extensions
  32114. 6.57 Pointer Bounds Checker Built-in Functions
  32115. ==============================================
  32116. GCC provides a set of built-in functions to control Pointer Bounds
  32117. Checker instrumentation. Note that all Pointer Bounds Checker builtins
  32118. can be used even if you compile with Pointer Bounds Checker off
  32119. ('-fno-check-pointer-bounds'). The behavior may differ in such case as
  32120. documented below.
  32121. -- Built-in Function: void * __builtin___bnd_set_ptr_bounds (const void
  32122. *Q, size_t SIZE)
  32123. This built-in function returns a new pointer with the value of Q,
  32124. and associate it with the bounds [Q, Q+SIZE-1]. With Pointer
  32125. Bounds Checker off, the built-in function just returns the first
  32126. argument.
  32127. extern void *__wrap_malloc (size_t n)
  32128. {
  32129. void *p = (void *)__real_malloc (n);
  32130. if (!p) return __builtin___bnd_null_ptr_bounds (p);
  32131. return __builtin___bnd_set_ptr_bounds (p, n);
  32132. }
  32133. -- Built-in Function: void * __builtin___bnd_narrow_ptr_bounds (const
  32134. void *P, const void *Q, size_t SIZE)
  32135. This built-in function returns a new pointer with the value of P
  32136. and associates it with the narrowed bounds formed by the
  32137. intersection of bounds associated with Q and the bounds [P, P +
  32138. SIZE - 1]. With Pointer Bounds Checker off, the built-in function
  32139. just returns the first argument.
  32140. void init_objects (object *objs, size_t size)
  32141. {
  32142. size_t i;
  32143. /* Initialize objects one-by-one passing pointers with bounds of
  32144. an object, not the full array of objects. */
  32145. for (i = 0; i < size; i++)
  32146. init_object (__builtin___bnd_narrow_ptr_bounds (objs + i, objs,
  32147. sizeof(object)));
  32148. }
  32149. -- Built-in Function: void * __builtin___bnd_copy_ptr_bounds (const
  32150. void *Q, const void *R)
  32151. This built-in function returns a new pointer with the value of Q,
  32152. and associates it with the bounds already associated with pointer
  32153. R. With Pointer Bounds Checker off, the built-in function just
  32154. returns the first argument.
  32155. /* Here is a way to get pointer to object's field but
  32156. still with the full object's bounds. */
  32157. int *field_ptr = __builtin___bnd_copy_ptr_bounds (&objptr->int_field,
  32158. objptr);
  32159. -- Built-in Function: void * __builtin___bnd_init_ptr_bounds (const
  32160. void *Q)
  32161. This built-in function returns a new pointer with the value of Q,
  32162. and associates it with INIT (allowing full memory access) bounds.
  32163. With Pointer Bounds Checker off, the built-in function just returns
  32164. the first argument.
  32165. -- Built-in Function: void * __builtin___bnd_null_ptr_bounds (const
  32166. void *Q)
  32167. This built-in function returns a new pointer with the value of Q,
  32168. and associates it with NULL (allowing no memory access) bounds.
  32169. With Pointer Bounds Checker off, the built-in function just returns
  32170. the first argument.
  32171. -- Built-in Function: void __builtin___bnd_store_ptr_bounds (const void
  32172. **PTR_ADDR, const void *PTR_VAL)
  32173. This built-in function stores the bounds associated with pointer
  32174. PTR_VAL and location PTR_ADDR into Bounds Table. This can be
  32175. useful to propagate bounds from legacy code without touching the
  32176. associated pointer's memory when pointers are copied as integers.
  32177. With Pointer Bounds Checker off, the built-in function call is
  32178. ignored.
  32179. -- Built-in Function: void __builtin___bnd_chk_ptr_lbounds (const void
  32180. *Q)
  32181. This built-in function checks if the pointer Q is within the lower
  32182. bound of its associated bounds. With Pointer Bounds Checker off,
  32183. the built-in function call is ignored.
  32184. extern void *__wrap_memset (void *dst, int c, size_t len)
  32185. {
  32186. if (len > 0)
  32187. {
  32188. __builtin___bnd_chk_ptr_lbounds (dst);
  32189. __builtin___bnd_chk_ptr_ubounds ((char *)dst + len - 1);
  32190. __real_memset (dst, c, len);
  32191. }
  32192. return dst;
  32193. }
  32194. -- Built-in Function: void __builtin___bnd_chk_ptr_ubounds (const void
  32195. *Q)
  32196. This built-in function checks if the pointer Q is within the upper
  32197. bound of its associated bounds. With Pointer Bounds Checker off,
  32198. the built-in function call is ignored.
  32199. -- Built-in Function: void __builtin___bnd_chk_ptr_bounds (const void
  32200. *Q, size_t SIZE)
  32201. This built-in function checks if [Q, Q + SIZE - 1] is within the
  32202. lower and upper bounds associated with Q. With Pointer Bounds
  32203. Checker off, the built-in function call is ignored.
  32204. extern void *__wrap_memcpy (void *dst, const void *src, size_t n)
  32205. {
  32206. if (n > 0)
  32207. {
  32208. __bnd_chk_ptr_bounds (dst, n);
  32209. __bnd_chk_ptr_bounds (src, n);
  32210. __real_memcpy (dst, src, n);
  32211. }
  32212. return dst;
  32213. }
  32214. -- Built-in Function: const void * __builtin___bnd_get_ptr_lbound
  32215. (const void *Q)
  32216. This built-in function returns the lower bound associated with the
  32217. pointer Q, as a pointer value. This is useful for debugging using
  32218. 'printf'. With Pointer Bounds Checker off, the built-in function
  32219. returns 0.
  32220. void *lb = __builtin___bnd_get_ptr_lbound (q);
  32221. void *ub = __builtin___bnd_get_ptr_ubound (q);
  32222. printf ("q = %p lb(q) = %p ub(q) = %p", q, lb, ub);
  32223. -- Built-in Function: const void * __builtin___bnd_get_ptr_ubound
  32224. (const void *Q)
  32225. This built-in function returns the upper bound (which is a pointer)
  32226. associated with the pointer Q. With Pointer Bounds Checker off,
  32227. the built-in function returns -1.
  32228. 
  32229. File: gcc.info, Node: Other Builtins, Next: Target Builtins, Prev: Pointer Bounds Checker builtins, Up: C Extensions
  32230. 6.58 Other Built-in Functions Provided by GCC
  32231. =============================================
  32232. GCC provides a large number of built-in functions other than the ones
  32233. mentioned above. Some of these are for internal use in the processing
  32234. of exceptions or variable-length argument lists and are not documented
  32235. here because they may change from time to time; we do not recommend
  32236. general use of these functions.
  32237. The remaining functions are provided for optimization purposes.
  32238. With the exception of built-ins that have library equivalents such as
  32239. the standard C library functions discussed below, or that expand to
  32240. library calls, GCC built-in functions are always expanded inline and
  32241. thus do not have corresponding entry points and their address cannot be
  32242. obtained. Attempting to use them in an expression other than a function
  32243. call results in a compile-time error.
  32244. GCC includes built-in versions of many of the functions in the standard
  32245. C library. These functions come in two forms: one whose names start
  32246. with the '__builtin_' prefix, and the other without. Both forms have
  32247. the same type (including prototype), the same address (when their
  32248. address is taken), and the same meaning as the C library functions even
  32249. if you specify the '-fno-builtin' option *note C Dialect Options::).
  32250. Many of these functions are only optimized in certain cases; if they are
  32251. not optimized in a particular case, a call to the library function is
  32252. emitted.
  32253. Outside strict ISO C mode ('-ansi', '-std=c90', '-std=c99' or
  32254. '-std=c11'), the functions '_exit', 'alloca', 'bcmp', 'bzero',
  32255. 'dcgettext', 'dgettext', 'dremf', 'dreml', 'drem', 'exp10f', 'exp10l',
  32256. 'exp10', 'ffsll', 'ffsl', 'ffs', 'fprintf_unlocked', 'fputs_unlocked',
  32257. 'gammaf', 'gammal', 'gamma', 'gammaf_r', 'gammal_r', 'gamma_r',
  32258. 'gettext', 'index', 'isascii', 'j0f', 'j0l', 'j0', 'j1f', 'j1l', 'j1',
  32259. 'jnf', 'jnl', 'jn', 'lgammaf_r', 'lgammal_r', 'lgamma_r', 'mempcpy',
  32260. 'pow10f', 'pow10l', 'pow10', 'printf_unlocked', 'rindex', 'scalbf',
  32261. 'scalbl', 'scalb', 'signbit', 'signbitf', 'signbitl', 'signbitd32',
  32262. 'signbitd64', 'signbitd128', 'significandf', 'significandl',
  32263. 'significand', 'sincosf', 'sincosl', 'sincos', 'stpcpy', 'stpncpy',
  32264. 'strcasecmp', 'strdup', 'strfmon', 'strncasecmp', 'strndup', 'toascii',
  32265. 'y0f', 'y0l', 'y0', 'y1f', 'y1l', 'y1', 'ynf', 'ynl' and 'yn' may be
  32266. handled as built-in functions. All these functions have corresponding
  32267. versions prefixed with '__builtin_', which may be used even in strict
  32268. C90 mode.
  32269. The ISO C99 functions '_Exit', 'acoshf', 'acoshl', 'acosh', 'asinhf',
  32270. 'asinhl', 'asinh', 'atanhf', 'atanhl', 'atanh', 'cabsf', 'cabsl',
  32271. 'cabs', 'cacosf', 'cacoshf', 'cacoshl', 'cacosh', 'cacosl', 'cacos',
  32272. 'cargf', 'cargl', 'carg', 'casinf', 'casinhf', 'casinhl', 'casinh',
  32273. 'casinl', 'casin', 'catanf', 'catanhf', 'catanhl', 'catanh', 'catanl',
  32274. 'catan', 'cbrtf', 'cbrtl', 'cbrt', 'ccosf', 'ccoshf', 'ccoshl', 'ccosh',
  32275. 'ccosl', 'ccos', 'cexpf', 'cexpl', 'cexp', 'cimagf', 'cimagl', 'cimag',
  32276. 'clogf', 'clogl', 'clog', 'conjf', 'conjl', 'conj', 'copysignf',
  32277. 'copysignl', 'copysign', 'cpowf', 'cpowl', 'cpow', 'cprojf', 'cprojl',
  32278. 'cproj', 'crealf', 'creall', 'creal', 'csinf', 'csinhf', 'csinhl',
  32279. 'csinh', 'csinl', 'csin', 'csqrtf', 'csqrtl', 'csqrt', 'ctanf',
  32280. 'ctanhf', 'ctanhl', 'ctanh', 'ctanl', 'ctan', 'erfcf', 'erfcl', 'erfc',
  32281. 'erff', 'erfl', 'erf', 'exp2f', 'exp2l', 'exp2', 'expm1f', 'expm1l',
  32282. 'expm1', 'fdimf', 'fdiml', 'fdim', 'fmaf', 'fmal', 'fmaxf', 'fmaxl',
  32283. 'fmax', 'fma', 'fminf', 'fminl', 'fmin', 'hypotf', 'hypotl', 'hypot',
  32284. 'ilogbf', 'ilogbl', 'ilogb', 'imaxabs', 'isblank', 'iswblank',
  32285. 'lgammaf', 'lgammal', 'lgamma', 'llabs', 'llrintf', 'llrintl', 'llrint',
  32286. 'llroundf', 'llroundl', 'llround', 'log1pf', 'log1pl', 'log1p', 'log2f',
  32287. 'log2l', 'log2', 'logbf', 'logbl', 'logb', 'lrintf', 'lrintl', 'lrint',
  32288. 'lroundf', 'lroundl', 'lround', 'nearbyintf', 'nearbyintl', 'nearbyint',
  32289. 'nextafterf', 'nextafterl', 'nextafter', 'nexttowardf', 'nexttowardl',
  32290. 'nexttoward', 'remainderf', 'remainderl', 'remainder', 'remquof',
  32291. 'remquol', 'remquo', 'rintf', 'rintl', 'rint', 'roundf', 'roundl',
  32292. 'round', 'scalblnf', 'scalblnl', 'scalbln', 'scalbnf', 'scalbnl',
  32293. 'scalbn', 'snprintf', 'tgammaf', 'tgammal', 'tgamma', 'truncf',
  32294. 'truncl', 'trunc', 'vfscanf', 'vscanf', 'vsnprintf' and 'vsscanf' are
  32295. handled as built-in functions except in strict ISO C90 mode ('-ansi' or
  32296. '-std=c90').
  32297. There are also built-in versions of the ISO C99 functions 'acosf',
  32298. 'acosl', 'asinf', 'asinl', 'atan2f', 'atan2l', 'atanf', 'atanl',
  32299. 'ceilf', 'ceill', 'cosf', 'coshf', 'coshl', 'cosl', 'expf', 'expl',
  32300. 'fabsf', 'fabsl', 'floorf', 'floorl', 'fmodf', 'fmodl', 'frexpf',
  32301. 'frexpl', 'ldexpf', 'ldexpl', 'log10f', 'log10l', 'logf', 'logl',
  32302. 'modfl', 'modf', 'powf', 'powl', 'sinf', 'sinhf', 'sinhl', 'sinl',
  32303. 'sqrtf', 'sqrtl', 'tanf', 'tanhf', 'tanhl' and 'tanl' that are
  32304. recognized in any mode since ISO C90 reserves these names for the
  32305. purpose to which ISO C99 puts them. All these functions have
  32306. corresponding versions prefixed with '__builtin_'.
  32307. There are also built-in functions '__builtin_fabsfN',
  32308. '__builtin_fabsfNx', '__builtin_copysignfN' and '__builtin_copysignfNx',
  32309. corresponding to the TS 18661-3 functions 'fabsfN', 'fabsfNx',
  32310. 'copysignfN' and 'copysignfNx', for supported types '_FloatN' and
  32311. '_FloatNx'.
  32312. There are also GNU extension functions 'clog10', 'clog10f' and
  32313. 'clog10l' which names are reserved by ISO C99 for future use. All these
  32314. functions have versions prefixed with '__builtin_'.
  32315. The ISO C94 functions 'iswalnum', 'iswalpha', 'iswcntrl', 'iswdigit',
  32316. 'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace', 'iswupper',
  32317. 'iswxdigit', 'towlower' and 'towupper' are handled as built-in functions
  32318. except in strict ISO C90 mode ('-ansi' or '-std=c90').
  32319. The ISO C90 functions 'abort', 'abs', 'acos', 'asin', 'atan2', 'atan',
  32320. 'calloc', 'ceil', 'cosh', 'cos', 'exit', 'exp', 'fabs', 'floor', 'fmod',
  32321. 'fprintf', 'fputs', 'frexp', 'fscanf', 'isalnum', 'isalpha', 'iscntrl',
  32322. 'isdigit', 'isgraph', 'islower', 'isprint', 'ispunct', 'isspace',
  32323. 'isupper', 'isxdigit', 'tolower', 'toupper', 'labs', 'ldexp', 'log10',
  32324. 'log', 'malloc', 'memchr', 'memcmp', 'memcpy', 'memset', 'modf', 'pow',
  32325. 'printf', 'putchar', 'puts', 'scanf', 'sinh', 'sin', 'snprintf',
  32326. 'sprintf', 'sqrt', 'sscanf', 'strcat', 'strchr', 'strcmp', 'strcpy',
  32327. 'strcspn', 'strlen', 'strncat', 'strncmp', 'strncpy', 'strpbrk',
  32328. 'strrchr', 'strspn', 'strstr', 'tanh', 'tan', 'vfprintf', 'vprintf' and
  32329. 'vsprintf' are all recognized as built-in functions unless
  32330. '-fno-builtin' is specified (or '-fno-builtin-FUNCTION' is specified for
  32331. an individual function). All of these functions have corresponding
  32332. versions prefixed with '__builtin_'.
  32333. GCC provides built-in versions of the ISO C99 floating-point comparison
  32334. macros that avoid raising exceptions for unordered operands. They have
  32335. the same names as the standard macros ( 'isgreater', 'isgreaterequal',
  32336. 'isless', 'islessequal', 'islessgreater', and 'isunordered') , with
  32337. '__builtin_' prefixed. We intend for a library implementor to be able
  32338. to simply '#define' each standard macro to its built-in equivalent. In
  32339. the same fashion, GCC provides 'fpclassify', 'isfinite', 'isinf_sign',
  32340. 'isnormal' and 'signbit' built-ins used with '__builtin_' prefixed. The
  32341. 'isinf' and 'isnan' built-in functions appear both with and without the
  32342. '__builtin_' prefix.
  32343. -- Built-in Function: void *__builtin_alloca (size_t size)
  32344. The '__builtin_alloca' function must be called at block scope. The
  32345. function allocates an object SIZE bytes large on the stack of the
  32346. calling function. The object is aligned on the default stack
  32347. alignment boundary for the target determined by the
  32348. '__BIGGEST_ALIGNMENT__' macro. The '__builtin_alloca' function
  32349. returns a pointer to the first byte of the allocated object. The
  32350. lifetime of the allocated object ends just before the calling
  32351. function returns to its caller. This is so even when
  32352. '__builtin_alloca' is called within a nested block.
  32353. For example, the following function allocates eight objects of 'n'
  32354. bytes each on the stack, storing a pointer to each in consecutive
  32355. elements of the array 'a'. It then passes the array to function
  32356. 'g' which can safely use the storage pointed to by each of the
  32357. array elements.
  32358. void f (unsigned n)
  32359. {
  32360. void *a [8];
  32361. for (int i = 0; i != 8; ++i)
  32362. a [i] = __builtin_alloca (n);
  32363. g (a, n); // safe
  32364. }
  32365. Since the '__builtin_alloca' function doesn't validate its argument
  32366. it is the responsibility of its caller to make sure the argument
  32367. doesn't cause it to exceed the stack size limit. The
  32368. '__builtin_alloca' function is provided to make it possible to
  32369. allocate on the stack arrays of bytes with an upper bound that may
  32370. be computed at run time. Since C99 Variable Length Arrays offer
  32371. similar functionality under a portable, more convenient, and safer
  32372. interface they are recommended instead, in both C99 and C++
  32373. programs where GCC provides them as an extension. *Note Variable
  32374. Length::, for details.
  32375. -- Built-in Function: void *__builtin_alloca_with_align (size_t size,
  32376. size_t alignment)
  32377. The '__builtin_alloca_with_align' function must be called at block
  32378. scope. The function allocates an object SIZE bytes large on the
  32379. stack of the calling function. The allocated object is aligned on
  32380. the boundary specified by the argument ALIGNMENT whose unit is
  32381. given in bits (not bytes). The SIZE argument must be positive and
  32382. not exceed the stack size limit. The ALIGNMENT argument must be a
  32383. constant integer expression that evaluates to a power of 2 greater
  32384. than or equal to 'CHAR_BIT' and less than some unspecified maximum.
  32385. Invocations with other values are rejected with an error indicating
  32386. the valid bounds. The function returns a pointer to the first byte
  32387. of the allocated object. The lifetime of the allocated object ends
  32388. at the end of the block in which the function was called. The
  32389. allocated storage is released no later than just before the calling
  32390. function returns to its caller, but may be released at the end of
  32391. the block in which the function was called.
  32392. For example, in the following function the call to 'g' is unsafe
  32393. because when 'overalign' is non-zero, the space allocated by
  32394. '__builtin_alloca_with_align' may have been released at the end of
  32395. the 'if' statement in which it was called.
  32396. void f (unsigned n, bool overalign)
  32397. {
  32398. void *p;
  32399. if (overalign)
  32400. p = __builtin_alloca_with_align (n, 64 /* bits */);
  32401. else
  32402. p = __builtin_alloc (n);
  32403. g (p, n); // unsafe
  32404. }
  32405. Since the '__builtin_alloca_with_align' function doesn't validate
  32406. its SIZE argument it is the responsibility of its caller to make
  32407. sure the argument doesn't cause it to exceed the stack size limit.
  32408. The '__builtin_alloca_with_align' function is provided to make it
  32409. possible to allocate on the stack overaligned arrays of bytes with
  32410. an upper bound that may be computed at run time. Since C99
  32411. Variable Length Arrays offer the same functionality under a
  32412. portable, more convenient, and safer interface they are recommended
  32413. instead, in both C99 and C++ programs where GCC provides them as an
  32414. extension. *Note Variable Length::, for details.
  32415. -- Built-in Function: void *__builtin_alloca_with_align_and_max (size_t
  32416. size, size_t alignment, size_t max_size)
  32417. Similar to '__builtin_alloca_with_align' but takes an extra
  32418. argument specifying an upper bound for SIZE in case its value
  32419. cannot be computed at compile time, for use by '-fstack-usage',
  32420. '-Wstack-usage' and '-Walloca-larger-than'. MAX_SIZE must be a
  32421. constant integer expression, it has no effect on code generation
  32422. and no attempt is made to check its compatibility with SIZE.
  32423. -- Built-in Function: int __builtin_types_compatible_p (TYPE1, TYPE2)
  32424. You can use the built-in function '__builtin_types_compatible_p' to
  32425. determine whether two types are the same.
  32426. This built-in function returns 1 if the unqualified versions of the
  32427. types TYPE1 and TYPE2 (which are types, not expressions) are
  32428. compatible, 0 otherwise. The result of this built-in function can
  32429. be used in integer constant expressions.
  32430. This built-in function ignores top level qualifiers (e.g., 'const',
  32431. 'volatile'). For example, 'int' is equivalent to 'const int'.
  32432. The type 'int[]' and 'int[5]' are compatible. On the other hand,
  32433. 'int' and 'char *' are not compatible, even if the size of their
  32434. types, on the particular architecture are the same. Also, the
  32435. amount of pointer indirection is taken into account when
  32436. determining similarity. Consequently, 'short *' is not similar to
  32437. 'short **'. Furthermore, two types that are typedefed are
  32438. considered compatible if their underlying types are compatible.
  32439. An 'enum' type is not considered to be compatible with another
  32440. 'enum' type even if both are compatible with the same integer type;
  32441. this is what the C standard specifies. For example, 'enum {foo,
  32442. bar}' is not similar to 'enum {hot, dog}'.
  32443. You typically use this function in code whose execution varies
  32444. depending on the arguments' types. For example:
  32445. #define foo(x) \
  32446. ({ \
  32447. typeof (x) tmp = (x); \
  32448. if (__builtin_types_compatible_p (typeof (x), long double)) \
  32449. tmp = foo_long_double (tmp); \
  32450. else if (__builtin_types_compatible_p (typeof (x), double)) \
  32451. tmp = foo_double (tmp); \
  32452. else if (__builtin_types_compatible_p (typeof (x), float)) \
  32453. tmp = foo_float (tmp); \
  32454. else \
  32455. abort (); \
  32456. tmp; \
  32457. })
  32458. _Note:_ This construct is only available for C.
  32459. -- Built-in Function: TYPE __builtin_call_with_static_chain (CALL_EXP,
  32460. POINTER_EXP)
  32461. The CALL_EXP expression must be a function call, and the
  32462. POINTER_EXP expression must be a pointer. The POINTER_EXP is
  32463. passed to the function call in the target's static chain location.
  32464. The result of builtin is the result of the function call.
  32465. _Note:_ This builtin is only available for C. This builtin can be
  32466. used to call Go closures from C.
  32467. -- Built-in Function: TYPE __builtin_choose_expr (CONST_EXP, EXP1,
  32468. EXP2)
  32469. You can use the built-in function '__builtin_choose_expr' to
  32470. evaluate code depending on the value of a constant expression.
  32471. This built-in function returns EXP1 if CONST_EXP, which is an
  32472. integer constant expression, is nonzero. Otherwise it returns
  32473. EXP2.
  32474. This built-in function is analogous to the '? :' operator in C,
  32475. except that the expression returned has its type unaltered by
  32476. promotion rules. Also, the built-in function does not evaluate the
  32477. expression that is not chosen. For example, if CONST_EXP evaluates
  32478. to true, EXP2 is not evaluated even if it has side effects.
  32479. This built-in function can return an lvalue if the chosen argument
  32480. is an lvalue.
  32481. If EXP1 is returned, the return type is the same as EXP1's type.
  32482. Similarly, if EXP2 is returned, its return type is the same as
  32483. EXP2.
  32484. Example:
  32485. #define foo(x) \
  32486. __builtin_choose_expr ( \
  32487. __builtin_types_compatible_p (typeof (x), double), \
  32488. foo_double (x), \
  32489. __builtin_choose_expr ( \
  32490. __builtin_types_compatible_p (typeof (x), float), \
  32491. foo_float (x), \
  32492. /* The void expression results in a compile-time error \
  32493. when assigning the result to something. */ \
  32494. (void)0))
  32495. _Note:_ This construct is only available for C. Furthermore, the
  32496. unused expression (EXP1 or EXP2 depending on the value of
  32497. CONST_EXP) may still generate syntax errors. This may change in
  32498. future revisions.
  32499. -- Built-in Function: TYPE __builtin_tgmath (FUNCTIONS, ARGUMENTS)
  32500. The built-in function '__builtin_tgmath', available only for C and
  32501. Objective-C, calls a function determined according to the rules of
  32502. '<tgmath.h>' macros. It is intended to be used in implementations
  32503. of that header, so that expansions of macros from that header only
  32504. expand each of their arguments once, to avoid problems when calls
  32505. to such macros are nested inside the arguments of other calls to
  32506. such macros; in addition, it results in better diagnostics for
  32507. invalid calls to '<tgmath.h>' macros than implementations using
  32508. other GNU C language features. For example, the 'pow' type-generic
  32509. macro might be defined as:
  32510. #define pow(a, b) __builtin_tgmath (powf, pow, powl, \
  32511. cpowf, cpow, cpowl, a, b)
  32512. The arguments to '__builtin_tgmath' are at least two pointers to
  32513. functions, followed by the arguments to the type-generic macro
  32514. (which will be passed as arguments to the selected function). All
  32515. the pointers to functions must be pointers to prototyped functions,
  32516. none of which may have variable arguments, and all of which must
  32517. have the same number of parameters; the number of parameters of the
  32518. first function determines how many arguments to '__builtin_tgmath'
  32519. are interpreted as function pointers, and how many as the arguments
  32520. to the called function.
  32521. The types of the specified functions must all be different, but
  32522. related to each other in the same way as a set of functions that
  32523. may be selected between by a macro in '<tgmath.h>'. This means
  32524. that the functions are parameterized by a floating-point type T,
  32525. different for each such function. The function return types may
  32526. all be the same type, or they may be T for each function, or they
  32527. may be the real type corresponding to T for each function (if some
  32528. of the types T are complex). Likewise, for each parameter
  32529. position, the type of the parameter in that position may always be
  32530. the same type, or may be T for each function (this case must apply
  32531. for at least one parameter position), or may be the real type
  32532. corresponding to T for each function.
  32533. The standard rules for '<tgmath.h>' macros are used to find a
  32534. common type U from the types of the arguments for parameters whose
  32535. types vary between the functions; complex integer types (a GNU
  32536. extension) are treated like '_Complex double' for this purpose (or
  32537. '_Complex _Float64' if all the function return types are the same
  32538. '_FloatN' or '_FloatNx' type). If the function return types vary,
  32539. or are all the same integer type, the function called is the one
  32540. for which T is U, and it is an error if there is no such function.
  32541. If the function return types are all the same floating-point type,
  32542. the type-generic macro is taken to be one of those from TS 18661
  32543. that rounds the result to a narrower type; if there is a function
  32544. for which T is U, it is called, and otherwise the first function,
  32545. if any, for which T has at least the range and precision of U is
  32546. called, and it is an error if there is no such function.
  32547. -- Built-in Function: TYPE __builtin_complex (REAL, IMAG)
  32548. The built-in function '__builtin_complex' is provided for use in
  32549. implementing the ISO C11 macros 'CMPLXF', 'CMPLX' and 'CMPLXL'.
  32550. REAL and IMAG must have the same type, a real binary floating-point
  32551. type, and the result has the corresponding complex type with real
  32552. and imaginary parts REAL and IMAG. Unlike 'REAL + I * IMAG', this
  32553. works even when infinities, NaNs and negative zeros are involved.
  32554. -- Built-in Function: int __builtin_constant_p (EXP)
  32555. You can use the built-in function '__builtin_constant_p' to
  32556. determine if a value is known to be constant at compile time and
  32557. hence that GCC can perform constant-folding on expressions
  32558. involving that value. The argument of the function is the value to
  32559. test. The function returns the integer 1 if the argument is known
  32560. to be a compile-time constant and 0 if it is not known to be a
  32561. compile-time constant. A return of 0 does not indicate that the
  32562. value is _not_ a constant, but merely that GCC cannot prove it is a
  32563. constant with the specified value of the '-O' option.
  32564. You typically use this function in an embedded application where
  32565. memory is a critical resource. If you have some complex
  32566. calculation, you may want it to be folded if it involves constants,
  32567. but need to call a function if it does not. For example:
  32568. #define Scale_Value(X) \
  32569. (__builtin_constant_p (X) \
  32570. ? ((X) * SCALE + OFFSET) : Scale (X))
  32571. You may use this built-in function in either a macro or an inline
  32572. function. However, if you use it in an inlined function and pass
  32573. an argument of the function as the argument to the built-in, GCC
  32574. never returns 1 when you call the inline function with a string
  32575. constant or compound literal (*note Compound Literals::) and does
  32576. not return 1 when you pass a constant numeric value to the inline
  32577. function unless you specify the '-O' option.
  32578. You may also use '__builtin_constant_p' in initializers for static
  32579. data. For instance, you can write
  32580. static const int table[] = {
  32581. __builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1,
  32582. /* ... */
  32583. };
  32584. This is an acceptable initializer even if EXPRESSION is not a
  32585. constant expression, including the case where
  32586. '__builtin_constant_p' returns 1 because EXPRESSION can be folded
  32587. to a constant but EXPRESSION contains operands that are not
  32588. otherwise permitted in a static initializer (for example, '0 && foo
  32589. ()'). GCC must be more conservative about evaluating the built-in
  32590. in this case, because it has no opportunity to perform
  32591. optimization.
  32592. -- Built-in Function: long __builtin_expect (long EXP, long C)
  32593. You may use '__builtin_expect' to provide the compiler with branch
  32594. prediction information. In general, you should prefer to use
  32595. actual profile feedback for this ('-fprofile-arcs'), as programmers
  32596. are notoriously bad at predicting how their programs actually
  32597. perform. However, there are applications in which this data is
  32598. hard to collect.
  32599. The return value is the value of EXP, which should be an integral
  32600. expression. The semantics of the built-in are that it is expected
  32601. that EXP == C. For example:
  32602. if (__builtin_expect (x, 0))
  32603. foo ();
  32604. indicates that we do not expect to call 'foo', since we expect 'x'
  32605. to be zero. Since you are limited to integral expressions for EXP,
  32606. you should use constructions such as
  32607. if (__builtin_expect (ptr != NULL, 1))
  32608. foo (*ptr);
  32609. when testing pointer or floating-point values.
  32610. -- Built-in Function: void __builtin_trap (void)
  32611. This function causes the program to exit abnormally. GCC
  32612. implements this function by using a target-dependent mechanism
  32613. (such as intentionally executing an illegal instruction) or by
  32614. calling 'abort'. The mechanism used may vary from release to
  32615. release so you should not rely on any particular implementation.
  32616. -- Built-in Function: void __builtin_unreachable (void)
  32617. If control flow reaches the point of the '__builtin_unreachable',
  32618. the program is undefined. It is useful in situations where the
  32619. compiler cannot deduce the unreachability of the code.
  32620. One such case is immediately following an 'asm' statement that
  32621. either never terminates, or one that transfers control elsewhere
  32622. and never returns. In this example, without the
  32623. '__builtin_unreachable', GCC issues a warning that control reaches
  32624. the end of a non-void function. It also generates code to return
  32625. after the 'asm'.
  32626. int f (int c, int v)
  32627. {
  32628. if (c)
  32629. {
  32630. return v;
  32631. }
  32632. else
  32633. {
  32634. asm("jmp error_handler");
  32635. __builtin_unreachable ();
  32636. }
  32637. }
  32638. Because the 'asm' statement unconditionally transfers control out
  32639. of the function, control never reaches the end of the function
  32640. body. The '__builtin_unreachable' is in fact unreachable and
  32641. communicates this fact to the compiler.
  32642. Another use for '__builtin_unreachable' is following a call a
  32643. function that never returns but that is not declared
  32644. '__attribute__((noreturn))', as in this example:
  32645. void function_that_never_returns (void);
  32646. int g (int c)
  32647. {
  32648. if (c)
  32649. {
  32650. return 1;
  32651. }
  32652. else
  32653. {
  32654. function_that_never_returns ();
  32655. __builtin_unreachable ();
  32656. }
  32657. }
  32658. -- Built-in Function: void * __builtin_assume_aligned (const void *EXP,
  32659. size_t ALIGN, ...)
  32660. This function returns its first argument, and allows the compiler
  32661. to assume that the returned pointer is at least ALIGN bytes
  32662. aligned. This built-in can have either two or three arguments, if
  32663. it has three, the third argument should have integer type, and if
  32664. it is nonzero means misalignment offset. For example:
  32665. void *x = __builtin_assume_aligned (arg, 16);
  32666. means that the compiler can assume 'x', set to 'arg', is at least
  32667. 16-byte aligned, while:
  32668. void *x = __builtin_assume_aligned (arg, 32, 8);
  32669. means that the compiler can assume for 'x', set to 'arg', that
  32670. '(char *) x - 8' is 32-byte aligned.
  32671. -- Built-in Function: int __builtin_LINE ()
  32672. This function is the equivalent of the preprocessor '__LINE__'
  32673. macro and returns a constant integer expression that evaluates to
  32674. the line number of the invocation of the built-in. When used as a
  32675. C++ default argument for a function F, it returns the line number
  32676. of the call to F.
  32677. -- Built-in Function: const char * __builtin_FUNCTION ()
  32678. This function is the equivalent of the '__FUNCTION__' symbol and
  32679. returns an address constant pointing to the name of the function
  32680. from which the built-in was invoked, or the empty string if the
  32681. invocation is not at function scope. When used as a C++ default
  32682. argument for a function F, it returns the name of F's caller or the
  32683. empty string if the call was not made at function scope.
  32684. -- Built-in Function: const char * __builtin_FILE ()
  32685. This function is the equivalent of the preprocessor '__FILE__'
  32686. macro and returns an address constant pointing to the file name
  32687. containing the invocation of the built-in, or the empty string if
  32688. the invocation is not at function scope. When used as a C++
  32689. default argument for a function F, it returns the file name of the
  32690. call to F or the empty string if the call was not made at function
  32691. scope.
  32692. For example, in the following, each call to function 'foo' will
  32693. print a line similar to '"file.c:123: foo: message"' with the name
  32694. of the file and the line number of the 'printf' call, the name of
  32695. the function 'foo', followed by the word 'message'.
  32696. const char*
  32697. function (const char *func = __builtin_FUNCTION ())
  32698. {
  32699. return func;
  32700. }
  32701. void foo (void)
  32702. {
  32703. printf ("%s:%i: %s: message\n", file (), line (), function ());
  32704. }
  32705. -- Built-in Function: void __builtin___clear_cache (char *BEGIN, char
  32706. *END)
  32707. This function is used to flush the processor's instruction cache
  32708. for the region of memory between BEGIN inclusive and END exclusive.
  32709. Some targets require that the instruction cache be flushed, after
  32710. modifying memory containing code, in order to obtain deterministic
  32711. behavior.
  32712. If the target does not require instruction cache flushes,
  32713. '__builtin___clear_cache' has no effect. Otherwise either
  32714. instructions are emitted in-line to clear the instruction cache or
  32715. a call to the '__clear_cache' function in libgcc is made.
  32716. -- Built-in Function: void __builtin_prefetch (const void *ADDR, ...)
  32717. This function is used to minimize cache-miss latency by moving data
  32718. into a cache before it is accessed. You can insert calls to
  32719. '__builtin_prefetch' into code for which you know addresses of data
  32720. in memory that is likely to be accessed soon. If the target
  32721. supports them, data prefetch instructions are generated. If the
  32722. prefetch is done early enough before the access then the data will
  32723. be in the cache by the time it is accessed.
  32724. The value of ADDR is the address of the memory to prefetch. There
  32725. are two optional arguments, RW and LOCALITY. The value of RW is a
  32726. compile-time constant one or zero; one means that the prefetch is
  32727. preparing for a write to the memory address and zero, the default,
  32728. means that the prefetch is preparing for a read. The value
  32729. LOCALITY must be a compile-time constant integer between zero and
  32730. three. A value of zero means that the data has no temporal
  32731. locality, so it need not be left in the cache after the access. A
  32732. value of three means that the data has a high degree of temporal
  32733. locality and should be left in all levels of cache possible.
  32734. Values of one and two mean, respectively, a low or moderate degree
  32735. of temporal locality. The default is three.
  32736. for (i = 0; i < n; i++)
  32737. {
  32738. a[i] = a[i] + b[i];
  32739. __builtin_prefetch (&a[i+j], 1, 1);
  32740. __builtin_prefetch (&b[i+j], 0, 1);
  32741. /* ... */
  32742. }
  32743. Data prefetch does not generate faults if ADDR is invalid, but the
  32744. address expression itself must be valid. For example, a prefetch
  32745. of 'p->next' does not fault if 'p->next' is not a valid address,
  32746. but evaluation faults if 'p' is not a valid address.
  32747. If the target does not support data prefetch, the address
  32748. expression is evaluated if it includes side effects but no other
  32749. code is generated and GCC does not issue a warning.
  32750. -- Built-in Function: double __builtin_huge_val (void)
  32751. Returns a positive infinity, if supported by the floating-point
  32752. format, else 'DBL_MAX'. This function is suitable for implementing
  32753. the ISO C macro 'HUGE_VAL'.
  32754. -- Built-in Function: float __builtin_huge_valf (void)
  32755. Similar to '__builtin_huge_val', except the return type is 'float'.
  32756. -- Built-in Function: long double __builtin_huge_vall (void)
  32757. Similar to '__builtin_huge_val', except the return type is 'long
  32758. double'.
  32759. -- Built-in Function: _FloatN __builtin_huge_valfN (void)
  32760. Similar to '__builtin_huge_val', except the return type is
  32761. '_FloatN'.
  32762. -- Built-in Function: _FloatNx __builtin_huge_valfNx (void)
  32763. Similar to '__builtin_huge_val', except the return type is
  32764. '_FloatNx'.
  32765. -- Built-in Function: int __builtin_fpclassify (int, int, int, int,
  32766. int, ...)
  32767. This built-in implements the C99 fpclassify functionality. The
  32768. first five int arguments should be the target library's notion of
  32769. the possible FP classes and are used for return values. They must
  32770. be constant values and they must appear in this order: 'FP_NAN',
  32771. 'FP_INFINITE', 'FP_NORMAL', 'FP_SUBNORMAL' and 'FP_ZERO'. The
  32772. ellipsis is for exactly one floating-point value to classify. GCC
  32773. treats the last argument as type-generic, which means it does not
  32774. do default promotion from float to double.
  32775. -- Built-in Function: double __builtin_inf (void)
  32776. Similar to '__builtin_huge_val', except a warning is generated if
  32777. the target floating-point format does not support infinities.
  32778. -- Built-in Function: _Decimal32 __builtin_infd32 (void)
  32779. Similar to '__builtin_inf', except the return type is '_Decimal32'.
  32780. -- Built-in Function: _Decimal64 __builtin_infd64 (void)
  32781. Similar to '__builtin_inf', except the return type is '_Decimal64'.
  32782. -- Built-in Function: _Decimal128 __builtin_infd128 (void)
  32783. Similar to '__builtin_inf', except the return type is
  32784. '_Decimal128'.
  32785. -- Built-in Function: float __builtin_inff (void)
  32786. Similar to '__builtin_inf', except the return type is 'float'.
  32787. This function is suitable for implementing the ISO C99 macro
  32788. 'INFINITY'.
  32789. -- Built-in Function: long double __builtin_infl (void)
  32790. Similar to '__builtin_inf', except the return type is 'long
  32791. double'.
  32792. -- Built-in Function: _FloatN __builtin_inffN (void)
  32793. Similar to '__builtin_inf', except the return type is '_FloatN'.
  32794. -- Built-in Function: _FloatN __builtin_inffNx (void)
  32795. Similar to '__builtin_inf', except the return type is '_FloatNx'.
  32796. -- Built-in Function: int __builtin_isinf_sign (...)
  32797. Similar to 'isinf', except the return value is -1 for an argument
  32798. of '-Inf' and 1 for an argument of '+Inf'. Note while the
  32799. parameter list is an ellipsis, this function only accepts exactly
  32800. one floating-point argument. GCC treats this parameter as
  32801. type-generic, which means it does not do default promotion from
  32802. float to double.
  32803. -- Built-in Function: double __builtin_nan (const char *str)
  32804. This is an implementation of the ISO C99 function 'nan'.
  32805. Since ISO C99 defines this function in terms of 'strtod', which we
  32806. do not implement, a description of the parsing is in order. The
  32807. string is parsed as by 'strtol'; that is, the base is recognized by
  32808. leading '0' or '0x' prefixes. The number parsed is placed in the
  32809. significand such that the least significant bit of the number is at
  32810. the least significant bit of the significand. The number is
  32811. truncated to fit the significand field provided. The significand
  32812. is forced to be a quiet NaN.
  32813. This function, if given a string literal all of which would have
  32814. been consumed by 'strtol', is evaluated early enough that it is
  32815. considered a compile-time constant.
  32816. -- Built-in Function: _Decimal32 __builtin_nand32 (const char *str)
  32817. Similar to '__builtin_nan', except the return type is '_Decimal32'.
  32818. -- Built-in Function: _Decimal64 __builtin_nand64 (const char *str)
  32819. Similar to '__builtin_nan', except the return type is '_Decimal64'.
  32820. -- Built-in Function: _Decimal128 __builtin_nand128 (const char *str)
  32821. Similar to '__builtin_nan', except the return type is
  32822. '_Decimal128'.
  32823. -- Built-in Function: float __builtin_nanf (const char *str)
  32824. Similar to '__builtin_nan', except the return type is 'float'.
  32825. -- Built-in Function: long double __builtin_nanl (const char *str)
  32826. Similar to '__builtin_nan', except the return type is 'long
  32827. double'.
  32828. -- Built-in Function: _FloatN __builtin_nanfN (const char *str)
  32829. Similar to '__builtin_nan', except the return type is '_FloatN'.
  32830. -- Built-in Function: _FloatNx __builtin_nanfNx (const char *str)
  32831. Similar to '__builtin_nan', except the return type is '_FloatNx'.
  32832. -- Built-in Function: double __builtin_nans (const char *str)
  32833. Similar to '__builtin_nan', except the significand is forced to be
  32834. a signaling NaN. The 'nans' function is proposed by WG14 N965.
  32835. -- Built-in Function: float __builtin_nansf (const char *str)
  32836. Similar to '__builtin_nans', except the return type is 'float'.
  32837. -- Built-in Function: long double __builtin_nansl (const char *str)
  32838. Similar to '__builtin_nans', except the return type is 'long
  32839. double'.
  32840. -- Built-in Function: _FloatN __builtin_nansfN (const char *str)
  32841. Similar to '__builtin_nans', except the return type is '_FloatN'.
  32842. -- Built-in Function: _FloatNx __builtin_nansfNx (const char *str)
  32843. Similar to '__builtin_nans', except the return type is '_FloatNx'.
  32844. -- Built-in Function: int __builtin_ffs (int x)
  32845. Returns one plus the index of the least significant 1-bit of X, or
  32846. if X is zero, returns zero.
  32847. -- Built-in Function: int __builtin_clz (unsigned int x)
  32848. Returns the number of leading 0-bits in X, starting at the most
  32849. significant bit position. If X is 0, the result is undefined.
  32850. -- Built-in Function: int __builtin_ctz (unsigned int x)
  32851. Returns the number of trailing 0-bits in X, starting at the least
  32852. significant bit position. If X is 0, the result is undefined.
  32853. -- Built-in Function: int __builtin_clrsb (int x)
  32854. Returns the number of leading redundant sign bits in X, i.e. the
  32855. number of bits following the most significant bit that are
  32856. identical to it. There are no special cases for 0 or other values.
  32857. -- Built-in Function: int __builtin_popcount (unsigned int x)
  32858. Returns the number of 1-bits in X.
  32859. -- Built-in Function: int __builtin_parity (unsigned int x)
  32860. Returns the parity of X, i.e. the number of 1-bits in X modulo 2.
  32861. -- Built-in Function: int __builtin_ffsl (long)
  32862. Similar to '__builtin_ffs', except the argument type is 'long'.
  32863. -- Built-in Function: int __builtin_clzl (unsigned long)
  32864. Similar to '__builtin_clz', except the argument type is 'unsigned
  32865. long'.
  32866. -- Built-in Function: int __builtin_ctzl (unsigned long)
  32867. Similar to '__builtin_ctz', except the argument type is 'unsigned
  32868. long'.
  32869. -- Built-in Function: int __builtin_clrsbl (long)
  32870. Similar to '__builtin_clrsb', except the argument type is 'long'.
  32871. -- Built-in Function: int __builtin_popcountl (unsigned long)
  32872. Similar to '__builtin_popcount', except the argument type is
  32873. 'unsigned long'.
  32874. -- Built-in Function: int __builtin_parityl (unsigned long)
  32875. Similar to '__builtin_parity', except the argument type is
  32876. 'unsigned long'.
  32877. -- Built-in Function: int __builtin_ffsll (long long)
  32878. Similar to '__builtin_ffs', except the argument type is 'long
  32879. long'.
  32880. -- Built-in Function: int __builtin_clzll (unsigned long long)
  32881. Similar to '__builtin_clz', except the argument type is 'unsigned
  32882. long long'.
  32883. -- Built-in Function: int __builtin_ctzll (unsigned long long)
  32884. Similar to '__builtin_ctz', except the argument type is 'unsigned
  32885. long long'.
  32886. -- Built-in Function: int __builtin_clrsbll (long long)
  32887. Similar to '__builtin_clrsb', except the argument type is 'long
  32888. long'.
  32889. -- Built-in Function: int __builtin_popcountll (unsigned long long)
  32890. Similar to '__builtin_popcount', except the argument type is
  32891. 'unsigned long long'.
  32892. -- Built-in Function: int __builtin_parityll (unsigned long long)
  32893. Similar to '__builtin_parity', except the argument type is
  32894. 'unsigned long long'.
  32895. -- Built-in Function: double __builtin_powi (double, int)
  32896. Returns the first argument raised to the power of the second.
  32897. Unlike the 'pow' function no guarantees about precision and
  32898. rounding are made.
  32899. -- Built-in Function: float __builtin_powif (float, int)
  32900. Similar to '__builtin_powi', except the argument and return types
  32901. are 'float'.
  32902. -- Built-in Function: long double __builtin_powil (long double, int)
  32903. Similar to '__builtin_powi', except the argument and return types
  32904. are 'long double'.
  32905. -- Built-in Function: uint16_t __builtin_bswap16 (uint16_t x)
  32906. Returns X with the order of the bytes reversed; for example,
  32907. '0xaabb' becomes '0xbbaa'. Byte here always means exactly 8 bits.
  32908. -- Built-in Function: uint32_t __builtin_bswap32 (uint32_t x)
  32909. Similar to '__builtin_bswap16', except the argument and return
  32910. types are 32 bit.
  32911. -- Built-in Function: uint64_t __builtin_bswap64 (uint64_t x)
  32912. Similar to '__builtin_bswap32', except the argument and return
  32913. types are 64 bit.
  32914. -- Built-in Function: Pmode __builtin_extend_pointer (void * x)
  32915. On targets where the user visible pointer size is smaller than the
  32916. size of an actual hardware address this function returns the
  32917. extended user pointer. Targets where this is true included ILP32
  32918. mode on x86_64 or Aarch64. This function is mainly useful when
  32919. writing inline assembly code.
  32920. 
  32921. File: gcc.info, Node: Target Builtins, Next: Target Format Checks, Prev: Other Builtins, Up: C Extensions
  32922. 6.59 Built-in Functions Specific to Particular Target Machines
  32923. ==============================================================
  32924. On some target machines, GCC supports many built-in functions specific
  32925. to those machines. Generally these generate calls to specific machine
  32926. instructions, but allow the compiler to schedule those calls.
  32927. * Menu:
  32928. * AArch64 Built-in Functions::
  32929. * Alpha Built-in Functions::
  32930. * Altera Nios II Built-in Functions::
  32931. * ARC Built-in Functions::
  32932. * ARC SIMD Built-in Functions::
  32933. * ARM iWMMXt Built-in Functions::
  32934. * ARM C Language Extensions (ACLE)::
  32935. * ARM Floating Point Status and Control Intrinsics::
  32936. * ARM ARMv8-M Security Extensions::
  32937. * AVR Built-in Functions::
  32938. * Blackfin Built-in Functions::
  32939. * FR-V Built-in Functions::
  32940. * MIPS DSP Built-in Functions::
  32941. * MIPS Paired-Single Support::
  32942. * MIPS Loongson Built-in Functions::
  32943. * MIPS SIMD Architecture (MSA) Support::
  32944. * Other MIPS Built-in Functions::
  32945. * MSP430 Built-in Functions::
  32946. * NDS32 Built-in Functions::
  32947. * picoChip Built-in Functions::
  32948. * PowerPC Built-in Functions::
  32949. * PowerPC AltiVec/VSX Built-in Functions::
  32950. * PowerPC Hardware Transactional Memory Built-in Functions::
  32951. * PowerPC Atomic Memory Operation Functions::
  32952. * RX Built-in Functions::
  32953. * S/390 System z Built-in Functions::
  32954. * SH Built-in Functions::
  32955. * SPARC VIS Built-in Functions::
  32956. * SPU Built-in Functions::
  32957. * TI C6X Built-in Functions::
  32958. * TILE-Gx Built-in Functions::
  32959. * TILEPro Built-in Functions::
  32960. * x86 Built-in Functions::
  32961. * x86 transactional memory intrinsics::
  32962. * x86 control-flow protection intrinsics::
  32963. 
  32964. File: gcc.info, Node: AArch64 Built-in Functions, Next: Alpha Built-in Functions, Up: Target Builtins
  32965. 6.59.1 AArch64 Built-in Functions
  32966. ---------------------------------
  32967. These built-in functions are available for the AArch64 family of
  32968. processors.
  32969. unsigned int __builtin_aarch64_get_fpcr ()
  32970. void __builtin_aarch64_set_fpcr (unsigned int)
  32971. unsigned int __builtin_aarch64_get_fpsr ()
  32972. void __builtin_aarch64_set_fpsr (unsigned int)
  32973. 
  32974. File: gcc.info, Node: Alpha Built-in Functions, Next: Altera Nios II Built-in Functions, Prev: AArch64 Built-in Functions, Up: Target Builtins
  32975. 6.59.2 Alpha Built-in Functions
  32976. -------------------------------
  32977. These built-in functions are available for the Alpha family of
  32978. processors, depending on the command-line switches used.
  32979. The following built-in functions are always available. They all
  32980. generate the machine instruction that is part of the name.
  32981. long __builtin_alpha_implver (void)
  32982. long __builtin_alpha_rpcc (void)
  32983. long __builtin_alpha_amask (long)
  32984. long __builtin_alpha_cmpbge (long, long)
  32985. long __builtin_alpha_extbl (long, long)
  32986. long __builtin_alpha_extwl (long, long)
  32987. long __builtin_alpha_extll (long, long)
  32988. long __builtin_alpha_extql (long, long)
  32989. long __builtin_alpha_extwh (long, long)
  32990. long __builtin_alpha_extlh (long, long)
  32991. long __builtin_alpha_extqh (long, long)
  32992. long __builtin_alpha_insbl (long, long)
  32993. long __builtin_alpha_inswl (long, long)
  32994. long __builtin_alpha_insll (long, long)
  32995. long __builtin_alpha_insql (long, long)
  32996. long __builtin_alpha_inswh (long, long)
  32997. long __builtin_alpha_inslh (long, long)
  32998. long __builtin_alpha_insqh (long, long)
  32999. long __builtin_alpha_mskbl (long, long)
  33000. long __builtin_alpha_mskwl (long, long)
  33001. long __builtin_alpha_mskll (long, long)
  33002. long __builtin_alpha_mskql (long, long)
  33003. long __builtin_alpha_mskwh (long, long)
  33004. long __builtin_alpha_msklh (long, long)
  33005. long __builtin_alpha_mskqh (long, long)
  33006. long __builtin_alpha_umulh (long, long)
  33007. long __builtin_alpha_zap (long, long)
  33008. long __builtin_alpha_zapnot (long, long)
  33009. The following built-in functions are always with '-mmax' or '-mcpu=CPU'
  33010. where CPU is 'pca56' or later. They all generate the machine
  33011. instruction that is part of the name.
  33012. long __builtin_alpha_pklb (long)
  33013. long __builtin_alpha_pkwb (long)
  33014. long __builtin_alpha_unpkbl (long)
  33015. long __builtin_alpha_unpkbw (long)
  33016. long __builtin_alpha_minub8 (long, long)
  33017. long __builtin_alpha_minsb8 (long, long)
  33018. long __builtin_alpha_minuw4 (long, long)
  33019. long __builtin_alpha_minsw4 (long, long)
  33020. long __builtin_alpha_maxub8 (long, long)
  33021. long __builtin_alpha_maxsb8 (long, long)
  33022. long __builtin_alpha_maxuw4 (long, long)
  33023. long __builtin_alpha_maxsw4 (long, long)
  33024. long __builtin_alpha_perr (long, long)
  33025. The following built-in functions are always with '-mcix' or '-mcpu=CPU'
  33026. where CPU is 'ev67' or later. They all generate the machine instruction
  33027. that is part of the name.
  33028. long __builtin_alpha_cttz (long)
  33029. long __builtin_alpha_ctlz (long)
  33030. long __builtin_alpha_ctpop (long)
  33031. The following built-in functions are available on systems that use the
  33032. OSF/1 PALcode. Normally they invoke the 'rduniq' and 'wruniq' PAL
  33033. calls, but when invoked with '-mtls-kernel', they invoke 'rdval' and
  33034. 'wrval'.
  33035. void *__builtin_thread_pointer (void)
  33036. void __builtin_set_thread_pointer (void *)
  33037. 
  33038. File: gcc.info, Node: Altera Nios II Built-in Functions, Next: ARC Built-in Functions, Prev: Alpha Built-in Functions, Up: Target Builtins
  33039. 6.59.3 Altera Nios II Built-in Functions
  33040. ----------------------------------------
  33041. These built-in functions are available for the Altera Nios II family of
  33042. processors.
  33043. The following built-in functions are always available. They all
  33044. generate the machine instruction that is part of the name.
  33045. int __builtin_ldbio (volatile const void *)
  33046. int __builtin_ldbuio (volatile const void *)
  33047. int __builtin_ldhio (volatile const void *)
  33048. int __builtin_ldhuio (volatile const void *)
  33049. int __builtin_ldwio (volatile const void *)
  33050. void __builtin_stbio (volatile void *, int)
  33051. void __builtin_sthio (volatile void *, int)
  33052. void __builtin_stwio (volatile void *, int)
  33053. void __builtin_sync (void)
  33054. int __builtin_rdctl (int)
  33055. int __builtin_rdprs (int, int)
  33056. void __builtin_wrctl (int, int)
  33057. void __builtin_flushd (volatile void *)
  33058. void __builtin_flushda (volatile void *)
  33059. int __builtin_wrpie (int);
  33060. void __builtin_eni (int);
  33061. int __builtin_ldex (volatile const void *)
  33062. int __builtin_stex (volatile void *, int)
  33063. int __builtin_ldsex (volatile const void *)
  33064. int __builtin_stsex (volatile void *, int)
  33065. The following built-in functions are always available. They all
  33066. generate a Nios II Custom Instruction. The name of the function
  33067. represents the types that the function takes and returns. The letter
  33068. before the 'n' is the return type or void if absent. The 'n' represents
  33069. the first parameter to all the custom instructions, the custom
  33070. instruction number. The two letters after the 'n' represent the up to
  33071. two parameters to the function.
  33072. The letters represent the following data types:
  33073. '<no letter>'
  33074. 'void' for return type and no parameter for parameter types.
  33075. 'i'
  33076. 'int' for return type and parameter type
  33077. 'f'
  33078. 'float' for return type and parameter type
  33079. 'p'
  33080. 'void *' for return type and parameter type
  33081. And the function names are:
  33082. void __builtin_custom_n (void)
  33083. void __builtin_custom_ni (int)
  33084. void __builtin_custom_nf (float)
  33085. void __builtin_custom_np (void *)
  33086. void __builtin_custom_nii (int, int)
  33087. void __builtin_custom_nif (int, float)
  33088. void __builtin_custom_nip (int, void *)
  33089. void __builtin_custom_nfi (float, int)
  33090. void __builtin_custom_nff (float, float)
  33091. void __builtin_custom_nfp (float, void *)
  33092. void __builtin_custom_npi (void *, int)
  33093. void __builtin_custom_npf (void *, float)
  33094. void __builtin_custom_npp (void *, void *)
  33095. int __builtin_custom_in (void)
  33096. int __builtin_custom_ini (int)
  33097. int __builtin_custom_inf (float)
  33098. int __builtin_custom_inp (void *)
  33099. int __builtin_custom_inii (int, int)
  33100. int __builtin_custom_inif (int, float)
  33101. int __builtin_custom_inip (int, void *)
  33102. int __builtin_custom_infi (float, int)
  33103. int __builtin_custom_inff (float, float)
  33104. int __builtin_custom_infp (float, void *)
  33105. int __builtin_custom_inpi (void *, int)
  33106. int __builtin_custom_inpf (void *, float)
  33107. int __builtin_custom_inpp (void *, void *)
  33108. float __builtin_custom_fn (void)
  33109. float __builtin_custom_fni (int)
  33110. float __builtin_custom_fnf (float)
  33111. float __builtin_custom_fnp (void *)
  33112. float __builtin_custom_fnii (int, int)
  33113. float __builtin_custom_fnif (int, float)
  33114. float __builtin_custom_fnip (int, void *)
  33115. float __builtin_custom_fnfi (float, int)
  33116. float __builtin_custom_fnff (float, float)
  33117. float __builtin_custom_fnfp (float, void *)
  33118. float __builtin_custom_fnpi (void *, int)
  33119. float __builtin_custom_fnpf (void *, float)
  33120. float __builtin_custom_fnpp (void *, void *)
  33121. void * __builtin_custom_pn (void)
  33122. void * __builtin_custom_pni (int)
  33123. void * __builtin_custom_pnf (float)
  33124. void * __builtin_custom_pnp (void *)
  33125. void * __builtin_custom_pnii (int, int)
  33126. void * __builtin_custom_pnif (int, float)
  33127. void * __builtin_custom_pnip (int, void *)
  33128. void * __builtin_custom_pnfi (float, int)
  33129. void * __builtin_custom_pnff (float, float)
  33130. void * __builtin_custom_pnfp (float, void *)
  33131. void * __builtin_custom_pnpi (void *, int)
  33132. void * __builtin_custom_pnpf (void *, float)
  33133. void * __builtin_custom_pnpp (void *, void *)
  33134. 
  33135. File: gcc.info, Node: ARC Built-in Functions, Next: ARC SIMD Built-in Functions, Prev: Altera Nios II Built-in Functions, Up: Target Builtins
  33136. 6.59.4 ARC Built-in Functions
  33137. -----------------------------
  33138. The following built-in functions are provided for ARC targets. The
  33139. built-ins generate the corresponding assembly instructions. In the
  33140. examples given below, the generated code often requires an operand or
  33141. result to be in a register. Where necessary further code will be
  33142. generated to ensure this is true, but for brevity this is not described
  33143. in each case.
  33144. _Note:_ Using a built-in to generate an instruction not supported by a
  33145. target may cause problems. At present the compiler is not guaranteed to
  33146. detect such misuse, and as a result an internal compiler error may be
  33147. generated.
  33148. -- Built-in Function: int __builtin_arc_aligned (void *VAL, int
  33149. ALIGNVAL)
  33150. Return 1 if VAL is known to have the byte alignment given by
  33151. ALIGNVAL, otherwise return 0. Note that this is different from
  33152. __alignof__(*(char *)VAL) >= alignval
  33153. because __alignof__ sees only the type of the dereference, whereas
  33154. __builtin_arc_align uses alignment information from the pointer as
  33155. well as from the pointed-to type. The information available will
  33156. depend on optimization level.
  33157. -- Built-in Function: void __builtin_arc_brk (void)
  33158. Generates
  33159. brk
  33160. -- Built-in Function: unsigned int __builtin_arc_core_read (unsigned
  33161. int REGNO)
  33162. The operand is the number of a register to be read. Generates:
  33163. mov DEST, rREGNO
  33164. where the value in DEST will be the result returned from the
  33165. built-in.
  33166. -- Built-in Function: void __builtin_arc_core_write (unsigned int
  33167. REGNO, unsigned int VAL)
  33168. The first operand is the number of a register to be written, the
  33169. second operand is a compile time constant to write into that
  33170. register. Generates:
  33171. mov rREGNO, VAL
  33172. -- Built-in Function: int __builtin_arc_divaw (int A, int B)
  33173. Only available if either '-mcpu=ARC700' or '-meA' is set.
  33174. Generates:
  33175. divaw DEST, A, B
  33176. where the value in DEST will be the result returned from the
  33177. built-in.
  33178. -- Built-in Function: void __builtin_arc_flag (unsigned int A)
  33179. Generates
  33180. flag A
  33181. -- Built-in Function: unsigned int __builtin_arc_lr (unsigned int AUXR)
  33182. The operand, AUXV, is the address of an auxiliary register and must
  33183. be a compile time constant. Generates:
  33184. lr DEST, [AUXR]
  33185. Where the value in DEST will be the result returned from the
  33186. built-in.
  33187. -- Built-in Function: void __builtin_arc_mul64 (int A, int B)
  33188. Only available with '-mmul64'. Generates:
  33189. mul64 A, B
  33190. -- Built-in Function: void __builtin_arc_mulu64 (unsigned int A,
  33191. unsigned int B)
  33192. Only available with '-mmul64'. Generates:
  33193. mulu64 A, B
  33194. -- Built-in Function: void __builtin_arc_nop (void)
  33195. Generates:
  33196. nop
  33197. -- Built-in Function: int __builtin_arc_norm (int SRC)
  33198. Only valid if the 'norm' instruction is available through the
  33199. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  33200. norm DEST, SRC
  33201. Where the value in DEST will be the result returned from the
  33202. built-in.
  33203. -- Built-in Function: short int __builtin_arc_normw (short int SRC)
  33204. Only valid if the 'normw' instruction is available through the
  33205. '-mnorm' option or by default with '-mcpu=ARC700'. Generates:
  33206. normw DEST, SRC
  33207. Where the value in DEST will be the result returned from the
  33208. built-in.
  33209. -- Built-in Function: void __builtin_arc_rtie (void)
  33210. Generates:
  33211. rtie
  33212. -- Built-in Function: void __builtin_arc_sleep (int A
  33213. Generates:
  33214. sleep A
  33215. -- Built-in Function: void __builtin_arc_sr (unsigned int AUXR,
  33216. unsigned int VAL)
  33217. The first argument, AUXV, is the address of an auxiliary register,
  33218. the second argument, VAL, is a compile time constant to be written
  33219. to the register. Generates:
  33220. sr AUXR, [VAL]
  33221. -- Built-in Function: int __builtin_arc_swap (int SRC)
  33222. Only valid with '-mswap'. Generates:
  33223. swap DEST, SRC
  33224. Where the value in DEST will be the result returned from the
  33225. built-in.
  33226. -- Built-in Function: void __builtin_arc_swi (void)
  33227. Generates:
  33228. swi
  33229. -- Built-in Function: void __builtin_arc_sync (void)
  33230. Only available with '-mcpu=ARC700'. Generates:
  33231. sync
  33232. -- Built-in Function: void __builtin_arc_trap_s (unsigned int C)
  33233. Only available with '-mcpu=ARC700'. Generates:
  33234. trap_s C
  33235. -- Built-in Function: void __builtin_arc_unimp_s (void)
  33236. Only available with '-mcpu=ARC700'. Generates:
  33237. unimp_s
  33238. The instructions generated by the following builtins are not considered
  33239. as candidates for scheduling. They are not moved around by the compiler
  33240. during scheduling, and thus can be expected to appear where they are put
  33241. in the C code:
  33242. __builtin_arc_brk()
  33243. __builtin_arc_core_read()
  33244. __builtin_arc_core_write()
  33245. __builtin_arc_flag()
  33246. __builtin_arc_lr()
  33247. __builtin_arc_sleep()
  33248. __builtin_arc_sr()
  33249. __builtin_arc_swi()
  33250. 
  33251. File: gcc.info, Node: ARC SIMD Built-in Functions, Next: ARM iWMMXt Built-in Functions, Prev: ARC Built-in Functions, Up: Target Builtins
  33252. 6.59.5 ARC SIMD Built-in Functions
  33253. ----------------------------------
  33254. SIMD builtins provided by the compiler can be used to generate the
  33255. vector instructions. This section describes the available builtins and
  33256. their usage in programs. With the '-msimd' option, the compiler
  33257. provides 128-bit vector types, which can be specified using the
  33258. 'vector_size' attribute. The header file 'arc-simd.h' can be included
  33259. to use the following predefined types:
  33260. typedef int __v4si __attribute__((vector_size(16)));
  33261. typedef short __v8hi __attribute__((vector_size(16)));
  33262. These types can be used to define 128-bit variables. The built-in
  33263. functions listed in the following section can be used on these variables
  33264. to generate the vector operations.
  33265. For all builtins, '__builtin_arc_SOMEINSN', the header file
  33266. 'arc-simd.h' also provides equivalent macros called '_SOMEINSN' that can
  33267. be used for programming ease and improved readability. The following
  33268. macros for DMA control are also provided:
  33269. #define _setup_dma_in_channel_reg _vdiwr
  33270. #define _setup_dma_out_channel_reg _vdowr
  33271. The following is a complete list of all the SIMD built-ins provided for
  33272. ARC, grouped by calling signature.
  33273. The following take two '__v8hi' arguments and return a '__v8hi' result:
  33274. __v8hi __builtin_arc_vaddaw (__v8hi, __v8hi)
  33275. __v8hi __builtin_arc_vaddw (__v8hi, __v8hi)
  33276. __v8hi __builtin_arc_vand (__v8hi, __v8hi)
  33277. __v8hi __builtin_arc_vandaw (__v8hi, __v8hi)
  33278. __v8hi __builtin_arc_vavb (__v8hi, __v8hi)
  33279. __v8hi __builtin_arc_vavrb (__v8hi, __v8hi)
  33280. __v8hi __builtin_arc_vbic (__v8hi, __v8hi)
  33281. __v8hi __builtin_arc_vbicaw (__v8hi, __v8hi)
  33282. __v8hi __builtin_arc_vdifaw (__v8hi, __v8hi)
  33283. __v8hi __builtin_arc_vdifw (__v8hi, __v8hi)
  33284. __v8hi __builtin_arc_veqw (__v8hi, __v8hi)
  33285. __v8hi __builtin_arc_vh264f (__v8hi, __v8hi)
  33286. __v8hi __builtin_arc_vh264ft (__v8hi, __v8hi)
  33287. __v8hi __builtin_arc_vh264fw (__v8hi, __v8hi)
  33288. __v8hi __builtin_arc_vlew (__v8hi, __v8hi)
  33289. __v8hi __builtin_arc_vltw (__v8hi, __v8hi)
  33290. __v8hi __builtin_arc_vmaxaw (__v8hi, __v8hi)
  33291. __v8hi __builtin_arc_vmaxw (__v8hi, __v8hi)
  33292. __v8hi __builtin_arc_vminaw (__v8hi, __v8hi)
  33293. __v8hi __builtin_arc_vminw (__v8hi, __v8hi)
  33294. __v8hi __builtin_arc_vmr1aw (__v8hi, __v8hi)
  33295. __v8hi __builtin_arc_vmr1w (__v8hi, __v8hi)
  33296. __v8hi __builtin_arc_vmr2aw (__v8hi, __v8hi)
  33297. __v8hi __builtin_arc_vmr2w (__v8hi, __v8hi)
  33298. __v8hi __builtin_arc_vmr3aw (__v8hi, __v8hi)
  33299. __v8hi __builtin_arc_vmr3w (__v8hi, __v8hi)
  33300. __v8hi __builtin_arc_vmr4aw (__v8hi, __v8hi)
  33301. __v8hi __builtin_arc_vmr4w (__v8hi, __v8hi)
  33302. __v8hi __builtin_arc_vmr5aw (__v8hi, __v8hi)
  33303. __v8hi __builtin_arc_vmr5w (__v8hi, __v8hi)
  33304. __v8hi __builtin_arc_vmr6aw (__v8hi, __v8hi)
  33305. __v8hi __builtin_arc_vmr6w (__v8hi, __v8hi)
  33306. __v8hi __builtin_arc_vmr7aw (__v8hi, __v8hi)
  33307. __v8hi __builtin_arc_vmr7w (__v8hi, __v8hi)
  33308. __v8hi __builtin_arc_vmrb (__v8hi, __v8hi)
  33309. __v8hi __builtin_arc_vmulaw (__v8hi, __v8hi)
  33310. __v8hi __builtin_arc_vmulfaw (__v8hi, __v8hi)
  33311. __v8hi __builtin_arc_vmulfw (__v8hi, __v8hi)
  33312. __v8hi __builtin_arc_vmulw (__v8hi, __v8hi)
  33313. __v8hi __builtin_arc_vnew (__v8hi, __v8hi)
  33314. __v8hi __builtin_arc_vor (__v8hi, __v8hi)
  33315. __v8hi __builtin_arc_vsubaw (__v8hi, __v8hi)
  33316. __v8hi __builtin_arc_vsubw (__v8hi, __v8hi)
  33317. __v8hi __builtin_arc_vsummw (__v8hi, __v8hi)
  33318. __v8hi __builtin_arc_vvc1f (__v8hi, __v8hi)
  33319. __v8hi __builtin_arc_vvc1ft (__v8hi, __v8hi)
  33320. __v8hi __builtin_arc_vxor (__v8hi, __v8hi)
  33321. __v8hi __builtin_arc_vxoraw (__v8hi, __v8hi)
  33322. The following take one '__v8hi' and one 'int' argument and return a
  33323. '__v8hi' result:
  33324. __v8hi __builtin_arc_vbaddw (__v8hi, int)
  33325. __v8hi __builtin_arc_vbmaxw (__v8hi, int)
  33326. __v8hi __builtin_arc_vbminw (__v8hi, int)
  33327. __v8hi __builtin_arc_vbmulaw (__v8hi, int)
  33328. __v8hi __builtin_arc_vbmulfw (__v8hi, int)
  33329. __v8hi __builtin_arc_vbmulw (__v8hi, int)
  33330. __v8hi __builtin_arc_vbrsubw (__v8hi, int)
  33331. __v8hi __builtin_arc_vbsubw (__v8hi, int)
  33332. The following take one '__v8hi' argument and one 'int' argument which
  33333. must be a 3-bit compile time constant indicating a register number
  33334. I0-I7. They return a '__v8hi' result.
  33335. __v8hi __builtin_arc_vasrw (__v8hi, const int)
  33336. __v8hi __builtin_arc_vsr8 (__v8hi, const int)
  33337. __v8hi __builtin_arc_vsr8aw (__v8hi, const int)
  33338. The following take one '__v8hi' argument and one 'int' argument which
  33339. must be a 6-bit compile time constant. They return a '__v8hi' result.
  33340. __v8hi __builtin_arc_vasrpwbi (__v8hi, const int)
  33341. __v8hi __builtin_arc_vasrrpwbi (__v8hi, const int)
  33342. __v8hi __builtin_arc_vasrrwi (__v8hi, const int)
  33343. __v8hi __builtin_arc_vasrsrwi (__v8hi, const int)
  33344. __v8hi __builtin_arc_vasrwi (__v8hi, const int)
  33345. __v8hi __builtin_arc_vsr8awi (__v8hi, const int)
  33346. __v8hi __builtin_arc_vsr8i (__v8hi, const int)
  33347. The following take one '__v8hi' argument and one 'int' argument which
  33348. must be a 8-bit compile time constant. They return a '__v8hi' result.
  33349. __v8hi __builtin_arc_vd6tapf (__v8hi, const int)
  33350. __v8hi __builtin_arc_vmvaw (__v8hi, const int)
  33351. __v8hi __builtin_arc_vmvw (__v8hi, const int)
  33352. __v8hi __builtin_arc_vmvzw (__v8hi, const int)
  33353. The following take two 'int' arguments, the second of which which must
  33354. be a 8-bit compile time constant. They return a '__v8hi' result:
  33355. __v8hi __builtin_arc_vmovaw (int, const int)
  33356. __v8hi __builtin_arc_vmovw (int, const int)
  33357. __v8hi __builtin_arc_vmovzw (int, const int)
  33358. The following take a single '__v8hi' argument and return a '__v8hi'
  33359. result:
  33360. __v8hi __builtin_arc_vabsaw (__v8hi)
  33361. __v8hi __builtin_arc_vabsw (__v8hi)
  33362. __v8hi __builtin_arc_vaddsuw (__v8hi)
  33363. __v8hi __builtin_arc_vexch1 (__v8hi)
  33364. __v8hi __builtin_arc_vexch2 (__v8hi)
  33365. __v8hi __builtin_arc_vexch4 (__v8hi)
  33366. __v8hi __builtin_arc_vsignw (__v8hi)
  33367. __v8hi __builtin_arc_vupbaw (__v8hi)
  33368. __v8hi __builtin_arc_vupbw (__v8hi)
  33369. __v8hi __builtin_arc_vupsbaw (__v8hi)
  33370. __v8hi __builtin_arc_vupsbw (__v8hi)
  33371. The following take two 'int' arguments and return no result:
  33372. void __builtin_arc_vdirun (int, int)
  33373. void __builtin_arc_vdorun (int, int)
  33374. The following take two 'int' arguments and return no result. The first
  33375. argument must a 3-bit compile time constant indicating one of the
  33376. DR0-DR7 DMA setup channels:
  33377. void __builtin_arc_vdiwr (const int, int)
  33378. void __builtin_arc_vdowr (const int, int)
  33379. The following take an 'int' argument and return no result:
  33380. void __builtin_arc_vendrec (int)
  33381. void __builtin_arc_vrec (int)
  33382. void __builtin_arc_vrecrun (int)
  33383. void __builtin_arc_vrun (int)
  33384. The following take a '__v8hi' argument and two 'int' arguments and
  33385. return a '__v8hi' result. The second argument must be a 3-bit compile
  33386. time constants, indicating one the registers I0-I7, and the third
  33387. argument must be an 8-bit compile time constant.
  33388. _Note:_ Although the equivalent hardware instructions do not take an
  33389. SIMD register as an operand, these builtins overwrite the relevant bits
  33390. of the '__v8hi' register provided as the first argument with the value
  33391. loaded from the '[Ib, u8]' location in the SDM.
  33392. __v8hi __builtin_arc_vld32 (__v8hi, const int, const int)
  33393. __v8hi __builtin_arc_vld32wh (__v8hi, const int, const int)
  33394. __v8hi __builtin_arc_vld32wl (__v8hi, const int, const int)
  33395. __v8hi __builtin_arc_vld64 (__v8hi, const int, const int)
  33396. The following take two 'int' arguments and return a '__v8hi' result.
  33397. The first argument must be a 3-bit compile time constants, indicating
  33398. one the registers I0-I7, and the second argument must be an 8-bit
  33399. compile time constant.
  33400. __v8hi __builtin_arc_vld128 (const int, const int)
  33401. __v8hi __builtin_arc_vld64w (const int, const int)
  33402. The following take a '__v8hi' argument and two 'int' arguments and
  33403. return no result. The second argument must be a 3-bit compile time
  33404. constants, indicating one the registers I0-I7, and the third argument
  33405. must be an 8-bit compile time constant.
  33406. void __builtin_arc_vst128 (__v8hi, const int, const int)
  33407. void __builtin_arc_vst64 (__v8hi, const int, const int)
  33408. The following take a '__v8hi' argument and three 'int' arguments and
  33409. return no result. The second argument must be a 3-bit compile-time
  33410. constant, identifying the 16-bit sub-register to be stored, the third
  33411. argument must be a 3-bit compile time constants, indicating one the
  33412. registers I0-I7, and the fourth argument must be an 8-bit compile time
  33413. constant.
  33414. void __builtin_arc_vst16_n (__v8hi, const int, const int, const int)
  33415. void __builtin_arc_vst32_n (__v8hi, const int, const int, const int)
  33416. 
  33417. File: gcc.info, Node: ARM iWMMXt Built-in Functions, Next: ARM C Language Extensions (ACLE), Prev: ARC SIMD Built-in Functions, Up: Target Builtins
  33418. 6.59.6 ARM iWMMXt Built-in Functions
  33419. ------------------------------------
  33420. These built-in functions are available for the ARM family of processors
  33421. when the '-mcpu=iwmmxt' switch is used:
  33422. typedef int v2si __attribute__ ((vector_size (8)));
  33423. typedef short v4hi __attribute__ ((vector_size (8)));
  33424. typedef char v8qi __attribute__ ((vector_size (8)));
  33425. int __builtin_arm_getwcgr0 (void)
  33426. void __builtin_arm_setwcgr0 (int)
  33427. int __builtin_arm_getwcgr1 (void)
  33428. void __builtin_arm_setwcgr1 (int)
  33429. int __builtin_arm_getwcgr2 (void)
  33430. void __builtin_arm_setwcgr2 (int)
  33431. int __builtin_arm_getwcgr3 (void)
  33432. void __builtin_arm_setwcgr3 (int)
  33433. int __builtin_arm_textrmsb (v8qi, int)
  33434. int __builtin_arm_textrmsh (v4hi, int)
  33435. int __builtin_arm_textrmsw (v2si, int)
  33436. int __builtin_arm_textrmub (v8qi, int)
  33437. int __builtin_arm_textrmuh (v4hi, int)
  33438. int __builtin_arm_textrmuw (v2si, int)
  33439. v8qi __builtin_arm_tinsrb (v8qi, int, int)
  33440. v4hi __builtin_arm_tinsrh (v4hi, int, int)
  33441. v2si __builtin_arm_tinsrw (v2si, int, int)
  33442. long long __builtin_arm_tmia (long long, int, int)
  33443. long long __builtin_arm_tmiabb (long long, int, int)
  33444. long long __builtin_arm_tmiabt (long long, int, int)
  33445. long long __builtin_arm_tmiaph (long long, int, int)
  33446. long long __builtin_arm_tmiatb (long long, int, int)
  33447. long long __builtin_arm_tmiatt (long long, int, int)
  33448. int __builtin_arm_tmovmskb (v8qi)
  33449. int __builtin_arm_tmovmskh (v4hi)
  33450. int __builtin_arm_tmovmskw (v2si)
  33451. long long __builtin_arm_waccb (v8qi)
  33452. long long __builtin_arm_wacch (v4hi)
  33453. long long __builtin_arm_waccw (v2si)
  33454. v8qi __builtin_arm_waddb (v8qi, v8qi)
  33455. v8qi __builtin_arm_waddbss (v8qi, v8qi)
  33456. v8qi __builtin_arm_waddbus (v8qi, v8qi)
  33457. v4hi __builtin_arm_waddh (v4hi, v4hi)
  33458. v4hi __builtin_arm_waddhss (v4hi, v4hi)
  33459. v4hi __builtin_arm_waddhus (v4hi, v4hi)
  33460. v2si __builtin_arm_waddw (v2si, v2si)
  33461. v2si __builtin_arm_waddwss (v2si, v2si)
  33462. v2si __builtin_arm_waddwus (v2si, v2si)
  33463. v8qi __builtin_arm_walign (v8qi, v8qi, int)
  33464. long long __builtin_arm_wand(long long, long long)
  33465. long long __builtin_arm_wandn (long long, long long)
  33466. v8qi __builtin_arm_wavg2b (v8qi, v8qi)
  33467. v8qi __builtin_arm_wavg2br (v8qi, v8qi)
  33468. v4hi __builtin_arm_wavg2h (v4hi, v4hi)
  33469. v4hi __builtin_arm_wavg2hr (v4hi, v4hi)
  33470. v8qi __builtin_arm_wcmpeqb (v8qi, v8qi)
  33471. v4hi __builtin_arm_wcmpeqh (v4hi, v4hi)
  33472. v2si __builtin_arm_wcmpeqw (v2si, v2si)
  33473. v8qi __builtin_arm_wcmpgtsb (v8qi, v8qi)
  33474. v4hi __builtin_arm_wcmpgtsh (v4hi, v4hi)
  33475. v2si __builtin_arm_wcmpgtsw (v2si, v2si)
  33476. v8qi __builtin_arm_wcmpgtub (v8qi, v8qi)
  33477. v4hi __builtin_arm_wcmpgtuh (v4hi, v4hi)
  33478. v2si __builtin_arm_wcmpgtuw (v2si, v2si)
  33479. long long __builtin_arm_wmacs (long long, v4hi, v4hi)
  33480. long long __builtin_arm_wmacsz (v4hi, v4hi)
  33481. long long __builtin_arm_wmacu (long long, v4hi, v4hi)
  33482. long long __builtin_arm_wmacuz (v4hi, v4hi)
  33483. v4hi __builtin_arm_wmadds (v4hi, v4hi)
  33484. v4hi __builtin_arm_wmaddu (v4hi, v4hi)
  33485. v8qi __builtin_arm_wmaxsb (v8qi, v8qi)
  33486. v4hi __builtin_arm_wmaxsh (v4hi, v4hi)
  33487. v2si __builtin_arm_wmaxsw (v2si, v2si)
  33488. v8qi __builtin_arm_wmaxub (v8qi, v8qi)
  33489. v4hi __builtin_arm_wmaxuh (v4hi, v4hi)
  33490. v2si __builtin_arm_wmaxuw (v2si, v2si)
  33491. v8qi __builtin_arm_wminsb (v8qi, v8qi)
  33492. v4hi __builtin_arm_wminsh (v4hi, v4hi)
  33493. v2si __builtin_arm_wminsw (v2si, v2si)
  33494. v8qi __builtin_arm_wminub (v8qi, v8qi)
  33495. v4hi __builtin_arm_wminuh (v4hi, v4hi)
  33496. v2si __builtin_arm_wminuw (v2si, v2si)
  33497. v4hi __builtin_arm_wmulsm (v4hi, v4hi)
  33498. v4hi __builtin_arm_wmulul (v4hi, v4hi)
  33499. v4hi __builtin_arm_wmulum (v4hi, v4hi)
  33500. long long __builtin_arm_wor (long long, long long)
  33501. v2si __builtin_arm_wpackdss (long long, long long)
  33502. v2si __builtin_arm_wpackdus (long long, long long)
  33503. v8qi __builtin_arm_wpackhss (v4hi, v4hi)
  33504. v8qi __builtin_arm_wpackhus (v4hi, v4hi)
  33505. v4hi __builtin_arm_wpackwss (v2si, v2si)
  33506. v4hi __builtin_arm_wpackwus (v2si, v2si)
  33507. long long __builtin_arm_wrord (long long, long long)
  33508. long long __builtin_arm_wrordi (long long, int)
  33509. v4hi __builtin_arm_wrorh (v4hi, long long)
  33510. v4hi __builtin_arm_wrorhi (v4hi, int)
  33511. v2si __builtin_arm_wrorw (v2si, long long)
  33512. v2si __builtin_arm_wrorwi (v2si, int)
  33513. v2si __builtin_arm_wsadb (v2si, v8qi, v8qi)
  33514. v2si __builtin_arm_wsadbz (v8qi, v8qi)
  33515. v2si __builtin_arm_wsadh (v2si, v4hi, v4hi)
  33516. v2si __builtin_arm_wsadhz (v4hi, v4hi)
  33517. v4hi __builtin_arm_wshufh (v4hi, int)
  33518. long long __builtin_arm_wslld (long long, long long)
  33519. long long __builtin_arm_wslldi (long long, int)
  33520. v4hi __builtin_arm_wsllh (v4hi, long long)
  33521. v4hi __builtin_arm_wsllhi (v4hi, int)
  33522. v2si __builtin_arm_wsllw (v2si, long long)
  33523. v2si __builtin_arm_wsllwi (v2si, int)
  33524. long long __builtin_arm_wsrad (long long, long long)
  33525. long long __builtin_arm_wsradi (long long, int)
  33526. v4hi __builtin_arm_wsrah (v4hi, long long)
  33527. v4hi __builtin_arm_wsrahi (v4hi, int)
  33528. v2si __builtin_arm_wsraw (v2si, long long)
  33529. v2si __builtin_arm_wsrawi (v2si, int)
  33530. long long __builtin_arm_wsrld (long long, long long)
  33531. long long __builtin_arm_wsrldi (long long, int)
  33532. v4hi __builtin_arm_wsrlh (v4hi, long long)
  33533. v4hi __builtin_arm_wsrlhi (v4hi, int)
  33534. v2si __builtin_arm_wsrlw (v2si, long long)
  33535. v2si __builtin_arm_wsrlwi (v2si, int)
  33536. v8qi __builtin_arm_wsubb (v8qi, v8qi)
  33537. v8qi __builtin_arm_wsubbss (v8qi, v8qi)
  33538. v8qi __builtin_arm_wsubbus (v8qi, v8qi)
  33539. v4hi __builtin_arm_wsubh (v4hi, v4hi)
  33540. v4hi __builtin_arm_wsubhss (v4hi, v4hi)
  33541. v4hi __builtin_arm_wsubhus (v4hi, v4hi)
  33542. v2si __builtin_arm_wsubw (v2si, v2si)
  33543. v2si __builtin_arm_wsubwss (v2si, v2si)
  33544. v2si __builtin_arm_wsubwus (v2si, v2si)
  33545. v4hi __builtin_arm_wunpckehsb (v8qi)
  33546. v2si __builtin_arm_wunpckehsh (v4hi)
  33547. long long __builtin_arm_wunpckehsw (v2si)
  33548. v4hi __builtin_arm_wunpckehub (v8qi)
  33549. v2si __builtin_arm_wunpckehuh (v4hi)
  33550. long long __builtin_arm_wunpckehuw (v2si)
  33551. v4hi __builtin_arm_wunpckelsb (v8qi)
  33552. v2si __builtin_arm_wunpckelsh (v4hi)
  33553. long long __builtin_arm_wunpckelsw (v2si)
  33554. v4hi __builtin_arm_wunpckelub (v8qi)
  33555. v2si __builtin_arm_wunpckeluh (v4hi)
  33556. long long __builtin_arm_wunpckeluw (v2si)
  33557. v8qi __builtin_arm_wunpckihb (v8qi, v8qi)
  33558. v4hi __builtin_arm_wunpckihh (v4hi, v4hi)
  33559. v2si __builtin_arm_wunpckihw (v2si, v2si)
  33560. v8qi __builtin_arm_wunpckilb (v8qi, v8qi)
  33561. v4hi __builtin_arm_wunpckilh (v4hi, v4hi)
  33562. v2si __builtin_arm_wunpckilw (v2si, v2si)
  33563. long long __builtin_arm_wxor (long long, long long)
  33564. long long __builtin_arm_wzero ()
  33565. 
  33566. 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
  33567. 6.59.7 ARM C Language Extensions (ACLE)
  33568. ---------------------------------------
  33569. GCC implements extensions for C as described in the ARM C Language
  33570. Extensions (ACLE) specification, which can be found at
  33571. <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053c/IHI0053C_acle_2_0.pdf>.
  33572. As a part of ACLE, GCC implements extensions for Advanced SIMD as
  33573. described in the ARM C Language Extensions Specification. The complete
  33574. list of Advanced SIMD intrinsics can be found at
  33575. <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0073a/IHI0073A_arm_neon_intrinsics_ref.pdf>.
  33576. The built-in intrinsics for the Advanced SIMD extension are available
  33577. when NEON is enabled.
  33578. Currently, ARM and AArch64 back ends do not support ACLE 2.0 fully.
  33579. Both back ends support CRC32 intrinsics and the ARM back end supports
  33580. the Coprocessor intrinsics, all from 'arm_acle.h'. The ARM back end's
  33581. 16-bit floating-point Advanced SIMD intrinsics currently comply to ACLE
  33582. v1.1. AArch64's back end does not have support for 16-bit floating
  33583. point Advanced SIMD intrinsics yet.
  33584. See *note ARM Options:: and *note AArch64 Options:: for more
  33585. information on the availability of extensions.
  33586. 
  33587. 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
  33588. 6.59.8 ARM Floating Point Status and Control Intrinsics
  33589. -------------------------------------------------------
  33590. These built-in functions are available for the ARM family of processors
  33591. with floating-point unit.
  33592. unsigned int __builtin_arm_get_fpscr ()
  33593. void __builtin_arm_set_fpscr (unsigned int)
  33594. 
  33595. 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
  33596. 6.59.9 ARM ARMv8-M Security Extensions
  33597. --------------------------------------
  33598. GCC implements the ARMv8-M Security Extensions as described in the
  33599. ARMv8-M Security Extensions: Requirements on Development Tools
  33600. Engineering Specification, which can be found at
  33601. <http://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf>.
  33602. As part of the Security Extensions GCC implements two new function
  33603. attributes: 'cmse_nonsecure_entry' and 'cmse_nonsecure_call'.
  33604. As part of the Security Extensions GCC implements the intrinsics below.
  33605. FPTR is used here to mean any function pointer type.
  33606. cmse_address_info_t cmse_TT (void *)
  33607. cmse_address_info_t cmse_TT_fptr (FPTR)
  33608. cmse_address_info_t cmse_TTT (void *)
  33609. cmse_address_info_t cmse_TTT_fptr (FPTR)
  33610. cmse_address_info_t cmse_TTA (void *)
  33611. cmse_address_info_t cmse_TTA_fptr (FPTR)
  33612. cmse_address_info_t cmse_TTAT (void *)
  33613. cmse_address_info_t cmse_TTAT_fptr (FPTR)
  33614. void * cmse_check_address_range (void *, size_t, int)
  33615. typeof(p) cmse_nsfptr_create (FPTR p)
  33616. intptr_t cmse_is_nsfptr (FPTR)
  33617. int cmse_nonsecure_caller (void)
  33618. 
  33619. File: gcc.info, Node: AVR Built-in Functions, Next: Blackfin Built-in Functions, Prev: ARM ARMv8-M Security Extensions, Up: Target Builtins
  33620. 6.59.10 AVR Built-in Functions
  33621. ------------------------------
  33622. For each built-in function for AVR, there is an equally named, uppercase
  33623. built-in macro defined. That way users can easily query if or if not a
  33624. specific built-in is implemented or not. For example, if
  33625. '__builtin_avr_nop' is available the macro '__BUILTIN_AVR_NOP' is
  33626. defined to '1' and undefined otherwise.
  33627. 'void __builtin_avr_nop (void)'
  33628. 'void __builtin_avr_sei (void)'
  33629. 'void __builtin_avr_cli (void)'
  33630. 'void __builtin_avr_sleep (void)'
  33631. 'void __builtin_avr_wdr (void)'
  33632. 'unsigned char __builtin_avr_swap (unsigned char)'
  33633. 'unsigned int __builtin_avr_fmul (unsigned char, unsigned char)'
  33634. 'int __builtin_avr_fmuls (char, char)'
  33635. 'int __builtin_avr_fmulsu (char, unsigned char)'
  33636. These built-in functions map to the respective machine instruction,
  33637. i.e. 'nop', 'sei', 'cli', 'sleep', 'wdr', 'swap', 'fmul', 'fmuls'
  33638. resp. 'fmulsu'. The three 'fmul*' built-ins are implemented as
  33639. library call if no hardware multiplier is available.
  33640. 'void __builtin_avr_delay_cycles (unsigned long ticks)'
  33641. Delay execution for TICKS cycles. Note that this built-in does not
  33642. take into account the effect of interrupts that might increase
  33643. delay time. TICKS must be a compile-time integer constant; delays
  33644. with a variable number of cycles are not supported.
  33645. 'char __builtin_avr_flash_segment (const __memx void*)'
  33646. This built-in takes a byte address to the 24-bit *note address
  33647. space: AVR Named Address Spaces. '__memx' and returns the number of
  33648. the flash segment (the 64 KiB chunk) where the address points to.
  33649. Counting starts at '0'. If the address does not point to flash
  33650. memory, return '-1'.
  33651. 'uint8_t __builtin_avr_insert_bits (uint32_t map, uint8_t bits, uint8_t val)'
  33652. Insert bits from BITS into VAL and return the resulting value. The
  33653. nibbles of MAP determine how the insertion is performed: Let X be
  33654. the N-th nibble of MAP
  33655. 1. If X is '0xf', then the N-th bit of VAL is returned unaltered.
  33656. 2. If X is in the range 0...7, then the N-th result bit is set to
  33657. the X-th bit of BITS
  33658. 3. If X is in the range 8...'0xe', then the N-th result bit is
  33659. undefined.
  33660. One typical use case for this built-in is adjusting input and
  33661. output values to non-contiguous port layouts. Some examples:
  33662. // same as val, bits is unused
  33663. __builtin_avr_insert_bits (0xffffffff, bits, val)
  33664. // same as bits, val is unused
  33665. __builtin_avr_insert_bits (0x76543210, bits, val)
  33666. // same as rotating bits by 4
  33667. __builtin_avr_insert_bits (0x32107654, bits, 0)
  33668. // high nibble of result is the high nibble of val
  33669. // low nibble of result is the low nibble of bits
  33670. __builtin_avr_insert_bits (0xffff3210, bits, val)
  33671. // reverse the bit order of bits
  33672. __builtin_avr_insert_bits (0x01234567, bits, 0)
  33673. 'void __builtin_avr_nops (unsigned count)'
  33674. Insert COUNT 'NOP' instructions. The number of instructions must
  33675. be a compile-time integer constant.
  33676. There are many more AVR-specific built-in functions that are used to
  33677. implement the ISO/IEC TR 18037 "Embedded C" fixed-point functions of
  33678. section 7.18a.6. You don't need to use these built-ins directly.
  33679. Instead, use the declarations as supplied by the 'stdfix.h' header with
  33680. GNU-C99:
  33681. #include <stdfix.h>
  33682. // Re-interpret the bit representation of unsigned 16-bit
  33683. // integer UVAL as Q-format 0.16 value.
  33684. unsigned fract get_bits (uint_ur_t uval)
  33685. {
  33686. return urbits (uval);
  33687. }
  33688. 
  33689. File: gcc.info, Node: Blackfin Built-in Functions, Next: FR-V Built-in Functions, Prev: AVR Built-in Functions, Up: Target Builtins
  33690. 6.59.11 Blackfin Built-in Functions
  33691. -----------------------------------
  33692. Currently, there are two Blackfin-specific built-in functions. These
  33693. are used for generating 'CSYNC' and 'SSYNC' machine insns without using
  33694. inline assembly; by using these built-in functions the compiler can
  33695. automatically add workarounds for hardware errata involving these
  33696. instructions. These functions are named as follows:
  33697. void __builtin_bfin_csync (void)
  33698. void __builtin_bfin_ssync (void)
  33699. 
  33700. File: gcc.info, Node: FR-V Built-in Functions, Next: MIPS DSP Built-in Functions, Prev: Blackfin Built-in Functions, Up: Target Builtins
  33701. 6.59.12 FR-V Built-in Functions
  33702. -------------------------------
  33703. GCC provides many FR-V-specific built-in functions. In general, these
  33704. functions are intended to be compatible with those described by 'FR-V
  33705. Family, Softune C/C++ Compiler Manual (V6), Fujitsu Semiconductor'. The
  33706. two exceptions are '__MDUNPACKH' and '__MBTOHE', the GCC forms of which
  33707. pass 128-bit values by pointer rather than by value.
  33708. Most of the functions are named after specific FR-V instructions. Such
  33709. functions are said to be "directly mapped" and are summarized here in
  33710. tabular form.
  33711. * Menu:
  33712. * Argument Types::
  33713. * Directly-mapped Integer Functions::
  33714. * Directly-mapped Media Functions::
  33715. * Raw read/write Functions::
  33716. * Other Built-in Functions::
  33717. 
  33718. File: gcc.info, Node: Argument Types, Next: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  33719. 6.59.12.1 Argument Types
  33720. ........................
  33721. The arguments to the built-in functions can be divided into three
  33722. groups: register numbers, compile-time constants and run-time values.
  33723. In order to make this classification clear at a glance, the arguments
  33724. and return values are given the following pseudo types:
  33725. Pseudo type Real C type Constant? Description
  33726. 'uh' 'unsigned short' No an unsigned halfword
  33727. 'uw1' 'unsigned int' No an unsigned word
  33728. 'sw1' 'int' No a signed word
  33729. 'uw2' 'unsigned long long' No an unsigned doubleword
  33730. 'sw2' 'long long' No a signed doubleword
  33731. 'const' 'int' Yes an integer constant
  33732. 'acc' 'int' Yes an ACC register number
  33733. 'iacc' 'int' Yes an IACC register number
  33734. These pseudo types are not defined by GCC, they are simply a notational
  33735. convenience used in this manual.
  33736. Arguments of type 'uh', 'uw1', 'sw1', 'uw2' and 'sw2' are evaluated at
  33737. run time. They correspond to register operands in the underlying FR-V
  33738. instructions.
  33739. 'const' arguments represent immediate operands in the underlying FR-V
  33740. instructions. They must be compile-time constants.
  33741. 'acc' arguments are evaluated at compile time and specify the number of
  33742. an accumulator register. For example, an 'acc' argument of 2 selects
  33743. the ACC2 register.
  33744. 'iacc' arguments are similar to 'acc' arguments but specify the number
  33745. of an IACC register. See *note Other Built-in Functions:: for more
  33746. details.
  33747. 
  33748. File: gcc.info, Node: Directly-mapped Integer Functions, Next: Directly-mapped Media Functions, Prev: Argument Types, Up: FR-V Built-in Functions
  33749. 6.59.12.2 Directly-Mapped Integer Functions
  33750. ...........................................
  33751. The functions listed below map directly to FR-V I-type instructions.
  33752. Function prototype Example usage Assembly output
  33753. 'sw1 __ADDSS (sw1, sw1)' 'C = __ADDSS (A, B)' 'ADDSS A,B,C'
  33754. 'sw1 __SCAN (sw1, sw1)' 'C = __SCAN (A, B)' 'SCAN A,B,C'
  33755. 'sw1 __SCUTSS (sw1)' 'B = __SCUTSS (A)' 'SCUTSS A,B'
  33756. 'sw1 __SLASS (sw1, sw1)' 'C = __SLASS (A, B)' 'SLASS A,B,C'
  33757. 'void __SMASS (sw1, sw1)' '__SMASS (A, B)' 'SMASS A,B'
  33758. 'void __SMSSS (sw1, sw1)' '__SMSSS (A, B)' 'SMSSS A,B'
  33759. 'void __SMU (sw1, sw1)' '__SMU (A, B)' 'SMU A,B'
  33760. 'sw2 __SMUL (sw1, sw1)' 'C = __SMUL (A, B)' 'SMUL A,B,C'
  33761. 'sw1 __SUBSS (sw1, sw1)' 'C = __SUBSS (A, B)' 'SUBSS A,B,C'
  33762. 'uw2 __UMUL (uw1, uw1)' 'C = __UMUL (A, B)' 'UMUL A,B,C'
  33763. 
  33764. File: gcc.info, Node: Directly-mapped Media Functions, Next: Raw read/write Functions, Prev: Directly-mapped Integer Functions, Up: FR-V Built-in Functions
  33765. 6.59.12.3 Directly-Mapped Media Functions
  33766. .........................................
  33767. The functions listed below map directly to FR-V M-type instructions.
  33768. Function prototype Example usage Assembly output
  33769. 'uw1 __MABSHS (sw1)' 'B = __MABSHS (A)' 'MABSHS A,B'
  33770. 'void __MADDACCS (acc, acc)' '__MADDACCS (B, A)' 'MADDACCS A,B'
  33771. 'sw1 __MADDHSS (sw1, sw1)' 'C = __MADDHSS (A, 'MADDHSS A,B,C'
  33772. B)'
  33773. 'uw1 __MADDHUS (uw1, uw1)' 'C = __MADDHUS (A, 'MADDHUS A,B,C'
  33774. B)'
  33775. 'uw1 __MAND (uw1, uw1)' 'C = __MAND (A, B)' 'MAND A,B,C'
  33776. 'void __MASACCS (acc, acc)' '__MASACCS (B, A)' 'MASACCS A,B'
  33777. 'uw1 __MAVEH (uw1, uw1)' 'C = __MAVEH (A, B)' 'MAVEH A,B,C'
  33778. 'uw2 __MBTOH (uw1)' 'B = __MBTOH (A)' 'MBTOH A,B'
  33779. 'void __MBTOHE (uw1 *, uw1)' '__MBTOHE (&B, A)' 'MBTOHE A,B'
  33780. 'void __MCLRACC (acc)' '__MCLRACC (A)' 'MCLRACC A'
  33781. 'void __MCLRACCA (void)' '__MCLRACCA ()' 'MCLRACCA'
  33782. 'uw1 __Mcop1 (uw1, uw1)' 'C = __Mcop1 (A, B)' 'Mcop1 A,B,C'
  33783. 'uw1 __Mcop2 (uw1, uw1)' 'C = __Mcop2 (A, B)' 'Mcop2 A,B,C'
  33784. 'uw1 __MCPLHI (uw2, const)' 'C = __MCPLHI (A, B)' 'MCPLHI A,#B,C'
  33785. 'uw1 __MCPLI (uw2, const)' 'C = __MCPLI (A, B)' 'MCPLI A,#B,C'
  33786. 'void __MCPXIS (acc, sw1, '__MCPXIS (C, A, B)' 'MCPXIS A,B,C'
  33787. sw1)'
  33788. 'void __MCPXIU (acc, uw1, '__MCPXIU (C, A, B)' 'MCPXIU A,B,C'
  33789. uw1)'
  33790. 'void __MCPXRS (acc, sw1, '__MCPXRS (C, A, B)' 'MCPXRS A,B,C'
  33791. sw1)'
  33792. 'void __MCPXRU (acc, uw1, '__MCPXRU (C, A, B)' 'MCPXRU A,B,C'
  33793. uw1)'
  33794. 'uw1 __MCUT (acc, uw1)' 'C = __MCUT (A, B)' 'MCUT A,B,C'
  33795. 'uw1 __MCUTSS (acc, sw1)' 'C = __MCUTSS (A, B)' 'MCUTSS A,B,C'
  33796. 'void __MDADDACCS (acc, acc)' '__MDADDACCS (B, A)' 'MDADDACCS A,B'
  33797. 'void __MDASACCS (acc, acc)' '__MDASACCS (B, A)' 'MDASACCS A,B'
  33798. 'uw2 __MDCUTSSI (acc, const)' 'C = __MDCUTSSI (A, 'MDCUTSSI
  33799. B)' A,#B,C'
  33800. 'uw2 __MDPACKH (uw2, uw2)' 'C = __MDPACKH (A, 'MDPACKH A,B,C'
  33801. B)'
  33802. 'uw2 __MDROTLI (uw2, const)' 'C = __MDROTLI (A, 'MDROTLI
  33803. B)' A,#B,C'
  33804. 'void __MDSUBACCS (acc, acc)' '__MDSUBACCS (B, A)' 'MDSUBACCS A,B'
  33805. 'void __MDUNPACKH (uw1 *, '__MDUNPACKH (&B, A)' 'MDUNPACKH A,B'
  33806. uw2)'
  33807. 'uw2 __MEXPDHD (uw1, const)' 'C = __MEXPDHD (A, 'MEXPDHD
  33808. B)' A,#B,C'
  33809. 'uw1 __MEXPDHW (uw1, const)' 'C = __MEXPDHW (A, 'MEXPDHW
  33810. B)' A,#B,C'
  33811. 'uw1 __MHDSETH (uw1, const)' 'C = __MHDSETH (A, 'MHDSETH
  33812. B)' A,#B,C'
  33813. 'sw1 __MHDSETS (const)' 'B = __MHDSETS (A)' 'MHDSETS #A,B'
  33814. 'uw1 __MHSETHIH (uw1, const)' 'B = __MHSETHIH (B, 'MHSETHIH #A,B'
  33815. A)'
  33816. 'sw1 __MHSETHIS (sw1, const)' 'B = __MHSETHIS (B, 'MHSETHIS #A,B'
  33817. A)'
  33818. 'uw1 __MHSETLOH (uw1, const)' 'B = __MHSETLOH (B, 'MHSETLOH #A,B'
  33819. A)'
  33820. 'sw1 __MHSETLOS (sw1, const)' 'B = __MHSETLOS (B, 'MHSETLOS #A,B'
  33821. A)'
  33822. 'uw1 __MHTOB (uw2)' 'B = __MHTOB (A)' 'MHTOB A,B'
  33823. 'void __MMACHS (acc, sw1, '__MMACHS (C, A, B)' 'MMACHS A,B,C'
  33824. sw1)'
  33825. 'void __MMACHU (acc, uw1, '__MMACHU (C, A, B)' 'MMACHU A,B,C'
  33826. uw1)'
  33827. 'void __MMRDHS (acc, sw1, '__MMRDHS (C, A, B)' 'MMRDHS A,B,C'
  33828. sw1)'
  33829. 'void __MMRDHU (acc, uw1, '__MMRDHU (C, A, B)' 'MMRDHU A,B,C'
  33830. uw1)'
  33831. 'void __MMULHS (acc, sw1, '__MMULHS (C, A, B)' 'MMULHS A,B,C'
  33832. sw1)'
  33833. 'void __MMULHU (acc, uw1, '__MMULHU (C, A, B)' 'MMULHU A,B,C'
  33834. uw1)'
  33835. 'void __MMULXHS (acc, sw1, '__MMULXHS (C, A, B)' 'MMULXHS A,B,C'
  33836. sw1)'
  33837. 'void __MMULXHU (acc, uw1, '__MMULXHU (C, A, B)' 'MMULXHU A,B,C'
  33838. uw1)'
  33839. 'uw1 __MNOT (uw1)' 'B = __MNOT (A)' 'MNOT A,B'
  33840. 'uw1 __MOR (uw1, uw1)' 'C = __MOR (A, B)' 'MOR A,B,C'
  33841. 'uw1 __MPACKH (uh, uh)' 'C = __MPACKH (A, B)' 'MPACKH A,B,C'
  33842. 'sw2 __MQADDHSS (sw2, sw2)' 'C = __MQADDHSS (A, 'MQADDHSS
  33843. B)' A,B,C'
  33844. 'uw2 __MQADDHUS (uw2, uw2)' 'C = __MQADDHUS (A, 'MQADDHUS
  33845. B)' A,B,C'
  33846. 'void __MQCPXIS (acc, sw2, '__MQCPXIS (C, A, B)' 'MQCPXIS A,B,C'
  33847. sw2)'
  33848. 'void __MQCPXIU (acc, uw2, '__MQCPXIU (C, A, B)' 'MQCPXIU A,B,C'
  33849. uw2)'
  33850. 'void __MQCPXRS (acc, sw2, '__MQCPXRS (C, A, B)' 'MQCPXRS A,B,C'
  33851. sw2)'
  33852. 'void __MQCPXRU (acc, uw2, '__MQCPXRU (C, A, B)' 'MQCPXRU A,B,C'
  33853. uw2)'
  33854. 'sw2 __MQLCLRHS (sw2, sw2)' 'C = __MQLCLRHS (A, 'MQLCLRHS
  33855. B)' A,B,C'
  33856. 'sw2 __MQLMTHS (sw2, sw2)' 'C = __MQLMTHS (A, 'MQLMTHS A,B,C'
  33857. B)'
  33858. 'void __MQMACHS (acc, sw2, '__MQMACHS (C, A, B)' 'MQMACHS A,B,C'
  33859. sw2)'
  33860. 'void __MQMACHU (acc, uw2, '__MQMACHU (C, A, B)' 'MQMACHU A,B,C'
  33861. uw2)'
  33862. 'void __MQMACXHS (acc, sw2, '__MQMACXHS (C, A, 'MQMACXHS
  33863. sw2)' B)' A,B,C'
  33864. 'void __MQMULHS (acc, sw2, '__MQMULHS (C, A, B)' 'MQMULHS A,B,C'
  33865. sw2)'
  33866. 'void __MQMULHU (acc, uw2, '__MQMULHU (C, A, B)' 'MQMULHU A,B,C'
  33867. uw2)'
  33868. 'void __MQMULXHS (acc, sw2, '__MQMULXHS (C, A, 'MQMULXHS
  33869. sw2)' B)' A,B,C'
  33870. 'void __MQMULXHU (acc, uw2, '__MQMULXHU (C, A, 'MQMULXHU
  33871. uw2)' B)' A,B,C'
  33872. 'sw2 __MQSATHS (sw2, sw2)' 'C = __MQSATHS (A, 'MQSATHS A,B,C'
  33873. B)'
  33874. 'uw2 __MQSLLHI (uw2, int)' 'C = __MQSLLHI (A, 'MQSLLHI A,B,C'
  33875. B)'
  33876. 'sw2 __MQSRAHI (sw2, int)' 'C = __MQSRAHI (A, 'MQSRAHI A,B,C'
  33877. B)'
  33878. 'sw2 __MQSUBHSS (sw2, sw2)' 'C = __MQSUBHSS (A, 'MQSUBHSS
  33879. B)' A,B,C'
  33880. 'uw2 __MQSUBHUS (uw2, uw2)' 'C = __MQSUBHUS (A, 'MQSUBHUS
  33881. B)' A,B,C'
  33882. 'void __MQXMACHS (acc, sw2, '__MQXMACHS (C, A, 'MQXMACHS
  33883. sw2)' B)' A,B,C'
  33884. 'void __MQXMACXHS (acc, sw2, '__MQXMACXHS (C, A, 'MQXMACXHS
  33885. sw2)' B)' A,B,C'
  33886. 'uw1 __MRDACC (acc)' 'B = __MRDACC (A)' 'MRDACC A,B'
  33887. 'uw1 __MRDACCG (acc)' 'B = __MRDACCG (A)' 'MRDACCG A,B'
  33888. 'uw1 __MROTLI (uw1, const)' 'C = __MROTLI (A, B)' 'MROTLI A,#B,C'
  33889. 'uw1 __MROTRI (uw1, const)' 'C = __MROTRI (A, B)' 'MROTRI A,#B,C'
  33890. 'sw1 __MSATHS (sw1, sw1)' 'C = __MSATHS (A, B)' 'MSATHS A,B,C'
  33891. 'uw1 __MSATHU (uw1, uw1)' 'C = __MSATHU (A, B)' 'MSATHU A,B,C'
  33892. 'uw1 __MSLLHI (uw1, const)' 'C = __MSLLHI (A, B)' 'MSLLHI A,#B,C'
  33893. 'sw1 __MSRAHI (sw1, const)' 'C = __MSRAHI (A, B)' 'MSRAHI A,#B,C'
  33894. 'uw1 __MSRLHI (uw1, const)' 'C = __MSRLHI (A, B)' 'MSRLHI A,#B,C'
  33895. 'void __MSUBACCS (acc, acc)' '__MSUBACCS (B, A)' 'MSUBACCS A,B'
  33896. 'sw1 __MSUBHSS (sw1, sw1)' 'C = __MSUBHSS (A, 'MSUBHSS A,B,C'
  33897. B)'
  33898. 'uw1 __MSUBHUS (uw1, uw1)' 'C = __MSUBHUS (A, 'MSUBHUS A,B,C'
  33899. B)'
  33900. 'void __MTRAP (void)' '__MTRAP ()' 'MTRAP'
  33901. 'uw2 __MUNPACKH (uw1)' 'B = __MUNPACKH (A)' 'MUNPACKH A,B'
  33902. 'uw1 __MWCUT (uw2, uw1)' 'C = __MWCUT (A, B)' 'MWCUT A,B,C'
  33903. 'void __MWTACC (acc, uw1)' '__MWTACC (B, A)' 'MWTACC A,B'
  33904. 'void __MWTACCG (acc, uw1)' '__MWTACCG (B, A)' 'MWTACCG A,B'
  33905. 'uw1 __MXOR (uw1, uw1)' 'C = __MXOR (A, B)' 'MXOR A,B,C'
  33906. 
  33907. File: gcc.info, Node: Raw read/write Functions, Next: Other Built-in Functions, Prev: Directly-mapped Media Functions, Up: FR-V Built-in Functions
  33908. 6.59.12.4 Raw Read/Write Functions
  33909. ..................................
  33910. This sections describes built-in functions related to read and write
  33911. instructions to access memory. These functions generate 'membar'
  33912. instructions to flush the I/O load and stores where appropriate, as
  33913. described in Fujitsu's manual described above.
  33914. 'unsigned char __builtin_read8 (void *DATA)'
  33915. 'unsigned short __builtin_read16 (void *DATA)'
  33916. 'unsigned long __builtin_read32 (void *DATA)'
  33917. 'unsigned long long __builtin_read64 (void *DATA)'
  33918. 'void __builtin_write8 (void *DATA, unsigned char DATUM)'
  33919. 'void __builtin_write16 (void *DATA, unsigned short DATUM)'
  33920. 'void __builtin_write32 (void *DATA, unsigned long DATUM)'
  33921. 'void __builtin_write64 (void *DATA, unsigned long long DATUM)'
  33922. 
  33923. File: gcc.info, Node: Other Built-in Functions, Prev: Raw read/write Functions, Up: FR-V Built-in Functions
  33924. 6.59.12.5 Other Built-in Functions
  33925. ..................................
  33926. This section describes built-in functions that are not named after a
  33927. specific FR-V instruction.
  33928. 'sw2 __IACCreadll (iacc REG)'
  33929. Return the full 64-bit value of IACC0. The REG argument is
  33930. reserved for future expansion and must be 0.
  33931. 'sw1 __IACCreadl (iacc REG)'
  33932. Return the value of IACC0H if REG is 0 and IACC0L if REG is 1.
  33933. Other values of REG are rejected as invalid.
  33934. 'void __IACCsetll (iacc REG, sw2 X)'
  33935. Set the full 64-bit value of IACC0 to X. The REG argument is
  33936. reserved for future expansion and must be 0.
  33937. 'void __IACCsetl (iacc REG, sw1 X)'
  33938. Set IACC0H to X if REG is 0 and IACC0L to X if REG is 1. Other
  33939. values of REG are rejected as invalid.
  33940. 'void __data_prefetch0 (const void *X)'
  33941. Use the 'dcpl' instruction to load the contents of address X into
  33942. the data cache.
  33943. 'void __data_prefetch (const void *X)'
  33944. Use the 'nldub' instruction to load the contents of address X into
  33945. the data cache. The instruction is issued in slot I1.
  33946. 
  33947. File: gcc.info, Node: MIPS DSP Built-in Functions, Next: MIPS Paired-Single Support, Prev: FR-V Built-in Functions, Up: Target Builtins
  33948. 6.59.13 MIPS DSP Built-in Functions
  33949. -----------------------------------
  33950. The MIPS DSP Application-Specific Extension (ASE) includes new
  33951. instructions that are designed to improve the performance of DSP and
  33952. media applications. It provides instructions that operate on packed
  33953. 8-bit/16-bit integer data, Q7, Q15 and Q31 fractional data.
  33954. GCC supports MIPS DSP operations using both the generic vector
  33955. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  33956. built-in functions. Both kinds of support are enabled by the '-mdsp'
  33957. command-line option.
  33958. Revision 2 of the ASE was introduced in the second half of 2006. This
  33959. revision adds extra instructions to the original ASE, but is otherwise
  33960. backwards-compatible with it. You can select revision 2 using the
  33961. command-line option '-mdspr2'; this option implies '-mdsp'.
  33962. The SCOUNT and POS bits of the DSP control register are global. The
  33963. WRDSP, EXTPDP, EXTPDPV and MTHLIP instructions modify the SCOUNT and POS
  33964. bits. During optimization, the compiler does not delete these
  33965. instructions and it does not delete calls to functions containing these
  33966. instructions.
  33967. At present, GCC only provides support for operations on 32-bit vectors.
  33968. The vector type associated with 8-bit integer data is usually called
  33969. 'v4i8', the vector type associated with Q7 is usually called 'v4q7', the
  33970. vector type associated with 16-bit integer data is usually called
  33971. 'v2i16', and the vector type associated with Q15 is usually called
  33972. 'v2q15'. They can be defined in C as follows:
  33973. typedef signed char v4i8 __attribute__ ((vector_size(4)));
  33974. typedef signed char v4q7 __attribute__ ((vector_size(4)));
  33975. typedef short v2i16 __attribute__ ((vector_size(4)));
  33976. typedef short v2q15 __attribute__ ((vector_size(4)));
  33977. 'v4i8', 'v4q7', 'v2i16' and 'v2q15' values are initialized in the same
  33978. way as aggregates. For example:
  33979. v4i8 a = {1, 2, 3, 4};
  33980. v4i8 b;
  33981. b = (v4i8) {5, 6, 7, 8};
  33982. v2q15 c = {0x0fcb, 0x3a75};
  33983. v2q15 d;
  33984. d = (v2q15) {0.1234 * 0x1.0p15, 0.4567 * 0x1.0p15};
  33985. _Note:_ The CPU's endianness determines the order in which values are
  33986. packed. On little-endian targets, the first value is the least
  33987. significant and the last value is the most significant. The opposite
  33988. order applies to big-endian targets. For example, the code above sets
  33989. the lowest byte of 'a' to '1' on little-endian targets and '4' on
  33990. big-endian targets.
  33991. _Note:_ Q7, Q15 and Q31 values must be initialized with their integer
  33992. representation. As shown in this example, the integer representation of
  33993. a Q7 value can be obtained by multiplying the fractional value by
  33994. '0x1.0p7'. The equivalent for Q15 values is to multiply by '0x1.0p15'.
  33995. The equivalent for Q31 values is to multiply by '0x1.0p31'.
  33996. The table below lists the 'v4i8' and 'v2q15' operations for which
  33997. hardware support exists. 'a' and 'b' are 'v4i8' values, and 'c' and 'd'
  33998. are 'v2q15' values.
  33999. C code MIPS instruction
  34000. 'a + b' 'addu.qb'
  34001. 'c + d' 'addq.ph'
  34002. 'a - b' 'subu.qb'
  34003. 'c - d' 'subq.ph'
  34004. The table below lists the 'v2i16' operation for which hardware support
  34005. exists for the DSP ASE REV 2. 'e' and 'f' are 'v2i16' values.
  34006. C code MIPS instruction
  34007. 'e * f' 'mul.ph'
  34008. It is easier to describe the DSP built-in functions if we first define
  34009. the following types:
  34010. typedef int q31;
  34011. typedef int i32;
  34012. typedef unsigned int ui32;
  34013. typedef long long a64;
  34014. 'q31' and 'i32' are actually the same as 'int', but we use 'q31' to
  34015. indicate a Q31 fractional value and 'i32' to indicate a 32-bit integer
  34016. value. Similarly, 'a64' is the same as 'long long', but we use 'a64' to
  34017. indicate values that are placed in one of the four DSP accumulators
  34018. ('$ac0', '$ac1', '$ac2' or '$ac3').
  34019. Also, some built-in functions prefer or require immediate numbers as
  34020. parameters, because the corresponding DSP instructions accept both
  34021. immediate numbers and register operands, or accept immediate numbers
  34022. only. The immediate parameters are listed as follows.
  34023. imm0_3: 0 to 3.
  34024. imm0_7: 0 to 7.
  34025. imm0_15: 0 to 15.
  34026. imm0_31: 0 to 31.
  34027. imm0_63: 0 to 63.
  34028. imm0_255: 0 to 255.
  34029. imm_n32_31: -32 to 31.
  34030. imm_n512_511: -512 to 511.
  34031. The following built-in functions map directly to a particular MIPS DSP
  34032. instruction. Please refer to the architecture specification for details
  34033. on what each instruction does.
  34034. v2q15 __builtin_mips_addq_ph (v2q15, v2q15)
  34035. v2q15 __builtin_mips_addq_s_ph (v2q15, v2q15)
  34036. q31 __builtin_mips_addq_s_w (q31, q31)
  34037. v4i8 __builtin_mips_addu_qb (v4i8, v4i8)
  34038. v4i8 __builtin_mips_addu_s_qb (v4i8, v4i8)
  34039. v2q15 __builtin_mips_subq_ph (v2q15, v2q15)
  34040. v2q15 __builtin_mips_subq_s_ph (v2q15, v2q15)
  34041. q31 __builtin_mips_subq_s_w (q31, q31)
  34042. v4i8 __builtin_mips_subu_qb (v4i8, v4i8)
  34043. v4i8 __builtin_mips_subu_s_qb (v4i8, v4i8)
  34044. i32 __builtin_mips_addsc (i32, i32)
  34045. i32 __builtin_mips_addwc (i32, i32)
  34046. i32 __builtin_mips_modsub (i32, i32)
  34047. i32 __builtin_mips_raddu_w_qb (v4i8)
  34048. v2q15 __builtin_mips_absq_s_ph (v2q15)
  34049. q31 __builtin_mips_absq_s_w (q31)
  34050. v4i8 __builtin_mips_precrq_qb_ph (v2q15, v2q15)
  34051. v2q15 __builtin_mips_precrq_ph_w (q31, q31)
  34052. v2q15 __builtin_mips_precrq_rs_ph_w (q31, q31)
  34053. v4i8 __builtin_mips_precrqu_s_qb_ph (v2q15, v2q15)
  34054. q31 __builtin_mips_preceq_w_phl (v2q15)
  34055. q31 __builtin_mips_preceq_w_phr (v2q15)
  34056. v2q15 __builtin_mips_precequ_ph_qbl (v4i8)
  34057. v2q15 __builtin_mips_precequ_ph_qbr (v4i8)
  34058. v2q15 __builtin_mips_precequ_ph_qbla (v4i8)
  34059. v2q15 __builtin_mips_precequ_ph_qbra (v4i8)
  34060. v2q15 __builtin_mips_preceu_ph_qbl (v4i8)
  34061. v2q15 __builtin_mips_preceu_ph_qbr (v4i8)
  34062. v2q15 __builtin_mips_preceu_ph_qbla (v4i8)
  34063. v2q15 __builtin_mips_preceu_ph_qbra (v4i8)
  34064. v4i8 __builtin_mips_shll_qb (v4i8, imm0_7)
  34065. v4i8 __builtin_mips_shll_qb (v4i8, i32)
  34066. v2q15 __builtin_mips_shll_ph (v2q15, imm0_15)
  34067. v2q15 __builtin_mips_shll_ph (v2q15, i32)
  34068. v2q15 __builtin_mips_shll_s_ph (v2q15, imm0_15)
  34069. v2q15 __builtin_mips_shll_s_ph (v2q15, i32)
  34070. q31 __builtin_mips_shll_s_w (q31, imm0_31)
  34071. q31 __builtin_mips_shll_s_w (q31, i32)
  34072. v4i8 __builtin_mips_shrl_qb (v4i8, imm0_7)
  34073. v4i8 __builtin_mips_shrl_qb (v4i8, i32)
  34074. v2q15 __builtin_mips_shra_ph (v2q15, imm0_15)
  34075. v2q15 __builtin_mips_shra_ph (v2q15, i32)
  34076. v2q15 __builtin_mips_shra_r_ph (v2q15, imm0_15)
  34077. v2q15 __builtin_mips_shra_r_ph (v2q15, i32)
  34078. q31 __builtin_mips_shra_r_w (q31, imm0_31)
  34079. q31 __builtin_mips_shra_r_w (q31, i32)
  34080. v2q15 __builtin_mips_muleu_s_ph_qbl (v4i8, v2q15)
  34081. v2q15 __builtin_mips_muleu_s_ph_qbr (v4i8, v2q15)
  34082. v2q15 __builtin_mips_mulq_rs_ph (v2q15, v2q15)
  34083. q31 __builtin_mips_muleq_s_w_phl (v2q15, v2q15)
  34084. q31 __builtin_mips_muleq_s_w_phr (v2q15, v2q15)
  34085. a64 __builtin_mips_dpau_h_qbl (a64, v4i8, v4i8)
  34086. a64 __builtin_mips_dpau_h_qbr (a64, v4i8, v4i8)
  34087. a64 __builtin_mips_dpsu_h_qbl (a64, v4i8, v4i8)
  34088. a64 __builtin_mips_dpsu_h_qbr (a64, v4i8, v4i8)
  34089. a64 __builtin_mips_dpaq_s_w_ph (a64, v2q15, v2q15)
  34090. a64 __builtin_mips_dpaq_sa_l_w (a64, q31, q31)
  34091. a64 __builtin_mips_dpsq_s_w_ph (a64, v2q15, v2q15)
  34092. a64 __builtin_mips_dpsq_sa_l_w (a64, q31, q31)
  34093. a64 __builtin_mips_mulsaq_s_w_ph (a64, v2q15, v2q15)
  34094. a64 __builtin_mips_maq_s_w_phl (a64, v2q15, v2q15)
  34095. a64 __builtin_mips_maq_s_w_phr (a64, v2q15, v2q15)
  34096. a64 __builtin_mips_maq_sa_w_phl (a64, v2q15, v2q15)
  34097. a64 __builtin_mips_maq_sa_w_phr (a64, v2q15, v2q15)
  34098. i32 __builtin_mips_bitrev (i32)
  34099. i32 __builtin_mips_insv (i32, i32)
  34100. v4i8 __builtin_mips_repl_qb (imm0_255)
  34101. v4i8 __builtin_mips_repl_qb (i32)
  34102. v2q15 __builtin_mips_repl_ph (imm_n512_511)
  34103. v2q15 __builtin_mips_repl_ph (i32)
  34104. void __builtin_mips_cmpu_eq_qb (v4i8, v4i8)
  34105. void __builtin_mips_cmpu_lt_qb (v4i8, v4i8)
  34106. void __builtin_mips_cmpu_le_qb (v4i8, v4i8)
  34107. i32 __builtin_mips_cmpgu_eq_qb (v4i8, v4i8)
  34108. i32 __builtin_mips_cmpgu_lt_qb (v4i8, v4i8)
  34109. i32 __builtin_mips_cmpgu_le_qb (v4i8, v4i8)
  34110. void __builtin_mips_cmp_eq_ph (v2q15, v2q15)
  34111. void __builtin_mips_cmp_lt_ph (v2q15, v2q15)
  34112. void __builtin_mips_cmp_le_ph (v2q15, v2q15)
  34113. v4i8 __builtin_mips_pick_qb (v4i8, v4i8)
  34114. v2q15 __builtin_mips_pick_ph (v2q15, v2q15)
  34115. v2q15 __builtin_mips_packrl_ph (v2q15, v2q15)
  34116. i32 __builtin_mips_extr_w (a64, imm0_31)
  34117. i32 __builtin_mips_extr_w (a64, i32)
  34118. i32 __builtin_mips_extr_r_w (a64, imm0_31)
  34119. i32 __builtin_mips_extr_s_h (a64, i32)
  34120. i32 __builtin_mips_extr_rs_w (a64, imm0_31)
  34121. i32 __builtin_mips_extr_rs_w (a64, i32)
  34122. i32 __builtin_mips_extr_s_h (a64, imm0_31)
  34123. i32 __builtin_mips_extr_r_w (a64, i32)
  34124. i32 __builtin_mips_extp (a64, imm0_31)
  34125. i32 __builtin_mips_extp (a64, i32)
  34126. i32 __builtin_mips_extpdp (a64, imm0_31)
  34127. i32 __builtin_mips_extpdp (a64, i32)
  34128. a64 __builtin_mips_shilo (a64, imm_n32_31)
  34129. a64 __builtin_mips_shilo (a64, i32)
  34130. a64 __builtin_mips_mthlip (a64, i32)
  34131. void __builtin_mips_wrdsp (i32, imm0_63)
  34132. i32 __builtin_mips_rddsp (imm0_63)
  34133. i32 __builtin_mips_lbux (void *, i32)
  34134. i32 __builtin_mips_lhx (void *, i32)
  34135. i32 __builtin_mips_lwx (void *, i32)
  34136. a64 __builtin_mips_ldx (void *, i32) [MIPS64 only]
  34137. i32 __builtin_mips_bposge32 (void)
  34138. a64 __builtin_mips_madd (a64, i32, i32);
  34139. a64 __builtin_mips_maddu (a64, ui32, ui32);
  34140. a64 __builtin_mips_msub (a64, i32, i32);
  34141. a64 __builtin_mips_msubu (a64, ui32, ui32);
  34142. a64 __builtin_mips_mult (i32, i32);
  34143. a64 __builtin_mips_multu (ui32, ui32);
  34144. The following built-in functions map directly to a particular MIPS DSP
  34145. REV 2 instruction. Please refer to the architecture specification for
  34146. details on what each instruction does.
  34147. v4q7 __builtin_mips_absq_s_qb (v4q7);
  34148. v2i16 __builtin_mips_addu_ph (v2i16, v2i16);
  34149. v2i16 __builtin_mips_addu_s_ph (v2i16, v2i16);
  34150. v4i8 __builtin_mips_adduh_qb (v4i8, v4i8);
  34151. v4i8 __builtin_mips_adduh_r_qb (v4i8, v4i8);
  34152. i32 __builtin_mips_append (i32, i32, imm0_31);
  34153. i32 __builtin_mips_balign (i32, i32, imm0_3);
  34154. i32 __builtin_mips_cmpgdu_eq_qb (v4i8, v4i8);
  34155. i32 __builtin_mips_cmpgdu_lt_qb (v4i8, v4i8);
  34156. i32 __builtin_mips_cmpgdu_le_qb (v4i8, v4i8);
  34157. a64 __builtin_mips_dpa_w_ph (a64, v2i16, v2i16);
  34158. a64 __builtin_mips_dps_w_ph (a64, v2i16, v2i16);
  34159. v2i16 __builtin_mips_mul_ph (v2i16, v2i16);
  34160. v2i16 __builtin_mips_mul_s_ph (v2i16, v2i16);
  34161. q31 __builtin_mips_mulq_rs_w (q31, q31);
  34162. v2q15 __builtin_mips_mulq_s_ph (v2q15, v2q15);
  34163. q31 __builtin_mips_mulq_s_w (q31, q31);
  34164. a64 __builtin_mips_mulsa_w_ph (a64, v2i16, v2i16);
  34165. v4i8 __builtin_mips_precr_qb_ph (v2i16, v2i16);
  34166. v2i16 __builtin_mips_precr_sra_ph_w (i32, i32, imm0_31);
  34167. v2i16 __builtin_mips_precr_sra_r_ph_w (i32, i32, imm0_31);
  34168. i32 __builtin_mips_prepend (i32, i32, imm0_31);
  34169. v4i8 __builtin_mips_shra_qb (v4i8, imm0_7);
  34170. v4i8 __builtin_mips_shra_r_qb (v4i8, imm0_7);
  34171. v4i8 __builtin_mips_shra_qb (v4i8, i32);
  34172. v4i8 __builtin_mips_shra_r_qb (v4i8, i32);
  34173. v2i16 __builtin_mips_shrl_ph (v2i16, imm0_15);
  34174. v2i16 __builtin_mips_shrl_ph (v2i16, i32);
  34175. v2i16 __builtin_mips_subu_ph (v2i16, v2i16);
  34176. v2i16 __builtin_mips_subu_s_ph (v2i16, v2i16);
  34177. v4i8 __builtin_mips_subuh_qb (v4i8, v4i8);
  34178. v4i8 __builtin_mips_subuh_r_qb (v4i8, v4i8);
  34179. v2q15 __builtin_mips_addqh_ph (v2q15, v2q15);
  34180. v2q15 __builtin_mips_addqh_r_ph (v2q15, v2q15);
  34181. q31 __builtin_mips_addqh_w (q31, q31);
  34182. q31 __builtin_mips_addqh_r_w (q31, q31);
  34183. v2q15 __builtin_mips_subqh_ph (v2q15, v2q15);
  34184. v2q15 __builtin_mips_subqh_r_ph (v2q15, v2q15);
  34185. q31 __builtin_mips_subqh_w (q31, q31);
  34186. q31 __builtin_mips_subqh_r_w (q31, q31);
  34187. a64 __builtin_mips_dpax_w_ph (a64, v2i16, v2i16);
  34188. a64 __builtin_mips_dpsx_w_ph (a64, v2i16, v2i16);
  34189. a64 __builtin_mips_dpaqx_s_w_ph (a64, v2q15, v2q15);
  34190. a64 __builtin_mips_dpaqx_sa_w_ph (a64, v2q15, v2q15);
  34191. a64 __builtin_mips_dpsqx_s_w_ph (a64, v2q15, v2q15);
  34192. a64 __builtin_mips_dpsqx_sa_w_ph (a64, v2q15, v2q15);
  34193. 
  34194. File: gcc.info, Node: MIPS Paired-Single Support, Next: MIPS Loongson Built-in Functions, Prev: MIPS DSP Built-in Functions, Up: Target Builtins
  34195. 6.59.14 MIPS Paired-Single Support
  34196. ----------------------------------
  34197. The MIPS64 architecture includes a number of instructions that operate
  34198. on pairs of single-precision floating-point values. Each pair is packed
  34199. into a 64-bit floating-point register, with one element being designated
  34200. the "upper half" and the other being designated the "lower half".
  34201. GCC supports paired-single operations using both the generic vector
  34202. extensions (*note Vector Extensions::) and a collection of MIPS-specific
  34203. built-in functions. Both kinds of support are enabled by the
  34204. '-mpaired-single' command-line option.
  34205. The vector type associated with paired-single values is usually called
  34206. 'v2sf'. It can be defined in C as follows:
  34207. typedef float v2sf __attribute__ ((vector_size (8)));
  34208. 'v2sf' values are initialized in the same way as aggregates. For
  34209. example:
  34210. v2sf a = {1.5, 9.1};
  34211. v2sf b;
  34212. float e, f;
  34213. b = (v2sf) {e, f};
  34214. _Note:_ The CPU's endianness determines which value is stored in the
  34215. upper half of a register and which value is stored in the lower half.
  34216. On little-endian targets, the first value is the lower one and the
  34217. second value is the upper one. The opposite order applies to big-endian
  34218. targets. For example, the code above sets the lower half of 'a' to
  34219. '1.5' on little-endian targets and '9.1' on big-endian targets.
  34220. 
  34221. File: gcc.info, Node: MIPS Loongson Built-in Functions, Next: MIPS SIMD Architecture (MSA) Support, Prev: MIPS Paired-Single Support, Up: Target Builtins
  34222. 6.59.15 MIPS Loongson Built-in Functions
  34223. ----------------------------------------
  34224. GCC provides intrinsics to access the SIMD instructions provided by the
  34225. ST Microelectronics Loongson-2E and -2F processors. These intrinsics,
  34226. available after inclusion of the 'loongson.h' header file, operate on
  34227. the following 64-bit vector types:
  34228. * 'uint8x8_t', a vector of eight unsigned 8-bit integers;
  34229. * 'uint16x4_t', a vector of four unsigned 16-bit integers;
  34230. * 'uint32x2_t', a vector of two unsigned 32-bit integers;
  34231. * 'int8x8_t', a vector of eight signed 8-bit integers;
  34232. * 'int16x4_t', a vector of four signed 16-bit integers;
  34233. * 'int32x2_t', a vector of two signed 32-bit integers.
  34234. The intrinsics provided are listed below; each is named after the
  34235. machine instruction to which it corresponds, with suffixes added as
  34236. appropriate to distinguish intrinsics that expand to the same machine
  34237. instruction yet have different argument types. Refer to the
  34238. architecture documentation for a description of the functionality of
  34239. each instruction.
  34240. int16x4_t packsswh (int32x2_t s, int32x2_t t);
  34241. int8x8_t packsshb (int16x4_t s, int16x4_t t);
  34242. uint8x8_t packushb (uint16x4_t s, uint16x4_t t);
  34243. uint32x2_t paddw_u (uint32x2_t s, uint32x2_t t);
  34244. uint16x4_t paddh_u (uint16x4_t s, uint16x4_t t);
  34245. uint8x8_t paddb_u (uint8x8_t s, uint8x8_t t);
  34246. int32x2_t paddw_s (int32x2_t s, int32x2_t t);
  34247. int16x4_t paddh_s (int16x4_t s, int16x4_t t);
  34248. int8x8_t paddb_s (int8x8_t s, int8x8_t t);
  34249. uint64_t paddd_u (uint64_t s, uint64_t t);
  34250. int64_t paddd_s (int64_t s, int64_t t);
  34251. int16x4_t paddsh (int16x4_t s, int16x4_t t);
  34252. int8x8_t paddsb (int8x8_t s, int8x8_t t);
  34253. uint16x4_t paddush (uint16x4_t s, uint16x4_t t);
  34254. uint8x8_t paddusb (uint8x8_t s, uint8x8_t t);
  34255. uint64_t pandn_ud (uint64_t s, uint64_t t);
  34256. uint32x2_t pandn_uw (uint32x2_t s, uint32x2_t t);
  34257. uint16x4_t pandn_uh (uint16x4_t s, uint16x4_t t);
  34258. uint8x8_t pandn_ub (uint8x8_t s, uint8x8_t t);
  34259. int64_t pandn_sd (int64_t s, int64_t t);
  34260. int32x2_t pandn_sw (int32x2_t s, int32x2_t t);
  34261. int16x4_t pandn_sh (int16x4_t s, int16x4_t t);
  34262. int8x8_t pandn_sb (int8x8_t s, int8x8_t t);
  34263. uint16x4_t pavgh (uint16x4_t s, uint16x4_t t);
  34264. uint8x8_t pavgb (uint8x8_t s, uint8x8_t t);
  34265. uint32x2_t pcmpeqw_u (uint32x2_t s, uint32x2_t t);
  34266. uint16x4_t pcmpeqh_u (uint16x4_t s, uint16x4_t t);
  34267. uint8x8_t pcmpeqb_u (uint8x8_t s, uint8x8_t t);
  34268. int32x2_t pcmpeqw_s (int32x2_t s, int32x2_t t);
  34269. int16x4_t pcmpeqh_s (int16x4_t s, int16x4_t t);
  34270. int8x8_t pcmpeqb_s (int8x8_t s, int8x8_t t);
  34271. uint32x2_t pcmpgtw_u (uint32x2_t s, uint32x2_t t);
  34272. uint16x4_t pcmpgth_u (uint16x4_t s, uint16x4_t t);
  34273. uint8x8_t pcmpgtb_u (uint8x8_t s, uint8x8_t t);
  34274. int32x2_t pcmpgtw_s (int32x2_t s, int32x2_t t);
  34275. int16x4_t pcmpgth_s (int16x4_t s, int16x4_t t);
  34276. int8x8_t pcmpgtb_s (int8x8_t s, int8x8_t t);
  34277. uint16x4_t pextrh_u (uint16x4_t s, int field);
  34278. int16x4_t pextrh_s (int16x4_t s, int field);
  34279. uint16x4_t pinsrh_0_u (uint16x4_t s, uint16x4_t t);
  34280. uint16x4_t pinsrh_1_u (uint16x4_t s, uint16x4_t t);
  34281. uint16x4_t pinsrh_2_u (uint16x4_t s, uint16x4_t t);
  34282. uint16x4_t pinsrh_3_u (uint16x4_t s, uint16x4_t t);
  34283. int16x4_t pinsrh_0_s (int16x4_t s, int16x4_t t);
  34284. int16x4_t pinsrh_1_s (int16x4_t s, int16x4_t t);
  34285. int16x4_t pinsrh_2_s (int16x4_t s, int16x4_t t);
  34286. int16x4_t pinsrh_3_s (int16x4_t s, int16x4_t t);
  34287. int32x2_t pmaddhw (int16x4_t s, int16x4_t t);
  34288. int16x4_t pmaxsh (int16x4_t s, int16x4_t t);
  34289. uint8x8_t pmaxub (uint8x8_t s, uint8x8_t t);
  34290. int16x4_t pminsh (int16x4_t s, int16x4_t t);
  34291. uint8x8_t pminub (uint8x8_t s, uint8x8_t t);
  34292. uint8x8_t pmovmskb_u (uint8x8_t s);
  34293. int8x8_t pmovmskb_s (int8x8_t s);
  34294. uint16x4_t pmulhuh (uint16x4_t s, uint16x4_t t);
  34295. int16x4_t pmulhh (int16x4_t s, int16x4_t t);
  34296. int16x4_t pmullh (int16x4_t s, int16x4_t t);
  34297. int64_t pmuluw (uint32x2_t s, uint32x2_t t);
  34298. uint8x8_t pasubub (uint8x8_t s, uint8x8_t t);
  34299. uint16x4_t biadd (uint8x8_t s);
  34300. uint16x4_t psadbh (uint8x8_t s, uint8x8_t t);
  34301. uint16x4_t pshufh_u (uint16x4_t dest, uint16x4_t s, uint8_t order);
  34302. int16x4_t pshufh_s (int16x4_t dest, int16x4_t s, uint8_t order);
  34303. uint16x4_t psllh_u (uint16x4_t s, uint8_t amount);
  34304. int16x4_t psllh_s (int16x4_t s, uint8_t amount);
  34305. uint32x2_t psllw_u (uint32x2_t s, uint8_t amount);
  34306. int32x2_t psllw_s (int32x2_t s, uint8_t amount);
  34307. uint16x4_t psrlh_u (uint16x4_t s, uint8_t amount);
  34308. int16x4_t psrlh_s (int16x4_t s, uint8_t amount);
  34309. uint32x2_t psrlw_u (uint32x2_t s, uint8_t amount);
  34310. int32x2_t psrlw_s (int32x2_t s, uint8_t amount);
  34311. uint16x4_t psrah_u (uint16x4_t s, uint8_t amount);
  34312. int16x4_t psrah_s (int16x4_t s, uint8_t amount);
  34313. uint32x2_t psraw_u (uint32x2_t s, uint8_t amount);
  34314. int32x2_t psraw_s (int32x2_t s, uint8_t amount);
  34315. uint32x2_t psubw_u (uint32x2_t s, uint32x2_t t);
  34316. uint16x4_t psubh_u (uint16x4_t s, uint16x4_t t);
  34317. uint8x8_t psubb_u (uint8x8_t s, uint8x8_t t);
  34318. int32x2_t psubw_s (int32x2_t s, int32x2_t t);
  34319. int16x4_t psubh_s (int16x4_t s, int16x4_t t);
  34320. int8x8_t psubb_s (int8x8_t s, int8x8_t t);
  34321. uint64_t psubd_u (uint64_t s, uint64_t t);
  34322. int64_t psubd_s (int64_t s, int64_t t);
  34323. int16x4_t psubsh (int16x4_t s, int16x4_t t);
  34324. int8x8_t psubsb (int8x8_t s, int8x8_t t);
  34325. uint16x4_t psubush (uint16x4_t s, uint16x4_t t);
  34326. uint8x8_t psubusb (uint8x8_t s, uint8x8_t t);
  34327. uint32x2_t punpckhwd_u (uint32x2_t s, uint32x2_t t);
  34328. uint16x4_t punpckhhw_u (uint16x4_t s, uint16x4_t t);
  34329. uint8x8_t punpckhbh_u (uint8x8_t s, uint8x8_t t);
  34330. int32x2_t punpckhwd_s (int32x2_t s, int32x2_t t);
  34331. int16x4_t punpckhhw_s (int16x4_t s, int16x4_t t);
  34332. int8x8_t punpckhbh_s (int8x8_t s, int8x8_t t);
  34333. uint32x2_t punpcklwd_u (uint32x2_t s, uint32x2_t t);
  34334. uint16x4_t punpcklhw_u (uint16x4_t s, uint16x4_t t);
  34335. uint8x8_t punpcklbh_u (uint8x8_t s, uint8x8_t t);
  34336. int32x2_t punpcklwd_s (int32x2_t s, int32x2_t t);
  34337. int16x4_t punpcklhw_s (int16x4_t s, int16x4_t t);
  34338. int8x8_t punpcklbh_s (int8x8_t s, int8x8_t t);
  34339. * Menu:
  34340. * Paired-Single Arithmetic::
  34341. * Paired-Single Built-in Functions::
  34342. * MIPS-3D Built-in Functions::
  34343. 
  34344. File: gcc.info, Node: Paired-Single Arithmetic, Next: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  34345. 6.59.15.1 Paired-Single Arithmetic
  34346. ..................................
  34347. The table below lists the 'v2sf' operations for which hardware support
  34348. exists. 'a', 'b' and 'c' are 'v2sf' values and 'x' is an integral
  34349. value.
  34350. C code MIPS instruction
  34351. 'a + b' 'add.ps'
  34352. 'a - b' 'sub.ps'
  34353. '-a' 'neg.ps'
  34354. 'a * b' 'mul.ps'
  34355. 'a * b + c' 'madd.ps'
  34356. 'a * b - c' 'msub.ps'
  34357. '-(a * b + c)' 'nmadd.ps'
  34358. '-(a * b - c)' 'nmsub.ps'
  34359. 'x ? a : b' 'movn.ps'/'movz.ps'
  34360. Note that the multiply-accumulate instructions can be disabled using
  34361. the command-line option '-mno-fused-madd'.
  34362. 
  34363. 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
  34364. 6.59.15.2 Paired-Single Built-in Functions
  34365. ..........................................
  34366. The following paired-single functions map directly to a particular MIPS
  34367. instruction. Please refer to the architecture specification for details
  34368. on what each instruction does.
  34369. 'v2sf __builtin_mips_pll_ps (v2sf, v2sf)'
  34370. Pair lower lower ('pll.ps').
  34371. 'v2sf __builtin_mips_pul_ps (v2sf, v2sf)'
  34372. Pair upper lower ('pul.ps').
  34373. 'v2sf __builtin_mips_plu_ps (v2sf, v2sf)'
  34374. Pair lower upper ('plu.ps').
  34375. 'v2sf __builtin_mips_puu_ps (v2sf, v2sf)'
  34376. Pair upper upper ('puu.ps').
  34377. 'v2sf __builtin_mips_cvt_ps_s (float, float)'
  34378. Convert pair to paired single ('cvt.ps.s').
  34379. 'float __builtin_mips_cvt_s_pl (v2sf)'
  34380. Convert pair lower to single ('cvt.s.pl').
  34381. 'float __builtin_mips_cvt_s_pu (v2sf)'
  34382. Convert pair upper to single ('cvt.s.pu').
  34383. 'v2sf __builtin_mips_abs_ps (v2sf)'
  34384. Absolute value ('abs.ps').
  34385. 'v2sf __builtin_mips_alnv_ps (v2sf, v2sf, int)'
  34386. Align variable ('alnv.ps').
  34387. _Note:_ The value of the third parameter must be 0 or 4 modulo 8,
  34388. otherwise the result is unpredictable. Please read the instruction
  34389. description for details.
  34390. The following multi-instruction functions are also available. In each
  34391. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  34392. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  34393. 'lt', 'nge', 'le' or 'ngt'.
  34394. 'v2sf __builtin_mips_movt_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  34395. 'v2sf __builtin_mips_movf_c_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  34396. Conditional move based on floating-point comparison ('c.COND.ps',
  34397. 'movt.ps'/'movf.ps').
  34398. The 'movt' functions return the value X computed by:
  34399. c.COND.ps CC,A,B
  34400. mov.ps X,C
  34401. movt.ps X,D,CC
  34402. The 'movf' functions are similar but use 'movf.ps' instead of
  34403. 'movt.ps'.
  34404. 'int __builtin_mips_upper_c_COND_ps (v2sf A, v2sf B)'
  34405. 'int __builtin_mips_lower_c_COND_ps (v2sf A, v2sf B)'
  34406. Comparison of two paired-single values ('c.COND.ps',
  34407. 'bc1t'/'bc1f').
  34408. These functions compare A and B using 'c.COND.ps' and return either
  34409. the upper or lower half of the result. For example:
  34410. v2sf a, b;
  34411. if (__builtin_mips_upper_c_eq_ps (a, b))
  34412. upper_halves_are_equal ();
  34413. else
  34414. upper_halves_are_unequal ();
  34415. if (__builtin_mips_lower_c_eq_ps (a, b))
  34416. lower_halves_are_equal ();
  34417. else
  34418. lower_halves_are_unequal ();
  34419. 
  34420. File: gcc.info, Node: MIPS-3D Built-in Functions, Prev: Paired-Single Built-in Functions, Up: MIPS Loongson Built-in Functions
  34421. 6.59.15.3 MIPS-3D Built-in Functions
  34422. ....................................
  34423. The MIPS-3D Application-Specific Extension (ASE) includes additional
  34424. paired-single instructions that are designed to improve the performance
  34425. of 3D graphics operations. Support for these instructions is controlled
  34426. by the '-mips3d' command-line option.
  34427. The functions listed below map directly to a particular MIPS-3D
  34428. instruction. Please refer to the architecture specification for more
  34429. details on what each instruction does.
  34430. 'v2sf __builtin_mips_addr_ps (v2sf, v2sf)'
  34431. Reduction add ('addr.ps').
  34432. 'v2sf __builtin_mips_mulr_ps (v2sf, v2sf)'
  34433. Reduction multiply ('mulr.ps').
  34434. 'v2sf __builtin_mips_cvt_pw_ps (v2sf)'
  34435. Convert paired single to paired word ('cvt.pw.ps').
  34436. 'v2sf __builtin_mips_cvt_ps_pw (v2sf)'
  34437. Convert paired word to paired single ('cvt.ps.pw').
  34438. 'float __builtin_mips_recip1_s (float)'
  34439. 'double __builtin_mips_recip1_d (double)'
  34440. 'v2sf __builtin_mips_recip1_ps (v2sf)'
  34441. Reduced-precision reciprocal (sequence step 1) ('recip1.FMT').
  34442. 'float __builtin_mips_recip2_s (float, float)'
  34443. 'double __builtin_mips_recip2_d (double, double)'
  34444. 'v2sf __builtin_mips_recip2_ps (v2sf, v2sf)'
  34445. Reduced-precision reciprocal (sequence step 2) ('recip2.FMT').
  34446. 'float __builtin_mips_rsqrt1_s (float)'
  34447. 'double __builtin_mips_rsqrt1_d (double)'
  34448. 'v2sf __builtin_mips_rsqrt1_ps (v2sf)'
  34449. Reduced-precision reciprocal square root (sequence step 1)
  34450. ('rsqrt1.FMT').
  34451. 'float __builtin_mips_rsqrt2_s (float, float)'
  34452. 'double __builtin_mips_rsqrt2_d (double, double)'
  34453. 'v2sf __builtin_mips_rsqrt2_ps (v2sf, v2sf)'
  34454. Reduced-precision reciprocal square root (sequence step 2)
  34455. ('rsqrt2.FMT').
  34456. The following multi-instruction functions are also available. In each
  34457. case, COND can be any of the 16 floating-point conditions: 'f', 'un',
  34458. 'eq', 'ueq', 'olt', 'ult', 'ole', 'ule', 'sf', 'ngle', 'seq', 'ngl',
  34459. 'lt', 'nge', 'le' or 'ngt'.
  34460. 'int __builtin_mips_cabs_COND_s (float A, float B)'
  34461. 'int __builtin_mips_cabs_COND_d (double A, double B)'
  34462. Absolute comparison of two scalar values ('cabs.COND.FMT',
  34463. 'bc1t'/'bc1f').
  34464. These functions compare A and B using 'cabs.COND.s' or
  34465. 'cabs.COND.d' and return the result as a boolean value. For
  34466. example:
  34467. float a, b;
  34468. if (__builtin_mips_cabs_eq_s (a, b))
  34469. true ();
  34470. else
  34471. false ();
  34472. 'int __builtin_mips_upper_cabs_COND_ps (v2sf A, v2sf B)'
  34473. 'int __builtin_mips_lower_cabs_COND_ps (v2sf A, v2sf B)'
  34474. Absolute comparison of two paired-single values ('cabs.COND.ps',
  34475. 'bc1t'/'bc1f').
  34476. These functions compare A and B using 'cabs.COND.ps' and return
  34477. either the upper or lower half of the result. For example:
  34478. v2sf a, b;
  34479. if (__builtin_mips_upper_cabs_eq_ps (a, b))
  34480. upper_halves_are_equal ();
  34481. else
  34482. upper_halves_are_unequal ();
  34483. if (__builtin_mips_lower_cabs_eq_ps (a, b))
  34484. lower_halves_are_equal ();
  34485. else
  34486. lower_halves_are_unequal ();
  34487. 'v2sf __builtin_mips_movt_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  34488. 'v2sf __builtin_mips_movf_cabs_COND_ps (v2sf A, v2sf B, v2sf C, v2sf D)'
  34489. Conditional move based on absolute comparison ('cabs.COND.ps',
  34490. 'movt.ps'/'movf.ps').
  34491. The 'movt' functions return the value X computed by:
  34492. cabs.COND.ps CC,A,B
  34493. mov.ps X,C
  34494. movt.ps X,D,CC
  34495. The 'movf' functions are similar but use 'movf.ps' instead of
  34496. 'movt.ps'.
  34497. 'int __builtin_mips_any_c_COND_ps (v2sf A, v2sf B)'
  34498. 'int __builtin_mips_all_c_COND_ps (v2sf A, v2sf B)'
  34499. 'int __builtin_mips_any_cabs_COND_ps (v2sf A, v2sf B)'
  34500. 'int __builtin_mips_all_cabs_COND_ps (v2sf A, v2sf B)'
  34501. Comparison of two paired-single values ('c.COND.ps'/'cabs.COND.ps',
  34502. 'bc1any2t'/'bc1any2f').
  34503. These functions compare A and B using 'c.COND.ps' or
  34504. 'cabs.COND.ps'. The 'any' forms return true if either result is
  34505. true and the 'all' forms return true if both results are true. For
  34506. example:
  34507. v2sf a, b;
  34508. if (__builtin_mips_any_c_eq_ps (a, b))
  34509. one_is_true ();
  34510. else
  34511. both_are_false ();
  34512. if (__builtin_mips_all_c_eq_ps (a, b))
  34513. both_are_true ();
  34514. else
  34515. one_is_false ();
  34516. 'int __builtin_mips_any_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  34517. 'int __builtin_mips_all_c_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  34518. 'int __builtin_mips_any_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  34519. 'int __builtin_mips_all_cabs_COND_4s (v2sf A, v2sf B, v2sf C, v2sf D)'
  34520. Comparison of four paired-single values
  34521. ('c.COND.ps'/'cabs.COND.ps', 'bc1any4t'/'bc1any4f').
  34522. These functions use 'c.COND.ps' or 'cabs.COND.ps' to compare A with
  34523. B and to compare C with D. The 'any' forms return true if any of
  34524. the four results are true and the 'all' forms return true if all
  34525. four results are true. For example:
  34526. v2sf a, b, c, d;
  34527. if (__builtin_mips_any_c_eq_4s (a, b, c, d))
  34528. some_are_true ();
  34529. else
  34530. all_are_false ();
  34531. if (__builtin_mips_all_c_eq_4s (a, b, c, d))
  34532. all_are_true ();
  34533. else
  34534. some_are_false ();
  34535. 
  34536. File: gcc.info, Node: MIPS SIMD Architecture (MSA) Support, Next: Other MIPS Built-in Functions, Prev: MIPS Loongson Built-in Functions, Up: Target Builtins
  34537. 6.59.16 MIPS SIMD Architecture (MSA) Support
  34538. --------------------------------------------
  34539. * Menu:
  34540. * MIPS SIMD Architecture Built-in Functions::
  34541. GCC provides intrinsics to access the SIMD instructions provided by the
  34542. MSA MIPS SIMD Architecture. The interface is made available by
  34543. including '<msa.h>' and using '-mmsa -mhard-float -mfp64 -mnan=2008'.
  34544. For each '__builtin_msa_*', there is a shortened name of the intrinsic,
  34545. '__msa_*'.
  34546. MSA implements 128-bit wide vector registers, operating on 8-, 16-, 32-
  34547. and 64-bit integer, 16- and 32-bit fixed-point, or 32- and 64-bit
  34548. floating point data elements. The following vectors typedefs are
  34549. included in 'msa.h':
  34550. * 'v16i8', a vector of sixteen signed 8-bit integers;
  34551. * 'v16u8', a vector of sixteen unsigned 8-bit integers;
  34552. * 'v8i16', a vector of eight signed 16-bit integers;
  34553. * 'v8u16', a vector of eight unsigned 16-bit integers;
  34554. * 'v4i32', a vector of four signed 32-bit integers;
  34555. * 'v4u32', a vector of four unsigned 32-bit integers;
  34556. * 'v2i64', a vector of two signed 64-bit integers;
  34557. * 'v2u64', a vector of two unsigned 64-bit integers;
  34558. * 'v4f32', a vector of four 32-bit floats;
  34559. * 'v2f64', a vector of two 64-bit doubles.
  34560. Instructions and corresponding built-ins may have additional
  34561. restrictions and/or input/output values manipulated:
  34562. * 'imm0_1', an integer literal in range 0 to 1;
  34563. * 'imm0_3', an integer literal in range 0 to 3;
  34564. * 'imm0_7', an integer literal in range 0 to 7;
  34565. * 'imm0_15', an integer literal in range 0 to 15;
  34566. * 'imm0_31', an integer literal in range 0 to 31;
  34567. * 'imm0_63', an integer literal in range 0 to 63;
  34568. * 'imm0_255', an integer literal in range 0 to 255;
  34569. * 'imm_n16_15', an integer literal in range -16 to 15;
  34570. * 'imm_n512_511', an integer literal in range -512 to 511;
  34571. * 'imm_n1024_1022', an integer literal in range -512 to 511 left
  34572. shifted by 1 bit, i.e., -1024, -1022, ..., 1020, 1022;
  34573. * 'imm_n2048_2044', an integer literal in range -512 to 511 left
  34574. shifted by 2 bits, i.e., -2048, -2044, ..., 2040, 2044;
  34575. * 'imm_n4096_4088', an integer literal in range -512 to 511 left
  34576. shifted by 3 bits, i.e., -4096, -4088, ..., 4080, 4088;
  34577. * 'imm1_4', an integer literal in range 1 to 4;
  34578. * 'i32, i64, u32, u64, f32, f64', defined as follows:
  34579. {
  34580. typedef int i32;
  34581. #if __LONG_MAX__ == __LONG_LONG_MAX__
  34582. typedef long i64;
  34583. #else
  34584. typedef long long i64;
  34585. #endif
  34586. typedef unsigned int u32;
  34587. #if __LONG_MAX__ == __LONG_LONG_MAX__
  34588. typedef unsigned long u64;
  34589. #else
  34590. typedef unsigned long long u64;
  34591. #endif
  34592. typedef double f64;
  34593. typedef float f32;
  34594. }
  34595. 
  34596. File: gcc.info, Node: MIPS SIMD Architecture Built-in Functions, Up: MIPS SIMD Architecture (MSA) Support
  34597. 6.59.16.1 MIPS SIMD Architecture Built-in Functions
  34598. ...................................................
  34599. The intrinsics provided are listed below; each is named after the
  34600. machine instruction.
  34601. v16i8 __builtin_msa_add_a_b (v16i8, v16i8);
  34602. v8i16 __builtin_msa_add_a_h (v8i16, v8i16);
  34603. v4i32 __builtin_msa_add_a_w (v4i32, v4i32);
  34604. v2i64 __builtin_msa_add_a_d (v2i64, v2i64);
  34605. v16i8 __builtin_msa_adds_a_b (v16i8, v16i8);
  34606. v8i16 __builtin_msa_adds_a_h (v8i16, v8i16);
  34607. v4i32 __builtin_msa_adds_a_w (v4i32, v4i32);
  34608. v2i64 __builtin_msa_adds_a_d (v2i64, v2i64);
  34609. v16i8 __builtin_msa_adds_s_b (v16i8, v16i8);
  34610. v8i16 __builtin_msa_adds_s_h (v8i16, v8i16);
  34611. v4i32 __builtin_msa_adds_s_w (v4i32, v4i32);
  34612. v2i64 __builtin_msa_adds_s_d (v2i64, v2i64);
  34613. v16u8 __builtin_msa_adds_u_b (v16u8, v16u8);
  34614. v8u16 __builtin_msa_adds_u_h (v8u16, v8u16);
  34615. v4u32 __builtin_msa_adds_u_w (v4u32, v4u32);
  34616. v2u64 __builtin_msa_adds_u_d (v2u64, v2u64);
  34617. v16i8 __builtin_msa_addv_b (v16i8, v16i8);
  34618. v8i16 __builtin_msa_addv_h (v8i16, v8i16);
  34619. v4i32 __builtin_msa_addv_w (v4i32, v4i32);
  34620. v2i64 __builtin_msa_addv_d (v2i64, v2i64);
  34621. v16i8 __builtin_msa_addvi_b (v16i8, imm0_31);
  34622. v8i16 __builtin_msa_addvi_h (v8i16, imm0_31);
  34623. v4i32 __builtin_msa_addvi_w (v4i32, imm0_31);
  34624. v2i64 __builtin_msa_addvi_d (v2i64, imm0_31);
  34625. v16u8 __builtin_msa_and_v (v16u8, v16u8);
  34626. v16u8 __builtin_msa_andi_b (v16u8, imm0_255);
  34627. v16i8 __builtin_msa_asub_s_b (v16i8, v16i8);
  34628. v8i16 __builtin_msa_asub_s_h (v8i16, v8i16);
  34629. v4i32 __builtin_msa_asub_s_w (v4i32, v4i32);
  34630. v2i64 __builtin_msa_asub_s_d (v2i64, v2i64);
  34631. v16u8 __builtin_msa_asub_u_b (v16u8, v16u8);
  34632. v8u16 __builtin_msa_asub_u_h (v8u16, v8u16);
  34633. v4u32 __builtin_msa_asub_u_w (v4u32, v4u32);
  34634. v2u64 __builtin_msa_asub_u_d (v2u64, v2u64);
  34635. v16i8 __builtin_msa_ave_s_b (v16i8, v16i8);
  34636. v8i16 __builtin_msa_ave_s_h (v8i16, v8i16);
  34637. v4i32 __builtin_msa_ave_s_w (v4i32, v4i32);
  34638. v2i64 __builtin_msa_ave_s_d (v2i64, v2i64);
  34639. v16u8 __builtin_msa_ave_u_b (v16u8, v16u8);
  34640. v8u16 __builtin_msa_ave_u_h (v8u16, v8u16);
  34641. v4u32 __builtin_msa_ave_u_w (v4u32, v4u32);
  34642. v2u64 __builtin_msa_ave_u_d (v2u64, v2u64);
  34643. v16i8 __builtin_msa_aver_s_b (v16i8, v16i8);
  34644. v8i16 __builtin_msa_aver_s_h (v8i16, v8i16);
  34645. v4i32 __builtin_msa_aver_s_w (v4i32, v4i32);
  34646. v2i64 __builtin_msa_aver_s_d (v2i64, v2i64);
  34647. v16u8 __builtin_msa_aver_u_b (v16u8, v16u8);
  34648. v8u16 __builtin_msa_aver_u_h (v8u16, v8u16);
  34649. v4u32 __builtin_msa_aver_u_w (v4u32, v4u32);
  34650. v2u64 __builtin_msa_aver_u_d (v2u64, v2u64);
  34651. v16u8 __builtin_msa_bclr_b (v16u8, v16u8);
  34652. v8u16 __builtin_msa_bclr_h (v8u16, v8u16);
  34653. v4u32 __builtin_msa_bclr_w (v4u32, v4u32);
  34654. v2u64 __builtin_msa_bclr_d (v2u64, v2u64);
  34655. v16u8 __builtin_msa_bclri_b (v16u8, imm0_7);
  34656. v8u16 __builtin_msa_bclri_h (v8u16, imm0_15);
  34657. v4u32 __builtin_msa_bclri_w (v4u32, imm0_31);
  34658. v2u64 __builtin_msa_bclri_d (v2u64, imm0_63);
  34659. v16u8 __builtin_msa_binsl_b (v16u8, v16u8, v16u8);
  34660. v8u16 __builtin_msa_binsl_h (v8u16, v8u16, v8u16);
  34661. v4u32 __builtin_msa_binsl_w (v4u32, v4u32, v4u32);
  34662. v2u64 __builtin_msa_binsl_d (v2u64, v2u64, v2u64);
  34663. v16u8 __builtin_msa_binsli_b (v16u8, v16u8, imm0_7);
  34664. v8u16 __builtin_msa_binsli_h (v8u16, v8u16, imm0_15);
  34665. v4u32 __builtin_msa_binsli_w (v4u32, v4u32, imm0_31);
  34666. v2u64 __builtin_msa_binsli_d (v2u64, v2u64, imm0_63);
  34667. v16u8 __builtin_msa_binsr_b (v16u8, v16u8, v16u8);
  34668. v8u16 __builtin_msa_binsr_h (v8u16, v8u16, v8u16);
  34669. v4u32 __builtin_msa_binsr_w (v4u32, v4u32, v4u32);
  34670. v2u64 __builtin_msa_binsr_d (v2u64, v2u64, v2u64);
  34671. v16u8 __builtin_msa_binsri_b (v16u8, v16u8, imm0_7);
  34672. v8u16 __builtin_msa_binsri_h (v8u16, v8u16, imm0_15);
  34673. v4u32 __builtin_msa_binsri_w (v4u32, v4u32, imm0_31);
  34674. v2u64 __builtin_msa_binsri_d (v2u64, v2u64, imm0_63);
  34675. v16u8 __builtin_msa_bmnz_v (v16u8, v16u8, v16u8);
  34676. v16u8 __builtin_msa_bmnzi_b (v16u8, v16u8, imm0_255);
  34677. v16u8 __builtin_msa_bmz_v (v16u8, v16u8, v16u8);
  34678. v16u8 __builtin_msa_bmzi_b (v16u8, v16u8, imm0_255);
  34679. v16u8 __builtin_msa_bneg_b (v16u8, v16u8);
  34680. v8u16 __builtin_msa_bneg_h (v8u16, v8u16);
  34681. v4u32 __builtin_msa_bneg_w (v4u32, v4u32);
  34682. v2u64 __builtin_msa_bneg_d (v2u64, v2u64);
  34683. v16u8 __builtin_msa_bnegi_b (v16u8, imm0_7);
  34684. v8u16 __builtin_msa_bnegi_h (v8u16, imm0_15);
  34685. v4u32 __builtin_msa_bnegi_w (v4u32, imm0_31);
  34686. v2u64 __builtin_msa_bnegi_d (v2u64, imm0_63);
  34687. i32 __builtin_msa_bnz_b (v16u8);
  34688. i32 __builtin_msa_bnz_h (v8u16);
  34689. i32 __builtin_msa_bnz_w (v4u32);
  34690. i32 __builtin_msa_bnz_d (v2u64);
  34691. i32 __builtin_msa_bnz_v (v16u8);
  34692. v16u8 __builtin_msa_bsel_v (v16u8, v16u8, v16u8);
  34693. v16u8 __builtin_msa_bseli_b (v16u8, v16u8, imm0_255);
  34694. v16u8 __builtin_msa_bset_b (v16u8, v16u8);
  34695. v8u16 __builtin_msa_bset_h (v8u16, v8u16);
  34696. v4u32 __builtin_msa_bset_w (v4u32, v4u32);
  34697. v2u64 __builtin_msa_bset_d (v2u64, v2u64);
  34698. v16u8 __builtin_msa_bseti_b (v16u8, imm0_7);
  34699. v8u16 __builtin_msa_bseti_h (v8u16, imm0_15);
  34700. v4u32 __builtin_msa_bseti_w (v4u32, imm0_31);
  34701. v2u64 __builtin_msa_bseti_d (v2u64, imm0_63);
  34702. i32 __builtin_msa_bz_b (v16u8);
  34703. i32 __builtin_msa_bz_h (v8u16);
  34704. i32 __builtin_msa_bz_w (v4u32);
  34705. i32 __builtin_msa_bz_d (v2u64);
  34706. i32 __builtin_msa_bz_v (v16u8);
  34707. v16i8 __builtin_msa_ceq_b (v16i8, v16i8);
  34708. v8i16 __builtin_msa_ceq_h (v8i16, v8i16);
  34709. v4i32 __builtin_msa_ceq_w (v4i32, v4i32);
  34710. v2i64 __builtin_msa_ceq_d (v2i64, v2i64);
  34711. v16i8 __builtin_msa_ceqi_b (v16i8, imm_n16_15);
  34712. v8i16 __builtin_msa_ceqi_h (v8i16, imm_n16_15);
  34713. v4i32 __builtin_msa_ceqi_w (v4i32, imm_n16_15);
  34714. v2i64 __builtin_msa_ceqi_d (v2i64, imm_n16_15);
  34715. i32 __builtin_msa_cfcmsa (imm0_31);
  34716. v16i8 __builtin_msa_cle_s_b (v16i8, v16i8);
  34717. v8i16 __builtin_msa_cle_s_h (v8i16, v8i16);
  34718. v4i32 __builtin_msa_cle_s_w (v4i32, v4i32);
  34719. v2i64 __builtin_msa_cle_s_d (v2i64, v2i64);
  34720. v16i8 __builtin_msa_cle_u_b (v16u8, v16u8);
  34721. v8i16 __builtin_msa_cle_u_h (v8u16, v8u16);
  34722. v4i32 __builtin_msa_cle_u_w (v4u32, v4u32);
  34723. v2i64 __builtin_msa_cle_u_d (v2u64, v2u64);
  34724. v16i8 __builtin_msa_clei_s_b (v16i8, imm_n16_15);
  34725. v8i16 __builtin_msa_clei_s_h (v8i16, imm_n16_15);
  34726. v4i32 __builtin_msa_clei_s_w (v4i32, imm_n16_15);
  34727. v2i64 __builtin_msa_clei_s_d (v2i64, imm_n16_15);
  34728. v16i8 __builtin_msa_clei_u_b (v16u8, imm0_31);
  34729. v8i16 __builtin_msa_clei_u_h (v8u16, imm0_31);
  34730. v4i32 __builtin_msa_clei_u_w (v4u32, imm0_31);
  34731. v2i64 __builtin_msa_clei_u_d (v2u64, imm0_31);
  34732. v16i8 __builtin_msa_clt_s_b (v16i8, v16i8);
  34733. v8i16 __builtin_msa_clt_s_h (v8i16, v8i16);
  34734. v4i32 __builtin_msa_clt_s_w (v4i32, v4i32);
  34735. v2i64 __builtin_msa_clt_s_d (v2i64, v2i64);
  34736. v16i8 __builtin_msa_clt_u_b (v16u8, v16u8);
  34737. v8i16 __builtin_msa_clt_u_h (v8u16, v8u16);
  34738. v4i32 __builtin_msa_clt_u_w (v4u32, v4u32);
  34739. v2i64 __builtin_msa_clt_u_d (v2u64, v2u64);
  34740. v16i8 __builtin_msa_clti_s_b (v16i8, imm_n16_15);
  34741. v8i16 __builtin_msa_clti_s_h (v8i16, imm_n16_15);
  34742. v4i32 __builtin_msa_clti_s_w (v4i32, imm_n16_15);
  34743. v2i64 __builtin_msa_clti_s_d (v2i64, imm_n16_15);
  34744. v16i8 __builtin_msa_clti_u_b (v16u8, imm0_31);
  34745. v8i16 __builtin_msa_clti_u_h (v8u16, imm0_31);
  34746. v4i32 __builtin_msa_clti_u_w (v4u32, imm0_31);
  34747. v2i64 __builtin_msa_clti_u_d (v2u64, imm0_31);
  34748. i32 __builtin_msa_copy_s_b (v16i8, imm0_15);
  34749. i32 __builtin_msa_copy_s_h (v8i16, imm0_7);
  34750. i32 __builtin_msa_copy_s_w (v4i32, imm0_3);
  34751. i64 __builtin_msa_copy_s_d (v2i64, imm0_1);
  34752. u32 __builtin_msa_copy_u_b (v16i8, imm0_15);
  34753. u32 __builtin_msa_copy_u_h (v8i16, imm0_7);
  34754. u32 __builtin_msa_copy_u_w (v4i32, imm0_3);
  34755. u64 __builtin_msa_copy_u_d (v2i64, imm0_1);
  34756. void __builtin_msa_ctcmsa (imm0_31, i32);
  34757. v16i8 __builtin_msa_div_s_b (v16i8, v16i8);
  34758. v8i16 __builtin_msa_div_s_h (v8i16, v8i16);
  34759. v4i32 __builtin_msa_div_s_w (v4i32, v4i32);
  34760. v2i64 __builtin_msa_div_s_d (v2i64, v2i64);
  34761. v16u8 __builtin_msa_div_u_b (v16u8, v16u8);
  34762. v8u16 __builtin_msa_div_u_h (v8u16, v8u16);
  34763. v4u32 __builtin_msa_div_u_w (v4u32, v4u32);
  34764. v2u64 __builtin_msa_div_u_d (v2u64, v2u64);
  34765. v8i16 __builtin_msa_dotp_s_h (v16i8, v16i8);
  34766. v4i32 __builtin_msa_dotp_s_w (v8i16, v8i16);
  34767. v2i64 __builtin_msa_dotp_s_d (v4i32, v4i32);
  34768. v8u16 __builtin_msa_dotp_u_h (v16u8, v16u8);
  34769. v4u32 __builtin_msa_dotp_u_w (v8u16, v8u16);
  34770. v2u64 __builtin_msa_dotp_u_d (v4u32, v4u32);
  34771. v8i16 __builtin_msa_dpadd_s_h (v8i16, v16i8, v16i8);
  34772. v4i32 __builtin_msa_dpadd_s_w (v4i32, v8i16, v8i16);
  34773. v2i64 __builtin_msa_dpadd_s_d (v2i64, v4i32, v4i32);
  34774. v8u16 __builtin_msa_dpadd_u_h (v8u16, v16u8, v16u8);
  34775. v4u32 __builtin_msa_dpadd_u_w (v4u32, v8u16, v8u16);
  34776. v2u64 __builtin_msa_dpadd_u_d (v2u64, v4u32, v4u32);
  34777. v8i16 __builtin_msa_dpsub_s_h (v8i16, v16i8, v16i8);
  34778. v4i32 __builtin_msa_dpsub_s_w (v4i32, v8i16, v8i16);
  34779. v2i64 __builtin_msa_dpsub_s_d (v2i64, v4i32, v4i32);
  34780. v8i16 __builtin_msa_dpsub_u_h (v8i16, v16u8, v16u8);
  34781. v4i32 __builtin_msa_dpsub_u_w (v4i32, v8u16, v8u16);
  34782. v2i64 __builtin_msa_dpsub_u_d (v2i64, v4u32, v4u32);
  34783. v4f32 __builtin_msa_fadd_w (v4f32, v4f32);
  34784. v2f64 __builtin_msa_fadd_d (v2f64, v2f64);
  34785. v4i32 __builtin_msa_fcaf_w (v4f32, v4f32);
  34786. v2i64 __builtin_msa_fcaf_d (v2f64, v2f64);
  34787. v4i32 __builtin_msa_fceq_w (v4f32, v4f32);
  34788. v2i64 __builtin_msa_fceq_d (v2f64, v2f64);
  34789. v4i32 __builtin_msa_fclass_w (v4f32);
  34790. v2i64 __builtin_msa_fclass_d (v2f64);
  34791. v4i32 __builtin_msa_fcle_w (v4f32, v4f32);
  34792. v2i64 __builtin_msa_fcle_d (v2f64, v2f64);
  34793. v4i32 __builtin_msa_fclt_w (v4f32, v4f32);
  34794. v2i64 __builtin_msa_fclt_d (v2f64, v2f64);
  34795. v4i32 __builtin_msa_fcne_w (v4f32, v4f32);
  34796. v2i64 __builtin_msa_fcne_d (v2f64, v2f64);
  34797. v4i32 __builtin_msa_fcor_w (v4f32, v4f32);
  34798. v2i64 __builtin_msa_fcor_d (v2f64, v2f64);
  34799. v4i32 __builtin_msa_fcueq_w (v4f32, v4f32);
  34800. v2i64 __builtin_msa_fcueq_d (v2f64, v2f64);
  34801. v4i32 __builtin_msa_fcule_w (v4f32, v4f32);
  34802. v2i64 __builtin_msa_fcule_d (v2f64, v2f64);
  34803. v4i32 __builtin_msa_fcult_w (v4f32, v4f32);
  34804. v2i64 __builtin_msa_fcult_d (v2f64, v2f64);
  34805. v4i32 __builtin_msa_fcun_w (v4f32, v4f32);
  34806. v2i64 __builtin_msa_fcun_d (v2f64, v2f64);
  34807. v4i32 __builtin_msa_fcune_w (v4f32, v4f32);
  34808. v2i64 __builtin_msa_fcune_d (v2f64, v2f64);
  34809. v4f32 __builtin_msa_fdiv_w (v4f32, v4f32);
  34810. v2f64 __builtin_msa_fdiv_d (v2f64, v2f64);
  34811. v8i16 __builtin_msa_fexdo_h (v4f32, v4f32);
  34812. v4f32 __builtin_msa_fexdo_w (v2f64, v2f64);
  34813. v4f32 __builtin_msa_fexp2_w (v4f32, v4i32);
  34814. v2f64 __builtin_msa_fexp2_d (v2f64, v2i64);
  34815. v4f32 __builtin_msa_fexupl_w (v8i16);
  34816. v2f64 __builtin_msa_fexupl_d (v4f32);
  34817. v4f32 __builtin_msa_fexupr_w (v8i16);
  34818. v2f64 __builtin_msa_fexupr_d (v4f32);
  34819. v4f32 __builtin_msa_ffint_s_w (v4i32);
  34820. v2f64 __builtin_msa_ffint_s_d (v2i64);
  34821. v4f32 __builtin_msa_ffint_u_w (v4u32);
  34822. v2f64 __builtin_msa_ffint_u_d (v2u64);
  34823. v4f32 __builtin_msa_ffql_w (v8i16);
  34824. v2f64 __builtin_msa_ffql_d (v4i32);
  34825. v4f32 __builtin_msa_ffqr_w (v8i16);
  34826. v2f64 __builtin_msa_ffqr_d (v4i32);
  34827. v16i8 __builtin_msa_fill_b (i32);
  34828. v8i16 __builtin_msa_fill_h (i32);
  34829. v4i32 __builtin_msa_fill_w (i32);
  34830. v2i64 __builtin_msa_fill_d (i64);
  34831. v4f32 __builtin_msa_flog2_w (v4f32);
  34832. v2f64 __builtin_msa_flog2_d (v2f64);
  34833. v4f32 __builtin_msa_fmadd_w (v4f32, v4f32, v4f32);
  34834. v2f64 __builtin_msa_fmadd_d (v2f64, v2f64, v2f64);
  34835. v4f32 __builtin_msa_fmax_w (v4f32, v4f32);
  34836. v2f64 __builtin_msa_fmax_d (v2f64, v2f64);
  34837. v4f32 __builtin_msa_fmax_a_w (v4f32, v4f32);
  34838. v2f64 __builtin_msa_fmax_a_d (v2f64, v2f64);
  34839. v4f32 __builtin_msa_fmin_w (v4f32, v4f32);
  34840. v2f64 __builtin_msa_fmin_d (v2f64, v2f64);
  34841. v4f32 __builtin_msa_fmin_a_w (v4f32, v4f32);
  34842. v2f64 __builtin_msa_fmin_a_d (v2f64, v2f64);
  34843. v4f32 __builtin_msa_fmsub_w (v4f32, v4f32, v4f32);
  34844. v2f64 __builtin_msa_fmsub_d (v2f64, v2f64, v2f64);
  34845. v4f32 __builtin_msa_fmul_w (v4f32, v4f32);
  34846. v2f64 __builtin_msa_fmul_d (v2f64, v2f64);
  34847. v4f32 __builtin_msa_frint_w (v4f32);
  34848. v2f64 __builtin_msa_frint_d (v2f64);
  34849. v4f32 __builtin_msa_frcp_w (v4f32);
  34850. v2f64 __builtin_msa_frcp_d (v2f64);
  34851. v4f32 __builtin_msa_frsqrt_w (v4f32);
  34852. v2f64 __builtin_msa_frsqrt_d (v2f64);
  34853. v4i32 __builtin_msa_fsaf_w (v4f32, v4f32);
  34854. v2i64 __builtin_msa_fsaf_d (v2f64, v2f64);
  34855. v4i32 __builtin_msa_fseq_w (v4f32, v4f32);
  34856. v2i64 __builtin_msa_fseq_d (v2f64, v2f64);
  34857. v4i32 __builtin_msa_fsle_w (v4f32, v4f32);
  34858. v2i64 __builtin_msa_fsle_d (v2f64, v2f64);
  34859. v4i32 __builtin_msa_fslt_w (v4f32, v4f32);
  34860. v2i64 __builtin_msa_fslt_d (v2f64, v2f64);
  34861. v4i32 __builtin_msa_fsne_w (v4f32, v4f32);
  34862. v2i64 __builtin_msa_fsne_d (v2f64, v2f64);
  34863. v4i32 __builtin_msa_fsor_w (v4f32, v4f32);
  34864. v2i64 __builtin_msa_fsor_d (v2f64, v2f64);
  34865. v4f32 __builtin_msa_fsqrt_w (v4f32);
  34866. v2f64 __builtin_msa_fsqrt_d (v2f64);
  34867. v4f32 __builtin_msa_fsub_w (v4f32, v4f32);
  34868. v2f64 __builtin_msa_fsub_d (v2f64, v2f64);
  34869. v4i32 __builtin_msa_fsueq_w (v4f32, v4f32);
  34870. v2i64 __builtin_msa_fsueq_d (v2f64, v2f64);
  34871. v4i32 __builtin_msa_fsule_w (v4f32, v4f32);
  34872. v2i64 __builtin_msa_fsule_d (v2f64, v2f64);
  34873. v4i32 __builtin_msa_fsult_w (v4f32, v4f32);
  34874. v2i64 __builtin_msa_fsult_d (v2f64, v2f64);
  34875. v4i32 __builtin_msa_fsun_w (v4f32, v4f32);
  34876. v2i64 __builtin_msa_fsun_d (v2f64, v2f64);
  34877. v4i32 __builtin_msa_fsune_w (v4f32, v4f32);
  34878. v2i64 __builtin_msa_fsune_d (v2f64, v2f64);
  34879. v4i32 __builtin_msa_ftint_s_w (v4f32);
  34880. v2i64 __builtin_msa_ftint_s_d (v2f64);
  34881. v4u32 __builtin_msa_ftint_u_w (v4f32);
  34882. v2u64 __builtin_msa_ftint_u_d (v2f64);
  34883. v8i16 __builtin_msa_ftq_h (v4f32, v4f32);
  34884. v4i32 __builtin_msa_ftq_w (v2f64, v2f64);
  34885. v4i32 __builtin_msa_ftrunc_s_w (v4f32);
  34886. v2i64 __builtin_msa_ftrunc_s_d (v2f64);
  34887. v4u32 __builtin_msa_ftrunc_u_w (v4f32);
  34888. v2u64 __builtin_msa_ftrunc_u_d (v2f64);
  34889. v8i16 __builtin_msa_hadd_s_h (v16i8, v16i8);
  34890. v4i32 __builtin_msa_hadd_s_w (v8i16, v8i16);
  34891. v2i64 __builtin_msa_hadd_s_d (v4i32, v4i32);
  34892. v8u16 __builtin_msa_hadd_u_h (v16u8, v16u8);
  34893. v4u32 __builtin_msa_hadd_u_w (v8u16, v8u16);
  34894. v2u64 __builtin_msa_hadd_u_d (v4u32, v4u32);
  34895. v8i16 __builtin_msa_hsub_s_h (v16i8, v16i8);
  34896. v4i32 __builtin_msa_hsub_s_w (v8i16, v8i16);
  34897. v2i64 __builtin_msa_hsub_s_d (v4i32, v4i32);
  34898. v8i16 __builtin_msa_hsub_u_h (v16u8, v16u8);
  34899. v4i32 __builtin_msa_hsub_u_w (v8u16, v8u16);
  34900. v2i64 __builtin_msa_hsub_u_d (v4u32, v4u32);
  34901. v16i8 __builtin_msa_ilvev_b (v16i8, v16i8);
  34902. v8i16 __builtin_msa_ilvev_h (v8i16, v8i16);
  34903. v4i32 __builtin_msa_ilvev_w (v4i32, v4i32);
  34904. v2i64 __builtin_msa_ilvev_d (v2i64, v2i64);
  34905. v16i8 __builtin_msa_ilvl_b (v16i8, v16i8);
  34906. v8i16 __builtin_msa_ilvl_h (v8i16, v8i16);
  34907. v4i32 __builtin_msa_ilvl_w (v4i32, v4i32);
  34908. v2i64 __builtin_msa_ilvl_d (v2i64, v2i64);
  34909. v16i8 __builtin_msa_ilvod_b (v16i8, v16i8);
  34910. v8i16 __builtin_msa_ilvod_h (v8i16, v8i16);
  34911. v4i32 __builtin_msa_ilvod_w (v4i32, v4i32);
  34912. v2i64 __builtin_msa_ilvod_d (v2i64, v2i64);
  34913. v16i8 __builtin_msa_ilvr_b (v16i8, v16i8);
  34914. v8i16 __builtin_msa_ilvr_h (v8i16, v8i16);
  34915. v4i32 __builtin_msa_ilvr_w (v4i32, v4i32);
  34916. v2i64 __builtin_msa_ilvr_d (v2i64, v2i64);
  34917. v16i8 __builtin_msa_insert_b (v16i8, imm0_15, i32);
  34918. v8i16 __builtin_msa_insert_h (v8i16, imm0_7, i32);
  34919. v4i32 __builtin_msa_insert_w (v4i32, imm0_3, i32);
  34920. v2i64 __builtin_msa_insert_d (v2i64, imm0_1, i64);
  34921. v16i8 __builtin_msa_insve_b (v16i8, imm0_15, v16i8);
  34922. v8i16 __builtin_msa_insve_h (v8i16, imm0_7, v8i16);
  34923. v4i32 __builtin_msa_insve_w (v4i32, imm0_3, v4i32);
  34924. v2i64 __builtin_msa_insve_d (v2i64, imm0_1, v2i64);
  34925. v16i8 __builtin_msa_ld_b (void *, imm_n512_511);
  34926. v8i16 __builtin_msa_ld_h (void *, imm_n1024_1022);
  34927. v4i32 __builtin_msa_ld_w (void *, imm_n2048_2044);
  34928. v2i64 __builtin_msa_ld_d (void *, imm_n4096_4088);
  34929. v16i8 __builtin_msa_ldi_b (imm_n512_511);
  34930. v8i16 __builtin_msa_ldi_h (imm_n512_511);
  34931. v4i32 __builtin_msa_ldi_w (imm_n512_511);
  34932. v2i64 __builtin_msa_ldi_d (imm_n512_511);
  34933. v8i16 __builtin_msa_madd_q_h (v8i16, v8i16, v8i16);
  34934. v4i32 __builtin_msa_madd_q_w (v4i32, v4i32, v4i32);
  34935. v8i16 __builtin_msa_maddr_q_h (v8i16, v8i16, v8i16);
  34936. v4i32 __builtin_msa_maddr_q_w (v4i32, v4i32, v4i32);
  34937. v16i8 __builtin_msa_maddv_b (v16i8, v16i8, v16i8);
  34938. v8i16 __builtin_msa_maddv_h (v8i16, v8i16, v8i16);
  34939. v4i32 __builtin_msa_maddv_w (v4i32, v4i32, v4i32);
  34940. v2i64 __builtin_msa_maddv_d (v2i64, v2i64, v2i64);
  34941. v16i8 __builtin_msa_max_a_b (v16i8, v16i8);
  34942. v8i16 __builtin_msa_max_a_h (v8i16, v8i16);
  34943. v4i32 __builtin_msa_max_a_w (v4i32, v4i32);
  34944. v2i64 __builtin_msa_max_a_d (v2i64, v2i64);
  34945. v16i8 __builtin_msa_max_s_b (v16i8, v16i8);
  34946. v8i16 __builtin_msa_max_s_h (v8i16, v8i16);
  34947. v4i32 __builtin_msa_max_s_w (v4i32, v4i32);
  34948. v2i64 __builtin_msa_max_s_d (v2i64, v2i64);
  34949. v16u8 __builtin_msa_max_u_b (v16u8, v16u8);
  34950. v8u16 __builtin_msa_max_u_h (v8u16, v8u16);
  34951. v4u32 __builtin_msa_max_u_w (v4u32, v4u32);
  34952. v2u64 __builtin_msa_max_u_d (v2u64, v2u64);
  34953. v16i8 __builtin_msa_maxi_s_b (v16i8, imm_n16_15);
  34954. v8i16 __builtin_msa_maxi_s_h (v8i16, imm_n16_15);
  34955. v4i32 __builtin_msa_maxi_s_w (v4i32, imm_n16_15);
  34956. v2i64 __builtin_msa_maxi_s_d (v2i64, imm_n16_15);
  34957. v16u8 __builtin_msa_maxi_u_b (v16u8, imm0_31);
  34958. v8u16 __builtin_msa_maxi_u_h (v8u16, imm0_31);
  34959. v4u32 __builtin_msa_maxi_u_w (v4u32, imm0_31);
  34960. v2u64 __builtin_msa_maxi_u_d (v2u64, imm0_31);
  34961. v16i8 __builtin_msa_min_a_b (v16i8, v16i8);
  34962. v8i16 __builtin_msa_min_a_h (v8i16, v8i16);
  34963. v4i32 __builtin_msa_min_a_w (v4i32, v4i32);
  34964. v2i64 __builtin_msa_min_a_d (v2i64, v2i64);
  34965. v16i8 __builtin_msa_min_s_b (v16i8, v16i8);
  34966. v8i16 __builtin_msa_min_s_h (v8i16, v8i16);
  34967. v4i32 __builtin_msa_min_s_w (v4i32, v4i32);
  34968. v2i64 __builtin_msa_min_s_d (v2i64, v2i64);
  34969. v16u8 __builtin_msa_min_u_b (v16u8, v16u8);
  34970. v8u16 __builtin_msa_min_u_h (v8u16, v8u16);
  34971. v4u32 __builtin_msa_min_u_w (v4u32, v4u32);
  34972. v2u64 __builtin_msa_min_u_d (v2u64, v2u64);
  34973. v16i8 __builtin_msa_mini_s_b (v16i8, imm_n16_15);
  34974. v8i16 __builtin_msa_mini_s_h (v8i16, imm_n16_15);
  34975. v4i32 __builtin_msa_mini_s_w (v4i32, imm_n16_15);
  34976. v2i64 __builtin_msa_mini_s_d (v2i64, imm_n16_15);
  34977. v16u8 __builtin_msa_mini_u_b (v16u8, imm0_31);
  34978. v8u16 __builtin_msa_mini_u_h (v8u16, imm0_31);
  34979. v4u32 __builtin_msa_mini_u_w (v4u32, imm0_31);
  34980. v2u64 __builtin_msa_mini_u_d (v2u64, imm0_31);
  34981. v16i8 __builtin_msa_mod_s_b (v16i8, v16i8);
  34982. v8i16 __builtin_msa_mod_s_h (v8i16, v8i16);
  34983. v4i32 __builtin_msa_mod_s_w (v4i32, v4i32);
  34984. v2i64 __builtin_msa_mod_s_d (v2i64, v2i64);
  34985. v16u8 __builtin_msa_mod_u_b (v16u8, v16u8);
  34986. v8u16 __builtin_msa_mod_u_h (v8u16, v8u16);
  34987. v4u32 __builtin_msa_mod_u_w (v4u32, v4u32);
  34988. v2u64 __builtin_msa_mod_u_d (v2u64, v2u64);
  34989. v16i8 __builtin_msa_move_v (v16i8);
  34990. v8i16 __builtin_msa_msub_q_h (v8i16, v8i16, v8i16);
  34991. v4i32 __builtin_msa_msub_q_w (v4i32, v4i32, v4i32);
  34992. v8i16 __builtin_msa_msubr_q_h (v8i16, v8i16, v8i16);
  34993. v4i32 __builtin_msa_msubr_q_w (v4i32, v4i32, v4i32);
  34994. v16i8 __builtin_msa_msubv_b (v16i8, v16i8, v16i8);
  34995. v8i16 __builtin_msa_msubv_h (v8i16, v8i16, v8i16);
  34996. v4i32 __builtin_msa_msubv_w (v4i32, v4i32, v4i32);
  34997. v2i64 __builtin_msa_msubv_d (v2i64, v2i64, v2i64);
  34998. v8i16 __builtin_msa_mul_q_h (v8i16, v8i16);
  34999. v4i32 __builtin_msa_mul_q_w (v4i32, v4i32);
  35000. v8i16 __builtin_msa_mulr_q_h (v8i16, v8i16);
  35001. v4i32 __builtin_msa_mulr_q_w (v4i32, v4i32);
  35002. v16i8 __builtin_msa_mulv_b (v16i8, v16i8);
  35003. v8i16 __builtin_msa_mulv_h (v8i16, v8i16);
  35004. v4i32 __builtin_msa_mulv_w (v4i32, v4i32);
  35005. v2i64 __builtin_msa_mulv_d (v2i64, v2i64);
  35006. v16i8 __builtin_msa_nloc_b (v16i8);
  35007. v8i16 __builtin_msa_nloc_h (v8i16);
  35008. v4i32 __builtin_msa_nloc_w (v4i32);
  35009. v2i64 __builtin_msa_nloc_d (v2i64);
  35010. v16i8 __builtin_msa_nlzc_b (v16i8);
  35011. v8i16 __builtin_msa_nlzc_h (v8i16);
  35012. v4i32 __builtin_msa_nlzc_w (v4i32);
  35013. v2i64 __builtin_msa_nlzc_d (v2i64);
  35014. v16u8 __builtin_msa_nor_v (v16u8, v16u8);
  35015. v16u8 __builtin_msa_nori_b (v16u8, imm0_255);
  35016. v16u8 __builtin_msa_or_v (v16u8, v16u8);
  35017. v16u8 __builtin_msa_ori_b (v16u8, imm0_255);
  35018. v16i8 __builtin_msa_pckev_b (v16i8, v16i8);
  35019. v8i16 __builtin_msa_pckev_h (v8i16, v8i16);
  35020. v4i32 __builtin_msa_pckev_w (v4i32, v4i32);
  35021. v2i64 __builtin_msa_pckev_d (v2i64, v2i64);
  35022. v16i8 __builtin_msa_pckod_b (v16i8, v16i8);
  35023. v8i16 __builtin_msa_pckod_h (v8i16, v8i16);
  35024. v4i32 __builtin_msa_pckod_w (v4i32, v4i32);
  35025. v2i64 __builtin_msa_pckod_d (v2i64, v2i64);
  35026. v16i8 __builtin_msa_pcnt_b (v16i8);
  35027. v8i16 __builtin_msa_pcnt_h (v8i16);
  35028. v4i32 __builtin_msa_pcnt_w (v4i32);
  35029. v2i64 __builtin_msa_pcnt_d (v2i64);
  35030. v16i8 __builtin_msa_sat_s_b (v16i8, imm0_7);
  35031. v8i16 __builtin_msa_sat_s_h (v8i16, imm0_15);
  35032. v4i32 __builtin_msa_sat_s_w (v4i32, imm0_31);
  35033. v2i64 __builtin_msa_sat_s_d (v2i64, imm0_63);
  35034. v16u8 __builtin_msa_sat_u_b (v16u8, imm0_7);
  35035. v8u16 __builtin_msa_sat_u_h (v8u16, imm0_15);
  35036. v4u32 __builtin_msa_sat_u_w (v4u32, imm0_31);
  35037. v2u64 __builtin_msa_sat_u_d (v2u64, imm0_63);
  35038. v16i8 __builtin_msa_shf_b (v16i8, imm0_255);
  35039. v8i16 __builtin_msa_shf_h (v8i16, imm0_255);
  35040. v4i32 __builtin_msa_shf_w (v4i32, imm0_255);
  35041. v16i8 __builtin_msa_sld_b (v16i8, v16i8, i32);
  35042. v8i16 __builtin_msa_sld_h (v8i16, v8i16, i32);
  35043. v4i32 __builtin_msa_sld_w (v4i32, v4i32, i32);
  35044. v2i64 __builtin_msa_sld_d (v2i64, v2i64, i32);
  35045. v16i8 __builtin_msa_sldi_b (v16i8, v16i8, imm0_15);
  35046. v8i16 __builtin_msa_sldi_h (v8i16, v8i16, imm0_7);
  35047. v4i32 __builtin_msa_sldi_w (v4i32, v4i32, imm0_3);
  35048. v2i64 __builtin_msa_sldi_d (v2i64, v2i64, imm0_1);
  35049. v16i8 __builtin_msa_sll_b (v16i8, v16i8);
  35050. v8i16 __builtin_msa_sll_h (v8i16, v8i16);
  35051. v4i32 __builtin_msa_sll_w (v4i32, v4i32);
  35052. v2i64 __builtin_msa_sll_d (v2i64, v2i64);
  35053. v16i8 __builtin_msa_slli_b (v16i8, imm0_7);
  35054. v8i16 __builtin_msa_slli_h (v8i16, imm0_15);
  35055. v4i32 __builtin_msa_slli_w (v4i32, imm0_31);
  35056. v2i64 __builtin_msa_slli_d (v2i64, imm0_63);
  35057. v16i8 __builtin_msa_splat_b (v16i8, i32);
  35058. v8i16 __builtin_msa_splat_h (v8i16, i32);
  35059. v4i32 __builtin_msa_splat_w (v4i32, i32);
  35060. v2i64 __builtin_msa_splat_d (v2i64, i32);
  35061. v16i8 __builtin_msa_splati_b (v16i8, imm0_15);
  35062. v8i16 __builtin_msa_splati_h (v8i16, imm0_7);
  35063. v4i32 __builtin_msa_splati_w (v4i32, imm0_3);
  35064. v2i64 __builtin_msa_splati_d (v2i64, imm0_1);
  35065. v16i8 __builtin_msa_sra_b (v16i8, v16i8);
  35066. v8i16 __builtin_msa_sra_h (v8i16, v8i16);
  35067. v4i32 __builtin_msa_sra_w (v4i32, v4i32);
  35068. v2i64 __builtin_msa_sra_d (v2i64, v2i64);
  35069. v16i8 __builtin_msa_srai_b (v16i8, imm0_7);
  35070. v8i16 __builtin_msa_srai_h (v8i16, imm0_15);
  35071. v4i32 __builtin_msa_srai_w (v4i32, imm0_31);
  35072. v2i64 __builtin_msa_srai_d (v2i64, imm0_63);
  35073. v16i8 __builtin_msa_srar_b (v16i8, v16i8);
  35074. v8i16 __builtin_msa_srar_h (v8i16, v8i16);
  35075. v4i32 __builtin_msa_srar_w (v4i32, v4i32);
  35076. v2i64 __builtin_msa_srar_d (v2i64, v2i64);
  35077. v16i8 __builtin_msa_srari_b (v16i8, imm0_7);
  35078. v8i16 __builtin_msa_srari_h (v8i16, imm0_15);
  35079. v4i32 __builtin_msa_srari_w (v4i32, imm0_31);
  35080. v2i64 __builtin_msa_srari_d (v2i64, imm0_63);
  35081. v16i8 __builtin_msa_srl_b (v16i8, v16i8);
  35082. v8i16 __builtin_msa_srl_h (v8i16, v8i16);
  35083. v4i32 __builtin_msa_srl_w (v4i32, v4i32);
  35084. v2i64 __builtin_msa_srl_d (v2i64, v2i64);
  35085. v16i8 __builtin_msa_srli_b (v16i8, imm0_7);
  35086. v8i16 __builtin_msa_srli_h (v8i16, imm0_15);
  35087. v4i32 __builtin_msa_srli_w (v4i32, imm0_31);
  35088. v2i64 __builtin_msa_srli_d (v2i64, imm0_63);
  35089. v16i8 __builtin_msa_srlr_b (v16i8, v16i8);
  35090. v8i16 __builtin_msa_srlr_h (v8i16, v8i16);
  35091. v4i32 __builtin_msa_srlr_w (v4i32, v4i32);
  35092. v2i64 __builtin_msa_srlr_d (v2i64, v2i64);
  35093. v16i8 __builtin_msa_srlri_b (v16i8, imm0_7);
  35094. v8i16 __builtin_msa_srlri_h (v8i16, imm0_15);
  35095. v4i32 __builtin_msa_srlri_w (v4i32, imm0_31);
  35096. v2i64 __builtin_msa_srlri_d (v2i64, imm0_63);
  35097. void __builtin_msa_st_b (v16i8, void *, imm_n512_511);
  35098. void __builtin_msa_st_h (v8i16, void *, imm_n1024_1022);
  35099. void __builtin_msa_st_w (v4i32, void *, imm_n2048_2044);
  35100. void __builtin_msa_st_d (v2i64, void *, imm_n4096_4088);
  35101. v16i8 __builtin_msa_subs_s_b (v16i8, v16i8);
  35102. v8i16 __builtin_msa_subs_s_h (v8i16, v8i16);
  35103. v4i32 __builtin_msa_subs_s_w (v4i32, v4i32);
  35104. v2i64 __builtin_msa_subs_s_d (v2i64, v2i64);
  35105. v16u8 __builtin_msa_subs_u_b (v16u8, v16u8);
  35106. v8u16 __builtin_msa_subs_u_h (v8u16, v8u16);
  35107. v4u32 __builtin_msa_subs_u_w (v4u32, v4u32);
  35108. v2u64 __builtin_msa_subs_u_d (v2u64, v2u64);
  35109. v16u8 __builtin_msa_subsus_u_b (v16u8, v16i8);
  35110. v8u16 __builtin_msa_subsus_u_h (v8u16, v8i16);
  35111. v4u32 __builtin_msa_subsus_u_w (v4u32, v4i32);
  35112. v2u64 __builtin_msa_subsus_u_d (v2u64, v2i64);
  35113. v16i8 __builtin_msa_subsuu_s_b (v16u8, v16u8);
  35114. v8i16 __builtin_msa_subsuu_s_h (v8u16, v8u16);
  35115. v4i32 __builtin_msa_subsuu_s_w (v4u32, v4u32);
  35116. v2i64 __builtin_msa_subsuu_s_d (v2u64, v2u64);
  35117. v16i8 __builtin_msa_subv_b (v16i8, v16i8);
  35118. v8i16 __builtin_msa_subv_h (v8i16, v8i16);
  35119. v4i32 __builtin_msa_subv_w (v4i32, v4i32);
  35120. v2i64 __builtin_msa_subv_d (v2i64, v2i64);
  35121. v16i8 __builtin_msa_subvi_b (v16i8, imm0_31);
  35122. v8i16 __builtin_msa_subvi_h (v8i16, imm0_31);
  35123. v4i32 __builtin_msa_subvi_w (v4i32, imm0_31);
  35124. v2i64 __builtin_msa_subvi_d (v2i64, imm0_31);
  35125. v16i8 __builtin_msa_vshf_b (v16i8, v16i8, v16i8);
  35126. v8i16 __builtin_msa_vshf_h (v8i16, v8i16, v8i16);
  35127. v4i32 __builtin_msa_vshf_w (v4i32, v4i32, v4i32);
  35128. v2i64 __builtin_msa_vshf_d (v2i64, v2i64, v2i64);
  35129. v16u8 __builtin_msa_xor_v (v16u8, v16u8);
  35130. v16u8 __builtin_msa_xori_b (v16u8, imm0_255);
  35131. 
  35132. File: gcc.info, Node: Other MIPS Built-in Functions, Next: MSP430 Built-in Functions, Prev: MIPS SIMD Architecture (MSA) Support, Up: Target Builtins
  35133. 6.59.17 Other MIPS Built-in Functions
  35134. -------------------------------------
  35135. GCC provides other MIPS-specific built-in functions:
  35136. 'void __builtin_mips_cache (int OP, const volatile void *ADDR)'
  35137. Insert a 'cache' instruction with operands OP and ADDR. GCC
  35138. defines the preprocessor macro '___GCC_HAVE_BUILTIN_MIPS_CACHE'
  35139. when this function is available.
  35140. 'unsigned int __builtin_mips_get_fcsr (void)'
  35141. 'void __builtin_mips_set_fcsr (unsigned int VALUE)'
  35142. Get and set the contents of the floating-point control and status
  35143. register (FPU control register 31). These functions are only
  35144. available in hard-float code but can be called in both MIPS16 and
  35145. non-MIPS16 contexts.
  35146. '__builtin_mips_set_fcsr' can be used to change any bit of the
  35147. register except the condition codes, which GCC assumes are
  35148. preserved.
  35149. 
  35150. File: gcc.info, Node: MSP430 Built-in Functions, Next: NDS32 Built-in Functions, Prev: Other MIPS Built-in Functions, Up: Target Builtins
  35151. 6.59.18 MSP430 Built-in Functions
  35152. ---------------------------------
  35153. GCC provides a couple of special builtin functions to aid in the writing
  35154. of interrupt handlers in C.
  35155. '__bic_SR_register_on_exit (int MASK)'
  35156. This clears the indicated bits in the saved copy of the status
  35157. register currently residing on the stack. This only works inside
  35158. interrupt handlers and the changes to the status register will only
  35159. take affect once the handler returns.
  35160. '__bis_SR_register_on_exit (int MASK)'
  35161. This sets the indicated bits in the saved copy of the status
  35162. register currently residing on the stack. This only works inside
  35163. interrupt handlers and the changes to the status register will only
  35164. take affect once the handler returns.
  35165. '__delay_cycles (long long CYCLES)'
  35166. This inserts an instruction sequence that takes exactly CYCLES
  35167. cycles (between 0 and about 17E9) to complete. The inserted
  35168. sequence may use jumps, loops, or no-ops, and does not interfere
  35169. with any other instructions. Note that CYCLES must be a
  35170. compile-time constant integer - that is, you must pass a number,
  35171. not a variable that may be optimized to a constant later. The
  35172. number of cycles delayed by this builtin is exact.
  35173. 
  35174. File: gcc.info, Node: NDS32 Built-in Functions, Next: picoChip Built-in Functions, Prev: MSP430 Built-in Functions, Up: Target Builtins
  35175. 6.59.19 NDS32 Built-in Functions
  35176. --------------------------------
  35177. These built-in functions are available for the NDS32 target:
  35178. -- Built-in Function: void __builtin_nds32_isync (int *ADDR)
  35179. Insert an ISYNC instruction into the instruction stream where ADDR
  35180. is an instruction address for serialization.
  35181. -- Built-in Function: void __builtin_nds32_isb (void)
  35182. Insert an ISB instruction into the instruction stream.
  35183. -- Built-in Function: int __builtin_nds32_mfsr (int SR)
  35184. Return the content of a system register which is mapped by SR.
  35185. -- Built-in Function: int __builtin_nds32_mfusr (int USR)
  35186. Return the content of a user space register which is mapped by USR.
  35187. -- Built-in Function: void __builtin_nds32_mtsr (int VALUE, int SR)
  35188. Move the VALUE to a system register which is mapped by SR.
  35189. -- Built-in Function: void __builtin_nds32_mtusr (int VALUE, int USR)
  35190. Move the VALUE to a user space register which is mapped by USR.
  35191. -- Built-in Function: void __builtin_nds32_setgie_en (void)
  35192. Enable global interrupt.
  35193. -- Built-in Function: void __builtin_nds32_setgie_dis (void)
  35194. Disable global interrupt.
  35195. 
  35196. File: gcc.info, Node: picoChip Built-in Functions, Next: PowerPC Built-in Functions, Prev: NDS32 Built-in Functions, Up: Target Builtins
  35197. 6.59.20 picoChip Built-in Functions
  35198. -----------------------------------
  35199. GCC provides an interface to selected machine instructions from the
  35200. picoChip instruction set.
  35201. 'int __builtin_sbc (int VALUE)'
  35202. Sign bit count. Return the number of consecutive bits in VALUE
  35203. that have the same value as the sign bit. The result is the number
  35204. of leading sign bits minus one, giving the number of redundant sign
  35205. bits in VALUE.
  35206. 'int __builtin_byteswap (int VALUE)'
  35207. Byte swap. Return the result of swapping the upper and lower bytes
  35208. of VALUE.
  35209. 'int __builtin_brev (int VALUE)'
  35210. Bit reversal. Return the result of reversing the bits in VALUE.
  35211. Bit 15 is swapped with bit 0, bit 14 is swapped with bit 1, and so
  35212. on.
  35213. 'int __builtin_adds (int X, int Y)'
  35214. Saturating addition. Return the result of adding X and Y, storing
  35215. the value 32767 if the result overflows.
  35216. 'int __builtin_subs (int X, int Y)'
  35217. Saturating subtraction. Return the result of subtracting Y from X,
  35218. storing the value -32768 if the result overflows.
  35219. 'void __builtin_halt (void)'
  35220. Halt. The processor stops execution. This built-in is useful for
  35221. implementing assertions.
  35222. 
  35223. File: gcc.info, Node: PowerPC Built-in Functions, Next: PowerPC AltiVec/VSX Built-in Functions, Prev: picoChip Built-in Functions, Up: Target Builtins
  35224. 6.59.21 PowerPC Built-in Functions
  35225. ----------------------------------
  35226. The following built-in functions are always available and can be used to
  35227. check the PowerPC target platform type:
  35228. -- Built-in Function: void __builtin_cpu_init (void)
  35229. This function is a 'nop' on the PowerPC platform and is included
  35230. solely to maintain API compatibility with the x86 builtins.
  35231. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  35232. This function returns a value of '1' if the run-time CPU is of type
  35233. CPUNAME and returns '0' otherwise
  35234. The '__builtin_cpu_is' function requires GLIBC 2.23 or newer which
  35235. exports the hardware capability bits. GCC defines the macro
  35236. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  35237. function is fully supported.
  35238. If GCC was configured to use a GLIBC before 2.23, the built-in
  35239. function '__builtin_cpu_is' always returns a 0 and the compiler
  35240. issues a warning.
  35241. The following CPU names can be detected:
  35242. 'power9'
  35243. IBM POWER9 Server CPU.
  35244. 'power8'
  35245. IBM POWER8 Server CPU.
  35246. 'power7'
  35247. IBM POWER7 Server CPU.
  35248. 'power6x'
  35249. IBM POWER6 Server CPU (RAW mode).
  35250. 'power6'
  35251. IBM POWER6 Server CPU (Architected mode).
  35252. 'power5+'
  35253. IBM POWER5+ Server CPU.
  35254. 'power5'
  35255. IBM POWER5 Server CPU.
  35256. 'ppc970'
  35257. IBM 970 Server CPU (ie, Apple G5).
  35258. 'power4'
  35259. IBM POWER4 Server CPU.
  35260. 'ppca2'
  35261. IBM A2 64-bit Embedded CPU
  35262. 'ppc476'
  35263. IBM PowerPC 476FP 32-bit Embedded CPU.
  35264. 'ppc464'
  35265. IBM PowerPC 464 32-bit Embedded CPU.
  35266. 'ppc440'
  35267. PowerPC 440 32-bit Embedded CPU.
  35268. 'ppc405'
  35269. PowerPC 405 32-bit Embedded CPU.
  35270. 'ppc-cell-be'
  35271. IBM PowerPC Cell Broadband Engine Architecture CPU.
  35272. Here is an example:
  35273. #ifdef __BUILTIN_CPU_SUPPORTS__
  35274. if (__builtin_cpu_is ("power8"))
  35275. {
  35276. do_power8 (); // POWER8 specific implementation.
  35277. }
  35278. else
  35279. #endif
  35280. {
  35281. do_generic (); // Generic implementation.
  35282. }
  35283. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  35284. This function returns a value of '1' if the run-time CPU supports
  35285. the HWCAP feature FEATURE and returns '0' otherwise.
  35286. The '__builtin_cpu_supports' function requires GLIBC 2.23 or newer
  35287. which exports the hardware capability bits. GCC defines the macro
  35288. '__BUILTIN_CPU_SUPPORTS__' if the '__builtin_cpu_supports' built-in
  35289. function is fully supported.
  35290. If GCC was configured to use a GLIBC before 2.23, the built-in
  35291. function '__builtin_cpu_suports' always returns a 0 and the
  35292. compiler issues a warning.
  35293. The following features can be detected:
  35294. '4xxmac'
  35295. 4xx CPU has a Multiply Accumulator.
  35296. 'altivec'
  35297. CPU has a SIMD/Vector Unit.
  35298. 'arch_2_05'
  35299. CPU supports ISA 2.05 (eg, POWER6)
  35300. 'arch_2_06'
  35301. CPU supports ISA 2.06 (eg, POWER7)
  35302. 'arch_2_07'
  35303. CPU supports ISA 2.07 (eg, POWER8)
  35304. 'arch_3_00'
  35305. CPU supports ISA 3.0 (eg, POWER9)
  35306. 'archpmu'
  35307. CPU supports the set of compatible performance monitoring
  35308. events.
  35309. 'booke'
  35310. CPU supports the Embedded ISA category.
  35311. 'cellbe'
  35312. CPU has a CELL broadband engine.
  35313. 'dfp'
  35314. CPU has a decimal floating point unit.
  35315. 'dscr'
  35316. CPU supports the data stream control register.
  35317. 'ebb'
  35318. CPU supports event base branching.
  35319. 'efpdouble'
  35320. CPU has a SPE double precision floating point unit.
  35321. 'efpsingle'
  35322. CPU has a SPE single precision floating point unit.
  35323. 'fpu'
  35324. CPU has a floating point unit.
  35325. 'htm'
  35326. CPU has hardware transaction memory instructions.
  35327. 'htm-nosc'
  35328. Kernel aborts hardware transactions when a syscall is made.
  35329. 'ic_snoop'
  35330. CPU supports icache snooping capabilities.
  35331. 'ieee128'
  35332. CPU supports 128-bit IEEE binary floating point instructions.
  35333. 'isel'
  35334. CPU supports the integer select instruction.
  35335. 'mmu'
  35336. CPU has a memory management unit.
  35337. 'notb'
  35338. CPU does not have a timebase (eg, 601 and 403gx).
  35339. 'pa6t'
  35340. CPU supports the PA Semi 6T CORE ISA.
  35341. 'power4'
  35342. CPU supports ISA 2.00 (eg, POWER4)
  35343. 'power5'
  35344. CPU supports ISA 2.02 (eg, POWER5)
  35345. 'power5+'
  35346. CPU supports ISA 2.03 (eg, POWER5+)
  35347. 'power6x'
  35348. CPU supports ISA 2.05 (eg, POWER6) extended opcodes mffgpr and
  35349. mftgpr.
  35350. 'ppc32'
  35351. CPU supports 32-bit mode execution.
  35352. 'ppc601'
  35353. CPU supports the old POWER ISA (eg, 601)
  35354. 'ppc64'
  35355. CPU supports 64-bit mode execution.
  35356. 'ppcle'
  35357. CPU supports a little-endian mode that uses address swizzling.
  35358. 'smt'
  35359. CPU support simultaneous multi-threading.
  35360. 'spe'
  35361. CPU has a signal processing extension unit.
  35362. 'tar'
  35363. CPU supports the target address register.
  35364. 'true_le'
  35365. CPU supports true little-endian mode.
  35366. 'ucache'
  35367. CPU has unified I/D cache.
  35368. 'vcrypto'
  35369. CPU supports the vector cryptography instructions.
  35370. 'vsx'
  35371. CPU supports the vector-scalar extension.
  35372. Here is an example:
  35373. #ifdef __BUILTIN_CPU_SUPPORTS__
  35374. if (__builtin_cpu_supports ("fpu"))
  35375. {
  35376. asm("fadd %0,%1,%2" : "=d"(dst) : "d"(src1), "d"(src2));
  35377. }
  35378. else
  35379. #endif
  35380. {
  35381. dst = __fadd (src1, src2); // Software FP addition function.
  35382. }
  35383. These built-in functions are available for the PowerPC family of
  35384. processors:
  35385. float __builtin_recipdivf (float, float);
  35386. float __builtin_rsqrtf (float);
  35387. double __builtin_recipdiv (double, double);
  35388. double __builtin_rsqrt (double);
  35389. uint64_t __builtin_ppc_get_timebase ();
  35390. unsigned long __builtin_ppc_mftb ();
  35391. double __builtin_unpack_longdouble (long double, int);
  35392. long double __builtin_pack_longdouble (double, double);
  35393. __ibm128 __builtin_unpack_ibm128 (__ibm128, int);
  35394. __ibm128 __builtin_pack_ibm128 (double, double);
  35395. The 'vec_rsqrt', '__builtin_rsqrt', and '__builtin_rsqrtf' functions
  35396. generate multiple instructions to implement the reciprocal sqrt
  35397. functionality using reciprocal sqrt estimate instructions.
  35398. The '__builtin_recipdiv', and '__builtin_recipdivf' functions generate
  35399. multiple instructions to implement division using the reciprocal
  35400. estimate instructions.
  35401. The '__builtin_ppc_get_timebase' and '__builtin_ppc_mftb' functions
  35402. generate instructions to read the Time Base Register. The
  35403. '__builtin_ppc_get_timebase' function may generate multiple instructions
  35404. and always returns the 64 bits of the Time Base Register. The
  35405. '__builtin_ppc_mftb' function always generates one instruction and
  35406. returns the Time Base Register value as an unsigned long, throwing away
  35407. the most significant word on 32-bit environments.
  35408. The '__builtin_unpack_longdouble' function takes a 'long double'
  35409. argument and a compile time constant of 0 or 1. If the constant is 0,
  35410. the first 'double' within the 'long double' is returned, otherwise the
  35411. second 'double' is returned. The '__builtin_unpack_longdouble' function
  35412. is only availble if 'long double' uses the IBM extended double
  35413. representation.
  35414. The '__builtin_pack_longdouble' function takes two 'double' arguments
  35415. and returns a 'long double' value that combines the two arguments. The
  35416. '__builtin_pack_longdouble' function is only availble if 'long double'
  35417. uses the IBM extended double representation.
  35418. The '__builtin_unpack_ibm128' function takes a '__ibm128' argument and
  35419. a compile time constant of 0 or 1. If the constant is 0, the first
  35420. 'double' within the '__ibm128' is returned, otherwise the second
  35421. 'double' is returned.
  35422. The '__builtin_pack_ibm128' function takes two 'double' arguments and
  35423. returns a '__ibm128' value that combines the two arguments.
  35424. Additional built-in functions are available for the 64-bit PowerPC
  35425. family of processors, for efficient use of 128-bit floating point
  35426. ('__float128') values.
  35427. Previous versions of GCC supported some 'q' builtins for IEEE 128-bit
  35428. floating point. These functions are now mapped into the equivalent
  35429. 'f128' builtin functions.
  35430. __builtin_fabsq is mapped into __builtin_fabsf128
  35431. __builtin_copysignq is mapped into __builtin_copysignf128
  35432. __builtin_infq is mapped into __builtin_inff128
  35433. __builtin_huge_valq is mapped into __builtin_huge_valf128
  35434. __builtin_nanq is mapped into __builtin_nanf128
  35435. __builtin_nansq is mapped into __builtin_nansf128
  35436. The following built-in functions are available on Linux 64-bit systems
  35437. that use the ISA 3.0 instruction set.
  35438. '__float128 __builtin_sqrtf128 (__float128)'
  35439. Perform a 128-bit IEEE floating point square root operation.
  35440. '__float128 __builtin_fmaf128 (__float128, __float128, __float128)'
  35441. Perform a 128-bit IEEE floating point fused multiply and add
  35442. operation.
  35443. '__float128 __builtin_addf128_round_to_odd (__float128, __float128)'
  35444. Perform a 128-bit IEEE floating point add using round to odd as the
  35445. rounding mode.
  35446. '__float128 __builtin_subf128_round_to_odd (__float128, __float128)'
  35447. Perform a 128-bit IEEE floating point subtract using round to odd
  35448. as the rounding mode.
  35449. '__float128 __builtin_mulf128_round_to_odd (__float128, __float128)'
  35450. Perform a 128-bit IEEE floating point multiply using round to odd
  35451. as the rounding mode.
  35452. '__float128 __builtin_divf128_round_to_odd (__float128, __float128)'
  35453. Perform a 128-bit IEEE floating point divide using round to odd as
  35454. the rounding mode.
  35455. '__float128 __builtin_sqrtf128_round_to_odd (__float128)'
  35456. Perform a 128-bit IEEE floating point square root using round to
  35457. odd as the rounding mode.
  35458. '__float128 __builtin_fmaf128 (__float128, __float128, __float128)'
  35459. Perform a 128-bit IEEE floating point fused multiply and add
  35460. operation using round to odd as the rounding mode.
  35461. 'double __builtin_truncf128_round_to_odd (__float128)'
  35462. Convert a 128-bit IEEE floating point value to 'double' using round
  35463. to odd as the rounding mode.
  35464. The following built-in functions are available for the PowerPC family
  35465. of processors, starting with ISA 2.05 or later ('-mcpu=power6' or
  35466. '-mcmpb'):
  35467. unsigned long long __builtin_cmpb (unsigned long long int, unsigned long long int);
  35468. unsigned int __builtin_cmpb (unsigned int, unsigned int);
  35469. The '__builtin_cmpb' function performs a byte-wise compare on the
  35470. contents of its two arguments, returning the result of the byte-wise
  35471. comparison as the returned value. For each byte comparison, the
  35472. corresponding byte of the return value holds 0xff if the input bytes are
  35473. equal and 0 if the input bytes are not equal. If either of the
  35474. arguments to this built-in function is wider than 32 bits, the function
  35475. call expands into the form that expects 'unsigned long long int'
  35476. arguments which is only available on 64-bit targets.
  35477. The following built-in functions are available for the PowerPC family
  35478. of processors, starting with ISA 2.06 or later ('-mcpu=power7' or
  35479. '-mpopcntd'):
  35480. long __builtin_bpermd (long, long);
  35481. int __builtin_divwe (int, int);
  35482. unsigned int __builtin_divweu (unsigned int, unsigned int);
  35483. long __builtin_divde (long, long);
  35484. unsigned long __builtin_divdeu (unsigned long, unsigned long);
  35485. unsigned int cdtbcd (unsigned int);
  35486. unsigned int cbcdtd (unsigned int);
  35487. unsigned int addg6s (unsigned int, unsigned int);
  35488. void __builtin_rs6000_speculation_barrier (void);
  35489. The '__builtin_divde' and '__builtin_divdeu' functions require a 64-bit
  35490. environment supporting ISA 2.06 or later.
  35491. The following built-in functions are available for the PowerPC family
  35492. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  35493. long long __builtin_darn (void);
  35494. long long __builtin_darn_raw (void);
  35495. int __builtin_darn_32 (void);
  35496. unsigned int scalar_extract_exp (double source);
  35497. unsigned long long int scalar_extract_exp (__ieee128 source);
  35498. unsigned long long int scalar_extract_sig (double source);
  35499. unsigned __int128 scalar_extract_sig (__ieee128 source);
  35500. double
  35501. scalar_insert_exp (unsigned long long int significand, unsigned long long int exponent);
  35502. double
  35503. scalar_insert_exp (double significand, unsigned long long int exponent);
  35504. ieee_128
  35505. scalar_insert_exp (unsigned __int128 significand, unsigned long long int exponent);
  35506. ieee_128
  35507. scalar_insert_exp (ieee_128 significand, unsigned long long int exponent);
  35508. int scalar_cmp_exp_gt (double arg1, double arg2);
  35509. int scalar_cmp_exp_lt (double arg1, double arg2);
  35510. int scalar_cmp_exp_eq (double arg1, double arg2);
  35511. int scalar_cmp_exp_unordered (double arg1, double arg2);
  35512. bool scalar_test_data_class (float source, const int condition);
  35513. bool scalar_test_data_class (double source, const int condition);
  35514. bool scalar_test_data_class (__ieee128 source, const int condition);
  35515. bool scalar_test_neg (float source);
  35516. bool scalar_test_neg (double source);
  35517. bool scalar_test_neg (__ieee128 source);
  35518. int __builtin_byte_in_set (unsigned char u, unsigned long long set);
  35519. int __builtin_byte_in_range (unsigned char u, unsigned int range);
  35520. int __builtin_byte_in_either_range (unsigned char u, unsigned int ranges);
  35521. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal64 value);
  35522. int __builtin_dfp_dtstsfi_lt (unsigned int comparison, _Decimal128 value);
  35523. int __builtin_dfp_dtstsfi_lt_dd (unsigned int comparison, _Decimal64 value);
  35524. int __builtin_dfp_dtstsfi_lt_td (unsigned int comparison, _Decimal128 value);
  35525. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal64 value);
  35526. int __builtin_dfp_dtstsfi_gt (unsigned int comparison, _Decimal128 value);
  35527. int __builtin_dfp_dtstsfi_gt_dd (unsigned int comparison, _Decimal64 value);
  35528. int __builtin_dfp_dtstsfi_gt_td (unsigned int comparison, _Decimal128 value);
  35529. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal64 value);
  35530. int __builtin_dfp_dtstsfi_eq (unsigned int comparison, _Decimal128 value);
  35531. int __builtin_dfp_dtstsfi_eq_dd (unsigned int comparison, _Decimal64 value);
  35532. int __builtin_dfp_dtstsfi_eq_td (unsigned int comparison, _Decimal128 value);
  35533. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal64 value);
  35534. int __builtin_dfp_dtstsfi_ov (unsigned int comparison, _Decimal128 value);
  35535. int __builtin_dfp_dtstsfi_ov_dd (unsigned int comparison, _Decimal64 value);
  35536. int __builtin_dfp_dtstsfi_ov_td (unsigned int comparison, _Decimal128 value);
  35537. The '__builtin_darn' and '__builtin_darn_raw' functions require a
  35538. 64-bit environment supporting ISA 3.0 or later. The '__builtin_darn'
  35539. function provides a 64-bit conditioned random number. The
  35540. '__builtin_darn_raw' function provides a 64-bit raw random number. The
  35541. '__builtin_darn_32' function provides a 32-bit random number.
  35542. The 'scalar_extract_exp' and 'scalar_extract_sig' functions require a
  35543. 64-bit environment supporting ISA 3.0 or later. The
  35544. 'scalar_extract_exp' and 'scalar_extract_sig' built-in functions return
  35545. the significand and the biased exponent value respectively of their
  35546. 'source' arguments. When supplied with a 64-bit 'source' argument, the
  35547. result returned by 'scalar_extract_sig' has the '0x0010000000000000' bit
  35548. set if the function's 'source' argument is in normalized form.
  35549. Otherwise, this bit is set to 0. When supplied with a 128-bit 'source'
  35550. argument, the '0x00010000000000000000000000000000' bit of the result is
  35551. treated similarly. Note that the sign of the significand is not
  35552. represented in the result returned from the 'scalar_extract_sig'
  35553. function. Use the 'scalar_test_neg' function to test the sign of its
  35554. 'double' argument.
  35555. The 'scalar_insert_exp' functions require a 64-bit environment
  35556. supporting ISA 3.0 or later. When supplied with a 64-bit first
  35557. argument, the 'scalar_insert_exp' built-in function returns a
  35558. double-precision floating point value that is constructed by assembling
  35559. the values of its 'significand' and 'exponent' arguments. The sign of
  35560. the result is copied from the most significant bit of the 'significand'
  35561. argument. The significand and exponent components of the result are
  35562. composed of the least significant 11 bits of the 'exponent' argument and
  35563. the least significant 52 bits of the 'significand' argument
  35564. respectively.
  35565. When supplied with a 128-bit first argument, the 'scalar_insert_exp'
  35566. built-in function returns a quad-precision ieee floating point value.
  35567. The sign bit of the result is copied from the most significant bit of
  35568. the 'significand' argument. The significand and exponent components of
  35569. the result are composed of the least significant 15 bits of the
  35570. 'exponent' argument and the least significant 112 bits of the
  35571. 'significand' argument respectively.
  35572. The 'scalar_cmp_exp_gt', 'scalar_cmp_exp_lt', 'scalar_cmp_exp_eq', and
  35573. 'scalar_cmp_exp_unordered' built-in functions return a non-zero value if
  35574. 'arg1' is greater than, less than, equal to, or not comparable to 'arg2'
  35575. respectively. The arguments are not comparable if one or the other
  35576. equals NaN (not a number).
  35577. The 'scalar_test_data_class' built-in function returns 1 if any of the
  35578. condition tests enabled by the value of the 'condition' variable are
  35579. true, and 0 otherwise. The 'condition' argument must be a compile-time
  35580. constant integer with value not exceeding 127. The 'condition' argument
  35581. is encoded as a bitmask with each bit enabling the testing of a
  35582. different condition, as characterized by the following:
  35583. 0x40 Test for NaN
  35584. 0x20 Test for +Infinity
  35585. 0x10 Test for -Infinity
  35586. 0x08 Test for +Zero
  35587. 0x04 Test for -Zero
  35588. 0x02 Test for +Denormal
  35589. 0x01 Test for -Denormal
  35590. The 'scalar_test_neg' built-in function returns 1 if its 'source'
  35591. argument holds a negative value, 0 otherwise.
  35592. The '__builtin_byte_in_set' function requires a 64-bit environment
  35593. supporting ISA 3.0 or later. This function returns a non-zero value if
  35594. and only if its 'u' argument exactly equals one of the eight bytes
  35595. contained within its 64-bit 'set' argument.
  35596. The '__builtin_byte_in_range' and '__builtin_byte_in_either_range'
  35597. require an environment supporting ISA 3.0 or later. For these two
  35598. functions, the 'range' argument is encoded as 4 bytes, organized as
  35599. 'hi_1:lo_1:hi_2:lo_2'. The '__builtin_byte_in_range' function returns a
  35600. non-zero value if and only if its 'u' argument is within the range
  35601. bounded between 'lo_2' and 'hi_2' inclusive. The
  35602. '__builtin_byte_in_either_range' function returns non-zero if and only
  35603. if its 'u' argument is within either the range bounded between 'lo_1'
  35604. and 'hi_1' inclusive or the range bounded between 'lo_2' and 'hi_2'
  35605. inclusive.
  35606. The '__builtin_dfp_dtstsfi_lt' function returns a non-zero value if and
  35607. only if the number of signficant digits of its 'value' argument is less
  35608. than its 'comparison' argument. The '__builtin_dfp_dtstsfi_lt_dd' and
  35609. '__builtin_dfp_dtstsfi_lt_td' functions behave similarly, but require
  35610. that the type of the 'value' argument be '__Decimal64' and
  35611. '__Decimal128' respectively.
  35612. The '__builtin_dfp_dtstsfi_gt' function returns a non-zero value if and
  35613. only if the number of signficant digits of its 'value' argument is
  35614. greater than its 'comparison' argument. The
  35615. '__builtin_dfp_dtstsfi_gt_dd' and '__builtin_dfp_dtstsfi_gt_td'
  35616. functions behave similarly, but require that the type of the 'value'
  35617. argument be '__Decimal64' and '__Decimal128' respectively.
  35618. The '__builtin_dfp_dtstsfi_eq' function returns a non-zero value if and
  35619. only if the number of signficant digits of its 'value' argument equals
  35620. its 'comparison' argument. The '__builtin_dfp_dtstsfi_eq_dd' and
  35621. '__builtin_dfp_dtstsfi_eq_td' functions behave similarly, but require
  35622. that the type of the 'value' argument be '__Decimal64' and
  35623. '__Decimal128' respectively.
  35624. The '__builtin_dfp_dtstsfi_ov' function returns a non-zero value if and
  35625. only if its 'value' argument has an undefined number of significant
  35626. digits, such as when 'value' is an encoding of 'NaN'. The
  35627. '__builtin_dfp_dtstsfi_ov_dd' and '__builtin_dfp_dtstsfi_ov_td'
  35628. functions behave similarly, but require that the type of the 'value'
  35629. argument be '__Decimal64' and '__Decimal128' respectively.
  35630. The following built-in functions are also available for the PowerPC
  35631. family of processors, starting with ISA 3.0 or later ('-mcpu=power9').
  35632. These string functions are described separately in order to group the
  35633. descriptions closer to the function prototypes:
  35634. int vec_all_nez (vector signed char, vector signed char);
  35635. int vec_all_nez (vector unsigned char, vector unsigned char);
  35636. int vec_all_nez (vector signed short, vector signed short);
  35637. int vec_all_nez (vector unsigned short, vector unsigned short);
  35638. int vec_all_nez (vector signed int, vector signed int);
  35639. int vec_all_nez (vector unsigned int, vector unsigned int);
  35640. int vec_any_eqz (vector signed char, vector signed char);
  35641. int vec_any_eqz (vector unsigned char, vector unsigned char);
  35642. int vec_any_eqz (vector signed short, vector signed short);
  35643. int vec_any_eqz (vector unsigned short, vector unsigned short);
  35644. int vec_any_eqz (vector signed int, vector signed int);
  35645. int vec_any_eqz (vector unsigned int, vector unsigned int);
  35646. vector bool char vec_cmpnez (vector signed char arg1, vector signed char arg2);
  35647. vector bool char vec_cmpnez (vector unsigned char arg1, vector unsigned char arg2);
  35648. vector bool short vec_cmpnez (vector signed short arg1, vector signed short arg2);
  35649. vector bool short vec_cmpnez (vector unsigned short arg1, vector unsigned short arg2);
  35650. vector bool int vec_cmpnez (vector signed int arg1, vector signed int arg2);
  35651. vector bool int vec_cmpnez (vector unsigned int, vector unsigned int);
  35652. vector signed char vec_cnttz (vector signed char);
  35653. vector unsigned char vec_cnttz (vector unsigned char);
  35654. vector signed short vec_cnttz (vector signed short);
  35655. vector unsigned short vec_cnttz (vector unsigned short);
  35656. vector signed int vec_cnttz (vector signed int);
  35657. vector unsigned int vec_cnttz (vector unsigned int);
  35658. vector signed long long vec_cnttz (vector signed long long);
  35659. vector unsigned long long vec_cnttz (vector unsigned long long);
  35660. signed int vec_cntlz_lsbb (vector signed char);
  35661. signed int vec_cntlz_lsbb (vector unsigned char);
  35662. signed int vec_cnttz_lsbb (vector signed char);
  35663. signed int vec_cnttz_lsbb (vector unsigned char);
  35664. unsigned int vec_first_match_index (vector signed char, vector signed char);
  35665. unsigned int vec_first_match_index (vector unsigned char,
  35666. vector unsigned char);
  35667. unsigned int vec_first_match_index (vector signed int, vector signed int);
  35668. unsigned int vec_first_match_index (vector unsigned int, vector unsigned int);
  35669. unsigned int vec_first_match_index (vector signed short, vector signed short);
  35670. unsigned int vec_first_match_index (vector unsigned short,
  35671. vector unsigned short);
  35672. unsigned int vec_first_match_or_eos_index (vector signed char,
  35673. vector signed char);
  35674. unsigned int vec_first_match_or_eos_index (vector unsigned char,
  35675. vector unsigned char);
  35676. unsigned int vec_first_match_or_eos_index (vector signed int,
  35677. vector signed int);
  35678. unsigned int vec_first_match_or_eos_index (vector unsigned int,
  35679. vector unsigned int);
  35680. unsigned int vec_first_match_or_eos_index (vector signed short,
  35681. vector signed short);
  35682. unsigned int vec_first_match_or_eos_index (vector unsigned short,
  35683. vector unsigned short);
  35684. unsigned int vec_first_mismatch_index (vector signed char,
  35685. vector signed char);
  35686. unsigned int vec_first_mismatch_index (vector unsigned char,
  35687. vector unsigned char);
  35688. unsigned int vec_first_mismatch_index (vector signed int,
  35689. vector signed int);
  35690. unsigned int vec_first_mismatch_index (vector unsigned int,
  35691. vector unsigned int);
  35692. unsigned int vec_first_mismatch_index (vector signed short,
  35693. vector signed short);
  35694. unsigned int vec_first_mismatch_index (vector unsigned short,
  35695. vector unsigned short);
  35696. unsigned int vec_first_mismatch_or_eos_index (vector signed char,
  35697. vector signed char);
  35698. unsigned int vec_first_mismatch_or_eos_index (vector unsigned char,
  35699. vector unsigned char);
  35700. unsigned int vec_first_mismatch_or_eos_index (vector signed int,
  35701. vector signed int);
  35702. unsigned int vec_first_mismatch_or_eos_index (vector unsigned int,
  35703. vector unsigned int);
  35704. unsigned int vec_first_mismatch_or_eos_index (vector signed short,
  35705. vector signed short);
  35706. unsigned int vec_first_mismatch_or_eos_index (vector unsigned short,
  35707. vector unsigned short);
  35708. vector unsigned short vec_pack_to_short_fp32 (vector float, vector float);
  35709. vector signed char vec_xl_be (signed long long, signed char *);
  35710. vector unsigned char vec_xl_be (signed long long, unsigned char *);
  35711. vector signed int vec_xl_be (signed long long, signed int *);
  35712. vector unsigned int vec_xl_be (signed long long, unsigned int *);
  35713. vector signed __int128 vec_xl_be (signed long long, signed __int128 *);
  35714. vector unsigned __int128 vec_xl_be (signed long long, unsigned __int128 *);
  35715. vector signed long long vec_xl_be (signed long long, signed long long *);
  35716. vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
  35717. vector signed short vec_xl_be (signed long long, signed short *);
  35718. vector unsigned short vec_xl_be (signed long long, unsigned short *);
  35719. vector double vec_xl_be (signed long long, double *);
  35720. vector float vec_xl_be (signed long long, float *);
  35721. vector signed char vec_xl_len (signed char *addr, size_t len);
  35722. vector unsigned char vec_xl_len (unsigned char *addr, size_t len);
  35723. vector signed int vec_xl_len (signed int *addr, size_t len);
  35724. vector unsigned int vec_xl_len (unsigned int *addr, size_t len);
  35725. vector signed __int128 vec_xl_len (signed __int128 *addr, size_t len);
  35726. vector unsigned __int128 vec_xl_len (unsigned __int128 *addr, size_t len);
  35727. vector signed long long vec_xl_len (signed long long *addr, size_t len);
  35728. vector unsigned long long vec_xl_len (unsigned long long *addr, size_t len);
  35729. vector signed short vec_xl_len (signed short *addr, size_t len);
  35730. vector unsigned short vec_xl_len (unsigned short *addr, size_t len);
  35731. vector double vec_xl_len (double *addr, size_t len);
  35732. vector float vec_xl_len (float *addr, size_t len);
  35733. vector unsigned char vec_xl_len_r (unsigned char *addr, size_t len);
  35734. void vec_xst_len (vector signed char data, signed char *addr, size_t len);
  35735. void vec_xst_len (vector unsigned char data, unsigned char *addr, size_t len);
  35736. void vec_xst_len (vector signed int data, signed int *addr, size_t len);
  35737. void vec_xst_len (vector unsigned int data, unsigned int *addr, size_t len);
  35738. void vec_xst_len (vector unsigned __int128 data, unsigned __int128 *addr, size_t len);
  35739. void vec_xst_len (vector signed long long data, signed long long *addr, size_t len);
  35740. void vec_xst_len (vector unsigned long long data, unsigned long long *addr, size_t len);
  35741. void vec_xst_len (vector signed short data, signed short *addr, size_t len);
  35742. void vec_xst_len (vector unsigned short data, unsigned short *addr, size_t len);
  35743. void vec_xst_len (vector signed __int128 data, signed __int128 *addr, size_t len);
  35744. void vec_xst_len (vector double data, double *addr, size_t len);
  35745. void vec_xst_len (vector float data, float *addr, size_t len);
  35746. void vec_xst_len_r (vector unsigned char data, unsigned char *addr, size_t len);
  35747. signed char vec_xlx (unsigned int index, vector signed char data);
  35748. unsigned char vec_xlx (unsigned int index, vector unsigned char data);
  35749. signed short vec_xlx (unsigned int index, vector signed short data);
  35750. unsigned short vec_xlx (unsigned int index, vector unsigned short data);
  35751. signed int vec_xlx (unsigned int index, vector signed int data);
  35752. unsigned int vec_xlx (unsigned int index, vector unsigned int data);
  35753. float vec_xlx (unsigned int index, vector float data);
  35754. signed char vec_xrx (unsigned int index, vector signed char data);
  35755. unsigned char vec_xrx (unsigned int index, vector unsigned char data);
  35756. signed short vec_xrx (unsigned int index, vector signed short data);
  35757. unsigned short vec_xrx (unsigned int index, vector unsigned short data);
  35758. signed int vec_xrx (unsigned int index, vector signed int data);
  35759. unsigned int vec_xrx (unsigned int index, vector unsigned int data);
  35760. float vec_xrx (unsigned int index, vector float data);
  35761. The 'vec_all_nez', 'vec_any_eqz', and 'vec_cmpnez' perform pairwise
  35762. comparisons between the elements at the same positions within their two
  35763. vector arguments. The 'vec_all_nez' function returns a non-zero value
  35764. if and only if all pairwise comparisons are not equal and no element of
  35765. either vector argument contains a zero. The 'vec_any_eqz' function
  35766. returns a non-zero value if and only if at least one pairwise comparison
  35767. is equal or if at least one element of either vector argument contains a
  35768. zero. The 'vec_cmpnez' function returns a vector of the same type as
  35769. its two arguments, within which each element consists of all ones to
  35770. denote that either the corresponding elements of the incoming arguments
  35771. are not equal or that at least one of the corresponding elements
  35772. contains zero. Otherwise, the element of the returned vector contains
  35773. all zeros.
  35774. The 'vec_cntlz_lsbb' function returns the count of the number of
  35775. consecutive leading byte elements (starting from position 0 within the
  35776. supplied vector argument) for which the least-significant bit equals
  35777. zero. The 'vec_cnttz_lsbb' function returns the count of the number of
  35778. consecutive trailing byte elements (starting from position 15 and
  35779. counting backwards within the supplied vector argument) for which the
  35780. least-significant bit equals zero.
  35781. The 'vec_xl_len' and 'vec_xst_len' functions require a 64-bit
  35782. environment supporting ISA 3.0 or later. The 'vec_xl_len' function
  35783. loads a variable length vector from memory. The 'vec_xst_len' function
  35784. stores a variable length vector to memory. With both the 'vec_xl_len'
  35785. and 'vec_xst_len' functions, the 'addr' argument represents the memory
  35786. address to or from which data will be transferred, and the 'len'
  35787. argument represents the number of bytes to be transferred, as computed
  35788. by the C expression 'min((len & 0xff), 16)'. If this expression's value
  35789. is not a multiple of the vector element's size, the behavior of this
  35790. function is undefined. In the case that the underlying computer is
  35791. configured to run in big-endian mode, the data transfer moves bytes 0 to
  35792. '(len - 1)' of the corresponding vector. In little-endian mode, the
  35793. data transfer moves bytes '(16 - len)' to '15' of the corresponding
  35794. vector. For the load function, any bytes of the result vector that are
  35795. not loaded from memory are set to zero. The value of the 'addr'
  35796. argument need not be aligned on a multiple of the vector's element size.
  35797. The 'vec_xlx' and 'vec_xrx' functions extract the single element
  35798. selected by the 'index' argument from the vector represented by the
  35799. 'data' argument. The 'index' argument always specifies a byte offset,
  35800. regardless of the size of the vector element. With 'vec_xlx', 'index'
  35801. is the offset of the first byte of the element to be extracted. With
  35802. 'vec_xrx', 'index' represents the last byte of the element to be
  35803. extracted, measured from the right end of the vector. In other words,
  35804. the last byte of the element to be extracted is found at position '(15 -
  35805. index)'. There is no requirement that 'index' be a multiple of the
  35806. vector element size. However, if the size of the vector element added
  35807. to 'index' is greater than 15, the content of the returned value is
  35808. undefined.
  35809. The following built-in functions are available for the PowerPC family
  35810. of processors when hardware decimal floating point ('-mhard-dfp') is
  35811. available:
  35812. long long __builtin_dxex (_Decimal64);
  35813. long long __builtin_dxexq (_Decimal128);
  35814. _Decimal64 __builtin_ddedpd (int, _Decimal64);
  35815. _Decimal128 __builtin_ddedpdq (int, _Decimal128);
  35816. _Decimal64 __builtin_denbcd (int, _Decimal64);
  35817. _Decimal128 __builtin_denbcdq (int, _Decimal128);
  35818. _Decimal64 __builtin_diex (long long, _Decimal64);
  35819. _Decimal128 _builtin_diexq (long long, _Decimal128);
  35820. _Decimal64 __builtin_dscli (_Decimal64, int);
  35821. _Decimal128 __builtin_dscliq (_Decimal128, int);
  35822. _Decimal64 __builtin_dscri (_Decimal64, int);
  35823. _Decimal128 __builtin_dscriq (_Decimal128, int);
  35824. unsigned long long __builtin_unpack_dec128 (_Decimal128, int);
  35825. _Decimal128 __builtin_pack_dec128 (unsigned long long, unsigned long long);
  35826. The following built-in functions are available for the PowerPC family
  35827. of processors when the Vector Scalar (vsx) instruction set is available:
  35828. unsigned long long __builtin_unpack_vector_int128 (vector __int128_t, int);
  35829. vector __int128_t __builtin_pack_vector_int128 (unsigned long long,
  35830. unsigned long long);
  35831. 
  35832. File: gcc.info, Node: PowerPC AltiVec/VSX Built-in Functions, Next: PowerPC Hardware Transactional Memory Built-in Functions, Prev: PowerPC Built-in Functions, Up: Target Builtins
  35833. 6.59.22 PowerPC AltiVec Built-in Functions
  35834. ------------------------------------------
  35835. GCC provides an interface for the PowerPC family of processors to access
  35836. the AltiVec operations described in Motorola's AltiVec Programming
  35837. Interface Manual. The interface is made available by including
  35838. '<altivec.h>' and using '-maltivec' and '-mabi=altivec'. The interface
  35839. supports the following vector types.
  35840. vector unsigned char
  35841. vector signed char
  35842. vector bool char
  35843. vector unsigned short
  35844. vector signed short
  35845. vector bool short
  35846. vector pixel
  35847. vector unsigned int
  35848. vector signed int
  35849. vector bool int
  35850. vector float
  35851. If '-mvsx' is used the following additional vector types are
  35852. implemented.
  35853. vector unsigned long
  35854. vector signed long
  35855. vector double
  35856. The long types are only implemented for 64-bit code generation, and the
  35857. long type is only used in the floating point/integer conversion
  35858. instructions.
  35859. GCC's implementation of the high-level language interface available
  35860. from C and C++ code differs from Motorola's documentation in several
  35861. ways.
  35862. * A vector constant is a list of constant expressions within curly
  35863. braces.
  35864. * A vector initializer requires no cast if the vector constant is of
  35865. the same type as the variable it is initializing.
  35866. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  35867. type is the default signedness of the base type. The default
  35868. varies depending on the operating system, so a portable program
  35869. should always specify the signedness.
  35870. * Compiling with '-maltivec' adds keywords '__vector', 'vector',
  35871. '__pixel', 'pixel', '__bool' and 'bool'. When compiling ISO C, the
  35872. context-sensitive substitution of the keywords 'vector', 'pixel'
  35873. and 'bool' is disabled. To use them, you must include
  35874. '<altivec.h>' instead.
  35875. * GCC allows using a 'typedef' name as the type specifier for a
  35876. vector type, but only under the following circumstances:
  35877. * When using '__vector' instead of 'vector'; for example,
  35878. typedef signed short int16;
  35879. __vector int16 data;
  35880. * When using 'vector' in keyword-and-predefine mode; for
  35881. example,
  35882. typedef signed short int16;
  35883. vector int16 data;
  35884. Note that keyword-and-predefine mode is enabled by disabling
  35885. GNU extensions (e.g., by using '-std=c11') and including
  35886. '<altivec.h>'.
  35887. * For C, overloaded functions are implemented with macros so the
  35888. following does not work:
  35889. vec_add ((vector signed int){1, 2, 3, 4}, foo);
  35890. Since 'vec_add' is a macro, the vector constant in the example is
  35891. treated as four separate arguments. Wrap the entire argument in
  35892. parentheses for this to work.
  35893. _Note:_ Only the '<altivec.h>' interface is supported. Internally, GCC
  35894. uses built-in functions to achieve the functionality in the
  35895. aforementioned header file, but they are not supported and are subject
  35896. to change without notice.
  35897. GCC complies with the OpenPOWER 64-Bit ELF V2 ABI Specification, which
  35898. may be found at
  35899. <http://openpowerfoundation.org/wp-content/uploads/resources/leabi-prd/content/index.html>.
  35900. Appendix A of this document lists the vector API interfaces that must be
  35901. provided by compliant compilers. Programmers should preferentially use
  35902. the interfaces described therein. However, historically GCC has
  35903. provided additional interfaces for access to vector instructions. These
  35904. are briefly described below.
  35905. The following interfaces are supported for the generic and specific
  35906. AltiVec operations and the AltiVec predicates. In cases where there is
  35907. a direct mapping between generic and specific operations, only the
  35908. generic names are shown here, although the specific operations can also
  35909. be used.
  35910. Arguments that are documented as 'const int' require literal integral
  35911. values within the range required for that operation.
  35912. vector signed char vec_abs (vector signed char);
  35913. vector signed short vec_abs (vector signed short);
  35914. vector signed int vec_abs (vector signed int);
  35915. vector float vec_abs (vector float);
  35916. vector signed char vec_abss (vector signed char);
  35917. vector signed short vec_abss (vector signed short);
  35918. vector signed int vec_abss (vector signed int);
  35919. vector signed char vec_add (vector bool char, vector signed char);
  35920. vector signed char vec_add (vector signed char, vector bool char);
  35921. vector signed char vec_add (vector signed char, vector signed char);
  35922. vector unsigned char vec_add (vector bool char, vector unsigned char);
  35923. vector unsigned char vec_add (vector unsigned char, vector bool char);
  35924. vector unsigned char vec_add (vector unsigned char,
  35925. vector unsigned char);
  35926. vector signed short vec_add (vector bool short, vector signed short);
  35927. vector signed short vec_add (vector signed short, vector bool short);
  35928. vector signed short vec_add (vector signed short, vector signed short);
  35929. vector unsigned short vec_add (vector bool short,
  35930. vector unsigned short);
  35931. vector unsigned short vec_add (vector unsigned short,
  35932. vector bool short);
  35933. vector unsigned short vec_add (vector unsigned short,
  35934. vector unsigned short);
  35935. vector signed int vec_add (vector bool int, vector signed int);
  35936. vector signed int vec_add (vector signed int, vector bool int);
  35937. vector signed int vec_add (vector signed int, vector signed int);
  35938. vector unsigned int vec_add (vector bool int, vector unsigned int);
  35939. vector unsigned int vec_add (vector unsigned int, vector bool int);
  35940. vector unsigned int vec_add (vector unsigned int, vector unsigned int);
  35941. vector float vec_add (vector float, vector float);
  35942. vector float vec_vaddfp (vector float, vector float);
  35943. vector signed int vec_vadduwm (vector bool int, vector signed int);
  35944. vector signed int vec_vadduwm (vector signed int, vector bool int);
  35945. vector signed int vec_vadduwm (vector signed int, vector signed int);
  35946. vector unsigned int vec_vadduwm (vector bool int, vector unsigned int);
  35947. vector unsigned int vec_vadduwm (vector unsigned int, vector bool int);
  35948. vector unsigned int vec_vadduwm (vector unsigned int,
  35949. vector unsigned int);
  35950. vector signed short vec_vadduhm (vector bool short,
  35951. vector signed short);
  35952. vector signed short vec_vadduhm (vector signed short,
  35953. vector bool short);
  35954. vector signed short vec_vadduhm (vector signed short,
  35955. vector signed short);
  35956. vector unsigned short vec_vadduhm (vector bool short,
  35957. vector unsigned short);
  35958. vector unsigned short vec_vadduhm (vector unsigned short,
  35959. vector bool short);
  35960. vector unsigned short vec_vadduhm (vector unsigned short,
  35961. vector unsigned short);
  35962. vector signed char vec_vaddubm (vector bool char, vector signed char);
  35963. vector signed char vec_vaddubm (vector signed char, vector bool char);
  35964. vector signed char vec_vaddubm (vector signed char, vector signed char);
  35965. vector unsigned char vec_vaddubm (vector bool char,
  35966. vector unsigned char);
  35967. vector unsigned char vec_vaddubm (vector unsigned char,
  35968. vector bool char);
  35969. vector unsigned char vec_vaddubm (vector unsigned char,
  35970. vector unsigned char);
  35971. vector unsigned int vec_addc (vector unsigned int, vector unsigned int);
  35972. vector unsigned char vec_adds (vector bool char, vector unsigned char);
  35973. vector unsigned char vec_adds (vector unsigned char, vector bool char);
  35974. vector unsigned char vec_adds (vector unsigned char,
  35975. vector unsigned char);
  35976. vector signed char vec_adds (vector bool char, vector signed char);
  35977. vector signed char vec_adds (vector signed char, vector bool char);
  35978. vector signed char vec_adds (vector signed char, vector signed char);
  35979. vector unsigned short vec_adds (vector bool short,
  35980. vector unsigned short);
  35981. vector unsigned short vec_adds (vector unsigned short,
  35982. vector bool short);
  35983. vector unsigned short vec_adds (vector unsigned short,
  35984. vector unsigned short);
  35985. vector signed short vec_adds (vector bool short, vector signed short);
  35986. vector signed short vec_adds (vector signed short, vector bool short);
  35987. vector signed short vec_adds (vector signed short, vector signed short);
  35988. vector unsigned int vec_adds (vector bool int, vector unsigned int);
  35989. vector unsigned int vec_adds (vector unsigned int, vector bool int);
  35990. vector unsigned int vec_adds (vector unsigned int, vector unsigned int);
  35991. vector signed int vec_adds (vector bool int, vector signed int);
  35992. vector signed int vec_adds (vector signed int, vector bool int);
  35993. vector signed int vec_adds (vector signed int, vector signed int);
  35994. vector signed int vec_vaddsws (vector bool int, vector signed int);
  35995. vector signed int vec_vaddsws (vector signed int, vector bool int);
  35996. vector signed int vec_vaddsws (vector signed int, vector signed int);
  35997. vector unsigned int vec_vadduws (vector bool int, vector unsigned int);
  35998. vector unsigned int vec_vadduws (vector unsigned int, vector bool int);
  35999. vector unsigned int vec_vadduws (vector unsigned int,
  36000. vector unsigned int);
  36001. vector signed short vec_vaddshs (vector bool short,
  36002. vector signed short);
  36003. vector signed short vec_vaddshs (vector signed short,
  36004. vector bool short);
  36005. vector signed short vec_vaddshs (vector signed short,
  36006. vector signed short);
  36007. vector unsigned short vec_vadduhs (vector bool short,
  36008. vector unsigned short);
  36009. vector unsigned short vec_vadduhs (vector unsigned short,
  36010. vector bool short);
  36011. vector unsigned short vec_vadduhs (vector unsigned short,
  36012. vector unsigned short);
  36013. vector signed char vec_vaddsbs (vector bool char, vector signed char);
  36014. vector signed char vec_vaddsbs (vector signed char, vector bool char);
  36015. vector signed char vec_vaddsbs (vector signed char, vector signed char);
  36016. vector unsigned char vec_vaddubs (vector bool char,
  36017. vector unsigned char);
  36018. vector unsigned char vec_vaddubs (vector unsigned char,
  36019. vector bool char);
  36020. vector unsigned char vec_vaddubs (vector unsigned char,
  36021. vector unsigned char);
  36022. vector float vec_and (vector float, vector float);
  36023. vector float vec_and (vector float, vector bool int);
  36024. vector float vec_and (vector bool int, vector float);
  36025. vector bool long long vec_and (vector bool long long int,
  36026. vector bool long long);
  36027. vector bool int vec_and (vector bool int, vector bool int);
  36028. vector signed int vec_and (vector bool int, vector signed int);
  36029. vector signed int vec_and (vector signed int, vector bool int);
  36030. vector signed int vec_and (vector signed int, vector signed int);
  36031. vector unsigned int vec_and (vector bool int, vector unsigned int);
  36032. vector unsigned int vec_and (vector unsigned int, vector bool int);
  36033. vector unsigned int vec_and (vector unsigned int, vector unsigned int);
  36034. vector bool short vec_and (vector bool short, vector bool short);
  36035. vector signed short vec_and (vector bool short, vector signed short);
  36036. vector signed short vec_and (vector signed short, vector bool short);
  36037. vector signed short vec_and (vector signed short, vector signed short);
  36038. vector unsigned short vec_and (vector bool short,
  36039. vector unsigned short);
  36040. vector unsigned short vec_and (vector unsigned short,
  36041. vector bool short);
  36042. vector unsigned short vec_and (vector unsigned short,
  36043. vector unsigned short);
  36044. vector signed char vec_and (vector bool char, vector signed char);
  36045. vector bool char vec_and (vector bool char, vector bool char);
  36046. vector signed char vec_and (vector signed char, vector bool char);
  36047. vector signed char vec_and (vector signed char, vector signed char);
  36048. vector unsigned char vec_and (vector bool char, vector unsigned char);
  36049. vector unsigned char vec_and (vector unsigned char, vector bool char);
  36050. vector unsigned char vec_and (vector unsigned char,
  36051. vector unsigned char);
  36052. vector float vec_andc (vector float, vector float);
  36053. vector float vec_andc (vector float, vector bool int);
  36054. vector float vec_andc (vector bool int, vector float);
  36055. vector bool int vec_andc (vector bool int, vector bool int);
  36056. vector signed int vec_andc (vector bool int, vector signed int);
  36057. vector signed int vec_andc (vector signed int, vector bool int);
  36058. vector signed int vec_andc (vector signed int, vector signed int);
  36059. vector unsigned int vec_andc (vector bool int, vector unsigned int);
  36060. vector unsigned int vec_andc (vector unsigned int, vector bool int);
  36061. vector unsigned int vec_andc (vector unsigned int, vector unsigned int);
  36062. vector bool short vec_andc (vector bool short, vector bool short);
  36063. vector signed short vec_andc (vector bool short, vector signed short);
  36064. vector signed short vec_andc (vector signed short, vector bool short);
  36065. vector signed short vec_andc (vector signed short, vector signed short);
  36066. vector unsigned short vec_andc (vector bool short,
  36067. vector unsigned short);
  36068. vector unsigned short vec_andc (vector unsigned short,
  36069. vector bool short);
  36070. vector unsigned short vec_andc (vector unsigned short,
  36071. vector unsigned short);
  36072. vector signed char vec_andc (vector bool char, vector signed char);
  36073. vector bool char vec_andc (vector bool char, vector bool char);
  36074. vector signed char vec_andc (vector signed char, vector bool char);
  36075. vector signed char vec_andc (vector signed char, vector signed char);
  36076. vector unsigned char vec_andc (vector bool char, vector unsigned char);
  36077. vector unsigned char vec_andc (vector unsigned char, vector bool char);
  36078. vector unsigned char vec_andc (vector unsigned char,
  36079. vector unsigned char);
  36080. vector unsigned char vec_avg (vector unsigned char,
  36081. vector unsigned char);
  36082. vector signed char vec_avg (vector signed char, vector signed char);
  36083. vector unsigned short vec_avg (vector unsigned short,
  36084. vector unsigned short);
  36085. vector signed short vec_avg (vector signed short, vector signed short);
  36086. vector unsigned int vec_avg (vector unsigned int, vector unsigned int);
  36087. vector signed int vec_avg (vector signed int, vector signed int);
  36088. vector signed int vec_vavgsw (vector signed int, vector signed int);
  36089. vector unsigned int vec_vavguw (vector unsigned int,
  36090. vector unsigned int);
  36091. vector signed short vec_vavgsh (vector signed short,
  36092. vector signed short);
  36093. vector unsigned short vec_vavguh (vector unsigned short,
  36094. vector unsigned short);
  36095. vector signed char vec_vavgsb (vector signed char, vector signed char);
  36096. vector unsigned char vec_vavgub (vector unsigned char,
  36097. vector unsigned char);
  36098. vector float vec_copysign (vector float);
  36099. vector float vec_ceil (vector float);
  36100. vector signed int vec_cmpb (vector float, vector float);
  36101. vector bool char vec_cmpeq (vector bool char, vector bool char);
  36102. vector bool short vec_cmpeq (vector bool short, vector bool short);
  36103. vector bool int vec_cmpeq (vector bool int, vector bool int);
  36104. vector bool char vec_cmpeq (vector signed char, vector signed char);
  36105. vector bool char vec_cmpeq (vector unsigned char, vector unsigned char);
  36106. vector bool short vec_cmpeq (vector signed short, vector signed short);
  36107. vector bool short vec_cmpeq (vector unsigned short,
  36108. vector unsigned short);
  36109. vector bool int vec_cmpeq (vector signed int, vector signed int);
  36110. vector bool int vec_cmpeq (vector unsigned int, vector unsigned int);
  36111. vector bool int vec_cmpeq (vector float, vector float);
  36112. vector bool int vec_vcmpeqfp (vector float, vector float);
  36113. vector bool int vec_vcmpequw (vector signed int, vector signed int);
  36114. vector bool int vec_vcmpequw (vector unsigned int, vector unsigned int);
  36115. vector bool short vec_vcmpequh (vector signed short,
  36116. vector signed short);
  36117. vector bool short vec_vcmpequh (vector unsigned short,
  36118. vector unsigned short);
  36119. vector bool char vec_vcmpequb (vector signed char, vector signed char);
  36120. vector bool char vec_vcmpequb (vector unsigned char,
  36121. vector unsigned char);
  36122. vector bool int vec_cmpge (vector float, vector float);
  36123. vector bool char vec_cmpgt (vector unsigned char, vector unsigned char);
  36124. vector bool char vec_cmpgt (vector signed char, vector signed char);
  36125. vector bool short vec_cmpgt (vector unsigned short,
  36126. vector unsigned short);
  36127. vector bool short vec_cmpgt (vector signed short, vector signed short);
  36128. vector bool int vec_cmpgt (vector unsigned int, vector unsigned int);
  36129. vector bool int vec_cmpgt (vector signed int, vector signed int);
  36130. vector bool int vec_cmpgt (vector float, vector float);
  36131. vector bool int vec_vcmpgtfp (vector float, vector float);
  36132. vector bool int vec_vcmpgtsw (vector signed int, vector signed int);
  36133. vector bool int vec_vcmpgtuw (vector unsigned int, vector unsigned int);
  36134. vector bool short vec_vcmpgtsh (vector signed short,
  36135. vector signed short);
  36136. vector bool short vec_vcmpgtuh (vector unsigned short,
  36137. vector unsigned short);
  36138. vector bool char vec_vcmpgtsb (vector signed char, vector signed char);
  36139. vector bool char vec_vcmpgtub (vector unsigned char,
  36140. vector unsigned char);
  36141. vector bool int vec_cmple (vector float, vector float);
  36142. vector bool char vec_cmplt (vector unsigned char, vector unsigned char);
  36143. vector bool char vec_cmplt (vector signed char, vector signed char);
  36144. vector bool short vec_cmplt (vector unsigned short,
  36145. vector unsigned short);
  36146. vector bool short vec_cmplt (vector signed short, vector signed short);
  36147. vector bool int vec_cmplt (vector unsigned int, vector unsigned int);
  36148. vector bool int vec_cmplt (vector signed int, vector signed int);
  36149. vector bool int vec_cmplt (vector float, vector float);
  36150. vector float vec_cpsgn (vector float, vector float);
  36151. vector float vec_ctf (vector unsigned int, const int);
  36152. vector float vec_ctf (vector signed int, const int);
  36153. vector double vec_ctf (vector unsigned long, const int);
  36154. vector double vec_ctf (vector signed long, const int);
  36155. vector float vec_vcfsx (vector signed int, const int);
  36156. vector float vec_vcfux (vector unsigned int, const int);
  36157. vector signed int vec_cts (vector float, const int);
  36158. vector signed long vec_cts (vector double, const int);
  36159. vector unsigned int vec_ctu (vector float, const int);
  36160. vector unsigned long vec_ctu (vector double, const int);
  36161. vector double vec_doublee (vector float);
  36162. vector double vec_doublee (vector signed int);
  36163. vector double vec_doublee (vector unsigned int);
  36164. vector double vec_doubleo (vector float);
  36165. vector double vec_doubleo (vector signed int);
  36166. vector double vec_doubleo (vector unsigned int);
  36167. vector double vec_doubleh (vector float);
  36168. vector double vec_doubleh (vector signed int);
  36169. vector double vec_doubleh (vector unsigned int);
  36170. vector double vec_doublel (vector float);
  36171. vector double vec_doublel (vector signed int);
  36172. vector double vec_doublel (vector unsigned int);
  36173. void vec_dss (const int);
  36174. void vec_dssall (void);
  36175. void vec_dst (const vector unsigned char *, int, const int);
  36176. void vec_dst (const vector signed char *, int, const int);
  36177. void vec_dst (const vector bool char *, int, const int);
  36178. void vec_dst (const vector unsigned short *, int, const int);
  36179. void vec_dst (const vector signed short *, int, const int);
  36180. void vec_dst (const vector bool short *, int, const int);
  36181. void vec_dst (const vector pixel *, int, const int);
  36182. void vec_dst (const vector unsigned int *, int, const int);
  36183. void vec_dst (const vector signed int *, int, const int);
  36184. void vec_dst (const vector bool int *, int, const int);
  36185. void vec_dst (const vector float *, int, const int);
  36186. void vec_dst (const unsigned char *, int, const int);
  36187. void vec_dst (const signed char *, int, const int);
  36188. void vec_dst (const unsigned short *, int, const int);
  36189. void vec_dst (const short *, int, const int);
  36190. void vec_dst (const unsigned int *, int, const int);
  36191. void vec_dst (const int *, int, const int);
  36192. void vec_dst (const unsigned long *, int, const int);
  36193. void vec_dst (const long *, int, const int);
  36194. void vec_dst (const float *, int, const int);
  36195. void vec_dstst (const vector unsigned char *, int, const int);
  36196. void vec_dstst (const vector signed char *, int, const int);
  36197. void vec_dstst (const vector bool char *, int, const int);
  36198. void vec_dstst (const vector unsigned short *, int, const int);
  36199. void vec_dstst (const vector signed short *, int, const int);
  36200. void vec_dstst (const vector bool short *, int, const int);
  36201. void vec_dstst (const vector pixel *, int, const int);
  36202. void vec_dstst (const vector unsigned int *, int, const int);
  36203. void vec_dstst (const vector signed int *, int, const int);
  36204. void vec_dstst (const vector bool int *, int, const int);
  36205. void vec_dstst (const vector float *, int, const int);
  36206. void vec_dstst (const unsigned char *, int, const int);
  36207. void vec_dstst (const signed char *, int, const int);
  36208. void vec_dstst (const unsigned short *, int, const int);
  36209. void vec_dstst (const short *, int, const int);
  36210. void vec_dstst (const unsigned int *, int, const int);
  36211. void vec_dstst (const int *, int, const int);
  36212. void vec_dstst (const unsigned long *, int, const int);
  36213. void vec_dstst (const long *, int, const int);
  36214. void vec_dstst (const float *, int, const int);
  36215. void vec_dststt (const vector unsigned char *, int, const int);
  36216. void vec_dststt (const vector signed char *, int, const int);
  36217. void vec_dststt (const vector bool char *, int, const int);
  36218. void vec_dststt (const vector unsigned short *, int, const int);
  36219. void vec_dststt (const vector signed short *, int, const int);
  36220. void vec_dststt (const vector bool short *, int, const int);
  36221. void vec_dststt (const vector pixel *, int, const int);
  36222. void vec_dststt (const vector unsigned int *, int, const int);
  36223. void vec_dststt (const vector signed int *, int, const int);
  36224. void vec_dststt (const vector bool int *, int, const int);
  36225. void vec_dststt (const vector float *, int, const int);
  36226. void vec_dststt (const unsigned char *, int, const int);
  36227. void vec_dststt (const signed char *, int, const int);
  36228. void vec_dststt (const unsigned short *, int, const int);
  36229. void vec_dststt (const short *, int, const int);
  36230. void vec_dststt (const unsigned int *, int, const int);
  36231. void vec_dststt (const int *, int, const int);
  36232. void vec_dststt (const unsigned long *, int, const int);
  36233. void vec_dststt (const long *, int, const int);
  36234. void vec_dststt (const float *, int, const int);
  36235. void vec_dstt (const vector unsigned char *, int, const int);
  36236. void vec_dstt (const vector signed char *, int, const int);
  36237. void vec_dstt (const vector bool char *, int, const int);
  36238. void vec_dstt (const vector unsigned short *, int, const int);
  36239. void vec_dstt (const vector signed short *, int, const int);
  36240. void vec_dstt (const vector bool short *, int, const int);
  36241. void vec_dstt (const vector pixel *, int, const int);
  36242. void vec_dstt (const vector unsigned int *, int, const int);
  36243. void vec_dstt (const vector signed int *, int, const int);
  36244. void vec_dstt (const vector bool int *, int, const int);
  36245. void vec_dstt (const vector float *, int, const int);
  36246. void vec_dstt (const unsigned char *, int, const int);
  36247. void vec_dstt (const signed char *, int, const int);
  36248. void vec_dstt (const unsigned short *, int, const int);
  36249. void vec_dstt (const short *, int, const int);
  36250. void vec_dstt (const unsigned int *, int, const int);
  36251. void vec_dstt (const int *, int, const int);
  36252. void vec_dstt (const unsigned long *, int, const int);
  36253. void vec_dstt (const long *, int, const int);
  36254. void vec_dstt (const float *, int, const int);
  36255. vector float vec_expte (vector float);
  36256. vector float vec_floor (vector float);
  36257. vector float vec_float (vector signed int);
  36258. vector float vec_float (vector unsigned int);
  36259. vector float vec_float2 (vector signed long long, vector signed long long);
  36260. vector float vec_float2 (vector unsigned long long, vector signed long long);
  36261. vector float vec_floate (vector double);
  36262. vector float vec_floate (vector signed long long);
  36263. vector float vec_floate (vector unsigned long long);
  36264. vector float vec_floato (vector double);
  36265. vector float vec_floato (vector signed long long);
  36266. vector float vec_floato (vector unsigned long long);
  36267. vector float vec_ld (int, const vector float *);
  36268. vector float vec_ld (int, const float *);
  36269. vector bool int vec_ld (int, const vector bool int *);
  36270. vector signed int vec_ld (int, const vector signed int *);
  36271. vector signed int vec_ld (int, const int *);
  36272. vector signed int vec_ld (int, const long *);
  36273. vector unsigned int vec_ld (int, const vector unsigned int *);
  36274. vector unsigned int vec_ld (int, const unsigned int *);
  36275. vector unsigned int vec_ld (int, const unsigned long *);
  36276. vector bool short vec_ld (int, const vector bool short *);
  36277. vector pixel vec_ld (int, const vector pixel *);
  36278. vector signed short vec_ld (int, const vector signed short *);
  36279. vector signed short vec_ld (int, const short *);
  36280. vector unsigned short vec_ld (int, const vector unsigned short *);
  36281. vector unsigned short vec_ld (int, const unsigned short *);
  36282. vector bool char vec_ld (int, const vector bool char *);
  36283. vector signed char vec_ld (int, const vector signed char *);
  36284. vector signed char vec_ld (int, const signed char *);
  36285. vector unsigned char vec_ld (int, const vector unsigned char *);
  36286. vector unsigned char vec_ld (int, const unsigned char *);
  36287. vector signed char vec_lde (int, const signed char *);
  36288. vector unsigned char vec_lde (int, const unsigned char *);
  36289. vector signed short vec_lde (int, const short *);
  36290. vector unsigned short vec_lde (int, const unsigned short *);
  36291. vector float vec_lde (int, const float *);
  36292. vector signed int vec_lde (int, const int *);
  36293. vector unsigned int vec_lde (int, const unsigned int *);
  36294. vector signed int vec_lde (int, const long *);
  36295. vector unsigned int vec_lde (int, const unsigned long *);
  36296. vector float vec_lvewx (int, float *);
  36297. vector signed int vec_lvewx (int, int *);
  36298. vector unsigned int vec_lvewx (int, unsigned int *);
  36299. vector signed int vec_lvewx (int, long *);
  36300. vector unsigned int vec_lvewx (int, unsigned long *);
  36301. vector signed short vec_lvehx (int, short *);
  36302. vector unsigned short vec_lvehx (int, unsigned short *);
  36303. vector signed char vec_lvebx (int, char *);
  36304. vector unsigned char vec_lvebx (int, unsigned char *);
  36305. vector float vec_ldl (int, const vector float *);
  36306. vector float vec_ldl (int, const float *);
  36307. vector bool int vec_ldl (int, const vector bool int *);
  36308. vector signed int vec_ldl (int, const vector signed int *);
  36309. vector signed int vec_ldl (int, const int *);
  36310. vector signed int vec_ldl (int, const long *);
  36311. vector unsigned int vec_ldl (int, const vector unsigned int *);
  36312. vector unsigned int vec_ldl (int, const unsigned int *);
  36313. vector unsigned int vec_ldl (int, const unsigned long *);
  36314. vector bool short vec_ldl (int, const vector bool short *);
  36315. vector pixel vec_ldl (int, const vector pixel *);
  36316. vector signed short vec_ldl (int, const vector signed short *);
  36317. vector signed short vec_ldl (int, const short *);
  36318. vector unsigned short vec_ldl (int, const vector unsigned short *);
  36319. vector unsigned short vec_ldl (int, const unsigned short *);
  36320. vector bool char vec_ldl (int, const vector bool char *);
  36321. vector signed char vec_ldl (int, const vector signed char *);
  36322. vector signed char vec_ldl (int, const signed char *);
  36323. vector unsigned char vec_ldl (int, const vector unsigned char *);
  36324. vector unsigned char vec_ldl (int, const unsigned char *);
  36325. vector float vec_loge (vector float);
  36326. vector unsigned char vec_lvsl (int, const volatile unsigned char *);
  36327. vector unsigned char vec_lvsl (int, const volatile signed char *);
  36328. vector unsigned char vec_lvsl (int, const volatile unsigned short *);
  36329. vector unsigned char vec_lvsl (int, const volatile short *);
  36330. vector unsigned char vec_lvsl (int, const volatile unsigned int *);
  36331. vector unsigned char vec_lvsl (int, const volatile int *);
  36332. vector unsigned char vec_lvsl (int, const volatile unsigned long *);
  36333. vector unsigned char vec_lvsl (int, const volatile long *);
  36334. vector unsigned char vec_lvsl (int, const volatile float *);
  36335. vector unsigned char vec_lvsr (int, const volatile unsigned char *);
  36336. vector unsigned char vec_lvsr (int, const volatile signed char *);
  36337. vector unsigned char vec_lvsr (int, const volatile unsigned short *);
  36338. vector unsigned char vec_lvsr (int, const volatile short *);
  36339. vector unsigned char vec_lvsr (int, const volatile unsigned int *);
  36340. vector unsigned char vec_lvsr (int, const volatile int *);
  36341. vector unsigned char vec_lvsr (int, const volatile unsigned long *);
  36342. vector unsigned char vec_lvsr (int, const volatile long *);
  36343. vector unsigned char vec_lvsr (int, const volatile float *);
  36344. vector float vec_madd (vector float, vector float, vector float);
  36345. vector signed short vec_madds (vector signed short,
  36346. vector signed short,
  36347. vector signed short);
  36348. vector unsigned char vec_max (vector bool char, vector unsigned char);
  36349. vector unsigned char vec_max (vector unsigned char, vector bool char);
  36350. vector unsigned char vec_max (vector unsigned char,
  36351. vector unsigned char);
  36352. vector signed char vec_max (vector bool char, vector signed char);
  36353. vector signed char vec_max (vector signed char, vector bool char);
  36354. vector signed char vec_max (vector signed char, vector signed char);
  36355. vector unsigned short vec_max (vector bool short,
  36356. vector unsigned short);
  36357. vector unsigned short vec_max (vector unsigned short,
  36358. vector bool short);
  36359. vector unsigned short vec_max (vector unsigned short,
  36360. vector unsigned short);
  36361. vector signed short vec_max (vector bool short, vector signed short);
  36362. vector signed short vec_max (vector signed short, vector bool short);
  36363. vector signed short vec_max (vector signed short, vector signed short);
  36364. vector unsigned int vec_max (vector bool int, vector unsigned int);
  36365. vector unsigned int vec_max (vector unsigned int, vector bool int);
  36366. vector unsigned int vec_max (vector unsigned int, vector unsigned int);
  36367. vector signed int vec_max (vector bool int, vector signed int);
  36368. vector signed int vec_max (vector signed int, vector bool int);
  36369. vector signed int vec_max (vector signed int, vector signed int);
  36370. vector float vec_max (vector float, vector float);
  36371. vector float vec_vmaxfp (vector float, vector float);
  36372. vector signed int vec_vmaxsw (vector bool int, vector signed int);
  36373. vector signed int vec_vmaxsw (vector signed int, vector bool int);
  36374. vector signed int vec_vmaxsw (vector signed int, vector signed int);
  36375. vector unsigned int vec_vmaxuw (vector bool int, vector unsigned int);
  36376. vector unsigned int vec_vmaxuw (vector unsigned int, vector bool int);
  36377. vector unsigned int vec_vmaxuw (vector unsigned int,
  36378. vector unsigned int);
  36379. vector signed short vec_vmaxsh (vector bool short, vector signed short);
  36380. vector signed short vec_vmaxsh (vector signed short, vector bool short);
  36381. vector signed short vec_vmaxsh (vector signed short,
  36382. vector signed short);
  36383. vector unsigned short vec_vmaxuh (vector bool short,
  36384. vector unsigned short);
  36385. vector unsigned short vec_vmaxuh (vector unsigned short,
  36386. vector bool short);
  36387. vector unsigned short vec_vmaxuh (vector unsigned short,
  36388. vector unsigned short);
  36389. vector signed char vec_vmaxsb (vector bool char, vector signed char);
  36390. vector signed char vec_vmaxsb (vector signed char, vector bool char);
  36391. vector signed char vec_vmaxsb (vector signed char, vector signed char);
  36392. vector unsigned char vec_vmaxub (vector bool char,
  36393. vector unsigned char);
  36394. vector unsigned char vec_vmaxub (vector unsigned char,
  36395. vector bool char);
  36396. vector unsigned char vec_vmaxub (vector unsigned char,
  36397. vector unsigned char);
  36398. vector bool char vec_mergeh (vector bool char, vector bool char);
  36399. vector signed char vec_mergeh (vector signed char, vector signed char);
  36400. vector unsigned char vec_mergeh (vector unsigned char,
  36401. vector unsigned char);
  36402. vector bool short vec_mergeh (vector bool short, vector bool short);
  36403. vector pixel vec_mergeh (vector pixel, vector pixel);
  36404. vector signed short vec_mergeh (vector signed short,
  36405. vector signed short);
  36406. vector unsigned short vec_mergeh (vector unsigned short,
  36407. vector unsigned short);
  36408. vector float vec_mergeh (vector float, vector float);
  36409. vector bool int vec_mergeh (vector bool int, vector bool int);
  36410. vector signed int vec_mergeh (vector signed int, vector signed int);
  36411. vector unsigned int vec_mergeh (vector unsigned int,
  36412. vector unsigned int);
  36413. vector float vec_vmrghw (vector float, vector float);
  36414. vector bool int vec_vmrghw (vector bool int, vector bool int);
  36415. vector signed int vec_vmrghw (vector signed int, vector signed int);
  36416. vector unsigned int vec_vmrghw (vector unsigned int,
  36417. vector unsigned int);
  36418. vector bool short vec_vmrghh (vector bool short, vector bool short);
  36419. vector signed short vec_vmrghh (vector signed short,
  36420. vector signed short);
  36421. vector unsigned short vec_vmrghh (vector unsigned short,
  36422. vector unsigned short);
  36423. vector pixel vec_vmrghh (vector pixel, vector pixel);
  36424. vector bool char vec_vmrghb (vector bool char, vector bool char);
  36425. vector signed char vec_vmrghb (vector signed char, vector signed char);
  36426. vector unsigned char vec_vmrghb (vector unsigned char,
  36427. vector unsigned char);
  36428. vector bool char vec_mergel (vector bool char, vector bool char);
  36429. vector signed char vec_mergel (vector signed char, vector signed char);
  36430. vector unsigned char vec_mergel (vector unsigned char,
  36431. vector unsigned char);
  36432. vector bool short vec_mergel (vector bool short, vector bool short);
  36433. vector pixel vec_mergel (vector pixel, vector pixel);
  36434. vector signed short vec_mergel (vector signed short,
  36435. vector signed short);
  36436. vector unsigned short vec_mergel (vector unsigned short,
  36437. vector unsigned short);
  36438. vector float vec_mergel (vector float, vector float);
  36439. vector bool int vec_mergel (vector bool int, vector bool int);
  36440. vector signed int vec_mergel (vector signed int, vector signed int);
  36441. vector unsigned int vec_mergel (vector unsigned int,
  36442. vector unsigned int);
  36443. vector float vec_vmrglw (vector float, vector float);
  36444. vector signed int vec_vmrglw (vector signed int, vector signed int);
  36445. vector unsigned int vec_vmrglw (vector unsigned int,
  36446. vector unsigned int);
  36447. vector bool int vec_vmrglw (vector bool int, vector bool int);
  36448. vector bool short vec_vmrglh (vector bool short, vector bool short);
  36449. vector signed short vec_vmrglh (vector signed short,
  36450. vector signed short);
  36451. vector unsigned short vec_vmrglh (vector unsigned short,
  36452. vector unsigned short);
  36453. vector pixel vec_vmrglh (vector pixel, vector pixel);
  36454. vector bool char vec_vmrglb (vector bool char, vector bool char);
  36455. vector signed char vec_vmrglb (vector signed char, vector signed char);
  36456. vector unsigned char vec_vmrglb (vector unsigned char,
  36457. vector unsigned char);
  36458. vector unsigned short vec_mfvscr (void);
  36459. vector unsigned char vec_min (vector bool char, vector unsigned char);
  36460. vector unsigned char vec_min (vector unsigned char, vector bool char);
  36461. vector unsigned char vec_min (vector unsigned char,
  36462. vector unsigned char);
  36463. vector signed char vec_min (vector bool char, vector signed char);
  36464. vector signed char vec_min (vector signed char, vector bool char);
  36465. vector signed char vec_min (vector signed char, vector signed char);
  36466. vector unsigned short vec_min (vector bool short,
  36467. vector unsigned short);
  36468. vector unsigned short vec_min (vector unsigned short,
  36469. vector bool short);
  36470. vector unsigned short vec_min (vector unsigned short,
  36471. vector unsigned short);
  36472. vector signed short vec_min (vector bool short, vector signed short);
  36473. vector signed short vec_min (vector signed short, vector bool short);
  36474. vector signed short vec_min (vector signed short, vector signed short);
  36475. vector unsigned int vec_min (vector bool int, vector unsigned int);
  36476. vector unsigned int vec_min (vector unsigned int, vector bool int);
  36477. vector unsigned int vec_min (vector unsigned int, vector unsigned int);
  36478. vector signed int vec_min (vector bool int, vector signed int);
  36479. vector signed int vec_min (vector signed int, vector bool int);
  36480. vector signed int vec_min (vector signed int, vector signed int);
  36481. vector float vec_min (vector float, vector float);
  36482. vector float vec_vminfp (vector float, vector float);
  36483. vector signed int vec_vminsw (vector bool int, vector signed int);
  36484. vector signed int vec_vminsw (vector signed int, vector bool int);
  36485. vector signed int vec_vminsw (vector signed int, vector signed int);
  36486. vector unsigned int vec_vminuw (vector bool int, vector unsigned int);
  36487. vector unsigned int vec_vminuw (vector unsigned int, vector bool int);
  36488. vector unsigned int vec_vminuw (vector unsigned int,
  36489. vector unsigned int);
  36490. vector signed short vec_vminsh (vector bool short, vector signed short);
  36491. vector signed short vec_vminsh (vector signed short, vector bool short);
  36492. vector signed short vec_vminsh (vector signed short,
  36493. vector signed short);
  36494. vector unsigned short vec_vminuh (vector bool short,
  36495. vector unsigned short);
  36496. vector unsigned short vec_vminuh (vector unsigned short,
  36497. vector bool short);
  36498. vector unsigned short vec_vminuh (vector unsigned short,
  36499. vector unsigned short);
  36500. vector signed char vec_vminsb (vector bool char, vector signed char);
  36501. vector signed char vec_vminsb (vector signed char, vector bool char);
  36502. vector signed char vec_vminsb (vector signed char, vector signed char);
  36503. vector unsigned char vec_vminub (vector bool char,
  36504. vector unsigned char);
  36505. vector unsigned char vec_vminub (vector unsigned char,
  36506. vector bool char);
  36507. vector unsigned char vec_vminub (vector unsigned char,
  36508. vector unsigned char);
  36509. vector signed short vec_mladd (vector signed short,
  36510. vector signed short,
  36511. vector signed short);
  36512. vector signed short vec_mladd (vector signed short,
  36513. vector unsigned short,
  36514. vector unsigned short);
  36515. vector signed short vec_mladd (vector unsigned short,
  36516. vector signed short,
  36517. vector signed short);
  36518. vector unsigned short vec_mladd (vector unsigned short,
  36519. vector unsigned short,
  36520. vector unsigned short);
  36521. vector signed short vec_mradds (vector signed short,
  36522. vector signed short,
  36523. vector signed short);
  36524. vector unsigned int vec_msum (vector unsigned char,
  36525. vector unsigned char,
  36526. vector unsigned int);
  36527. vector signed int vec_msum (vector signed char,
  36528. vector unsigned char,
  36529. vector signed int);
  36530. vector unsigned int vec_msum (vector unsigned short,
  36531. vector unsigned short,
  36532. vector unsigned int);
  36533. vector signed int vec_msum (vector signed short,
  36534. vector signed short,
  36535. vector signed int);
  36536. vector signed int vec_vmsumshm (vector signed short,
  36537. vector signed short,
  36538. vector signed int);
  36539. vector unsigned int vec_vmsumuhm (vector unsigned short,
  36540. vector unsigned short,
  36541. vector unsigned int);
  36542. vector signed int vec_vmsummbm (vector signed char,
  36543. vector unsigned char,
  36544. vector signed int);
  36545. vector unsigned int vec_vmsumubm (vector unsigned char,
  36546. vector unsigned char,
  36547. vector unsigned int);
  36548. vector unsigned int vec_msums (vector unsigned short,
  36549. vector unsigned short,
  36550. vector unsigned int);
  36551. vector signed int vec_msums (vector signed short,
  36552. vector signed short,
  36553. vector signed int);
  36554. vector signed int vec_vmsumshs (vector signed short,
  36555. vector signed short,
  36556. vector signed int);
  36557. vector unsigned int vec_vmsumuhs (vector unsigned short,
  36558. vector unsigned short,
  36559. vector unsigned int);
  36560. void vec_mtvscr (vector signed int);
  36561. void vec_mtvscr (vector unsigned int);
  36562. void vec_mtvscr (vector bool int);
  36563. void vec_mtvscr (vector signed short);
  36564. void vec_mtvscr (vector unsigned short);
  36565. void vec_mtvscr (vector bool short);
  36566. void vec_mtvscr (vector pixel);
  36567. void vec_mtvscr (vector signed char);
  36568. void vec_mtvscr (vector unsigned char);
  36569. void vec_mtvscr (vector bool char);
  36570. vector unsigned short vec_mule (vector unsigned char,
  36571. vector unsigned char);
  36572. vector signed short vec_mule (vector signed char,
  36573. vector signed char);
  36574. vector unsigned int vec_mule (vector unsigned short,
  36575. vector unsigned short);
  36576. vector signed int vec_mule (vector signed short, vector signed short);
  36577. vector unsigned long long vec_mule (vector unsigned int,
  36578. vector unsigned int);
  36579. vector signed long long vec_mule (vector signed int,
  36580. vector signed int);
  36581. vector signed int vec_vmulesh (vector signed short,
  36582. vector signed short);
  36583. vector unsigned int vec_vmuleuh (vector unsigned short,
  36584. vector unsigned short);
  36585. vector signed short vec_vmulesb (vector signed char,
  36586. vector signed char);
  36587. vector unsigned short vec_vmuleub (vector unsigned char,
  36588. vector unsigned char);
  36589. vector unsigned short vec_mulo (vector unsigned char,
  36590. vector unsigned char);
  36591. vector signed short vec_mulo (vector signed char, vector signed char);
  36592. vector unsigned int vec_mulo (vector unsigned short,
  36593. vector unsigned short);
  36594. vector signed int vec_mulo (vector signed short, vector signed short);
  36595. vector unsigned long long vec_mulo (vector unsigned int,
  36596. vector unsigned int);
  36597. vector signed long long vec_mulo (vector signed int,
  36598. vector signed int);
  36599. vector signed int vec_vmulosh (vector signed short,
  36600. vector signed short);
  36601. vector unsigned int vec_vmulouh (vector unsigned short,
  36602. vector unsigned short);
  36603. vector signed short vec_vmulosb (vector signed char,
  36604. vector signed char);
  36605. vector unsigned short vec_vmuloub (vector unsigned char,
  36606. vector unsigned char);
  36607. vector float vec_nmsub (vector float, vector float, vector float);
  36608. vector signed char vec_nabs (vector signed char);
  36609. vector signed short vec_nabs (vector signed short);
  36610. vector signed int vec_nabs (vector signed int);
  36611. vector float vec_nabs (vector float);
  36612. vector double vec_nabs (vector double);
  36613. vector signed char vec_neg (vector signed char);
  36614. vector signed short vec_neg (vector signed short);
  36615. vector signed int vec_neg (vector signed int);
  36616. vector signed long long vec_neg (vector signed long long);
  36617. vector float char vec_neg (vector float);
  36618. vector double vec_neg (vector double);
  36619. vector float vec_nor (vector float, vector float);
  36620. vector signed int vec_nor (vector signed int, vector signed int);
  36621. vector unsigned int vec_nor (vector unsigned int, vector unsigned int);
  36622. vector bool int vec_nor (vector bool int, vector bool int);
  36623. vector signed short vec_nor (vector signed short, vector signed short);
  36624. vector unsigned short vec_nor (vector unsigned short,
  36625. vector unsigned short);
  36626. vector bool short vec_nor (vector bool short, vector bool short);
  36627. vector signed char vec_nor (vector signed char, vector signed char);
  36628. vector unsigned char vec_nor (vector unsigned char,
  36629. vector unsigned char);
  36630. vector bool char vec_nor (vector bool char, vector bool char);
  36631. vector float vec_or (vector float, vector float);
  36632. vector float vec_or (vector float, vector bool int);
  36633. vector float vec_or (vector bool int, vector float);
  36634. vector bool int vec_or (vector bool int, vector bool int);
  36635. vector signed int vec_or (vector bool int, vector signed int);
  36636. vector signed int vec_or (vector signed int, vector bool int);
  36637. vector signed int vec_or (vector signed int, vector signed int);
  36638. vector unsigned int vec_or (vector bool int, vector unsigned int);
  36639. vector unsigned int vec_or (vector unsigned int, vector bool int);
  36640. vector unsigned int vec_or (vector unsigned int, vector unsigned int);
  36641. vector bool short vec_or (vector bool short, vector bool short);
  36642. vector signed short vec_or (vector bool short, vector signed short);
  36643. vector signed short vec_or (vector signed short, vector bool short);
  36644. vector signed short vec_or (vector signed short, vector signed short);
  36645. vector unsigned short vec_or (vector bool short, vector unsigned short);
  36646. vector unsigned short vec_or (vector unsigned short, vector bool short);
  36647. vector unsigned short vec_or (vector unsigned short,
  36648. vector unsigned short);
  36649. vector signed char vec_or (vector bool char, vector signed char);
  36650. vector bool char vec_or (vector bool char, vector bool char);
  36651. vector signed char vec_or (vector signed char, vector bool char);
  36652. vector signed char vec_or (vector signed char, vector signed char);
  36653. vector unsigned char vec_or (vector bool char, vector unsigned char);
  36654. vector unsigned char vec_or (vector unsigned char, vector bool char);
  36655. vector unsigned char vec_or (vector unsigned char,
  36656. vector unsigned char);
  36657. vector signed char vec_pack (vector signed short, vector signed short);
  36658. vector unsigned char vec_pack (vector unsigned short,
  36659. vector unsigned short);
  36660. vector bool char vec_pack (vector bool short, vector bool short);
  36661. vector signed short vec_pack (vector signed int, vector signed int);
  36662. vector unsigned short vec_pack (vector unsigned int,
  36663. vector unsigned int);
  36664. vector bool short vec_pack (vector bool int, vector bool int);
  36665. vector bool short vec_vpkuwum (vector bool int, vector bool int);
  36666. vector signed short vec_vpkuwum (vector signed int, vector signed int);
  36667. vector unsigned short vec_vpkuwum (vector unsigned int,
  36668. vector unsigned int);
  36669. vector bool char vec_vpkuhum (vector bool short, vector bool short);
  36670. vector signed char vec_vpkuhum (vector signed short,
  36671. vector signed short);
  36672. vector unsigned char vec_vpkuhum (vector unsigned short,
  36673. vector unsigned short);
  36674. vector pixel vec_packpx (vector unsigned int, vector unsigned int);
  36675. vector unsigned char vec_packs (vector unsigned short,
  36676. vector unsigned short);
  36677. vector signed char vec_packs (vector signed short, vector signed short);
  36678. vector unsigned short vec_packs (vector unsigned int,
  36679. vector unsigned int);
  36680. vector signed short vec_packs (vector signed int, vector signed int);
  36681. vector signed short vec_vpkswss (vector signed int, vector signed int);
  36682. vector unsigned short vec_vpkuwus (vector unsigned int,
  36683. vector unsigned int);
  36684. vector signed char vec_vpkshss (vector signed short,
  36685. vector signed short);
  36686. vector unsigned char vec_vpkuhus (vector unsigned short,
  36687. vector unsigned short);
  36688. vector unsigned char vec_packsu (vector unsigned short,
  36689. vector unsigned short);
  36690. vector unsigned char vec_packsu (vector signed short,
  36691. vector signed short);
  36692. vector unsigned short vec_packsu (vector unsigned int,
  36693. vector unsigned int);
  36694. vector unsigned short vec_packsu (vector signed int, vector signed int);
  36695. vector unsigned short vec_vpkswus (vector signed int,
  36696. vector signed int);
  36697. vector unsigned char vec_vpkshus (vector signed short,
  36698. vector signed short);
  36699. vector float vec_perm (vector float,
  36700. vector float,
  36701. vector unsigned char);
  36702. vector signed int vec_perm (vector signed int,
  36703. vector signed int,
  36704. vector unsigned char);
  36705. vector unsigned int vec_perm (vector unsigned int,
  36706. vector unsigned int,
  36707. vector unsigned char);
  36708. vector bool int vec_perm (vector bool int,
  36709. vector bool int,
  36710. vector unsigned char);
  36711. vector signed short vec_perm (vector signed short,
  36712. vector signed short,
  36713. vector unsigned char);
  36714. vector unsigned short vec_perm (vector unsigned short,
  36715. vector unsigned short,
  36716. vector unsigned char);
  36717. vector bool short vec_perm (vector bool short,
  36718. vector bool short,
  36719. vector unsigned char);
  36720. vector pixel vec_perm (vector pixel,
  36721. vector pixel,
  36722. vector unsigned char);
  36723. vector signed char vec_perm (vector signed char,
  36724. vector signed char,
  36725. vector unsigned char);
  36726. vector unsigned char vec_perm (vector unsigned char,
  36727. vector unsigned char,
  36728. vector unsigned char);
  36729. vector bool char vec_perm (vector bool char,
  36730. vector bool char,
  36731. vector unsigned char);
  36732. vector float vec_re (vector float);
  36733. vector bool char vec_reve (vector bool char);
  36734. vector signed char vec_reve (vector signed char);
  36735. vector unsigned char vec_reve (vector unsigned char);
  36736. vector bool int vec_reve (vector bool int);
  36737. vector signed int vec_reve (vector signed int);
  36738. vector unsigned int vec_reve (vector unsigned int);
  36739. vector bool long long vec_reve (vector bool long long);
  36740. vector signed long long vec_reve (vector signed long long);
  36741. vector unsigned long long vec_reve (vector unsigned long long);
  36742. vector bool short vec_reve (vector bool short);
  36743. vector signed short vec_reve (vector signed short);
  36744. vector unsigned short vec_reve (vector unsigned short);
  36745. vector signed char vec_rl (vector signed char,
  36746. vector unsigned char);
  36747. vector unsigned char vec_rl (vector unsigned char,
  36748. vector unsigned char);
  36749. vector signed short vec_rl (vector signed short, vector unsigned short);
  36750. vector unsigned short vec_rl (vector unsigned short,
  36751. vector unsigned short);
  36752. vector signed int vec_rl (vector signed int, vector unsigned int);
  36753. vector unsigned int vec_rl (vector unsigned int, vector unsigned int);
  36754. vector signed int vec_vrlw (vector signed int, vector unsigned int);
  36755. vector unsigned int vec_vrlw (vector unsigned int, vector unsigned int);
  36756. vector signed short vec_vrlh (vector signed short,
  36757. vector unsigned short);
  36758. vector unsigned short vec_vrlh (vector unsigned short,
  36759. vector unsigned short);
  36760. vector signed char vec_vrlb (vector signed char, vector unsigned char);
  36761. vector unsigned char vec_vrlb (vector unsigned char,
  36762. vector unsigned char);
  36763. vector float vec_round (vector float);
  36764. vector float vec_recip (vector float, vector float);
  36765. vector float vec_rsqrt (vector float);
  36766. vector float vec_rsqrte (vector float);
  36767. vector float vec_sel (vector float, vector float, vector bool int);
  36768. vector float vec_sel (vector float, vector float, vector unsigned int);
  36769. vector signed int vec_sel (vector signed int,
  36770. vector signed int,
  36771. vector bool int);
  36772. vector signed int vec_sel (vector signed int,
  36773. vector signed int,
  36774. vector unsigned int);
  36775. vector unsigned int vec_sel (vector unsigned int,
  36776. vector unsigned int,
  36777. vector bool int);
  36778. vector unsigned int vec_sel (vector unsigned int,
  36779. vector unsigned int,
  36780. vector unsigned int);
  36781. vector bool int vec_sel (vector bool int,
  36782. vector bool int,
  36783. vector bool int);
  36784. vector bool int vec_sel (vector bool int,
  36785. vector bool int,
  36786. vector unsigned int);
  36787. vector signed short vec_sel (vector signed short,
  36788. vector signed short,
  36789. vector bool short);
  36790. vector signed short vec_sel (vector signed short,
  36791. vector signed short,
  36792. vector unsigned short);
  36793. vector unsigned short vec_sel (vector unsigned short,
  36794. vector unsigned short,
  36795. vector bool short);
  36796. vector unsigned short vec_sel (vector unsigned short,
  36797. vector unsigned short,
  36798. vector unsigned short);
  36799. vector bool short vec_sel (vector bool short,
  36800. vector bool short,
  36801. vector bool short);
  36802. vector bool short vec_sel (vector bool short,
  36803. vector bool short,
  36804. vector unsigned short);
  36805. vector signed char vec_sel (vector signed char,
  36806. vector signed char,
  36807. vector bool char);
  36808. vector signed char vec_sel (vector signed char,
  36809. vector signed char,
  36810. vector unsigned char);
  36811. vector unsigned char vec_sel (vector unsigned char,
  36812. vector unsigned char,
  36813. vector bool char);
  36814. vector unsigned char vec_sel (vector unsigned char,
  36815. vector unsigned char,
  36816. vector unsigned char);
  36817. vector bool char vec_sel (vector bool char,
  36818. vector bool char,
  36819. vector bool char);
  36820. vector bool char vec_sel (vector bool char,
  36821. vector bool char,
  36822. vector unsigned char);
  36823. vector signed long long vec_signed (vector double);
  36824. vector signed int vec_signed (vector float);
  36825. vector signed int vec_signede (vector double);
  36826. vector signed int vec_signedo (vector double);
  36827. vector signed int vec_signed2 (vector double, vector double);
  36828. vector signed char vec_sl (vector signed char,
  36829. vector unsigned char);
  36830. vector unsigned char vec_sl (vector unsigned char,
  36831. vector unsigned char);
  36832. vector signed short vec_sl (vector signed short, vector unsigned short);
  36833. vector unsigned short vec_sl (vector unsigned short,
  36834. vector unsigned short);
  36835. vector signed int vec_sl (vector signed int, vector unsigned int);
  36836. vector unsigned int vec_sl (vector unsigned int, vector unsigned int);
  36837. vector signed int vec_vslw (vector signed int, vector unsigned int);
  36838. vector unsigned int vec_vslw (vector unsigned int, vector unsigned int);
  36839. vector signed short vec_vslh (vector signed short,
  36840. vector unsigned short);
  36841. vector unsigned short vec_vslh (vector unsigned short,
  36842. vector unsigned short);
  36843. vector signed char vec_vslb (vector signed char, vector unsigned char);
  36844. vector unsigned char vec_vslb (vector unsigned char,
  36845. vector unsigned char);
  36846. vector float vec_sld (vector float, vector float, const int);
  36847. vector double vec_sld (vector double, vector double, const int);
  36848. vector signed int vec_sld (vector signed int,
  36849. vector signed int,
  36850. const int);
  36851. vector unsigned int vec_sld (vector unsigned int,
  36852. vector unsigned int,
  36853. const int);
  36854. vector bool int vec_sld (vector bool int,
  36855. vector bool int,
  36856. const int);
  36857. vector signed short vec_sld (vector signed short,
  36858. vector signed short,
  36859. const int);
  36860. vector unsigned short vec_sld (vector unsigned short,
  36861. vector unsigned short,
  36862. const int);
  36863. vector bool short vec_sld (vector bool short,
  36864. vector bool short,
  36865. const int);
  36866. vector pixel vec_sld (vector pixel,
  36867. vector pixel,
  36868. const int);
  36869. vector signed char vec_sld (vector signed char,
  36870. vector signed char,
  36871. const int);
  36872. vector unsigned char vec_sld (vector unsigned char,
  36873. vector unsigned char,
  36874. const int);
  36875. vector bool char vec_sld (vector bool char,
  36876. vector bool char,
  36877. const int);
  36878. vector bool long long int vec_sld (vector bool long long int,
  36879. vector bool long long int, const int);
  36880. vector long long int vec_sld (vector long long int,
  36881. vector long long int, const int);
  36882. vector unsigned long long int vec_sld (vector unsigned long long int,
  36883. vector unsigned long long int,
  36884. const int);
  36885. vector signed char vec_sldw (vector signed char,
  36886. vector signed char,
  36887. const int);
  36888. vector unsigned char vec_sldw (vector unsigned char,
  36889. vector unsigned char,
  36890. const int);
  36891. vector signed short vec_sldw (vector signed short,
  36892. vector signed short,
  36893. const int);
  36894. vector unsigned short vec_sldw (vector unsigned short,
  36895. vector unsigned short,
  36896. const int);
  36897. vector signed int vec_sldw (vector signed int,
  36898. vector signed int,
  36899. const int);
  36900. vector unsigned int vec_sldw (vector unsigned int,
  36901. vector unsigned int,
  36902. const int);
  36903. vector signed long long vec_sldw (vector signed long long,
  36904. vector signed long long,
  36905. const int);
  36906. vector unsigned long long vec_sldw (vector unsigned long long,
  36907. vector unsigned long long,
  36908. const int);
  36909. vector signed int vec_sll (vector signed int,
  36910. vector unsigned int);
  36911. vector signed int vec_sll (vector signed int,
  36912. vector unsigned short);
  36913. vector signed int vec_sll (vector signed int,
  36914. vector unsigned char);
  36915. vector unsigned int vec_sll (vector unsigned int,
  36916. vector unsigned int);
  36917. vector unsigned int vec_sll (vector unsigned int,
  36918. vector unsigned short);
  36919. vector unsigned int vec_sll (vector unsigned int,
  36920. vector unsigned char);
  36921. vector bool int vec_sll (vector bool int,
  36922. vector unsigned int);
  36923. vector bool int vec_sll (vector bool int,
  36924. vector unsigned short);
  36925. vector bool int vec_sll (vector bool int,
  36926. vector unsigned char);
  36927. vector signed short vec_sll (vector signed short,
  36928. vector unsigned int);
  36929. vector signed short vec_sll (vector signed short,
  36930. vector unsigned short);
  36931. vector signed short vec_sll (vector signed short,
  36932. vector unsigned char);
  36933. vector unsigned short vec_sll (vector unsigned short,
  36934. vector unsigned int);
  36935. vector unsigned short vec_sll (vector unsigned short,
  36936. vector unsigned short);
  36937. vector unsigned short vec_sll (vector unsigned short,
  36938. vector unsigned char);
  36939. vector long long int vec_sll (vector long long int,
  36940. vector unsigned char);
  36941. vector unsigned long long int vec_sll (vector unsigned long long int,
  36942. vector unsigned char);
  36943. vector bool short vec_sll (vector bool short, vector unsigned int);
  36944. vector bool short vec_sll (vector bool short, vector unsigned short);
  36945. vector bool short vec_sll (vector bool short, vector unsigned char);
  36946. vector pixel vec_sll (vector pixel, vector unsigned int);
  36947. vector pixel vec_sll (vector pixel, vector unsigned short);
  36948. vector pixel vec_sll (vector pixel, vector unsigned char);
  36949. vector signed char vec_sll (vector signed char, vector unsigned int);
  36950. vector signed char vec_sll (vector signed char, vector unsigned short);
  36951. vector signed char vec_sll (vector signed char, vector unsigned char);
  36952. vector unsigned char vec_sll (vector unsigned char,
  36953. vector unsigned int);
  36954. vector unsigned char vec_sll (vector unsigned char,
  36955. vector unsigned short);
  36956. vector unsigned char vec_sll (vector unsigned char,
  36957. vector unsigned char);
  36958. vector bool char vec_sll (vector bool char, vector unsigned int);
  36959. vector bool char vec_sll (vector bool char, vector unsigned short);
  36960. vector bool char vec_sll (vector bool char, vector unsigned char);
  36961. vector float vec_slo (vector float, vector signed char);
  36962. vector float vec_slo (vector float, vector unsigned char);
  36963. vector signed int vec_slo (vector signed int, vector signed char);
  36964. vector signed int vec_slo (vector signed int, vector unsigned char);
  36965. vector unsigned int vec_slo (vector unsigned int, vector signed char);
  36966. vector unsigned int vec_slo (vector unsigned int, vector unsigned char);
  36967. vector signed short vec_slo (vector signed short, vector signed char);
  36968. vector signed short vec_slo (vector signed short, vector unsigned char);
  36969. vector unsigned short vec_slo (vector unsigned short,
  36970. vector signed char);
  36971. vector unsigned short vec_slo (vector unsigned short,
  36972. vector unsigned char);
  36973. vector pixel vec_slo (vector pixel, vector signed char);
  36974. vector pixel vec_slo (vector pixel, vector unsigned char);
  36975. vector signed char vec_slo (vector signed char, vector signed char);
  36976. vector signed char vec_slo (vector signed char, vector unsigned char);
  36977. vector unsigned char vec_slo (vector unsigned char, vector signed char);
  36978. vector unsigned char vec_slo (vector unsigned char,
  36979. vector unsigned char);
  36980. vector signed long long vec_slo (vector signed long long, vector signed char);
  36981. vector signed long long vec_slo (vector signed long long, vector unsigned char);
  36982. vector unsigned long long vec_slo (vector unsigned long long, vector signed char);
  36983. vector unsigned long long vec_slo (vector unsigned long long, vector unsigned char);
  36984. vector signed char vec_splat (vector signed char, const int);
  36985. vector unsigned char vec_splat (vector unsigned char, const int);
  36986. vector bool char vec_splat (vector bool char, const int);
  36987. vector signed short vec_splat (vector signed short, const int);
  36988. vector unsigned short vec_splat (vector unsigned short, const int);
  36989. vector bool short vec_splat (vector bool short, const int);
  36990. vector pixel vec_splat (vector pixel, const int);
  36991. vector float vec_splat (vector float, const int);
  36992. vector signed int vec_splat (vector signed int, const int);
  36993. vector unsigned int vec_splat (vector unsigned int, const int);
  36994. vector bool int vec_splat (vector bool int, const int);
  36995. vector signed long vec_splat (vector signed long, const int);
  36996. vector unsigned long vec_splat (vector unsigned long, const int);
  36997. vector signed char vec_splats (signed char);
  36998. vector unsigned char vec_splats (unsigned char);
  36999. vector signed short vec_splats (signed short);
  37000. vector unsigned short vec_splats (unsigned short);
  37001. vector signed int vec_splats (signed int);
  37002. vector unsigned int vec_splats (unsigned int);
  37003. vector float vec_splats (float);
  37004. vector float vec_vspltw (vector float, const int);
  37005. vector signed int vec_vspltw (vector signed int, const int);
  37006. vector unsigned int vec_vspltw (vector unsigned int, const int);
  37007. vector bool int vec_vspltw (vector bool int, const int);
  37008. vector bool short vec_vsplth (vector bool short, const int);
  37009. vector signed short vec_vsplth (vector signed short, const int);
  37010. vector unsigned short vec_vsplth (vector unsigned short, const int);
  37011. vector pixel vec_vsplth (vector pixel, const int);
  37012. vector signed char vec_vspltb (vector signed char, const int);
  37013. vector unsigned char vec_vspltb (vector unsigned char, const int);
  37014. vector bool char vec_vspltb (vector bool char, const int);
  37015. vector signed char vec_splat_s8 (const int);
  37016. vector signed short vec_splat_s16 (const int);
  37017. vector signed int vec_splat_s32 (const int);
  37018. vector unsigned char vec_splat_u8 (const int);
  37019. vector unsigned short vec_splat_u16 (const int);
  37020. vector unsigned int vec_splat_u32 (const int);
  37021. vector signed char vec_sr (vector signed char, vector unsigned char);
  37022. vector unsigned char vec_sr (vector unsigned char,
  37023. vector unsigned char);
  37024. vector signed short vec_sr (vector signed short,
  37025. vector unsigned short);
  37026. vector unsigned short vec_sr (vector unsigned short,
  37027. vector unsigned short);
  37028. vector signed int vec_sr (vector signed int, vector unsigned int);
  37029. vector unsigned int vec_sr (vector unsigned int, vector unsigned int);
  37030. vector signed int vec_vsrw (vector signed int, vector unsigned int);
  37031. vector unsigned int vec_vsrw (vector unsigned int, vector unsigned int);
  37032. vector signed short vec_vsrh (vector signed short,
  37033. vector unsigned short);
  37034. vector unsigned short vec_vsrh (vector unsigned short,
  37035. vector unsigned short);
  37036. vector signed char vec_vsrb (vector signed char, vector unsigned char);
  37037. vector unsigned char vec_vsrb (vector unsigned char,
  37038. vector unsigned char);
  37039. vector signed char vec_sra (vector signed char, vector unsigned char);
  37040. vector unsigned char vec_sra (vector unsigned char,
  37041. vector unsigned char);
  37042. vector signed short vec_sra (vector signed short,
  37043. vector unsigned short);
  37044. vector unsigned short vec_sra (vector unsigned short,
  37045. vector unsigned short);
  37046. vector signed int vec_sra (vector signed int, vector unsigned int);
  37047. vector unsigned int vec_sra (vector unsigned int, vector unsigned int);
  37048. vector signed int vec_vsraw (vector signed int, vector unsigned int);
  37049. vector unsigned int vec_vsraw (vector unsigned int,
  37050. vector unsigned int);
  37051. vector signed short vec_vsrah (vector signed short,
  37052. vector unsigned short);
  37053. vector unsigned short vec_vsrah (vector unsigned short,
  37054. vector unsigned short);
  37055. vector signed char vec_vsrab (vector signed char, vector unsigned char);
  37056. vector unsigned char vec_vsrab (vector unsigned char,
  37057. vector unsigned char);
  37058. vector signed int vec_srl (vector signed int, vector unsigned int);
  37059. vector signed int vec_srl (vector signed int, vector unsigned short);
  37060. vector signed int vec_srl (vector signed int, vector unsigned char);
  37061. vector unsigned int vec_srl (vector unsigned int, vector unsigned int);
  37062. vector unsigned int vec_srl (vector unsigned int,
  37063. vector unsigned short);
  37064. vector unsigned int vec_srl (vector unsigned int, vector unsigned char);
  37065. vector bool int vec_srl (vector bool int, vector unsigned int);
  37066. vector bool int vec_srl (vector bool int, vector unsigned short);
  37067. vector bool int vec_srl (vector bool int, vector unsigned char);
  37068. vector signed short vec_srl (vector signed short, vector unsigned int);
  37069. vector signed short vec_srl (vector signed short,
  37070. vector unsigned short);
  37071. vector signed short vec_srl (vector signed short, vector unsigned char);
  37072. vector unsigned short vec_srl (vector unsigned short,
  37073. vector unsigned int);
  37074. vector unsigned short vec_srl (vector unsigned short,
  37075. vector unsigned short);
  37076. vector unsigned short vec_srl (vector unsigned short,
  37077. vector unsigned char);
  37078. vector long long int vec_srl (vector long long int,
  37079. vector unsigned char);
  37080. vector unsigned long long int vec_srl (vector unsigned long long int,
  37081. vector unsigned char);
  37082. vector bool short vec_srl (vector bool short, vector unsigned int);
  37083. vector bool short vec_srl (vector bool short, vector unsigned short);
  37084. vector bool short vec_srl (vector bool short, vector unsigned char);
  37085. vector pixel vec_srl (vector pixel, vector unsigned int);
  37086. vector pixel vec_srl (vector pixel, vector unsigned short);
  37087. vector pixel vec_srl (vector pixel, vector unsigned char);
  37088. vector signed char vec_srl (vector signed char, vector unsigned int);
  37089. vector signed char vec_srl (vector signed char, vector unsigned short);
  37090. vector signed char vec_srl (vector signed char, vector unsigned char);
  37091. vector unsigned char vec_srl (vector unsigned char,
  37092. vector unsigned int);
  37093. vector unsigned char vec_srl (vector unsigned char,
  37094. vector unsigned short);
  37095. vector unsigned char vec_srl (vector unsigned char,
  37096. vector unsigned char);
  37097. vector bool char vec_srl (vector bool char, vector unsigned int);
  37098. vector bool char vec_srl (vector bool char, vector unsigned short);
  37099. vector bool char vec_srl (vector bool char, vector unsigned char);
  37100. vector float vec_sro (vector float, vector signed char);
  37101. vector float vec_sro (vector float, vector unsigned char);
  37102. vector signed int vec_sro (vector signed int, vector signed char);
  37103. vector signed int vec_sro (vector signed int, vector unsigned char);
  37104. vector unsigned int vec_sro (vector unsigned int, vector signed char);
  37105. vector unsigned int vec_sro (vector unsigned int, vector unsigned char);
  37106. vector signed short vec_sro (vector signed short, vector signed char);
  37107. vector signed short vec_sro (vector signed short, vector unsigned char);
  37108. vector unsigned short vec_sro (vector unsigned short,
  37109. vector signed char);
  37110. vector unsigned short vec_sro (vector unsigned short,
  37111. vector unsigned char);
  37112. vector long long int vec_sro (vector long long int,
  37113. vector char);
  37114. vector long long int vec_sro (vector long long int,
  37115. vector unsigned char);
  37116. vector unsigned long long int vec_sro (vector unsigned long long int,
  37117. vector char);
  37118. vector unsigned long long int vec_sro (vector unsigned long long int,
  37119. vector unsigned char);
  37120. vector pixel vec_sro (vector pixel, vector signed char);
  37121. vector pixel vec_sro (vector pixel, vector unsigned char);
  37122. vector signed char vec_sro (vector signed char, vector signed char);
  37123. vector signed char vec_sro (vector signed char, vector unsigned char);
  37124. vector unsigned char vec_sro (vector unsigned char, vector signed char);
  37125. vector unsigned char vec_sro (vector unsigned char,
  37126. vector unsigned char);
  37127. void vec_st (vector float, int, vector float *);
  37128. void vec_st (vector float, int, float *);
  37129. void vec_st (vector signed int, int, vector signed int *);
  37130. void vec_st (vector signed int, int, int *);
  37131. void vec_st (vector unsigned int, int, vector unsigned int *);
  37132. void vec_st (vector unsigned int, int, unsigned int *);
  37133. void vec_st (vector bool int, int, vector bool int *);
  37134. void vec_st (vector bool int, int, unsigned int *);
  37135. void vec_st (vector bool int, int, int *);
  37136. void vec_st (vector signed short, int, vector signed short *);
  37137. void vec_st (vector signed short, int, short *);
  37138. void vec_st (vector unsigned short, int, vector unsigned short *);
  37139. void vec_st (vector unsigned short, int, unsigned short *);
  37140. void vec_st (vector bool short, int, vector bool short *);
  37141. void vec_st (vector bool short, int, unsigned short *);
  37142. void vec_st (vector pixel, int, vector pixel *);
  37143. void vec_st (vector pixel, int, unsigned short *);
  37144. void vec_st (vector pixel, int, short *);
  37145. void vec_st (vector bool short, int, short *);
  37146. void vec_st (vector signed char, int, vector signed char *);
  37147. void vec_st (vector signed char, int, signed char *);
  37148. void vec_st (vector unsigned char, int, vector unsigned char *);
  37149. void vec_st (vector unsigned char, int, unsigned char *);
  37150. void vec_st (vector bool char, int, vector bool char *);
  37151. void vec_st (vector bool char, int, unsigned char *);
  37152. void vec_st (vector bool char, int, signed char *);
  37153. void vec_ste (vector signed char, int, signed char *);
  37154. void vec_ste (vector unsigned char, int, unsigned char *);
  37155. void vec_ste (vector bool char, int, signed char *);
  37156. void vec_ste (vector bool char, int, unsigned char *);
  37157. void vec_ste (vector signed short, int, short *);
  37158. void vec_ste (vector unsigned short, int, unsigned short *);
  37159. void vec_ste (vector bool short, int, short *);
  37160. void vec_ste (vector bool short, int, unsigned short *);
  37161. void vec_ste (vector pixel, int, short *);
  37162. void vec_ste (vector pixel, int, unsigned short *);
  37163. void vec_ste (vector float, int, float *);
  37164. void vec_ste (vector signed int, int, int *);
  37165. void vec_ste (vector unsigned int, int, unsigned int *);
  37166. void vec_ste (vector bool int, int, int *);
  37167. void vec_ste (vector bool int, int, unsigned int *);
  37168. void vec_stvewx (vector float, int, float *);
  37169. void vec_stvewx (vector signed int, int, int *);
  37170. void vec_stvewx (vector unsigned int, int, unsigned int *);
  37171. void vec_stvewx (vector bool int, int, int *);
  37172. void vec_stvewx (vector bool int, int, unsigned int *);
  37173. void vec_stvehx (vector signed short, int, short *);
  37174. void vec_stvehx (vector unsigned short, int, unsigned short *);
  37175. void vec_stvehx (vector bool short, int, short *);
  37176. void vec_stvehx (vector bool short, int, unsigned short *);
  37177. void vec_stvehx (vector pixel, int, short *);
  37178. void vec_stvehx (vector pixel, int, unsigned short *);
  37179. void vec_stvebx (vector signed char, int, signed char *);
  37180. void vec_stvebx (vector unsigned char, int, unsigned char *);
  37181. void vec_stvebx (vector bool char, int, signed char *);
  37182. void vec_stvebx (vector bool char, int, unsigned char *);
  37183. void vec_stl (vector float, int, vector float *);
  37184. void vec_stl (vector float, int, float *);
  37185. void vec_stl (vector signed int, int, vector signed int *);
  37186. void vec_stl (vector signed int, int, int *);
  37187. void vec_stl (vector unsigned int, int, vector unsigned int *);
  37188. void vec_stl (vector unsigned int, int, unsigned int *);
  37189. void vec_stl (vector bool int, int, vector bool int *);
  37190. void vec_stl (vector bool int, int, unsigned int *);
  37191. void vec_stl (vector bool int, int, int *);
  37192. void vec_stl (vector signed short, int, vector signed short *);
  37193. void vec_stl (vector signed short, int, short *);
  37194. void vec_stl (vector unsigned short, int, vector unsigned short *);
  37195. void vec_stl (vector unsigned short, int, unsigned short *);
  37196. void vec_stl (vector bool short, int, vector bool short *);
  37197. void vec_stl (vector bool short, int, unsigned short *);
  37198. void vec_stl (vector bool short, int, short *);
  37199. void vec_stl (vector pixel, int, vector pixel *);
  37200. void vec_stl (vector pixel, int, unsigned short *);
  37201. void vec_stl (vector pixel, int, short *);
  37202. void vec_stl (vector signed char, int, vector signed char *);
  37203. void vec_stl (vector signed char, int, signed char *);
  37204. void vec_stl (vector unsigned char, int, vector unsigned char *);
  37205. void vec_stl (vector unsigned char, int, unsigned char *);
  37206. void vec_stl (vector bool char, int, vector bool char *);
  37207. void vec_stl (vector bool char, int, unsigned char *);
  37208. void vec_stl (vector bool char, int, signed char *);
  37209. vector signed char vec_sub (vector bool char, vector signed char);
  37210. vector signed char vec_sub (vector signed char, vector bool char);
  37211. vector signed char vec_sub (vector signed char, vector signed char);
  37212. vector unsigned char vec_sub (vector bool char, vector unsigned char);
  37213. vector unsigned char vec_sub (vector unsigned char, vector bool char);
  37214. vector unsigned char vec_sub (vector unsigned char,
  37215. vector unsigned char);
  37216. vector signed short vec_sub (vector bool short, vector signed short);
  37217. vector signed short vec_sub (vector signed short, vector bool short);
  37218. vector signed short vec_sub (vector signed short, vector signed short);
  37219. vector unsigned short vec_sub (vector bool short,
  37220. vector unsigned short);
  37221. vector unsigned short vec_sub (vector unsigned short,
  37222. vector bool short);
  37223. vector unsigned short vec_sub (vector unsigned short,
  37224. vector unsigned short);
  37225. vector signed int vec_sub (vector bool int, vector signed int);
  37226. vector signed int vec_sub (vector signed int, vector bool int);
  37227. vector signed int vec_sub (vector signed int, vector signed int);
  37228. vector unsigned int vec_sub (vector bool int, vector unsigned int);
  37229. vector unsigned int vec_sub (vector unsigned int, vector bool int);
  37230. vector unsigned int vec_sub (vector unsigned int, vector unsigned int);
  37231. vector float vec_sub (vector float, vector float);
  37232. vector float vec_vsubfp (vector float, vector float);
  37233. vector signed int vec_vsubuwm (vector bool int, vector signed int);
  37234. vector signed int vec_vsubuwm (vector signed int, vector bool int);
  37235. vector signed int vec_vsubuwm (vector signed int, vector signed int);
  37236. vector unsigned int vec_vsubuwm (vector bool int, vector unsigned int);
  37237. vector unsigned int vec_vsubuwm (vector unsigned int, vector bool int);
  37238. vector unsigned int vec_vsubuwm (vector unsigned int,
  37239. vector unsigned int);
  37240. vector signed short vec_vsubuhm (vector bool short,
  37241. vector signed short);
  37242. vector signed short vec_vsubuhm (vector signed short,
  37243. vector bool short);
  37244. vector signed short vec_vsubuhm (vector signed short,
  37245. vector signed short);
  37246. vector unsigned short vec_vsubuhm (vector bool short,
  37247. vector unsigned short);
  37248. vector unsigned short vec_vsubuhm (vector unsigned short,
  37249. vector bool short);
  37250. vector unsigned short vec_vsubuhm (vector unsigned short,
  37251. vector unsigned short);
  37252. vector signed char vec_vsububm (vector bool char, vector signed char);
  37253. vector signed char vec_vsububm (vector signed char, vector bool char);
  37254. vector signed char vec_vsububm (vector signed char, vector signed char);
  37255. vector unsigned char vec_vsububm (vector bool char,
  37256. vector unsigned char);
  37257. vector unsigned char vec_vsububm (vector unsigned char,
  37258. vector bool char);
  37259. vector unsigned char vec_vsububm (vector unsigned char,
  37260. vector unsigned char);
  37261. vector signed int vec_subc (vector signed int, vector signed int);
  37262. vector unsigned int vec_subc (vector unsigned int, vector unsigned int);
  37263. vector signed __int128 vec_subc (vector signed __int128,
  37264. vector signed __int128);
  37265. vector unsigned __int128 vec_subc (vector unsigned __int128,
  37266. vector unsigned __int128);
  37267. vector signed int vec_sube (vector signed int, vector signed int,
  37268. vector signed int);
  37269. vector unsigned int vec_sube (vector unsigned int, vector unsigned int,
  37270. vector unsigned int);
  37271. vector signed __int128 vec_sube (vector signed __int128,
  37272. vector signed __int128,
  37273. vector signed __int128);
  37274. vector unsigned __int128 vec_sube (vector unsigned __int128,
  37275. vector unsigned __int128,
  37276. vector unsigned __int128);
  37277. vector signed int vec_subec (vector signed int, vector signed int,
  37278. vector signed int);
  37279. vector unsigned int vec_subec (vector unsigned int, vector unsigned int,
  37280. vector unsigned int);
  37281. vector signed __int128 vec_subec (vector signed __int128,
  37282. vector signed __int128,
  37283. vector signed __int128);
  37284. vector unsigned __int128 vec_subec (vector unsigned __int128,
  37285. vector unsigned __int128,
  37286. vector unsigned __int128);
  37287. vector unsigned char vec_subs (vector bool char, vector unsigned char);
  37288. vector unsigned char vec_subs (vector unsigned char, vector bool char);
  37289. vector unsigned char vec_subs (vector unsigned char,
  37290. vector unsigned char);
  37291. vector signed char vec_subs (vector bool char, vector signed char);
  37292. vector signed char vec_subs (vector signed char, vector bool char);
  37293. vector signed char vec_subs (vector signed char, vector signed char);
  37294. vector unsigned short vec_subs (vector bool short,
  37295. vector unsigned short);
  37296. vector unsigned short vec_subs (vector unsigned short,
  37297. vector bool short);
  37298. vector unsigned short vec_subs (vector unsigned short,
  37299. vector unsigned short);
  37300. vector signed short vec_subs (vector bool short, vector signed short);
  37301. vector signed short vec_subs (vector signed short, vector bool short);
  37302. vector signed short vec_subs (vector signed short, vector signed short);
  37303. vector unsigned int vec_subs (vector bool int, vector unsigned int);
  37304. vector unsigned int vec_subs (vector unsigned int, vector bool int);
  37305. vector unsigned int vec_subs (vector unsigned int, vector unsigned int);
  37306. vector signed int vec_subs (vector bool int, vector signed int);
  37307. vector signed int vec_subs (vector signed int, vector bool int);
  37308. vector signed int vec_subs (vector signed int, vector signed int);
  37309. vector signed int vec_vsubsws (vector bool int, vector signed int);
  37310. vector signed int vec_vsubsws (vector signed int, vector bool int);
  37311. vector signed int vec_vsubsws (vector signed int, vector signed int);
  37312. vector unsigned int vec_vsubuws (vector bool int, vector unsigned int);
  37313. vector unsigned int vec_vsubuws (vector unsigned int, vector bool int);
  37314. vector unsigned int vec_vsubuws (vector unsigned int,
  37315. vector unsigned int);
  37316. vector signed short vec_vsubshs (vector bool short,
  37317. vector signed short);
  37318. vector signed short vec_vsubshs (vector signed short,
  37319. vector bool short);
  37320. vector signed short vec_vsubshs (vector signed short,
  37321. vector signed short);
  37322. vector unsigned short vec_vsubuhs (vector bool short,
  37323. vector unsigned short);
  37324. vector unsigned short vec_vsubuhs (vector unsigned short,
  37325. vector bool short);
  37326. vector unsigned short vec_vsubuhs (vector unsigned short,
  37327. vector unsigned short);
  37328. vector signed char vec_vsubsbs (vector bool char, vector signed char);
  37329. vector signed char vec_vsubsbs (vector signed char, vector bool char);
  37330. vector signed char vec_vsubsbs (vector signed char, vector signed char);
  37331. vector unsigned char vec_vsububs (vector bool char,
  37332. vector unsigned char);
  37333. vector unsigned char vec_vsububs (vector unsigned char,
  37334. vector bool char);
  37335. vector unsigned char vec_vsububs (vector unsigned char,
  37336. vector unsigned char);
  37337. vector unsigned int vec_sum4s (vector unsigned char,
  37338. vector unsigned int);
  37339. vector signed int vec_sum4s (vector signed char, vector signed int);
  37340. vector signed int vec_sum4s (vector signed short, vector signed int);
  37341. vector signed int vec_vsum4shs (vector signed short, vector signed int);
  37342. vector signed int vec_vsum4sbs (vector signed char, vector signed int);
  37343. vector unsigned int vec_vsum4ubs (vector unsigned char,
  37344. vector unsigned int);
  37345. vector signed int vec_sum2s (vector signed int, vector signed int);
  37346. vector signed int vec_sums (vector signed int, vector signed int);
  37347. vector float vec_trunc (vector float);
  37348. vector signed long long vec_unsigned (vector double);
  37349. vector signed int vec_unsigned (vector float);
  37350. vector signed int vec_unsignede (vector double);
  37351. vector signed int vec_unsignedo (vector double);
  37352. vector signed int vec_unsigned2 (vector double, vector double);
  37353. vector signed short vec_unpackh (vector signed char);
  37354. vector bool short vec_unpackh (vector bool char);
  37355. vector signed int vec_unpackh (vector signed short);
  37356. vector bool int vec_unpackh (vector bool short);
  37357. vector unsigned int vec_unpackh (vector pixel);
  37358. vector double vec_unpackh (vector float);
  37359. vector bool int vec_vupkhsh (vector bool short);
  37360. vector signed int vec_vupkhsh (vector signed short);
  37361. vector unsigned int vec_vupkhpx (vector pixel);
  37362. vector bool short vec_vupkhsb (vector bool char);
  37363. vector signed short vec_vupkhsb (vector signed char);
  37364. vector signed short vec_unpackl (vector signed char);
  37365. vector bool short vec_unpackl (vector bool char);
  37366. vector unsigned int vec_unpackl (vector pixel);
  37367. vector signed int vec_unpackl (vector signed short);
  37368. vector bool int vec_unpackl (vector bool short);
  37369. vector double vec_unpackl (vector float);
  37370. vector unsigned int vec_vupklpx (vector pixel);
  37371. vector bool int vec_vupklsh (vector bool short);
  37372. vector signed int vec_vupklsh (vector signed short);
  37373. vector bool short vec_vupklsb (vector bool char);
  37374. vector signed short vec_vupklsb (vector signed char);
  37375. vector float vec_xor (vector float, vector float);
  37376. vector float vec_xor (vector float, vector bool int);
  37377. vector float vec_xor (vector bool int, vector float);
  37378. vector bool int vec_xor (vector bool int, vector bool int);
  37379. vector signed int vec_xor (vector bool int, vector signed int);
  37380. vector signed int vec_xor (vector signed int, vector bool int);
  37381. vector signed int vec_xor (vector signed int, vector signed int);
  37382. vector unsigned int vec_xor (vector bool int, vector unsigned int);
  37383. vector unsigned int vec_xor (vector unsigned int, vector bool int);
  37384. vector unsigned int vec_xor (vector unsigned int, vector unsigned int);
  37385. vector bool short vec_xor (vector bool short, vector bool short);
  37386. vector signed short vec_xor (vector bool short, vector signed short);
  37387. vector signed short vec_xor (vector signed short, vector bool short);
  37388. vector signed short vec_xor (vector signed short, vector signed short);
  37389. vector unsigned short vec_xor (vector bool short,
  37390. vector unsigned short);
  37391. vector unsigned short vec_xor (vector unsigned short,
  37392. vector bool short);
  37393. vector unsigned short vec_xor (vector unsigned short,
  37394. vector unsigned short);
  37395. vector signed char vec_xor (vector bool char, vector signed char);
  37396. vector bool char vec_xor (vector bool char, vector bool char);
  37397. vector signed char vec_xor (vector signed char, vector bool char);
  37398. vector signed char vec_xor (vector signed char, vector signed char);
  37399. vector unsigned char vec_xor (vector bool char, vector unsigned char);
  37400. vector unsigned char vec_xor (vector unsigned char, vector bool char);
  37401. vector unsigned char vec_xor (vector unsigned char,
  37402. vector unsigned char);
  37403. int vec_all_eq (vector signed char, vector bool char);
  37404. int vec_all_eq (vector signed char, vector signed char);
  37405. int vec_all_eq (vector unsigned char, vector bool char);
  37406. int vec_all_eq (vector unsigned char, vector unsigned char);
  37407. int vec_all_eq (vector bool char, vector bool char);
  37408. int vec_all_eq (vector bool char, vector unsigned char);
  37409. int vec_all_eq (vector bool char, vector signed char);
  37410. int vec_all_eq (vector signed short, vector bool short);
  37411. int vec_all_eq (vector signed short, vector signed short);
  37412. int vec_all_eq (vector unsigned short, vector bool short);
  37413. int vec_all_eq (vector unsigned short, vector unsigned short);
  37414. int vec_all_eq (vector bool short, vector bool short);
  37415. int vec_all_eq (vector bool short, vector unsigned short);
  37416. int vec_all_eq (vector bool short, vector signed short);
  37417. int vec_all_eq (vector pixel, vector pixel);
  37418. int vec_all_eq (vector signed int, vector bool int);
  37419. int vec_all_eq (vector signed int, vector signed int);
  37420. int vec_all_eq (vector unsigned int, vector bool int);
  37421. int vec_all_eq (vector unsigned int, vector unsigned int);
  37422. int vec_all_eq (vector bool int, vector bool int);
  37423. int vec_all_eq (vector bool int, vector unsigned int);
  37424. int vec_all_eq (vector bool int, vector signed int);
  37425. int vec_all_eq (vector float, vector float);
  37426. int vec_all_ge (vector bool char, vector unsigned char);
  37427. int vec_all_ge (vector unsigned char, vector bool char);
  37428. int vec_all_ge (vector unsigned char, vector unsigned char);
  37429. int vec_all_ge (vector bool char, vector signed char);
  37430. int vec_all_ge (vector signed char, vector bool char);
  37431. int vec_all_ge (vector signed char, vector signed char);
  37432. int vec_all_ge (vector bool short, vector unsigned short);
  37433. int vec_all_ge (vector unsigned short, vector bool short);
  37434. int vec_all_ge (vector unsigned short, vector unsigned short);
  37435. int vec_all_ge (vector signed short, vector signed short);
  37436. int vec_all_ge (vector bool short, vector signed short);
  37437. int vec_all_ge (vector signed short, vector bool short);
  37438. int vec_all_ge (vector bool int, vector unsigned int);
  37439. int vec_all_ge (vector unsigned int, vector bool int);
  37440. int vec_all_ge (vector unsigned int, vector unsigned int);
  37441. int vec_all_ge (vector bool int, vector signed int);
  37442. int vec_all_ge (vector signed int, vector bool int);
  37443. int vec_all_ge (vector signed int, vector signed int);
  37444. int vec_all_ge (vector float, vector float);
  37445. int vec_all_gt (vector bool char, vector unsigned char);
  37446. int vec_all_gt (vector unsigned char, vector bool char);
  37447. int vec_all_gt (vector unsigned char, vector unsigned char);
  37448. int vec_all_gt (vector bool char, vector signed char);
  37449. int vec_all_gt (vector signed char, vector bool char);
  37450. int vec_all_gt (vector signed char, vector signed char);
  37451. int vec_all_gt (vector bool short, vector unsigned short);
  37452. int vec_all_gt (vector unsigned short, vector bool short);
  37453. int vec_all_gt (vector unsigned short, vector unsigned short);
  37454. int vec_all_gt (vector bool short, vector signed short);
  37455. int vec_all_gt (vector signed short, vector bool short);
  37456. int vec_all_gt (vector signed short, vector signed short);
  37457. int vec_all_gt (vector bool int, vector unsigned int);
  37458. int vec_all_gt (vector unsigned int, vector bool int);
  37459. int vec_all_gt (vector unsigned int, vector unsigned int);
  37460. int vec_all_gt (vector bool int, vector signed int);
  37461. int vec_all_gt (vector signed int, vector bool int);
  37462. int vec_all_gt (vector signed int, vector signed int);
  37463. int vec_all_gt (vector float, vector float);
  37464. int vec_all_in (vector float, vector float);
  37465. int vec_all_le (vector bool char, vector unsigned char);
  37466. int vec_all_le (vector unsigned char, vector bool char);
  37467. int vec_all_le (vector unsigned char, vector unsigned char);
  37468. int vec_all_le (vector bool char, vector signed char);
  37469. int vec_all_le (vector signed char, vector bool char);
  37470. int vec_all_le (vector signed char, vector signed char);
  37471. int vec_all_le (vector bool short, vector unsigned short);
  37472. int vec_all_le (vector unsigned short, vector bool short);
  37473. int vec_all_le (vector unsigned short, vector unsigned short);
  37474. int vec_all_le (vector bool short, vector signed short);
  37475. int vec_all_le (vector signed short, vector bool short);
  37476. int vec_all_le (vector signed short, vector signed short);
  37477. int vec_all_le (vector bool int, vector unsigned int);
  37478. int vec_all_le (vector unsigned int, vector bool int);
  37479. int vec_all_le (vector unsigned int, vector unsigned int);
  37480. int vec_all_le (vector bool int, vector signed int);
  37481. int vec_all_le (vector signed int, vector bool int);
  37482. int vec_all_le (vector signed int, vector signed int);
  37483. int vec_all_le (vector float, vector float);
  37484. int vec_all_lt (vector bool char, vector unsigned char);
  37485. int vec_all_lt (vector unsigned char, vector bool char);
  37486. int vec_all_lt (vector unsigned char, vector unsigned char);
  37487. int vec_all_lt (vector bool char, vector signed char);
  37488. int vec_all_lt (vector signed char, vector bool char);
  37489. int vec_all_lt (vector signed char, vector signed char);
  37490. int vec_all_lt (vector bool short, vector unsigned short);
  37491. int vec_all_lt (vector unsigned short, vector bool short);
  37492. int vec_all_lt (vector unsigned short, vector unsigned short);
  37493. int vec_all_lt (vector bool short, vector signed short);
  37494. int vec_all_lt (vector signed short, vector bool short);
  37495. int vec_all_lt (vector signed short, vector signed short);
  37496. int vec_all_lt (vector bool int, vector unsigned int);
  37497. int vec_all_lt (vector unsigned int, vector bool int);
  37498. int vec_all_lt (vector unsigned int, vector unsigned int);
  37499. int vec_all_lt (vector bool int, vector signed int);
  37500. int vec_all_lt (vector signed int, vector bool int);
  37501. int vec_all_lt (vector signed int, vector signed int);
  37502. int vec_all_lt (vector float, vector float);
  37503. int vec_all_nan (vector float);
  37504. int vec_all_ne (vector signed char, vector bool char);
  37505. int vec_all_ne (vector signed char, vector signed char);
  37506. int vec_all_ne (vector unsigned char, vector bool char);
  37507. int vec_all_ne (vector unsigned char, vector unsigned char);
  37508. int vec_all_ne (vector bool char, vector bool char);
  37509. int vec_all_ne (vector bool char, vector unsigned char);
  37510. int vec_all_ne (vector bool char, vector signed char);
  37511. int vec_all_ne (vector signed short, vector bool short);
  37512. int vec_all_ne (vector signed short, vector signed short);
  37513. int vec_all_ne (vector unsigned short, vector bool short);
  37514. int vec_all_ne (vector unsigned short, vector unsigned short);
  37515. int vec_all_ne (vector bool short, vector bool short);
  37516. int vec_all_ne (vector bool short, vector unsigned short);
  37517. int vec_all_ne (vector bool short, vector signed short);
  37518. int vec_all_ne (vector pixel, vector pixel);
  37519. int vec_all_ne (vector signed int, vector bool int);
  37520. int vec_all_ne (vector signed int, vector signed int);
  37521. int vec_all_ne (vector unsigned int, vector bool int);
  37522. int vec_all_ne (vector unsigned int, vector unsigned int);
  37523. int vec_all_ne (vector bool int, vector bool int);
  37524. int vec_all_ne (vector bool int, vector unsigned int);
  37525. int vec_all_ne (vector bool int, vector signed int);
  37526. int vec_all_ne (vector float, vector float);
  37527. int vec_all_nge (vector float, vector float);
  37528. int vec_all_ngt (vector float, vector float);
  37529. int vec_all_nle (vector float, vector float);
  37530. int vec_all_nlt (vector float, vector float);
  37531. int vec_all_numeric (vector float);
  37532. int vec_any_eq (vector signed char, vector bool char);
  37533. int vec_any_eq (vector signed char, vector signed char);
  37534. int vec_any_eq (vector unsigned char, vector bool char);
  37535. int vec_any_eq (vector unsigned char, vector unsigned char);
  37536. int vec_any_eq (vector bool char, vector bool char);
  37537. int vec_any_eq (vector bool char, vector unsigned char);
  37538. int vec_any_eq (vector bool char, vector signed char);
  37539. int vec_any_eq (vector signed short, vector bool short);
  37540. int vec_any_eq (vector signed short, vector signed short);
  37541. int vec_any_eq (vector unsigned short, vector bool short);
  37542. int vec_any_eq (vector unsigned short, vector unsigned short);
  37543. int vec_any_eq (vector bool short, vector bool short);
  37544. int vec_any_eq (vector bool short, vector unsigned short);
  37545. int vec_any_eq (vector bool short, vector signed short);
  37546. int vec_any_eq (vector pixel, vector pixel);
  37547. int vec_any_eq (vector signed int, vector bool int);
  37548. int vec_any_eq (vector signed int, vector signed int);
  37549. int vec_any_eq (vector unsigned int, vector bool int);
  37550. int vec_any_eq (vector unsigned int, vector unsigned int);
  37551. int vec_any_eq (vector bool int, vector bool int);
  37552. int vec_any_eq (vector bool int, vector unsigned int);
  37553. int vec_any_eq (vector bool int, vector signed int);
  37554. int vec_any_eq (vector float, vector float);
  37555. int vec_any_ge (vector signed char, vector bool char);
  37556. int vec_any_ge (vector unsigned char, vector bool char);
  37557. int vec_any_ge (vector unsigned char, vector unsigned char);
  37558. int vec_any_ge (vector signed char, vector signed char);
  37559. int vec_any_ge (vector bool char, vector unsigned char);
  37560. int vec_any_ge (vector bool char, vector signed char);
  37561. int vec_any_ge (vector unsigned short, vector bool short);
  37562. int vec_any_ge (vector unsigned short, vector unsigned short);
  37563. int vec_any_ge (vector signed short, vector signed short);
  37564. int vec_any_ge (vector signed short, vector bool short);
  37565. int vec_any_ge (vector bool short, vector unsigned short);
  37566. int vec_any_ge (vector bool short, vector signed short);
  37567. int vec_any_ge (vector signed int, vector bool int);
  37568. int vec_any_ge (vector unsigned int, vector bool int);
  37569. int vec_any_ge (vector unsigned int, vector unsigned int);
  37570. int vec_any_ge (vector signed int, vector signed int);
  37571. int vec_any_ge (vector bool int, vector unsigned int);
  37572. int vec_any_ge (vector bool int, vector signed int);
  37573. int vec_any_ge (vector float, vector float);
  37574. int vec_any_gt (vector bool char, vector unsigned char);
  37575. int vec_any_gt (vector unsigned char, vector bool char);
  37576. int vec_any_gt (vector unsigned char, vector unsigned char);
  37577. int vec_any_gt (vector bool char, vector signed char);
  37578. int vec_any_gt (vector signed char, vector bool char);
  37579. int vec_any_gt (vector signed char, vector signed char);
  37580. int vec_any_gt (vector bool short, vector unsigned short);
  37581. int vec_any_gt (vector unsigned short, vector bool short);
  37582. int vec_any_gt (vector unsigned short, vector unsigned short);
  37583. int vec_any_gt (vector bool short, vector signed short);
  37584. int vec_any_gt (vector signed short, vector bool short);
  37585. int vec_any_gt (vector signed short, vector signed short);
  37586. int vec_any_gt (vector bool int, vector unsigned int);
  37587. int vec_any_gt (vector unsigned int, vector bool int);
  37588. int vec_any_gt (vector unsigned int, vector unsigned int);
  37589. int vec_any_gt (vector bool int, vector signed int);
  37590. int vec_any_gt (vector signed int, vector bool int);
  37591. int vec_any_gt (vector signed int, vector signed int);
  37592. int vec_any_gt (vector float, vector float);
  37593. int vec_any_le (vector bool char, vector unsigned char);
  37594. int vec_any_le (vector unsigned char, vector bool char);
  37595. int vec_any_le (vector unsigned char, vector unsigned char);
  37596. int vec_any_le (vector bool char, vector signed char);
  37597. int vec_any_le (vector signed char, vector bool char);
  37598. int vec_any_le (vector signed char, vector signed char);
  37599. int vec_any_le (vector bool short, vector unsigned short);
  37600. int vec_any_le (vector unsigned short, vector bool short);
  37601. int vec_any_le (vector unsigned short, vector unsigned short);
  37602. int vec_any_le (vector bool short, vector signed short);
  37603. int vec_any_le (vector signed short, vector bool short);
  37604. int vec_any_le (vector signed short, vector signed short);
  37605. int vec_any_le (vector bool int, vector unsigned int);
  37606. int vec_any_le (vector unsigned int, vector bool int);
  37607. int vec_any_le (vector unsigned int, vector unsigned int);
  37608. int vec_any_le (vector bool int, vector signed int);
  37609. int vec_any_le (vector signed int, vector bool int);
  37610. int vec_any_le (vector signed int, vector signed int);
  37611. int vec_any_le (vector float, vector float);
  37612. int vec_any_lt (vector bool char, vector unsigned char);
  37613. int vec_any_lt (vector unsigned char, vector bool char);
  37614. int vec_any_lt (vector unsigned char, vector unsigned char);
  37615. int vec_any_lt (vector bool char, vector signed char);
  37616. int vec_any_lt (vector signed char, vector bool char);
  37617. int vec_any_lt (vector signed char, vector signed char);
  37618. int vec_any_lt (vector bool short, vector unsigned short);
  37619. int vec_any_lt (vector unsigned short, vector bool short);
  37620. int vec_any_lt (vector unsigned short, vector unsigned short);
  37621. int vec_any_lt (vector bool short, vector signed short);
  37622. int vec_any_lt (vector signed short, vector bool short);
  37623. int vec_any_lt (vector signed short, vector signed short);
  37624. int vec_any_lt (vector bool int, vector unsigned int);
  37625. int vec_any_lt (vector unsigned int, vector bool int);
  37626. int vec_any_lt (vector unsigned int, vector unsigned int);
  37627. int vec_any_lt (vector bool int, vector signed int);
  37628. int vec_any_lt (vector signed int, vector bool int);
  37629. int vec_any_lt (vector signed int, vector signed int);
  37630. int vec_any_lt (vector float, vector float);
  37631. int vec_any_nan (vector float);
  37632. int vec_any_ne (vector signed char, vector bool char);
  37633. int vec_any_ne (vector signed char, vector signed char);
  37634. int vec_any_ne (vector unsigned char, vector bool char);
  37635. int vec_any_ne (vector unsigned char, vector unsigned char);
  37636. int vec_any_ne (vector bool char, vector bool char);
  37637. int vec_any_ne (vector bool char, vector unsigned char);
  37638. int vec_any_ne (vector bool char, vector signed char);
  37639. int vec_any_ne (vector signed short, vector bool short);
  37640. int vec_any_ne (vector signed short, vector signed short);
  37641. int vec_any_ne (vector unsigned short, vector bool short);
  37642. int vec_any_ne (vector unsigned short, vector unsigned short);
  37643. int vec_any_ne (vector bool short, vector bool short);
  37644. int vec_any_ne (vector bool short, vector unsigned short);
  37645. int vec_any_ne (vector bool short, vector signed short);
  37646. int vec_any_ne (vector pixel, vector pixel);
  37647. int vec_any_ne (vector signed int, vector bool int);
  37648. int vec_any_ne (vector signed int, vector signed int);
  37649. int vec_any_ne (vector unsigned int, vector bool int);
  37650. int vec_any_ne (vector unsigned int, vector unsigned int);
  37651. int vec_any_ne (vector bool int, vector bool int);
  37652. int vec_any_ne (vector bool int, vector unsigned int);
  37653. int vec_any_ne (vector bool int, vector signed int);
  37654. int vec_any_ne (vector float, vector float);
  37655. int vec_any_nge (vector float, vector float);
  37656. int vec_any_ngt (vector float, vector float);
  37657. int vec_any_nle (vector float, vector float);
  37658. int vec_any_nlt (vector float, vector float);
  37659. int vec_any_numeric (vector float);
  37660. int vec_any_out (vector float, vector float);
  37661. If the vector/scalar (VSX) instruction set is available, the following
  37662. additional functions are available:
  37663. vector double vec_abs (vector double);
  37664. vector double vec_add (vector double, vector double);
  37665. vector double vec_and (vector double, vector double);
  37666. vector double vec_and (vector double, vector bool long);
  37667. vector double vec_and (vector bool long, vector double);
  37668. vector long vec_and (vector long, vector long);
  37669. vector long vec_and (vector long, vector bool long);
  37670. vector long vec_and (vector bool long, vector long);
  37671. vector unsigned long vec_and (vector unsigned long, vector unsigned long);
  37672. vector unsigned long vec_and (vector unsigned long, vector bool long);
  37673. vector unsigned long vec_and (vector bool long, vector unsigned long);
  37674. vector double vec_andc (vector double, vector double);
  37675. vector double vec_andc (vector double, vector bool long);
  37676. vector double vec_andc (vector bool long, vector double);
  37677. vector long vec_andc (vector long, vector long);
  37678. vector long vec_andc (vector long, vector bool long);
  37679. vector long vec_andc (vector bool long, vector long);
  37680. vector unsigned long vec_andc (vector unsigned long, vector unsigned long);
  37681. vector unsigned long vec_andc (vector unsigned long, vector bool long);
  37682. vector unsigned long vec_andc (vector bool long, vector unsigned long);
  37683. vector double vec_ceil (vector double);
  37684. vector bool long vec_cmpeq (vector double, vector double);
  37685. vector bool long vec_cmpge (vector double, vector double);
  37686. vector bool long vec_cmpgt (vector double, vector double);
  37687. vector bool long vec_cmple (vector double, vector double);
  37688. vector bool long vec_cmplt (vector double, vector double);
  37689. vector double vec_cpsgn (vector double, vector double);
  37690. vector float vec_div (vector float, vector float);
  37691. vector double vec_div (vector double, vector double);
  37692. vector long vec_div (vector long, vector long);
  37693. vector unsigned long vec_div (vector unsigned long, vector unsigned long);
  37694. vector double vec_floor (vector double);
  37695. vector signed long long vec_ld (int, const vector signed long long *);
  37696. vector signed long long vec_ld (int, const signed long long *);
  37697. vector unsigned long long vec_ld (int, const vector unsigned long long *);
  37698. vector unsigned long long vec_ld (int, const unsigned long long *);
  37699. vector __int128 vec_ld (int, const vector __int128 *);
  37700. vector unsigned __int128 vec_ld (int, const vector unsigned __int128 *);
  37701. vector __int128 vec_ld (int, const __int128 *);
  37702. vector unsigned __int128 vec_ld (int, const unsigned __int128 *);
  37703. vector double vec_ld (int, const vector double *);
  37704. vector double vec_ld (int, const double *);
  37705. vector double vec_ldl (int, const vector double *);
  37706. vector double vec_ldl (int, const double *);
  37707. vector unsigned char vec_lvsl (int, const volatile double *);
  37708. vector unsigned char vec_lvsr (int, const volatile double *);
  37709. vector double vec_madd (vector double, vector double, vector double);
  37710. vector double vec_max (vector double, vector double);
  37711. vector signed long vec_mergeh (vector signed long, vector signed long);
  37712. vector signed long vec_mergeh (vector signed long, vector bool long);
  37713. vector signed long vec_mergeh (vector bool long, vector signed long);
  37714. vector unsigned long vec_mergeh (vector unsigned long, vector unsigned long);
  37715. vector unsigned long vec_mergeh (vector unsigned long, vector bool long);
  37716. vector unsigned long vec_mergeh (vector bool long, vector unsigned long);
  37717. vector signed long vec_mergel (vector signed long, vector signed long);
  37718. vector signed long vec_mergel (vector signed long, vector bool long);
  37719. vector signed long vec_mergel (vector bool long, vector signed long);
  37720. vector unsigned long vec_mergel (vector unsigned long, vector unsigned long);
  37721. vector unsigned long vec_mergel (vector unsigned long, vector bool long);
  37722. vector unsigned long vec_mergel (vector bool long, vector unsigned long);
  37723. vector double vec_min (vector double, vector double);
  37724. vector float vec_msub (vector float, vector float, vector float);
  37725. vector double vec_msub (vector double, vector double, vector double);
  37726. vector float vec_mul (vector float, vector float);
  37727. vector double vec_mul (vector double, vector double);
  37728. vector long vec_mul (vector long, vector long);
  37729. vector unsigned long vec_mul (vector unsigned long, vector unsigned long);
  37730. vector float vec_nearbyint (vector float);
  37731. vector double vec_nearbyint (vector double);
  37732. vector float vec_nmadd (vector float, vector float, vector float);
  37733. vector double vec_nmadd (vector double, vector double, vector double);
  37734. vector double vec_nmsub (vector double, vector double, vector double);
  37735. vector double vec_nor (vector double, vector double);
  37736. vector long vec_nor (vector long, vector long);
  37737. vector long vec_nor (vector long, vector bool long);
  37738. vector long vec_nor (vector bool long, vector long);
  37739. vector unsigned long vec_nor (vector unsigned long, vector unsigned long);
  37740. vector unsigned long vec_nor (vector unsigned long, vector bool long);
  37741. vector unsigned long vec_nor (vector bool long, vector unsigned long);
  37742. vector double vec_or (vector double, vector double);
  37743. vector double vec_or (vector double, vector bool long);
  37744. vector double vec_or (vector bool long, vector double);
  37745. vector long vec_or (vector long, vector long);
  37746. vector long vec_or (vector long, vector bool long);
  37747. vector long vec_or (vector bool long, vector long);
  37748. vector unsigned long vec_or (vector unsigned long, vector unsigned long);
  37749. vector unsigned long vec_or (vector unsigned long, vector bool long);
  37750. vector unsigned long vec_or (vector bool long, vector unsigned long);
  37751. vector double vec_perm (vector double, vector double, vector unsigned char);
  37752. vector long vec_perm (vector long, vector long, vector unsigned char);
  37753. vector unsigned long vec_perm (vector unsigned long, vector unsigned long,
  37754. vector unsigned char);
  37755. vector bool char vec_permxor (vector bool char, vector bool char,
  37756. vector bool char);
  37757. vector unsigned char vec_permxor (vector signed char, vector signed char,
  37758. vector signed char);
  37759. vector unsigned char vec_permxor (vector unsigned char, vector unsigned char,
  37760. vector unsigned char);
  37761. vector double vec_rint (vector double);
  37762. vector double vec_recip (vector double, vector double);
  37763. vector double vec_rsqrt (vector double);
  37764. vector double vec_rsqrte (vector double);
  37765. vector double vec_sel (vector double, vector double, vector bool long);
  37766. vector double vec_sel (vector double, vector double, vector unsigned long);
  37767. vector long vec_sel (vector long, vector long, vector long);
  37768. vector long vec_sel (vector long, vector long, vector unsigned long);
  37769. vector long vec_sel (vector long, vector long, vector bool long);
  37770. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  37771. vector long);
  37772. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  37773. vector unsigned long);
  37774. vector unsigned long vec_sel (vector unsigned long, vector unsigned long,
  37775. vector bool long);
  37776. vector double vec_splats (double);
  37777. vector signed long vec_splats (signed long);
  37778. vector unsigned long vec_splats (unsigned long);
  37779. vector float vec_sqrt (vector float);
  37780. vector double vec_sqrt (vector double);
  37781. void vec_st (vector signed long long, int, vector signed long long *);
  37782. void vec_st (vector signed long long, int, signed long long *);
  37783. void vec_st (vector unsigned long long, int, vector unsigned long long *);
  37784. void vec_st (vector unsigned long long, int, unsigned long long *);
  37785. void vec_st (vector bool long long, int, vector bool long long *);
  37786. void vec_st (vector bool long long, int, signed long long *);
  37787. void vec_st (vector bool long long, int, unsigned long long *);
  37788. void vec_st (vector double, int, vector double *);
  37789. void vec_st (vector double, int, double *);
  37790. vector double vec_sub (vector double, vector double);
  37791. vector double vec_trunc (vector double);
  37792. vector double vec_xl (int, vector double *);
  37793. vector double vec_xl (int, double *);
  37794. vector long long vec_xl (int, vector long long *);
  37795. vector long long vec_xl (int, long long *);
  37796. vector unsigned long long vec_xl (int, vector unsigned long long *);
  37797. vector unsigned long long vec_xl (int, unsigned long long *);
  37798. vector float vec_xl (int, vector float *);
  37799. vector float vec_xl (int, float *);
  37800. vector int vec_xl (int, vector int *);
  37801. vector int vec_xl (int, int *);
  37802. vector unsigned int vec_xl (int, vector unsigned int *);
  37803. vector unsigned int vec_xl (int, unsigned int *);
  37804. vector double vec_xor (vector double, vector double);
  37805. vector double vec_xor (vector double, vector bool long);
  37806. vector double vec_xor (vector bool long, vector double);
  37807. vector long vec_xor (vector long, vector long);
  37808. vector long vec_xor (vector long, vector bool long);
  37809. vector long vec_xor (vector bool long, vector long);
  37810. vector unsigned long vec_xor (vector unsigned long, vector unsigned long);
  37811. vector unsigned long vec_xor (vector unsigned long, vector bool long);
  37812. vector unsigned long vec_xor (vector bool long, vector unsigned long);
  37813. void vec_xst (vector double, int, vector double *);
  37814. void vec_xst (vector double, int, double *);
  37815. void vec_xst (vector long long, int, vector long long *);
  37816. void vec_xst (vector long long, int, long long *);
  37817. void vec_xst (vector unsigned long long, int, vector unsigned long long *);
  37818. void vec_xst (vector unsigned long long, int, unsigned long long *);
  37819. void vec_xst (vector float, int, vector float *);
  37820. void vec_xst (vector float, int, float *);
  37821. void vec_xst (vector int, int, vector int *);
  37822. void vec_xst (vector int, int, int *);
  37823. void vec_xst (vector unsigned int, int, vector unsigned int *);
  37824. void vec_xst (vector unsigned int, int, unsigned int *);
  37825. int vec_all_eq (vector double, vector double);
  37826. int vec_all_ge (vector double, vector double);
  37827. int vec_all_gt (vector double, vector double);
  37828. int vec_all_le (vector double, vector double);
  37829. int vec_all_lt (vector double, vector double);
  37830. int vec_all_nan (vector double);
  37831. int vec_all_ne (vector double, vector double);
  37832. int vec_all_nge (vector double, vector double);
  37833. int vec_all_ngt (vector double, vector double);
  37834. int vec_all_nle (vector double, vector double);
  37835. int vec_all_nlt (vector double, vector double);
  37836. int vec_all_numeric (vector double);
  37837. int vec_any_eq (vector double, vector double);
  37838. int vec_any_ge (vector double, vector double);
  37839. int vec_any_gt (vector double, vector double);
  37840. int vec_any_le (vector double, vector double);
  37841. int vec_any_lt (vector double, vector double);
  37842. int vec_any_nan (vector double);
  37843. int vec_any_ne (vector double, vector double);
  37844. int vec_any_nge (vector double, vector double);
  37845. int vec_any_ngt (vector double, vector double);
  37846. int vec_any_nle (vector double, vector double);
  37847. int vec_any_nlt (vector double, vector double);
  37848. int vec_any_numeric (vector double);
  37849. vector double vec_vsx_ld (int, const vector double *);
  37850. vector double vec_vsx_ld (int, const double *);
  37851. vector float vec_vsx_ld (int, const vector float *);
  37852. vector float vec_vsx_ld (int, const float *);
  37853. vector bool int vec_vsx_ld (int, const vector bool int *);
  37854. vector signed int vec_vsx_ld (int, const vector signed int *);
  37855. vector signed int vec_vsx_ld (int, const int *);
  37856. vector signed int vec_vsx_ld (int, const long *);
  37857. vector unsigned int vec_vsx_ld (int, const vector unsigned int *);
  37858. vector unsigned int vec_vsx_ld (int, const unsigned int *);
  37859. vector unsigned int vec_vsx_ld (int, const unsigned long *);
  37860. vector bool short vec_vsx_ld (int, const vector bool short *);
  37861. vector pixel vec_vsx_ld (int, const vector pixel *);
  37862. vector signed short vec_vsx_ld (int, const vector signed short *);
  37863. vector signed short vec_vsx_ld (int, const short *);
  37864. vector unsigned short vec_vsx_ld (int, const vector unsigned short *);
  37865. vector unsigned short vec_vsx_ld (int, const unsigned short *);
  37866. vector bool char vec_vsx_ld (int, const vector bool char *);
  37867. vector signed char vec_vsx_ld (int, const vector signed char *);
  37868. vector signed char vec_vsx_ld (int, const signed char *);
  37869. vector unsigned char vec_vsx_ld (int, const vector unsigned char *);
  37870. vector unsigned char vec_vsx_ld (int, const unsigned char *);
  37871. void vec_vsx_st (vector double, int, vector double *);
  37872. void vec_vsx_st (vector double, int, double *);
  37873. void vec_vsx_st (vector float, int, vector float *);
  37874. void vec_vsx_st (vector float, int, float *);
  37875. void vec_vsx_st (vector signed int, int, vector signed int *);
  37876. void vec_vsx_st (vector signed int, int, int *);
  37877. void vec_vsx_st (vector unsigned int, int, vector unsigned int *);
  37878. void vec_vsx_st (vector unsigned int, int, unsigned int *);
  37879. void vec_vsx_st (vector bool int, int, vector bool int *);
  37880. void vec_vsx_st (vector bool int, int, unsigned int *);
  37881. void vec_vsx_st (vector bool int, int, int *);
  37882. void vec_vsx_st (vector signed short, int, vector signed short *);
  37883. void vec_vsx_st (vector signed short, int, short *);
  37884. void vec_vsx_st (vector unsigned short, int, vector unsigned short *);
  37885. void vec_vsx_st (vector unsigned short, int, unsigned short *);
  37886. void vec_vsx_st (vector bool short, int, vector bool short *);
  37887. void vec_vsx_st (vector bool short, int, unsigned short *);
  37888. void vec_vsx_st (vector pixel, int, vector pixel *);
  37889. void vec_vsx_st (vector pixel, int, unsigned short *);
  37890. void vec_vsx_st (vector pixel, int, short *);
  37891. void vec_vsx_st (vector bool short, int, short *);
  37892. void vec_vsx_st (vector signed char, int, vector signed char *);
  37893. void vec_vsx_st (vector signed char, int, signed char *);
  37894. void vec_vsx_st (vector unsigned char, int, vector unsigned char *);
  37895. void vec_vsx_st (vector unsigned char, int, unsigned char *);
  37896. void vec_vsx_st (vector bool char, int, vector bool char *);
  37897. void vec_vsx_st (vector bool char, int, unsigned char *);
  37898. void vec_vsx_st (vector bool char, int, signed char *);
  37899. vector double vec_xxpermdi (vector double, vector double, const int);
  37900. vector float vec_xxpermdi (vector float, vector float, const int);
  37901. vector long long vec_xxpermdi (vector long long, vector long long, const int);
  37902. vector unsigned long long vec_xxpermdi (vector unsigned long long,
  37903. vector unsigned long long, const int);
  37904. vector int vec_xxpermdi (vector int, vector int, const int);
  37905. vector unsigned int vec_xxpermdi (vector unsigned int,
  37906. vector unsigned int, const int);
  37907. vector short vec_xxpermdi (vector short, vector short, const int);
  37908. vector unsigned short vec_xxpermdi (vector unsigned short,
  37909. vector unsigned short, const int);
  37910. vector signed char vec_xxpermdi (vector signed char, vector signed char,
  37911. const int);
  37912. vector unsigned char vec_xxpermdi (vector unsigned char,
  37913. vector unsigned char, const int);
  37914. vector double vec_xxsldi (vector double, vector double, int);
  37915. vector float vec_xxsldi (vector float, vector float, int);
  37916. vector long long vec_xxsldi (vector long long, vector long long, int);
  37917. vector unsigned long long vec_xxsldi (vector unsigned long long,
  37918. vector unsigned long long, int);
  37919. vector int vec_xxsldi (vector int, vector int, int);
  37920. vector unsigned int vec_xxsldi (vector unsigned int, vector unsigned int, int);
  37921. vector short vec_xxsldi (vector short, vector short, int);
  37922. vector unsigned short vec_xxsldi (vector unsigned short,
  37923. vector unsigned short, int);
  37924. vector signed char vec_xxsldi (vector signed char, vector signed char, int);
  37925. vector unsigned char vec_xxsldi (vector unsigned char,
  37926. vector unsigned char, int);
  37927. Note that the 'vec_ld' and 'vec_st' built-in functions always generate
  37928. the AltiVec 'LVX' and 'STVX' instructions even if the VSX instruction
  37929. set is available. The 'vec_vsx_ld' and 'vec_vsx_st' built-in functions
  37930. always generate the VSX 'LXVD2X', 'LXVW4X', 'STXVD2X', and 'STXVW4X'
  37931. instructions.
  37932. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  37933. instruction set are available, the following additional functions are
  37934. available for both 32-bit and 64-bit targets. For 64-bit targets, you
  37935. can use VECTOR LONG instead of VECTOR LONG LONG, VECTOR BOOL LONG
  37936. instead of VECTOR BOOL LONG LONG, and VECTOR UNSIGNED LONG instead of
  37937. VECTOR UNSIGNED LONG LONG.
  37938. vector long long vec_abs (vector long long);
  37939. vector long long vec_add (vector long long, vector long long);
  37940. vector unsigned long long vec_add (vector unsigned long long,
  37941. vector unsigned long long);
  37942. int vec_all_eq (vector long long, vector long long);
  37943. int vec_all_eq (vector unsigned long long, vector unsigned long long);
  37944. int vec_all_ge (vector long long, vector long long);
  37945. int vec_all_ge (vector unsigned long long, vector unsigned long long);
  37946. int vec_all_gt (vector long long, vector long long);
  37947. int vec_all_gt (vector unsigned long long, vector unsigned long long);
  37948. int vec_all_le (vector long long, vector long long);
  37949. int vec_all_le (vector unsigned long long, vector unsigned long long);
  37950. int vec_all_lt (vector long long, vector long long);
  37951. int vec_all_lt (vector unsigned long long, vector unsigned long long);
  37952. int vec_all_ne (vector long long, vector long long);
  37953. int vec_all_ne (vector unsigned long long, vector unsigned long long);
  37954. int vec_any_eq (vector long long, vector long long);
  37955. int vec_any_eq (vector unsigned long long, vector unsigned long long);
  37956. int vec_any_ge (vector long long, vector long long);
  37957. int vec_any_ge (vector unsigned long long, vector unsigned long long);
  37958. int vec_any_gt (vector long long, vector long long);
  37959. int vec_any_gt (vector unsigned long long, vector unsigned long long);
  37960. int vec_any_le (vector long long, vector long long);
  37961. int vec_any_le (vector unsigned long long, vector unsigned long long);
  37962. int vec_any_lt (vector long long, vector long long);
  37963. int vec_any_lt (vector unsigned long long, vector unsigned long long);
  37964. int vec_any_ne (vector long long, vector long long);
  37965. int vec_any_ne (vector unsigned long long, vector unsigned long long);
  37966. vector bool long long vec_cmpeq (vector bool long long, vector bool long long);
  37967. vector long long vec_eqv (vector long long, vector long long);
  37968. vector long long vec_eqv (vector bool long long, vector long long);
  37969. vector long long vec_eqv (vector long long, vector bool long long);
  37970. vector unsigned long long vec_eqv (vector unsigned long long,
  37971. vector unsigned long long);
  37972. vector unsigned long long vec_eqv (vector bool long long,
  37973. vector unsigned long long);
  37974. vector unsigned long long vec_eqv (vector unsigned long long,
  37975. vector bool long long);
  37976. vector int vec_eqv (vector int, vector int);
  37977. vector int vec_eqv (vector bool int, vector int);
  37978. vector int vec_eqv (vector int, vector bool int);
  37979. vector unsigned int vec_eqv (vector unsigned int, vector unsigned int);
  37980. vector unsigned int vec_eqv (vector bool unsigned int,
  37981. vector unsigned int);
  37982. vector unsigned int vec_eqv (vector unsigned int,
  37983. vector bool unsigned int);
  37984. vector short vec_eqv (vector short, vector short);
  37985. vector short vec_eqv (vector bool short, vector short);
  37986. vector short vec_eqv (vector short, vector bool short);
  37987. vector unsigned short vec_eqv (vector unsigned short, vector unsigned short);
  37988. vector unsigned short vec_eqv (vector bool unsigned short,
  37989. vector unsigned short);
  37990. vector unsigned short vec_eqv (vector unsigned short,
  37991. vector bool unsigned short);
  37992. vector signed char vec_eqv (vector signed char, vector signed char);
  37993. vector signed char vec_eqv (vector bool signed char, vector signed char);
  37994. vector signed char vec_eqv (vector signed char, vector bool signed char);
  37995. vector unsigned char vec_eqv (vector unsigned char, vector unsigned char);
  37996. vector unsigned char vec_eqv (vector bool unsigned char, vector unsigned char);
  37997. vector unsigned char vec_eqv (vector unsigned char, vector bool unsigned char);
  37998. vector long long vec_max (vector long long, vector long long);
  37999. vector unsigned long long vec_max (vector unsigned long long,
  38000. vector unsigned long long);
  38001. vector signed int vec_mergee (vector signed int, vector signed int);
  38002. vector unsigned int vec_mergee (vector unsigned int, vector unsigned int);
  38003. vector bool int vec_mergee (vector bool int, vector bool int);
  38004. vector signed int vec_mergeo (vector signed int, vector signed int);
  38005. vector unsigned int vec_mergeo (vector unsigned int, vector unsigned int);
  38006. vector bool int vec_mergeo (vector bool int, vector bool int);
  38007. vector long long vec_min (vector long long, vector long long);
  38008. vector unsigned long long vec_min (vector unsigned long long,
  38009. vector unsigned long long);
  38010. vector signed long long vec_nabs (vector signed long long);
  38011. vector long long vec_nand (vector long long, vector long long);
  38012. vector long long vec_nand (vector bool long long, vector long long);
  38013. vector long long vec_nand (vector long long, vector bool long long);
  38014. vector unsigned long long vec_nand (vector unsigned long long,
  38015. vector unsigned long long);
  38016. vector unsigned long long vec_nand (vector bool long long,
  38017. vector unsigned long long);
  38018. vector unsigned long long vec_nand (vector unsigned long long,
  38019. vector bool long long);
  38020. vector int vec_nand (vector int, vector int);
  38021. vector int vec_nand (vector bool int, vector int);
  38022. vector int vec_nand (vector int, vector bool int);
  38023. vector unsigned int vec_nand (vector unsigned int, vector unsigned int);
  38024. vector unsigned int vec_nand (vector bool unsigned int,
  38025. vector unsigned int);
  38026. vector unsigned int vec_nand (vector unsigned int,
  38027. vector bool unsigned int);
  38028. vector short vec_nand (vector short, vector short);
  38029. vector short vec_nand (vector bool short, vector short);
  38030. vector short vec_nand (vector short, vector bool short);
  38031. vector unsigned short vec_nand (vector unsigned short, vector unsigned short);
  38032. vector unsigned short vec_nand (vector bool unsigned short,
  38033. vector unsigned short);
  38034. vector unsigned short vec_nand (vector unsigned short,
  38035. vector bool unsigned short);
  38036. vector signed char vec_nand (vector signed char, vector signed char);
  38037. vector signed char vec_nand (vector bool signed char, vector signed char);
  38038. vector signed char vec_nand (vector signed char, vector bool signed char);
  38039. vector unsigned char vec_nand (vector unsigned char, vector unsigned char);
  38040. vector unsigned char vec_nand (vector bool unsigned char, vector unsigned char);
  38041. vector unsigned char vec_nand (vector unsigned char, vector bool unsigned char);
  38042. vector long long vec_orc (vector long long, vector long long);
  38043. vector long long vec_orc (vector bool long long, vector long long);
  38044. vector long long vec_orc (vector long long, vector bool long long);
  38045. vector unsigned long long vec_orc (vector unsigned long long,
  38046. vector unsigned long long);
  38047. vector unsigned long long vec_orc (vector bool long long,
  38048. vector unsigned long long);
  38049. vector unsigned long long vec_orc (vector unsigned long long,
  38050. vector bool long long);
  38051. vector int vec_orc (vector int, vector int);
  38052. vector int vec_orc (vector bool int, vector int);
  38053. vector int vec_orc (vector int, vector bool int);
  38054. vector unsigned int vec_orc (vector unsigned int, vector unsigned int);
  38055. vector unsigned int vec_orc (vector bool unsigned int,
  38056. vector unsigned int);
  38057. vector unsigned int vec_orc (vector unsigned int,
  38058. vector bool unsigned int);
  38059. vector short vec_orc (vector short, vector short);
  38060. vector short vec_orc (vector bool short, vector short);
  38061. vector short vec_orc (vector short, vector bool short);
  38062. vector unsigned short vec_orc (vector unsigned short, vector unsigned short);
  38063. vector unsigned short vec_orc (vector bool unsigned short,
  38064. vector unsigned short);
  38065. vector unsigned short vec_orc (vector unsigned short,
  38066. vector bool unsigned short);
  38067. vector signed char vec_orc (vector signed char, vector signed char);
  38068. vector signed char vec_orc (vector bool signed char, vector signed char);
  38069. vector signed char vec_orc (vector signed char, vector bool signed char);
  38070. vector unsigned char vec_orc (vector unsigned char, vector unsigned char);
  38071. vector unsigned char vec_orc (vector bool unsigned char, vector unsigned char);
  38072. vector unsigned char vec_orc (vector unsigned char, vector bool unsigned char);
  38073. vector int vec_pack (vector long long, vector long long);
  38074. vector unsigned int vec_pack (vector unsigned long long,
  38075. vector unsigned long long);
  38076. vector bool int vec_pack (vector bool long long, vector bool long long);
  38077. vector float vec_pack (vector double, vector double);
  38078. vector int vec_packs (vector long long, vector long long);
  38079. vector unsigned int vec_packs (vector unsigned long long,
  38080. vector unsigned long long);
  38081. test_vsi_packsu_vssi_vssi (vector signed short x,
  38082. vector unsigned char vec_packsu (vector signed short, vector signed short )
  38083. vector unsigned char vec_packsu (vector unsigned short, vector unsigned short )
  38084. vector unsigned short int vec_packsu (vector signed int, vector signed int);
  38085. vector unsigned short int vec_packsu (vector unsigned int,
  38086. vector unsigned int);
  38087. vector unsigned int vec_packsu (vector long long, vector long long);
  38088. vector unsigned int vec_packsu (vector unsigned long long,
  38089. vector unsigned long long);
  38090. vector unsigned int vec_packsu (vector signed long long,
  38091. vector signed long long);
  38092. vector unsigned char vec_popcnt (vector signed char);
  38093. vector unsigned char vec_popcnt (vector unsigned char);
  38094. vector unsigned short vec_popcnt (vector signed short);
  38095. vector unsigned short vec_popcnt (vector unsigned short);
  38096. vector unsigned int vec_popcnt (vector signed int);
  38097. vector unsigned int vec_popcnt (vector unsigned int);
  38098. vector unsigned long long vec_popcnt (vector signed long long);
  38099. vector unsigned long long vec_popcnt (vector unsigned long long);
  38100. vector long long vec_rl (vector long long,
  38101. vector unsigned long long);
  38102. vector long long vec_rl (vector unsigned long long,
  38103. vector unsigned long long);
  38104. vector long long vec_sl (vector long long, vector unsigned long long);
  38105. vector long long vec_sl (vector unsigned long long,
  38106. vector unsigned long long);
  38107. vector long long vec_sr (vector long long, vector unsigned long long);
  38108. vector unsigned long long char vec_sr (vector unsigned long long,
  38109. vector unsigned long long);
  38110. vector long long vec_sra (vector long long, vector unsigned long long);
  38111. vector unsigned long long vec_sra (vector unsigned long long,
  38112. vector unsigned long long);
  38113. vector long long vec_sub (vector long long, vector long long);
  38114. vector unsigned long long vec_sub (vector unsigned long long,
  38115. vector unsigned long long);
  38116. vector long long vec_unpackh (vector int);
  38117. vector unsigned long long vec_unpackh (vector unsigned int);
  38118. vector long long vec_unpackl (vector int);
  38119. vector unsigned long long vec_unpackl (vector unsigned int);
  38120. vector long long vec_vaddudm (vector long long, vector long long);
  38121. vector long long vec_vaddudm (vector bool long long, vector long long);
  38122. vector long long vec_vaddudm (vector long long, vector bool long long);
  38123. vector unsigned long long vec_vaddudm (vector unsigned long long,
  38124. vector unsigned long long);
  38125. vector unsigned long long vec_vaddudm (vector bool unsigned long long,
  38126. vector unsigned long long);
  38127. vector unsigned long long vec_vaddudm (vector unsigned long long,
  38128. vector bool unsigned long long);
  38129. vector long long vec_vbpermq (vector signed char, vector signed char);
  38130. vector long long vec_vbpermq (vector unsigned char, vector unsigned char);
  38131. vector unsigned char vec_bperm (vector unsigned char, vector unsigned char);
  38132. vector unsigned char vec_bperm (vector unsigned long long,
  38133. vector unsigned char);
  38134. vector unsigned long long vec_bperm (vector unsigned __int128,
  38135. vector unsigned char);
  38136. vector long long vec_cntlz (vector long long);
  38137. vector unsigned long long vec_cntlz (vector unsigned long long);
  38138. vector int vec_cntlz (vector int);
  38139. vector unsigned int vec_cntlz (vector int);
  38140. vector short vec_cntlz (vector short);
  38141. vector unsigned short vec_cntlz (vector unsigned short);
  38142. vector signed char vec_cntlz (vector signed char);
  38143. vector unsigned char vec_cntlz (vector unsigned char);
  38144. vector long long vec_vclz (vector long long);
  38145. vector unsigned long long vec_vclz (vector unsigned long long);
  38146. vector int vec_vclz (vector int);
  38147. vector unsigned int vec_vclz (vector int);
  38148. vector short vec_vclz (vector short);
  38149. vector unsigned short vec_vclz (vector unsigned short);
  38150. vector signed char vec_vclz (vector signed char);
  38151. vector unsigned char vec_vclz (vector unsigned char);
  38152. vector signed char vec_vclzb (vector signed char);
  38153. vector unsigned char vec_vclzb (vector unsigned char);
  38154. vector long long vec_vclzd (vector long long);
  38155. vector unsigned long long vec_vclzd (vector unsigned long long);
  38156. vector short vec_vclzh (vector short);
  38157. vector unsigned short vec_vclzh (vector unsigned short);
  38158. vector int vec_vclzw (vector int);
  38159. vector unsigned int vec_vclzw (vector int);
  38160. vector signed char vec_vgbbd (vector signed char);
  38161. vector unsigned char vec_vgbbd (vector unsigned char);
  38162. vector long long vec_vmaxsd (vector long long, vector long long);
  38163. vector unsigned long long vec_vmaxud (vector unsigned long long,
  38164. unsigned vector long long);
  38165. vector long long vec_vminsd (vector long long, vector long long);
  38166. vector unsigned long long vec_vminud (vector long long,
  38167. vector long long);
  38168. vector int vec_vpksdss (vector long long, vector long long);
  38169. vector unsigned int vec_vpksdss (vector long long, vector long long);
  38170. vector unsigned int vec_vpkudus (vector unsigned long long,
  38171. vector unsigned long long);
  38172. vector int vec_vpkudum (vector long long, vector long long);
  38173. vector unsigned int vec_vpkudum (vector unsigned long long,
  38174. vector unsigned long long);
  38175. vector bool int vec_vpkudum (vector bool long long, vector bool long long);
  38176. vector long long vec_vpopcnt (vector long long);
  38177. vector unsigned long long vec_vpopcnt (vector unsigned long long);
  38178. vector int vec_vpopcnt (vector int);
  38179. vector unsigned int vec_vpopcnt (vector int);
  38180. vector short vec_vpopcnt (vector short);
  38181. vector unsigned short vec_vpopcnt (vector unsigned short);
  38182. vector signed char vec_vpopcnt (vector signed char);
  38183. vector unsigned char vec_vpopcnt (vector unsigned char);
  38184. vector signed char vec_vpopcntb (vector signed char);
  38185. vector unsigned char vec_vpopcntb (vector unsigned char);
  38186. vector long long vec_vpopcntd (vector long long);
  38187. vector unsigned long long vec_vpopcntd (vector unsigned long long);
  38188. vector short vec_vpopcnth (vector short);
  38189. vector unsigned short vec_vpopcnth (vector unsigned short);
  38190. vector int vec_vpopcntw (vector int);
  38191. vector unsigned int vec_vpopcntw (vector int);
  38192. vector long long vec_vrld (vector long long, vector unsigned long long);
  38193. vector unsigned long long vec_vrld (vector unsigned long long,
  38194. vector unsigned long long);
  38195. vector long long vec_vsld (vector long long, vector unsigned long long);
  38196. vector long long vec_vsld (vector unsigned long long,
  38197. vector unsigned long long);
  38198. vector long long vec_vsrad (vector long long, vector unsigned long long);
  38199. vector unsigned long long vec_vsrad (vector unsigned long long,
  38200. vector unsigned long long);
  38201. vector long long vec_vsrd (vector long long, vector unsigned long long);
  38202. vector unsigned long long char vec_vsrd (vector unsigned long long,
  38203. vector unsigned long long);
  38204. vector long long vec_vsubudm (vector long long, vector long long);
  38205. vector long long vec_vsubudm (vector bool long long, vector long long);
  38206. vector long long vec_vsubudm (vector long long, vector bool long long);
  38207. vector unsigned long long vec_vsubudm (vector unsigned long long,
  38208. vector unsigned long long);
  38209. vector unsigned long long vec_vsubudm (vector bool long long,
  38210. vector unsigned long long);
  38211. vector unsigned long long vec_vsubudm (vector unsigned long long,
  38212. vector bool long long);
  38213. vector long long vec_vupkhsw (vector int);
  38214. vector unsigned long long vec_vupkhsw (vector unsigned int);
  38215. vector long long vec_vupklsw (vector int);
  38216. vector unsigned long long vec_vupklsw (vector int);
  38217. If the ISA 2.07 additions to the vector/scalar (power8-vector)
  38218. instruction set are available, the following additional functions are
  38219. available for 64-bit targets. New vector types (VECTOR __INT128_T and
  38220. VECTOR __UINT128_T) are available to hold the __INT128_T and __UINT128_T
  38221. types to use these builtins.
  38222. The normal vector extract, and set operations work on VECTOR __INT128_T
  38223. and VECTOR __UINT128_T types, but the index value must be 0.
  38224. vector __int128_t vec_vaddcuq (vector __int128_t, vector __int128_t);
  38225. vector __uint128_t vec_vaddcuq (vector __uint128_t, vector __uint128_t);
  38226. vector __int128_t vec_vadduqm (vector __int128_t, vector __int128_t);
  38227. vector __uint128_t vec_vadduqm (vector __uint128_t, vector __uint128_t);
  38228. vector __int128_t vec_vaddecuq (vector __int128_t, vector __int128_t,
  38229. vector __int128_t);
  38230. vector __uint128_t vec_vaddecuq (vector __uint128_t, vector __uint128_t,
  38231. vector __uint128_t);
  38232. vector __int128_t vec_vaddeuqm (vector __int128_t, vector __int128_t,
  38233. vector __int128_t);
  38234. vector __uint128_t vec_vaddeuqm (vector __uint128_t, vector __uint128_t,
  38235. vector __uint128_t);
  38236. vector __int128_t vec_vsubecuq (vector __int128_t, vector __int128_t,
  38237. vector __int128_t);
  38238. vector __uint128_t vec_vsubecuq (vector __uint128_t, vector __uint128_t,
  38239. vector __uint128_t);
  38240. vector __int128_t vec_vsubeuqm (vector __int128_t, vector __int128_t,
  38241. vector __int128_t);
  38242. vector __uint128_t vec_vsubeuqm (vector __uint128_t, vector __uint128_t,
  38243. vector __uint128_t);
  38244. vector __int128_t vec_vsubcuq (vector __int128_t, vector __int128_t);
  38245. vector __uint128_t vec_vsubcuq (vector __uint128_t, vector __uint128_t);
  38246. __int128_t vec_vsubuqm (__int128_t, __int128_t);
  38247. __uint128_t vec_vsubuqm (__uint128_t, __uint128_t);
  38248. vector __int128_t __builtin_bcdadd (vector __int128_t, vector __int128_t);
  38249. int __builtin_bcdadd_lt (vector __int128_t, vector __int128_t);
  38250. int __builtin_bcdadd_eq (vector __int128_t, vector __int128_t);
  38251. int __builtin_bcdadd_gt (vector __int128_t, vector __int128_t);
  38252. int __builtin_bcdadd_ov (vector __int128_t, vector __int128_t);
  38253. vector __int128_t bcdsub (vector __int128_t, vector __int128_t);
  38254. int __builtin_bcdsub_lt (vector __int128_t, vector __int128_t);
  38255. int __builtin_bcdsub_eq (vector __int128_t, vector __int128_t);
  38256. int __builtin_bcdsub_gt (vector __int128_t, vector __int128_t);
  38257. int __builtin_bcdsub_ov (vector __int128_t, vector __int128_t);
  38258. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  38259. available:
  38260. vector unsigned long long vec_bperm (vector unsigned long long,
  38261. vector unsigned char);
  38262. vector bool char vec_cmpne (vector bool char, vector bool char);
  38263. vector bool char vec_cmpne (vector signed char, vector signed char);
  38264. vector bool char vec_cmpne (vector unsigned char, vector unsigned char);
  38265. vector bool int vec_cmpne (vector bool int, vector bool int);
  38266. vector bool int vec_cmpne (vector signed int, vector signed int);
  38267. vector bool int vec_cmpne (vector unsigned int, vector unsigned int);
  38268. vector bool long long vec_cmpne (vector bool long long, vector bool long long);
  38269. vector bool long long vec_cmpne (vector signed long long,
  38270. vector signed long long);
  38271. vector bool long long vec_cmpne (vector unsigned long long,
  38272. vector unsigned long long);
  38273. vector bool short vec_cmpne (vector bool short, vector bool short);
  38274. vector bool short vec_cmpne (vector signed short, vector signed short);
  38275. vector bool short vec_cmpne (vector unsigned short, vector unsigned short);
  38276. vector bool long long vec_cmpne (vector double, vector double);
  38277. vector bool int vec_cmpne (vector float, vector float);
  38278. vector float vec_extract_fp32_from_shorth (vector unsigned short);
  38279. vector float vec_extract_fp32_from_shortl (vector unsigned short);
  38280. vector long long vec_vctz (vector long long);
  38281. vector unsigned long long vec_vctz (vector unsigned long long);
  38282. vector int vec_vctz (vector int);
  38283. vector unsigned int vec_vctz (vector int);
  38284. vector short vec_vctz (vector short);
  38285. vector unsigned short vec_vctz (vector unsigned short);
  38286. vector signed char vec_vctz (vector signed char);
  38287. vector unsigned char vec_vctz (vector unsigned char);
  38288. vector signed char vec_vctzb (vector signed char);
  38289. vector unsigned char vec_vctzb (vector unsigned char);
  38290. vector long long vec_vctzd (vector long long);
  38291. vector unsigned long long vec_vctzd (vector unsigned long long);
  38292. vector short vec_vctzh (vector short);
  38293. vector unsigned short vec_vctzh (vector unsigned short);
  38294. vector int vec_vctzw (vector int);
  38295. vector unsigned int vec_vctzw (vector int);
  38296. vector unsigned long long vec_extract4b (vector unsigned char, const int);
  38297. vector unsigned char vec_insert4b (vector signed int, vector unsigned char,
  38298. const int);
  38299. vector unsigned char vec_insert4b (vector unsigned int, vector unsigned char,
  38300. const int);
  38301. vector unsigned int vec_parity_lsbb (vector signed int);
  38302. vector unsigned int vec_parity_lsbb (vector unsigned int);
  38303. vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
  38304. vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
  38305. vector unsigned long long vec_parity_lsbb (vector signed long long);
  38306. vector unsigned long long vec_parity_lsbb (vector unsigned long long);
  38307. vector int vec_vprtyb (vector int);
  38308. vector unsigned int vec_vprtyb (vector unsigned int);
  38309. vector long long vec_vprtyb (vector long long);
  38310. vector unsigned long long vec_vprtyb (vector unsigned long long);
  38311. vector int vec_vprtybw (vector int);
  38312. vector unsigned int vec_vprtybw (vector unsigned int);
  38313. vector long long vec_vprtybd (vector long long);
  38314. vector unsigned long long vec_vprtybd (vector unsigned long long);
  38315. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  38316. available:
  38317. vector long vec_vprtyb (vector long);
  38318. vector unsigned long vec_vprtyb (vector unsigned long);
  38319. vector __int128_t vec_vprtyb (vector __int128_t);
  38320. vector __uint128_t vec_vprtyb (vector __uint128_t);
  38321. vector long vec_vprtybd (vector long);
  38322. vector unsigned long vec_vprtybd (vector unsigned long);
  38323. vector __int128_t vec_vprtybq (vector __int128_t);
  38324. vector __uint128_t vec_vprtybd (vector __uint128_t);
  38325. The following built-in vector functions are available for the PowerPC
  38326. family of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  38327. __vector unsigned char
  38328. vec_slv (__vector unsigned char src, __vector unsigned char shift_distance);
  38329. __vector unsigned char
  38330. vec_srv (__vector unsigned char src, __vector unsigned char shift_distance);
  38331. The 'vec_slv' and 'vec_srv' functions operate on all of the bytes of
  38332. their 'src' and 'shift_distance' arguments in parallel. The behavior of
  38333. the 'vec_slv' is as if there existed a temporary array of 17 unsigned
  38334. characters 'slv_array' within which elements 0 through 15 are the same
  38335. as the entries in the 'src' array and element 16 equals 0. The result
  38336. returned from the 'vec_slv' function is a '__vector' of 16 unsigned
  38337. characters within which element 'i' is computed using the C expression
  38338. '0xff & (*((unsigned short *)(slv_array + i)) << (0x07 &
  38339. shift_distance[i]))', with this resulting value coerced to the 'unsigned
  38340. char' type. The behavior of the 'vec_srv' is as if there existed a
  38341. temporary array of 17 unsigned characters 'srv_array' within which
  38342. element 0 equals zero and elements 1 through 16 equal the elements 0
  38343. through 15 of the 'src' array. The result returned from the 'vec_srv'
  38344. function is a '__vector' of 16 unsigned characters within which element
  38345. 'i' is computed using the C expression '0xff & (*((unsigned short
  38346. *)(srv_array + i)) >> (0x07 & shift_distance[i]))', with this resulting
  38347. value coerced to the 'unsigned char' type.
  38348. The following built-in functions are available for the PowerPC family
  38349. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  38350. __vector unsigned char
  38351. vec_absd (__vector unsigned char arg1, __vector unsigned char arg2);
  38352. __vector unsigned short
  38353. vec_absd (__vector unsigned short arg1, __vector unsigned short arg2);
  38354. __vector unsigned int
  38355. vec_absd (__vector unsigned int arg1, __vector unsigned int arg2);
  38356. __vector unsigned char
  38357. vec_absdb (__vector unsigned char arg1, __vector unsigned char arg2);
  38358. __vector unsigned short
  38359. vec_absdh (__vector unsigned short arg1, __vector unsigned short arg2);
  38360. __vector unsigned int
  38361. vec_absdw (__vector unsigned int arg1, __vector unsigned int arg2);
  38362. The 'vec_absd', 'vec_absdb', 'vec_absdh', and 'vec_absdw' built-in
  38363. functions each computes the absolute differences of the pairs of vector
  38364. elements supplied in its two vector arguments, placing the absolute
  38365. differences into the corresponding elements of the vector result.
  38366. The following built-in functions are available for the PowerPC family
  38367. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  38368. __vector unsigned int
  38369. vec_extract_exp (__vector float source);
  38370. __vector unsigned long long int
  38371. vec_extract_exp (__vector double source);
  38372. __vector unsigned int
  38373. vec_extract_sig (__vector float source);
  38374. __vector unsigned long long int
  38375. vec_extract_sig (__vector double source);
  38376. __vector float
  38377. vec_insert_exp (__vector unsigned int significands,
  38378. __vector unsigned int exponents);
  38379. __vector float
  38380. vec_insert_exp (__vector unsigned float significands,
  38381. __vector unsigned int exponents);
  38382. __vector double
  38383. vec_insert_exp (__vector unsigned long long int significands,
  38384. __vector unsigned long long int exponents);
  38385. __vector double
  38386. vec_insert_exp (__vector unsigned double significands,
  38387. __vector unsigned long long int exponents);
  38388. __vector bool int vec_test_data_class (__vector float source,
  38389. const int condition);
  38390. __vector bool long long int vec_test_data_class (__vector double source,
  38391. const int condition);
  38392. The 'vec_extract_sig' and 'vec_extract_exp' built-in functions return
  38393. vectors representing the significands and biased exponent values of
  38394. their 'source' arguments respectively. Within the result vector
  38395. returned by 'vec_extract_sig', the '0x800000' bit of each vector element
  38396. returned when the function's 'source' argument is of type 'float' is set
  38397. to 1 if the corresponding floating point value is in normalized form.
  38398. Otherwise, this bit is set to 0. When the 'source' argument is of type
  38399. 'double', the '0x10000000000000' bit within each of the result vector's
  38400. elements is set according to the same rules. Note that the sign of the
  38401. significand is not represented in the result returned from the
  38402. 'vec_extract_sig' function. To extract the sign bits, use the
  38403. 'vec_cpsgn' function, which returns a new vector within which all of the
  38404. sign bits of its second argument vector are overwritten with the sign
  38405. bits copied from the coresponding elements of its first argument vector,
  38406. and all other (non-sign) bits of the second argument vector are copied
  38407. unchanged into the result vector.
  38408. The 'vec_insert_exp' built-in functions return a vector of single- or
  38409. double-precision floating point values constructed by assembling the
  38410. values of their 'significands' and 'exponents' arguments into the
  38411. corresponding elements of the returned vector. The sign of each element
  38412. of the result is copied from the most significant bit of the
  38413. corresponding entry within the 'significands' argument. Note that the
  38414. relevant bits of the 'significands' argument are the same, for both
  38415. integer and floating point types. The significand and exponent
  38416. components of each element of the result are composed of the least
  38417. significant bits of the corresponding 'significands' element and the
  38418. least significant bits of the corresponding 'exponents' element.
  38419. The 'vec_test_data_class' built-in function returns a vector
  38420. representing the results of testing the 'source' vector for the
  38421. condition selected by the 'condition' argument. The 'condition'
  38422. argument must be a compile-time constant integer with value not
  38423. exceeding 127. The 'condition' argument is encoded as a bitmask with
  38424. each bit enabling the testing of a different condition, as characterized
  38425. by the following:
  38426. 0x40 Test for NaN
  38427. 0x20 Test for +Infinity
  38428. 0x10 Test for -Infinity
  38429. 0x08 Test for +Zero
  38430. 0x04 Test for -Zero
  38431. 0x02 Test for +Denormal
  38432. 0x01 Test for -Denormal
  38433. If any of the enabled test conditions is true, the corresponding entry
  38434. in the result vector is -1. Otherwise (all of the enabled test
  38435. conditions are false), the corresponding entry of the result vector is
  38436. 0.
  38437. The following built-in functions are available for the PowerPC family
  38438. of processors, starting with ISA 3.0 or later ('-mcpu=power9'):
  38439. vector unsigned int vec_rlmi (vector unsigned int, vector unsigned int,
  38440. vector unsigned int);
  38441. vector unsigned long long vec_rlmi (vector unsigned long long,
  38442. vector unsigned long long,
  38443. vector unsigned long long);
  38444. vector unsigned int vec_rlnm (vector unsigned int, vector unsigned int,
  38445. vector unsigned int);
  38446. vector unsigned long long vec_rlnm (vector unsigned long long,
  38447. vector unsigned long long,
  38448. vector unsigned long long);
  38449. vector unsigned int vec_vrlnm (vector unsigned int, vector unsigned int);
  38450. vector unsigned long long vec_vrlnm (vector unsigned long long,
  38451. vector unsigned long long);
  38452. The result of 'vec_rlmi' is obtained by rotating each element of the
  38453. first argument vector left and inserting it under mask into the second
  38454. argument vector. The third argument vector contains the mask beginning
  38455. in bits 11:15, the mask end in bits 19:23, and the shift count in bits
  38456. 27:31, of each element.
  38457. The result of 'vec_rlnm' is obtained by rotating each element of the
  38458. first argument vector left and ANDing it with a mask specified by the
  38459. second and third argument vectors. The second argument vector contains
  38460. the shift count for each element in the low-order byte. The third
  38461. argument vector contains the mask end for each element in the low-order
  38462. byte, with the mask begin in the next higher byte.
  38463. The result of 'vec_vrlnm' is obtained by rotating each element of the
  38464. first argument vector left and ANDing it with a mask. The second
  38465. argument vector contains the mask beginning in bits 11:15, the mask end
  38466. in bits 19:23, and the shift count in bits 27:31, of each element.
  38467. If the ISA 3.0 instruction set additions ('-mcpu=power9') are
  38468. available:
  38469. vector signed bool char vec_revb (vector signed char);
  38470. vector signed char vec_revb (vector signed char);
  38471. vector unsigned char vec_revb (vector unsigned char);
  38472. vector bool short vec_revb (vector bool short);
  38473. vector short vec_revb (vector short);
  38474. vector unsigned short vec_revb (vector unsigned short);
  38475. vector bool int vec_revb (vector bool int);
  38476. vector int vec_revb (vector int);
  38477. vector unsigned int vec_revb (vector unsigned int);
  38478. vector float vec_revb (vector float);
  38479. vector bool long long vec_revb (vector bool long long);
  38480. vector long long vec_revb (vector long long);
  38481. vector unsigned long long vec_revb (vector unsigned long long);
  38482. vector double vec_revb (vector double);
  38483. On 64-bit targets, if the ISA 3.0 additions ('-mcpu=power9') are
  38484. available:
  38485. vector long vec_revb (vector long);
  38486. vector unsigned long vec_revb (vector unsigned long);
  38487. vector __int128_t vec_revb (vector __int128_t);
  38488. vector __uint128_t vec_revb (vector __uint128_t);
  38489. The 'vec_revb' built-in function reverses the bytes on an element by
  38490. element basis. A vector of 'vector unsigned char' or 'vector signed
  38491. char' reverses the bytes in the whole word.
  38492. If the cryptographic instructions are enabled ('-mcrypto' or
  38493. '-mcpu=power8'), the following builtins are enabled.
  38494. vector unsigned long long __builtin_crypto_vsbox (vector unsigned long long);
  38495. vector unsigned long long __builtin_crypto_vcipher (vector unsigned long long,
  38496. vector unsigned long long);
  38497. vector unsigned long long __builtin_crypto_vcipherlast
  38498. (vector unsigned long long,
  38499. vector unsigned long long);
  38500. vector unsigned long long __builtin_crypto_vncipher (vector unsigned long long,
  38501. vector unsigned long long);
  38502. vector unsigned long long __builtin_crypto_vncipherlast
  38503. (vector unsigned long long,
  38504. vector unsigned long long);
  38505. vector unsigned char __builtin_crypto_vpermxor (vector unsigned char,
  38506. vector unsigned char,
  38507. vector unsigned char);
  38508. vector unsigned short __builtin_crypto_vpermxor (vector unsigned short,
  38509. vector unsigned short,
  38510. vector unsigned short);
  38511. vector unsigned int __builtin_crypto_vpermxor (vector unsigned int,
  38512. vector unsigned int,
  38513. vector unsigned int);
  38514. vector unsigned long long __builtin_crypto_vpermxor (vector unsigned long long,
  38515. vector unsigned long long,
  38516. vector unsigned long long);
  38517. vector unsigned char __builtin_crypto_vpmsumb (vector unsigned char,
  38518. vector unsigned char);
  38519. vector unsigned short __builtin_crypto_vpmsumb (vector unsigned short,
  38520. vector unsigned short);
  38521. vector unsigned int __builtin_crypto_vpmsumb (vector unsigned int,
  38522. vector unsigned int);
  38523. vector unsigned long long __builtin_crypto_vpmsumb (vector unsigned long long,
  38524. vector unsigned long long);
  38525. vector unsigned long long __builtin_crypto_vshasigmad
  38526. (vector unsigned long long, int, int);
  38527. vector unsigned int __builtin_crypto_vshasigmaw (vector unsigned int,
  38528. int, int);
  38529. The second argument to __BUILTIN_CRYPTO_VSHASIGMAD and
  38530. __BUILTIN_CRYPTO_VSHASIGMAW must be a constant integer that is 0 or 1.
  38531. The third argument to these built-in functions must be a constant
  38532. integer in the range of 0 to 15.
  38533. If the ISA 3.0 instruction set additions are enabled ('-mcpu=power9'),
  38534. the following additional functions are available for both 32-bit and
  38535. 64-bit targets.
  38536. vector short vec_xl (int, vector short *); vector short vec_xl (int,
  38537. short *); vector unsigned short vec_xl (int, vector unsigned short *);
  38538. vector unsigned short vec_xl (int, unsigned short *); vector char vec_xl
  38539. (int, vector char *); vector char vec_xl (int, char *); vector unsigned
  38540. char vec_xl (int, vector unsigned char *); vector unsigned char vec_xl
  38541. (int, unsigned char *);
  38542. void vec_xst (vector short, int, vector short *); void vec_xst (vector
  38543. short, int, short *); void vec_xst (vector unsigned short, int, vector
  38544. unsigned short *); void vec_xst (vector unsigned short, int, unsigned
  38545. short *); void vec_xst (vector char, int, vector char *); void vec_xst
  38546. (vector char, int, char *); void vec_xst (vector unsigned char, int,
  38547. vector unsigned char *); void vec_xst (vector unsigned char, int,
  38548. unsigned char *);
  38549. 
  38550. 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
  38551. 6.59.23 PowerPC Hardware Transactional Memory Built-in Functions
  38552. ----------------------------------------------------------------
  38553. GCC provides two interfaces for accessing the Hardware Transactional
  38554. Memory (HTM) instructions available on some of the PowerPC family of
  38555. processors (eg, POWER8). The two interfaces come in a low level
  38556. interface, consisting of built-in functions specific to PowerPC and a
  38557. higher level interface consisting of inline functions that are common
  38558. between PowerPC and S/390.
  38559. 6.59.23.1 PowerPC HTM Low Level Built-in Functions
  38560. ..................................................
  38561. The following low level built-in functions are available with '-mhtm' or
  38562. '-mcpu=CPU' where CPU is 'power8' or later. They all generate the
  38563. machine instruction that is part of the name.
  38564. The HTM builtins (with the exception of '__builtin_tbegin') return the
  38565. full 4-bit condition register value set by their associated hardware
  38566. instruction. The header file 'htmintrin.h' defines some macros that can
  38567. be used to decipher the return value. The '__builtin_tbegin' builtin
  38568. returns a simple true or false value depending on whether a transaction
  38569. was successfully started or not. The arguments of the builtins match
  38570. exactly the type and order of the associated hardware instruction's
  38571. operands, except for the '__builtin_tcheck' builtin, which does not take
  38572. any input arguments. Refer to the ISA manual for a description of each
  38573. instruction's operands.
  38574. unsigned int __builtin_tbegin (unsigned int)
  38575. unsigned int __builtin_tend (unsigned int)
  38576. unsigned int __builtin_tabort (unsigned int)
  38577. unsigned int __builtin_tabortdc (unsigned int, unsigned int, unsigned int)
  38578. unsigned int __builtin_tabortdci (unsigned int, unsigned int, int)
  38579. unsigned int __builtin_tabortwc (unsigned int, unsigned int, unsigned int)
  38580. unsigned int __builtin_tabortwci (unsigned int, unsigned int, int)
  38581. unsigned int __builtin_tcheck (void)
  38582. unsigned int __builtin_treclaim (unsigned int)
  38583. unsigned int __builtin_trechkpt (void)
  38584. unsigned int __builtin_tsr (unsigned int)
  38585. In addition to the above HTM built-ins, we have added built-ins for
  38586. some common extended mnemonics of the HTM instructions:
  38587. unsigned int __builtin_tendall (void)
  38588. unsigned int __builtin_tresume (void)
  38589. unsigned int __builtin_tsuspend (void)
  38590. Note that the semantics of the above HTM builtins are required to mimic
  38591. the locking semantics used for critical sections. Builtins that are
  38592. used to create a new transaction or restart a suspended transaction must
  38593. have lock acquisition like semantics while those builtins that end or
  38594. suspend a transaction must have lock release like semantics.
  38595. Specifically, this must mimic lock semantics as specified by C++11, for
  38596. example: Lock acquisition is as-if an execution of
  38597. __atomic_exchange_n(&globallock,1,__ATOMIC_ACQUIRE) that returns 0, and
  38598. lock release is as-if an execution of
  38599. __atomic_store(&globallock,0,__ATOMIC_RELEASE), with globallock being an
  38600. implicit implementation-defined lock used for all transactions. The HTM
  38601. instructions associated with with the builtins inherently provide the
  38602. correct acquisition and release hardware barriers required. However,
  38603. the compiler must also be prohibited from moving loads and stores across
  38604. the builtins in a way that would violate their semantics. This has been
  38605. accomplished by adding memory barriers to the associated HTM
  38606. instructions (which is a conservative approach to provide acquire and
  38607. release semantics). Earlier versions of the compiler did not treat the
  38608. HTM instructions as memory barriers. A '__TM_FENCE__' macro has been
  38609. added, which can be used to determine whether the current compiler
  38610. treats HTM instructions as memory barriers or not. This allows the user
  38611. to explicitly add memory barriers to their code when using an older
  38612. version of the compiler.
  38613. The following set of built-in functions are available to gain access to
  38614. the HTM specific special purpose registers.
  38615. unsigned long __builtin_get_texasr (void)
  38616. unsigned long __builtin_get_texasru (void)
  38617. unsigned long __builtin_get_tfhar (void)
  38618. unsigned long __builtin_get_tfiar (void)
  38619. void __builtin_set_texasr (unsigned long);
  38620. void __builtin_set_texasru (unsigned long);
  38621. void __builtin_set_tfhar (unsigned long);
  38622. void __builtin_set_tfiar (unsigned long);
  38623. Example usage of these low level built-in functions may look like:
  38624. #include <htmintrin.h>
  38625. int num_retries = 10;
  38626. while (1)
  38627. {
  38628. if (__builtin_tbegin (0))
  38629. {
  38630. /* Transaction State Initiated. */
  38631. if (is_locked (lock))
  38632. __builtin_tabort (0);
  38633. ... transaction code...
  38634. __builtin_tend (0);
  38635. break;
  38636. }
  38637. else
  38638. {
  38639. /* Transaction State Failed. Use locks if the transaction
  38640. failure is "persistent" or we've tried too many times. */
  38641. if (num_retries-- <= 0
  38642. || _TEXASRU_FAILURE_PERSISTENT (__builtin_get_texasru ()))
  38643. {
  38644. acquire_lock (lock);
  38645. ... non transactional fallback path...
  38646. release_lock (lock);
  38647. break;
  38648. }
  38649. }
  38650. }
  38651. One final built-in function has been added that returns the value of
  38652. the 2-bit Transaction State field of the Machine Status Register (MSR)
  38653. as stored in 'CR0'.
  38654. unsigned long __builtin_ttest (void)
  38655. This built-in can be used to determine the current transaction state
  38656. using the following code example:
  38657. #include <htmintrin.h>
  38658. unsigned char tx_state = _HTM_STATE (__builtin_ttest ());
  38659. if (tx_state == _HTM_TRANSACTIONAL)
  38660. {
  38661. /* Code to use in transactional state. */
  38662. }
  38663. else if (tx_state == _HTM_NONTRANSACTIONAL)
  38664. {
  38665. /* Code to use in non-transactional state. */
  38666. }
  38667. else if (tx_state == _HTM_SUSPENDED)
  38668. {
  38669. /* Code to use in transaction suspended state. */
  38670. }
  38671. 6.59.23.2 PowerPC HTM High Level Inline Functions
  38672. .................................................
  38673. The following high level HTM interface is made available by including
  38674. '<htmxlintrin.h>' and using '-mhtm' or '-mcpu=CPU' where CPU is 'power8'
  38675. or later. This interface is common between PowerPC and S/390, allowing
  38676. users to write one HTM source implementation that can be compiled and
  38677. executed on either system.
  38678. long __TM_simple_begin (void)
  38679. long __TM_begin (void* const TM_buff)
  38680. long __TM_end (void)
  38681. void __TM_abort (void)
  38682. void __TM_named_abort (unsigned char const code)
  38683. void __TM_resume (void)
  38684. void __TM_suspend (void)
  38685. long __TM_is_user_abort (void* const TM_buff)
  38686. long __TM_is_named_user_abort (void* const TM_buff, unsigned char *code)
  38687. long __TM_is_illegal (void* const TM_buff)
  38688. long __TM_is_footprint_exceeded (void* const TM_buff)
  38689. long __TM_nesting_depth (void* const TM_buff)
  38690. long __TM_is_nested_too_deep(void* const TM_buff)
  38691. long __TM_is_conflict(void* const TM_buff)
  38692. long __TM_is_failure_persistent(void* const TM_buff)
  38693. long __TM_failure_address(void* const TM_buff)
  38694. long long __TM_failure_code(void* const TM_buff)
  38695. Using these common set of HTM inline functions, we can create a more
  38696. portable version of the HTM example in the previous section that will
  38697. work on either PowerPC or S/390:
  38698. #include <htmxlintrin.h>
  38699. int num_retries = 10;
  38700. TM_buff_type TM_buff;
  38701. while (1)
  38702. {
  38703. if (__TM_begin (TM_buff) == _HTM_TBEGIN_STARTED)
  38704. {
  38705. /* Transaction State Initiated. */
  38706. if (is_locked (lock))
  38707. __TM_abort ();
  38708. ... transaction code...
  38709. __TM_end ();
  38710. break;
  38711. }
  38712. else
  38713. {
  38714. /* Transaction State Failed. Use locks if the transaction
  38715. failure is "persistent" or we've tried too many times. */
  38716. if (num_retries-- <= 0
  38717. || __TM_is_failure_persistent (TM_buff))
  38718. {
  38719. acquire_lock (lock);
  38720. ... non transactional fallback path...
  38721. release_lock (lock);
  38722. break;
  38723. }
  38724. }
  38725. }
  38726. 
  38727. 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
  38728. 6.59.24 PowerPC Atomic Memory Operation Functions
  38729. -------------------------------------------------
  38730. ISA 3.0 of the PowerPC added new atomic memory operation (amo)
  38731. instructions. GCC provides support for these instructions in 64-bit
  38732. environments. All of the functions are declared in the include file
  38733. 'amo.h'.
  38734. The functions supported are:
  38735. #include <amo.h>
  38736. uint32_t amo_lwat_add (uint32_t *, uint32_t);
  38737. uint32_t amo_lwat_xor (uint32_t *, uint32_t);
  38738. uint32_t amo_lwat_ior (uint32_t *, uint32_t);
  38739. uint32_t amo_lwat_and (uint32_t *, uint32_t);
  38740. uint32_t amo_lwat_umax (uint32_t *, uint32_t);
  38741. uint32_t amo_lwat_umin (uint32_t *, uint32_t);
  38742. uint32_t amo_lwat_swap (uint32_t *, uint32_t);
  38743. int32_t amo_lwat_sadd (int32_t *, int32_t);
  38744. int32_t amo_lwat_smax (int32_t *, int32_t);
  38745. int32_t amo_lwat_smin (int32_t *, int32_t);
  38746. int32_t amo_lwat_sswap (int32_t *, int32_t);
  38747. uint64_t amo_ldat_add (uint64_t *, uint64_t);
  38748. uint64_t amo_ldat_xor (uint64_t *, uint64_t);
  38749. uint64_t amo_ldat_ior (uint64_t *, uint64_t);
  38750. uint64_t amo_ldat_and (uint64_t *, uint64_t);
  38751. uint64_t amo_ldat_umax (uint64_t *, uint64_t);
  38752. uint64_t amo_ldat_umin (uint64_t *, uint64_t);
  38753. uint64_t amo_ldat_swap (uint64_t *, uint64_t);
  38754. int64_t amo_ldat_sadd (int64_t *, int64_t);
  38755. int64_t amo_ldat_smax (int64_t *, int64_t);
  38756. int64_t amo_ldat_smin (int64_t *, int64_t);
  38757. int64_t amo_ldat_sswap (int64_t *, int64_t);
  38758. void amo_stwat_add (uint32_t *, uint32_t);
  38759. void amo_stwat_xor (uint32_t *, uint32_t);
  38760. void amo_stwat_ior (uint32_t *, uint32_t);
  38761. void amo_stwat_and (uint32_t *, uint32_t);
  38762. void amo_stwat_umax (uint32_t *, uint32_t);
  38763. void amo_stwat_umin (uint32_t *, uint32_t);
  38764. void amo_stwat_sadd (int32_t *, int32_t);
  38765. void amo_stwat_smax (int32_t *, int32_t);
  38766. void amo_stwat_smin (int32_t *, int32_t);
  38767. void amo_stdat_add (uint64_t *, uint64_t);
  38768. void amo_stdat_xor (uint64_t *, uint64_t);
  38769. void amo_stdat_ior (uint64_t *, uint64_t);
  38770. void amo_stdat_and (uint64_t *, uint64_t);
  38771. void amo_stdat_umax (uint64_t *, uint64_t);
  38772. void amo_stdat_umin (uint64_t *, uint64_t);
  38773. void amo_stdat_sadd (int64_t *, int64_t);
  38774. void amo_stdat_smax (int64_t *, int64_t);
  38775. void amo_stdat_smin (int64_t *, int64_t);
  38776. 
  38777. 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
  38778. 6.59.25 RX Built-in Functions
  38779. -----------------------------
  38780. GCC supports some of the RX instructions which cannot be expressed in
  38781. the C programming language via the use of built-in functions. The
  38782. following functions are supported:
  38783. -- Built-in Function: void __builtin_rx_brk (void)
  38784. Generates the 'brk' machine instruction.
  38785. -- Built-in Function: void __builtin_rx_clrpsw (int)
  38786. Generates the 'clrpsw' machine instruction to clear the specified
  38787. bit in the processor status word.
  38788. -- Built-in Function: void __builtin_rx_int (int)
  38789. Generates the 'int' machine instruction to generate an interrupt
  38790. with the specified value.
  38791. -- Built-in Function: void __builtin_rx_machi (int, int)
  38792. Generates the 'machi' machine instruction to add the result of
  38793. multiplying the top 16 bits of the two arguments into the
  38794. accumulator.
  38795. -- Built-in Function: void __builtin_rx_maclo (int, int)
  38796. Generates the 'maclo' machine instruction to add the result of
  38797. multiplying the bottom 16 bits of the two arguments into the
  38798. accumulator.
  38799. -- Built-in Function: void __builtin_rx_mulhi (int, int)
  38800. Generates the 'mulhi' machine instruction to place the result of
  38801. multiplying the top 16 bits of the two arguments into the
  38802. accumulator.
  38803. -- Built-in Function: void __builtin_rx_mullo (int, int)
  38804. Generates the 'mullo' machine instruction to place the result of
  38805. multiplying the bottom 16 bits of the two arguments into the
  38806. accumulator.
  38807. -- Built-in Function: int __builtin_rx_mvfachi (void)
  38808. Generates the 'mvfachi' machine instruction to read the top 32 bits
  38809. of the accumulator.
  38810. -- Built-in Function: int __builtin_rx_mvfacmi (void)
  38811. Generates the 'mvfacmi' machine instruction to read the middle 32
  38812. bits of the accumulator.
  38813. -- Built-in Function: int __builtin_rx_mvfc (int)
  38814. Generates the 'mvfc' machine instruction which reads the control
  38815. register specified in its argument and returns its value.
  38816. -- Built-in Function: void __builtin_rx_mvtachi (int)
  38817. Generates the 'mvtachi' machine instruction to set the top 32 bits
  38818. of the accumulator.
  38819. -- Built-in Function: void __builtin_rx_mvtaclo (int)
  38820. Generates the 'mvtaclo' machine instruction to set the bottom 32
  38821. bits of the accumulator.
  38822. -- Built-in Function: void __builtin_rx_mvtc (int reg, int val)
  38823. Generates the 'mvtc' machine instruction which sets control
  38824. register number 'reg' to 'val'.
  38825. -- Built-in Function: void __builtin_rx_mvtipl (int)
  38826. Generates the 'mvtipl' machine instruction set the interrupt
  38827. priority level.
  38828. -- Built-in Function: void __builtin_rx_racw (int)
  38829. Generates the 'racw' machine instruction to round the accumulator
  38830. according to the specified mode.
  38831. -- Built-in Function: int __builtin_rx_revw (int)
  38832. Generates the 'revw' machine instruction which swaps the bytes in
  38833. the argument so that bits 0-7 now occupy bits 8-15 and vice versa,
  38834. and also bits 16-23 occupy bits 24-31 and vice versa.
  38835. -- Built-in Function: void __builtin_rx_rmpa (void)
  38836. Generates the 'rmpa' machine instruction which initiates a repeated
  38837. multiply and accumulate sequence.
  38838. -- Built-in Function: void __builtin_rx_round (float)
  38839. Generates the 'round' machine instruction which returns the
  38840. floating-point argument rounded according to the current rounding
  38841. mode set in the floating-point status word register.
  38842. -- Built-in Function: int __builtin_rx_sat (int)
  38843. Generates the 'sat' machine instruction which returns the saturated
  38844. value of the argument.
  38845. -- Built-in Function: void __builtin_rx_setpsw (int)
  38846. Generates the 'setpsw' machine instruction to set the specified bit
  38847. in the processor status word.
  38848. -- Built-in Function: void __builtin_rx_wait (void)
  38849. Generates the 'wait' machine instruction.
  38850. 
  38851. File: gcc.info, Node: S/390 System z Built-in Functions, Next: SH Built-in Functions, Prev: RX Built-in Functions, Up: Target Builtins
  38852. 6.59.26 S/390 System z Built-in Functions
  38853. -----------------------------------------
  38854. -- Built-in Function: int __builtin_tbegin (void*)
  38855. Generates the 'tbegin' machine instruction starting a
  38856. non-constrained hardware transaction. If the parameter is non-NULL
  38857. the memory area is used to store the transaction diagnostic buffer
  38858. and will be passed as first operand to 'tbegin'. This buffer can
  38859. be defined using the 'struct __htm_tdb' C struct defined in
  38860. 'htmintrin.h' and must reside on a double-word boundary. The
  38861. second tbegin operand is set to '0xff0c'. This enables
  38862. save/restore of all GPRs and disables aborts for FPR and AR
  38863. manipulations inside the transaction body. The condition code set
  38864. by the tbegin instruction is returned as integer value. The tbegin
  38865. instruction by definition overwrites the content of all FPRs. The
  38866. compiler will generate code which saves and restores the FPRs. For
  38867. soft-float code it is recommended to used the '*_nofloat' variant.
  38868. In order to prevent a TDB from being written it is required to pass
  38869. a constant zero value as parameter. Passing a zero value through a
  38870. variable is not sufficient. Although modifications of access
  38871. registers inside the transaction will not trigger an transaction
  38872. abort it is not supported to actually modify them. Access
  38873. registers do not get saved when entering a transaction. They will
  38874. have undefined state when reaching the abort code.
  38875. Macros for the possible return codes of tbegin are defined in the
  38876. 'htmintrin.h' header file:
  38877. '_HTM_TBEGIN_STARTED'
  38878. 'tbegin' has been executed as part of normal processing. The
  38879. transaction body is supposed to be executed.
  38880. '_HTM_TBEGIN_INDETERMINATE'
  38881. The transaction was aborted due to an indeterminate condition which
  38882. might be persistent.
  38883. '_HTM_TBEGIN_TRANSIENT'
  38884. The transaction aborted due to a transient failure. The
  38885. transaction should be re-executed in that case.
  38886. '_HTM_TBEGIN_PERSISTENT'
  38887. The transaction aborted due to a persistent failure. Re-execution
  38888. under same circumstances will not be productive.
  38889. -- Macro: _HTM_FIRST_USER_ABORT_CODE
  38890. The '_HTM_FIRST_USER_ABORT_CODE' defined in 'htmintrin.h' specifies
  38891. the first abort code which can be used for '__builtin_tabort'.
  38892. Values below this threshold are reserved for machine use.
  38893. -- Data type: struct __htm_tdb
  38894. The 'struct __htm_tdb' defined in 'htmintrin.h' describes the
  38895. structure of the transaction diagnostic block as specified in the
  38896. Principles of Operation manual chapter 5-91.
  38897. -- Built-in Function: int __builtin_tbegin_nofloat (void*)
  38898. Same as '__builtin_tbegin' but without FPR saves and restores.
  38899. Using this variant in code making use of FPRs will leave the FPRs
  38900. in undefined state when entering the transaction abort handler
  38901. code.
  38902. -- Built-in Function: int __builtin_tbegin_retry (void*, int)
  38903. In addition to '__builtin_tbegin' a loop for transient failures is
  38904. generated. If tbegin returns a condition code of 2 the transaction
  38905. will be retried as often as specified in the second argument. The
  38906. perform processor assist instruction is used to tell the CPU about
  38907. the number of fails so far.
  38908. -- Built-in Function: int __builtin_tbegin_retry_nofloat (void*, int)
  38909. Same as '__builtin_tbegin_retry' but without FPR saves and
  38910. restores. Using this variant in code making use of FPRs will leave
  38911. the FPRs in undefined state when entering the transaction abort
  38912. handler code.
  38913. -- Built-in Function: void __builtin_tbeginc (void)
  38914. Generates the 'tbeginc' machine instruction starting a constrained
  38915. hardware transaction. The second operand is set to '0xff08'.
  38916. -- Built-in Function: int __builtin_tend (void)
  38917. Generates the 'tend' machine instruction finishing a transaction
  38918. and making the changes visible to other threads. The condition
  38919. code generated by tend is returned as integer value.
  38920. -- Built-in Function: void __builtin_tabort (int)
  38921. Generates the 'tabort' machine instruction with the specified abort
  38922. code. Abort codes from 0 through 255 are reserved and will result
  38923. in an error message.
  38924. -- Built-in Function: void __builtin_tx_assist (int)
  38925. Generates the 'ppa rX,rY,1' machine instruction. Where the integer
  38926. parameter is loaded into rX and a value of zero is loaded into rY.
  38927. The integer parameter specifies the number of times the transaction
  38928. repeatedly aborted.
  38929. -- Built-in Function: int __builtin_tx_nesting_depth (void)
  38930. Generates the 'etnd' machine instruction. The current nesting
  38931. depth is returned as integer value. For a nesting depth of 0 the
  38932. code is not executed as part of an transaction.
  38933. -- Built-in Function: void __builtin_non_tx_store (uint64_t *,
  38934. uint64_t)
  38935. Generates the 'ntstg' machine instruction. The second argument is
  38936. written to the first arguments location. The store operation will
  38937. not be rolled-back in case of an transaction abort.
  38938. 
  38939. 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
  38940. 6.59.27 SH Built-in Functions
  38941. -----------------------------
  38942. The following built-in functions are supported on the SH1, SH2, SH3 and
  38943. SH4 families of processors:
  38944. -- Built-in Function: void __builtin_set_thread_pointer (void *PTR)
  38945. Sets the 'GBR' register to the specified value PTR. This is
  38946. usually used by system code that manages threads and execution
  38947. contexts. The compiler normally does not generate code that
  38948. modifies the contents of 'GBR' and thus the value is preserved
  38949. across function calls. Changing the 'GBR' value in user code must
  38950. be done with caution, since the compiler might use 'GBR' in order
  38951. to access thread local variables.
  38952. -- Built-in Function: void * __builtin_thread_pointer (void)
  38953. Returns the value that is currently set in the 'GBR' register.
  38954. Memory loads and stores that use the thread pointer as a base
  38955. address are turned into 'GBR' based displacement loads and stores,
  38956. if possible. For example:
  38957. struct my_tcb
  38958. {
  38959. int a, b, c, d, e;
  38960. };
  38961. int get_tcb_value (void)
  38962. {
  38963. // Generate 'mov.l @(8,gbr),r0' instruction
  38964. return ((my_tcb*)__builtin_thread_pointer ())->c;
  38965. }
  38966. -- Built-in Function: unsigned int __builtin_sh_get_fpscr (void)
  38967. Returns the value that is currently set in the 'FPSCR' register.
  38968. -- Built-in Function: void __builtin_sh_set_fpscr (unsigned int VAL)
  38969. Sets the 'FPSCR' register to the specified value VAL, while
  38970. preserving the current values of the FR, SZ and PR bits.
  38971. 
  38972. File: gcc.info, Node: SPARC VIS Built-in Functions, Next: SPU Built-in Functions, Prev: SH Built-in Functions, Up: Target Builtins
  38973. 6.59.28 SPARC VIS Built-in Functions
  38974. ------------------------------------
  38975. GCC supports SIMD operations on the SPARC using both the generic vector
  38976. extensions (*note Vector Extensions::) as well as built-in functions for
  38977. the SPARC Visual Instruction Set (VIS). When you use the '-mvis' switch,
  38978. the VIS extension is exposed as the following built-in functions:
  38979. typedef int v1si __attribute__ ((vector_size (4)));
  38980. typedef int v2si __attribute__ ((vector_size (8)));
  38981. typedef short v4hi __attribute__ ((vector_size (8)));
  38982. typedef short v2hi __attribute__ ((vector_size (4)));
  38983. typedef unsigned char v8qi __attribute__ ((vector_size (8)));
  38984. typedef unsigned char v4qi __attribute__ ((vector_size (4)));
  38985. void __builtin_vis_write_gsr (int64_t);
  38986. int64_t __builtin_vis_read_gsr (void);
  38987. void * __builtin_vis_alignaddr (void *, long);
  38988. void * __builtin_vis_alignaddrl (void *, long);
  38989. int64_t __builtin_vis_faligndatadi (int64_t, int64_t);
  38990. v2si __builtin_vis_faligndatav2si (v2si, v2si);
  38991. v4hi __builtin_vis_faligndatav4hi (v4si, v4si);
  38992. v8qi __builtin_vis_faligndatav8qi (v8qi, v8qi);
  38993. v4hi __builtin_vis_fexpand (v4qi);
  38994. v4hi __builtin_vis_fmul8x16 (v4qi, v4hi);
  38995. v4hi __builtin_vis_fmul8x16au (v4qi, v2hi);
  38996. v4hi __builtin_vis_fmul8x16al (v4qi, v2hi);
  38997. v4hi __builtin_vis_fmul8sux16 (v8qi, v4hi);
  38998. v4hi __builtin_vis_fmul8ulx16 (v8qi, v4hi);
  38999. v2si __builtin_vis_fmuld8sux16 (v4qi, v2hi);
  39000. v2si __builtin_vis_fmuld8ulx16 (v4qi, v2hi);
  39001. v4qi __builtin_vis_fpack16 (v4hi);
  39002. v8qi __builtin_vis_fpack32 (v2si, v8qi);
  39003. v2hi __builtin_vis_fpackfix (v2si);
  39004. v8qi __builtin_vis_fpmerge (v4qi, v4qi);
  39005. int64_t __builtin_vis_pdist (v8qi, v8qi, int64_t);
  39006. long __builtin_vis_edge8 (void *, void *);
  39007. long __builtin_vis_edge8l (void *, void *);
  39008. long __builtin_vis_edge16 (void *, void *);
  39009. long __builtin_vis_edge16l (void *, void *);
  39010. long __builtin_vis_edge32 (void *, void *);
  39011. long __builtin_vis_edge32l (void *, void *);
  39012. long __builtin_vis_fcmple16 (v4hi, v4hi);
  39013. long __builtin_vis_fcmple32 (v2si, v2si);
  39014. long __builtin_vis_fcmpne16 (v4hi, v4hi);
  39015. long __builtin_vis_fcmpne32 (v2si, v2si);
  39016. long __builtin_vis_fcmpgt16 (v4hi, v4hi);
  39017. long __builtin_vis_fcmpgt32 (v2si, v2si);
  39018. long __builtin_vis_fcmpeq16 (v4hi, v4hi);
  39019. long __builtin_vis_fcmpeq32 (v2si, v2si);
  39020. v4hi __builtin_vis_fpadd16 (v4hi, v4hi);
  39021. v2hi __builtin_vis_fpadd16s (v2hi, v2hi);
  39022. v2si __builtin_vis_fpadd32 (v2si, v2si);
  39023. v1si __builtin_vis_fpadd32s (v1si, v1si);
  39024. v4hi __builtin_vis_fpsub16 (v4hi, v4hi);
  39025. v2hi __builtin_vis_fpsub16s (v2hi, v2hi);
  39026. v2si __builtin_vis_fpsub32 (v2si, v2si);
  39027. v1si __builtin_vis_fpsub32s (v1si, v1si);
  39028. long __builtin_vis_array8 (long, long);
  39029. long __builtin_vis_array16 (long, long);
  39030. long __builtin_vis_array32 (long, long);
  39031. When you use the '-mvis2' switch, the VIS version 2.0 built-in
  39032. functions also become available:
  39033. long __builtin_vis_bmask (long, long);
  39034. int64_t __builtin_vis_bshuffledi (int64_t, int64_t);
  39035. v2si __builtin_vis_bshufflev2si (v2si, v2si);
  39036. v4hi __builtin_vis_bshufflev2si (v4hi, v4hi);
  39037. v8qi __builtin_vis_bshufflev2si (v8qi, v8qi);
  39038. long __builtin_vis_edge8n (void *, void *);
  39039. long __builtin_vis_edge8ln (void *, void *);
  39040. long __builtin_vis_edge16n (void *, void *);
  39041. long __builtin_vis_edge16ln (void *, void *);
  39042. long __builtin_vis_edge32n (void *, void *);
  39043. long __builtin_vis_edge32ln (void *, void *);
  39044. When you use the '-mvis3' switch, the VIS version 3.0 built-in
  39045. functions also become available:
  39046. void __builtin_vis_cmask8 (long);
  39047. void __builtin_vis_cmask16 (long);
  39048. void __builtin_vis_cmask32 (long);
  39049. v4hi __builtin_vis_fchksm16 (v4hi, v4hi);
  39050. v4hi __builtin_vis_fsll16 (v4hi, v4hi);
  39051. v4hi __builtin_vis_fslas16 (v4hi, v4hi);
  39052. v4hi __builtin_vis_fsrl16 (v4hi, v4hi);
  39053. v4hi __builtin_vis_fsra16 (v4hi, v4hi);
  39054. v2si __builtin_vis_fsll16 (v2si, v2si);
  39055. v2si __builtin_vis_fslas16 (v2si, v2si);
  39056. v2si __builtin_vis_fsrl16 (v2si, v2si);
  39057. v2si __builtin_vis_fsra16 (v2si, v2si);
  39058. long __builtin_vis_pdistn (v8qi, v8qi);
  39059. v4hi __builtin_vis_fmean16 (v4hi, v4hi);
  39060. int64_t __builtin_vis_fpadd64 (int64_t, int64_t);
  39061. int64_t __builtin_vis_fpsub64 (int64_t, int64_t);
  39062. v4hi __builtin_vis_fpadds16 (v4hi, v4hi);
  39063. v2hi __builtin_vis_fpadds16s (v2hi, v2hi);
  39064. v4hi __builtin_vis_fpsubs16 (v4hi, v4hi);
  39065. v2hi __builtin_vis_fpsubs16s (v2hi, v2hi);
  39066. v2si __builtin_vis_fpadds32 (v2si, v2si);
  39067. v1si __builtin_vis_fpadds32s (v1si, v1si);
  39068. v2si __builtin_vis_fpsubs32 (v2si, v2si);
  39069. v1si __builtin_vis_fpsubs32s (v1si, v1si);
  39070. long __builtin_vis_fucmple8 (v8qi, v8qi);
  39071. long __builtin_vis_fucmpne8 (v8qi, v8qi);
  39072. long __builtin_vis_fucmpgt8 (v8qi, v8qi);
  39073. long __builtin_vis_fucmpeq8 (v8qi, v8qi);
  39074. float __builtin_vis_fhadds (float, float);
  39075. double __builtin_vis_fhaddd (double, double);
  39076. float __builtin_vis_fhsubs (float, float);
  39077. double __builtin_vis_fhsubd (double, double);
  39078. float __builtin_vis_fnhadds (float, float);
  39079. double __builtin_vis_fnhaddd (double, double);
  39080. int64_t __builtin_vis_umulxhi (int64_t, int64_t);
  39081. int64_t __builtin_vis_xmulx (int64_t, int64_t);
  39082. int64_t __builtin_vis_xmulxhi (int64_t, int64_t);
  39083. When you use the '-mvis4' switch, the VIS version 4.0 built-in
  39084. functions also become available:
  39085. v8qi __builtin_vis_fpadd8 (v8qi, v8qi);
  39086. v8qi __builtin_vis_fpadds8 (v8qi, v8qi);
  39087. v8qi __builtin_vis_fpaddus8 (v8qi, v8qi);
  39088. v4hi __builtin_vis_fpaddus16 (v4hi, v4hi);
  39089. v8qi __builtin_vis_fpsub8 (v8qi, v8qi);
  39090. v8qi __builtin_vis_fpsubs8 (v8qi, v8qi);
  39091. v8qi __builtin_vis_fpsubus8 (v8qi, v8qi);
  39092. v4hi __builtin_vis_fpsubus16 (v4hi, v4hi);
  39093. long __builtin_vis_fpcmple8 (v8qi, v8qi);
  39094. long __builtin_vis_fpcmpgt8 (v8qi, v8qi);
  39095. long __builtin_vis_fpcmpule16 (v4hi, v4hi);
  39096. long __builtin_vis_fpcmpugt16 (v4hi, v4hi);
  39097. long __builtin_vis_fpcmpule32 (v2si, v2si);
  39098. long __builtin_vis_fpcmpugt32 (v2si, v2si);
  39099. v8qi __builtin_vis_fpmax8 (v8qi, v8qi);
  39100. v4hi __builtin_vis_fpmax16 (v4hi, v4hi);
  39101. v2si __builtin_vis_fpmax32 (v2si, v2si);
  39102. v8qi __builtin_vis_fpmaxu8 (v8qi, v8qi);
  39103. v4hi __builtin_vis_fpmaxu16 (v4hi, v4hi);
  39104. v2si __builtin_vis_fpmaxu32 (v2si, v2si);
  39105. v8qi __builtin_vis_fpmin8 (v8qi, v8qi);
  39106. v4hi __builtin_vis_fpmin16 (v4hi, v4hi);
  39107. v2si __builtin_vis_fpmin32 (v2si, v2si);
  39108. v8qi __builtin_vis_fpminu8 (v8qi, v8qi);
  39109. v4hi __builtin_vis_fpminu16 (v4hi, v4hi);
  39110. v2si __builtin_vis_fpminu32 (v2si, v2si);
  39111. When you use the '-mvis4b' switch, the VIS version 4.0B built-in
  39112. functions also become available:
  39113. v8qi __builtin_vis_dictunpack8 (double, int);
  39114. v4hi __builtin_vis_dictunpack16 (double, int);
  39115. v2si __builtin_vis_dictunpack32 (double, int);
  39116. long __builtin_vis_fpcmple8shl (v8qi, v8qi, int);
  39117. long __builtin_vis_fpcmpgt8shl (v8qi, v8qi, int);
  39118. long __builtin_vis_fpcmpeq8shl (v8qi, v8qi, int);
  39119. long __builtin_vis_fpcmpne8shl (v8qi, v8qi, int);
  39120. long __builtin_vis_fpcmple16shl (v4hi, v4hi, int);
  39121. long __builtin_vis_fpcmpgt16shl (v4hi, v4hi, int);
  39122. long __builtin_vis_fpcmpeq16shl (v4hi, v4hi, int);
  39123. long __builtin_vis_fpcmpne16shl (v4hi, v4hi, int);
  39124. long __builtin_vis_fpcmple32shl (v2si, v2si, int);
  39125. long __builtin_vis_fpcmpgt32shl (v2si, v2si, int);
  39126. long __builtin_vis_fpcmpeq32shl (v2si, v2si, int);
  39127. long __builtin_vis_fpcmpne32shl (v2si, v2si, int);
  39128. long __builtin_vis_fpcmpule8shl (v8qi, v8qi, int);
  39129. long __builtin_vis_fpcmpugt8shl (v8qi, v8qi, int);
  39130. long __builtin_vis_fpcmpule16shl (v4hi, v4hi, int);
  39131. long __builtin_vis_fpcmpugt16shl (v4hi, v4hi, int);
  39132. long __builtin_vis_fpcmpule32shl (v2si, v2si, int);
  39133. long __builtin_vis_fpcmpugt32shl (v2si, v2si, int);
  39134. long __builtin_vis_fpcmpde8shl (v8qi, v8qi, int);
  39135. long __builtin_vis_fpcmpde16shl (v4hi, v4hi, int);
  39136. long __builtin_vis_fpcmpde32shl (v2si, v2si, int);
  39137. long __builtin_vis_fpcmpur8shl (v8qi, v8qi, int);
  39138. long __builtin_vis_fpcmpur16shl (v4hi, v4hi, int);
  39139. long __builtin_vis_fpcmpur32shl (v2si, v2si, int);
  39140. 
  39141. File: gcc.info, Node: SPU Built-in Functions, Next: TI C6X Built-in Functions, Prev: SPARC VIS Built-in Functions, Up: Target Builtins
  39142. 6.59.29 SPU Built-in Functions
  39143. ------------------------------
  39144. GCC provides extensions for the SPU processor as described in the
  39145. Sony/Toshiba/IBM SPU Language Extensions Specification. GCC's
  39146. implementation differs in several ways.
  39147. * The optional extension of specifying vector constants in
  39148. parentheses is not supported.
  39149. * A vector initializer requires no cast if the vector constant is of
  39150. the same type as the variable it is initializing.
  39151. * If 'signed' or 'unsigned' is omitted, the signedness of the vector
  39152. type is the default signedness of the base type. The default
  39153. varies depending on the operating system, so a portable program
  39154. should always specify the signedness.
  39155. * By default, the keyword '__vector' is added. The macro 'vector' is
  39156. defined in '<spu_intrinsics.h>' and can be undefined.
  39157. * GCC allows using a 'typedef' name as the type specifier for a
  39158. vector type.
  39159. * For C, overloaded functions are implemented with macros so the
  39160. following does not work:
  39161. spu_add ((vector signed int){1, 2, 3, 4}, foo);
  39162. Since 'spu_add' is a macro, the vector constant in the example is
  39163. treated as four separate arguments. Wrap the entire argument in
  39164. parentheses for this to work.
  39165. * The extended version of '__builtin_expect' is not supported.
  39166. _Note:_ Only the interface described in the aforementioned
  39167. specification is supported. Internally, GCC uses built-in functions to
  39168. implement the required functionality, but these are not supported and
  39169. are subject to change without notice.
  39170. 
  39171. File: gcc.info, Node: TI C6X Built-in Functions, Next: TILE-Gx Built-in Functions, Prev: SPU Built-in Functions, Up: Target Builtins
  39172. 6.59.30 TI C6X Built-in Functions
  39173. ---------------------------------
  39174. GCC provides intrinsics to access certain instructions of the TI C6X
  39175. processors. These intrinsics, listed below, are available after
  39176. inclusion of the 'c6x_intrinsics.h' header file. They map directly to
  39177. C6X instructions.
  39178. int _sadd (int, int)
  39179. int _ssub (int, int)
  39180. int _sadd2 (int, int)
  39181. int _ssub2 (int, int)
  39182. long long _mpy2 (int, int)
  39183. long long _smpy2 (int, int)
  39184. int _add4 (int, int)
  39185. int _sub4 (int, int)
  39186. int _saddu4 (int, int)
  39187. int _smpy (int, int)
  39188. int _smpyh (int, int)
  39189. int _smpyhl (int, int)
  39190. int _smpylh (int, int)
  39191. int _sshl (int, int)
  39192. int _subc (int, int)
  39193. int _avg2 (int, int)
  39194. int _avgu4 (int, int)
  39195. int _clrr (int, int)
  39196. int _extr (int, int)
  39197. int _extru (int, int)
  39198. int _abs (int)
  39199. int _abs2 (int)
  39200. 
  39201. File: gcc.info, Node: TILE-Gx Built-in Functions, Next: TILEPro Built-in Functions, Prev: TI C6X Built-in Functions, Up: Target Builtins
  39202. 6.59.31 TILE-Gx Built-in Functions
  39203. ----------------------------------
  39204. GCC provides intrinsics to access every instruction of the TILE-Gx
  39205. processor. The intrinsics are of the form:
  39206. unsigned long long __insn_OP (...)
  39207. Where OP is the name of the instruction. Refer to the ISA manual for
  39208. the complete list of instructions.
  39209. GCC also provides intrinsics to directly access the network registers.
  39210. The intrinsics are:
  39211. unsigned long long __tile_idn0_receive (void)
  39212. unsigned long long __tile_idn1_receive (void)
  39213. unsigned long long __tile_udn0_receive (void)
  39214. unsigned long long __tile_udn1_receive (void)
  39215. unsigned long long __tile_udn2_receive (void)
  39216. unsigned long long __tile_udn3_receive (void)
  39217. void __tile_idn_send (unsigned long long)
  39218. void __tile_udn_send (unsigned long long)
  39219. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  39220. that no network operations before it are reordered with those after it.
  39221. 
  39222. File: gcc.info, Node: TILEPro Built-in Functions, Next: x86 Built-in Functions, Prev: TILE-Gx Built-in Functions, Up: Target Builtins
  39223. 6.59.32 TILEPro Built-in Functions
  39224. ----------------------------------
  39225. GCC provides intrinsics to access every instruction of the TILEPro
  39226. processor. The intrinsics are of the form:
  39227. unsigned __insn_OP (...)
  39228. where OP is the name of the instruction. Refer to the ISA manual for
  39229. the complete list of instructions.
  39230. GCC also provides intrinsics to directly access the network registers.
  39231. The intrinsics are:
  39232. unsigned __tile_idn0_receive (void)
  39233. unsigned __tile_idn1_receive (void)
  39234. unsigned __tile_sn_receive (void)
  39235. unsigned __tile_udn0_receive (void)
  39236. unsigned __tile_udn1_receive (void)
  39237. unsigned __tile_udn2_receive (void)
  39238. unsigned __tile_udn3_receive (void)
  39239. void __tile_idn_send (unsigned)
  39240. void __tile_sn_send (unsigned)
  39241. void __tile_udn_send (unsigned)
  39242. The intrinsic 'void __tile_network_barrier (void)' is used to guarantee
  39243. that no network operations before it are reordered with those after it.
  39244. 
  39245. File: gcc.info, Node: x86 Built-in Functions, Next: x86 transactional memory intrinsics, Prev: TILEPro Built-in Functions, Up: Target Builtins
  39246. 6.59.33 x86 Built-in Functions
  39247. ------------------------------
  39248. These built-in functions are available for the x86-32 and x86-64 family
  39249. of computers, depending on the command-line switches used.
  39250. If you specify command-line switches such as '-msse', the compiler
  39251. could use the extended instruction sets even if the built-ins are not
  39252. used explicitly in the program. For this reason, applications that
  39253. perform run-time CPU detection must compile separate files for each
  39254. supported architecture, using the appropriate flags. In particular, the
  39255. file containing the CPU detection code should be compiled without these
  39256. options.
  39257. The following machine modes are available for use with MMX built-in
  39258. functions (*note Vector Extensions::): 'V2SI' for a vector of two 32-bit
  39259. integers, 'V4HI' for a vector of four 16-bit integers, and 'V8QI' for a
  39260. vector of eight 8-bit integers. Some of the built-in functions operate
  39261. on MMX registers as a whole 64-bit entity, these use 'V1DI' as their
  39262. mode.
  39263. If 3DNow! extensions are enabled, 'V2SF' is used as a mode for a vector
  39264. of two 32-bit floating-point values.
  39265. If SSE extensions are enabled, 'V4SF' is used for a vector of four
  39266. 32-bit floating-point values. Some instructions use a vector of four
  39267. 32-bit integers, these use 'V4SI'. Finally, some instructions operate
  39268. on an entire vector register, interpreting it as a 128-bit integer,
  39269. these use mode 'TI'.
  39270. The x86-32 and x86-64 family of processors use additional built-in
  39271. functions for efficient use of 'TF' ('__float128') 128-bit floating
  39272. point and 'TC' 128-bit complex floating-point values.
  39273. The following floating-point built-in functions are always available.
  39274. All of them implement the function that is part of the name.
  39275. __float128 __builtin_fabsq (__float128)
  39276. __float128 __builtin_copysignq (__float128, __float128)
  39277. The following built-in functions are always available.
  39278. '__float128 __builtin_infq (void)'
  39279. Similar to '__builtin_inf', except the return type is '__float128'.
  39280. '__float128 __builtin_huge_valq (void)'
  39281. Similar to '__builtin_huge_val', except the return type is
  39282. '__float128'.
  39283. '__float128 __builtin_nanq (void)'
  39284. Similar to '__builtin_nan', except the return type is '__float128'.
  39285. '__float128 __builtin_nansq (void)'
  39286. Similar to '__builtin_nans', except the return type is
  39287. '__float128'.
  39288. The following built-in function is always available.
  39289. 'void __builtin_ia32_pause (void)'
  39290. Generates the 'pause' machine instruction with a compiler memory
  39291. barrier.
  39292. The following built-in functions are always available and can be used
  39293. to check the target platform type.
  39294. -- Built-in Function: void __builtin_cpu_init (void)
  39295. This function runs the CPU detection code to check the type of CPU
  39296. and the features supported. This built-in function needs to be
  39297. invoked along with the built-in functions to check CPU type and
  39298. features, '__builtin_cpu_is' and '__builtin_cpu_supports', only
  39299. when used in a function that is executed before any constructors
  39300. are called. The CPU detection code is automatically executed in a
  39301. very high priority constructor.
  39302. For example, this function has to be used in 'ifunc' resolvers that
  39303. check for CPU type using the built-in functions '__builtin_cpu_is'
  39304. and '__builtin_cpu_supports', or in constructors on targets that
  39305. don't support constructor priority.
  39306. static void (*resolve_memcpy (void)) (void)
  39307. {
  39308. // ifunc resolvers fire before constructors, explicitly call the init
  39309. // function.
  39310. __builtin_cpu_init ();
  39311. if (__builtin_cpu_supports ("ssse3"))
  39312. return ssse3_memcpy; // super fast memcpy with ssse3 instructions.
  39313. else
  39314. return default_memcpy;
  39315. }
  39316. void *memcpy (void *, const void *, size_t)
  39317. __attribute__ ((ifunc ("resolve_memcpy")));
  39318. -- Built-in Function: int __builtin_cpu_is (const char *CPUNAME)
  39319. This function returns a positive integer if the run-time CPU is of
  39320. type CPUNAME and returns '0' otherwise. The following CPU names
  39321. can be detected:
  39322. 'intel'
  39323. Intel CPU.
  39324. 'atom'
  39325. Intel Atom CPU.
  39326. 'core2'
  39327. Intel Core 2 CPU.
  39328. 'corei7'
  39329. Intel Core i7 CPU.
  39330. 'nehalem'
  39331. Intel Core i7 Nehalem CPU.
  39332. 'westmere'
  39333. Intel Core i7 Westmere CPU.
  39334. 'sandybridge'
  39335. Intel Core i7 Sandy Bridge CPU.
  39336. 'amd'
  39337. AMD CPU.
  39338. 'amdfam10h'
  39339. AMD Family 10h CPU.
  39340. 'barcelona'
  39341. AMD Family 10h Barcelona CPU.
  39342. 'shanghai'
  39343. AMD Family 10h Shanghai CPU.
  39344. 'istanbul'
  39345. AMD Family 10h Istanbul CPU.
  39346. 'btver1'
  39347. AMD Family 14h CPU.
  39348. 'amdfam15h'
  39349. AMD Family 15h CPU.
  39350. 'bdver1'
  39351. AMD Family 15h Bulldozer version 1.
  39352. 'bdver2'
  39353. AMD Family 15h Bulldozer version 2.
  39354. 'bdver3'
  39355. AMD Family 15h Bulldozer version 3.
  39356. 'bdver4'
  39357. AMD Family 15h Bulldozer version 4.
  39358. 'btver2'
  39359. AMD Family 16h CPU.
  39360. 'amdfam17h'
  39361. AMD Family 17h CPU.
  39362. 'znver1'
  39363. AMD Family 17h Zen version 1.
  39364. Here is an example:
  39365. if (__builtin_cpu_is ("corei7"))
  39366. {
  39367. do_corei7 (); // Core i7 specific implementation.
  39368. }
  39369. else
  39370. {
  39371. do_generic (); // Generic implementation.
  39372. }
  39373. -- Built-in Function: int __builtin_cpu_supports (const char *FEATURE)
  39374. This function returns a positive integer if the run-time CPU
  39375. supports FEATURE and returns '0' otherwise. The following features
  39376. can be detected:
  39377. 'cmov'
  39378. CMOV instruction.
  39379. 'mmx'
  39380. MMX instructions.
  39381. 'popcnt'
  39382. POPCNT instruction.
  39383. 'sse'
  39384. SSE instructions.
  39385. 'sse2'
  39386. SSE2 instructions.
  39387. 'sse3'
  39388. SSE3 instructions.
  39389. 'ssse3'
  39390. SSSE3 instructions.
  39391. 'sse4.1'
  39392. SSE4.1 instructions.
  39393. 'sse4.2'
  39394. SSE4.2 instructions.
  39395. 'avx'
  39396. AVX instructions.
  39397. 'avx2'
  39398. AVX2 instructions.
  39399. 'avx512f'
  39400. AVX512F instructions.
  39401. Here is an example:
  39402. if (__builtin_cpu_supports ("popcnt"))
  39403. {
  39404. asm("popcnt %1,%0" : "=r"(count) : "rm"(n) : "cc");
  39405. }
  39406. else
  39407. {
  39408. count = generic_countbits (n); //generic implementation.
  39409. }
  39410. The following built-in functions are made available by '-mmmx'. All of
  39411. them generate the machine instruction that is part of the name.
  39412. v8qi __builtin_ia32_paddb (v8qi, v8qi)
  39413. v4hi __builtin_ia32_paddw (v4hi, v4hi)
  39414. v2si __builtin_ia32_paddd (v2si, v2si)
  39415. v8qi __builtin_ia32_psubb (v8qi, v8qi)
  39416. v4hi __builtin_ia32_psubw (v4hi, v4hi)
  39417. v2si __builtin_ia32_psubd (v2si, v2si)
  39418. v8qi __builtin_ia32_paddsb (v8qi, v8qi)
  39419. v4hi __builtin_ia32_paddsw (v4hi, v4hi)
  39420. v8qi __builtin_ia32_psubsb (v8qi, v8qi)
  39421. v4hi __builtin_ia32_psubsw (v4hi, v4hi)
  39422. v8qi __builtin_ia32_paddusb (v8qi, v8qi)
  39423. v4hi __builtin_ia32_paddusw (v4hi, v4hi)
  39424. v8qi __builtin_ia32_psubusb (v8qi, v8qi)
  39425. v4hi __builtin_ia32_psubusw (v4hi, v4hi)
  39426. v4hi __builtin_ia32_pmullw (v4hi, v4hi)
  39427. v4hi __builtin_ia32_pmulhw (v4hi, v4hi)
  39428. di __builtin_ia32_pand (di, di)
  39429. di __builtin_ia32_pandn (di,di)
  39430. di __builtin_ia32_por (di, di)
  39431. di __builtin_ia32_pxor (di, di)
  39432. v8qi __builtin_ia32_pcmpeqb (v8qi, v8qi)
  39433. v4hi __builtin_ia32_pcmpeqw (v4hi, v4hi)
  39434. v2si __builtin_ia32_pcmpeqd (v2si, v2si)
  39435. v8qi __builtin_ia32_pcmpgtb (v8qi, v8qi)
  39436. v4hi __builtin_ia32_pcmpgtw (v4hi, v4hi)
  39437. v2si __builtin_ia32_pcmpgtd (v2si, v2si)
  39438. v8qi __builtin_ia32_punpckhbw (v8qi, v8qi)
  39439. v4hi __builtin_ia32_punpckhwd (v4hi, v4hi)
  39440. v2si __builtin_ia32_punpckhdq (v2si, v2si)
  39441. v8qi __builtin_ia32_punpcklbw (v8qi, v8qi)
  39442. v4hi __builtin_ia32_punpcklwd (v4hi, v4hi)
  39443. v2si __builtin_ia32_punpckldq (v2si, v2si)
  39444. v8qi __builtin_ia32_packsswb (v4hi, v4hi)
  39445. v4hi __builtin_ia32_packssdw (v2si, v2si)
  39446. v8qi __builtin_ia32_packuswb (v4hi, v4hi)
  39447. v4hi __builtin_ia32_psllw (v4hi, v4hi)
  39448. v2si __builtin_ia32_pslld (v2si, v2si)
  39449. v1di __builtin_ia32_psllq (v1di, v1di)
  39450. v4hi __builtin_ia32_psrlw (v4hi, v4hi)
  39451. v2si __builtin_ia32_psrld (v2si, v2si)
  39452. v1di __builtin_ia32_psrlq (v1di, v1di)
  39453. v4hi __builtin_ia32_psraw (v4hi, v4hi)
  39454. v2si __builtin_ia32_psrad (v2si, v2si)
  39455. v4hi __builtin_ia32_psllwi (v4hi, int)
  39456. v2si __builtin_ia32_pslldi (v2si, int)
  39457. v1di __builtin_ia32_psllqi (v1di, int)
  39458. v4hi __builtin_ia32_psrlwi (v4hi, int)
  39459. v2si __builtin_ia32_psrldi (v2si, int)
  39460. v1di __builtin_ia32_psrlqi (v1di, int)
  39461. v4hi __builtin_ia32_psrawi (v4hi, int)
  39462. v2si __builtin_ia32_psradi (v2si, int)
  39463. The following built-in functions are made available either with
  39464. '-msse', or with '-m3dnowa'. All of them generate the machine
  39465. instruction that is part of the name.
  39466. v4hi __builtin_ia32_pmulhuw (v4hi, v4hi)
  39467. v8qi __builtin_ia32_pavgb (v8qi, v8qi)
  39468. v4hi __builtin_ia32_pavgw (v4hi, v4hi)
  39469. v1di __builtin_ia32_psadbw (v8qi, v8qi)
  39470. v8qi __builtin_ia32_pmaxub (v8qi, v8qi)
  39471. v4hi __builtin_ia32_pmaxsw (v4hi, v4hi)
  39472. v8qi __builtin_ia32_pminub (v8qi, v8qi)
  39473. v4hi __builtin_ia32_pminsw (v4hi, v4hi)
  39474. int __builtin_ia32_pmovmskb (v8qi)
  39475. void __builtin_ia32_maskmovq (v8qi, v8qi, char *)
  39476. void __builtin_ia32_movntq (di *, di)
  39477. void __builtin_ia32_sfence (void)
  39478. The following built-in functions are available when '-msse' is used.
  39479. All of them generate the machine instruction that is part of the name.
  39480. int __builtin_ia32_comieq (v4sf, v4sf)
  39481. int __builtin_ia32_comineq (v4sf, v4sf)
  39482. int __builtin_ia32_comilt (v4sf, v4sf)
  39483. int __builtin_ia32_comile (v4sf, v4sf)
  39484. int __builtin_ia32_comigt (v4sf, v4sf)
  39485. int __builtin_ia32_comige (v4sf, v4sf)
  39486. int __builtin_ia32_ucomieq (v4sf, v4sf)
  39487. int __builtin_ia32_ucomineq (v4sf, v4sf)
  39488. int __builtin_ia32_ucomilt (v4sf, v4sf)
  39489. int __builtin_ia32_ucomile (v4sf, v4sf)
  39490. int __builtin_ia32_ucomigt (v4sf, v4sf)
  39491. int __builtin_ia32_ucomige (v4sf, v4sf)
  39492. v4sf __builtin_ia32_addps (v4sf, v4sf)
  39493. v4sf __builtin_ia32_subps (v4sf, v4sf)
  39494. v4sf __builtin_ia32_mulps (v4sf, v4sf)
  39495. v4sf __builtin_ia32_divps (v4sf, v4sf)
  39496. v4sf __builtin_ia32_addss (v4sf, v4sf)
  39497. v4sf __builtin_ia32_subss (v4sf, v4sf)
  39498. v4sf __builtin_ia32_mulss (v4sf, v4sf)
  39499. v4sf __builtin_ia32_divss (v4sf, v4sf)
  39500. v4sf __builtin_ia32_cmpeqps (v4sf, v4sf)
  39501. v4sf __builtin_ia32_cmpltps (v4sf, v4sf)
  39502. v4sf __builtin_ia32_cmpleps (v4sf, v4sf)
  39503. v4sf __builtin_ia32_cmpgtps (v4sf, v4sf)
  39504. v4sf __builtin_ia32_cmpgeps (v4sf, v4sf)
  39505. v4sf __builtin_ia32_cmpunordps (v4sf, v4sf)
  39506. v4sf __builtin_ia32_cmpneqps (v4sf, v4sf)
  39507. v4sf __builtin_ia32_cmpnltps (v4sf, v4sf)
  39508. v4sf __builtin_ia32_cmpnleps (v4sf, v4sf)
  39509. v4sf __builtin_ia32_cmpngtps (v4sf, v4sf)
  39510. v4sf __builtin_ia32_cmpngeps (v4sf, v4sf)
  39511. v4sf __builtin_ia32_cmpordps (v4sf, v4sf)
  39512. v4sf __builtin_ia32_cmpeqss (v4sf, v4sf)
  39513. v4sf __builtin_ia32_cmpltss (v4sf, v4sf)
  39514. v4sf __builtin_ia32_cmpless (v4sf, v4sf)
  39515. v4sf __builtin_ia32_cmpunordss (v4sf, v4sf)
  39516. v4sf __builtin_ia32_cmpneqss (v4sf, v4sf)
  39517. v4sf __builtin_ia32_cmpnltss (v4sf, v4sf)
  39518. v4sf __builtin_ia32_cmpnless (v4sf, v4sf)
  39519. v4sf __builtin_ia32_cmpordss (v4sf, v4sf)
  39520. v4sf __builtin_ia32_maxps (v4sf, v4sf)
  39521. v4sf __builtin_ia32_maxss (v4sf, v4sf)
  39522. v4sf __builtin_ia32_minps (v4sf, v4sf)
  39523. v4sf __builtin_ia32_minss (v4sf, v4sf)
  39524. v4sf __builtin_ia32_andps (v4sf, v4sf)
  39525. v4sf __builtin_ia32_andnps (v4sf, v4sf)
  39526. v4sf __builtin_ia32_orps (v4sf, v4sf)
  39527. v4sf __builtin_ia32_xorps (v4sf, v4sf)
  39528. v4sf __builtin_ia32_movss (v4sf, v4sf)
  39529. v4sf __builtin_ia32_movhlps (v4sf, v4sf)
  39530. v4sf __builtin_ia32_movlhps (v4sf, v4sf)
  39531. v4sf __builtin_ia32_unpckhps (v4sf, v4sf)
  39532. v4sf __builtin_ia32_unpcklps (v4sf, v4sf)
  39533. v4sf __builtin_ia32_cvtpi2ps (v4sf, v2si)
  39534. v4sf __builtin_ia32_cvtsi2ss (v4sf, int)
  39535. v2si __builtin_ia32_cvtps2pi (v4sf)
  39536. int __builtin_ia32_cvtss2si (v4sf)
  39537. v2si __builtin_ia32_cvttps2pi (v4sf)
  39538. int __builtin_ia32_cvttss2si (v4sf)
  39539. v4sf __builtin_ia32_rcpps (v4sf)
  39540. v4sf __builtin_ia32_rsqrtps (v4sf)
  39541. v4sf __builtin_ia32_sqrtps (v4sf)
  39542. v4sf __builtin_ia32_rcpss (v4sf)
  39543. v4sf __builtin_ia32_rsqrtss (v4sf)
  39544. v4sf __builtin_ia32_sqrtss (v4sf)
  39545. v4sf __builtin_ia32_shufps (v4sf, v4sf, int)
  39546. void __builtin_ia32_movntps (float *, v4sf)
  39547. int __builtin_ia32_movmskps (v4sf)
  39548. The following built-in functions are available when '-msse' is used.
  39549. 'v4sf __builtin_ia32_loadups (float *)'
  39550. Generates the 'movups' machine instruction as a load from memory.
  39551. 'void __builtin_ia32_storeups (float *, v4sf)'
  39552. Generates the 'movups' machine instruction as a store to memory.
  39553. 'v4sf __builtin_ia32_loadss (float *)'
  39554. Generates the 'movss' machine instruction as a load from memory.
  39555. 'v4sf __builtin_ia32_loadhps (v4sf, const v2sf *)'
  39556. Generates the 'movhps' machine instruction as a load from memory.
  39557. 'v4sf __builtin_ia32_loadlps (v4sf, const v2sf *)'
  39558. Generates the 'movlps' machine instruction as a load from memory
  39559. 'void __builtin_ia32_storehps (v2sf *, v4sf)'
  39560. Generates the 'movhps' machine instruction as a store to memory.
  39561. 'void __builtin_ia32_storelps (v2sf *, v4sf)'
  39562. Generates the 'movlps' machine instruction as a store to memory.
  39563. The following built-in functions are available when '-msse2' is used.
  39564. All of them generate the machine instruction that is part of the name.
  39565. int __builtin_ia32_comisdeq (v2df, v2df)
  39566. int __builtin_ia32_comisdlt (v2df, v2df)
  39567. int __builtin_ia32_comisdle (v2df, v2df)
  39568. int __builtin_ia32_comisdgt (v2df, v2df)
  39569. int __builtin_ia32_comisdge (v2df, v2df)
  39570. int __builtin_ia32_comisdneq (v2df, v2df)
  39571. int __builtin_ia32_ucomisdeq (v2df, v2df)
  39572. int __builtin_ia32_ucomisdlt (v2df, v2df)
  39573. int __builtin_ia32_ucomisdle (v2df, v2df)
  39574. int __builtin_ia32_ucomisdgt (v2df, v2df)
  39575. int __builtin_ia32_ucomisdge (v2df, v2df)
  39576. int __builtin_ia32_ucomisdneq (v2df, v2df)
  39577. v2df __builtin_ia32_cmpeqpd (v2df, v2df)
  39578. v2df __builtin_ia32_cmpltpd (v2df, v2df)
  39579. v2df __builtin_ia32_cmplepd (v2df, v2df)
  39580. v2df __builtin_ia32_cmpgtpd (v2df, v2df)
  39581. v2df __builtin_ia32_cmpgepd (v2df, v2df)
  39582. v2df __builtin_ia32_cmpunordpd (v2df, v2df)
  39583. v2df __builtin_ia32_cmpneqpd (v2df, v2df)
  39584. v2df __builtin_ia32_cmpnltpd (v2df, v2df)
  39585. v2df __builtin_ia32_cmpnlepd (v2df, v2df)
  39586. v2df __builtin_ia32_cmpngtpd (v2df, v2df)
  39587. v2df __builtin_ia32_cmpngepd (v2df, v2df)
  39588. v2df __builtin_ia32_cmpordpd (v2df, v2df)
  39589. v2df __builtin_ia32_cmpeqsd (v2df, v2df)
  39590. v2df __builtin_ia32_cmpltsd (v2df, v2df)
  39591. v2df __builtin_ia32_cmplesd (v2df, v2df)
  39592. v2df __builtin_ia32_cmpunordsd (v2df, v2df)
  39593. v2df __builtin_ia32_cmpneqsd (v2df, v2df)
  39594. v2df __builtin_ia32_cmpnltsd (v2df, v2df)
  39595. v2df __builtin_ia32_cmpnlesd (v2df, v2df)
  39596. v2df __builtin_ia32_cmpordsd (v2df, v2df)
  39597. v2di __builtin_ia32_paddq (v2di, v2di)
  39598. v2di __builtin_ia32_psubq (v2di, v2di)
  39599. v2df __builtin_ia32_addpd (v2df, v2df)
  39600. v2df __builtin_ia32_subpd (v2df, v2df)
  39601. v2df __builtin_ia32_mulpd (v2df, v2df)
  39602. v2df __builtin_ia32_divpd (v2df, v2df)
  39603. v2df __builtin_ia32_addsd (v2df, v2df)
  39604. v2df __builtin_ia32_subsd (v2df, v2df)
  39605. v2df __builtin_ia32_mulsd (v2df, v2df)
  39606. v2df __builtin_ia32_divsd (v2df, v2df)
  39607. v2df __builtin_ia32_minpd (v2df, v2df)
  39608. v2df __builtin_ia32_maxpd (v2df, v2df)
  39609. v2df __builtin_ia32_minsd (v2df, v2df)
  39610. v2df __builtin_ia32_maxsd (v2df, v2df)
  39611. v2df __builtin_ia32_andpd (v2df, v2df)
  39612. v2df __builtin_ia32_andnpd (v2df, v2df)
  39613. v2df __builtin_ia32_orpd (v2df, v2df)
  39614. v2df __builtin_ia32_xorpd (v2df, v2df)
  39615. v2df __builtin_ia32_movsd (v2df, v2df)
  39616. v2df __builtin_ia32_unpckhpd (v2df, v2df)
  39617. v2df __builtin_ia32_unpcklpd (v2df, v2df)
  39618. v16qi __builtin_ia32_paddb128 (v16qi, v16qi)
  39619. v8hi __builtin_ia32_paddw128 (v8hi, v8hi)
  39620. v4si __builtin_ia32_paddd128 (v4si, v4si)
  39621. v2di __builtin_ia32_paddq128 (v2di, v2di)
  39622. v16qi __builtin_ia32_psubb128 (v16qi, v16qi)
  39623. v8hi __builtin_ia32_psubw128 (v8hi, v8hi)
  39624. v4si __builtin_ia32_psubd128 (v4si, v4si)
  39625. v2di __builtin_ia32_psubq128 (v2di, v2di)
  39626. v8hi __builtin_ia32_pmullw128 (v8hi, v8hi)
  39627. v8hi __builtin_ia32_pmulhw128 (v8hi, v8hi)
  39628. v2di __builtin_ia32_pand128 (v2di, v2di)
  39629. v2di __builtin_ia32_pandn128 (v2di, v2di)
  39630. v2di __builtin_ia32_por128 (v2di, v2di)
  39631. v2di __builtin_ia32_pxor128 (v2di, v2di)
  39632. v16qi __builtin_ia32_pavgb128 (v16qi, v16qi)
  39633. v8hi __builtin_ia32_pavgw128 (v8hi, v8hi)
  39634. v16qi __builtin_ia32_pcmpeqb128 (v16qi, v16qi)
  39635. v8hi __builtin_ia32_pcmpeqw128 (v8hi, v8hi)
  39636. v4si __builtin_ia32_pcmpeqd128 (v4si, v4si)
  39637. v16qi __builtin_ia32_pcmpgtb128 (v16qi, v16qi)
  39638. v8hi __builtin_ia32_pcmpgtw128 (v8hi, v8hi)
  39639. v4si __builtin_ia32_pcmpgtd128 (v4si, v4si)
  39640. v16qi __builtin_ia32_pmaxub128 (v16qi, v16qi)
  39641. v8hi __builtin_ia32_pmaxsw128 (v8hi, v8hi)
  39642. v16qi __builtin_ia32_pminub128 (v16qi, v16qi)
  39643. v8hi __builtin_ia32_pminsw128 (v8hi, v8hi)
  39644. v16qi __builtin_ia32_punpckhbw128 (v16qi, v16qi)
  39645. v8hi __builtin_ia32_punpckhwd128 (v8hi, v8hi)
  39646. v4si __builtin_ia32_punpckhdq128 (v4si, v4si)
  39647. v2di __builtin_ia32_punpckhqdq128 (v2di, v2di)
  39648. v16qi __builtin_ia32_punpcklbw128 (v16qi, v16qi)
  39649. v8hi __builtin_ia32_punpcklwd128 (v8hi, v8hi)
  39650. v4si __builtin_ia32_punpckldq128 (v4si, v4si)
  39651. v2di __builtin_ia32_punpcklqdq128 (v2di, v2di)
  39652. v16qi __builtin_ia32_packsswb128 (v8hi, v8hi)
  39653. v8hi __builtin_ia32_packssdw128 (v4si, v4si)
  39654. v16qi __builtin_ia32_packuswb128 (v8hi, v8hi)
  39655. v8hi __builtin_ia32_pmulhuw128 (v8hi, v8hi)
  39656. void __builtin_ia32_maskmovdqu (v16qi, v16qi)
  39657. v2df __builtin_ia32_loadupd (double *)
  39658. void __builtin_ia32_storeupd (double *, v2df)
  39659. v2df __builtin_ia32_loadhpd (v2df, double const *)
  39660. v2df __builtin_ia32_loadlpd (v2df, double const *)
  39661. int __builtin_ia32_movmskpd (v2df)
  39662. int __builtin_ia32_pmovmskb128 (v16qi)
  39663. void __builtin_ia32_movnti (int *, int)
  39664. void __builtin_ia32_movnti64 (long long int *, long long int)
  39665. void __builtin_ia32_movntpd (double *, v2df)
  39666. void __builtin_ia32_movntdq (v2df *, v2df)
  39667. v4si __builtin_ia32_pshufd (v4si, int)
  39668. v8hi __builtin_ia32_pshuflw (v8hi, int)
  39669. v8hi __builtin_ia32_pshufhw (v8hi, int)
  39670. v2di __builtin_ia32_psadbw128 (v16qi, v16qi)
  39671. v2df __builtin_ia32_sqrtpd (v2df)
  39672. v2df __builtin_ia32_sqrtsd (v2df)
  39673. v2df __builtin_ia32_shufpd (v2df, v2df, int)
  39674. v2df __builtin_ia32_cvtdq2pd (v4si)
  39675. v4sf __builtin_ia32_cvtdq2ps (v4si)
  39676. v4si __builtin_ia32_cvtpd2dq (v2df)
  39677. v2si __builtin_ia32_cvtpd2pi (v2df)
  39678. v4sf __builtin_ia32_cvtpd2ps (v2df)
  39679. v4si __builtin_ia32_cvttpd2dq (v2df)
  39680. v2si __builtin_ia32_cvttpd2pi (v2df)
  39681. v2df __builtin_ia32_cvtpi2pd (v2si)
  39682. int __builtin_ia32_cvtsd2si (v2df)
  39683. int __builtin_ia32_cvttsd2si (v2df)
  39684. long long __builtin_ia32_cvtsd2si64 (v2df)
  39685. long long __builtin_ia32_cvttsd2si64 (v2df)
  39686. v4si __builtin_ia32_cvtps2dq (v4sf)
  39687. v2df __builtin_ia32_cvtps2pd (v4sf)
  39688. v4si __builtin_ia32_cvttps2dq (v4sf)
  39689. v2df __builtin_ia32_cvtsi2sd (v2df, int)
  39690. v2df __builtin_ia32_cvtsi642sd (v2df, long long)
  39691. v4sf __builtin_ia32_cvtsd2ss (v4sf, v2df)
  39692. v2df __builtin_ia32_cvtss2sd (v2df, v4sf)
  39693. void __builtin_ia32_clflush (const void *)
  39694. void __builtin_ia32_lfence (void)
  39695. void __builtin_ia32_mfence (void)
  39696. v16qi __builtin_ia32_loaddqu (const char *)
  39697. void __builtin_ia32_storedqu (char *, v16qi)
  39698. v1di __builtin_ia32_pmuludq (v2si, v2si)
  39699. v2di __builtin_ia32_pmuludq128 (v4si, v4si)
  39700. v8hi __builtin_ia32_psllw128 (v8hi, v8hi)
  39701. v4si __builtin_ia32_pslld128 (v4si, v4si)
  39702. v2di __builtin_ia32_psllq128 (v2di, v2di)
  39703. v8hi __builtin_ia32_psrlw128 (v8hi, v8hi)
  39704. v4si __builtin_ia32_psrld128 (v4si, v4si)
  39705. v2di __builtin_ia32_psrlq128 (v2di, v2di)
  39706. v8hi __builtin_ia32_psraw128 (v8hi, v8hi)
  39707. v4si __builtin_ia32_psrad128 (v4si, v4si)
  39708. v2di __builtin_ia32_pslldqi128 (v2di, int)
  39709. v8hi __builtin_ia32_psllwi128 (v8hi, int)
  39710. v4si __builtin_ia32_pslldi128 (v4si, int)
  39711. v2di __builtin_ia32_psllqi128 (v2di, int)
  39712. v2di __builtin_ia32_psrldqi128 (v2di, int)
  39713. v8hi __builtin_ia32_psrlwi128 (v8hi, int)
  39714. v4si __builtin_ia32_psrldi128 (v4si, int)
  39715. v2di __builtin_ia32_psrlqi128 (v2di, int)
  39716. v8hi __builtin_ia32_psrawi128 (v8hi, int)
  39717. v4si __builtin_ia32_psradi128 (v4si, int)
  39718. v4si __builtin_ia32_pmaddwd128 (v8hi, v8hi)
  39719. v2di __builtin_ia32_movq128 (v2di)
  39720. The following built-in functions are available when '-msse3' is used.
  39721. All of them generate the machine instruction that is part of the name.
  39722. v2df __builtin_ia32_addsubpd (v2df, v2df)
  39723. v4sf __builtin_ia32_addsubps (v4sf, v4sf)
  39724. v2df __builtin_ia32_haddpd (v2df, v2df)
  39725. v4sf __builtin_ia32_haddps (v4sf, v4sf)
  39726. v2df __builtin_ia32_hsubpd (v2df, v2df)
  39727. v4sf __builtin_ia32_hsubps (v4sf, v4sf)
  39728. v16qi __builtin_ia32_lddqu (char const *)
  39729. void __builtin_ia32_monitor (void *, unsigned int, unsigned int)
  39730. v4sf __builtin_ia32_movshdup (v4sf)
  39731. v4sf __builtin_ia32_movsldup (v4sf)
  39732. void __builtin_ia32_mwait (unsigned int, unsigned int)
  39733. The following built-in functions are available when '-mssse3' is used.
  39734. All of them generate the machine instruction that is part of the name.
  39735. v2si __builtin_ia32_phaddd (v2si, v2si)
  39736. v4hi __builtin_ia32_phaddw (v4hi, v4hi)
  39737. v4hi __builtin_ia32_phaddsw (v4hi, v4hi)
  39738. v2si __builtin_ia32_phsubd (v2si, v2si)
  39739. v4hi __builtin_ia32_phsubw (v4hi, v4hi)
  39740. v4hi __builtin_ia32_phsubsw (v4hi, v4hi)
  39741. v4hi __builtin_ia32_pmaddubsw (v8qi, v8qi)
  39742. v4hi __builtin_ia32_pmulhrsw (v4hi, v4hi)
  39743. v8qi __builtin_ia32_pshufb (v8qi, v8qi)
  39744. v8qi __builtin_ia32_psignb (v8qi, v8qi)
  39745. v2si __builtin_ia32_psignd (v2si, v2si)
  39746. v4hi __builtin_ia32_psignw (v4hi, v4hi)
  39747. v1di __builtin_ia32_palignr (v1di, v1di, int)
  39748. v8qi __builtin_ia32_pabsb (v8qi)
  39749. v2si __builtin_ia32_pabsd (v2si)
  39750. v4hi __builtin_ia32_pabsw (v4hi)
  39751. The following built-in functions are available when '-mssse3' is used.
  39752. All of them generate the machine instruction that is part of the name.
  39753. v4si __builtin_ia32_phaddd128 (v4si, v4si)
  39754. v8hi __builtin_ia32_phaddw128 (v8hi, v8hi)
  39755. v8hi __builtin_ia32_phaddsw128 (v8hi, v8hi)
  39756. v4si __builtin_ia32_phsubd128 (v4si, v4si)
  39757. v8hi __builtin_ia32_phsubw128 (v8hi, v8hi)
  39758. v8hi __builtin_ia32_phsubsw128 (v8hi, v8hi)
  39759. v8hi __builtin_ia32_pmaddubsw128 (v16qi, v16qi)
  39760. v8hi __builtin_ia32_pmulhrsw128 (v8hi, v8hi)
  39761. v16qi __builtin_ia32_pshufb128 (v16qi, v16qi)
  39762. v16qi __builtin_ia32_psignb128 (v16qi, v16qi)
  39763. v4si __builtin_ia32_psignd128 (v4si, v4si)
  39764. v8hi __builtin_ia32_psignw128 (v8hi, v8hi)
  39765. v2di __builtin_ia32_palignr128 (v2di, v2di, int)
  39766. v16qi __builtin_ia32_pabsb128 (v16qi)
  39767. v4si __builtin_ia32_pabsd128 (v4si)
  39768. v8hi __builtin_ia32_pabsw128 (v8hi)
  39769. The following built-in functions are available when '-msse4.1' is used.
  39770. All of them generate the machine instruction that is part of the name.
  39771. v2df __builtin_ia32_blendpd (v2df, v2df, const int)
  39772. v4sf __builtin_ia32_blendps (v4sf, v4sf, const int)
  39773. v2df __builtin_ia32_blendvpd (v2df, v2df, v2df)
  39774. v4sf __builtin_ia32_blendvps (v4sf, v4sf, v4sf)
  39775. v2df __builtin_ia32_dppd (v2df, v2df, const int)
  39776. v4sf __builtin_ia32_dpps (v4sf, v4sf, const int)
  39777. v4sf __builtin_ia32_insertps128 (v4sf, v4sf, const int)
  39778. v2di __builtin_ia32_movntdqa (v2di *);
  39779. v16qi __builtin_ia32_mpsadbw128 (v16qi, v16qi, const int)
  39780. v8hi __builtin_ia32_packusdw128 (v4si, v4si)
  39781. v16qi __builtin_ia32_pblendvb128 (v16qi, v16qi, v16qi)
  39782. v8hi __builtin_ia32_pblendw128 (v8hi, v8hi, const int)
  39783. v2di __builtin_ia32_pcmpeqq (v2di, v2di)
  39784. v8hi __builtin_ia32_phminposuw128 (v8hi)
  39785. v16qi __builtin_ia32_pmaxsb128 (v16qi, v16qi)
  39786. v4si __builtin_ia32_pmaxsd128 (v4si, v4si)
  39787. v4si __builtin_ia32_pmaxud128 (v4si, v4si)
  39788. v8hi __builtin_ia32_pmaxuw128 (v8hi, v8hi)
  39789. v16qi __builtin_ia32_pminsb128 (v16qi, v16qi)
  39790. v4si __builtin_ia32_pminsd128 (v4si, v4si)
  39791. v4si __builtin_ia32_pminud128 (v4si, v4si)
  39792. v8hi __builtin_ia32_pminuw128 (v8hi, v8hi)
  39793. v4si __builtin_ia32_pmovsxbd128 (v16qi)
  39794. v2di __builtin_ia32_pmovsxbq128 (v16qi)
  39795. v8hi __builtin_ia32_pmovsxbw128 (v16qi)
  39796. v2di __builtin_ia32_pmovsxdq128 (v4si)
  39797. v4si __builtin_ia32_pmovsxwd128 (v8hi)
  39798. v2di __builtin_ia32_pmovsxwq128 (v8hi)
  39799. v4si __builtin_ia32_pmovzxbd128 (v16qi)
  39800. v2di __builtin_ia32_pmovzxbq128 (v16qi)
  39801. v8hi __builtin_ia32_pmovzxbw128 (v16qi)
  39802. v2di __builtin_ia32_pmovzxdq128 (v4si)
  39803. v4si __builtin_ia32_pmovzxwd128 (v8hi)
  39804. v2di __builtin_ia32_pmovzxwq128 (v8hi)
  39805. v2di __builtin_ia32_pmuldq128 (v4si, v4si)
  39806. v4si __builtin_ia32_pmulld128 (v4si, v4si)
  39807. int __builtin_ia32_ptestc128 (v2di, v2di)
  39808. int __builtin_ia32_ptestnzc128 (v2di, v2di)
  39809. int __builtin_ia32_ptestz128 (v2di, v2di)
  39810. v2df __builtin_ia32_roundpd (v2df, const int)
  39811. v4sf __builtin_ia32_roundps (v4sf, const int)
  39812. v2df __builtin_ia32_roundsd (v2df, v2df, const int)
  39813. v4sf __builtin_ia32_roundss (v4sf, v4sf, const int)
  39814. The following built-in functions are available when '-msse4.1' is used.
  39815. 'v4sf __builtin_ia32_vec_set_v4sf (v4sf, float, const int)'
  39816. Generates the 'insertps' machine instruction.
  39817. 'int __builtin_ia32_vec_ext_v16qi (v16qi, const int)'
  39818. Generates the 'pextrb' machine instruction.
  39819. 'v16qi __builtin_ia32_vec_set_v16qi (v16qi, int, const int)'
  39820. Generates the 'pinsrb' machine instruction.
  39821. 'v4si __builtin_ia32_vec_set_v4si (v4si, int, const int)'
  39822. Generates the 'pinsrd' machine instruction.
  39823. 'v2di __builtin_ia32_vec_set_v2di (v2di, long long, const int)'
  39824. Generates the 'pinsrq' machine instruction in 64bit mode.
  39825. The following built-in functions are changed to generate new SSE4.1
  39826. instructions when '-msse4.1' is used.
  39827. 'float __builtin_ia32_vec_ext_v4sf (v4sf, const int)'
  39828. Generates the 'extractps' machine instruction.
  39829. 'int __builtin_ia32_vec_ext_v4si (v4si, const int)'
  39830. Generates the 'pextrd' machine instruction.
  39831. 'long long __builtin_ia32_vec_ext_v2di (v2di, const int)'
  39832. Generates the 'pextrq' machine instruction in 64bit mode.
  39833. The following built-in functions are available when '-msse4.2' is used.
  39834. All of them generate the machine instruction that is part of the name.
  39835. v16qi __builtin_ia32_pcmpestrm128 (v16qi, int, v16qi, int, const int)
  39836. int __builtin_ia32_pcmpestri128 (v16qi, int, v16qi, int, const int)
  39837. int __builtin_ia32_pcmpestria128 (v16qi, int, v16qi, int, const int)
  39838. int __builtin_ia32_pcmpestric128 (v16qi, int, v16qi, int, const int)
  39839. int __builtin_ia32_pcmpestrio128 (v16qi, int, v16qi, int, const int)
  39840. int __builtin_ia32_pcmpestris128 (v16qi, int, v16qi, int, const int)
  39841. int __builtin_ia32_pcmpestriz128 (v16qi, int, v16qi, int, const int)
  39842. v16qi __builtin_ia32_pcmpistrm128 (v16qi, v16qi, const int)
  39843. int __builtin_ia32_pcmpistri128 (v16qi, v16qi, const int)
  39844. int __builtin_ia32_pcmpistria128 (v16qi, v16qi, const int)
  39845. int __builtin_ia32_pcmpistric128 (v16qi, v16qi, const int)
  39846. int __builtin_ia32_pcmpistrio128 (v16qi, v16qi, const int)
  39847. int __builtin_ia32_pcmpistris128 (v16qi, v16qi, const int)
  39848. int __builtin_ia32_pcmpistriz128 (v16qi, v16qi, const int)
  39849. v2di __builtin_ia32_pcmpgtq (v2di, v2di)
  39850. The following built-in functions are available when '-msse4.2' is used.
  39851. 'unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char)'
  39852. Generates the 'crc32b' machine instruction.
  39853. 'unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short)'
  39854. Generates the 'crc32w' machine instruction.
  39855. 'unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int)'
  39856. Generates the 'crc32l' machine instruction.
  39857. 'unsigned long long __builtin_ia32_crc32di (unsigned long long, unsigned long long)'
  39858. Generates the 'crc32q' machine instruction.
  39859. The following built-in functions are changed to generate new SSE4.2
  39860. instructions when '-msse4.2' is used.
  39861. 'int __builtin_popcount (unsigned int)'
  39862. Generates the 'popcntl' machine instruction.
  39863. 'int __builtin_popcountl (unsigned long)'
  39864. Generates the 'popcntl' or 'popcntq' machine instruction, depending
  39865. on the size of 'unsigned long'.
  39866. 'int __builtin_popcountll (unsigned long long)'
  39867. Generates the 'popcntq' machine instruction.
  39868. The following built-in functions are available when '-mavx' is used.
  39869. All of them generate the machine instruction that is part of the name.
  39870. v4df __builtin_ia32_addpd256 (v4df,v4df)
  39871. v8sf __builtin_ia32_addps256 (v8sf,v8sf)
  39872. v4df __builtin_ia32_addsubpd256 (v4df,v4df)
  39873. v8sf __builtin_ia32_addsubps256 (v8sf,v8sf)
  39874. v4df __builtin_ia32_andnpd256 (v4df,v4df)
  39875. v8sf __builtin_ia32_andnps256 (v8sf,v8sf)
  39876. v4df __builtin_ia32_andpd256 (v4df,v4df)
  39877. v8sf __builtin_ia32_andps256 (v8sf,v8sf)
  39878. v4df __builtin_ia32_blendpd256 (v4df,v4df,int)
  39879. v8sf __builtin_ia32_blendps256 (v8sf,v8sf,int)
  39880. v4df __builtin_ia32_blendvpd256 (v4df,v4df,v4df)
  39881. v8sf __builtin_ia32_blendvps256 (v8sf,v8sf,v8sf)
  39882. v2df __builtin_ia32_cmppd (v2df,v2df,int)
  39883. v4df __builtin_ia32_cmppd256 (v4df,v4df,int)
  39884. v4sf __builtin_ia32_cmpps (v4sf,v4sf,int)
  39885. v8sf __builtin_ia32_cmpps256 (v8sf,v8sf,int)
  39886. v2df __builtin_ia32_cmpsd (v2df,v2df,int)
  39887. v4sf __builtin_ia32_cmpss (v4sf,v4sf,int)
  39888. v4df __builtin_ia32_cvtdq2pd256 (v4si)
  39889. v8sf __builtin_ia32_cvtdq2ps256 (v8si)
  39890. v4si __builtin_ia32_cvtpd2dq256 (v4df)
  39891. v4sf __builtin_ia32_cvtpd2ps256 (v4df)
  39892. v8si __builtin_ia32_cvtps2dq256 (v8sf)
  39893. v4df __builtin_ia32_cvtps2pd256 (v4sf)
  39894. v4si __builtin_ia32_cvttpd2dq256 (v4df)
  39895. v8si __builtin_ia32_cvttps2dq256 (v8sf)
  39896. v4df __builtin_ia32_divpd256 (v4df,v4df)
  39897. v8sf __builtin_ia32_divps256 (v8sf,v8sf)
  39898. v8sf __builtin_ia32_dpps256 (v8sf,v8sf,int)
  39899. v4df __builtin_ia32_haddpd256 (v4df,v4df)
  39900. v8sf __builtin_ia32_haddps256 (v8sf,v8sf)
  39901. v4df __builtin_ia32_hsubpd256 (v4df,v4df)
  39902. v8sf __builtin_ia32_hsubps256 (v8sf,v8sf)
  39903. v32qi __builtin_ia32_lddqu256 (pcchar)
  39904. v32qi __builtin_ia32_loaddqu256 (pcchar)
  39905. v4df __builtin_ia32_loadupd256 (pcdouble)
  39906. v8sf __builtin_ia32_loadups256 (pcfloat)
  39907. v2df __builtin_ia32_maskloadpd (pcv2df,v2df)
  39908. v4df __builtin_ia32_maskloadpd256 (pcv4df,v4df)
  39909. v4sf __builtin_ia32_maskloadps (pcv4sf,v4sf)
  39910. v8sf __builtin_ia32_maskloadps256 (pcv8sf,v8sf)
  39911. void __builtin_ia32_maskstorepd (pv2df,v2df,v2df)
  39912. void __builtin_ia32_maskstorepd256 (pv4df,v4df,v4df)
  39913. void __builtin_ia32_maskstoreps (pv4sf,v4sf,v4sf)
  39914. void __builtin_ia32_maskstoreps256 (pv8sf,v8sf,v8sf)
  39915. v4df __builtin_ia32_maxpd256 (v4df,v4df)
  39916. v8sf __builtin_ia32_maxps256 (v8sf,v8sf)
  39917. v4df __builtin_ia32_minpd256 (v4df,v4df)
  39918. v8sf __builtin_ia32_minps256 (v8sf,v8sf)
  39919. v4df __builtin_ia32_movddup256 (v4df)
  39920. int __builtin_ia32_movmskpd256 (v4df)
  39921. int __builtin_ia32_movmskps256 (v8sf)
  39922. v8sf __builtin_ia32_movshdup256 (v8sf)
  39923. v8sf __builtin_ia32_movsldup256 (v8sf)
  39924. v4df __builtin_ia32_mulpd256 (v4df,v4df)
  39925. v8sf __builtin_ia32_mulps256 (v8sf,v8sf)
  39926. v4df __builtin_ia32_orpd256 (v4df,v4df)
  39927. v8sf __builtin_ia32_orps256 (v8sf,v8sf)
  39928. v2df __builtin_ia32_pd_pd256 (v4df)
  39929. v4df __builtin_ia32_pd256_pd (v2df)
  39930. v4sf __builtin_ia32_ps_ps256 (v8sf)
  39931. v8sf __builtin_ia32_ps256_ps (v4sf)
  39932. int __builtin_ia32_ptestc256 (v4di,v4di,ptest)
  39933. int __builtin_ia32_ptestnzc256 (v4di,v4di,ptest)
  39934. int __builtin_ia32_ptestz256 (v4di,v4di,ptest)
  39935. v8sf __builtin_ia32_rcpps256 (v8sf)
  39936. v4df __builtin_ia32_roundpd256 (v4df,int)
  39937. v8sf __builtin_ia32_roundps256 (v8sf,int)
  39938. v8sf __builtin_ia32_rsqrtps_nr256 (v8sf)
  39939. v8sf __builtin_ia32_rsqrtps256 (v8sf)
  39940. v4df __builtin_ia32_shufpd256 (v4df,v4df,int)
  39941. v8sf __builtin_ia32_shufps256 (v8sf,v8sf,int)
  39942. v4si __builtin_ia32_si_si256 (v8si)
  39943. v8si __builtin_ia32_si256_si (v4si)
  39944. v4df __builtin_ia32_sqrtpd256 (v4df)
  39945. v8sf __builtin_ia32_sqrtps_nr256 (v8sf)
  39946. v8sf __builtin_ia32_sqrtps256 (v8sf)
  39947. void __builtin_ia32_storedqu256 (pchar,v32qi)
  39948. void __builtin_ia32_storeupd256 (pdouble,v4df)
  39949. void __builtin_ia32_storeups256 (pfloat,v8sf)
  39950. v4df __builtin_ia32_subpd256 (v4df,v4df)
  39951. v8sf __builtin_ia32_subps256 (v8sf,v8sf)
  39952. v4df __builtin_ia32_unpckhpd256 (v4df,v4df)
  39953. v8sf __builtin_ia32_unpckhps256 (v8sf,v8sf)
  39954. v4df __builtin_ia32_unpcklpd256 (v4df,v4df)
  39955. v8sf __builtin_ia32_unpcklps256 (v8sf,v8sf)
  39956. v4df __builtin_ia32_vbroadcastf128_pd256 (pcv2df)
  39957. v8sf __builtin_ia32_vbroadcastf128_ps256 (pcv4sf)
  39958. v4df __builtin_ia32_vbroadcastsd256 (pcdouble)
  39959. v4sf __builtin_ia32_vbroadcastss (pcfloat)
  39960. v8sf __builtin_ia32_vbroadcastss256 (pcfloat)
  39961. v2df __builtin_ia32_vextractf128_pd256 (v4df,int)
  39962. v4sf __builtin_ia32_vextractf128_ps256 (v8sf,int)
  39963. v4si __builtin_ia32_vextractf128_si256 (v8si,int)
  39964. v4df __builtin_ia32_vinsertf128_pd256 (v4df,v2df,int)
  39965. v8sf __builtin_ia32_vinsertf128_ps256 (v8sf,v4sf,int)
  39966. v8si __builtin_ia32_vinsertf128_si256 (v8si,v4si,int)
  39967. v4df __builtin_ia32_vperm2f128_pd256 (v4df,v4df,int)
  39968. v8sf __builtin_ia32_vperm2f128_ps256 (v8sf,v8sf,int)
  39969. v8si __builtin_ia32_vperm2f128_si256 (v8si,v8si,int)
  39970. v2df __builtin_ia32_vpermil2pd (v2df,v2df,v2di,int)
  39971. v4df __builtin_ia32_vpermil2pd256 (v4df,v4df,v4di,int)
  39972. v4sf __builtin_ia32_vpermil2ps (v4sf,v4sf,v4si,int)
  39973. v8sf __builtin_ia32_vpermil2ps256 (v8sf,v8sf,v8si,int)
  39974. v2df __builtin_ia32_vpermilpd (v2df,int)
  39975. v4df __builtin_ia32_vpermilpd256 (v4df,int)
  39976. v4sf __builtin_ia32_vpermilps (v4sf,int)
  39977. v8sf __builtin_ia32_vpermilps256 (v8sf,int)
  39978. v2df __builtin_ia32_vpermilvarpd (v2df,v2di)
  39979. v4df __builtin_ia32_vpermilvarpd256 (v4df,v4di)
  39980. v4sf __builtin_ia32_vpermilvarps (v4sf,v4si)
  39981. v8sf __builtin_ia32_vpermilvarps256 (v8sf,v8si)
  39982. int __builtin_ia32_vtestcpd (v2df,v2df,ptest)
  39983. int __builtin_ia32_vtestcpd256 (v4df,v4df,ptest)
  39984. int __builtin_ia32_vtestcps (v4sf,v4sf,ptest)
  39985. int __builtin_ia32_vtestcps256 (v8sf,v8sf,ptest)
  39986. int __builtin_ia32_vtestnzcpd (v2df,v2df,ptest)
  39987. int __builtin_ia32_vtestnzcpd256 (v4df,v4df,ptest)
  39988. int __builtin_ia32_vtestnzcps (v4sf,v4sf,ptest)
  39989. int __builtin_ia32_vtestnzcps256 (v8sf,v8sf,ptest)
  39990. int __builtin_ia32_vtestzpd (v2df,v2df,ptest)
  39991. int __builtin_ia32_vtestzpd256 (v4df,v4df,ptest)
  39992. int __builtin_ia32_vtestzps (v4sf,v4sf,ptest)
  39993. int __builtin_ia32_vtestzps256 (v8sf,v8sf,ptest)
  39994. void __builtin_ia32_vzeroall (void)
  39995. void __builtin_ia32_vzeroupper (void)
  39996. v4df __builtin_ia32_xorpd256 (v4df,v4df)
  39997. v8sf __builtin_ia32_xorps256 (v8sf,v8sf)
  39998. The following built-in functions are available when '-mavx2' is used.
  39999. All of them generate the machine instruction that is part of the name.
  40000. v32qi __builtin_ia32_mpsadbw256 (v32qi,v32qi,int)
  40001. v32qi __builtin_ia32_pabsb256 (v32qi)
  40002. v16hi __builtin_ia32_pabsw256 (v16hi)
  40003. v8si __builtin_ia32_pabsd256 (v8si)
  40004. v16hi __builtin_ia32_packssdw256 (v8si,v8si)
  40005. v32qi __builtin_ia32_packsswb256 (v16hi,v16hi)
  40006. v16hi __builtin_ia32_packusdw256 (v8si,v8si)
  40007. v32qi __builtin_ia32_packuswb256 (v16hi,v16hi)
  40008. v32qi __builtin_ia32_paddb256 (v32qi,v32qi)
  40009. v16hi __builtin_ia32_paddw256 (v16hi,v16hi)
  40010. v8si __builtin_ia32_paddd256 (v8si,v8si)
  40011. v4di __builtin_ia32_paddq256 (v4di,v4di)
  40012. v32qi __builtin_ia32_paddsb256 (v32qi,v32qi)
  40013. v16hi __builtin_ia32_paddsw256 (v16hi,v16hi)
  40014. v32qi __builtin_ia32_paddusb256 (v32qi,v32qi)
  40015. v16hi __builtin_ia32_paddusw256 (v16hi,v16hi)
  40016. v4di __builtin_ia32_palignr256 (v4di,v4di,int)
  40017. v4di __builtin_ia32_andsi256 (v4di,v4di)
  40018. v4di __builtin_ia32_andnotsi256 (v4di,v4di)
  40019. v32qi __builtin_ia32_pavgb256 (v32qi,v32qi)
  40020. v16hi __builtin_ia32_pavgw256 (v16hi,v16hi)
  40021. v32qi __builtin_ia32_pblendvb256 (v32qi,v32qi,v32qi)
  40022. v16hi __builtin_ia32_pblendw256 (v16hi,v16hi,int)
  40023. v32qi __builtin_ia32_pcmpeqb256 (v32qi,v32qi)
  40024. v16hi __builtin_ia32_pcmpeqw256 (v16hi,v16hi)
  40025. v8si __builtin_ia32_pcmpeqd256 (c8si,v8si)
  40026. v4di __builtin_ia32_pcmpeqq256 (v4di,v4di)
  40027. v32qi __builtin_ia32_pcmpgtb256 (v32qi,v32qi)
  40028. v16hi __builtin_ia32_pcmpgtw256 (16hi,v16hi)
  40029. v8si __builtin_ia32_pcmpgtd256 (v8si,v8si)
  40030. v4di __builtin_ia32_pcmpgtq256 (v4di,v4di)
  40031. v16hi __builtin_ia32_phaddw256 (v16hi,v16hi)
  40032. v8si __builtin_ia32_phaddd256 (v8si,v8si)
  40033. v16hi __builtin_ia32_phaddsw256 (v16hi,v16hi)
  40034. v16hi __builtin_ia32_phsubw256 (v16hi,v16hi)
  40035. v8si __builtin_ia32_phsubd256 (v8si,v8si)
  40036. v16hi __builtin_ia32_phsubsw256 (v16hi,v16hi)
  40037. v32qi __builtin_ia32_pmaddubsw256 (v32qi,v32qi)
  40038. v16hi __builtin_ia32_pmaddwd256 (v16hi,v16hi)
  40039. v32qi __builtin_ia32_pmaxsb256 (v32qi,v32qi)
  40040. v16hi __builtin_ia32_pmaxsw256 (v16hi,v16hi)
  40041. v8si __builtin_ia32_pmaxsd256 (v8si,v8si)
  40042. v32qi __builtin_ia32_pmaxub256 (v32qi,v32qi)
  40043. v16hi __builtin_ia32_pmaxuw256 (v16hi,v16hi)
  40044. v8si __builtin_ia32_pmaxud256 (v8si,v8si)
  40045. v32qi __builtin_ia32_pminsb256 (v32qi,v32qi)
  40046. v16hi __builtin_ia32_pminsw256 (v16hi,v16hi)
  40047. v8si __builtin_ia32_pminsd256 (v8si,v8si)
  40048. v32qi __builtin_ia32_pminub256 (v32qi,v32qi)
  40049. v16hi __builtin_ia32_pminuw256 (v16hi,v16hi)
  40050. v8si __builtin_ia32_pminud256 (v8si,v8si)
  40051. int __builtin_ia32_pmovmskb256 (v32qi)
  40052. v16hi __builtin_ia32_pmovsxbw256 (v16qi)
  40053. v8si __builtin_ia32_pmovsxbd256 (v16qi)
  40054. v4di __builtin_ia32_pmovsxbq256 (v16qi)
  40055. v8si __builtin_ia32_pmovsxwd256 (v8hi)
  40056. v4di __builtin_ia32_pmovsxwq256 (v8hi)
  40057. v4di __builtin_ia32_pmovsxdq256 (v4si)
  40058. v16hi __builtin_ia32_pmovzxbw256 (v16qi)
  40059. v8si __builtin_ia32_pmovzxbd256 (v16qi)
  40060. v4di __builtin_ia32_pmovzxbq256 (v16qi)
  40061. v8si __builtin_ia32_pmovzxwd256 (v8hi)
  40062. v4di __builtin_ia32_pmovzxwq256 (v8hi)
  40063. v4di __builtin_ia32_pmovzxdq256 (v4si)
  40064. v4di __builtin_ia32_pmuldq256 (v8si,v8si)
  40065. v16hi __builtin_ia32_pmulhrsw256 (v16hi, v16hi)
  40066. v16hi __builtin_ia32_pmulhuw256 (v16hi,v16hi)
  40067. v16hi __builtin_ia32_pmulhw256 (v16hi,v16hi)
  40068. v16hi __builtin_ia32_pmullw256 (v16hi,v16hi)
  40069. v8si __builtin_ia32_pmulld256 (v8si,v8si)
  40070. v4di __builtin_ia32_pmuludq256 (v8si,v8si)
  40071. v4di __builtin_ia32_por256 (v4di,v4di)
  40072. v16hi __builtin_ia32_psadbw256 (v32qi,v32qi)
  40073. v32qi __builtin_ia32_pshufb256 (v32qi,v32qi)
  40074. v8si __builtin_ia32_pshufd256 (v8si,int)
  40075. v16hi __builtin_ia32_pshufhw256 (v16hi,int)
  40076. v16hi __builtin_ia32_pshuflw256 (v16hi,int)
  40077. v32qi __builtin_ia32_psignb256 (v32qi,v32qi)
  40078. v16hi __builtin_ia32_psignw256 (v16hi,v16hi)
  40079. v8si __builtin_ia32_psignd256 (v8si,v8si)
  40080. v4di __builtin_ia32_pslldqi256 (v4di,int)
  40081. v16hi __builtin_ia32_psllwi256 (16hi,int)
  40082. v16hi __builtin_ia32_psllw256(v16hi,v8hi)
  40083. v8si __builtin_ia32_pslldi256 (v8si,int)
  40084. v8si __builtin_ia32_pslld256(v8si,v4si)
  40085. v4di __builtin_ia32_psllqi256 (v4di,int)
  40086. v4di __builtin_ia32_psllq256(v4di,v2di)
  40087. v16hi __builtin_ia32_psrawi256 (v16hi,int)
  40088. v16hi __builtin_ia32_psraw256 (v16hi,v8hi)
  40089. v8si __builtin_ia32_psradi256 (v8si,int)
  40090. v8si __builtin_ia32_psrad256 (v8si,v4si)
  40091. v4di __builtin_ia32_psrldqi256 (v4di, int)
  40092. v16hi __builtin_ia32_psrlwi256 (v16hi,int)
  40093. v16hi __builtin_ia32_psrlw256 (v16hi,v8hi)
  40094. v8si __builtin_ia32_psrldi256 (v8si,int)
  40095. v8si __builtin_ia32_psrld256 (v8si,v4si)
  40096. v4di __builtin_ia32_psrlqi256 (v4di,int)
  40097. v4di __builtin_ia32_psrlq256(v4di,v2di)
  40098. v32qi __builtin_ia32_psubb256 (v32qi,v32qi)
  40099. v32hi __builtin_ia32_psubw256 (v16hi,v16hi)
  40100. v8si __builtin_ia32_psubd256 (v8si,v8si)
  40101. v4di __builtin_ia32_psubq256 (v4di,v4di)
  40102. v32qi __builtin_ia32_psubsb256 (v32qi,v32qi)
  40103. v16hi __builtin_ia32_psubsw256 (v16hi,v16hi)
  40104. v32qi __builtin_ia32_psubusb256 (v32qi,v32qi)
  40105. v16hi __builtin_ia32_psubusw256 (v16hi,v16hi)
  40106. v32qi __builtin_ia32_punpckhbw256 (v32qi,v32qi)
  40107. v16hi __builtin_ia32_punpckhwd256 (v16hi,v16hi)
  40108. v8si __builtin_ia32_punpckhdq256 (v8si,v8si)
  40109. v4di __builtin_ia32_punpckhqdq256 (v4di,v4di)
  40110. v32qi __builtin_ia32_punpcklbw256 (v32qi,v32qi)
  40111. v16hi __builtin_ia32_punpcklwd256 (v16hi,v16hi)
  40112. v8si __builtin_ia32_punpckldq256 (v8si,v8si)
  40113. v4di __builtin_ia32_punpcklqdq256 (v4di,v4di)
  40114. v4di __builtin_ia32_pxor256 (v4di,v4di)
  40115. v4di __builtin_ia32_movntdqa256 (pv4di)
  40116. v4sf __builtin_ia32_vbroadcastss_ps (v4sf)
  40117. v8sf __builtin_ia32_vbroadcastss_ps256 (v4sf)
  40118. v4df __builtin_ia32_vbroadcastsd_pd256 (v2df)
  40119. v4di __builtin_ia32_vbroadcastsi256 (v2di)
  40120. v4si __builtin_ia32_pblendd128 (v4si,v4si)
  40121. v8si __builtin_ia32_pblendd256 (v8si,v8si)
  40122. v32qi __builtin_ia32_pbroadcastb256 (v16qi)
  40123. v16hi __builtin_ia32_pbroadcastw256 (v8hi)
  40124. v8si __builtin_ia32_pbroadcastd256 (v4si)
  40125. v4di __builtin_ia32_pbroadcastq256 (v2di)
  40126. v16qi __builtin_ia32_pbroadcastb128 (v16qi)
  40127. v8hi __builtin_ia32_pbroadcastw128 (v8hi)
  40128. v4si __builtin_ia32_pbroadcastd128 (v4si)
  40129. v2di __builtin_ia32_pbroadcastq128 (v2di)
  40130. v8si __builtin_ia32_permvarsi256 (v8si,v8si)
  40131. v4df __builtin_ia32_permdf256 (v4df,int)
  40132. v8sf __builtin_ia32_permvarsf256 (v8sf,v8sf)
  40133. v4di __builtin_ia32_permdi256 (v4di,int)
  40134. v4di __builtin_ia32_permti256 (v4di,v4di,int)
  40135. v4di __builtin_ia32_extract128i256 (v4di,int)
  40136. v4di __builtin_ia32_insert128i256 (v4di,v2di,int)
  40137. v8si __builtin_ia32_maskloadd256 (pcv8si,v8si)
  40138. v4di __builtin_ia32_maskloadq256 (pcv4di,v4di)
  40139. v4si __builtin_ia32_maskloadd (pcv4si,v4si)
  40140. v2di __builtin_ia32_maskloadq (pcv2di,v2di)
  40141. void __builtin_ia32_maskstored256 (pv8si,v8si,v8si)
  40142. void __builtin_ia32_maskstoreq256 (pv4di,v4di,v4di)
  40143. void __builtin_ia32_maskstored (pv4si,v4si,v4si)
  40144. void __builtin_ia32_maskstoreq (pv2di,v2di,v2di)
  40145. v8si __builtin_ia32_psllv8si (v8si,v8si)
  40146. v4si __builtin_ia32_psllv4si (v4si,v4si)
  40147. v4di __builtin_ia32_psllv4di (v4di,v4di)
  40148. v2di __builtin_ia32_psllv2di (v2di,v2di)
  40149. v8si __builtin_ia32_psrav8si (v8si,v8si)
  40150. v4si __builtin_ia32_psrav4si (v4si,v4si)
  40151. v8si __builtin_ia32_psrlv8si (v8si,v8si)
  40152. v4si __builtin_ia32_psrlv4si (v4si,v4si)
  40153. v4di __builtin_ia32_psrlv4di (v4di,v4di)
  40154. v2di __builtin_ia32_psrlv2di (v2di,v2di)
  40155. v2df __builtin_ia32_gathersiv2df (v2df, pcdouble,v4si,v2df,int)
  40156. v4df __builtin_ia32_gathersiv4df (v4df, pcdouble,v4si,v4df,int)
  40157. v2df __builtin_ia32_gatherdiv2df (v2df, pcdouble,v2di,v2df,int)
  40158. v4df __builtin_ia32_gatherdiv4df (v4df, pcdouble,v4di,v4df,int)
  40159. v4sf __builtin_ia32_gathersiv4sf (v4sf, pcfloat,v4si,v4sf,int)
  40160. v8sf __builtin_ia32_gathersiv8sf (v8sf, pcfloat,v8si,v8sf,int)
  40161. v4sf __builtin_ia32_gatherdiv4sf (v4sf, pcfloat,v2di,v4sf,int)
  40162. v4sf __builtin_ia32_gatherdiv4sf256 (v4sf, pcfloat,v4di,v4sf,int)
  40163. v2di __builtin_ia32_gathersiv2di (v2di, pcint64,v4si,v2di,int)
  40164. v4di __builtin_ia32_gathersiv4di (v4di, pcint64,v4si,v4di,int)
  40165. v2di __builtin_ia32_gatherdiv2di (v2di, pcint64,v2di,v2di,int)
  40166. v4di __builtin_ia32_gatherdiv4di (v4di, pcint64,v4di,v4di,int)
  40167. v4si __builtin_ia32_gathersiv4si (v4si, pcint,v4si,v4si,int)
  40168. v8si __builtin_ia32_gathersiv8si (v8si, pcint,v8si,v8si,int)
  40169. v4si __builtin_ia32_gatherdiv4si (v4si, pcint,v2di,v4si,int)
  40170. v4si __builtin_ia32_gatherdiv4si256 (v4si, pcint,v4di,v4si,int)
  40171. The following built-in functions are available when '-maes' is used.
  40172. All of them generate the machine instruction that is part of the name.
  40173. v2di __builtin_ia32_aesenc128 (v2di, v2di)
  40174. v2di __builtin_ia32_aesenclast128 (v2di, v2di)
  40175. v2di __builtin_ia32_aesdec128 (v2di, v2di)
  40176. v2di __builtin_ia32_aesdeclast128 (v2di, v2di)
  40177. v2di __builtin_ia32_aeskeygenassist128 (v2di, const int)
  40178. v2di __builtin_ia32_aesimc128 (v2di)
  40179. The following built-in function is available when '-mpclmul' is used.
  40180. 'v2di __builtin_ia32_pclmulqdq128 (v2di, v2di, const int)'
  40181. Generates the 'pclmulqdq' machine instruction.
  40182. The following built-in function is available when '-mfsgsbase' is used.
  40183. All of them generate the machine instruction that is part of the name.
  40184. unsigned int __builtin_ia32_rdfsbase32 (void)
  40185. unsigned long long __builtin_ia32_rdfsbase64 (void)
  40186. unsigned int __builtin_ia32_rdgsbase32 (void)
  40187. unsigned long long __builtin_ia32_rdgsbase64 (void)
  40188. void _writefsbase_u32 (unsigned int)
  40189. void _writefsbase_u64 (unsigned long long)
  40190. void _writegsbase_u32 (unsigned int)
  40191. void _writegsbase_u64 (unsigned long long)
  40192. The following built-in function is available when '-mrdrnd' is used.
  40193. All of them generate the machine instruction that is part of the name.
  40194. unsigned int __builtin_ia32_rdrand16_step (unsigned short *)
  40195. unsigned int __builtin_ia32_rdrand32_step (unsigned int *)
  40196. unsigned int __builtin_ia32_rdrand64_step (unsigned long long *)
  40197. The following built-in functions are available when '-msse4a' is used.
  40198. All of them generate the machine instruction that is part of the name.
  40199. void __builtin_ia32_movntsd (double *, v2df)
  40200. void __builtin_ia32_movntss (float *, v4sf)
  40201. v2di __builtin_ia32_extrq (v2di, v16qi)
  40202. v2di __builtin_ia32_extrqi (v2di, const unsigned int, const unsigned int)
  40203. v2di __builtin_ia32_insertq (v2di, v2di)
  40204. v2di __builtin_ia32_insertqi (v2di, v2di, const unsigned int, const unsigned int)
  40205. The following built-in functions are available when '-mxop' is used.
  40206. v2df __builtin_ia32_vfrczpd (v2df)
  40207. v4sf __builtin_ia32_vfrczps (v4sf)
  40208. v2df __builtin_ia32_vfrczsd (v2df)
  40209. v4sf __builtin_ia32_vfrczss (v4sf)
  40210. v4df __builtin_ia32_vfrczpd256 (v4df)
  40211. v8sf __builtin_ia32_vfrczps256 (v8sf)
  40212. v2di __builtin_ia32_vpcmov (v2di, v2di, v2di)
  40213. v2di __builtin_ia32_vpcmov_v2di (v2di, v2di, v2di)
  40214. v4si __builtin_ia32_vpcmov_v4si (v4si, v4si, v4si)
  40215. v8hi __builtin_ia32_vpcmov_v8hi (v8hi, v8hi, v8hi)
  40216. v16qi __builtin_ia32_vpcmov_v16qi (v16qi, v16qi, v16qi)
  40217. v2df __builtin_ia32_vpcmov_v2df (v2df, v2df, v2df)
  40218. v4sf __builtin_ia32_vpcmov_v4sf (v4sf, v4sf, v4sf)
  40219. v4di __builtin_ia32_vpcmov_v4di256 (v4di, v4di, v4di)
  40220. v8si __builtin_ia32_vpcmov_v8si256 (v8si, v8si, v8si)
  40221. v16hi __builtin_ia32_vpcmov_v16hi256 (v16hi, v16hi, v16hi)
  40222. v32qi __builtin_ia32_vpcmov_v32qi256 (v32qi, v32qi, v32qi)
  40223. v4df __builtin_ia32_vpcmov_v4df256 (v4df, v4df, v4df)
  40224. v8sf __builtin_ia32_vpcmov_v8sf256 (v8sf, v8sf, v8sf)
  40225. v16qi __builtin_ia32_vpcomeqb (v16qi, v16qi)
  40226. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  40227. v4si __builtin_ia32_vpcomeqd (v4si, v4si)
  40228. v2di __builtin_ia32_vpcomeqq (v2di, v2di)
  40229. v16qi __builtin_ia32_vpcomequb (v16qi, v16qi)
  40230. v4si __builtin_ia32_vpcomequd (v4si, v4si)
  40231. v2di __builtin_ia32_vpcomequq (v2di, v2di)
  40232. v8hi __builtin_ia32_vpcomequw (v8hi, v8hi)
  40233. v8hi __builtin_ia32_vpcomeqw (v8hi, v8hi)
  40234. v16qi __builtin_ia32_vpcomfalseb (v16qi, v16qi)
  40235. v4si __builtin_ia32_vpcomfalsed (v4si, v4si)
  40236. v2di __builtin_ia32_vpcomfalseq (v2di, v2di)
  40237. v16qi __builtin_ia32_vpcomfalseub (v16qi, v16qi)
  40238. v4si __builtin_ia32_vpcomfalseud (v4si, v4si)
  40239. v2di __builtin_ia32_vpcomfalseuq (v2di, v2di)
  40240. v8hi __builtin_ia32_vpcomfalseuw (v8hi, v8hi)
  40241. v8hi __builtin_ia32_vpcomfalsew (v8hi, v8hi)
  40242. v16qi __builtin_ia32_vpcomgeb (v16qi, v16qi)
  40243. v4si __builtin_ia32_vpcomged (v4si, v4si)
  40244. v2di __builtin_ia32_vpcomgeq (v2di, v2di)
  40245. v16qi __builtin_ia32_vpcomgeub (v16qi, v16qi)
  40246. v4si __builtin_ia32_vpcomgeud (v4si, v4si)
  40247. v2di __builtin_ia32_vpcomgeuq (v2di, v2di)
  40248. v8hi __builtin_ia32_vpcomgeuw (v8hi, v8hi)
  40249. v8hi __builtin_ia32_vpcomgew (v8hi, v8hi)
  40250. v16qi __builtin_ia32_vpcomgtb (v16qi, v16qi)
  40251. v4si __builtin_ia32_vpcomgtd (v4si, v4si)
  40252. v2di __builtin_ia32_vpcomgtq (v2di, v2di)
  40253. v16qi __builtin_ia32_vpcomgtub (v16qi, v16qi)
  40254. v4si __builtin_ia32_vpcomgtud (v4si, v4si)
  40255. v2di __builtin_ia32_vpcomgtuq (v2di, v2di)
  40256. v8hi __builtin_ia32_vpcomgtuw (v8hi, v8hi)
  40257. v8hi __builtin_ia32_vpcomgtw (v8hi, v8hi)
  40258. v16qi __builtin_ia32_vpcomleb (v16qi, v16qi)
  40259. v4si __builtin_ia32_vpcomled (v4si, v4si)
  40260. v2di __builtin_ia32_vpcomleq (v2di, v2di)
  40261. v16qi __builtin_ia32_vpcomleub (v16qi, v16qi)
  40262. v4si __builtin_ia32_vpcomleud (v4si, v4si)
  40263. v2di __builtin_ia32_vpcomleuq (v2di, v2di)
  40264. v8hi __builtin_ia32_vpcomleuw (v8hi, v8hi)
  40265. v8hi __builtin_ia32_vpcomlew (v8hi, v8hi)
  40266. v16qi __builtin_ia32_vpcomltb (v16qi, v16qi)
  40267. v4si __builtin_ia32_vpcomltd (v4si, v4si)
  40268. v2di __builtin_ia32_vpcomltq (v2di, v2di)
  40269. v16qi __builtin_ia32_vpcomltub (v16qi, v16qi)
  40270. v4si __builtin_ia32_vpcomltud (v4si, v4si)
  40271. v2di __builtin_ia32_vpcomltuq (v2di, v2di)
  40272. v8hi __builtin_ia32_vpcomltuw (v8hi, v8hi)
  40273. v8hi __builtin_ia32_vpcomltw (v8hi, v8hi)
  40274. v16qi __builtin_ia32_vpcomneb (v16qi, v16qi)
  40275. v4si __builtin_ia32_vpcomned (v4si, v4si)
  40276. v2di __builtin_ia32_vpcomneq (v2di, v2di)
  40277. v16qi __builtin_ia32_vpcomneub (v16qi, v16qi)
  40278. v4si __builtin_ia32_vpcomneud (v4si, v4si)
  40279. v2di __builtin_ia32_vpcomneuq (v2di, v2di)
  40280. v8hi __builtin_ia32_vpcomneuw (v8hi, v8hi)
  40281. v8hi __builtin_ia32_vpcomnew (v8hi, v8hi)
  40282. v16qi __builtin_ia32_vpcomtrueb (v16qi, v16qi)
  40283. v4si __builtin_ia32_vpcomtrued (v4si, v4si)
  40284. v2di __builtin_ia32_vpcomtrueq (v2di, v2di)
  40285. v16qi __builtin_ia32_vpcomtrueub (v16qi, v16qi)
  40286. v4si __builtin_ia32_vpcomtrueud (v4si, v4si)
  40287. v2di __builtin_ia32_vpcomtrueuq (v2di, v2di)
  40288. v8hi __builtin_ia32_vpcomtrueuw (v8hi, v8hi)
  40289. v8hi __builtin_ia32_vpcomtruew (v8hi, v8hi)
  40290. v4si __builtin_ia32_vphaddbd (v16qi)
  40291. v2di __builtin_ia32_vphaddbq (v16qi)
  40292. v8hi __builtin_ia32_vphaddbw (v16qi)
  40293. v2di __builtin_ia32_vphadddq (v4si)
  40294. v4si __builtin_ia32_vphaddubd (v16qi)
  40295. v2di __builtin_ia32_vphaddubq (v16qi)
  40296. v8hi __builtin_ia32_vphaddubw (v16qi)
  40297. v2di __builtin_ia32_vphaddudq (v4si)
  40298. v4si __builtin_ia32_vphadduwd (v8hi)
  40299. v2di __builtin_ia32_vphadduwq (v8hi)
  40300. v4si __builtin_ia32_vphaddwd (v8hi)
  40301. v2di __builtin_ia32_vphaddwq (v8hi)
  40302. v8hi __builtin_ia32_vphsubbw (v16qi)
  40303. v2di __builtin_ia32_vphsubdq (v4si)
  40304. v4si __builtin_ia32_vphsubwd (v8hi)
  40305. v4si __builtin_ia32_vpmacsdd (v4si, v4si, v4si)
  40306. v2di __builtin_ia32_vpmacsdqh (v4si, v4si, v2di)
  40307. v2di __builtin_ia32_vpmacsdql (v4si, v4si, v2di)
  40308. v4si __builtin_ia32_vpmacssdd (v4si, v4si, v4si)
  40309. v2di __builtin_ia32_vpmacssdqh (v4si, v4si, v2di)
  40310. v2di __builtin_ia32_vpmacssdql (v4si, v4si, v2di)
  40311. v4si __builtin_ia32_vpmacsswd (v8hi, v8hi, v4si)
  40312. v8hi __builtin_ia32_vpmacssww (v8hi, v8hi, v8hi)
  40313. v4si __builtin_ia32_vpmacswd (v8hi, v8hi, v4si)
  40314. v8hi __builtin_ia32_vpmacsww (v8hi, v8hi, v8hi)
  40315. v4si __builtin_ia32_vpmadcsswd (v8hi, v8hi, v4si)
  40316. v4si __builtin_ia32_vpmadcswd (v8hi, v8hi, v4si)
  40317. v16qi __builtin_ia32_vpperm (v16qi, v16qi, v16qi)
  40318. v16qi __builtin_ia32_vprotb (v16qi, v16qi)
  40319. v4si __builtin_ia32_vprotd (v4si, v4si)
  40320. v2di __builtin_ia32_vprotq (v2di, v2di)
  40321. v8hi __builtin_ia32_vprotw (v8hi, v8hi)
  40322. v16qi __builtin_ia32_vpshab (v16qi, v16qi)
  40323. v4si __builtin_ia32_vpshad (v4si, v4si)
  40324. v2di __builtin_ia32_vpshaq (v2di, v2di)
  40325. v8hi __builtin_ia32_vpshaw (v8hi, v8hi)
  40326. v16qi __builtin_ia32_vpshlb (v16qi, v16qi)
  40327. v4si __builtin_ia32_vpshld (v4si, v4si)
  40328. v2di __builtin_ia32_vpshlq (v2di, v2di)
  40329. v8hi __builtin_ia32_vpshlw (v8hi, v8hi)
  40330. The following built-in functions are available when '-mfma4' is used.
  40331. All of them generate the machine instruction that is part of the name.
  40332. v2df __builtin_ia32_vfmaddpd (v2df, v2df, v2df)
  40333. v4sf __builtin_ia32_vfmaddps (v4sf, v4sf, v4sf)
  40334. v2df __builtin_ia32_vfmaddsd (v2df, v2df, v2df)
  40335. v4sf __builtin_ia32_vfmaddss (v4sf, v4sf, v4sf)
  40336. v2df __builtin_ia32_vfmsubpd (v2df, v2df, v2df)
  40337. v4sf __builtin_ia32_vfmsubps (v4sf, v4sf, v4sf)
  40338. v2df __builtin_ia32_vfmsubsd (v2df, v2df, v2df)
  40339. v4sf __builtin_ia32_vfmsubss (v4sf, v4sf, v4sf)
  40340. v2df __builtin_ia32_vfnmaddpd (v2df, v2df, v2df)
  40341. v4sf __builtin_ia32_vfnmaddps (v4sf, v4sf, v4sf)
  40342. v2df __builtin_ia32_vfnmaddsd (v2df, v2df, v2df)
  40343. v4sf __builtin_ia32_vfnmaddss (v4sf, v4sf, v4sf)
  40344. v2df __builtin_ia32_vfnmsubpd (v2df, v2df, v2df)
  40345. v4sf __builtin_ia32_vfnmsubps (v4sf, v4sf, v4sf)
  40346. v2df __builtin_ia32_vfnmsubsd (v2df, v2df, v2df)
  40347. v4sf __builtin_ia32_vfnmsubss (v4sf, v4sf, v4sf)
  40348. v2df __builtin_ia32_vfmaddsubpd (v2df, v2df, v2df)
  40349. v4sf __builtin_ia32_vfmaddsubps (v4sf, v4sf, v4sf)
  40350. v2df __builtin_ia32_vfmsubaddpd (v2df, v2df, v2df)
  40351. v4sf __builtin_ia32_vfmsubaddps (v4sf, v4sf, v4sf)
  40352. v4df __builtin_ia32_vfmaddpd256 (v4df, v4df, v4df)
  40353. v8sf __builtin_ia32_vfmaddps256 (v8sf, v8sf, v8sf)
  40354. v4df __builtin_ia32_vfmsubpd256 (v4df, v4df, v4df)
  40355. v8sf __builtin_ia32_vfmsubps256 (v8sf, v8sf, v8sf)
  40356. v4df __builtin_ia32_vfnmaddpd256 (v4df, v4df, v4df)
  40357. v8sf __builtin_ia32_vfnmaddps256 (v8sf, v8sf, v8sf)
  40358. v4df __builtin_ia32_vfnmsubpd256 (v4df, v4df, v4df)
  40359. v8sf __builtin_ia32_vfnmsubps256 (v8sf, v8sf, v8sf)
  40360. v4df __builtin_ia32_vfmaddsubpd256 (v4df, v4df, v4df)
  40361. v8sf __builtin_ia32_vfmaddsubps256 (v8sf, v8sf, v8sf)
  40362. v4df __builtin_ia32_vfmsubaddpd256 (v4df, v4df, v4df)
  40363. v8sf __builtin_ia32_vfmsubaddps256 (v8sf, v8sf, v8sf)
  40364. The following built-in functions are available when '-mlwp' is used.
  40365. void __builtin_ia32_llwpcb16 (void *);
  40366. void __builtin_ia32_llwpcb32 (void *);
  40367. void __builtin_ia32_llwpcb64 (void *);
  40368. void * __builtin_ia32_llwpcb16 (void);
  40369. void * __builtin_ia32_llwpcb32 (void);
  40370. void * __builtin_ia32_llwpcb64 (void);
  40371. void __builtin_ia32_lwpval16 (unsigned short, unsigned int, unsigned short)
  40372. void __builtin_ia32_lwpval32 (unsigned int, unsigned int, unsigned int)
  40373. void __builtin_ia32_lwpval64 (unsigned __int64, unsigned int, unsigned int)
  40374. unsigned char __builtin_ia32_lwpins16 (unsigned short, unsigned int, unsigned short)
  40375. unsigned char __builtin_ia32_lwpins32 (unsigned int, unsigned int, unsigned int)
  40376. unsigned char __builtin_ia32_lwpins64 (unsigned __int64, unsigned int, unsigned int)
  40377. The following built-in functions are available when '-mbmi' is used.
  40378. All of them generate the machine instruction that is part of the name.
  40379. unsigned int __builtin_ia32_bextr_u32(unsigned int, unsigned int);
  40380. unsigned long long __builtin_ia32_bextr_u64 (unsigned long long, unsigned long long);
  40381. The following built-in functions are available when '-mbmi2' is used.
  40382. All of them generate the machine instruction that is part of the name.
  40383. unsigned int _bzhi_u32 (unsigned int, unsigned int)
  40384. unsigned int _pdep_u32 (unsigned int, unsigned int)
  40385. unsigned int _pext_u32 (unsigned int, unsigned int)
  40386. unsigned long long _bzhi_u64 (unsigned long long, unsigned long long)
  40387. unsigned long long _pdep_u64 (unsigned long long, unsigned long long)
  40388. unsigned long long _pext_u64 (unsigned long long, unsigned long long)
  40389. The following built-in functions are available when '-mlzcnt' is used.
  40390. All of them generate the machine instruction that is part of the name.
  40391. unsigned short __builtin_ia32_lzcnt_u16(unsigned short);
  40392. unsigned int __builtin_ia32_lzcnt_u32(unsigned int);
  40393. unsigned long long __builtin_ia32_lzcnt_u64 (unsigned long long);
  40394. The following built-in functions are available when '-mfxsr' is used.
  40395. All of them generate the machine instruction that is part of the name.
  40396. void __builtin_ia32_fxsave (void *)
  40397. void __builtin_ia32_fxrstor (void *)
  40398. void __builtin_ia32_fxsave64 (void *)
  40399. void __builtin_ia32_fxrstor64 (void *)
  40400. The following built-in functions are available when '-mxsave' is used.
  40401. All of them generate the machine instruction that is part of the name.
  40402. void __builtin_ia32_xsave (void *, long long)
  40403. void __builtin_ia32_xrstor (void *, long long)
  40404. void __builtin_ia32_xsave64 (void *, long long)
  40405. void __builtin_ia32_xrstor64 (void *, long long)
  40406. The following built-in functions are available when '-mxsaveopt' is
  40407. used. All of them generate the machine instruction that is part of the
  40408. name.
  40409. void __builtin_ia32_xsaveopt (void *, long long)
  40410. void __builtin_ia32_xsaveopt64 (void *, long long)
  40411. The following built-in functions are available when '-mtbm' is used.
  40412. Both of them generate the immediate form of the bextr machine
  40413. instruction.
  40414. unsigned int __builtin_ia32_bextri_u32 (unsigned int,
  40415. const unsigned int);
  40416. unsigned long long __builtin_ia32_bextri_u64 (unsigned long long,
  40417. const unsigned long long);
  40418. The following built-in functions are available when '-m3dnow' is used.
  40419. All of them generate the machine instruction that is part of the name.
  40420. void __builtin_ia32_femms (void)
  40421. v8qi __builtin_ia32_pavgusb (v8qi, v8qi)
  40422. v2si __builtin_ia32_pf2id (v2sf)
  40423. v2sf __builtin_ia32_pfacc (v2sf, v2sf)
  40424. v2sf __builtin_ia32_pfadd (v2sf, v2sf)
  40425. v2si __builtin_ia32_pfcmpeq (v2sf, v2sf)
  40426. v2si __builtin_ia32_pfcmpge (v2sf, v2sf)
  40427. v2si __builtin_ia32_pfcmpgt (v2sf, v2sf)
  40428. v2sf __builtin_ia32_pfmax (v2sf, v2sf)
  40429. v2sf __builtin_ia32_pfmin (v2sf, v2sf)
  40430. v2sf __builtin_ia32_pfmul (v2sf, v2sf)
  40431. v2sf __builtin_ia32_pfrcp (v2sf)
  40432. v2sf __builtin_ia32_pfrcpit1 (v2sf, v2sf)
  40433. v2sf __builtin_ia32_pfrcpit2 (v2sf, v2sf)
  40434. v2sf __builtin_ia32_pfrsqrt (v2sf)
  40435. v2sf __builtin_ia32_pfsub (v2sf, v2sf)
  40436. v2sf __builtin_ia32_pfsubr (v2sf, v2sf)
  40437. v2sf __builtin_ia32_pi2fd (v2si)
  40438. v4hi __builtin_ia32_pmulhrw (v4hi, v4hi)
  40439. The following built-in functions are available when '-m3dnowa' is used.
  40440. All of them generate the machine instruction that is part of the name.
  40441. v2si __builtin_ia32_pf2iw (v2sf)
  40442. v2sf __builtin_ia32_pfnacc (v2sf, v2sf)
  40443. v2sf __builtin_ia32_pfpnacc (v2sf, v2sf)
  40444. v2sf __builtin_ia32_pi2fw (v2si)
  40445. v2sf __builtin_ia32_pswapdsf (v2sf)
  40446. v2si __builtin_ia32_pswapdsi (v2si)
  40447. The following built-in functions are available when '-mrtm' is used
  40448. They are used for restricted transactional memory. These are the
  40449. internal low level functions. Normally the functions in *note x86
  40450. transactional memory intrinsics:: should be used instead.
  40451. int __builtin_ia32_xbegin ()
  40452. void __builtin_ia32_xend ()
  40453. void __builtin_ia32_xabort (status)
  40454. int __builtin_ia32_xtest ()
  40455. The following built-in functions are available when '-mmwaitx' is used.
  40456. All of them generate the machine instruction that is part of the name.
  40457. void __builtin_ia32_monitorx (void *, unsigned int, unsigned int)
  40458. void __builtin_ia32_mwaitx (unsigned int, unsigned int, unsigned int)
  40459. The following built-in functions are available when '-mclzero' is used.
  40460. All of them generate the machine instruction that is part of the name.
  40461. void __builtin_i32_clzero (void *)
  40462. The following built-in functions are available when '-mpku' is used.
  40463. They generate reads and writes to PKRU.
  40464. void __builtin_ia32_wrpkru (unsigned int)
  40465. unsigned int __builtin_ia32_rdpkru ()
  40466. The following built-in functions are available when '-mcet' or
  40467. '-mshstk' option is used. They support shadow stack machine
  40468. instructions from Intel Control-flow Enforcement Technology (CET). Each
  40469. built-in function generates the machine instruction that is part of the
  40470. function's name. These are the internal low-level functions. Normally
  40471. the functions in *note x86 control-flow protection intrinsics:: should
  40472. be used instead.
  40473. unsigned int __builtin_ia32_rdsspd (void)
  40474. unsigned long long __builtin_ia32_rdsspq (void)
  40475. void __builtin_ia32_incsspd (unsigned int)
  40476. void __builtin_ia32_incsspq (unsigned long long)
  40477. void __builtin_ia32_saveprevssp(void);
  40478. void __builtin_ia32_rstorssp(void *);
  40479. void __builtin_ia32_wrssd(unsigned int, void *);
  40480. void __builtin_ia32_wrssq(unsigned long long, void *);
  40481. void __builtin_ia32_wrussd(unsigned int, void *);
  40482. void __builtin_ia32_wrussq(unsigned long long, void *);
  40483. void __builtin_ia32_setssbsy(void);
  40484. void __builtin_ia32_clrssbsy(void *);
  40485. 
  40486. File: gcc.info, Node: x86 transactional memory intrinsics, Next: x86 control-flow protection intrinsics, Prev: x86 Built-in Functions, Up: Target Builtins
  40487. 6.59.34 x86 Transactional Memory Intrinsics
  40488. -------------------------------------------
  40489. These hardware transactional memory intrinsics for x86 allow you to use
  40490. memory transactions with RTM (Restricted Transactional Memory). This
  40491. support is enabled with the '-mrtm' option. For using HLE (Hardware
  40492. Lock Elision) see *note x86 specific memory model extensions for
  40493. transactional memory:: instead.
  40494. A memory transaction commits all changes to memory in an atomic way, as
  40495. visible to other threads. If the transaction fails it is rolled back
  40496. and all side effects discarded.
  40497. Generally there is no guarantee that a memory transaction ever succeeds
  40498. and suitable fallback code always needs to be supplied.
  40499. -- RTM Function: unsigned _xbegin ()
  40500. Start a RTM (Restricted Transactional Memory) transaction. Returns
  40501. '_XBEGIN_STARTED' when the transaction started successfully (note
  40502. this is not 0, so the constant has to be explicitly tested).
  40503. If the transaction aborts, all side effects are undone and an abort
  40504. code encoded as a bit mask is returned. The following macros are
  40505. defined:
  40506. '_XABORT_EXPLICIT'
  40507. Transaction was explicitly aborted with '_xabort'. The
  40508. parameter passed to '_xabort' is available with
  40509. '_XABORT_CODE(status)'.
  40510. '_XABORT_RETRY'
  40511. Transaction retry is possible.
  40512. '_XABORT_CONFLICT'
  40513. Transaction abort due to a memory conflict with another
  40514. thread.
  40515. '_XABORT_CAPACITY'
  40516. Transaction abort due to the transaction using too much
  40517. memory.
  40518. '_XABORT_DEBUG'
  40519. Transaction abort due to a debug trap.
  40520. '_XABORT_NESTED'
  40521. Transaction abort in an inner nested transaction.
  40522. There is no guarantee any transaction ever succeeds, so there
  40523. always needs to be a valid fallback path.
  40524. -- RTM Function: void _xend ()
  40525. Commit the current transaction. When no transaction is active this
  40526. faults. All memory side effects of the transaction become visible
  40527. to other threads in an atomic manner.
  40528. -- RTM Function: int _xtest ()
  40529. Return a nonzero value if a transaction is currently active,
  40530. otherwise 0.
  40531. -- RTM Function: void _xabort (status)
  40532. Abort the current transaction. When no transaction is active this
  40533. is a no-op. The STATUS is an 8-bit constant; its value is encoded
  40534. in the return value from '_xbegin'.
  40535. Here is an example showing handling for '_XABORT_RETRY' and a fallback
  40536. path for other failures:
  40537. #include <immintrin.h>
  40538. int n_tries, max_tries;
  40539. unsigned status = _XABORT_EXPLICIT;
  40540. ...
  40541. for (n_tries = 0; n_tries < max_tries; n_tries++)
  40542. {
  40543. status = _xbegin ();
  40544. if (status == _XBEGIN_STARTED || !(status & _XABORT_RETRY))
  40545. break;
  40546. }
  40547. if (status == _XBEGIN_STARTED)
  40548. {
  40549. ... transaction code...
  40550. _xend ();
  40551. }
  40552. else
  40553. {
  40554. ... non-transactional fallback path...
  40555. }
  40556. Note that, in most cases, the transactional and non-transactional code
  40557. must synchronize together to ensure consistency.
  40558. 
  40559. File: gcc.info, Node: x86 control-flow protection intrinsics, Prev: x86 transactional memory intrinsics, Up: Target Builtins
  40560. 6.59.35 x86 Control-Flow Protection Intrinsics
  40561. ----------------------------------------------
  40562. -- CET Function: ret_type _get_ssp (void)
  40563. Get the current value of shadow stack pointer if shadow stack
  40564. support from Intel CET is enabled in the hardware or '0' otherwise.
  40565. The 'ret_type' is 'unsigned long long' for 64-bit targets and
  40566. 'unsigned int' for 32-bit targets.
  40567. -- CET Function: void _inc_ssp (unsigned int)
  40568. Increment the current shadow stack pointer by the size specified by
  40569. the function argument. The argument is masked to a byte value for
  40570. security reasons, so to increment by more than 255 bytes you must
  40571. call the function multiple times.
  40572. The shadow stack unwind code looks like:
  40573. #include <immintrin.h>
  40574. /* Unwind the shadow stack for EH. */
  40575. #define _Unwind_Frames_Extra(x) \
  40576. do \
  40577. { \
  40578. _Unwind_Word ssp = _get_ssp (); \
  40579. if (ssp != 0) \
  40580. { \
  40581. _Unwind_Word tmp = (x); \
  40582. while (tmp > 255) \
  40583. { \
  40584. _inc_ssp (tmp); \
  40585. tmp -= 255; \
  40586. } \
  40587. _inc_ssp (tmp); \
  40588. } \
  40589. } \
  40590. while (0)
  40591. This code runs unconditionally on all 64-bit processors. For 32-bit
  40592. processors the code runs on those that support multi-byte NOP
  40593. instructions.
  40594. 
  40595. File: gcc.info, Node: Target Format Checks, Next: Pragmas, Prev: Target Builtins, Up: C Extensions
  40596. 6.60 Format Checks Specific to Particular Target Machines
  40597. =========================================================
  40598. For some target machines, GCC supports additional options to the format
  40599. attribute (*note Declaring Attributes of Functions: Function
  40600. Attributes.).
  40601. * Menu:
  40602. * Solaris Format Checks::
  40603. * Darwin Format Checks::
  40604. 
  40605. File: gcc.info, Node: Solaris Format Checks, Next: Darwin Format Checks, Up: Target Format Checks
  40606. 6.60.1 Solaris Format Checks
  40607. ----------------------------
  40608. Solaris targets support the 'cmn_err' (or '__cmn_err__') format check.
  40609. 'cmn_err' accepts a subset of the standard 'printf' conversions, and the
  40610. two-argument '%b' conversion for displaying bit-fields. See the Solaris
  40611. man page for 'cmn_err' for more information.
  40612. 
  40613. File: gcc.info, Node: Darwin Format Checks, Prev: Solaris Format Checks, Up: Target Format Checks
  40614. 6.60.2 Darwin Format Checks
  40615. ---------------------------
  40616. Darwin targets support the 'CFString' (or '__CFString__') in the format
  40617. attribute context. Declarations made with such attribution are parsed
  40618. for correct syntax and format argument types. However, parsing of the
  40619. format string itself is currently undefined and is not carried out by
  40620. this version of the compiler.
  40621. Additionally, 'CFStringRefs' (defined by the 'CoreFoundation' headers)
  40622. may also be used as format arguments. Note that the relevant headers
  40623. are only likely to be available on Darwin (OSX) installations. On such
  40624. installations, the XCode and system documentation provide descriptions
  40625. of 'CFString', 'CFStringRefs' and associated functions.
  40626. 
  40627. File: gcc.info, Node: Pragmas, Next: Unnamed Fields, Prev: Target Format Checks, Up: C Extensions
  40628. 6.61 Pragmas Accepted by GCC
  40629. ============================
  40630. GCC supports several types of pragmas, primarily in order to compile
  40631. code originally written for other compilers. Note that in general we do
  40632. not recommend the use of pragmas; *Note Function Attributes::, for
  40633. further explanation.
  40634. * Menu:
  40635. * AArch64 Pragmas::
  40636. * ARM Pragmas::
  40637. * M32C Pragmas::
  40638. * MeP Pragmas::
  40639. * RS/6000 and PowerPC Pragmas::
  40640. * S/390 Pragmas::
  40641. * Darwin Pragmas::
  40642. * Solaris Pragmas::
  40643. * Symbol-Renaming Pragmas::
  40644. * Structure-Layout Pragmas::
  40645. * Weak Pragmas::
  40646. * Diagnostic Pragmas::
  40647. * Visibility Pragmas::
  40648. * Push/Pop Macro Pragmas::
  40649. * Function Specific Option Pragmas::
  40650. * Loop-Specific Pragmas::
  40651. 
  40652. File: gcc.info, Node: AArch64 Pragmas, Next: ARM Pragmas, Up: Pragmas
  40653. 6.61.1 AArch64 Pragmas
  40654. ----------------------
  40655. The pragmas defined by the AArch64 target correspond to the AArch64
  40656. target function attributes. They can be specified as below:
  40657. #pragma GCC target("string")
  40658. where 'STRING' can be any string accepted as an AArch64 target
  40659. attribute. *Note AArch64 Function Attributes::, for more details on the
  40660. permissible values of 'string'.
  40661. 
  40662. File: gcc.info, Node: ARM Pragmas, Next: M32C Pragmas, Prev: AArch64 Pragmas, Up: Pragmas
  40663. 6.61.2 ARM Pragmas
  40664. ------------------
  40665. The ARM target defines pragmas for controlling the default addition of
  40666. 'long_call' and 'short_call' attributes to functions. *Note Function
  40667. Attributes::, for information about the effects of these attributes.
  40668. 'long_calls'
  40669. Set all subsequent functions to have the 'long_call' attribute.
  40670. 'no_long_calls'
  40671. Set all subsequent functions to have the 'short_call' attribute.
  40672. 'long_calls_off'
  40673. Do not affect the 'long_call' or 'short_call' attributes of
  40674. subsequent functions.
  40675. 
  40676. File: gcc.info, Node: M32C Pragmas, Next: MeP Pragmas, Prev: ARM Pragmas, Up: Pragmas
  40677. 6.61.3 M32C Pragmas
  40678. -------------------
  40679. 'GCC memregs NUMBER'
  40680. Overrides the command-line option '-memregs=' for the current file.
  40681. Use with care! This pragma must be before any function in the
  40682. file, and mixing different memregs values in different objects may
  40683. make them incompatible. This pragma is useful when a
  40684. performance-critical function uses a memreg for temporary values,
  40685. as it may allow you to reduce the number of memregs used.
  40686. 'ADDRESS NAME ADDRESS'
  40687. For any declared symbols matching NAME, this does three things to
  40688. that symbol: it forces the symbol to be located at the given
  40689. address (a number), it forces the symbol to be volatile, and it
  40690. changes the symbol's scope to be static. This pragma exists for
  40691. compatibility with other compilers, but note that the common
  40692. '1234H' numeric syntax is not supported (use '0x1234' instead).
  40693. Example:
  40694. #pragma ADDRESS port3 0x103
  40695. char port3;
  40696. 
  40697. File: gcc.info, Node: MeP Pragmas, Next: RS/6000 and PowerPC Pragmas, Prev: M32C Pragmas, Up: Pragmas
  40698. 6.61.4 MeP Pragmas
  40699. ------------------
  40700. 'custom io_volatile (on|off)'
  40701. Overrides the command-line option '-mio-volatile' for the current
  40702. file. Note that for compatibility with future GCC releases, this
  40703. option should only be used once before any 'io' variables in each
  40704. file.
  40705. 'GCC coprocessor available REGISTERS'
  40706. Specifies which coprocessor registers are available to the register
  40707. allocator. REGISTERS may be a single register, register range
  40708. separated by ellipses, or comma-separated list of those. Example:
  40709. #pragma GCC coprocessor available $c0...$c10, $c28
  40710. 'GCC coprocessor call_saved REGISTERS'
  40711. Specifies which coprocessor registers are to be saved and restored
  40712. by any function using them. REGISTERS may be a single register,
  40713. register range separated by ellipses, or comma-separated list of
  40714. those. Example:
  40715. #pragma GCC coprocessor call_saved $c4...$c6, $c31
  40716. 'GCC coprocessor subclass '(A|B|C|D)' = REGISTERS'
  40717. Creates and defines a register class. These register classes can
  40718. be used by inline 'asm' constructs. REGISTERS may be a single
  40719. register, register range separated by ellipses, or comma-separated
  40720. list of those. Example:
  40721. #pragma GCC coprocessor subclass 'B' = $c2, $c4, $c6
  40722. asm ("cpfoo %0" : "=B" (x));
  40723. 'GCC disinterrupt NAME , NAME ...'
  40724. For the named functions, the compiler adds code to disable
  40725. interrupts for the duration of those functions. If any functions
  40726. so named are not encountered in the source, a warning is emitted
  40727. that the pragma is not used. Examples:
  40728. #pragma disinterrupt foo
  40729. #pragma disinterrupt bar, grill
  40730. int foo () { ... }
  40731. 'GCC call NAME , NAME ...'
  40732. For the named functions, the compiler always uses a
  40733. register-indirect call model when calling the named functions.
  40734. Examples:
  40735. extern int foo ();
  40736. #pragma call foo
  40737. 
  40738. File: gcc.info, Node: RS/6000 and PowerPC Pragmas, Next: S/390 Pragmas, Prev: MeP Pragmas, Up: Pragmas
  40739. 6.61.5 RS/6000 and PowerPC Pragmas
  40740. ----------------------------------
  40741. The RS/6000 and PowerPC targets define one pragma for controlling
  40742. whether or not the 'longcall' attribute is added to function
  40743. declarations by default. This pragma overrides the '-mlongcall' option,
  40744. but not the 'longcall' and 'shortcall' attributes. *Note RS/6000 and
  40745. PowerPC Options::, for more information about when long calls are and
  40746. are not necessary.
  40747. 'longcall (1)'
  40748. Apply the 'longcall' attribute to all subsequent function
  40749. declarations.
  40750. 'longcall (0)'
  40751. Do not apply the 'longcall' attribute to subsequent function
  40752. declarations.
  40753. 
  40754. File: gcc.info, Node: S/390 Pragmas, Next: Darwin Pragmas, Prev: RS/6000 and PowerPC Pragmas, Up: Pragmas
  40755. 6.61.6 S/390 Pragmas
  40756. --------------------
  40757. The pragmas defined by the S/390 target correspond to the S/390 target
  40758. function attributes and some the additional options:
  40759. 'zvector'
  40760. 'no-zvector'
  40761. Note that options of the pragma, unlike options of the target
  40762. attribute, do change the value of preprocessor macros like '__VEC__'.
  40763. They can be specified as below:
  40764. #pragma GCC target("string[,string]...")
  40765. #pragma GCC target("string"[,"string"]...)
  40766. 
  40767. File: gcc.info, Node: Darwin Pragmas, Next: Solaris Pragmas, Prev: S/390 Pragmas, Up: Pragmas
  40768. 6.61.7 Darwin Pragmas
  40769. ---------------------
  40770. The following pragmas are available for all architectures running the
  40771. Darwin operating system. These are useful for compatibility with other
  40772. Mac OS compilers.
  40773. 'mark TOKENS...'
  40774. This pragma is accepted, but has no effect.
  40775. 'options align=ALIGNMENT'
  40776. This pragma sets the alignment of fields in structures. The values
  40777. of ALIGNMENT may be 'mac68k', to emulate m68k alignment, or
  40778. 'power', to emulate PowerPC alignment. Uses of this pragma nest
  40779. properly; to restore the previous setting, use 'reset' for the
  40780. ALIGNMENT.
  40781. 'segment TOKENS...'
  40782. This pragma is accepted, but has no effect.
  40783. 'unused (VAR [, VAR]...)'
  40784. This pragma declares variables to be possibly unused. GCC does not
  40785. produce warnings for the listed variables. The effect is similar
  40786. to that of the 'unused' attribute, except that this pragma may
  40787. appear anywhere within the variables' scopes.
  40788. 
  40789. File: gcc.info, Node: Solaris Pragmas, Next: Symbol-Renaming Pragmas, Prev: Darwin Pragmas, Up: Pragmas
  40790. 6.61.8 Solaris Pragmas
  40791. ----------------------
  40792. The Solaris target supports '#pragma redefine_extname' (*note
  40793. Symbol-Renaming Pragmas::). It also supports additional '#pragma'
  40794. directives for compatibility with the system compiler.
  40795. 'align ALIGNMENT (VARIABLE [, VARIABLE]...)'
  40796. Increase the minimum alignment of each VARIABLE to ALIGNMENT. This
  40797. is the same as GCC's 'aligned' attribute *note Variable
  40798. Attributes::). Macro expansion occurs on the arguments to this
  40799. pragma when compiling C and Objective-C. It does not currently
  40800. occur when compiling C++, but this is a bug which may be fixed in a
  40801. future release.
  40802. 'fini (FUNCTION [, FUNCTION]...)'
  40803. This pragma causes each listed FUNCTION to be called after main, or
  40804. during shared module unloading, by adding a call to the '.fini'
  40805. section.
  40806. 'init (FUNCTION [, FUNCTION]...)'
  40807. This pragma causes each listed FUNCTION to be called during
  40808. initialization (before 'main') or during shared module loading, by
  40809. adding a call to the '.init' section.
  40810. 
  40811. File: gcc.info, Node: Symbol-Renaming Pragmas, Next: Structure-Layout Pragmas, Prev: Solaris Pragmas, Up: Pragmas
  40812. 6.61.9 Symbol-Renaming Pragmas
  40813. ------------------------------
  40814. GCC supports a '#pragma' directive that changes the name used in
  40815. assembly for a given declaration. While this pragma is supported on all
  40816. platforms, it is intended primarily to provide compatibility with the
  40817. Solaris system headers. This effect can also be achieved using the asm
  40818. labels extension (*note Asm Labels::).
  40819. 'redefine_extname OLDNAME NEWNAME'
  40820. This pragma gives the C function OLDNAME the assembly symbol
  40821. NEWNAME. The preprocessor macro '__PRAGMA_REDEFINE_EXTNAME' is
  40822. defined if this pragma is available (currently on all platforms).
  40823. This pragma and the asm labels extension interact in a complicated
  40824. manner. Here are some corner cases you may want to be aware of:
  40825. 1. This pragma silently applies only to declarations with external
  40826. linkage. Asm labels do not have this restriction.
  40827. 2. In C++, this pragma silently applies only to declarations with "C"
  40828. linkage. Again, asm labels do not have this restriction.
  40829. 3. If either of the ways of changing the assembly name of a
  40830. declaration are applied to a declaration whose assembly name has
  40831. already been determined (either by a previous use of one of these
  40832. features, or because the compiler needed the assembly name in order
  40833. to generate code), and the new name is different, a warning issues
  40834. and the name does not change.
  40835. 4. The OLDNAME used by '#pragma redefine_extname' is always the
  40836. C-language name.
  40837. 
  40838. File: gcc.info, Node: Structure-Layout Pragmas, Next: Weak Pragmas, Prev: Symbol-Renaming Pragmas, Up: Pragmas
  40839. 6.61.10 Structure-Layout Pragmas
  40840. --------------------------------
  40841. For compatibility with Microsoft Windows compilers, GCC supports a set
  40842. of '#pragma' directives that change the maximum alignment of members of
  40843. structures (other than zero-width bit-fields), unions, and classes
  40844. subsequently defined. The N value below always is required to be a
  40845. small power of two and specifies the new alignment in bytes.
  40846. 1. '#pragma pack(N)' simply sets the new alignment.
  40847. 2. '#pragma pack()' sets the alignment to the one that was in effect
  40848. when compilation started (see also command-line option
  40849. '-fpack-struct[=N]' *note Code Gen Options::).
  40850. 3. '#pragma pack(push[,N])' pushes the current alignment setting on an
  40851. internal stack and then optionally sets the new alignment.
  40852. 4. '#pragma pack(pop)' restores the alignment setting to the one saved
  40853. at the top of the internal stack (and removes that stack entry).
  40854. Note that '#pragma pack([N])' does not influence this internal
  40855. stack; thus it is possible to have '#pragma pack(push)' followed by
  40856. multiple '#pragma pack(N)' instances and finalized by a single
  40857. '#pragma pack(pop)'.
  40858. Some targets, e.g. x86 and PowerPC, support the '#pragma ms_struct'
  40859. directive which lays out structures and unions subsequently defined as
  40860. the documented '__attribute__ ((ms_struct))'.
  40861. 1. '#pragma ms_struct on' turns on the Microsoft layout.
  40862. 2. '#pragma ms_struct off' turns off the Microsoft layout.
  40863. 3. '#pragma ms_struct reset' goes back to the default layout.
  40864. Most targets also support the '#pragma scalar_storage_order' directive
  40865. which lays out structures and unions subsequently defined as the
  40866. documented '__attribute__ ((scalar_storage_order))'.
  40867. 1. '#pragma scalar_storage_order big-endian' sets the storage order of
  40868. the scalar fields to big-endian.
  40869. 2. '#pragma scalar_storage_order little-endian' sets the storage order
  40870. of the scalar fields to little-endian.
  40871. 3. '#pragma scalar_storage_order default' goes back to the endianness
  40872. that was in effect when compilation started (see also command-line
  40873. option '-fsso-struct=ENDIANNESS' *note C Dialect Options::).
  40874. 
  40875. File: gcc.info, Node: Weak Pragmas, Next: Diagnostic Pragmas, Prev: Structure-Layout Pragmas, Up: Pragmas
  40876. 6.61.11 Weak Pragmas
  40877. --------------------
  40878. For compatibility with SVR4, GCC supports a set of '#pragma' directives
  40879. for declaring symbols to be weak, and defining weak aliases.
  40880. '#pragma weak SYMBOL'
  40881. This pragma declares SYMBOL to be weak, as if the declaration had
  40882. the attribute of the same name. The pragma may appear before or
  40883. after the declaration of SYMBOL. It is not an error for SYMBOL to
  40884. never be defined at all.
  40885. '#pragma weak SYMBOL1 = SYMBOL2'
  40886. This pragma declares SYMBOL1 to be a weak alias of SYMBOL2. It is
  40887. an error if SYMBOL2 is not defined in the current translation unit.
  40888. 
  40889. File: gcc.info, Node: Diagnostic Pragmas, Next: Visibility Pragmas, Prev: Weak Pragmas, Up: Pragmas
  40890. 6.61.12 Diagnostic Pragmas
  40891. --------------------------
  40892. GCC allows the user to selectively enable or disable certain types of
  40893. diagnostics, and change the kind of the diagnostic. For example, a
  40894. project's policy might require that all sources compile with '-Werror'
  40895. but certain files might have exceptions allowing specific types of
  40896. warnings. Or, a project might selectively enable diagnostics and treat
  40897. them as errors depending on which preprocessor macros are defined.
  40898. '#pragma GCC diagnostic KIND OPTION'
  40899. Modifies the disposition of a diagnostic. Note that not all
  40900. diagnostics are modifiable; at the moment only warnings (normally
  40901. controlled by '-W...') can be controlled, and not all of them. Use
  40902. '-fdiagnostics-show-option' to determine which diagnostics are
  40903. controllable and which option controls them.
  40904. KIND is 'error' to treat this diagnostic as an error, 'warning' to
  40905. treat it like a warning (even if '-Werror' is in effect), or
  40906. 'ignored' if the diagnostic is to be ignored. OPTION is a double
  40907. quoted string that matches the command-line option.
  40908. #pragma GCC diagnostic warning "-Wformat"
  40909. #pragma GCC diagnostic error "-Wformat"
  40910. #pragma GCC diagnostic ignored "-Wformat"
  40911. Note that these pragmas override any command-line options. GCC
  40912. keeps track of the location of each pragma, and issues diagnostics
  40913. according to the state as of that point in the source file. Thus,
  40914. pragmas occurring after a line do not affect diagnostics caused by
  40915. that line.
  40916. '#pragma GCC diagnostic push'
  40917. '#pragma GCC diagnostic pop'
  40918. Causes GCC to remember the state of the diagnostics as of each
  40919. 'push', and restore to that point at each 'pop'. If a 'pop' has no
  40920. matching 'push', the command-line options are restored.
  40921. #pragma GCC diagnostic error "-Wuninitialized"
  40922. foo(a); /* error is given for this one */
  40923. #pragma GCC diagnostic push
  40924. #pragma GCC diagnostic ignored "-Wuninitialized"
  40925. foo(b); /* no diagnostic for this one */
  40926. #pragma GCC diagnostic pop
  40927. foo(c); /* error is given for this one */
  40928. #pragma GCC diagnostic pop
  40929. foo(d); /* depends on command-line options */
  40930. GCC also offers a simple mechanism for printing messages during
  40931. compilation.
  40932. '#pragma message STRING'
  40933. Prints STRING as a compiler message on compilation. The message is
  40934. informational only, and is neither a compilation warning nor an
  40935. error.
  40936. #pragma message "Compiling " __FILE__ "..."
  40937. STRING may be parenthesized, and is printed with location
  40938. information. For example,
  40939. #define DO_PRAGMA(x) _Pragma (#x)
  40940. #define TODO(x) DO_PRAGMA(message ("TODO - " #x))
  40941. TODO(Remember to fix this)
  40942. prints '/tmp/file.c:4: note: #pragma message: TODO - Remember to
  40943. fix this'.
  40944. 
  40945. File: gcc.info, Node: Visibility Pragmas, Next: Push/Pop Macro Pragmas, Prev: Diagnostic Pragmas, Up: Pragmas
  40946. 6.61.13 Visibility Pragmas
  40947. --------------------------
  40948. '#pragma GCC visibility push(VISIBILITY)'
  40949. '#pragma GCC visibility pop'
  40950. This pragma allows the user to set the visibility for multiple
  40951. declarations without having to give each a visibility attribute
  40952. (*note Function Attributes::).
  40953. In C++, '#pragma GCC visibility' affects only namespace-scope
  40954. declarations. Class members and template specializations are not
  40955. affected; if you want to override the visibility for a particular
  40956. member or instantiation, you must use an attribute.
  40957. 
  40958. File: gcc.info, Node: Push/Pop Macro Pragmas, Next: Function Specific Option Pragmas, Prev: Visibility Pragmas, Up: Pragmas
  40959. 6.61.14 Push/Pop Macro Pragmas
  40960. ------------------------------
  40961. For compatibility with Microsoft Windows compilers, GCC supports
  40962. '#pragma push_macro("MACRO_NAME")' and '#pragma
  40963. pop_macro("MACRO_NAME")'.
  40964. '#pragma push_macro("MACRO_NAME")'
  40965. This pragma saves the value of the macro named as MACRO_NAME to the
  40966. top of the stack for this macro.
  40967. '#pragma pop_macro("MACRO_NAME")'
  40968. This pragma sets the value of the macro named as MACRO_NAME to the
  40969. value on top of the stack for this macro. If the stack for
  40970. MACRO_NAME is empty, the value of the macro remains unchanged.
  40971. For example:
  40972. #define X 1
  40973. #pragma push_macro("X")
  40974. #undef X
  40975. #define X -1
  40976. #pragma pop_macro("X")
  40977. int x [X];
  40978. In this example, the definition of X as 1 is saved by '#pragma
  40979. push_macro' and restored by '#pragma pop_macro'.
  40980. 
  40981. File: gcc.info, Node: Function Specific Option Pragmas, Next: Loop-Specific Pragmas, Prev: Push/Pop Macro Pragmas, Up: Pragmas
  40982. 6.61.15 Function Specific Option Pragmas
  40983. ----------------------------------------
  40984. '#pragma GCC target ("STRING"...)'
  40985. This pragma allows you to set target specific options for functions
  40986. defined later in the source file. One or more strings can be
  40987. specified. Each function that is defined after this point is as if
  40988. 'attribute((target("STRING")))' was specified for that function.
  40989. The parenthesis around the options is optional. *Note Function
  40990. Attributes::, for more information about the 'target' attribute and
  40991. the attribute syntax.
  40992. The '#pragma GCC target' pragma is presently implemented for x86,
  40993. ARM, AArch64, PowerPC, S/390, and Nios II targets only.
  40994. '#pragma GCC optimize ("STRING"...)'
  40995. This pragma allows you to set global optimization options for
  40996. functions defined later in the source file. One or more strings
  40997. can be specified. Each function that is defined after this point
  40998. is as if 'attribute((optimize("STRING")))' was specified for that
  40999. function. The parenthesis around the options is optional. *Note
  41000. Function Attributes::, for more information about the 'optimize'
  41001. attribute and the attribute syntax.
  41002. '#pragma GCC push_options'
  41003. '#pragma GCC pop_options'
  41004. These pragmas maintain a stack of the current target and
  41005. optimization options. It is intended for include files where you
  41006. temporarily want to switch to using a different '#pragma GCC
  41007. target' or '#pragma GCC optimize' and then to pop back to the
  41008. previous options.
  41009. '#pragma GCC reset_options'
  41010. This pragma clears the current '#pragma GCC target' and '#pragma
  41011. GCC optimize' to use the default switches as specified on the
  41012. command line.
  41013. 
  41014. File: gcc.info, Node: Loop-Specific Pragmas, Prev: Function Specific Option Pragmas, Up: Pragmas
  41015. 6.61.16 Loop-Specific Pragmas
  41016. -----------------------------
  41017. '#pragma GCC ivdep'
  41018. With this pragma, the programmer asserts that there are no
  41019. loop-carried dependencies which would prevent consecutive
  41020. iterations of the following loop from executing concurrently with
  41021. SIMD (single instruction multiple data) instructions.
  41022. For example, the compiler can only unconditionally vectorize the
  41023. following loop with the pragma:
  41024. void foo (int n, int *a, int *b, int *c)
  41025. {
  41026. int i, j;
  41027. #pragma GCC ivdep
  41028. for (i = 0; i < n; ++i)
  41029. a[i] = b[i] + c[i];
  41030. }
  41031. In this example, using the 'restrict' qualifier had the same
  41032. effect. In the following example, that would not be possible.
  41033. Assume k < -m or k >= m. Only with the pragma, the compiler knows
  41034. that it can unconditionally vectorize the following loop:
  41035. void ignore_vec_dep (int *a, int k, int c, int m)
  41036. {
  41037. #pragma GCC ivdep
  41038. for (int i = 0; i < m; i++)
  41039. a[i] = a[i + k] * c;
  41040. }
  41041. '#pragma GCC unroll N'
  41042. You can use this pragma to control how many times a loop should be
  41043. unrolled. It must be placed immediately before a 'for', 'while' or
  41044. 'do' loop or a '#pragma GCC ivdep', and applies only to the loop
  41045. that follows. N is an integer constant expression specifying the
  41046. unrolling factor. The values of 0 and 1 block any unrolling of the
  41047. loop.
  41048. 
  41049. File: gcc.info, Node: Unnamed Fields, Next: Thread-Local, Prev: Pragmas, Up: C Extensions
  41050. 6.62 Unnamed Structure and Union Fields
  41051. =======================================
  41052. As permitted by ISO C11 and for compatibility with other compilers, GCC
  41053. allows you to define a structure or union that contains, as fields,
  41054. structures and unions without names. For example:
  41055. struct {
  41056. int a;
  41057. union {
  41058. int b;
  41059. float c;
  41060. };
  41061. int d;
  41062. } foo;
  41063. In this example, you are able to access members of the unnamed union
  41064. with code like 'foo.b'. Note that only unnamed structs and unions are
  41065. allowed, you may not have, for example, an unnamed 'int'.
  41066. You must never create such structures that cause ambiguous field
  41067. definitions. For example, in this structure:
  41068. struct {
  41069. int a;
  41070. struct {
  41071. int a;
  41072. };
  41073. } foo;
  41074. it is ambiguous which 'a' is being referred to with 'foo.a'. The
  41075. compiler gives errors for such constructs.
  41076. Unless '-fms-extensions' is used, the unnamed field must be a structure
  41077. or union definition without a tag (for example, 'struct { int a; };').
  41078. If '-fms-extensions' is used, the field may also be a definition with a
  41079. tag such as 'struct foo { int a; };', a reference to a previously
  41080. defined structure or union such as 'struct foo;', or a reference to a
  41081. 'typedef' name for a previously defined structure or union type.
  41082. The option '-fplan9-extensions' enables '-fms-extensions' as well as
  41083. two other extensions. First, a pointer to a structure is automatically
  41084. converted to a pointer to an anonymous field for assignments and
  41085. function calls. For example:
  41086. struct s1 { int a; };
  41087. struct s2 { struct s1; };
  41088. extern void f1 (struct s1 *);
  41089. void f2 (struct s2 *p) { f1 (p); }
  41090. In the call to 'f1' inside 'f2', the pointer 'p' is converted into a
  41091. pointer to the anonymous field.
  41092. Second, when the type of an anonymous field is a 'typedef' for a
  41093. 'struct' or 'union', code may refer to the field using the name of the
  41094. 'typedef'.
  41095. typedef struct { int a; } s1;
  41096. struct s2 { s1; };
  41097. s1 f1 (struct s2 *p) { return p->s1; }
  41098. These usages are only permitted when they are not ambiguous.
  41099. 
  41100. File: gcc.info, Node: Thread-Local, Next: Binary constants, Prev: Unnamed Fields, Up: C Extensions
  41101. 6.63 Thread-Local Storage
  41102. =========================
  41103. Thread-local storage (TLS) is a mechanism by which variables are
  41104. allocated such that there is one instance of the variable per extant
  41105. thread. The runtime model GCC uses to implement this originates in the
  41106. IA-64 processor-specific ABI, but has since been migrated to other
  41107. processors as well. It requires significant support from the linker
  41108. ('ld'), dynamic linker ('ld.so'), and system libraries ('libc.so' and
  41109. 'libpthread.so'), so it is not available everywhere.
  41110. At the user level, the extension is visible with a new storage class
  41111. keyword: '__thread'. For example:
  41112. __thread int i;
  41113. extern __thread struct state s;
  41114. static __thread char *p;
  41115. The '__thread' specifier may be used alone, with the 'extern' or
  41116. 'static' specifiers, but with no other storage class specifier. When
  41117. used with 'extern' or 'static', '__thread' must appear immediately after
  41118. the other storage class specifier.
  41119. The '__thread' specifier may be applied to any global, file-scoped
  41120. static, function-scoped static, or static data member of a class. It
  41121. may not be applied to block-scoped automatic or non-static data member.
  41122. When the address-of operator is applied to a thread-local variable, it
  41123. is evaluated at run time and returns the address of the current thread's
  41124. instance of that variable. An address so obtained may be used by any
  41125. thread. When a thread terminates, any pointers to thread-local
  41126. variables in that thread become invalid.
  41127. No static initialization may refer to the address of a thread-local
  41128. variable.
  41129. In C++, if an initializer is present for a thread-local variable, it
  41130. must be a CONSTANT-EXPRESSION, as defined in 5.19.2 of the ANSI/ISO C++
  41131. standard.
  41132. See ELF Handling For Thread-Local Storage
  41133. (https://www.akkadia.org/drepper/tls.pdf) for a detailed explanation of
  41134. the four thread-local storage addressing models, and how the runtime is
  41135. expected to function.
  41136. * Menu:
  41137. * C99 Thread-Local Edits::
  41138. * C++98 Thread-Local Edits::
  41139. 
  41140. File: gcc.info, Node: C99 Thread-Local Edits, Next: C++98 Thread-Local Edits, Up: Thread-Local
  41141. 6.63.1 ISO/IEC 9899:1999 Edits for Thread-Local Storage
  41142. -------------------------------------------------------
  41143. The following are a set of changes to ISO/IEC 9899:1999 (aka C99) that
  41144. document the exact semantics of the language extension.
  41145. * '5.1.2 Execution environments'
  41146. Add new text after paragraph 1
  41147. Within either execution environment, a "thread" is a flow of
  41148. control within a program. It is implementation defined
  41149. whether or not there may be more than one thread associated
  41150. with a program. It is implementation defined how threads
  41151. beyond the first are created, the name and type of the
  41152. function called at thread startup, and how threads may be
  41153. terminated. However, objects with thread storage duration
  41154. shall be initialized before thread startup.
  41155. * '6.2.4 Storage durations of objects'
  41156. Add new text before paragraph 3
  41157. An object whose identifier is declared with the storage-class
  41158. specifier '__thread' has "thread storage duration". Its
  41159. lifetime is the entire execution of the thread, and its stored
  41160. value is initialized only once, prior to thread startup.
  41161. * '6.4.1 Keywords'
  41162. Add '__thread'.
  41163. * '6.7.1 Storage-class specifiers'
  41164. Add '__thread' to the list of storage class specifiers in paragraph
  41165. 1.
  41166. Change paragraph 2 to
  41167. With the exception of '__thread', at most one storage-class
  41168. specifier may be given [...]. The '__thread' specifier may be
  41169. used alone, or immediately following 'extern' or 'static'.
  41170. Add new text after paragraph 6
  41171. The declaration of an identifier for a variable that has block
  41172. scope that specifies '__thread' shall also specify either
  41173. 'extern' or 'static'.
  41174. The '__thread' specifier shall be used only with variables.
  41175. 
  41176. File: gcc.info, Node: C++98 Thread-Local Edits, Prev: C99 Thread-Local Edits, Up: Thread-Local
  41177. 6.63.2 ISO/IEC 14882:1998 Edits for Thread-Local Storage
  41178. --------------------------------------------------------
  41179. The following are a set of changes to ISO/IEC 14882:1998 (aka C++98)
  41180. that document the exact semantics of the language extension.
  41181. * [intro.execution]
  41182. New text after paragraph 4
  41183. A "thread" is a flow of control within the abstract machine.
  41184. It is implementation defined whether or not there may be more
  41185. than one thread.
  41186. New text after paragraph 7
  41187. It is unspecified whether additional action must be taken to
  41188. ensure when and whether side effects are visible to other
  41189. threads.
  41190. * [lex.key]
  41191. Add '__thread'.
  41192. * [basic.start.main]
  41193. Add after paragraph 5
  41194. The thread that begins execution at the 'main' function is
  41195. called the "main thread". It is implementation defined how
  41196. functions beginning threads other than the main thread are
  41197. designated or typed. A function so designated, as well as the
  41198. 'main' function, is called a "thread startup function". It is
  41199. implementation defined what happens if a thread startup
  41200. function returns. It is implementation defined what happens
  41201. to other threads when any thread calls 'exit'.
  41202. * [basic.start.init]
  41203. Add after paragraph 4
  41204. The storage for an object of thread storage duration shall be
  41205. statically initialized before the first statement of the
  41206. thread startup function. An object of thread storage duration
  41207. shall not require dynamic initialization.
  41208. * [basic.start.term]
  41209. Add after paragraph 3
  41210. The type of an object with thread storage duration shall not
  41211. have a non-trivial destructor, nor shall it be an array type
  41212. whose elements (directly or indirectly) have non-trivial
  41213. destructors.
  41214. * [basic.stc]
  41215. Add "thread storage duration" to the list in paragraph 1.
  41216. Change paragraph 2
  41217. Thread, static, and automatic storage durations are associated
  41218. with objects introduced by declarations [...].
  41219. Add '__thread' to the list of specifiers in paragraph 3.
  41220. * [basic.stc.thread]
  41221. New section before [basic.stc.static]
  41222. The keyword '__thread' applied to a non-local object gives the
  41223. object thread storage duration.
  41224. A local variable or class data member declared both 'static'
  41225. and '__thread' gives the variable or member thread storage
  41226. duration.
  41227. * [basic.stc.static]
  41228. Change paragraph 1
  41229. All objects that have neither thread storage duration, dynamic
  41230. storage duration nor are local [...].
  41231. * [dcl.stc]
  41232. Add '__thread' to the list in paragraph 1.
  41233. Change paragraph 1
  41234. With the exception of '__thread', at most one
  41235. STORAGE-CLASS-SPECIFIER shall appear in a given
  41236. DECL-SPECIFIER-SEQ. The '__thread' specifier may be used
  41237. alone, or immediately following the 'extern' or 'static'
  41238. specifiers. [...]
  41239. Add after paragraph 5
  41240. The '__thread' specifier can be applied only to the names of
  41241. objects and to anonymous unions.
  41242. * [class.mem]
  41243. Add after paragraph 6
  41244. Non-'static' members shall not be '__thread'.
  41245. 
  41246. File: gcc.info, Node: Binary constants, Prev: Thread-Local, Up: C Extensions
  41247. 6.64 Binary Constants using the '0b' Prefix
  41248. ===========================================
  41249. Integer constants can be written as binary constants, consisting of a
  41250. sequence of '0' and '1' digits, prefixed by '0b' or '0B'. This is
  41251. particularly useful in environments that operate a lot on the bit level
  41252. (like microcontrollers).
  41253. The following statements are identical:
  41254. i = 42;
  41255. i = 0x2a;
  41256. i = 052;
  41257. i = 0b101010;
  41258. The type of these constants follows the same rules as for octal or
  41259. hexadecimal integer constants, so suffixes like 'L' or 'UL' can be
  41260. applied.
  41261. 
  41262. File: gcc.info, Node: C++ Extensions, Next: Objective-C, Prev: C Extensions, Up: Top
  41263. 7 Extensions to the C++ Language
  41264. ********************************
  41265. The GNU compiler provides these extensions to the C++ language (and you
  41266. can also use most of the C language extensions in your C++ programs).
  41267. If you want to write code that checks whether these features are
  41268. available, you can test for the GNU compiler the same way as for C
  41269. programs: check for a predefined macro '__GNUC__'. You can also use
  41270. '__GNUG__' to test specifically for GNU C++ (*note Predefined Macros:
  41271. (cpp)Common Predefined Macros.).
  41272. * Menu:
  41273. * C++ Volatiles:: What constitutes an access to a volatile object.
  41274. * Restricted Pointers:: C99 restricted pointers and references.
  41275. * Vague Linkage:: Where G++ puts inlines, vtables and such.
  41276. * C++ Interface:: You can use a single C++ header file for both
  41277. declarations and definitions.
  41278. * Template Instantiation:: Methods for ensuring that exactly one copy of
  41279. each needed template instantiation is emitted.
  41280. * Bound member functions:: You can extract a function pointer to the
  41281. method denoted by a '->*' or '.*' expression.
  41282. * C++ Attributes:: Variable, function, and type attributes for C++ only.
  41283. * Function Multiversioning:: Declaring multiple function versions.
  41284. * Type Traits:: Compiler support for type traits.
  41285. * C++ Concepts:: Improved support for generic programming.
  41286. * Deprecated Features:: Things will disappear from G++.
  41287. * Backwards Compatibility:: Compatibilities with earlier definitions of C++.
  41288. 
  41289. File: gcc.info, Node: C++ Volatiles, Next: Restricted Pointers, Up: C++ Extensions
  41290. 7.1 When is a Volatile C++ Object Accessed?
  41291. ===========================================
  41292. The C++ standard differs from the C standard in its treatment of
  41293. volatile objects. It fails to specify what constitutes a volatile
  41294. access, except to say that C++ should behave in a similar manner to C
  41295. with respect to volatiles, where possible. However, the different
  41296. lvalueness of expressions between C and C++ complicate the behavior.
  41297. G++ behaves the same as GCC for volatile access, *Note Volatiles: C
  41298. Extensions, for a description of GCC's behavior.
  41299. The C and C++ language specifications differ when an object is accessed
  41300. in a void context:
  41301. volatile int *src = SOMEVALUE;
  41302. *src;
  41303. The C++ standard specifies that such expressions do not undergo lvalue
  41304. to rvalue conversion, and that the type of the dereferenced object may
  41305. be incomplete. The C++ standard does not specify explicitly that it is
  41306. lvalue to rvalue conversion that is responsible for causing an access.
  41307. There is reason to believe that it is, because otherwise certain simple
  41308. expressions become undefined. However, because it would surprise most
  41309. programmers, G++ treats dereferencing a pointer to volatile object of
  41310. complete type as GCC would do for an equivalent type in C. When the
  41311. object has incomplete type, G++ issues a warning; if you wish to force
  41312. an error, you must force a conversion to rvalue with, for instance, a
  41313. static cast.
  41314. When using a reference to volatile, G++ does not treat equivalent
  41315. expressions as accesses to volatiles, but instead issues a warning that
  41316. no volatile is accessed. The rationale for this is that otherwise it
  41317. becomes difficult to determine where volatile access occur, and not
  41318. possible to ignore the return value from functions returning volatile
  41319. references. Again, if you wish to force a read, cast the reference to
  41320. an rvalue.
  41321. G++ implements the same behavior as GCC does when assigning to a
  41322. volatile object--there is no reread of the assigned-to object, the
  41323. assigned rvalue is reused. Note that in C++ assignment expressions are
  41324. lvalues, and if used as an lvalue, the volatile object is referred to.
  41325. For instance, VREF refers to VOBJ, as expected, in the following
  41326. example:
  41327. volatile int vobj;
  41328. volatile int &vref = vobj = SOMETHING;
  41329. 
  41330. File: gcc.info, Node: Restricted Pointers, Next: Vague Linkage, Prev: C++ Volatiles, Up: C++ Extensions
  41331. 7.2 Restricting Pointer Aliasing
  41332. ================================
  41333. As with the C front end, G++ understands the C99 feature of restricted
  41334. pointers, specified with the '__restrict__', or '__restrict' type
  41335. qualifier. Because you cannot compile C++ by specifying the '-std=c99'
  41336. language flag, 'restrict' is not a keyword in C++.
  41337. In addition to allowing restricted pointers, you can specify restricted
  41338. references, which indicate that the reference is not aliased in the
  41339. local context.
  41340. void fn (int *__restrict__ rptr, int &__restrict__ rref)
  41341. {
  41342. /* ... */
  41343. }
  41344. In the body of 'fn', RPTR points to an unaliased integer and RREF refers
  41345. to a (different) unaliased integer.
  41346. You may also specify whether a member function's THIS pointer is
  41347. unaliased by using '__restrict__' as a member function qualifier.
  41348. void T::fn () __restrict__
  41349. {
  41350. /* ... */
  41351. }
  41352. Within the body of 'T::fn', THIS has the effective definition 'T
  41353. *__restrict__ const this'. Notice that the interpretation of a
  41354. '__restrict__' member function qualifier is different to that of 'const'
  41355. or 'volatile' qualifier, in that it is applied to the pointer rather
  41356. than the object. This is consistent with other compilers that implement
  41357. restricted pointers.
  41358. As with all outermost parameter qualifiers, '__restrict__' is ignored
  41359. in function definition matching. This means you only need to specify
  41360. '__restrict__' in a function definition, rather than in a function
  41361. prototype as well.
  41362. 
  41363. File: gcc.info, Node: Vague Linkage, Next: C++ Interface, Prev: Restricted Pointers, Up: C++ Extensions
  41364. 7.3 Vague Linkage
  41365. =================
  41366. There are several constructs in C++ that require space in the object
  41367. file but are not clearly tied to a single translation unit. We say that
  41368. these constructs have "vague linkage". Typically such constructs are
  41369. emitted wherever they are needed, though sometimes we can be more
  41370. clever.
  41371. Inline Functions
  41372. Inline functions are typically defined in a header file which can
  41373. be included in many different compilations. Hopefully they can
  41374. usually be inlined, but sometimes an out-of-line copy is necessary,
  41375. if the address of the function is taken or if inlining fails. In
  41376. general, we emit an out-of-line copy in all translation units where
  41377. one is needed. As an exception, we only emit inline virtual
  41378. functions with the vtable, since it always requires a copy.
  41379. Local static variables and string constants used in an inline
  41380. function are also considered to have vague linkage, since they must
  41381. be shared between all inlined and out-of-line instances of the
  41382. function.
  41383. VTables
  41384. C++ virtual functions are implemented in most compilers using a
  41385. lookup table, known as a vtable. The vtable contains pointers to
  41386. the virtual functions provided by a class, and each object of the
  41387. class contains a pointer to its vtable (or vtables, in some
  41388. multiple-inheritance situations). If the class declares any
  41389. non-inline, non-pure virtual functions, the first one is chosen as
  41390. the "key method" for the class, and the vtable is only emitted in
  41391. the translation unit where the key method is defined.
  41392. _Note:_ If the chosen key method is later defined as inline, the
  41393. vtable is still emitted in every translation unit that defines it.
  41394. Make sure that any inline virtuals are declared inline in the class
  41395. body, even if they are not defined there.
  41396. 'type_info' objects
  41397. C++ requires information about types to be written out in order to
  41398. implement 'dynamic_cast', 'typeid' and exception handling. For
  41399. polymorphic classes (classes with virtual functions), the
  41400. 'type_info' object is written out along with the vtable so that
  41401. 'dynamic_cast' can determine the dynamic type of a class object at
  41402. run time. For all other types, we write out the 'type_info' object
  41403. when it is used: when applying 'typeid' to an expression, throwing
  41404. an object, or referring to a type in a catch clause or exception
  41405. specification.
  41406. Template Instantiations
  41407. Most everything in this section also applies to template
  41408. instantiations, but there are other options as well. *Note Where's
  41409. the Template?: Template Instantiation.
  41410. When used with GNU ld version 2.8 or later on an ELF system such as
  41411. GNU/Linux or Solaris 2, or on Microsoft Windows, duplicate copies of
  41412. these constructs will be discarded at link time. This is known as
  41413. COMDAT support.
  41414. On targets that don't support COMDAT, but do support weak symbols, GCC
  41415. uses them. This way one copy overrides all the others, but the unused
  41416. copies still take up space in the executable.
  41417. For targets that do not support either COMDAT or weak symbols, most
  41418. entities with vague linkage are emitted as local symbols to avoid
  41419. duplicate definition errors from the linker. This does not happen for
  41420. local statics in inlines, however, as having multiple copies almost
  41421. certainly breaks things.
  41422. *Note Declarations and Definitions in One Header: C++ Interface, for
  41423. another way to control placement of these constructs.
  41424. 
  41425. File: gcc.info, Node: C++ Interface, Next: Template Instantiation, Prev: Vague Linkage, Up: C++ Extensions
  41426. 7.4 C++ Interface and Implementation Pragmas
  41427. ============================================
  41428. '#pragma interface' and '#pragma implementation' provide the user with a
  41429. way of explicitly directing the compiler to emit entities with vague
  41430. linkage (and debugging information) in a particular translation unit.
  41431. _Note:_ These '#pragma's have been superceded as of GCC 2.7.2 by COMDAT
  41432. support and the "key method" heuristic mentioned in *note Vague
  41433. Linkage::. Using them can actually cause your program to grow due to
  41434. unnecessary out-of-line copies of inline functions.
  41435. '#pragma interface'
  41436. '#pragma interface "SUBDIR/OBJECTS.h"'
  41437. Use this directive in _header files_ that define object classes, to
  41438. save space in most of the object files that use those classes.
  41439. Normally, local copies of certain information (backup copies of
  41440. inline member functions, debugging information, and the internal
  41441. tables that implement virtual functions) must be kept in each
  41442. object file that includes class definitions. You can use this
  41443. pragma to avoid such duplication. When a header file containing
  41444. '#pragma interface' is included in a compilation, this auxiliary
  41445. information is not generated (unless the main input source file
  41446. itself uses '#pragma implementation'). Instead, the object files
  41447. contain references to be resolved at link time.
  41448. The second form of this directive is useful for the case where you
  41449. have multiple headers with the same name in different directories.
  41450. If you use this form, you must specify the same string to '#pragma
  41451. implementation'.
  41452. '#pragma implementation'
  41453. '#pragma implementation "OBJECTS.h"'
  41454. Use this pragma in a _main input file_, when you want full output
  41455. from included header files to be generated (and made globally
  41456. visible). The included header file, in turn, should use '#pragma
  41457. interface'. Backup copies of inline member functions, debugging
  41458. information, and the internal tables used to implement virtual
  41459. functions are all generated in implementation files.
  41460. If you use '#pragma implementation' with no argument, it applies to
  41461. an include file with the same basename(1) as your source file. For
  41462. example, in 'allclass.cc', giving just '#pragma implementation' by
  41463. itself is equivalent to '#pragma implementation "allclass.h"'.
  41464. Use the string argument if you want a single implementation file to
  41465. include code from multiple header files. (You must also use
  41466. '#include' to include the header file; '#pragma implementation'
  41467. only specifies how to use the file--it doesn't actually include
  41468. it.)
  41469. There is no way to split up the contents of a single header file
  41470. into multiple implementation files.
  41471. '#pragma implementation' and '#pragma interface' also have an effect on
  41472. function inlining.
  41473. If you define a class in a header file marked with '#pragma interface',
  41474. the effect on an inline function defined in that class is similar to an
  41475. explicit 'extern' declaration--the compiler emits no code at all to
  41476. define an independent version of the function. Its definition is used
  41477. only for inlining with its callers.
  41478. Conversely, when you include the same header file in a main source file
  41479. that declares it as '#pragma implementation', the compiler emits code
  41480. for the function itself; this defines a version of the function that can
  41481. be found via pointers (or by callers compiled without inlining). If all
  41482. calls to the function can be inlined, you can avoid emitting the
  41483. function by compiling with '-fno-implement-inlines'. If any calls are
  41484. not inlined, you will get linker errors.
  41485. ---------- Footnotes ----------
  41486. (1) A file's "basename" is the name stripped of all leading path
  41487. information and of trailing suffixes, such as '.h' or '.C' or '.cc'.
  41488. 
  41489. File: gcc.info, Node: Template Instantiation, Next: Bound member functions, Prev: C++ Interface, Up: C++ Extensions
  41490. 7.5 Where's the Template?
  41491. =========================
  41492. C++ templates were the first language feature to require more
  41493. intelligence from the environment than was traditionally found on a UNIX
  41494. system. Somehow the compiler and linker have to make sure that each
  41495. template instance occurs exactly once in the executable if it is needed,
  41496. and not at all otherwise. There are two basic approaches to this
  41497. problem, which are referred to as the Borland model and the Cfront
  41498. model.
  41499. Borland model
  41500. Borland C++ solved the template instantiation problem by adding the
  41501. code equivalent of common blocks to their linker; the compiler
  41502. emits template instances in each translation unit that uses them,
  41503. and the linker collapses them together. The advantage of this
  41504. model is that the linker only has to consider the object files
  41505. themselves; there is no external complexity to worry about. The
  41506. disadvantage is that compilation time is increased because the
  41507. template code is being compiled repeatedly. Code written for this
  41508. model tends to include definitions of all templates in the header
  41509. file, since they must be seen to be instantiated.
  41510. Cfront model
  41511. The AT&T C++ translator, Cfront, solved the template instantiation
  41512. problem by creating the notion of a template repository, an
  41513. automatically maintained place where template instances are stored.
  41514. A more modern version of the repository works as follows: As
  41515. individual object files are built, the compiler places any template
  41516. definitions and instantiations encountered in the repository. At
  41517. link time, the link wrapper adds in the objects in the repository
  41518. and compiles any needed instances that were not previously emitted.
  41519. The advantages of this model are more optimal compilation speed and
  41520. the ability to use the system linker; to implement the Borland
  41521. model a compiler vendor also needs to replace the linker. The
  41522. disadvantages are vastly increased complexity, and thus potential
  41523. for error; for some code this can be just as transparent, but in
  41524. practice it can been very difficult to build multiple programs in
  41525. one directory and one program in multiple directories. Code
  41526. written for this model tends to separate definitions of non-inline
  41527. member templates into a separate file, which should be compiled
  41528. separately.
  41529. G++ implements the Borland model on targets where the linker supports
  41530. it, including ELF targets (such as GNU/Linux), Mac OS X and Microsoft
  41531. Windows. Otherwise G++ implements neither automatic model.
  41532. You have the following options for dealing with template
  41533. instantiations:
  41534. 1. Do nothing. Code written for the Borland model works fine, but
  41535. each translation unit contains instances of each of the templates
  41536. it uses. The duplicate instances will be discarded by the linker,
  41537. but in a large program, this can lead to an unacceptable amount of
  41538. code duplication in object files or shared libraries.
  41539. Duplicate instances of a template can be avoided by defining an
  41540. explicit instantiation in one object file, and preventing the
  41541. compiler from doing implicit instantiations in any other object
  41542. files by using an explicit instantiation declaration, using the
  41543. 'extern template' syntax:
  41544. extern template int max (int, int);
  41545. This syntax is defined in the C++ 2011 standard, but has been
  41546. supported by G++ and other compilers since well before 2011.
  41547. Explicit instantiations can be used for the largest or most
  41548. frequently duplicated instances, without having to know exactly
  41549. which other instances are used in the rest of the program. You can
  41550. scatter the explicit instantiations throughout your program,
  41551. perhaps putting them in the translation units where the instances
  41552. are used or the translation units that define the templates
  41553. themselves; you can put all of the explicit instantiations you need
  41554. into one big file; or you can create small files like
  41555. #include "Foo.h"
  41556. #include "Foo.cc"
  41557. template class Foo<int>;
  41558. template ostream& operator <<
  41559. (ostream&, const Foo<int>&);
  41560. for each of the instances you need, and create a template
  41561. instantiation library from those.
  41562. This is the simplest option, but also offers flexibility and
  41563. fine-grained control when necessary. It is also the most portable
  41564. alternative and programs using this approach will work with most
  41565. modern compilers.
  41566. 2. Compile your template-using code with '-frepo'. The compiler
  41567. generates files with the extension '.rpo' listing all of the
  41568. template instantiations used in the corresponding object files that
  41569. could be instantiated there; the link wrapper, 'collect2', then
  41570. updates the '.rpo' files to tell the compiler where to place those
  41571. instantiations and rebuild any affected object files. The
  41572. link-time overhead is negligible after the first pass, as the
  41573. compiler continues to place the instantiations in the same files.
  41574. This can be a suitable option for application code written for the
  41575. Borland model, as it usually just works. Code written for the
  41576. Cfront model needs to be modified so that the template definitions
  41577. are available at one or more points of instantiation; usually this
  41578. is as simple as adding '#include <tmethods.cc>' to the end of each
  41579. template header.
  41580. For library code, if you want the library to provide all of the
  41581. template instantiations it needs, just try to link all of its
  41582. object files together; the link will fail, but cause the
  41583. instantiations to be generated as a side effect. Be warned,
  41584. however, that this may cause conflicts if multiple libraries try to
  41585. provide the same instantiations. For greater control, use explicit
  41586. instantiation as described in the next option.
  41587. 3. Compile your code with '-fno-implicit-templates' to disable the
  41588. implicit generation of template instances, and explicitly
  41589. instantiate all the ones you use. This approach requires more
  41590. knowledge of exactly which instances you need than do the others,
  41591. but it's less mysterious and allows greater control if you want to
  41592. ensure that only the intended instances are used.
  41593. If you are using Cfront-model code, you can probably get away with
  41594. not using '-fno-implicit-templates' when compiling files that don't
  41595. '#include' the member template definitions.
  41596. If you use one big file to do the instantiations, you may want to
  41597. compile it without '-fno-implicit-templates' so you get all of the
  41598. instances required by your explicit instantiations (but not by any
  41599. other files) without having to specify them as well.
  41600. In addition to forward declaration of explicit instantiations (with
  41601. 'extern'), G++ has extended the template instantiation syntax to
  41602. support instantiation of the compiler support data for a template
  41603. class (i.e. the vtable) without instantiating any of its members
  41604. (with 'inline'), and instantiation of only the static data members
  41605. of a template class, without the support data or member functions
  41606. (with 'static'):
  41607. inline template class Foo<int>;
  41608. static template class Foo<int>;
  41609. 
  41610. File: gcc.info, Node: Bound member functions, Next: C++ Attributes, Prev: Template Instantiation, Up: C++ Extensions
  41611. 7.6 Extracting the Function Pointer from a Bound Pointer to Member Function
  41612. ===========================================================================
  41613. In C++, pointer to member functions (PMFs) are implemented using a wide
  41614. pointer of sorts to handle all the possible call mechanisms; the PMF
  41615. needs to store information about how to adjust the 'this' pointer, and
  41616. if the function pointed to is virtual, where to find the vtable, and
  41617. where in the vtable to look for the member function. If you are using
  41618. PMFs in an inner loop, you should really reconsider that decision. If
  41619. that is not an option, you can extract the pointer to the function that
  41620. would be called for a given object/PMF pair and call it directly inside
  41621. the inner loop, to save a bit of time.
  41622. Note that you still pay the penalty for the call through a function
  41623. pointer; on most modern architectures, such a call defeats the branch
  41624. prediction features of the CPU. This is also true of normal virtual
  41625. function calls.
  41626. The syntax for this extension is
  41627. extern A a;
  41628. extern int (A::*fp)();
  41629. typedef int (*fptr)(A *);
  41630. fptr p = (fptr)(a.*fp);
  41631. For PMF constants (i.e. expressions of the form '&Klasse::Member'), no
  41632. object is needed to obtain the address of the function. They can be
  41633. converted to function pointers directly:
  41634. fptr p1 = (fptr)(&A::foo);
  41635. You must specify '-Wno-pmf-conversions' to use this extension.
  41636. 
  41637. File: gcc.info, Node: C++ Attributes, Next: Function Multiversioning, Prev: Bound member functions, Up: C++ Extensions
  41638. 7.7 C++-Specific Variable, Function, and Type Attributes
  41639. ========================================================
  41640. Some attributes only make sense for C++ programs.
  41641. 'abi_tag ("TAG", ...)'
  41642. The 'abi_tag' attribute can be applied to a function, variable, or
  41643. class declaration. It modifies the mangled name of the entity to
  41644. incorporate the tag name, in order to distinguish the function or
  41645. class from an earlier version with a different ABI; perhaps the
  41646. class has changed size, or the function has a different return type
  41647. that is not encoded in the mangled name.
  41648. The attribute can also be applied to an inline namespace, but does
  41649. not affect the mangled name of the namespace; in this case it is
  41650. only used for '-Wabi-tag' warnings and automatic tagging of
  41651. functions and variables. Tagging inline namespaces is generally
  41652. preferable to tagging individual declarations, but the latter is
  41653. sometimes necessary, such as when only certain members of a class
  41654. need to be tagged.
  41655. The argument can be a list of strings of arbitrary length. The
  41656. strings are sorted on output, so the order of the list is
  41657. unimportant.
  41658. A redeclaration of an entity must not add new ABI tags, since doing
  41659. so would change the mangled name.
  41660. The ABI tags apply to a name, so all instantiations and
  41661. specializations of a template have the same tags. The attribute
  41662. will be ignored if applied to an explicit specialization or
  41663. instantiation.
  41664. The '-Wabi-tag' flag enables a warning about a class which does not
  41665. have all the ABI tags used by its subobjects and virtual functions;
  41666. for users with code that needs to coexist with an earlier ABI,
  41667. using this option can help to find all affected types that need to
  41668. be tagged.
  41669. When a type involving an ABI tag is used as the type of a variable
  41670. or return type of a function where that tag is not already present
  41671. in the signature of the function, the tag is automatically applied
  41672. to the variable or function. '-Wabi-tag' also warns about this
  41673. situation; this warning can be avoided by explicitly tagging the
  41674. variable or function or moving it into a tagged inline namespace.
  41675. 'init_priority (PRIORITY)'
  41676. In Standard C++, objects defined at namespace scope are guaranteed
  41677. to be initialized in an order in strict accordance with that of
  41678. their definitions _in a given translation unit_. No guarantee is
  41679. made for initializations across translation units. However, GNU
  41680. C++ allows users to control the order of initialization of objects
  41681. defined at namespace scope with the 'init_priority' attribute by
  41682. specifying a relative PRIORITY, a constant integral expression
  41683. currently bounded between 101 and 65535 inclusive. Lower numbers
  41684. indicate a higher priority.
  41685. In the following example, 'A' would normally be created before 'B',
  41686. but the 'init_priority' attribute reverses that order:
  41687. Some_Class A __attribute__ ((init_priority (2000)));
  41688. Some_Class B __attribute__ ((init_priority (543)));
  41689. Note that the particular values of PRIORITY do not matter; only
  41690. their relative ordering.
  41691. 'warn_unused'
  41692. For C++ types with non-trivial constructors and/or destructors it
  41693. is impossible for the compiler to determine whether a variable of
  41694. this type is truly unused if it is not referenced. This type
  41695. attribute informs the compiler that variables of this type should
  41696. be warned about if they appear to be unused, just like variables of
  41697. fundamental types.
  41698. This attribute is appropriate for types which just represent a
  41699. value, such as 'std::string'; it is not appropriate for types which
  41700. control a resource, such as 'std::lock_guard'.
  41701. This attribute is also accepted in C, but it is unnecessary because
  41702. C does not have constructors or destructors.
  41703. 
  41704. File: gcc.info, Node: Function Multiversioning, Next: Type Traits, Prev: C++ Attributes, Up: C++ Extensions
  41705. 7.8 Function Multiversioning
  41706. ============================
  41707. With the GNU C++ front end, for x86 targets, you may specify multiple
  41708. versions of a function, where each function is specialized for a
  41709. specific target feature. At runtime, the appropriate version of the
  41710. function is automatically executed depending on the characteristics of
  41711. the execution platform. Here is an example.
  41712. __attribute__ ((target ("default")))
  41713. int foo ()
  41714. {
  41715. // The default version of foo.
  41716. return 0;
  41717. }
  41718. __attribute__ ((target ("sse4.2")))
  41719. int foo ()
  41720. {
  41721. // foo version for SSE4.2
  41722. return 1;
  41723. }
  41724. __attribute__ ((target ("arch=atom")))
  41725. int foo ()
  41726. {
  41727. // foo version for the Intel ATOM processor
  41728. return 2;
  41729. }
  41730. __attribute__ ((target ("arch=amdfam10")))
  41731. int foo ()
  41732. {
  41733. // foo version for the AMD Family 0x10 processors.
  41734. return 3;
  41735. }
  41736. int main ()
  41737. {
  41738. int (*p)() = &foo;
  41739. assert ((*p) () == foo ());
  41740. return 0;
  41741. }
  41742. In the above example, four versions of function foo are created. The
  41743. first version of foo with the target attribute "default" is the default
  41744. version. This version gets executed when no other target specific
  41745. version qualifies for execution on a particular platform. A new version
  41746. of foo is created by using the same function signature but with a
  41747. different target string. Function foo is called or a pointer to it is
  41748. taken just like a regular function. GCC takes care of doing the
  41749. dispatching to call the right version at runtime. Refer to the GCC wiki
  41750. on Function Multiversioning
  41751. (http://gcc.gnu.org/wiki/FunctionMultiVersioning) for more details.
  41752. 
  41753. File: gcc.info, Node: Type Traits, Next: C++ Concepts, Prev: Function Multiversioning, Up: C++ Extensions
  41754. 7.9 Type Traits
  41755. ===============
  41756. The C++ front end implements syntactic extensions that allow
  41757. compile-time determination of various characteristics of a type (or of a
  41758. pair of types).
  41759. '__has_nothrow_assign (type)'
  41760. If 'type' is const qualified or is a reference type then the trait
  41761. is false. Otherwise if '__has_trivial_assign (type)' is true then
  41762. the trait is true, else if 'type' is a cv class or union type with
  41763. copy assignment operators that are known not to throw an exception
  41764. then the trait is true, else it is false. Requires: 'type' shall
  41765. be a complete type, (possibly cv-qualified) 'void', or an array of
  41766. unknown bound.
  41767. '__has_nothrow_copy (type)'
  41768. If '__has_trivial_copy (type)' is true then the trait is true, else
  41769. if 'type' is a cv class or union type with copy constructors that
  41770. are known not to throw an exception then the trait is true, else it
  41771. is false. Requires: 'type' shall be a complete type, (possibly
  41772. cv-qualified) 'void', or an array of unknown bound.
  41773. '__has_nothrow_constructor (type)'
  41774. If '__has_trivial_constructor (type)' is true then the trait is
  41775. true, else if 'type' is a cv class or union type (or array thereof)
  41776. with a default constructor that is known not to throw an exception
  41777. then the trait is true, else it is false. Requires: 'type' shall
  41778. be a complete type, (possibly cv-qualified) 'void', or an array of
  41779. unknown bound.
  41780. '__has_trivial_assign (type)'
  41781. If 'type' is const qualified or is a reference type then the trait
  41782. is false. Otherwise if '__is_pod (type)' is true then the trait is
  41783. true, else if 'type' is a cv class or union type with a trivial
  41784. copy assignment ([class.copy]) then the trait is true, else it is
  41785. false. Requires: 'type' shall be a complete type, (possibly
  41786. cv-qualified) 'void', or an array of unknown bound.
  41787. '__has_trivial_copy (type)'
  41788. If '__is_pod (type)' is true or 'type' is a reference type then the
  41789. trait is true, else if 'type' is a cv class or union type with a
  41790. trivial copy constructor ([class.copy]) then the trait is true,
  41791. else it is false. Requires: 'type' shall be a complete type,
  41792. (possibly cv-qualified) 'void', or an array of unknown bound.
  41793. '__has_trivial_constructor (type)'
  41794. If '__is_pod (type)' is true then the trait is true, else if 'type'
  41795. is a cv class or union type (or array thereof) with a trivial
  41796. default constructor ([class.ctor]) then the trait is true, else it
  41797. is false. Requires: 'type' shall be a complete type, (possibly
  41798. cv-qualified) 'void', or an array of unknown bound.
  41799. '__has_trivial_destructor (type)'
  41800. If '__is_pod (type)' is true or 'type' is a reference type then the
  41801. trait is true, else if 'type' is a cv class or union type (or array
  41802. thereof) with a trivial destructor ([class.dtor]) then the trait is
  41803. true, else it is false. Requires: 'type' shall be a complete type,
  41804. (possibly cv-qualified) 'void', or an array of unknown bound.
  41805. '__has_virtual_destructor (type)'
  41806. If 'type' is a class type with a virtual destructor ([class.dtor])
  41807. then the trait is true, else it is false. Requires: 'type' shall
  41808. be a complete type, (possibly cv-qualified) 'void', or an array of
  41809. unknown bound.
  41810. '__is_abstract (type)'
  41811. If 'type' is an abstract class ([class.abstract]) then the trait is
  41812. true, else it is false. Requires: 'type' shall be a complete type,
  41813. (possibly cv-qualified) 'void', or an array of unknown bound.
  41814. '__is_base_of (base_type, derived_type)'
  41815. If 'base_type' is a base class of 'derived_type' ([class.derived])
  41816. then the trait is true, otherwise it is false. Top-level cv
  41817. qualifications of 'base_type' and 'derived_type' are ignored. For
  41818. the purposes of this trait, a class type is considered is own base.
  41819. Requires: if '__is_class (base_type)' and '__is_class
  41820. (derived_type)' are true and 'base_type' and 'derived_type' are not
  41821. the same type (disregarding cv-qualifiers), 'derived_type' shall be
  41822. a complete type. A diagnostic is produced if this requirement is
  41823. not met.
  41824. '__is_class (type)'
  41825. If 'type' is a cv class type, and not a union type
  41826. ([basic.compound]) the trait is true, else it is false.
  41827. '__is_empty (type)'
  41828. If '__is_class (type)' is false then the trait is false. Otherwise
  41829. 'type' is considered empty if and only if: 'type' has no non-static
  41830. data members, or all non-static data members, if any, are
  41831. bit-fields of length 0, and 'type' has no virtual members, and
  41832. 'type' has no virtual base classes, and 'type' has no base classes
  41833. 'base_type' for which '__is_empty (base_type)' is false. Requires:
  41834. 'type' shall be a complete type, (possibly cv-qualified) 'void', or
  41835. an array of unknown bound.
  41836. '__is_enum (type)'
  41837. If 'type' is a cv enumeration type ([basic.compound]) the trait is
  41838. true, else it is false.
  41839. '__is_literal_type (type)'
  41840. If 'type' is a literal type ([basic.types]) the trait is true, else
  41841. it is false. Requires: 'type' shall be a complete type, (possibly
  41842. cv-qualified) 'void', or an array of unknown bound.
  41843. '__is_pod (type)'
  41844. If 'type' is a cv POD type ([basic.types]) then the trait is true,
  41845. else it is false. Requires: 'type' shall be a complete type,
  41846. (possibly cv-qualified) 'void', or an array of unknown bound.
  41847. '__is_polymorphic (type)'
  41848. If 'type' is a polymorphic class ([class.virtual]) then the trait
  41849. is true, else it is false. Requires: 'type' shall be a complete
  41850. type, (possibly cv-qualified) 'void', or an array of unknown bound.
  41851. '__is_standard_layout (type)'
  41852. If 'type' is a standard-layout type ([basic.types]) the trait is
  41853. true, else it is false. Requires: 'type' shall be a complete type,
  41854. (possibly cv-qualified) 'void', or an array of unknown bound.
  41855. '__is_trivial (type)'
  41856. If 'type' is a trivial type ([basic.types]) the trait is true, else
  41857. it is false. Requires: 'type' shall be a complete type, (possibly
  41858. cv-qualified) 'void', or an array of unknown bound.
  41859. '__is_union (type)'
  41860. If 'type' is a cv union type ([basic.compound]) the trait is true,
  41861. else it is false.
  41862. '__underlying_type (type)'
  41863. The underlying type of 'type'. Requires: 'type' shall be an
  41864. enumeration type ([dcl.enum]).
  41865. '__integer_pack (length)'
  41866. When used as the pattern of a pack expansion within a template
  41867. definition, expands to a template argument pack containing integers
  41868. from '0' to 'length-1'. This is provided for efficient
  41869. implementation of 'std::make_integer_sequence'.
  41870. 
  41871. File: gcc.info, Node: C++ Concepts, Next: Deprecated Features, Prev: Type Traits, Up: C++ Extensions
  41872. 7.10 C++ Concepts
  41873. =================
  41874. C++ concepts provide much-improved support for generic programming. In
  41875. particular, they allow the specification of constraints on template
  41876. arguments. The constraints are used to extend the usual overloading and
  41877. partial specialization capabilities of the language, allowing generic
  41878. data structures and algorithms to be "refined" based on their properties
  41879. rather than their type names.
  41880. The following keywords are reserved for concepts.
  41881. 'assumes'
  41882. States an expression as an assumption, and if possible, verifies
  41883. that the assumption is valid. For example, 'assume(n > 0)'.
  41884. 'axiom'
  41885. Introduces an axiom definition. Axioms introduce requirements on
  41886. values.
  41887. 'forall'
  41888. Introduces a universally quantified object in an axiom. For
  41889. example, 'forall (int n) n + 0 == n').
  41890. 'concept'
  41891. Introduces a concept definition. Concepts are sets of syntactic
  41892. and semantic requirements on types and their values.
  41893. 'requires'
  41894. Introduces constraints on template arguments or requirements for a
  41895. member function of a class template.
  41896. The front end also exposes a number of internal mechanism that can be
  41897. used to simplify the writing of type traits. Note that some of these
  41898. traits are likely to be removed in the future.
  41899. '__is_same (type1, type2)'
  41900. A binary type trait: true whenever the type arguments are the same.
  41901. 
  41902. File: gcc.info, Node: Deprecated Features, Next: Backwards Compatibility, Prev: C++ Concepts, Up: C++ Extensions
  41903. 7.11 Deprecated Features
  41904. ========================
  41905. In the past, the GNU C++ compiler was extended to experiment with new
  41906. features, at a time when the C++ language was still evolving. Now that
  41907. the C++ standard is complete, some of those features are superseded by
  41908. superior alternatives. Using the old features might cause a warning in
  41909. some cases that the feature will be dropped in the future. In other
  41910. cases, the feature might be gone already.
  41911. While the list below is not exhaustive, it documents some of the
  41912. options that are now deprecated or have been removed:
  41913. '-fno-for-scope'
  41914. '-ffriend-injection'
  41915. These two options provide compatibility with pre-standard C++.
  41916. *Note Backwards Compatibility::.
  41917. G++ allows a virtual function returning 'void *' to be overridden by
  41918. one returning a different pointer type. This extension to the covariant
  41919. return type rules is now deprecated and will be removed from a future
  41920. version.
  41921. The use of default arguments in function pointers, function typedefs
  41922. and other places where they are not permitted by the standard is
  41923. deprecated and will be removed from a future version of G++.
  41924. G++ allows floating-point literals to appear in integral constant
  41925. expressions, e.g. ' enum E { e = int(2.2 * 3.7) } ' This extension is
  41926. deprecated and will be removed from a future version.
  41927. G++ allows static data members of const floating-point type to be
  41928. declared with an initializer in a class definition. The standard only
  41929. allows initializers for static members of const integral types and const
  41930. enumeration types so this extension has been deprecated and will be
  41931. removed from a future version.
  41932. G++ allows attributes to follow a parenthesized direct initializer,
  41933. e.g. ' int f (0) __attribute__ ((something)); ' This extension has been
  41934. ignored since G++ 3.3 and is deprecated.
  41935. G++ allows anonymous structs and unions to have members that are not
  41936. public non-static data members (i.e. fields). These extensions are
  41937. deprecated.
  41938. 
  41939. File: gcc.info, Node: Backwards Compatibility, Prev: Deprecated Features, Up: C++ Extensions
  41940. 7.12 Backwards Compatibility
  41941. ============================
  41942. Now that there is a definitive ISO standard C++, G++ has a specification
  41943. to adhere to. The C++ language evolved over time, and features that
  41944. used to be acceptable in previous drafts of the standard, such as the
  41945. ARM [Annotated C++ Reference Manual], are no longer accepted. In order
  41946. to allow compilation of C++ written to such drafts, G++ contains some
  41947. backwards compatibilities. _All such backwards compatibility features
  41948. are liable to disappear in future versions of G++._ They should be
  41949. considered deprecated. *Note Deprecated Features::.
  41950. 'For scope'
  41951. If a variable is declared at for scope, it used to remain in scope
  41952. until the end of the scope that contained the for statement (rather
  41953. than just within the for scope). The deprecated '-fno-for-scope'
  41954. option enables this non-standard behavior. Without the option, G++
  41955. retains this, but issues a warning, if such a variable is accessed
  41956. outside the for scope.
  41957. The behavior is deprecated, only available with '-std=c++98'
  41958. '-std=gnu++98' languages and you must use the '-fpermissive' option
  41959. to enable it. The behavior will be removed.
  41960. 'Friend Injection'
  41961. The '-ffriend-injection' option makes injected friends visible to
  41962. regular name lookup, unlike standard C++. This option is
  41963. deprecated and will be removed.
  41964. 'Implicit C language'
  41965. Old C system header files did not contain an 'extern "C" {...}'
  41966. scope to set the language. On such systems, all header files are
  41967. implicitly scoped inside a C language scope. Also, an empty
  41968. prototype '()' is treated as an unspecified number of arguments,
  41969. rather than no arguments, as C++ demands.
  41970. 
  41971. File: gcc.info, Node: Objective-C, Next: Compatibility, Prev: C++ Extensions, Up: Top
  41972. 8 GNU Objective-C Features
  41973. **************************
  41974. This document is meant to describe some of the GNU Objective-C features.
  41975. It is not intended to teach you Objective-C. There are several resources
  41976. on the Internet that present the language.
  41977. * Menu:
  41978. * GNU Objective-C runtime API::
  41979. * Executing code before main::
  41980. * Type encoding::
  41981. * Garbage Collection::
  41982. * Constant string objects::
  41983. * compatibility_alias::
  41984. * Exceptions::
  41985. * Synchronization::
  41986. * Fast enumeration::
  41987. * Messaging with the GNU Objective-C runtime::
  41988. 
  41989. File: gcc.info, Node: GNU Objective-C runtime API, Next: Executing code before main, Up: Objective-C
  41990. 8.1 GNU Objective-C Runtime API
  41991. ===============================
  41992. This section is specific for the GNU Objective-C runtime. If you are
  41993. using a different runtime, you can skip it.
  41994. The GNU Objective-C runtime provides an API that allows you to interact
  41995. with the Objective-C runtime system, querying the live runtime
  41996. structures and even manipulating them. This allows you for example to
  41997. inspect and navigate classes, methods and protocols; to define new
  41998. classes or new methods, and even to modify existing classes or
  41999. protocols.
  42000. If you are using a "Foundation" library such as GNUstep-Base, this
  42001. library will provide you with a rich set of functionality to do most of
  42002. the inspection tasks, and you probably will only need direct access to
  42003. the GNU Objective-C runtime API to define new classes or methods.
  42004. * Menu:
  42005. * Modern GNU Objective-C runtime API::
  42006. * Traditional GNU Objective-C runtime API::
  42007. 
  42008. File: gcc.info, Node: Modern GNU Objective-C runtime API, Next: Traditional GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  42009. 8.1.1 Modern GNU Objective-C Runtime API
  42010. ----------------------------------------
  42011. The GNU Objective-C runtime provides an API which is similar to the one
  42012. provided by the "Objective-C 2.0" Apple/NeXT Objective-C runtime. The
  42013. API is documented in the public header files of the GNU Objective-C
  42014. runtime:
  42015. * 'objc/objc.h': this is the basic Objective-C header file, defining
  42016. the basic Objective-C types such as 'id', 'Class' and 'BOOL'. You
  42017. have to include this header to do almost anything with Objective-C.
  42018. * 'objc/runtime.h': this header declares most of the public runtime
  42019. API functions allowing you to inspect and manipulate the
  42020. Objective-C runtime data structures. These functions are fairly
  42021. standardized across Objective-C runtimes and are almost identical
  42022. to the Apple/NeXT Objective-C runtime ones. It does not declare
  42023. functions in some specialized areas (constructing and forwarding
  42024. message invocations, threading) which are in the other headers
  42025. below. You have to include 'objc/objc.h' and 'objc/runtime.h' to
  42026. use any of the functions, such as 'class_getName()', declared in
  42027. 'objc/runtime.h'.
  42028. * 'objc/message.h': this header declares public functions used to
  42029. construct, deconstruct and forward message invocations. Because
  42030. messaging is done in quite a different way on different runtimes,
  42031. functions in this header are specific to the GNU Objective-C
  42032. runtime implementation.
  42033. * 'objc/objc-exception.h': this header declares some public functions
  42034. related to Objective-C exceptions. For example functions in this
  42035. header allow you to throw an Objective-C exception from plain C/C++
  42036. code.
  42037. * 'objc/objc-sync.h': this header declares some public functions
  42038. related to the Objective-C '@synchronized()' syntax, allowing you
  42039. to emulate an Objective-C '@synchronized()' block in plain C/C++
  42040. code.
  42041. * 'objc/thr.h': this header declares a public runtime API threading
  42042. layer that is only provided by the GNU Objective-C runtime. It
  42043. declares functions such as 'objc_mutex_lock()', which provide a
  42044. platform-independent set of threading functions.
  42045. The header files contain detailed documentation for each function in
  42046. the GNU Objective-C runtime API.
  42047. 
  42048. File: gcc.info, Node: Traditional GNU Objective-C runtime API, Prev: Modern GNU Objective-C runtime API, Up: GNU Objective-C runtime API
  42049. 8.1.2 Traditional GNU Objective-C Runtime API
  42050. ---------------------------------------------
  42051. The GNU Objective-C runtime used to provide a different API, which we
  42052. call the "traditional" GNU Objective-C runtime API. Functions belonging
  42053. to this API are easy to recognize because they use a different naming
  42054. convention, such as 'class_get_super_class()' (traditional API) instead
  42055. of 'class_getSuperclass()' (modern API). Software using this API
  42056. includes the file 'objc/objc-api.h' where it is declared.
  42057. Starting with GCC 4.7.0, the traditional GNU runtime API is no longer
  42058. available.
  42059. 
  42060. File: gcc.info, Node: Executing code before main, Next: Type encoding, Prev: GNU Objective-C runtime API, Up: Objective-C
  42061. 8.2 '+load': Executing Code before 'main'
  42062. =========================================
  42063. This section is specific for the GNU Objective-C runtime. If you are
  42064. using a different runtime, you can skip it.
  42065. The GNU Objective-C runtime provides a way that allows you to execute
  42066. code before the execution of the program enters the 'main' function.
  42067. The code is executed on a per-class and a per-category basis, through a
  42068. special class method '+load'.
  42069. This facility is very useful if you want to initialize global variables
  42070. which can be accessed by the program directly, without sending a message
  42071. to the class first. The usual way to initialize global variables, in
  42072. the '+initialize' method, might not be useful because '+initialize' is
  42073. only called when the first message is sent to a class object, which in
  42074. some cases could be too late.
  42075. Suppose for example you have a 'FileStream' class that declares
  42076. 'Stdin', 'Stdout' and 'Stderr' as global variables, like below:
  42077. FileStream *Stdin = nil;
  42078. FileStream *Stdout = nil;
  42079. FileStream *Stderr = nil;
  42080. @implementation FileStream
  42081. + (void)initialize
  42082. {
  42083. Stdin = [[FileStream new] initWithFd:0];
  42084. Stdout = [[FileStream new] initWithFd:1];
  42085. Stderr = [[FileStream new] initWithFd:2];
  42086. }
  42087. /* Other methods here */
  42088. @end
  42089. In this example, the initialization of 'Stdin', 'Stdout' and 'Stderr'
  42090. in '+initialize' occurs too late. The programmer can send a message to
  42091. one of these objects before the variables are actually initialized, thus
  42092. sending messages to the 'nil' object. The '+initialize' method which
  42093. actually initializes the global variables is not invoked until the first
  42094. message is sent to the class object. The solution would require these
  42095. variables to be initialized just before entering 'main'.
  42096. The correct solution of the above problem is to use the '+load' method
  42097. instead of '+initialize':
  42098. @implementation FileStream
  42099. + (void)load
  42100. {
  42101. Stdin = [[FileStream new] initWithFd:0];
  42102. Stdout = [[FileStream new] initWithFd:1];
  42103. Stderr = [[FileStream new] initWithFd:2];
  42104. }
  42105. /* Other methods here */
  42106. @end
  42107. The '+load' is a method that is not overridden by categories. If a
  42108. class and a category of it both implement '+load', both methods are
  42109. invoked. This allows some additional initializations to be performed in
  42110. a category.
  42111. This mechanism is not intended to be a replacement for '+initialize'.
  42112. You should be aware of its limitations when you decide to use it instead
  42113. of '+initialize'.
  42114. * Menu:
  42115. * What you can and what you cannot do in +load::
  42116. 
  42117. File: gcc.info, Node: What you can and what you cannot do in +load, Up: Executing code before main
  42118. 8.2.1 What You Can and Cannot Do in '+load'
  42119. -------------------------------------------
  42120. '+load' is to be used only as a last resort. Because it is executed
  42121. very early, most of the Objective-C runtime machinery will not be ready
  42122. when '+load' is executed; hence '+load' works best for executing C code
  42123. that is independent on the Objective-C runtime.
  42124. The '+load' implementation in the GNU runtime guarantees you the
  42125. following things:
  42126. * you can write whatever C code you like;
  42127. * you can allocate and send messages to objects whose class is
  42128. implemented in the same file;
  42129. * the '+load' implementation of all super classes of a class are
  42130. executed before the '+load' of that class is executed;
  42131. * the '+load' implementation of a class is executed before the
  42132. '+load' implementation of any category.
  42133. In particular, the following things, even if they can work in a
  42134. particular case, are not guaranteed:
  42135. * allocation of or sending messages to arbitrary objects;
  42136. * allocation of or sending messages to objects whose classes have a
  42137. category implemented in the same file;
  42138. * sending messages to Objective-C constant strings ('@"this is a
  42139. constant string"');
  42140. You should make no assumptions about receiving '+load' in sibling
  42141. classes when you write '+load' of a class. The order in which sibling
  42142. classes receive '+load' is not guaranteed.
  42143. The order in which '+load' and '+initialize' are called could be
  42144. problematic if this matters. If you don't allocate objects inside
  42145. '+load', it is guaranteed that '+load' is called before '+initialize'.
  42146. If you create an object inside '+load' the '+initialize' method of
  42147. object's class is invoked even if '+load' was not invoked. Note if you
  42148. explicitly call '+load' on a class, '+initialize' will be called first.
  42149. To avoid possible problems try to implement only one of these methods.
  42150. The '+load' method is also invoked when a bundle is dynamically loaded
  42151. into your running program. This happens automatically without any
  42152. intervening operation from you. When you write bundles and you need to
  42153. write '+load' you can safely create and send messages to objects whose
  42154. classes already exist in the running program. The same restrictions as
  42155. above apply to classes defined in bundle.
  42156. 
  42157. File: gcc.info, Node: Type encoding, Next: Garbage Collection, Prev: Executing code before main, Up: Objective-C
  42158. 8.3 Type Encoding
  42159. =================
  42160. This is an advanced section. Type encodings are used extensively by the
  42161. compiler and by the runtime, but you generally do not need to know about
  42162. them to use Objective-C.
  42163. The Objective-C compiler generates type encodings for all the types.
  42164. These type encodings are used at runtime to find out information about
  42165. selectors and methods and about objects and classes.
  42166. The types are encoded in the following way:
  42167. '_Bool' 'B'
  42168. 'char' 'c'
  42169. 'unsigned char' 'C'
  42170. 'short' 's'
  42171. 'unsigned short' 'S'
  42172. 'int' 'i'
  42173. 'unsigned int' 'I'
  42174. 'long' 'l'
  42175. 'unsigned long' 'L'
  42176. 'long long' 'q'
  42177. 'unsigned long 'Q'
  42178. long'
  42179. 'float' 'f'
  42180. 'double' 'd'
  42181. 'long double' 'D'
  42182. 'void' 'v'
  42183. 'id' '@'
  42184. 'Class' '#'
  42185. 'SEL' ':'
  42186. 'char*' '*'
  42187. 'enum' an 'enum' is encoded exactly as the integer type
  42188. that the compiler uses for it, which depends on the
  42189. enumeration values. Often the compiler users
  42190. 'unsigned int', which is then encoded as 'I'.
  42191. unknown type '?'
  42192. Complex types 'j' followed by the inner type. For example
  42193. '_Complex double' is encoded as "jd".
  42194. bit-fields 'b' followed by the starting position of the
  42195. bit-field, the type of the bit-field and the size of
  42196. the bit-field (the bit-fields encoding was changed
  42197. from the NeXT's compiler encoding, see below)
  42198. The encoding of bit-fields has changed to allow bit-fields to be
  42199. properly handled by the runtime functions that compute sizes and
  42200. alignments of types that contain bit-fields. The previous encoding
  42201. contained only the size of the bit-field. Using only this information
  42202. it is not possible to reliably compute the size occupied by the
  42203. bit-field. This is very important in the presence of the Boehm's
  42204. garbage collector because the objects are allocated using the typed
  42205. memory facility available in this collector. The typed memory
  42206. allocation requires information about where the pointers are located
  42207. inside the object.
  42208. The position in the bit-field is the position, counting in bits, of the
  42209. bit closest to the beginning of the structure.
  42210. The non-atomic types are encoded as follows:
  42211. pointers '^' followed by the pointed type.
  42212. arrays '[' followed by the number of elements in the array
  42213. followed by the type of the elements followed by ']'
  42214. structures '{' followed by the name of the structure (or '?' if the
  42215. structure is unnamed), the '=' sign, the type of the
  42216. members and by '}'
  42217. unions '(' followed by the name of the structure (or '?' if the
  42218. union is unnamed), the '=' sign, the type of the members
  42219. followed by ')'
  42220. vectors '![' followed by the vector_size (the number of bytes
  42221. composing the vector) followed by a comma, followed by
  42222. the alignment (in bytes) of the vector, followed by the
  42223. type of the elements followed by ']'
  42224. Here are some types and their encodings, as they are generated by the
  42225. compiler on an i386 machine:
  42226. Objective-C type Compiler encoding
  42227. int a[10]; '[10i]'
  42228. struct { '{?=i[3f]b128i3b131i2c}'
  42229. int i;
  42230. float f[3];
  42231. int a:3;
  42232. int b:2;
  42233. char c;
  42234. }
  42235. int a __attribute__ ((vector_size (16)));'![16,16i]' (alignment
  42236. depends on the machine)
  42237. In addition to the types the compiler also encodes the type specifiers.
  42238. The table below describes the encoding of the current Objective-C type
  42239. specifiers:
  42240. Specifier Encoding
  42241. 'const' 'r'
  42242. 'in' 'n'
  42243. 'inout' 'N'
  42244. 'out' 'o'
  42245. 'bycopy' 'O'
  42246. 'byref' 'R'
  42247. 'oneway' 'V'
  42248. The type specifiers are encoded just before the type. Unlike types
  42249. however, the type specifiers are only encoded when they appear in method
  42250. argument types.
  42251. Note how 'const' interacts with pointers:
  42252. Objective-C type Compiler encoding
  42253. const int 'ri'
  42254. const int* '^ri'
  42255. int *const 'r^i'
  42256. 'const int*' is a pointer to a 'const int', and so is encoded as '^ri'.
  42257. 'int* const', instead, is a 'const' pointer to an 'int', and so is
  42258. encoded as 'r^i'.
  42259. Finally, there is a complication when encoding 'const char *' versus
  42260. 'char * const'. Because 'char *' is encoded as '*' and not as '^c',
  42261. there is no way to express the fact that 'r' applies to the pointer or
  42262. to the pointee.
  42263. Hence, it is assumed as a convention that 'r*' means 'const char *'
  42264. (since it is what is most often meant), and there is no way to encode
  42265. 'char *const'. 'char *const' would simply be encoded as '*', and the
  42266. 'const' is lost.
  42267. * Menu:
  42268. * Legacy type encoding::
  42269. * @encode::
  42270. * Method signatures::
  42271. 
  42272. File: gcc.info, Node: Legacy type encoding, Next: @encode, Up: Type encoding
  42273. 8.3.1 Legacy Type Encoding
  42274. --------------------------
  42275. Unfortunately, historically GCC used to have a number of bugs in its
  42276. encoding code. The NeXT runtime expects GCC to emit type encodings in
  42277. this historical format (compatible with GCC-3.3), so when using the NeXT
  42278. runtime, GCC will introduce on purpose a number of incorrect encodings:
  42279. * the read-only qualifier of the pointee gets emitted before the '^'.
  42280. The read-only qualifier of the pointer itself gets ignored, unless
  42281. it is a typedef. Also, the 'r' is only emitted for the outermost
  42282. type.
  42283. * 32-bit longs are encoded as 'l' or 'L', but not always. For
  42284. typedefs, the compiler uses 'i' or 'I' instead if encoding a struct
  42285. field or a pointer.
  42286. * 'enum's are always encoded as 'i' (int) even if they are actually
  42287. unsigned or long.
  42288. In addition to that, the NeXT runtime uses a different encoding for
  42289. bitfields. It encodes them as 'b' followed by the size, without a bit
  42290. offset or the underlying field type.
  42291. 
  42292. File: gcc.info, Node: @encode, Next: Method signatures, Prev: Legacy type encoding, Up: Type encoding
  42293. 8.3.2 '@encode'
  42294. ---------------
  42295. GNU Objective-C supports the '@encode' syntax that allows you to create
  42296. a type encoding from a C/Objective-C type. For example, '@encode(int)'
  42297. is compiled by the compiler into '"i"'.
  42298. '@encode' does not support type qualifiers other than 'const'. For
  42299. example, '@encode(const char*)' is valid and is compiled into '"r*"',
  42300. while '@encode(bycopy char *)' is invalid and will cause a compilation
  42301. error.
  42302. 
  42303. File: gcc.info, Node: Method signatures, Prev: @encode, Up: Type encoding
  42304. 8.3.3 Method Signatures
  42305. -----------------------
  42306. This section documents the encoding of method types, which is rarely
  42307. needed to use Objective-C. You should skip it at a first reading; the
  42308. runtime provides functions that will work on methods and can walk
  42309. through the list of parameters and interpret them for you. These
  42310. functions are part of the public "API" and are the preferred way to
  42311. interact with method signatures from user code.
  42312. But if you need to debug a problem with method signatures and need to
  42313. know how they are implemented (i.e., the "ABI"), read on.
  42314. Methods have their "signature" encoded and made available to the
  42315. runtime. The "signature" encodes all the information required to
  42316. dynamically build invocations of the method at runtime: return type and
  42317. arguments.
  42318. The "signature" is a null-terminated string, composed of the following:
  42319. * The return type, including type qualifiers. For example, a method
  42320. returning 'int' would have 'i' here.
  42321. * The total size (in bytes) required to pass all the parameters.
  42322. This includes the two hidden parameters (the object 'self' and the
  42323. method selector '_cmd').
  42324. * Each argument, with the type encoding, followed by the offset (in
  42325. bytes) of the argument in the list of parameters.
  42326. For example, a method with no arguments and returning 'int' would have
  42327. the signature 'i8@0:4' if the size of a pointer is 4. The signature is
  42328. interpreted as follows: the 'i' is the return type (an 'int'), the '8'
  42329. is the total size of the parameters in bytes (two pointers each of size
  42330. 4), the '@0' is the first parameter (an object at byte offset '0') and
  42331. ':4' is the second parameter (a 'SEL' at byte offset '4').
  42332. You can easily find more examples by running the "strings" program on
  42333. an Objective-C object file compiled by GCC. You'll see a lot of strings
  42334. that look very much like 'i8@0:4'. They are signatures of Objective-C
  42335. methods.
  42336. 
  42337. File: gcc.info, Node: Garbage Collection, Next: Constant string objects, Prev: Type encoding, Up: Objective-C
  42338. 8.4 Garbage Collection
  42339. ======================
  42340. This section is specific for the GNU Objective-C runtime. If you are
  42341. using a different runtime, you can skip it.
  42342. Support for garbage collection with the GNU runtime has been added by
  42343. using a powerful conservative garbage collector, known as the
  42344. Boehm-Demers-Weiser conservative garbage collector.
  42345. To enable the support for it you have to configure the compiler using
  42346. an additional argument, '--enable-objc-gc'. This will build the
  42347. boehm-gc library, and build an additional runtime library which has
  42348. several enhancements to support the garbage collector. The new library
  42349. has a new name, 'libobjc_gc.a' to not conflict with the
  42350. non-garbage-collected library.
  42351. When the garbage collector is used, the objects are allocated using the
  42352. so-called typed memory allocation mechanism available in the
  42353. Boehm-Demers-Weiser collector. This mode requires precise information
  42354. on where pointers are located inside objects. This information is
  42355. computed once per class, immediately after the class has been
  42356. initialized.
  42357. There is a new runtime function 'class_ivar_set_gcinvisible()' which
  42358. can be used to declare a so-called "weak pointer" reference. Such a
  42359. pointer is basically hidden for the garbage collector; this can be
  42360. useful in certain situations, especially when you want to keep track of
  42361. the allocated objects, yet allow them to be collected. This kind of
  42362. pointers can only be members of objects, you cannot declare a global
  42363. pointer as a weak reference. Every type which is a pointer type can be
  42364. declared a weak pointer, including 'id', 'Class' and 'SEL'.
  42365. Here is an example of how to use this feature. Suppose you want to
  42366. implement a class whose instances hold a weak pointer reference; the
  42367. following class does this:
  42368. @interface WeakPointer : Object
  42369. {
  42370. const void* weakPointer;
  42371. }
  42372. - initWithPointer:(const void*)p;
  42373. - (const void*)weakPointer;
  42374. @end
  42375. @implementation WeakPointer
  42376. + (void)initialize
  42377. {
  42378. if (self == objc_lookUpClass ("WeakPointer"))
  42379. class_ivar_set_gcinvisible (self, "weakPointer", YES);
  42380. }
  42381. - initWithPointer:(const void*)p
  42382. {
  42383. weakPointer = p;
  42384. return self;
  42385. }
  42386. - (const void*)weakPointer
  42387. {
  42388. return weakPointer;
  42389. }
  42390. @end
  42391. Weak pointers are supported through a new type character specifier
  42392. represented by the '!' character. The 'class_ivar_set_gcinvisible()'
  42393. function adds or removes this specifier to the string type description
  42394. of the instance variable named as argument.
  42395. 
  42396. File: gcc.info, Node: Constant string objects, Next: compatibility_alias, Prev: Garbage Collection, Up: Objective-C
  42397. 8.5 Constant String Objects
  42398. ===========================
  42399. GNU Objective-C provides constant string objects that are generated
  42400. directly by the compiler. You declare a constant string object by
  42401. prefixing a C constant string with the character '@':
  42402. id myString = @"this is a constant string object";
  42403. The constant string objects are by default instances of the
  42404. 'NXConstantString' class which is provided by the GNU Objective-C
  42405. runtime. To get the definition of this class you must include the
  42406. 'objc/NXConstStr.h' header file.
  42407. User defined libraries may want to implement their own constant string
  42408. class. To be able to support them, the GNU Objective-C compiler
  42409. provides a new command line options
  42410. '-fconstant-string-class=CLASS-NAME'. The provided class should adhere
  42411. to a strict structure, the same as 'NXConstantString''s structure:
  42412. @interface MyConstantStringClass
  42413. {
  42414. Class isa;
  42415. char *c_string;
  42416. unsigned int len;
  42417. }
  42418. @end
  42419. 'NXConstantString' inherits from 'Object'; user class libraries may
  42420. choose to inherit the customized constant string class from a different
  42421. class than 'Object'. There is no requirement in the methods the
  42422. constant string class has to implement, but the final ivar layout of the
  42423. class must be the compatible with the given structure.
  42424. When the compiler creates the statically allocated constant string
  42425. object, the 'c_string' field will be filled by the compiler with the
  42426. string; the 'length' field will be filled by the compiler with the
  42427. string length; the 'isa' pointer will be filled with 'NULL' by the
  42428. compiler, and it will later be fixed up automatically at runtime by the
  42429. GNU Objective-C runtime library to point to the class which was set by
  42430. the '-fconstant-string-class' option when the object file is loaded (if
  42431. you wonder how it works behind the scenes, the name of the class to use,
  42432. and the list of static objects to fixup, are stored by the compiler in
  42433. the object file in a place where the GNU runtime library will find them
  42434. at runtime).
  42435. As a result, when a file is compiled with the '-fconstant-string-class'
  42436. option, all the constant string objects will be instances of the class
  42437. specified as argument to this option. It is possible to have multiple
  42438. compilation units referring to different constant string classes,
  42439. neither the compiler nor the linker impose any restrictions in doing
  42440. this.
  42441. 
  42442. File: gcc.info, Node: compatibility_alias, Next: Exceptions, Prev: Constant string objects, Up: Objective-C
  42443. 8.6 'compatibility_alias'
  42444. =========================
  42445. The keyword '@compatibility_alias' allows you to define a class name as
  42446. equivalent to another class name. For example:
  42447. @compatibility_alias WOApplication GSWApplication;
  42448. tells the compiler that each time it encounters 'WOApplication' as a
  42449. class name, it should replace it with 'GSWApplication' (that is,
  42450. 'WOApplication' is just an alias for 'GSWApplication').
  42451. There are some constraints on how this can be used--
  42452. * 'WOApplication' (the alias) must not be an existing class;
  42453. * 'GSWApplication' (the real class) must be an existing class.
  42454. 
  42455. File: gcc.info, Node: Exceptions, Next: Synchronization, Prev: compatibility_alias, Up: Objective-C
  42456. 8.7 Exceptions
  42457. ==============
  42458. GNU Objective-C provides exception support built into the language, as
  42459. in the following example:
  42460. @try {
  42461. ...
  42462. @throw expr;
  42463. ...
  42464. }
  42465. @catch (AnObjCClass *exc) {
  42466. ...
  42467. @throw expr;
  42468. ...
  42469. @throw;
  42470. ...
  42471. }
  42472. @catch (AnotherClass *exc) {
  42473. ...
  42474. }
  42475. @catch (id allOthers) {
  42476. ...
  42477. }
  42478. @finally {
  42479. ...
  42480. @throw expr;
  42481. ...
  42482. }
  42483. The '@throw' statement may appear anywhere in an Objective-C or
  42484. Objective-C++ program; when used inside of a '@catch' block, the
  42485. '@throw' may appear without an argument (as shown above), in which case
  42486. the object caught by the '@catch' will be rethrown.
  42487. Note that only (pointers to) Objective-C objects may be thrown and
  42488. caught using this scheme. When an object is thrown, it will be caught
  42489. by the nearest '@catch' clause capable of handling objects of that type,
  42490. analogously to how 'catch' blocks work in C++ and Java. A '@catch(id
  42491. ...)' clause (as shown above) may also be provided to catch any and all
  42492. Objective-C exceptions not caught by previous '@catch' clauses (if any).
  42493. The '@finally' clause, if present, will be executed upon exit from the
  42494. immediately preceding '@try ... @catch' section. This will happen
  42495. regardless of whether any exceptions are thrown, caught or rethrown
  42496. inside the '@try ... @catch' section, analogously to the behavior of the
  42497. 'finally' clause in Java.
  42498. There are several caveats to using the new exception mechanism:
  42499. * The '-fobjc-exceptions' command line option must be used when
  42500. compiling Objective-C files that use exceptions.
  42501. * With the GNU runtime, exceptions are always implemented as "native"
  42502. exceptions and it is recommended that the '-fexceptions' and
  42503. '-shared-libgcc' options are used when linking.
  42504. * With the NeXT runtime, although currently designed to be binary
  42505. compatible with 'NS_HANDLER'-style idioms provided by the
  42506. 'NSException' class, the new exceptions can only be used on Mac OS
  42507. X 10.3 (Panther) and later systems, due to additional functionality
  42508. needed in the NeXT Objective-C runtime.
  42509. * As mentioned above, the new exceptions do not support handling
  42510. types other than Objective-C objects. Furthermore, when used from
  42511. Objective-C++, the Objective-C exception model does not
  42512. interoperate with C++ exceptions at this time. This means you
  42513. cannot '@throw' an exception from Objective-C and 'catch' it in
  42514. C++, or vice versa (i.e., 'throw ... @catch').
  42515. 
  42516. File: gcc.info, Node: Synchronization, Next: Fast enumeration, Prev: Exceptions, Up: Objective-C
  42517. 8.8 Synchronization
  42518. ===================
  42519. GNU Objective-C provides support for synchronized blocks:
  42520. @synchronized (ObjCClass *guard) {
  42521. ...
  42522. }
  42523. Upon entering the '@synchronized' block, a thread of execution shall
  42524. first check whether a lock has been placed on the corresponding 'guard'
  42525. object by another thread. If it has, the current thread shall wait
  42526. until the other thread relinquishes its lock. Once 'guard' becomes
  42527. available, the current thread will place its own lock on it, execute the
  42528. code contained in the '@synchronized' block, and finally relinquish the
  42529. lock (thereby making 'guard' available to other threads).
  42530. Unlike Java, Objective-C does not allow for entire methods to be marked
  42531. '@synchronized'. Note that throwing exceptions out of '@synchronized'
  42532. blocks is allowed, and will cause the guarding object to be unlocked
  42533. properly.
  42534. Because of the interactions between synchronization and exception
  42535. handling, you can only use '@synchronized' when compiling with
  42536. exceptions enabled, that is with the command line option
  42537. '-fobjc-exceptions'.
  42538. 
  42539. File: gcc.info, Node: Fast enumeration, Next: Messaging with the GNU Objective-C runtime, Prev: Synchronization, Up: Objective-C
  42540. 8.9 Fast Enumeration
  42541. ====================
  42542. * Menu:
  42543. * Using fast enumeration::
  42544. * c99-like fast enumeration syntax::
  42545. * Fast enumeration details::
  42546. * Fast enumeration protocol::
  42547. 
  42548. File: gcc.info, Node: Using fast enumeration, Next: c99-like fast enumeration syntax, Up: Fast enumeration
  42549. 8.9.1 Using Fast Enumeration
  42550. ----------------------------
  42551. GNU Objective-C provides support for the fast enumeration syntax:
  42552. id array = ...;
  42553. id object;
  42554. for (object in array)
  42555. {
  42556. /* Do something with 'object' */
  42557. }
  42558. 'array' needs to be an Objective-C object (usually a collection object,
  42559. for example an array, a dictionary or a set) which implements the "Fast
  42560. Enumeration Protocol" (see below). If you are using a Foundation
  42561. library such as GNUstep Base or Apple Cocoa Foundation, all collection
  42562. objects in the library implement this protocol and can be used in this
  42563. way.
  42564. The code above would iterate over all objects in 'array'. For each of
  42565. them, it assigns it to 'object', then executes the 'Do something with
  42566. 'object'' statements.
  42567. Here is a fully worked-out example using a Foundation library (which
  42568. provides the implementation of 'NSArray', 'NSString' and 'NSLog'):
  42569. NSArray *array = [NSArray arrayWithObjects: @"1", @"2", @"3", nil];
  42570. NSString *object;
  42571. for (object in array)
  42572. NSLog (@"Iterating over %@", object);
  42573. 
  42574. File: gcc.info, Node: c99-like fast enumeration syntax, Next: Fast enumeration details, Prev: Using fast enumeration, Up: Fast enumeration
  42575. 8.9.2 C99-Like Fast Enumeration Syntax
  42576. --------------------------------------
  42577. A c99-like declaration syntax is also allowed:
  42578. id array = ...;
  42579. for (id object in array)
  42580. {
  42581. /* Do something with 'object' */
  42582. }
  42583. this is completely equivalent to:
  42584. id array = ...;
  42585. {
  42586. id object;
  42587. for (object in array)
  42588. {
  42589. /* Do something with 'object' */
  42590. }
  42591. }
  42592. but can save some typing.
  42593. Note that the option '-std=c99' is not required to allow this syntax in
  42594. Objective-C.
  42595. 
  42596. File: gcc.info, Node: Fast enumeration details, Next: Fast enumeration protocol, Prev: c99-like fast enumeration syntax, Up: Fast enumeration
  42597. 8.9.3 Fast Enumeration Details
  42598. ------------------------------
  42599. Here is a more technical description with the gory details. Consider
  42600. the code
  42601. for (OBJECT EXPRESSION in COLLECTION EXPRESSION)
  42602. {
  42603. STATEMENTS
  42604. }
  42605. here is what happens when you run it:
  42606. * 'COLLECTION EXPRESSION' is evaluated exactly once and the result is
  42607. used as the collection object to iterate over. This means it is
  42608. safe to write code such as 'for (object in [NSDictionary
  42609. keyEnumerator]) ...'.
  42610. * the iteration is implemented by the compiler by repeatedly getting
  42611. batches of objects from the collection object using the fast
  42612. enumeration protocol (see below), then iterating over all objects
  42613. in the batch. This is faster than a normal enumeration where
  42614. objects are retrieved one by one (hence the name "fast
  42615. enumeration").
  42616. * if there are no objects in the collection, then 'OBJECT EXPRESSION'
  42617. is set to 'nil' and the loop immediately terminates.
  42618. * if there are objects in the collection, then for each object in the
  42619. collection (in the order they are returned) 'OBJECT EXPRESSION' is
  42620. set to the object, then 'STATEMENTS' are executed.
  42621. * 'STATEMENTS' can contain 'break' and 'continue' commands, which
  42622. will abort the iteration or skip to the next loop iteration as
  42623. expected.
  42624. * when the iteration ends because there are no more objects to
  42625. iterate over, 'OBJECT EXPRESSION' is set to 'nil'. This allows you
  42626. to determine whether the iteration finished because a 'break'
  42627. command was used (in which case 'OBJECT EXPRESSION' will remain set
  42628. to the last object that was iterated over) or because it iterated
  42629. over all the objects (in which case 'OBJECT EXPRESSION' will be set
  42630. to 'nil').
  42631. * 'STATEMENTS' must not make any changes to the collection object; if
  42632. they do, it is a hard error and the fast enumeration terminates by
  42633. invoking 'objc_enumerationMutation', a runtime function that
  42634. normally aborts the program but which can be customized by
  42635. Foundation libraries via 'objc_set_mutation_handler' to do
  42636. something different, such as raising an exception.
  42637. 
  42638. File: gcc.info, Node: Fast enumeration protocol, Prev: Fast enumeration details, Up: Fast enumeration
  42639. 8.9.4 Fast Enumeration Protocol
  42640. -------------------------------
  42641. If you want your own collection object to be usable with fast
  42642. enumeration, you need to have it implement the method
  42643. - (unsigned long) countByEnumeratingWithState: (NSFastEnumerationState *)state
  42644. objects: (id *)objects
  42645. count: (unsigned long)len;
  42646. where 'NSFastEnumerationState' must be defined in your code as follows:
  42647. typedef struct
  42648. {
  42649. unsigned long state;
  42650. id *itemsPtr;
  42651. unsigned long *mutationsPtr;
  42652. unsigned long extra[5];
  42653. } NSFastEnumerationState;
  42654. If no 'NSFastEnumerationState' is defined in your code, the compiler
  42655. will automatically replace 'NSFastEnumerationState *' with 'struct
  42656. __objcFastEnumerationState *', where that type is silently defined by
  42657. the compiler in an identical way. This can be confusing and we
  42658. recommend that you define 'NSFastEnumerationState' (as shown above)
  42659. instead.
  42660. The method is called repeatedly during a fast enumeration to retrieve
  42661. batches of objects. Each invocation of the method should retrieve the
  42662. next batch of objects.
  42663. The return value of the method is the number of objects in the current
  42664. batch; this should not exceed 'len', which is the maximum size of a
  42665. batch as requested by the caller. The batch itself is returned in the
  42666. 'itemsPtr' field of the 'NSFastEnumerationState' struct.
  42667. To help with returning the objects, the 'objects' array is a C array
  42668. preallocated by the caller (on the stack) of size 'len'. In many cases
  42669. you can put the objects you want to return in that 'objects' array, then
  42670. do 'itemsPtr = objects'. But you don't have to; if your collection
  42671. already has the objects to return in some form of C array, it could
  42672. return them from there instead.
  42673. The 'state' and 'extra' fields of the 'NSFastEnumerationState'
  42674. structure allows your collection object to keep track of the state of
  42675. the enumeration. In a simple array implementation, 'state' may keep
  42676. track of the index of the last object that was returned, and 'extra' may
  42677. be unused.
  42678. The 'mutationsPtr' field of the 'NSFastEnumerationState' is used to
  42679. keep track of mutations. It should point to a number; before working on
  42680. each object, the fast enumeration loop will check that this number has
  42681. not changed. If it has, a mutation has happened and the fast
  42682. enumeration will abort. So, 'mutationsPtr' could be set to point to
  42683. some sort of version number of your collection, which is increased by
  42684. one every time there is a change (for example when an object is added or
  42685. removed). Or, if you are content with less strict mutation checks, it
  42686. could point to the number of objects in your collection or some other
  42687. value that can be checked to perform an approximate check that the
  42688. collection has not been mutated.
  42689. Finally, note how we declared the 'len' argument and the return value
  42690. to be of type 'unsigned long'. They could also be declared to be of
  42691. type 'unsigned int' and everything would still work.
  42692. 
  42693. File: gcc.info, Node: Messaging with the GNU Objective-C runtime, Prev: Fast enumeration, Up: Objective-C
  42694. 8.10 Messaging with the GNU Objective-C Runtime
  42695. ===============================================
  42696. This section is specific for the GNU Objective-C runtime. If you are
  42697. using a different runtime, you can skip it.
  42698. The implementation of messaging in the GNU Objective-C runtime is
  42699. designed to be portable, and so is based on standard C.
  42700. Sending a message in the GNU Objective-C runtime is composed of two
  42701. separate steps. First, there is a call to the lookup function,
  42702. 'objc_msg_lookup ()' (or, in the case of messages to super,
  42703. 'objc_msg_lookup_super ()'). This runtime function takes as argument
  42704. the receiver and the selector of the method to be called; it returns the
  42705. 'IMP', that is a pointer to the function implementing the method. The
  42706. second step of method invocation consists of casting this pointer
  42707. function to the appropriate function pointer type, and calling the
  42708. function pointed to it with the right arguments.
  42709. For example, when the compiler encounters a method invocation such as
  42710. '[object init]', it compiles it into a call to 'objc_msg_lookup (object,
  42711. @selector(init))' followed by a cast of the returned value to the
  42712. appropriate function pointer type, and then it calls it.
  42713. * Menu:
  42714. * Dynamically registering methods::
  42715. * Forwarding hook::
  42716. 
  42717. File: gcc.info, Node: Dynamically registering methods, Next: Forwarding hook, Up: Messaging with the GNU Objective-C runtime
  42718. 8.10.1 Dynamically Registering Methods
  42719. --------------------------------------
  42720. If 'objc_msg_lookup()' does not find a suitable method implementation,
  42721. because the receiver does not implement the required method, it tries to
  42722. see if the class can dynamically register the method.
  42723. To do so, the runtime checks if the class of the receiver implements
  42724. the method
  42725. + (BOOL) resolveInstanceMethod: (SEL)selector;
  42726. in the case of an instance method, or
  42727. + (BOOL) resolveClassMethod: (SEL)selector;
  42728. in the case of a class method. If the class implements it, the runtime
  42729. invokes it, passing as argument the selector of the original method, and
  42730. if it returns 'YES', the runtime tries the lookup again, which could now
  42731. succeed if a matching method was added dynamically by
  42732. '+resolveInstanceMethod:' or '+resolveClassMethod:'.
  42733. This allows classes to dynamically register methods (by adding them to
  42734. the class using 'class_addMethod') when they are first called. To do
  42735. so, a class should implement '+resolveInstanceMethod:' (or, depending on
  42736. the case, '+resolveClassMethod:') and have it recognize the selectors of
  42737. methods that can be registered dynamically at runtime, register them,
  42738. and return 'YES'. It should return 'NO' for methods that it does not
  42739. dynamically registered at runtime.
  42740. If '+resolveInstanceMethod:' (or '+resolveClassMethod:') is not
  42741. implemented or returns 'NO', the runtime then tries the forwarding hook.
  42742. Support for '+resolveInstanceMethod:' and 'resolveClassMethod:' was
  42743. added to the GNU Objective-C runtime in GCC version 4.6.
  42744. 
  42745. File: gcc.info, Node: Forwarding hook, Prev: Dynamically registering methods, Up: Messaging with the GNU Objective-C runtime
  42746. 8.10.2 Forwarding Hook
  42747. ----------------------
  42748. The GNU Objective-C runtime provides a hook, called
  42749. '__objc_msg_forward2', which is called by 'objc_msg_lookup()' when it
  42750. cannot find a method implementation in the runtime tables and after
  42751. calling '+resolveInstanceMethod:' and '+resolveClassMethod:' has been
  42752. attempted and did not succeed in dynamically registering the method.
  42753. To configure the hook, you set the global variable
  42754. '__objc_msg_forward2' to a function with the same argument and return
  42755. types of 'objc_msg_lookup()'. When 'objc_msg_lookup()' can not find a
  42756. method implementation, it invokes the hook function you provided to get
  42757. a method implementation to return. So, in practice
  42758. '__objc_msg_forward2' allows you to extend 'objc_msg_lookup()' by adding
  42759. some custom code that is called to do a further lookup when no standard
  42760. method implementation can be found using the normal lookup.
  42761. This hook is generally reserved for "Foundation" libraries such as
  42762. GNUstep Base, which use it to implement their high-level method
  42763. forwarding API, typically based around the 'forwardInvocation:' method.
  42764. So, unless you are implementing your own "Foundation" library, you
  42765. should not set this hook.
  42766. In a typical forwarding implementation, the '__objc_msg_forward2' hook
  42767. function determines the argument and return type of the method that is
  42768. being looked up, and then creates a function that takes these arguments
  42769. and has that return type, and returns it to the caller. Creating this
  42770. function is non-trivial and is typically performed using a dedicated
  42771. library such as 'libffi'.
  42772. The forwarding method implementation thus created is returned by
  42773. 'objc_msg_lookup()' and is executed as if it was a normal method
  42774. implementation. When the forwarding method implementation is called, it
  42775. is usually expected to pack all arguments into some sort of object
  42776. (typically, an 'NSInvocation' in a "Foundation" library), and hand it
  42777. over to the programmer ('forwardInvocation:') who is then allowed to
  42778. manipulate the method invocation using a high-level API provided by the
  42779. "Foundation" library. For example, the programmer may want to examine
  42780. the method invocation arguments and name and potentially change them
  42781. before forwarding the method invocation to one or more local objects
  42782. ('performInvocation:') or even to remote objects (by using Distributed
  42783. Objects or some other mechanism). When all this completes, the return
  42784. value is passed back and must be returned correctly to the original
  42785. caller.
  42786. Note that the GNU Objective-C runtime currently provides no support for
  42787. method forwarding or method invocations other than the
  42788. '__objc_msg_forward2' hook.
  42789. If the forwarding hook does not exist or returns 'NULL', the runtime
  42790. currently attempts forwarding using an older, deprecated API, and if
  42791. that fails, it aborts the program. In future versions of the GNU
  42792. Objective-C runtime, the runtime will immediately abort.
  42793. 
  42794. File: gcc.info, Node: Compatibility, Next: Gcov, Prev: Objective-C, Up: Top
  42795. 9 Binary Compatibility
  42796. **********************
  42797. Binary compatibility encompasses several related concepts:
  42798. "application binary interface (ABI)"
  42799. The set of runtime conventions followed by all of the tools that
  42800. deal with binary representations of a program, including compilers,
  42801. assemblers, linkers, and language runtime support. Some ABIs are
  42802. formal with a written specification, possibly designed by multiple
  42803. interested parties. Others are simply the way things are actually
  42804. done by a particular set of tools.
  42805. "ABI conformance"
  42806. A compiler conforms to an ABI if it generates code that follows all
  42807. of the specifications enumerated by that ABI. A library conforms
  42808. to an ABI if it is implemented according to that ABI. An
  42809. application conforms to an ABI if it is built using tools that
  42810. conform to that ABI and does not contain source code that
  42811. specifically changes behavior specified by the ABI.
  42812. "calling conventions"
  42813. Calling conventions are a subset of an ABI that specify of how
  42814. arguments are passed and function results are returned.
  42815. "interoperability"
  42816. Different sets of tools are interoperable if they generate files
  42817. that can be used in the same program. The set of tools includes
  42818. compilers, assemblers, linkers, libraries, header files, startup
  42819. files, and debuggers. Binaries produced by different sets of tools
  42820. are not interoperable unless they implement the same ABI. This
  42821. applies to different versions of the same tools as well as tools
  42822. from different vendors.
  42823. "intercallability"
  42824. Whether a function in a binary built by one set of tools can call a
  42825. function in a binary built by a different set of tools is a subset
  42826. of interoperability.
  42827. "implementation-defined features"
  42828. Language standards include lists of implementation-defined features
  42829. whose behavior can vary from one implementation to another. Some
  42830. of these features are normally covered by a platform's ABI and
  42831. others are not. The features that are not covered by an ABI
  42832. generally affect how a program behaves, but not intercallability.
  42833. "compatibility"
  42834. Conformance to the same ABI and the same behavior of
  42835. implementation-defined features are both relevant for
  42836. compatibility.
  42837. The application binary interface implemented by a C or C++ compiler
  42838. affects code generation and runtime support for:
  42839. * size and alignment of data types
  42840. * layout of structured types
  42841. * calling conventions
  42842. * register usage conventions
  42843. * interfaces for runtime arithmetic support
  42844. * object file formats
  42845. In addition, the application binary interface implemented by a C++
  42846. compiler affects code generation and runtime support for:
  42847. * name mangling
  42848. * exception handling
  42849. * invoking constructors and destructors
  42850. * layout, alignment, and padding of classes
  42851. * layout and alignment of virtual tables
  42852. Some GCC compilation options cause the compiler to generate code that
  42853. does not conform to the platform's default ABI. Other options cause
  42854. different program behavior for implementation-defined features that are
  42855. not covered by an ABI. These options are provided for consistency with
  42856. other compilers that do not follow the platform's default ABI or the
  42857. usual behavior of implementation-defined features for the platform. Be
  42858. very careful about using such options.
  42859. Most platforms have a well-defined ABI that covers C code, but ABIs
  42860. that cover C++ functionality are not yet common.
  42861. Starting with GCC 3.2, GCC binary conventions for C++ are based on a
  42862. written, vendor-neutral C++ ABI that was designed to be specific to
  42863. 64-bit Itanium but also includes generic specifications that apply to
  42864. any platform. This C++ ABI is also implemented by other compiler
  42865. vendors on some platforms, notably GNU/Linux and BSD systems. We have
  42866. tried hard to provide a stable ABI that will be compatible with future
  42867. GCC releases, but it is possible that we will encounter problems that
  42868. make this difficult. Such problems could include different
  42869. interpretations of the C++ ABI by different vendors, bugs in the ABI, or
  42870. bugs in the implementation of the ABI in different compilers. GCC's
  42871. '-Wabi' switch warns when G++ generates code that is probably not
  42872. compatible with the C++ ABI.
  42873. The C++ library used with a C++ compiler includes the Standard C++
  42874. Library, with functionality defined in the C++ Standard, plus language
  42875. runtime support. The runtime support is included in a C++ ABI, but
  42876. there is no formal ABI for the Standard C++ Library. Two
  42877. implementations of that library are interoperable if one follows the
  42878. de-facto ABI of the other and if they are both built with the same
  42879. compiler, or with compilers that conform to the same ABI for C++
  42880. compiler and runtime support.
  42881. When G++ and another C++ compiler conform to the same C++ ABI, but the
  42882. implementations of the Standard C++ Library that they normally use do
  42883. not follow the same ABI for the Standard C++ Library, object files built
  42884. with those compilers can be used in the same program only if they use
  42885. the same C++ library. This requires specifying the location of the C++
  42886. library header files when invoking the compiler whose usual library is
  42887. not being used. The location of GCC's C++ header files depends on how
  42888. the GCC build was configured, but can be seen by using the G++ '-v'
  42889. option. With default configuration options for G++ 3.3 the compile line
  42890. for a different C++ compiler needs to include
  42891. -IGCC_INSTALL_DIRECTORY/include/c++/3.3
  42892. Similarly, compiling code with G++ that must use a C++ library other
  42893. than the GNU C++ library requires specifying the location of the header
  42894. files for that other library.
  42895. The most straightforward way to link a program to use a particular C++
  42896. library is to use a C++ driver that specifies that C++ library by
  42897. default. The 'g++' driver, for example, tells the linker where to find
  42898. GCC's C++ library ('libstdc++') plus the other libraries and startup
  42899. files it needs, in the proper order.
  42900. If a program must use a different C++ library and it's not possible to
  42901. do the final link using a C++ driver that uses that library by default,
  42902. it is necessary to tell 'g++' the location and name of that library. It
  42903. might also be necessary to specify different startup files and other
  42904. runtime support libraries, and to suppress the use of GCC's support
  42905. libraries with one or more of the options '-nostdlib', '-nostartfiles',
  42906. and '-nodefaultlibs'.
  42907. 
  42908. File: gcc.info, Node: Gcov, Next: Gcov-tool, Prev: Compatibility, Up: Top
  42909. 10 'gcov'--a Test Coverage Program
  42910. **********************************
  42911. 'gcov' is a tool you can use in conjunction with GCC to test code
  42912. coverage in your programs.
  42913. * Menu:
  42914. * Gcov Intro:: Introduction to gcov.
  42915. * Invoking Gcov:: How to use gcov.
  42916. * Gcov and Optimization:: Using gcov with GCC optimization.
  42917. * Gcov Data Files:: The files used by gcov.
  42918. * Cross-profiling:: Data file relocation.
  42919. 
  42920. File: gcc.info, Node: Gcov Intro, Next: Invoking Gcov, Up: Gcov
  42921. 10.1 Introduction to 'gcov'
  42922. ===========================
  42923. 'gcov' is a test coverage program. Use it in concert with GCC to
  42924. analyze your programs to help create more efficient, faster running code
  42925. and to discover untested parts of your program. You can use 'gcov' as a
  42926. profiling tool to help discover where your optimization efforts will
  42927. best affect your code. You can also use 'gcov' along with the other
  42928. profiling tool, 'gprof', to assess which parts of your code use the
  42929. greatest amount of computing time.
  42930. Profiling tools help you analyze your code's performance. Using a
  42931. profiler such as 'gcov' or 'gprof', you can find out some basic
  42932. performance statistics, such as:
  42933. * how often each line of code executes
  42934. * what lines of code are actually executed
  42935. * how much computing time each section of code uses
  42936. Once you know these things about how your code works when compiled, you
  42937. can look at each module to see which modules should be optimized.
  42938. 'gcov' helps you determine where to work on optimization.
  42939. Software developers also use coverage testing in concert with
  42940. testsuites, to make sure software is actually good enough for a release.
  42941. Testsuites can verify that a program works as expected; a coverage
  42942. program tests to see how much of the program is exercised by the
  42943. testsuite. Developers can then determine what kinds of test cases need
  42944. to be added to the testsuites to create both better testing and a better
  42945. final product.
  42946. You should compile your code without optimization if you plan to use
  42947. 'gcov' because the optimization, by combining some lines of code into
  42948. one function, may not give you as much information as you need to look
  42949. for 'hot spots' where the code is using a great deal of computer time.
  42950. Likewise, because 'gcov' accumulates statistics by line (at the lowest
  42951. resolution), it works best with a programming style that places only one
  42952. statement on each line. If you use complicated macros that expand to
  42953. loops or to other control structures, the statistics are less
  42954. helpful--they only report on the line where the macro call appears. If
  42955. your complex macros behave like functions, you can replace them with
  42956. inline functions to solve this problem.
  42957. 'gcov' creates a logfile called 'SOURCEFILE.gcov' which indicates how
  42958. many times each line of a source file 'SOURCEFILE.c' has executed. You
  42959. can use these logfiles along with 'gprof' to aid in fine-tuning the
  42960. performance of your programs. 'gprof' gives timing information you can
  42961. use along with the information you get from 'gcov'.
  42962. 'gcov' works only on code compiled with GCC. It is not compatible with
  42963. any other profiling or test coverage mechanism.
  42964. 
  42965. File: gcc.info, Node: Invoking Gcov, Next: Gcov and Optimization, Prev: Gcov Intro, Up: Gcov
  42966. 10.2 Invoking 'gcov'
  42967. ====================
  42968. gcov [OPTIONS] FILES
  42969. 'gcov' accepts the following options:
  42970. '-a'
  42971. '--all-blocks'
  42972. Write individual execution counts for every basic block. Normally
  42973. gcov outputs execution counts only for the main blocks of a line.
  42974. With this option you can determine if blocks within a single line
  42975. are not being executed.
  42976. '-b'
  42977. '--branch-probabilities'
  42978. Write branch frequencies to the output file, and write branch
  42979. summary info to the standard output. This option allows you to see
  42980. how often each branch in your program was taken. Unconditional
  42981. branches will not be shown, unless the '-u' option is given.
  42982. '-c'
  42983. '--branch-counts'
  42984. Write branch frequencies as the number of branches taken, rather
  42985. than the percentage of branches taken.
  42986. '-d'
  42987. '--display-progress'
  42988. Display the progress on the standard output.
  42989. '-f'
  42990. '--function-summaries'
  42991. Output summaries for each function in addition to the file level
  42992. summary.
  42993. '-h'
  42994. '--help'
  42995. Display help about using 'gcov' (on the standard output), and exit
  42996. without doing any further processing.
  42997. '-i'
  42998. '--intermediate-format'
  42999. Output gcov file in an easy-to-parse intermediate text format that
  43000. can be used by 'lcov' or other tools. The output is a single
  43001. '.gcov' file per '.gcda' file. No source code is required.
  43002. The format of the intermediate '.gcov' file is plain text with one
  43003. entry per line
  43004. version:GCC_VERSION
  43005. file:SOURCE_FILE_NAME
  43006. function:START_LINE_NUMBER,END_LINE_NUMBER,EXECUTION_COUNT,FUNCTION_NAME
  43007. lcount:LINE NUMBER,EXECUTION_COUNT,HAS_UNEXECUTED_BLOCK
  43008. branch:LINE_NUMBER,BRANCH_COVERAGE_TYPE
  43009. Where the BRANCH_COVERAGE_TYPE is
  43010. notexec (Branch not executed)
  43011. taken (Branch executed and taken)
  43012. nottaken (Branch executed, but not taken)
  43013. There can be multiple FILE entries in an intermediate gcov file.
  43014. All entries following a FILE pertain to that source file until the
  43015. next FILE entry. If there are multiple functions that start on a
  43016. single line, then corresponding lcount is repeated multiple times.
  43017. Here is a sample when '-i' is used in conjunction with '-b' option:
  43018. version: 8.1.0 20180103
  43019. file:tmp.cpp
  43020. function:7,7,0,_ZN3FooIcEC2Ev
  43021. function:7,7,1,_ZN3FooIiEC2Ev
  43022. function:8,8,0,_ZN3FooIcE3incEv
  43023. function:8,8,2,_ZN3FooIiE3incEv
  43024. function:18,37,1,main
  43025. lcount:7,0,1
  43026. lcount:7,1,0
  43027. lcount:8,0,1
  43028. lcount:8,2,0
  43029. lcount:18,1,0
  43030. lcount:21,1,0
  43031. branch:21,taken
  43032. branch:21,nottaken
  43033. lcount:23,1,0
  43034. branch:23,taken
  43035. branch:23,nottaken
  43036. lcount:24,1,0
  43037. branch:24,taken
  43038. branch:24,nottaken
  43039. lcount:25,1,0
  43040. lcount:27,11,0
  43041. branch:27,taken
  43042. branch:27,taken
  43043. lcount:28,10,0
  43044. lcount:30,1,1
  43045. branch:30,nottaken
  43046. branch:30,taken
  43047. lcount:32,1,0
  43048. branch:32,nottaken
  43049. branch:32,taken
  43050. lcount:33,0,1
  43051. branch:33,notexec
  43052. branch:33,notexec
  43053. lcount:35,1,0
  43054. branch:35,taken
  43055. branch:35,nottaken
  43056. lcount:36,1,0
  43057. '-j'
  43058. '--human-readable'
  43059. Write counts in human readable format (like 24k).
  43060. '-k'
  43061. '--use-colors'
  43062. Use colors for lines of code that have zero coverage. We use red
  43063. color for non-exceptional lines and cyan for exceptional. Same
  43064. colors are used for basic blocks with '-a' option.
  43065. '-l'
  43066. '--long-file-names'
  43067. Create long file names for included source files. For example, if
  43068. the header file 'x.h' contains code, and was included in the file
  43069. 'a.c', then running 'gcov' on the file 'a.c' will produce an output
  43070. file called 'a.c##x.h.gcov' instead of 'x.h.gcov'. This can be
  43071. useful if 'x.h' is included in multiple source files and you want
  43072. to see the individual contributions. If you use the '-p' option,
  43073. both the including and included file names will be complete path
  43074. names.
  43075. '-m'
  43076. '--demangled-names'
  43077. Display demangled function names in output. The default is to show
  43078. mangled function names.
  43079. '-n'
  43080. '--no-output'
  43081. Do not create the 'gcov' output file.
  43082. '-o DIRECTORY|FILE'
  43083. '--object-directory DIRECTORY'
  43084. '--object-file FILE'
  43085. Specify either the directory containing the gcov data files, or the
  43086. object path name. The '.gcno', and '.gcda' data files are searched
  43087. for using this option. If a directory is specified, the data files
  43088. are in that directory and named after the input file name, without
  43089. its extension. If a file is specified here, the data files are
  43090. named after that file, without its extension.
  43091. '-p'
  43092. '--preserve-paths'
  43093. Preserve complete path information in the names of generated
  43094. '.gcov' files. Without this option, just the filename component is
  43095. used. With this option, all directories are used, with '/'
  43096. characters translated to '#' characters, '.' directory components
  43097. removed and unremoveable '..' components renamed to '^'. This is
  43098. useful if sourcefiles are in several different directories.
  43099. '-r'
  43100. '--relative-only'
  43101. Only output information about source files with a relative pathname
  43102. (after source prefix elision). Absolute paths are usually system
  43103. header files and coverage of any inline functions therein is
  43104. normally uninteresting.
  43105. '-s DIRECTORY'
  43106. '--source-prefix DIRECTORY'
  43107. A prefix for source file names to remove when generating the output
  43108. coverage files. This option is useful when building in a separate
  43109. directory, and the pathname to the source directory is not wanted
  43110. when determining the output file names. Note that this prefix
  43111. detection is applied before determining whether the source file is
  43112. absolute.
  43113. '-u'
  43114. '--unconditional-branches'
  43115. When branch probabilities are given, include those of unconditional
  43116. branches. Unconditional branches are normally not interesting.
  43117. '-v'
  43118. '--version'
  43119. Display the 'gcov' version number (on the standard output), and
  43120. exit without doing any further processing.
  43121. '-w'
  43122. '--verbose'
  43123. Print verbose informations related to basic blocks and arcs.
  43124. '-x'
  43125. '--hash-filenames'
  43126. By default, gcov uses the full pathname of the source files to
  43127. create an output filename. This can lead to long filenames that
  43128. can overflow filesystem limits. This option creates names of the
  43129. form 'SOURCE-FILE##MD5.gcov', where the SOURCE-FILE component is
  43130. the final filename part and the MD5 component is calculated from
  43131. the full mangled name that would have been used otherwise.
  43132. 'gcov' should be run with the current directory the same as that when
  43133. you invoked the compiler. Otherwise it will not be able to locate the
  43134. source files. 'gcov' produces files called 'MANGLEDNAME.gcov' in the
  43135. current directory. These contain the coverage information of the source
  43136. file they correspond to. One '.gcov' file is produced for each source
  43137. (or header) file containing code, which was compiled to produce the data
  43138. files. The MANGLEDNAME part of the output file name is usually simply
  43139. the source file name, but can be something more complicated if the '-l'
  43140. or '-p' options are given. Refer to those options for details.
  43141. If you invoke 'gcov' with multiple input files, the contributions from
  43142. each input file are summed. Typically you would invoke it with the same
  43143. list of files as the final link of your executable.
  43144. The '.gcov' files contain the ':' separated fields along with program
  43145. source code. The format is
  43146. EXECUTION_COUNT:LINE_NUMBER:SOURCE LINE TEXT
  43147. Additional block information may succeed each line, when requested by
  43148. command line option. The EXECUTION_COUNT is '-' for lines containing no
  43149. code. Unexecuted lines are marked '#####' or '=====', depending on
  43150. whether they are reachable by non-exceptional paths or only exceptional
  43151. paths such as C++ exception handlers, respectively. Given '-a' option,
  43152. unexecuted blocks are marked '$$$$$' or '%%%%%', depending on whether a
  43153. basic block is reachable via non-exceptional or exceptional paths.
  43154. Executed basic blocks having a statement with zero EXECUTION_COUNT end
  43155. with '*' character and are colored with magenta color with '-k' option.
  43156. The functionality is not supported in Ada.
  43157. Note that GCC can completely remove the bodies of functions that are
  43158. not needed - for instance if they are inlined everywhere. Such
  43159. functions are marked with '-', which can be confusing. Use the
  43160. '-fkeep-inline-functions' and '-fkeep-static-functions' options to
  43161. retain these functions and allow gcov to properly show their
  43162. EXECUTION_COUNT.
  43163. Some lines of information at the start have LINE_NUMBER of zero. These
  43164. preamble lines are of the form
  43165. -:0:TAG:VALUE
  43166. The ordering and number of these preamble lines will be augmented as
  43167. 'gcov' development progresses -- do not rely on them remaining
  43168. unchanged. Use TAG to locate a particular preamble line.
  43169. The additional block information is of the form
  43170. TAG INFORMATION
  43171. The INFORMATION is human readable, but designed to be simple enough for
  43172. machine parsing too.
  43173. When printing percentages, 0% and 100% are only printed when the values
  43174. are _exactly_ 0% and 100% respectively. Other values which would
  43175. conventionally be rounded to 0% or 100% are instead printed as the
  43176. nearest non-boundary value.
  43177. When using 'gcov', you must first compile your program with two special
  43178. GCC options: '-fprofile-arcs -ftest-coverage'. This tells the compiler
  43179. to generate additional information needed by gcov (basically a flow
  43180. graph of the program) and also includes additional code in the object
  43181. files for generating the extra profiling information needed by gcov.
  43182. These additional files are placed in the directory where the object file
  43183. is located.
  43184. Running the program will cause profile output to be generated. For
  43185. each source file compiled with '-fprofile-arcs', an accompanying '.gcda'
  43186. file will be placed in the object file directory.
  43187. Running 'gcov' with your program's source file names as arguments will
  43188. now produce a listing of the code along with frequency of execution for
  43189. each line. For example, if your program is called 'tmp.cpp', this is
  43190. what you see when you use the basic 'gcov' facility:
  43191. $ g++ -fprofile-arcs -ftest-coverage tmp.cpp
  43192. $ a.out
  43193. $ gcov tmp.cpp -m
  43194. File 'tmp.cpp'
  43195. Lines executed:92.86% of 14
  43196. Creating 'tmp.cpp.gcov'
  43197. The file 'tmp.cpp.gcov' contains output from 'gcov'. Here is a sample:
  43198. -: 0:Source:tmp.cpp
  43199. -: 0:Graph:tmp.gcno
  43200. -: 0:Data:tmp.gcda
  43201. -: 0:Runs:1
  43202. -: 0:Programs:1
  43203. -: 1:#include <stdio.h>
  43204. -: 2:
  43205. -: 3:template<class T>
  43206. -: 4:class Foo
  43207. -: 5:{
  43208. -: 6: public:
  43209. 1*: 7: Foo(): b (1000) {}
  43210. ------------------
  43211. Foo<char>::Foo():
  43212. #####: 7: Foo(): b (1000) {}
  43213. ------------------
  43214. Foo<int>::Foo():
  43215. 1: 7: Foo(): b (1000) {}
  43216. ------------------
  43217. 2*: 8: void inc () { b++; }
  43218. ------------------
  43219. Foo<char>::inc():
  43220. #####: 8: void inc () { b++; }
  43221. ------------------
  43222. Foo<int>::inc():
  43223. 2: 8: void inc () { b++; }
  43224. ------------------
  43225. -: 9:
  43226. -: 10: private:
  43227. -: 11: int b;
  43228. -: 12:};
  43229. -: 13:
  43230. -: 14:template class Foo<int>;
  43231. -: 15:template class Foo<char>;
  43232. -: 16:
  43233. -: 17:int
  43234. 1: 18:main (void)
  43235. -: 19:{
  43236. -: 20: int i, total;
  43237. 1: 21: Foo<int> counter;
  43238. -: 22:
  43239. 1: 23: counter.inc();
  43240. 1: 24: counter.inc();
  43241. 1: 25: total = 0;
  43242. -: 26:
  43243. 11: 27: for (i = 0; i < 10; i++)
  43244. 10: 28: total += i;
  43245. -: 29:
  43246. 1*: 30: int v = total > 100 ? 1 : 2;
  43247. -: 31:
  43248. 1: 32: if (total != 45)
  43249. #####: 33: printf ("Failure\n");
  43250. -: 34: else
  43251. 1: 35: printf ("Success\n");
  43252. 1: 36: return 0;
  43253. -: 37:}
  43254. Note that line 7 is shown in the report multiple times. First
  43255. occurrence presents total number of execution of the line and the next
  43256. two belong to instances of class Foo constructors. As you can also see,
  43257. line 30 contains some unexecuted basic blocks and thus execution count
  43258. has asterisk symbol.
  43259. When you use the '-a' option, you will get individual block counts, and
  43260. the output looks like this:
  43261. -: 0:Source:tmp.cpp
  43262. -: 0:Graph:tmp.gcno
  43263. -: 0:Data:tmp.gcda
  43264. -: 0:Runs:1
  43265. -: 0:Programs:1
  43266. -: 1:#include <stdio.h>
  43267. -: 2:
  43268. -: 3:template<class T>
  43269. -: 4:class Foo
  43270. -: 5:{
  43271. -: 6: public:
  43272. 1*: 7: Foo(): b (1000) {}
  43273. ------------------
  43274. Foo<char>::Foo():
  43275. #####: 7: Foo(): b (1000) {}
  43276. ------------------
  43277. Foo<int>::Foo():
  43278. 1: 7: Foo(): b (1000) {}
  43279. ------------------
  43280. 2*: 8: void inc () { b++; }
  43281. ------------------
  43282. Foo<char>::inc():
  43283. #####: 8: void inc () { b++; }
  43284. ------------------
  43285. Foo<int>::inc():
  43286. 2: 8: void inc () { b++; }
  43287. ------------------
  43288. -: 9:
  43289. -: 10: private:
  43290. -: 11: int b;
  43291. -: 12:};
  43292. -: 13:
  43293. -: 14:template class Foo<int>;
  43294. -: 15:template class Foo<char>;
  43295. -: 16:
  43296. -: 17:int
  43297. 1: 18:main (void)
  43298. -: 19:{
  43299. -: 20: int i, total;
  43300. 1: 21: Foo<int> counter;
  43301. 1: 21-block 0
  43302. -: 22:
  43303. 1: 23: counter.inc();
  43304. 1: 23-block 0
  43305. 1: 24: counter.inc();
  43306. 1: 24-block 0
  43307. 1: 25: total = 0;
  43308. -: 26:
  43309. 11: 27: for (i = 0; i < 10; i++)
  43310. 1: 27-block 0
  43311. 11: 27-block 1
  43312. 10: 28: total += i;
  43313. 10: 28-block 0
  43314. -: 29:
  43315. 1*: 30: int v = total > 100 ? 1 : 2;
  43316. 1: 30-block 0
  43317. %%%%%: 30-block 1
  43318. 1: 30-block 2
  43319. -: 31:
  43320. 1: 32: if (total != 45)
  43321. 1: 32-block 0
  43322. #####: 33: printf ("Failure\n");
  43323. %%%%%: 33-block 0
  43324. -: 34: else
  43325. 1: 35: printf ("Success\n");
  43326. 1: 35-block 0
  43327. 1: 36: return 0;
  43328. 1: 36-block 0
  43329. -: 37:}
  43330. In this mode, each basic block is only shown on one line - the last
  43331. line of the block. A multi-line block will only contribute to the
  43332. execution count of that last line, and other lines will not be shown to
  43333. contain code, unless previous blocks end on those lines. The total
  43334. execution count of a line is shown and subsequent lines show the
  43335. execution counts for individual blocks that end on that line. After
  43336. each block, the branch and call counts of the block will be shown, if
  43337. the '-b' option is given.
  43338. Because of the way GCC instruments calls, a call count can be shown
  43339. after a line with no individual blocks. As you can see, line 33
  43340. contains a basic block that was not executed.
  43341. When you use the '-b' option, your output looks like this:
  43342. -: 0:Source:tmp.cpp
  43343. -: 0:Graph:tmp.gcno
  43344. -: 0:Data:tmp.gcda
  43345. -: 0:Runs:1
  43346. -: 0:Programs:1
  43347. -: 1:#include <stdio.h>
  43348. -: 2:
  43349. -: 3:template<class T>
  43350. -: 4:class Foo
  43351. -: 5:{
  43352. -: 6: public:
  43353. 1*: 7: Foo(): b (1000) {}
  43354. ------------------
  43355. Foo<char>::Foo():
  43356. function Foo<char>::Foo() called 0 returned 0% blocks executed 0%
  43357. #####: 7: Foo(): b (1000) {}
  43358. ------------------
  43359. Foo<int>::Foo():
  43360. function Foo<int>::Foo() called 1 returned 100% blocks executed 100%
  43361. 1: 7: Foo(): b (1000) {}
  43362. ------------------
  43363. 2*: 8: void inc () { b++; }
  43364. ------------------
  43365. Foo<char>::inc():
  43366. function Foo<char>::inc() called 0 returned 0% blocks executed 0%
  43367. #####: 8: void inc () { b++; }
  43368. ------------------
  43369. Foo<int>::inc():
  43370. function Foo<int>::inc() called 2 returned 100% blocks executed 100%
  43371. 2: 8: void inc () { b++; }
  43372. ------------------
  43373. -: 9:
  43374. -: 10: private:
  43375. -: 11: int b;
  43376. -: 12:};
  43377. -: 13:
  43378. -: 14:template class Foo<int>;
  43379. -: 15:template class Foo<char>;
  43380. -: 16:
  43381. -: 17:int
  43382. function main called 1 returned 100% blocks executed 81%
  43383. 1: 18:main (void)
  43384. -: 19:{
  43385. -: 20: int i, total;
  43386. 1: 21: Foo<int> counter;
  43387. call 0 returned 100%
  43388. branch 1 taken 100% (fallthrough)
  43389. branch 2 taken 0% (throw)
  43390. -: 22:
  43391. 1: 23: counter.inc();
  43392. call 0 returned 100%
  43393. branch 1 taken 100% (fallthrough)
  43394. branch 2 taken 0% (throw)
  43395. 1: 24: counter.inc();
  43396. call 0 returned 100%
  43397. branch 1 taken 100% (fallthrough)
  43398. branch 2 taken 0% (throw)
  43399. 1: 25: total = 0;
  43400. -: 26:
  43401. 11: 27: for (i = 0; i < 10; i++)
  43402. branch 0 taken 91% (fallthrough)
  43403. branch 1 taken 9%
  43404. 10: 28: total += i;
  43405. -: 29:
  43406. 1*: 30: int v = total > 100 ? 1 : 2;
  43407. branch 0 taken 0% (fallthrough)
  43408. branch 1 taken 100%
  43409. -: 31:
  43410. 1: 32: if (total != 45)
  43411. branch 0 taken 0% (fallthrough)
  43412. branch 1 taken 100%
  43413. #####: 33: printf ("Failure\n");
  43414. call 0 never executed
  43415. branch 1 never executed
  43416. branch 2 never executed
  43417. -: 34: else
  43418. 1: 35: printf ("Success\n");
  43419. call 0 returned 100%
  43420. branch 1 taken 100% (fallthrough)
  43421. branch 2 taken 0% (throw)
  43422. 1: 36: return 0;
  43423. -: 37:}
  43424. For each function, a line is printed showing how many times the
  43425. function is called, how many times it returns and what percentage of the
  43426. function's blocks were executed.
  43427. For each basic block, a line is printed after the last line of the
  43428. basic block describing the branch or call that ends the basic block.
  43429. There can be multiple branches and calls listed for a single source line
  43430. if there are multiple basic blocks that end on that line. In this case,
  43431. the branches and calls are each given a number. There is no simple way
  43432. to map these branches and calls back to source constructs. In general,
  43433. though, the lowest numbered branch or call will correspond to the
  43434. leftmost construct on the source line.
  43435. For a branch, if it was executed at least once, then a percentage
  43436. indicating the number of times the branch was taken divided by the
  43437. number of times the branch was executed will be printed. Otherwise, the
  43438. message "never executed" is printed.
  43439. For a call, if it was executed at least once, then a percentage
  43440. indicating the number of times the call returned divided by the number
  43441. of times the call was executed will be printed. This will usually be
  43442. 100%, but may be less for functions that call 'exit' or 'longjmp', and
  43443. thus may not return every time they are called.
  43444. The execution counts are cumulative. If the example program were
  43445. executed again without removing the '.gcda' file, the count for the
  43446. number of times each line in the source was executed would be added to
  43447. the results of the previous run(s). This is potentially useful in
  43448. several ways. For example, it could be used to accumulate data over a
  43449. number of program runs as part of a test verification suite, or to
  43450. provide more accurate long-term information over a large number of
  43451. program runs.
  43452. The data in the '.gcda' files is saved immediately before the program
  43453. exits. For each source file compiled with '-fprofile-arcs', the
  43454. profiling code first attempts to read in an existing '.gcda' file; if
  43455. the file doesn't match the executable (differing number of basic block
  43456. counts) it will ignore the contents of the file. It then adds in the
  43457. new execution counts and finally writes the data to the file.
  43458. 
  43459. File: gcc.info, Node: Gcov and Optimization, Next: Gcov Data Files, Prev: Invoking Gcov, Up: Gcov
  43460. 10.3 Using 'gcov' with GCC Optimization
  43461. =======================================
  43462. If you plan to use 'gcov' to help optimize your code, you must first
  43463. compile your program with two special GCC options: '-fprofile-arcs
  43464. -ftest-coverage'. Aside from that, you can use any other GCC options;
  43465. but if you want to prove that every single line in your program was
  43466. executed, you should not compile with optimization at the same time. On
  43467. some machines the optimizer can eliminate some simple code lines by
  43468. combining them with other lines. For example, code like this:
  43469. if (a != b)
  43470. c = 1;
  43471. else
  43472. c = 0;
  43473. can be compiled into one instruction on some machines. In this case,
  43474. there is no way for 'gcov' to calculate separate execution counts for
  43475. each line because there isn't separate code for each line. Hence the
  43476. 'gcov' output looks like this if you compiled the program with
  43477. optimization:
  43478. 100: 12:if (a != b)
  43479. 100: 13: c = 1;
  43480. 100: 14:else
  43481. 100: 15: c = 0;
  43482. The output shows that this block of code, combined by optimization,
  43483. executed 100 times. In one sense this result is correct, because there
  43484. was only one instruction representing all four of these lines. However,
  43485. the output does not indicate how many times the result was 0 and how
  43486. many times the result was 1.
  43487. Inlineable functions can create unexpected line counts. Line counts
  43488. are shown for the source code of the inlineable function, but what is
  43489. shown depends on where the function is inlined, or if it is not inlined
  43490. at all.
  43491. If the function is not inlined, the compiler must emit an out of line
  43492. copy of the function, in any object file that needs it. If 'fileA.o'
  43493. and 'fileB.o' both contain out of line bodies of a particular inlineable
  43494. function, they will also both contain coverage counts for that function.
  43495. When 'fileA.o' and 'fileB.o' are linked together, the linker will, on
  43496. many systems, select one of those out of line bodies for all calls to
  43497. that function, and remove or ignore the other. Unfortunately, it will
  43498. not remove the coverage counters for the unused function body. Hence
  43499. when instrumented, all but one use of that function will show zero
  43500. counts.
  43501. If the function is inlined in several places, the block structure in
  43502. each location might not be the same. For instance, a condition might
  43503. now be calculable at compile time in some instances. Because the
  43504. coverage of all the uses of the inline function will be shown for the
  43505. same source lines, the line counts themselves might seem inconsistent.
  43506. Long-running applications can use the '__gcov_reset' and '__gcov_dump'
  43507. facilities to restrict profile collection to the program region of
  43508. interest. Calling '__gcov_reset(void)' will clear all profile counters
  43509. to zero, and calling '__gcov_dump(void)' will cause the profile
  43510. information collected at that point to be dumped to '.gcda' output
  43511. files. Instrumented applications use a static destructor with priority
  43512. 99 to invoke the '__gcov_dump' function. Thus '__gcov_dump' is executed
  43513. after all user defined static destructors, as well as handlers
  43514. registered with 'atexit'. If an executable loads a dynamic shared
  43515. object via dlopen functionality, '-Wl,--dynamic-list-data' is needed to
  43516. dump all profile data.
  43517. 
  43518. File: gcc.info, Node: Gcov Data Files, Next: Cross-profiling, Prev: Gcov and Optimization, Up: Gcov
  43519. 10.4 Brief Description of 'gcov' Data Files
  43520. ===========================================
  43521. 'gcov' uses two files for profiling. The names of these files are
  43522. derived from the original _object_ file by substituting the file suffix
  43523. with either '.gcno', or '.gcda'. The files contain coverage and profile
  43524. data stored in a platform-independent format. The '.gcno' files are
  43525. placed in the same directory as the object file. By default, the
  43526. '.gcda' files are also stored in the same directory as the object file,
  43527. but the GCC '-fprofile-dir' option may be used to store the '.gcda'
  43528. files in a separate directory.
  43529. The '.gcno' notes file is generated when the source file is compiled
  43530. with the GCC '-ftest-coverage' option. It contains information to
  43531. reconstruct the basic block graphs and assign source line numbers to
  43532. blocks.
  43533. The '.gcda' count data file is generated when a program containing
  43534. object files built with the GCC '-fprofile-arcs' option is executed. A
  43535. separate '.gcda' file is created for each object file compiled with this
  43536. option. It contains arc transition counts, value profile counts, and
  43537. some summary information.
  43538. It is not recommended to access the coverage files directly. Consumers
  43539. should use the intermediate format that is provided by 'gcov' tool via
  43540. '--intermediate-format' option.
  43541. 
  43542. File: gcc.info, Node: Cross-profiling, Prev: Gcov Data Files, Up: Gcov
  43543. 10.5 Data File Relocation to Support Cross-Profiling
  43544. ====================================================
  43545. Running the program will cause profile output to be generated. For each
  43546. source file compiled with '-fprofile-arcs', an accompanying '.gcda' file
  43547. will be placed in the object file directory. That implicitly requires
  43548. running the program on the same system as it was built or having the
  43549. same absolute directory structure on the target system. The program
  43550. will try to create the needed directory structure, if it is not already
  43551. present.
  43552. To support cross-profiling, a program compiled with '-fprofile-arcs'
  43553. can relocate the data files based on two environment variables:
  43554. * GCOV_PREFIX contains the prefix to add to the absolute paths in the
  43555. object file. Prefix can be absolute, or relative. The default is
  43556. no prefix.
  43557. * GCOV_PREFIX_STRIP indicates the how many initial directory names to
  43558. strip off the hardwired absolute paths. Default value is 0.
  43559. _Note:_ If GCOV_PREFIX_STRIP is set without GCOV_PREFIX is
  43560. undefined, then a relative path is made out of the hardwired
  43561. absolute paths.
  43562. For example, if the object file '/user/build/foo.o' was built with
  43563. '-fprofile-arcs', the final executable will try to create the data file
  43564. '/user/build/foo.gcda' when running on the target system. This will
  43565. fail if the corresponding directory does not exist and it is unable to
  43566. create it. This can be overcome by, for example, setting the
  43567. environment as 'GCOV_PREFIX=/target/run' and 'GCOV_PREFIX_STRIP=1'.
  43568. Such a setting will name the data file '/target/run/build/foo.gcda'.
  43569. You must move the data files to the expected directory tree in order to
  43570. use them for profile directed optimizations ('-fprofile-use'), or to use
  43571. the 'gcov' tool.
  43572. 
  43573. File: gcc.info, Node: Gcov-tool, Next: Gcov-dump, Prev: Gcov, Up: Top
  43574. 11 'gcov-tool'--an Offline Gcda Profile Processing Tool
  43575. *******************************************************
  43576. 'gcov-tool' is a tool you can use in conjunction with GCC to manipulate
  43577. or process gcda profile files offline.
  43578. * Menu:
  43579. * Gcov-tool Intro:: Introduction to gcov-tool.
  43580. * Invoking Gcov-tool:: How to use gcov-tool.
  43581. 
  43582. File: gcc.info, Node: Gcov-tool Intro, Next: Invoking Gcov-tool, Up: Gcov-tool
  43583. 11.1 Introduction to 'gcov-tool'
  43584. ================================
  43585. 'gcov-tool' is an offline tool to process gcc's gcda profile files.
  43586. Current gcov-tool supports the following functionalities:
  43587. * merge two sets of profiles with weights.
  43588. * read one set of profile and rewrite profile contents. One can
  43589. scale or normalize the count values.
  43590. Examples of the use cases for this tool are:
  43591. * Collect the profiles for different set of inputs, and use this tool
  43592. to merge them. One can specify the weight to factor in the
  43593. relative importance of each input.
  43594. * Rewrite the profile after removing a subset of the gcda files,
  43595. while maintaining the consistency of the summary and the histogram.
  43596. * It can also be used to debug or libgcov code as the tools shares
  43597. the majority code as the runtime library.
  43598. Note that for the merging operation, this profile generated offline may
  43599. contain slight different values from the online merged profile. Here
  43600. are a list of typical differences:
  43601. * histogram difference: This offline tool recomputes the histogram
  43602. after merging the counters. The resulting histogram, therefore, is
  43603. precise. The online merging does not have this capability - the
  43604. histogram is merged from two histograms and the result is an
  43605. approximation.
  43606. * summary checksum difference: Summary checksum uses a CRC32
  43607. operation. The value depends on the link list order of gcov-info
  43608. objects. This order is different in gcov-tool from that in the
  43609. online merge. It's expected to have different summary checksums.
  43610. It does not really matter as the compiler does not use this
  43611. checksum anywhere.
  43612. * value profile counter values difference: Some counter values for
  43613. value profile are runtime dependent, like heap addresses. It's
  43614. normal to see some difference in these kind of counters.
  43615. 
  43616. File: gcc.info, Node: Invoking Gcov-tool, Prev: Gcov-tool Intro, Up: Gcov-tool
  43617. 11.2 Invoking 'gcov-tool'
  43618. =========================
  43619. gcov-tool [GLOBAL-OPTIONS] SUB_COMMAND [SUB_COMMAND-OPTIONS] PROFILE_DIR
  43620. 'gcov-tool' accepts the following options:
  43621. '-h'
  43622. '--help'
  43623. Display help about using 'gcov-tool' (on the standard output), and
  43624. exit without doing any further processing.
  43625. '-v'
  43626. '--version'
  43627. Display the 'gcov-tool' version number (on the standard output),
  43628. and exit without doing any further processing.
  43629. 'merge'
  43630. Merge two profile directories.
  43631. '-o DIRECTORY'
  43632. '--output DIRECTORY'
  43633. Set the output profile directory. Default output directory
  43634. name is MERGED_PROFILE.
  43635. '-v'
  43636. '--verbose'
  43637. Set the verbose mode.
  43638. '-w W1,W2'
  43639. '--weight W1,W2'
  43640. Set the merge weights of the DIRECTORY1 and DIRECTORY2,
  43641. respectively. The default weights are 1 for both.
  43642. 'rewrite'
  43643. Read the specified profile directory and rewrite to a new
  43644. directory.
  43645. '-n LONG_LONG_VALUE'
  43646. '--normalize <long_long_value>'
  43647. Normalize the profile. The specified value is the max counter
  43648. value in the new profile.
  43649. '-o DIRECTORY'
  43650. '--output DIRECTORY'
  43651. Set the output profile directory. Default output name is
  43652. REWRITE_PROFILE.
  43653. '-s FLOAT_OR_SIMPLE-FRAC_VALUE'
  43654. '--scale FLOAT_OR_SIMPLE-FRAC_VALUE'
  43655. Scale the profile counters. The specified value can be in
  43656. floating point value, or simple fraction value form, such 1,
  43657. 2, 2/3, and 5/3.
  43658. '-v'
  43659. '--verbose'
  43660. Set the verbose mode.
  43661. 'overlap'
  43662. Compute the overlap score between the two specified profile
  43663. directories. The overlap score is computed based on the arc
  43664. profiles. It is defined as the sum of min (p1_counter[i] /
  43665. p1_sum_all, p2_counter[i] / p2_sum_all), for all arc counter i,
  43666. where p1_counter[i] and p2_counter[i] are two matched counters and
  43667. p1_sum_all and p2_sum_all are the sum of counter values in profile
  43668. 1 and profile 2, respectively.
  43669. '-f'
  43670. '--function'
  43671. Print function level overlap score.
  43672. '-F'
  43673. '--fullname'
  43674. Print full gcda filename.
  43675. '-h'
  43676. '--hotonly'
  43677. Only print info for hot objects/functions.
  43678. '-o'
  43679. '--object'
  43680. Print object level overlap score.
  43681. '-t FLOAT'
  43682. '--hot_threshold <float>'
  43683. Set the threshold for hot counter value.
  43684. '-v'
  43685. '--verbose'
  43686. Set the verbose mode.
  43687. 
  43688. File: gcc.info, Node: Gcov-dump, Next: Trouble, Prev: Gcov-tool, Up: Top
  43689. 12 'gcov-dump'--an Offline Gcda and Gcno Profile Dump Tool
  43690. **********************************************************
  43691. * Menu:
  43692. * Gcov-dump Intro:: Introduction to gcov-dump.
  43693. * Invoking Gcov-dump:: How to use gcov-dump.
  43694. 
  43695. File: gcc.info, Node: Gcov-dump Intro, Next: Invoking Gcov-dump, Up: Gcov-dump
  43696. 12.1 Introduction to 'gcov-dump'
  43697. ================================
  43698. 'gcov-dump' is a tool you can use in conjunction with GCC to dump
  43699. content of gcda and gcno profile files offline.
  43700. 
  43701. File: gcc.info, Node: Invoking Gcov-dump, Prev: Gcov-dump Intro, Up: Gcov-dump
  43702. 12.2 Invoking 'gcov-dump'
  43703. =========================
  43704. Usage: gcov-dump [OPTION] ... GCOVFILES
  43705. 'gcov-dump' accepts the following options:
  43706. '-h'
  43707. '--help'
  43708. Display help about using 'gcov-dump' (on the standard output), and
  43709. exit without doing any further processing.
  43710. '-l'
  43711. '--long'
  43712. Dump content of records.
  43713. '-p'
  43714. '--positions'
  43715. Dump positions of records.
  43716. '-v'
  43717. '--version'
  43718. Display the 'gcov-dump' version number (on the standard output),
  43719. and exit without doing any further processing.
  43720. '-w'
  43721. '--working-sets'
  43722. Dump working set computed from summary.
  43723. 
  43724. File: gcc.info, Node: Trouble, Next: Bugs, Prev: Gcov-dump, Up: Top
  43725. 13 Known Causes of Trouble with GCC
  43726. ***********************************
  43727. This section describes known problems that affect users of GCC. Most of
  43728. these are not GCC bugs per se--if they were, we would fix them. But the
  43729. result for a user may be like the result of a bug.
  43730. Some of these problems are due to bugs in other software, some are
  43731. missing features that are too much work to add, and some are places
  43732. where people's opinions differ as to what is best.
  43733. * Menu:
  43734. * Actual Bugs:: Bugs we will fix later.
  43735. * Interoperation:: Problems using GCC with other compilers,
  43736. and with certain linkers, assemblers and debuggers.
  43737. * Incompatibilities:: GCC is incompatible with traditional C.
  43738. * Fixed Headers:: GCC uses corrected versions of system header files.
  43739. This is necessary, but doesn't always work smoothly.
  43740. * Standard Libraries:: GCC uses the system C library, which might not be
  43741. compliant with the ISO C standard.
  43742. * Disappointments:: Regrettable things we cannot change, but not quite bugs.
  43743. * C++ Misunderstandings:: Common misunderstandings with GNU C++.
  43744. * Non-bugs:: Things we think are right, but some others disagree.
  43745. * Warnings and Errors:: Which problems in your code get warnings,
  43746. and which get errors.
  43747. 
  43748. File: gcc.info, Node: Actual Bugs, Next: Interoperation, Up: Trouble
  43749. 13.1 Actual Bugs We Haven't Fixed Yet
  43750. =====================================
  43751. * The 'fixincludes' script interacts badly with automounters; if the
  43752. directory of system header files is automounted, it tends to be
  43753. unmounted while 'fixincludes' is running. This would seem to be a
  43754. bug in the automounter. We don't know any good way to work around
  43755. it.
  43756. 
  43757. File: gcc.info, Node: Interoperation, Next: Incompatibilities, Prev: Actual Bugs, Up: Trouble
  43758. 13.2 Interoperation
  43759. ===================
  43760. This section lists various difficulties encountered in using GCC
  43761. together with other compilers or with the assemblers, linkers, libraries
  43762. and debuggers on certain systems.
  43763. * On many platforms, GCC supports a different ABI for C++ than do
  43764. other compilers, so the object files compiled by GCC cannot be used
  43765. with object files generated by another C++ compiler.
  43766. An area where the difference is most apparent is name mangling.
  43767. The use of different name mangling is intentional, to protect you
  43768. from more subtle problems. Compilers differ as to many internal
  43769. details of C++ implementation, including: how class instances are
  43770. laid out, how multiple inheritance is implemented, and how virtual
  43771. function calls are handled. If the name encoding were made the
  43772. same, your programs would link against libraries provided from
  43773. other compilers--but the programs would then crash when run.
  43774. Incompatible libraries are then detected at link time, rather than
  43775. at run time.
  43776. * On some BSD systems, including some versions of Ultrix, use of
  43777. profiling causes static variable destructors (currently used only
  43778. in C++) not to be run.
  43779. * On a SPARC, GCC aligns all values of type 'double' on an 8-byte
  43780. boundary, and it expects every 'double' to be so aligned. The Sun
  43781. compiler usually gives 'double' values 8-byte alignment, with one
  43782. exception: function arguments of type 'double' may not be aligned.
  43783. As a result, if a function compiled with Sun CC takes the address
  43784. of an argument of type 'double' and passes this pointer of type
  43785. 'double *' to a function compiled with GCC, dereferencing the
  43786. pointer may cause a fatal signal.
  43787. One way to solve this problem is to compile your entire program
  43788. with GCC. Another solution is to modify the function that is
  43789. compiled with Sun CC to copy the argument into a local variable;
  43790. local variables are always properly aligned. A third solution is
  43791. to modify the function that uses the pointer to dereference it via
  43792. the following function 'access_double' instead of directly with
  43793. '*':
  43794. inline double
  43795. access_double (double *unaligned_ptr)
  43796. {
  43797. union d2i { double d; int i[2]; };
  43798. union d2i *p = (union d2i *) unaligned_ptr;
  43799. union d2i u;
  43800. u.i[0] = p->i[0];
  43801. u.i[1] = p->i[1];
  43802. return u.d;
  43803. }
  43804. Storing into the pointer can be done likewise with the same union.
  43805. * On Solaris, the 'malloc' function in the 'libmalloc.a' library may
  43806. allocate memory that is only 4 byte aligned. Since GCC on the
  43807. SPARC assumes that doubles are 8 byte aligned, this may result in a
  43808. fatal signal if doubles are stored in memory allocated by the
  43809. 'libmalloc.a' library.
  43810. The solution is to not use the 'libmalloc.a' library. Use instead
  43811. 'malloc' and related functions from 'libc.a'; they do not have this
  43812. problem.
  43813. * On the HP PA machine, ADB sometimes fails to work on functions
  43814. compiled with GCC. Specifically, it fails to work on functions
  43815. that use 'alloca' or variable-size arrays. This is because GCC
  43816. doesn't generate HP-UX unwind descriptors for such functions. It
  43817. may even be impossible to generate them.
  43818. * Debugging ('-g') is not supported on the HP PA machine, unless you
  43819. use the preliminary GNU tools.
  43820. * Taking the address of a label may generate errors from the HP-UX PA
  43821. assembler. GAS for the PA does not have this problem.
  43822. * Using floating point parameters for indirect calls to static
  43823. functions will not work when using the HP assembler. There simply
  43824. is no way for GCC to specify what registers hold arguments for
  43825. static functions when using the HP assembler. GAS for the PA does
  43826. not have this problem.
  43827. * In extremely rare cases involving some very large functions you may
  43828. receive errors from the HP linker complaining about an out of
  43829. bounds unconditional branch offset. This used to occur more often
  43830. in previous versions of GCC, but is now exceptionally rare. If you
  43831. should run into it, you can work around by making your function
  43832. smaller.
  43833. * GCC compiled code sometimes emits warnings from the HP-UX assembler
  43834. of the form:
  43835. (warning) Use of GR3 when
  43836. frame >= 8192 may cause conflict.
  43837. These warnings are harmless and can be safely ignored.
  43838. * In extremely rare cases involving some very large functions you may
  43839. receive errors from the AIX Assembler complaining about a
  43840. displacement that is too large. If you should run into it, you can
  43841. work around by making your function smaller.
  43842. * The 'libstdc++.a' library in GCC relies on the SVR4 dynamic linker
  43843. semantics which merges global symbols between libraries and
  43844. applications, especially necessary for C++ streams functionality.
  43845. This is not the default behavior of AIX shared libraries and
  43846. dynamic linking. 'libstdc++.a' is built on AIX with
  43847. "runtime-linking" enabled so that symbol merging can occur. To
  43848. utilize this feature, the application linked with 'libstdc++.a'
  43849. must include the '-Wl,-brtl' flag on the link line. G++ cannot
  43850. impose this because this option may interfere with the semantics of
  43851. the user program and users may not always use 'g++' to link his or
  43852. her application. Applications are not required to use the
  43853. '-Wl,-brtl' flag on the link line--the rest of the 'libstdc++.a'
  43854. library which is not dependent on the symbol merging semantics will
  43855. continue to function correctly.
  43856. * An application can interpose its own definition of functions for
  43857. functions invoked by 'libstdc++.a' with "runtime-linking" enabled
  43858. on AIX. To accomplish this the application must be linked with
  43859. "runtime-linking" option and the functions explicitly must be
  43860. exported by the application ('-Wl,-brtl,-bE:exportfile').
  43861. * AIX on the RS/6000 provides support (NLS) for environments outside
  43862. of the United States. Compilers and assemblers use NLS to support
  43863. locale-specific representations of various objects including
  43864. floating-point numbers ('.' vs ',' for separating decimal
  43865. fractions). There have been problems reported where the library
  43866. linked with GCC does not produce the same floating-point formats
  43867. that the assembler accepts. If you have this problem, set the
  43868. 'LANG' environment variable to 'C' or 'En_US'.
  43869. * Even if you specify '-fdollars-in-identifiers', you cannot
  43870. successfully use '$' in identifiers on the RS/6000 due to a
  43871. restriction in the IBM assembler. GAS supports these identifiers.
  43872. 
  43873. File: gcc.info, Node: Incompatibilities, Next: Fixed Headers, Prev: Interoperation, Up: Trouble
  43874. 13.3 Incompatibilities of GCC
  43875. =============================
  43876. There are several noteworthy incompatibilities between GNU C and K&R
  43877. (non-ISO) versions of C.
  43878. * GCC normally makes string constants read-only. If several
  43879. identical-looking string constants are used, GCC stores only one
  43880. copy of the string.
  43881. One consequence is that you cannot call 'mktemp' with a string
  43882. constant argument. The function 'mktemp' always alters the string
  43883. its argument points to.
  43884. Another consequence is that 'sscanf' does not work on some very old
  43885. systems when passed a string constant as its format control string
  43886. or input. This is because 'sscanf' incorrectly tries to write into
  43887. the string constant. Likewise 'fscanf' and 'scanf'.
  43888. The solution to these problems is to change the program to use
  43889. 'char'-array variables with initialization strings for these
  43890. purposes instead of string constants.
  43891. * '-2147483648' is positive.
  43892. This is because 2147483648 cannot fit in the type 'int', so
  43893. (following the ISO C rules) its data type is 'unsigned long int'.
  43894. Negating this value yields 2147483648 again.
  43895. * GCC does not substitute macro arguments when they appear inside of
  43896. string constants. For example, the following macro in GCC
  43897. #define foo(a) "a"
  43898. will produce output '"a"' regardless of what the argument A is.
  43899. * When you use 'setjmp' and 'longjmp', the only automatic variables
  43900. guaranteed to remain valid are those declared 'volatile'. This is
  43901. a consequence of automatic register allocation. Consider this
  43902. function:
  43903. jmp_buf j;
  43904. foo ()
  43905. {
  43906. int a, b;
  43907. a = fun1 ();
  43908. if (setjmp (j))
  43909. return a;
  43910. a = fun2 ();
  43911. /* 'longjmp (j)' may occur in 'fun3'. */
  43912. return a + fun3 ();
  43913. }
  43914. Here 'a' may or may not be restored to its first value when the
  43915. 'longjmp' occurs. If 'a' is allocated in a register, then its
  43916. first value is restored; otherwise, it keeps the last value stored
  43917. in it.
  43918. If you use the '-W' option with the '-O' option, you will get a
  43919. warning when GCC thinks such a problem might be possible.
  43920. * Programs that use preprocessing directives in the middle of macro
  43921. arguments do not work with GCC. For example, a program like this
  43922. will not work:
  43923. foobar (
  43924. #define luser
  43925. hack)
  43926. ISO C does not permit such a construct.
  43927. * K&R compilers allow comments to cross over an inclusion boundary
  43928. (i.e. started in an include file and ended in the including file).
  43929. * Declarations of external variables and functions within a block
  43930. apply only to the block containing the declaration. In other
  43931. words, they have the same scope as any other declaration in the
  43932. same place.
  43933. In some other C compilers, an 'extern' declaration affects all the
  43934. rest of the file even if it happens within a block.
  43935. * In traditional C, you can combine 'long', etc., with a typedef
  43936. name, as shown here:
  43937. typedef int foo;
  43938. typedef long foo bar;
  43939. In ISO C, this is not allowed: 'long' and other type modifiers
  43940. require an explicit 'int'.
  43941. * PCC allows typedef names to be used as function parameters.
  43942. * Traditional C allows the following erroneous pair of declarations
  43943. to appear together in a given scope:
  43944. typedef int foo;
  43945. typedef foo foo;
  43946. * GCC treats all characters of identifiers as significant. According
  43947. to K&R-1 (2.2), "No more than the first eight characters are
  43948. significant, although more may be used.". Also according to K&R-1
  43949. (2.2), "An identifier is a sequence of letters and digits; the
  43950. first character must be a letter. The underscore _ counts as a
  43951. letter.", but GCC also allows dollar signs in identifiers.
  43952. * PCC allows whitespace in the middle of compound assignment
  43953. operators such as '+='. GCC, following the ISO standard, does not
  43954. allow this.
  43955. * GCC complains about unterminated character constants inside of
  43956. preprocessing conditionals that fail. Some programs have English
  43957. comments enclosed in conditionals that are guaranteed to fail; if
  43958. these comments contain apostrophes, GCC will probably report an
  43959. error. For example, this code would produce an error:
  43960. #if 0
  43961. You can't expect this to work.
  43962. #endif
  43963. The best solution to such a problem is to put the text into an
  43964. actual C comment delimited by '/*...*/'.
  43965. * Many user programs contain the declaration 'long time ();'. In the
  43966. past, the system header files on many systems did not actually
  43967. declare 'time', so it did not matter what type your program
  43968. declared it to return. But in systems with ISO C headers, 'time'
  43969. is declared to return 'time_t', and if that is not the same as
  43970. 'long', then 'long time ();' is erroneous.
  43971. The solution is to change your program to use appropriate system
  43972. headers ('<time.h>' on systems with ISO C headers) and not to
  43973. declare 'time' if the system header files declare it, or failing
  43974. that to use 'time_t' as the return type of 'time'.
  43975. * When compiling functions that return 'float', PCC converts it to a
  43976. double. GCC actually returns a 'float'. If you are concerned with
  43977. PCC compatibility, you should declare your functions to return
  43978. 'double'; you might as well say what you mean.
  43979. * When compiling functions that return structures or unions, GCC
  43980. output code normally uses a method different from that used on most
  43981. versions of Unix. As a result, code compiled with GCC cannot call
  43982. a structure-returning function compiled with PCC, and vice versa.
  43983. The method used by GCC is as follows: a structure or union which is
  43984. 1, 2, 4 or 8 bytes long is returned like a scalar. A structure or
  43985. union with any other size is stored into an address supplied by the
  43986. caller (usually in a special, fixed register, but on some machines
  43987. it is passed on the stack). The target hook
  43988. 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  43989. By contrast, PCC on most target machines returns structures and
  43990. unions of any size by copying the data into an area of static
  43991. storage, and then returning the address of that storage as if it
  43992. were a pointer value. The caller must copy the data from that
  43993. memory area to the place where the value is wanted. GCC does not
  43994. use this method because it is slower and nonreentrant.
  43995. On some newer machines, PCC uses a reentrant convention for all
  43996. structure and union returning. GCC on most of these machines uses
  43997. a compatible convention when returning structures and unions in
  43998. memory, but still returns small structures and unions in registers.
  43999. You can tell GCC to use a compatible convention for all structure
  44000. and union returning with the option '-fpcc-struct-return'.
  44001. * GCC complains about program fragments such as '0x74ae-0x4000' which
  44002. appear to be two hexadecimal constants separated by the minus
  44003. operator. Actually, this string is a single "preprocessing token".
  44004. Each such token must correspond to one token in C. Since this does
  44005. not, GCC prints an error message. Although it may appear obvious
  44006. that what is meant is an operator and two values, the ISO C
  44007. standard specifically requires that this be treated as erroneous.
  44008. A "preprocessing token" is a "preprocessing number" if it begins
  44009. with a digit and is followed by letters, underscores, digits,
  44010. periods and 'e+', 'e-', 'E+', 'E-', 'p+', 'p-', 'P+', or 'P-'
  44011. character sequences. (In strict C90 mode, the sequences 'p+',
  44012. 'p-', 'P+' and 'P-' cannot appear in preprocessing numbers.)
  44013. To make the above program fragment valid, place whitespace in front
  44014. of the minus sign. This whitespace will end the preprocessing
  44015. number.
  44016. 
  44017. File: gcc.info, Node: Fixed Headers, Next: Standard Libraries, Prev: Incompatibilities, Up: Trouble
  44018. 13.4 Fixed Header Files
  44019. =======================
  44020. GCC needs to install corrected versions of some system header files.
  44021. This is because most target systems have some header files that won't
  44022. work with GCC unless they are changed. Some have bugs, some are
  44023. incompatible with ISO C, and some depend on special features of other
  44024. compilers.
  44025. Installing GCC automatically creates and installs the fixed header
  44026. files, by running a program called 'fixincludes'. Normally, you don't
  44027. need to pay attention to this. But there are cases where it doesn't do
  44028. the right thing automatically.
  44029. * If you update the system's header files, such as by installing a
  44030. new system version, the fixed header files of GCC are not
  44031. automatically updated. They can be updated using the 'mkheaders'
  44032. script installed in 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  44033. * On some systems, header file directories contain machine-specific
  44034. symbolic links in certain places. This makes it possible to share
  44035. most of the header files among hosts running the same version of
  44036. the system on different machine models.
  44037. The programs that fix the header files do not understand this
  44038. special way of using symbolic links; therefore, the directory of
  44039. fixed header files is good only for the machine model used to build
  44040. it.
  44041. It is possible to make separate sets of fixed header files for the
  44042. different machine models, and arrange a structure of symbolic links
  44043. so as to use the proper set, but you'll have to do this by hand.
  44044. 
  44045. File: gcc.info, Node: Standard Libraries, Next: Disappointments, Prev: Fixed Headers, Up: Trouble
  44046. 13.5 Standard Libraries
  44047. =======================
  44048. GCC by itself attempts to be a conforming freestanding implementation.
  44049. *Note Language Standards Supported by GCC: Standards, for details of
  44050. what this means. Beyond the library facilities required of such an
  44051. implementation, the rest of the C library is supplied by the vendor of
  44052. the operating system. If that C library doesn't conform to the C
  44053. standards, then your programs might get warnings (especially when using
  44054. '-Wall') that you don't expect.
  44055. For example, the 'sprintf' function on SunOS 4.1.3 returns 'char *'
  44056. while the C standard says that 'sprintf' returns an 'int'. The
  44057. 'fixincludes' program could make the prototype for this function match
  44058. the Standard, but that would be wrong, since the function will still
  44059. return 'char *'.
  44060. If you need a Standard compliant library, then you need to find one, as
  44061. GCC does not provide one. The GNU C library (called 'glibc') provides
  44062. ISO C, POSIX, BSD, SystemV and X/Open compatibility for GNU/Linux and
  44063. HURD-based GNU systems; no recent version of it supports other systems,
  44064. though some very old versions did. Version 2.2 of the GNU C library
  44065. includes nearly complete C99 support. You could also ask your operating
  44066. system vendor if newer libraries are available.
  44067. 
  44068. File: gcc.info, Node: Disappointments, Next: C++ Misunderstandings, Prev: Standard Libraries, Up: Trouble
  44069. 13.6 Disappointments and Misunderstandings
  44070. ==========================================
  44071. These problems are perhaps regrettable, but we don't know any practical
  44072. way around them.
  44073. * Certain local variables aren't recognized by debuggers when you
  44074. compile with optimization.
  44075. This occurs because sometimes GCC optimizes the variable out of
  44076. existence. There is no way to tell the debugger how to compute the
  44077. value such a variable "would have had", and it is not clear that
  44078. would be desirable anyway. So GCC simply does not mention the
  44079. eliminated variable when it writes debugging information.
  44080. You have to expect a certain amount of disagreement between the
  44081. executable and your source code, when you use optimization.
  44082. * Users often think it is a bug when GCC reports an error for code
  44083. like this:
  44084. int foo (struct mumble *);
  44085. struct mumble { ... };
  44086. int foo (struct mumble *x)
  44087. { ... }
  44088. This code really is erroneous, because the scope of 'struct mumble'
  44089. in the prototype is limited to the argument list containing it. It
  44090. does not refer to the 'struct mumble' defined with file scope
  44091. immediately below--they are two unrelated types with similar names
  44092. in different scopes.
  44093. But in the definition of 'foo', the file-scope type is used because
  44094. that is available to be inherited. Thus, the definition and the
  44095. prototype do not match, and you get an error.
  44096. This behavior may seem silly, but it's what the ISO standard
  44097. specifies. It is easy enough for you to make your code work by
  44098. moving the definition of 'struct mumble' above the prototype. It's
  44099. not worth being incompatible with ISO C just to avoid an error for
  44100. the example shown above.
  44101. * Accesses to bit-fields even in volatile objects works by accessing
  44102. larger objects, such as a byte or a word. You cannot rely on what
  44103. size of object is accessed in order to read or write the bit-field;
  44104. it may even vary for a given bit-field according to the precise
  44105. usage.
  44106. If you care about controlling the amount of memory that is
  44107. accessed, use volatile but do not use bit-fields.
  44108. * GCC comes with shell scripts to fix certain known problems in
  44109. system header files. They install corrected copies of various
  44110. header files in a special directory where only GCC will normally
  44111. look for them. The scripts adapt to various systems by searching
  44112. all the system header files for the problem cases that we know
  44113. about.
  44114. If new system header files are installed, nothing automatically
  44115. arranges to update the corrected header files. They can be updated
  44116. using the 'mkheaders' script installed in
  44117. 'LIBEXECDIR/gcc/TARGET/VERSION/install-tools/'.
  44118. * On 68000 and x86 systems, for instance, you can get paradoxical
  44119. results if you test the precise values of floating point numbers.
  44120. For example, you can find that a floating point value which is not
  44121. a NaN is not equal to itself. This results from the fact that the
  44122. floating point registers hold a few more bits of precision than fit
  44123. in a 'double' in memory. Compiled code moves values between memory
  44124. and floating point registers at its convenience, and moving them
  44125. into memory truncates them.
  44126. You can partially avoid this problem by using the '-ffloat-store'
  44127. option (*note Optimize Options::).
  44128. * On AIX and other platforms without weak symbol support, templates
  44129. need to be instantiated explicitly and symbols for static members
  44130. of templates will not be generated.
  44131. * On AIX, GCC scans object files and library archives for static
  44132. constructors and destructors when linking an application before the
  44133. linker prunes unreferenced symbols. This is necessary to prevent
  44134. the AIX linker from mistakenly assuming that static constructor or
  44135. destructor are unused and removing them before the scanning can
  44136. occur. All static constructors and destructors found will be
  44137. referenced even though the modules in which they occur may not be
  44138. used by the program. This may lead to both increased executable
  44139. size and unexpected symbol references.
  44140. 
  44141. File: gcc.info, Node: C++ Misunderstandings, Next: Non-bugs, Prev: Disappointments, Up: Trouble
  44142. 13.7 Common Misunderstandings with GNU C++
  44143. ==========================================
  44144. C++ is a complex language and an evolving one, and its standard
  44145. definition (the ISO C++ standard) was only recently completed. As a
  44146. result, your C++ compiler may occasionally surprise you, even when its
  44147. behavior is correct. This section discusses some areas that frequently
  44148. give rise to questions of this sort.
  44149. * Menu:
  44150. * Static Definitions:: Static member declarations are not definitions
  44151. * Name lookup:: Name lookup, templates, and accessing members of base classes
  44152. * Temporaries:: Temporaries may vanish before you expect
  44153. * Copy Assignment:: Copy Assignment operators copy virtual bases twice
  44154. 
  44155. File: gcc.info, Node: Static Definitions, Next: Name lookup, Up: C++ Misunderstandings
  44156. 13.7.1 Declare _and_ Define Static Members
  44157. ------------------------------------------
  44158. When a class has static data members, it is not enough to _declare_ the
  44159. static member; you must also _define_ it. For example:
  44160. class Foo
  44161. {
  44162. ...
  44163. void method();
  44164. static int bar;
  44165. };
  44166. This declaration only establishes that the class 'Foo' has an 'int'
  44167. named 'Foo::bar', and a member function named 'Foo::method'. But you
  44168. still need to define _both_ 'method' and 'bar' elsewhere. According to
  44169. the ISO standard, you must supply an initializer in one (and only one)
  44170. source file, such as:
  44171. int Foo::bar = 0;
  44172. Other C++ compilers may not correctly implement the standard behavior.
  44173. As a result, when you switch to 'g++' from one of these compilers, you
  44174. may discover that a program that appeared to work correctly in fact does
  44175. not conform to the standard: 'g++' reports as undefined symbols any
  44176. static data members that lack definitions.
  44177. 
  44178. File: gcc.info, Node: Name lookup, Next: Temporaries, Prev: Static Definitions, Up: C++ Misunderstandings
  44179. 13.7.2 Name Lookup, Templates, and Accessing Members of Base Classes
  44180. --------------------------------------------------------------------
  44181. The C++ standard prescribes that all names that are not dependent on
  44182. template parameters are bound to their present definitions when parsing
  44183. a template function or class.(1) Only names that are dependent are
  44184. looked up at the point of instantiation. For example, consider
  44185. void foo(double);
  44186. struct A {
  44187. template <typename T>
  44188. void f () {
  44189. foo (1); // 1
  44190. int i = N; // 2
  44191. T t;
  44192. t.bar(); // 3
  44193. foo (t); // 4
  44194. }
  44195. static const int N;
  44196. };
  44197. Here, the names 'foo' and 'N' appear in a context that does not depend
  44198. on the type of 'T'. The compiler will thus require that they are
  44199. defined in the context of use in the template, not only before the point
  44200. of instantiation, and will here use '::foo(double)' and 'A::N',
  44201. respectively. In particular, it will convert the integer value to a
  44202. 'double' when passing it to '::foo(double)'.
  44203. Conversely, 'bar' and the call to 'foo' in the fourth marked line are
  44204. used in contexts that do depend on the type of 'T', so they are only
  44205. looked up at the point of instantiation, and you can provide
  44206. declarations for them after declaring the template, but before
  44207. instantiating it. In particular, if you instantiate 'A::f<int>', the
  44208. last line will call an overloaded '::foo(int)' if one was provided, even
  44209. if after the declaration of 'struct A'.
  44210. This distinction between lookup of dependent and non-dependent names is
  44211. called two-stage (or dependent) name lookup. G++ implements it since
  44212. version 3.4.
  44213. Two-stage name lookup sometimes leads to situations with behavior
  44214. different from non-template codes. The most common is probably this:
  44215. template <typename T> struct Base {
  44216. int i;
  44217. };
  44218. template <typename T> struct Derived : public Base<T> {
  44219. int get_i() { return i; }
  44220. };
  44221. In 'get_i()', 'i' is not used in a dependent context, so the compiler
  44222. will look for a name declared at the enclosing namespace scope (which is
  44223. the global scope here). It will not look into the base class, since
  44224. that is dependent and you may declare specializations of 'Base' even
  44225. after declaring 'Derived', so the compiler cannot really know what 'i'
  44226. would refer to. If there is no global variable 'i', then you will get
  44227. an error message.
  44228. In order to make it clear that you want the member of the base class,
  44229. you need to defer lookup until instantiation time, at which the base
  44230. class is known. For this, you need to access 'i' in a dependent
  44231. context, by either using 'this->i' (remember that 'this' is of type
  44232. 'Derived<T>*', so is obviously dependent), or using 'Base<T>::i'.
  44233. Alternatively, 'Base<T>::i' might be brought into scope by a
  44234. 'using'-declaration.
  44235. Another, similar example involves calling member functions of a base
  44236. class:
  44237. template <typename T> struct Base {
  44238. int f();
  44239. };
  44240. template <typename T> struct Derived : Base<T> {
  44241. int g() { return f(); };
  44242. };
  44243. Again, the call to 'f()' is not dependent on template arguments (there
  44244. are no arguments that depend on the type 'T', and it is also not
  44245. otherwise specified that the call should be in a dependent context).
  44246. Thus a global declaration of such a function must be available, since
  44247. the one in the base class is not visible until instantiation time. The
  44248. compiler will consequently produce the following error message:
  44249. x.cc: In member function `int Derived<T>::g()':
  44250. x.cc:6: error: there are no arguments to `f' that depend on a template
  44251. parameter, so a declaration of `f' must be available
  44252. x.cc:6: error: (if you use `-fpermissive', G++ will accept your code, but
  44253. allowing the use of an undeclared name is deprecated)
  44254. To make the code valid either use 'this->f()', or 'Base<T>::f()'.
  44255. Using the '-fpermissive' flag will also let the compiler accept the
  44256. code, by marking all function calls for which no declaration is visible
  44257. at the time of definition of the template for later lookup at
  44258. instantiation time, as if it were a dependent call. We do not recommend
  44259. using '-fpermissive' to work around invalid code, and it will also only
  44260. catch cases where functions in base classes are called, not where
  44261. variables in base classes are used (as in the example above).
  44262. Note that some compilers (including G++ versions prior to 3.4) get
  44263. these examples wrong and accept above code without an error. Those
  44264. compilers do not implement two-stage name lookup correctly.
  44265. ---------- Footnotes ----------
  44266. (1) The C++ standard just uses the term "dependent" for names that
  44267. depend on the type or value of template parameters. This shorter term
  44268. will also be used in the rest of this section.
  44269. 
  44270. File: gcc.info, Node: Temporaries, Next: Copy Assignment, Prev: Name lookup, Up: C++ Misunderstandings
  44271. 13.7.3 Temporaries May Vanish Before You Expect
  44272. -----------------------------------------------
  44273. It is dangerous to use pointers or references to _portions_ of a
  44274. temporary object. The compiler may very well delete the object before
  44275. you expect it to, leaving a pointer to garbage. The most common place
  44276. where this problem crops up is in classes like string classes,
  44277. especially ones that define a conversion function to type 'char *' or
  44278. 'const char *'--which is one reason why the standard 'string' class
  44279. requires you to call the 'c_str' member function. However, any class
  44280. that returns a pointer to some internal structure is potentially subject
  44281. to this problem.
  44282. For example, a program may use a function 'strfunc' that returns
  44283. 'string' objects, and another function 'charfunc' that operates on
  44284. pointers to 'char':
  44285. string strfunc ();
  44286. void charfunc (const char *);
  44287. void
  44288. f ()
  44289. {
  44290. const char *p = strfunc().c_str();
  44291. ...
  44292. charfunc (p);
  44293. ...
  44294. charfunc (p);
  44295. }
  44296. In this situation, it may seem reasonable to save a pointer to the C
  44297. string returned by the 'c_str' member function and use that rather than
  44298. call 'c_str' repeatedly. However, the temporary string created by the
  44299. call to 'strfunc' is destroyed after 'p' is initialized, at which point
  44300. 'p' is left pointing to freed memory.
  44301. Code like this may run successfully under some other compilers,
  44302. particularly obsolete cfront-based compilers that delete temporaries
  44303. along with normal local variables. However, the GNU C++ behavior is
  44304. standard-conforming, so if your program depends on late destruction of
  44305. temporaries it is not portable.
  44306. The safe way to write such code is to give the temporary a name, which
  44307. forces it to remain until the end of the scope of the name. For
  44308. example:
  44309. const string& tmp = strfunc ();
  44310. charfunc (tmp.c_str ());
  44311. 
  44312. File: gcc.info, Node: Copy Assignment, Prev: Temporaries, Up: C++ Misunderstandings
  44313. 13.7.4 Implicit Copy-Assignment for Virtual Bases
  44314. -------------------------------------------------
  44315. When a base class is virtual, only one subobject of the base class
  44316. belongs to each full object. Also, the constructors and destructors are
  44317. invoked only once, and called from the most-derived class. However,
  44318. such objects behave unspecified when being assigned. For example:
  44319. struct Base{
  44320. char *name;
  44321. Base(char *n) : name(strdup(n)){}
  44322. Base& operator= (const Base& other){
  44323. free (name);
  44324. name = strdup (other.name);
  44325. }
  44326. };
  44327. struct A:virtual Base{
  44328. int val;
  44329. A():Base("A"){}
  44330. };
  44331. struct B:virtual Base{
  44332. int bval;
  44333. B():Base("B"){}
  44334. };
  44335. struct Derived:public A, public B{
  44336. Derived():Base("Derived"){}
  44337. };
  44338. void func(Derived &d1, Derived &d2)
  44339. {
  44340. d1 = d2;
  44341. }
  44342. The C++ standard specifies that 'Base::Base' is only called once when
  44343. constructing or copy-constructing a Derived object. It is unspecified
  44344. whether 'Base::operator=' is called more than once when the implicit
  44345. copy-assignment for Derived objects is invoked (as it is inside 'func'
  44346. in the example).
  44347. G++ implements the "intuitive" algorithm for copy-assignment: assign
  44348. all direct bases, then assign all members. In that algorithm, the
  44349. virtual base subobject can be encountered more than once. In the
  44350. example, copying proceeds in the following order: 'val', 'name' (via
  44351. 'strdup'), 'bval', and 'name' again.
  44352. If application code relies on copy-assignment, a user-defined
  44353. copy-assignment operator removes any uncertainties. With such an
  44354. operator, the application can define whether and how the virtual base
  44355. subobject is assigned.
  44356. 
  44357. File: gcc.info, Node: Non-bugs, Next: Warnings and Errors, Prev: C++ Misunderstandings, Up: Trouble
  44358. 13.8 Certain Changes We Don't Want to Make
  44359. ==========================================
  44360. This section lists changes that people frequently request, but which we
  44361. do not make because we think GCC is better without them.
  44362. * Checking the number and type of arguments to a function which has
  44363. an old-fashioned definition and no prototype.
  44364. Such a feature would work only occasionally--only for calls that
  44365. appear in the same file as the called function, following the
  44366. definition. The only way to check all calls reliably is to add a
  44367. prototype for the function. But adding a prototype eliminates the
  44368. motivation for this feature. So the feature is not worthwhile.
  44369. * Warning about using an expression whose type is signed as a shift
  44370. count.
  44371. Shift count operands are probably signed more often than unsigned.
  44372. Warning about this would cause far more annoyance than good.
  44373. * Warning about assigning a signed value to an unsigned variable.
  44374. Such assignments must be very common; warning about them would
  44375. cause more annoyance than good.
  44376. * Warning when a non-void function value is ignored.
  44377. C contains many standard functions that return a value that most
  44378. programs choose to ignore. One obvious example is 'printf'.
  44379. Warning about this practice only leads the defensive programmer to
  44380. clutter programs with dozens of casts to 'void'. Such casts are
  44381. required so frequently that they become visual noise. Writing
  44382. those casts becomes so automatic that they no longer convey useful
  44383. information about the intentions of the programmer. For functions
  44384. where the return value should never be ignored, use the
  44385. 'warn_unused_result' function attribute (*note Function
  44386. Attributes::).
  44387. * Making '-fshort-enums' the default.
  44388. This would cause storage layout to be incompatible with most other
  44389. C compilers. And it doesn't seem very important, given that you
  44390. can get the same result in other ways. The case where it matters
  44391. most is when the enumeration-valued object is inside a structure,
  44392. and in that case you can specify a field width explicitly.
  44393. * Making bit-fields unsigned by default on particular machines where
  44394. "the ABI standard" says to do so.
  44395. The ISO C standard leaves it up to the implementation whether a
  44396. bit-field declared plain 'int' is signed or not. This in effect
  44397. creates two alternative dialects of C.
  44398. The GNU C compiler supports both dialects; you can specify the
  44399. signed dialect with '-fsigned-bitfields' and the unsigned dialect
  44400. with '-funsigned-bitfields'. However, this leaves open the
  44401. question of which dialect to use by default.
  44402. Currently, the preferred dialect makes plain bit-fields signed,
  44403. because this is simplest. Since 'int' is the same as 'signed int'
  44404. in every other context, it is cleanest for them to be the same in
  44405. bit-fields as well.
  44406. Some computer manufacturers have published Application Binary
  44407. Interface standards which specify that plain bit-fields should be
  44408. unsigned. It is a mistake, however, to say anything about this
  44409. issue in an ABI. This is because the handling of plain bit-fields
  44410. distinguishes two dialects of C. Both dialects are meaningful on
  44411. every type of machine. Whether a particular object file was
  44412. compiled using signed bit-fields or unsigned is of no concern to
  44413. other object files, even if they access the same bit-fields in the
  44414. same data structures.
  44415. A given program is written in one or the other of these two
  44416. dialects. The program stands a chance to work on most any machine
  44417. if it is compiled with the proper dialect. It is unlikely to work
  44418. at all if compiled with the wrong dialect.
  44419. Many users appreciate the GNU C compiler because it provides an
  44420. environment that is uniform across machines. These users would be
  44421. inconvenienced if the compiler treated plain bit-fields differently
  44422. on certain machines.
  44423. Occasionally users write programs intended only for a particular
  44424. machine type. On these occasions, the users would benefit if the
  44425. GNU C compiler were to support by default the same dialect as the
  44426. other compilers on that machine. But such applications are rare.
  44427. And users writing a program to run on more than one type of machine
  44428. cannot possibly benefit from this kind of compatibility.
  44429. This is why GCC does and will treat plain bit-fields in the same
  44430. fashion on all types of machines (by default).
  44431. There are some arguments for making bit-fields unsigned by default
  44432. on all machines. If, for example, this becomes a universal de
  44433. facto standard, it would make sense for GCC to go along with it.
  44434. This is something to be considered in the future.
  44435. (Of course, users strongly concerned about portability should
  44436. indicate explicitly in each bit-field whether it is signed or not.
  44437. In this way, they write programs which have the same meaning in
  44438. both C dialects.)
  44439. * Undefining '__STDC__' when '-ansi' is not used.
  44440. Currently, GCC defines '__STDC__' unconditionally. This provides
  44441. good results in practice.
  44442. Programmers normally use conditionals on '__STDC__' to ask whether
  44443. it is safe to use certain features of ISO C, such as function
  44444. prototypes or ISO token concatenation. Since plain 'gcc' supports
  44445. all the features of ISO C, the correct answer to these questions is
  44446. "yes".
  44447. Some users try to use '__STDC__' to check for the availability of
  44448. certain library facilities. This is actually incorrect usage in an
  44449. ISO C program, because the ISO C standard says that a conforming
  44450. freestanding implementation should define '__STDC__' even though it
  44451. does not have the library facilities. 'gcc -ansi -pedantic' is a
  44452. conforming freestanding implementation, and it is therefore
  44453. required to define '__STDC__', even though it does not come with an
  44454. ISO C library.
  44455. Sometimes people say that defining '__STDC__' in a compiler that
  44456. does not completely conform to the ISO C standard somehow violates
  44457. the standard. This is illogical. The standard is a standard for
  44458. compilers that claim to support ISO C, such as 'gcc -ansi'--not for
  44459. other compilers such as plain 'gcc'. Whatever the ISO C standard
  44460. says is relevant to the design of plain 'gcc' without '-ansi' only
  44461. for pragmatic reasons, not as a requirement.
  44462. GCC normally defines '__STDC__' to be 1, and in addition defines
  44463. '__STRICT_ANSI__' if you specify the '-ansi' option, or a '-std'
  44464. option for strict conformance to some version of ISO C. On some
  44465. hosts, system include files use a different convention, where
  44466. '__STDC__' is normally 0, but is 1 if the user specifies strict
  44467. conformance to the C Standard. GCC follows the host convention
  44468. when processing system include files, but when processing user
  44469. files it follows the usual GNU C convention.
  44470. * Undefining '__STDC__' in C++.
  44471. Programs written to compile with C++-to-C translators get the value
  44472. of '__STDC__' that goes with the C compiler that is subsequently
  44473. used. These programs must test '__STDC__' to determine what kind
  44474. of C preprocessor that compiler uses: whether they should
  44475. concatenate tokens in the ISO C fashion or in the traditional
  44476. fashion.
  44477. These programs work properly with GNU C++ if '__STDC__' is defined.
  44478. They would not work otherwise.
  44479. In addition, many header files are written to provide prototypes in
  44480. ISO C but not in traditional C. Many of these header files can
  44481. work without change in C++ provided '__STDC__' is defined. If
  44482. '__STDC__' is not defined, they will all fail, and will all need to
  44483. be changed to test explicitly for C++ as well.
  44484. * Deleting "empty" loops.
  44485. Historically, GCC has not deleted "empty" loops under the
  44486. assumption that the most likely reason you would put one in a
  44487. program is to have a delay, so deleting them will not make real
  44488. programs run any faster.
  44489. However, the rationale here is that optimization of a nonempty loop
  44490. cannot produce an empty one. This held for carefully written C
  44491. compiled with less powerful optimizers but is not always the case
  44492. for carefully written C++ or with more powerful optimizers. Thus
  44493. GCC will remove operations from loops whenever it can determine
  44494. those operations are not externally visible (apart from the time
  44495. taken to execute them, of course). In case the loop can be proved
  44496. to be finite, GCC will also remove the loop itself.
  44497. Be aware of this when performing timing tests, for instance the
  44498. following loop can be completely removed, provided
  44499. 'some_expression' can provably not change any global state.
  44500. {
  44501. int sum = 0;
  44502. int ix;
  44503. for (ix = 0; ix != 10000; ix++)
  44504. sum += some_expression;
  44505. }
  44506. Even though 'sum' is accumulated in the loop, no use is made of
  44507. that summation, so the accumulation can be removed.
  44508. * Making side effects happen in the same order as in some other
  44509. compiler.
  44510. It is never safe to depend on the order of evaluation of side
  44511. effects. For example, a function call like this may very well
  44512. behave differently from one compiler to another:
  44513. void func (int, int);
  44514. int i = 2;
  44515. func (i++, i++);
  44516. There is no guarantee (in either the C or the C++ standard language
  44517. definitions) that the increments will be evaluated in any
  44518. particular order. Either increment might happen first. 'func'
  44519. might get the arguments '2, 3', or it might get '3, 2', or even '2,
  44520. 2'.
  44521. * Making certain warnings into errors by default.
  44522. Some ISO C testsuites report failure when the compiler does not
  44523. produce an error message for a certain program.
  44524. ISO C requires a "diagnostic" message for certain kinds of invalid
  44525. programs, but a warning is defined by GCC to count as a diagnostic.
  44526. If GCC produces a warning but not an error, that is correct ISO C
  44527. support. If testsuites call this "failure", they should be run
  44528. with the GCC option '-pedantic-errors', which will turn these
  44529. warnings into errors.
  44530. 
  44531. File: gcc.info, Node: Warnings and Errors, Prev: Non-bugs, Up: Trouble
  44532. 13.9 Warning Messages and Error Messages
  44533. ========================================
  44534. The GNU compiler can produce two kinds of diagnostics: errors and
  44535. warnings. Each kind has a different purpose:
  44536. "Errors" report problems that make it impossible to compile your
  44537. program. GCC reports errors with the source file name and line
  44538. number where the problem is apparent.
  44539. "Warnings" report other unusual conditions in your code that _may_
  44540. indicate a problem, although compilation can (and does) proceed.
  44541. Warning messages also report the source file name and line number,
  44542. but include the text 'warning:' to distinguish them from error
  44543. messages.
  44544. Warnings may indicate danger points where you should check to make sure
  44545. that your program really does what you intend; or the use of obsolete
  44546. features; or the use of nonstandard features of GNU C or C++. Many
  44547. warnings are issued only if you ask for them, with one of the '-W'
  44548. options (for instance, '-Wall' requests a variety of useful warnings).
  44549. GCC always tries to compile your program if possible; it never
  44550. gratuitously rejects a program whose meaning is clear merely because
  44551. (for instance) it fails to conform to a standard. In some cases,
  44552. however, the C and C++ standards specify that certain extensions are
  44553. forbidden, and a diagnostic _must_ be issued by a conforming compiler.
  44554. The '-pedantic' option tells GCC to issue warnings in such cases;
  44555. '-pedantic-errors' says to make them errors instead. This does not mean
  44556. that _all_ non-ISO constructs get warnings or errors.
  44557. *Note Options to Request or Suppress Warnings: Warning Options, for
  44558. more detail on these and related command-line options.
  44559. 
  44560. File: gcc.info, Node: Bugs, Next: Service, Prev: Trouble, Up: Top
  44561. 14 Reporting Bugs
  44562. *****************
  44563. Your bug reports play an essential role in making GCC reliable.
  44564. When you encounter a problem, the first thing to do is to see if it is
  44565. already known. *Note Trouble::. If it isn't known, then you should
  44566. report the problem.
  44567. * Menu:
  44568. * Criteria: Bug Criteria. Have you really found a bug?
  44569. * Reporting: Bug Reporting. How to report a bug effectively.
  44570. 
  44571. File: gcc.info, Node: Bug Criteria, Next: Bug Reporting, Up: Bugs
  44572. 14.1 Have You Found a Bug?
  44573. ==========================
  44574. If you are not sure whether you have found a bug, here are some
  44575. guidelines:
  44576. * If the compiler gets a fatal signal, for any input whatever, that
  44577. is a compiler bug. Reliable compilers never crash.
  44578. * If the compiler produces invalid assembly code, for any input
  44579. whatever (except an 'asm' statement), that is a compiler bug,
  44580. unless the compiler reports errors (not just warnings) which would
  44581. ordinarily prevent the assembler from being run.
  44582. * If the compiler produces valid assembly code that does not
  44583. correctly execute the input source code, that is a compiler bug.
  44584. However, you must double-check to make sure, because you may have a
  44585. program whose behavior is undefined, which happened by chance to
  44586. give the desired results with another C or C++ compiler.
  44587. For example, in many nonoptimizing compilers, you can write 'x;' at
  44588. the end of a function instead of 'return x;', with the same
  44589. results. But the value of the function is undefined if 'return' is
  44590. omitted; it is not a bug when GCC produces different results.
  44591. Problems often result from expressions with two increment
  44592. operators, as in 'f (*p++, *p++)'. Your previous compiler might
  44593. have interpreted that expression the way you intended; GCC might
  44594. interpret it another way. Neither compiler is wrong. The bug is
  44595. in your code.
  44596. After you have localized the error to a single source line, it
  44597. should be easy to check for these things. If your program is
  44598. correct and well defined, you have found a compiler bug.
  44599. * If the compiler produces an error message for valid input, that is
  44600. a compiler bug.
  44601. * If the compiler does not produce an error message for invalid
  44602. input, that is a compiler bug. However, you should note that your
  44603. idea of "invalid input" might be someone else's idea of "an
  44604. extension" or "support for traditional practice".
  44605. * If you are an experienced user of one of the languages GCC
  44606. supports, your suggestions for improvement of GCC are welcome in
  44607. any case.
  44608. 
  44609. File: gcc.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Bugs
  44610. 14.2 How and Where to Report Bugs
  44611. =================================
  44612. Bugs should be reported to the bug database at
  44613. <https://github.com/sifive/freedom-tools/issues>.
  44614. 
  44615. File: gcc.info, Node: Service, Next: Contributing, Prev: Bugs, Up: Top
  44616. 15 How To Get Help with GCC
  44617. ***************************
  44618. If you need help installing, using or changing GCC, there are two ways
  44619. to find it:
  44620. * Send a message to a suitable network mailing list. First try
  44621. <gcc-help@gcc.gnu.org> (for help installing or using GCC), and if
  44622. that brings no response, try <gcc@gcc.gnu.org>. For help changing
  44623. GCC, ask <gcc@gcc.gnu.org>. If you think you have found a bug in
  44624. GCC, please report it following the instructions at *note Bug
  44625. Reporting::.
  44626. * Look in the service directory for someone who might help you for a
  44627. fee. The service directory is found at
  44628. <http://www.fsf.org/resources/service>.
  44629. For further information, see <http://gcc.gnu.org/faq.html#support>.
  44630. 
  44631. File: gcc.info, Node: Contributing, Next: Funding, Prev: Service, Up: Top
  44632. 16 Contributing to GCC Development
  44633. **********************************
  44634. If you would like to help pretest GCC releases to assure they work well,
  44635. current development sources are available by SVN (see
  44636. <http://gcc.gnu.org/svn.html>). Source and binary snapshots are also
  44637. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  44638. If you would like to work on improvements to GCC, please read the
  44639. advice at these URLs:
  44640. <http://gcc.gnu.org/contribute.html>
  44641. <http://gcc.gnu.org/contributewhy.html>
  44642. for information on how to make useful contributions and avoid
  44643. duplication of effort. Suggested projects are listed at
  44644. <http://gcc.gnu.org/projects/>.
  44645. 
  44646. File: gcc.info, Node: Funding, Next: GNU Project, Prev: Contributing, Up: Top
  44647. Funding Free Software
  44648. *********************
  44649. If you want to have more free software a few years from now, it makes
  44650. sense for you to help encourage people to contribute funds for its
  44651. development. The most effective approach known is to encourage
  44652. commercial redistributors to donate.
  44653. Users of free software systems can boost the pace of development by
  44654. encouraging for-a-fee distributors to donate part of their selling price
  44655. to free software developers--the Free Software Foundation, and others.
  44656. The way to convince distributors to do this is to demand it and expect
  44657. it from them. So when you compare distributors, judge them partly by
  44658. how much they give to free software development. Show distributors they
  44659. must compete to be the one who gives the most.
  44660. To make this approach work, you must insist on numbers that you can
  44661. compare, such as, "We will donate ten dollars to the Frobnitz project
  44662. for each disk sold." Don't be satisfied with a vague promise, such as
  44663. "A portion of the profits are donated," since it doesn't give a basis
  44664. for comparison.
  44665. Even a precise fraction "of the profits from this disk" is not very
  44666. meaningful, since creative accounting and unrelated business decisions
  44667. can greatly alter what fraction of the sales price counts as profit. If
  44668. the price you pay is $50, ten percent of the profit is probably less
  44669. than a dollar; it might be a few cents, or nothing at all.
  44670. Some redistributors do development work themselves. This is useful
  44671. too; but to keep everyone honest, you need to inquire how much they do,
  44672. and what kind. Some kinds of development make much more long-term
  44673. difference than others. For example, maintaining a separate version of
  44674. a program contributes very little; maintaining the standard version of a
  44675. program for the whole community contributes much. Easy new ports
  44676. contribute little, since someone else would surely do them; difficult
  44677. ports such as adding a new CPU to the GNU Compiler Collection contribute
  44678. more; major new features or packages contribute the most.
  44679. By establishing the idea that supporting further development is "the
  44680. proper thing to do" when distributing free software for a fee, we can
  44681. assure a steady flow of resources into making more free software.
  44682. Copyright (C) 1994 Free Software Foundation, Inc.
  44683. Verbatim copying and redistribution of this section is permitted
  44684. without royalty; alteration is not permitted.
  44685. 
  44686. File: gcc.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  44687. The GNU Project and GNU/Linux
  44688. *****************************
  44689. The GNU Project was launched in 1984 to develop a complete Unix-like
  44690. operating system which is free software: the GNU system. (GNU is a
  44691. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  44692. Variants of the GNU operating system, which use the kernel Linux, are
  44693. now widely used; though these systems are often referred to as "Linux",
  44694. they are more accurately called GNU/Linux systems.
  44695. For more information, see:
  44696. <http://www.gnu.org/>
  44697. <http://www.gnu.org/gnu/linux-and-gnu.html>
  44698. 
  44699. File: gcc.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  44700. GNU General Public License
  44701. **************************
  44702. Version 3, 29 June 2007
  44703. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  44704. Everyone is permitted to copy and distribute verbatim copies of this
  44705. license document, but changing it is not allowed.
  44706. Preamble
  44707. ========
  44708. The GNU General Public License is a free, copyleft license for software
  44709. and other kinds of works.
  44710. The licenses for most software and other practical works are designed
  44711. to take away your freedom to share and change the works. By contrast,
  44712. the GNU General Public License is intended to guarantee your freedom to
  44713. share and change all versions of a program-to make sure it remains free
  44714. software for all its users. We, the Free Software Foundation, use the
  44715. GNU General Public License for most of our software; it applies also to
  44716. any other work released this way by its authors. You can apply it to
  44717. your programs, too.
  44718. When we speak of free software, we are referring to freedom, not price.
  44719. Our General Public Licenses are designed to make sure that you have the
  44720. freedom to distribute copies of free software (and charge for them if
  44721. you wish), that you receive source code or can get it if you want it,
  44722. that you can change the software or use pieces of it in new free
  44723. programs, and that you know you can do these things.
  44724. To protect your rights, we need to prevent others from denying you
  44725. these rights or asking you to surrender the rights. Therefore, you have
  44726. certain responsibilities if you distribute copies of the software, or if
  44727. you modify it: responsibilities to respect the freedom of others.
  44728. For example, if you distribute copies of such a program, whether gratis
  44729. or for a fee, you must pass on to the recipients the same freedoms that
  44730. you received. You must make sure that they, too, receive or can get the
  44731. source code. And you must show them these terms so they know their
  44732. rights.
  44733. Developers that use the GNU GPL protect your rights with two steps: (1)
  44734. assert copyright on the software, and (2) offer you this License giving
  44735. you legal permission to copy, distribute and/or modify it.
  44736. For the developers' and authors' protection, the GPL clearly explains
  44737. that there is no warranty for this free software. For both users' and
  44738. authors' sake, the GPL requires that modified versions be marked as
  44739. changed, so that their problems will not be attributed erroneously to
  44740. authors of previous versions.
  44741. Some devices are designed to deny users access to install or run
  44742. modified versions of the software inside them, although the manufacturer
  44743. can do so. This is fundamentally incompatible with the aim of
  44744. protecting users' freedom to change the software. The systematic
  44745. pattern of such abuse occurs in the area of products for individuals to
  44746. use, which is precisely where it is most unacceptable. Therefore, we
  44747. have designed this version of the GPL to prohibit the practice for those
  44748. products. If such problems arise substantially in other domains, we
  44749. stand ready to extend this provision to those domains in future versions
  44750. of the GPL, as needed to protect the freedom of users.
  44751. Finally, every program is threatened constantly by software patents.
  44752. States should not allow patents to restrict development and use of
  44753. software on general-purpose computers, but in those that do, we wish to
  44754. avoid the special danger that patents applied to a free program could
  44755. make it effectively proprietary. To prevent this, the GPL assures that
  44756. patents cannot be used to render the program non-free.
  44757. The precise terms and conditions for copying, distribution and
  44758. modification follow.
  44759. TERMS AND CONDITIONS
  44760. ====================
  44761. 0. Definitions.
  44762. "This License" refers to version 3 of the GNU General Public
  44763. License.
  44764. "Copyright" also means copyright-like laws that apply to other
  44765. kinds of works, such as semiconductor masks.
  44766. "The Program" refers to any copyrightable work licensed under this
  44767. License. Each licensee is addressed as "you". "Licensees" and
  44768. "recipients" may be individuals or organizations.
  44769. To "modify" a work means to copy from or adapt all or part of the
  44770. work in a fashion requiring copyright permission, other than the
  44771. making of an exact copy. The resulting work is called a "modified
  44772. version" of the earlier work or a work "based on" the earlier work.
  44773. A "covered work" means either the unmodified Program or a work
  44774. based on the Program.
  44775. To "propagate" a work means to do anything with it that, without
  44776. permission, would make you directly or secondarily liable for
  44777. infringement under applicable copyright law, except executing it on
  44778. a computer or modifying a private copy. Propagation includes
  44779. copying, distribution (with or without modification), making
  44780. available to the public, and in some countries other activities as
  44781. well.
  44782. To "convey" a work means any kind of propagation that enables other
  44783. parties to make or receive copies. Mere interaction with a user
  44784. through a computer network, with no transfer of a copy, is not
  44785. conveying.
  44786. An interactive user interface displays "Appropriate Legal Notices"
  44787. to the extent that it includes a convenient and prominently visible
  44788. feature that (1) displays an appropriate copyright notice, and (2)
  44789. tells the user that there is no warranty for the work (except to
  44790. the extent that warranties are provided), that licensees may convey
  44791. the work under this License, and how to view a copy of this
  44792. License. If the interface presents a list of user commands or
  44793. options, such as a menu, a prominent item in the list meets this
  44794. criterion.
  44795. 1. Source Code.
  44796. The "source code" for a work means the preferred form of the work
  44797. for making modifications to it. "Object code" means any non-source
  44798. form of a work.
  44799. A "Standard Interface" means an interface that either is an
  44800. official standard defined by a recognized standards body, or, in
  44801. the case of interfaces specified for a particular programming
  44802. language, one that is widely used among developers working in that
  44803. language.
  44804. The "System Libraries" of an executable work include anything,
  44805. other than the work as a whole, that (a) is included in the normal
  44806. form of packaging a Major Component, but which is not part of that
  44807. Major Component, and (b) serves only to enable use of the work with
  44808. that Major Component, or to implement a Standard Interface for
  44809. which an implementation is available to the public in source code
  44810. form. A "Major Component", in this context, means a major
  44811. essential component (kernel, window system, and so on) of the
  44812. specific operating system (if any) on which the executable work
  44813. runs, or a compiler used to produce the work, or an object code
  44814. interpreter used to run it.
  44815. The "Corresponding Source" for a work in object code form means all
  44816. the source code needed to generate, install, and (for an executable
  44817. work) run the object code and to modify the work, including scripts
  44818. to control those activities. However, it does not include the
  44819. work's System Libraries, or general-purpose tools or generally
  44820. available free programs which are used unmodified in performing
  44821. those activities but which are not part of the work. For example,
  44822. Corresponding Source includes interface definition files associated
  44823. with source files for the work, and the source code for shared
  44824. libraries and dynamically linked subprograms that the work is
  44825. specifically designed to require, such as by intimate data
  44826. communication or control flow between those subprograms and other
  44827. parts of the work.
  44828. The Corresponding Source need not include anything that users can
  44829. regenerate automatically from other parts of the Corresponding
  44830. Source.
  44831. The Corresponding Source for a work in source code form is that
  44832. same work.
  44833. 2. Basic Permissions.
  44834. All rights granted under this License are granted for the term of
  44835. copyright on the Program, and are irrevocable provided the stated
  44836. conditions are met. This License explicitly affirms your unlimited
  44837. permission to run the unmodified Program. The output from running
  44838. a covered work is covered by this License only if the output, given
  44839. its content, constitutes a covered work. This License acknowledges
  44840. your rights of fair use or other equivalent, as provided by
  44841. copyright law.
  44842. You may make, run and propagate covered works that you do not
  44843. convey, without conditions so long as your license otherwise
  44844. remains in force. You may convey covered works to others for the
  44845. sole purpose of having them make modifications exclusively for you,
  44846. or provide you with facilities for running those works, provided
  44847. that you comply with the terms of this License in conveying all
  44848. material for which you do not control copyright. Those thus making
  44849. or running the covered works for you must do so exclusively on your
  44850. behalf, under your direction and control, on terms that prohibit
  44851. them from making any copies of your copyrighted material outside
  44852. their relationship with you.
  44853. Conveying under any other circumstances is permitted solely under
  44854. the conditions stated below. Sublicensing is not allowed; section
  44855. 10 makes it unnecessary.
  44856. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  44857. No covered work shall be deemed part of an effective technological
  44858. measure under any applicable law fulfilling obligations under
  44859. article 11 of the WIPO copyright treaty adopted on 20 December
  44860. 1996, or similar laws prohibiting or restricting circumvention of
  44861. such measures.
  44862. When you convey a covered work, you waive any legal power to forbid
  44863. circumvention of technological measures to the extent such
  44864. circumvention is effected by exercising rights under this License
  44865. with respect to the covered work, and you disclaim any intention to
  44866. limit operation or modification of the work as a means of
  44867. enforcing, against the work's users, your or third parties' legal
  44868. rights to forbid circumvention of technological measures.
  44869. 4. Conveying Verbatim Copies.
  44870. You may convey verbatim copies of the Program's source code as you
  44871. receive it, in any medium, provided that you conspicuously and
  44872. appropriately publish on each copy an appropriate copyright notice;
  44873. keep intact all notices stating that this License and any
  44874. non-permissive terms added in accord with section 7 apply to the
  44875. code; keep intact all notices of the absence of any warranty; and
  44876. give all recipients a copy of this License along with the Program.
  44877. You may charge any price or no price for each copy that you convey,
  44878. and you may offer support or warranty protection for a fee.
  44879. 5. Conveying Modified Source Versions.
  44880. You may convey a work based on the Program, or the modifications to
  44881. produce it from the Program, in the form of source code under the
  44882. terms of section 4, provided that you also meet all of these
  44883. conditions:
  44884. a. The work must carry prominent notices stating that you
  44885. modified it, and giving a relevant date.
  44886. b. The work must carry prominent notices stating that it is
  44887. released under this License and any conditions added under
  44888. section 7. This requirement modifies the requirement in
  44889. section 4 to "keep intact all notices".
  44890. c. You must license the entire work, as a whole, under this
  44891. License to anyone who comes into possession of a copy. This
  44892. License will therefore apply, along with any applicable
  44893. section 7 additional terms, to the whole of the work, and all
  44894. its parts, regardless of how they are packaged. This License
  44895. gives no permission to license the work in any other way, but
  44896. it does not invalidate such permission if you have separately
  44897. received it.
  44898. d. If the work has interactive user interfaces, each must display
  44899. Appropriate Legal Notices; however, if the Program has
  44900. interactive interfaces that do not display Appropriate Legal
  44901. Notices, your work need not make them do so.
  44902. A compilation of a covered work with other separate and independent
  44903. works, which are not by their nature extensions of the covered
  44904. work, and which are not combined with it such as to form a larger
  44905. program, in or on a volume of a storage or distribution medium, is
  44906. called an "aggregate" if the compilation and its resulting
  44907. copyright are not used to limit the access or legal rights of the
  44908. compilation's users beyond what the individual works permit.
  44909. Inclusion of a covered work in an aggregate does not cause this
  44910. License to apply to the other parts of the aggregate.
  44911. 6. Conveying Non-Source Forms.
  44912. You may convey a covered work in object code form under the terms
  44913. of sections 4 and 5, provided that you also convey the
  44914. machine-readable Corresponding Source under the terms of this
  44915. License, in one of these ways:
  44916. a. Convey the object code in, or embodied in, a physical product
  44917. (including a physical distribution medium), accompanied by the
  44918. Corresponding Source fixed on a durable physical medium
  44919. customarily used for software interchange.
  44920. b. Convey the object code in, or embodied in, a physical product
  44921. (including a physical distribution medium), accompanied by a
  44922. written offer, valid for at least three years and valid for as
  44923. long as you offer spare parts or customer support for that
  44924. product model, to give anyone who possesses the object code
  44925. either (1) a copy of the Corresponding Source for all the
  44926. software in the product that is covered by this License, on a
  44927. durable physical medium customarily used for software
  44928. interchange, for a price no more than your reasonable cost of
  44929. physically performing this conveying of source, or (2) access
  44930. to copy the Corresponding Source from a network server at no
  44931. charge.
  44932. c. Convey individual copies of the object code with a copy of the
  44933. written offer to provide the Corresponding Source. This
  44934. alternative is allowed only occasionally and noncommercially,
  44935. and only if you received the object code with such an offer,
  44936. in accord with subsection 6b.
  44937. d. Convey the object code by offering access from a designated
  44938. place (gratis or for a charge), and offer equivalent access to
  44939. the Corresponding Source in the same way through the same
  44940. place at no further charge. You need not require recipients
  44941. to copy the Corresponding Source along with the object code.
  44942. If the place to copy the object code is a network server, the
  44943. Corresponding Source may be on a different server (operated by
  44944. you or a third party) that supports equivalent copying
  44945. facilities, provided you maintain clear directions next to the
  44946. object code saying where to find the Corresponding Source.
  44947. Regardless of what server hosts the Corresponding Source, you
  44948. remain obligated to ensure that it is available for as long as
  44949. needed to satisfy these requirements.
  44950. e. Convey the object code using peer-to-peer transmission,
  44951. provided you inform other peers where the object code and
  44952. Corresponding Source of the work are being offered to the
  44953. general public at no charge under subsection 6d.
  44954. A separable portion of the object code, whose source code is
  44955. excluded from the Corresponding Source as a System Library, need
  44956. not be included in conveying the object code work.
  44957. A "User Product" is either (1) a "consumer product", which means
  44958. any tangible personal property which is normally used for personal,
  44959. family, or household purposes, or (2) anything designed or sold for
  44960. incorporation into a dwelling. In determining whether a product is
  44961. a consumer product, doubtful cases shall be resolved in favor of
  44962. coverage. For a particular product received by a particular user,
  44963. "normally used" refers to a typical or common use of that class of
  44964. product, regardless of the status of the particular user or of the
  44965. way in which the particular user actually uses, or expects or is
  44966. expected to use, the product. A product is a consumer product
  44967. regardless of whether the product has substantial commercial,
  44968. industrial or non-consumer uses, unless such uses represent the
  44969. only significant mode of use of the product.
  44970. "Installation Information" for a User Product means any methods,
  44971. procedures, authorization keys, or other information required to
  44972. install and execute modified versions of a covered work in that
  44973. User Product from a modified version of its Corresponding Source.
  44974. The information must suffice to ensure that the continued
  44975. functioning of the modified object code is in no case prevented or
  44976. interfered with solely because modification has been made.
  44977. If you convey an object code work under this section in, or with,
  44978. or specifically for use in, a User Product, and the conveying
  44979. occurs as part of a transaction in which the right of possession
  44980. and use of the User Product is transferred to the recipient in
  44981. perpetuity or for a fixed term (regardless of how the transaction
  44982. is characterized), the Corresponding Source conveyed under this
  44983. section must be accompanied by the Installation Information. But
  44984. this requirement does not apply if neither you nor any third party
  44985. retains the ability to install modified object code on the User
  44986. Product (for example, the work has been installed in ROM).
  44987. The requirement to provide Installation Information does not
  44988. include a requirement to continue to provide support service,
  44989. warranty, or updates for a work that has been modified or installed
  44990. by the recipient, or for the User Product in which it has been
  44991. modified or installed. Access to a network may be denied when the
  44992. modification itself materially and adversely affects the operation
  44993. of the network or violates the rules and protocols for
  44994. communication across the network.
  44995. Corresponding Source conveyed, and Installation Information
  44996. provided, in accord with this section must be in a format that is
  44997. publicly documented (and with an implementation available to the
  44998. public in source code form), and must require no special password
  44999. or key for unpacking, reading or copying.
  45000. 7. Additional Terms.
  45001. "Additional permissions" are terms that supplement the terms of
  45002. this License by making exceptions from one or more of its
  45003. conditions. Additional permissions that are applicable to the
  45004. entire Program shall be treated as though they were included in
  45005. this License, to the extent that they are valid under applicable
  45006. law. If additional permissions apply only to part of the Program,
  45007. that part may be used separately under those permissions, but the
  45008. entire Program remains governed by this License without regard to
  45009. the additional permissions.
  45010. When you convey a copy of a covered work, you may at your option
  45011. remove any additional permissions from that copy, or from any part
  45012. of it. (Additional permissions may be written to require their own
  45013. removal in certain cases when you modify the work.) You may place
  45014. additional permissions on material, added by you to a covered work,
  45015. for which you have or can give appropriate copyright permission.
  45016. Notwithstanding any other provision of this License, for material
  45017. you add to a covered work, you may (if authorized by the copyright
  45018. holders of that material) supplement the terms of this License with
  45019. terms:
  45020. a. Disclaiming warranty or limiting liability differently from
  45021. the terms of sections 15 and 16 of this License; or
  45022. b. Requiring preservation of specified reasonable legal notices
  45023. or author attributions in that material or in the Appropriate
  45024. Legal Notices displayed by works containing it; or
  45025. c. Prohibiting misrepresentation of the origin of that material,
  45026. or requiring that modified versions of such material be marked
  45027. in reasonable ways as different from the original version; or
  45028. d. Limiting the use for publicity purposes of names of licensors
  45029. or authors of the material; or
  45030. e. Declining to grant rights under trademark law for use of some
  45031. trade names, trademarks, or service marks; or
  45032. f. Requiring indemnification of licensors and authors of that
  45033. material by anyone who conveys the material (or modified
  45034. versions of it) with contractual assumptions of liability to
  45035. the recipient, for any liability that these contractual
  45036. assumptions directly impose on those licensors and authors.
  45037. All other non-permissive additional terms are considered "further
  45038. restrictions" within the meaning of section 10. If the Program as
  45039. you received it, or any part of it, contains a notice stating that
  45040. it is governed by this License along with a term that is a further
  45041. restriction, you may remove that term. If a license document
  45042. contains a further restriction but permits relicensing or conveying
  45043. under this License, you may add to a covered work material governed
  45044. by the terms of that license document, provided that the further
  45045. restriction does not survive such relicensing or conveying.
  45046. If you add terms to a covered work in accord with this section, you
  45047. must place, in the relevant source files, a statement of the
  45048. additional terms that apply to those files, or a notice indicating
  45049. where to find the applicable terms.
  45050. Additional terms, permissive or non-permissive, may be stated in
  45051. the form of a separately written license, or stated as exceptions;
  45052. the above requirements apply either way.
  45053. 8. Termination.
  45054. You may not propagate or modify a covered work except as expressly
  45055. provided under this License. Any attempt otherwise to propagate or
  45056. modify it is void, and will automatically terminate your rights
  45057. under this License (including any patent licenses granted under the
  45058. third paragraph of section 11).
  45059. However, if you cease all violation of this License, then your
  45060. license from a particular copyright holder is reinstated (a)
  45061. provisionally, unless and until the copyright holder explicitly and
  45062. finally terminates your license, and (b) permanently, if the
  45063. copyright holder fails to notify you of the violation by some
  45064. reasonable means prior to 60 days after the cessation.
  45065. Moreover, your license from a particular copyright holder is
  45066. reinstated permanently if the copyright holder notifies you of the
  45067. violation by some reasonable means, this is the first time you have
  45068. received notice of violation of this License (for any work) from
  45069. that copyright holder, and you cure the violation prior to 30 days
  45070. after your receipt of the notice.
  45071. Termination of your rights under this section does not terminate
  45072. the licenses of parties who have received copies or rights from you
  45073. under this License. If your rights have been terminated and not
  45074. permanently reinstated, you do not qualify to receive new licenses
  45075. for the same material under section 10.
  45076. 9. Acceptance Not Required for Having Copies.
  45077. You are not required to accept this License in order to receive or
  45078. run a copy of the Program. Ancillary propagation of a covered work
  45079. occurring solely as a consequence of using peer-to-peer
  45080. transmission to receive a copy likewise does not require
  45081. acceptance. However, nothing other than this License grants you
  45082. permission to propagate or modify any covered work. These actions
  45083. infringe copyright if you do not accept this License. Therefore,
  45084. by modifying or propagating a covered work, you indicate your
  45085. acceptance of this License to do so.
  45086. 10. Automatic Licensing of Downstream Recipients.
  45087. Each time you convey a covered work, the recipient automatically
  45088. receives a license from the original licensors, to run, modify and
  45089. propagate that work, subject to this License. You are not
  45090. responsible for enforcing compliance by third parties with this
  45091. License.
  45092. An "entity transaction" is a transaction transferring control of an
  45093. organization, or substantially all assets of one, or subdividing an
  45094. organization, or merging organizations. If propagation of a
  45095. covered work results from an entity transaction, each party to that
  45096. transaction who receives a copy of the work also receives whatever
  45097. licenses to the work the party's predecessor in interest had or
  45098. could give under the previous paragraph, plus a right to possession
  45099. of the Corresponding Source of the work from the predecessor in
  45100. interest, if the predecessor has it or can get it with reasonable
  45101. efforts.
  45102. You may not impose any further restrictions on the exercise of the
  45103. rights granted or affirmed under this License. For example, you
  45104. may not impose a license fee, royalty, or other charge for exercise
  45105. of rights granted under this License, and you may not initiate
  45106. litigation (including a cross-claim or counterclaim in a lawsuit)
  45107. alleging that any patent claim is infringed by making, using,
  45108. selling, offering for sale, or importing the Program or any portion
  45109. of it.
  45110. 11. Patents.
  45111. A "contributor" is a copyright holder who authorizes use under this
  45112. License of the Program or a work on which the Program is based.
  45113. The work thus licensed is called the contributor's "contributor
  45114. version".
  45115. A contributor's "essential patent claims" are all patent claims
  45116. owned or controlled by the contributor, whether already acquired or
  45117. hereafter acquired, that would be infringed by some manner,
  45118. permitted by this License, of making, using, or selling its
  45119. contributor version, but do not include claims that would be
  45120. infringed only as a consequence of further modification of the
  45121. contributor version. For purposes of this definition, "control"
  45122. includes the right to grant patent sublicenses in a manner
  45123. consistent with the requirements of this License.
  45124. Each contributor grants you a non-exclusive, worldwide,
  45125. royalty-free patent license under the contributor's essential
  45126. patent claims, to make, use, sell, offer for sale, import and
  45127. otherwise run, modify and propagate the contents of its contributor
  45128. version.
  45129. In the following three paragraphs, a "patent license" is any
  45130. express agreement or commitment, however denominated, not to
  45131. enforce a patent (such as an express permission to practice a
  45132. patent or covenant not to sue for patent infringement). To "grant"
  45133. such a patent license to a party means to make such an agreement or
  45134. commitment not to enforce a patent against the party.
  45135. If you convey a covered work, knowingly relying on a patent
  45136. license, and the Corresponding Source of the work is not available
  45137. for anyone to copy, free of charge and under the terms of this
  45138. License, through a publicly available network server or other
  45139. readily accessible means, then you must either (1) cause the
  45140. Corresponding Source to be so available, or (2) arrange to deprive
  45141. yourself of the benefit of the patent license for this particular
  45142. work, or (3) arrange, in a manner consistent with the requirements
  45143. of this License, to extend the patent license to downstream
  45144. recipients. "Knowingly relying" means you have actual knowledge
  45145. that, but for the patent license, your conveying the covered work
  45146. in a country, or your recipient's use of the covered work in a
  45147. country, would infringe one or more identifiable patents in that
  45148. country that you have reason to believe are valid.
  45149. If, pursuant to or in connection with a single transaction or
  45150. arrangement, you convey, or propagate by procuring conveyance of, a
  45151. covered work, and grant a patent license to some of the parties
  45152. receiving the covered work authorizing them to use, propagate,
  45153. modify or convey a specific copy of the covered work, then the
  45154. patent license you grant is automatically extended to all
  45155. recipients of the covered work and works based on it.
  45156. A patent license is "discriminatory" if it does not include within
  45157. the scope of its coverage, prohibits the exercise of, or is
  45158. conditioned on the non-exercise of one or more of the rights that
  45159. are specifically granted under this License. You may not convey a
  45160. covered work if you are a party to an arrangement with a third
  45161. party that is in the business of distributing software, under which
  45162. you make payment to the third party based on the extent of your
  45163. activity of conveying the work, and under which the third party
  45164. grants, to any of the parties who would receive the covered work
  45165. from you, a discriminatory patent license (a) in connection with
  45166. copies of the covered work conveyed by you (or copies made from
  45167. those copies), or (b) primarily for and in connection with specific
  45168. products or compilations that contain the covered work, unless you
  45169. entered into that arrangement, or that patent license was granted,
  45170. prior to 28 March 2007.
  45171. Nothing in this License shall be construed as excluding or limiting
  45172. any implied license or other defenses to infringement that may
  45173. otherwise be available to you under applicable patent law.
  45174. 12. No Surrender of Others' Freedom.
  45175. If conditions are imposed on you (whether by court order, agreement
  45176. or otherwise) that contradict the conditions of this License, they
  45177. do not excuse you from the conditions of this License. If you
  45178. cannot convey a covered work so as to satisfy simultaneously your
  45179. obligations under this License and any other pertinent obligations,
  45180. then as a consequence you may not convey it at all. For example,
  45181. if you agree to terms that obligate you to collect a royalty for
  45182. further conveying from those to whom you convey the Program, the
  45183. only way you could satisfy both those terms and this License would
  45184. be to refrain entirely from conveying the Program.
  45185. 13. Use with the GNU Affero General Public License.
  45186. Notwithstanding any other provision of this License, you have
  45187. permission to link or combine any covered work with a work licensed
  45188. under version 3 of the GNU Affero General Public License into a
  45189. single combined work, and to convey the resulting work. The terms
  45190. of this License will continue to apply to the part which is the
  45191. covered work, but the special requirements of the GNU Affero
  45192. General Public License, section 13, concerning interaction through
  45193. a network will apply to the combination as such.
  45194. 14. Revised Versions of this License.
  45195. The Free Software Foundation may publish revised and/or new
  45196. versions of the GNU General Public License from time to time. Such
  45197. new versions will be similar in spirit to the present version, but
  45198. may differ in detail to address new problems or concerns.
  45199. Each version is given a distinguishing version number. If the
  45200. Program specifies that a certain numbered version of the GNU
  45201. General Public License "or any later version" applies to it, you
  45202. have the option of following the terms and conditions either of
  45203. that numbered version or of any later version published by the Free
  45204. Software Foundation. If the Program does not specify a version
  45205. number of the GNU General Public License, you may choose any
  45206. version ever published by the Free Software Foundation.
  45207. If the Program specifies that a proxy can decide which future
  45208. versions of the GNU General Public License can be used, that
  45209. proxy's public statement of acceptance of a version permanently
  45210. authorizes you to choose that version for the Program.
  45211. Later license versions may give you additional or different
  45212. permissions. However, no additional obligations are imposed on any
  45213. author or copyright holder as a result of your choosing to follow a
  45214. later version.
  45215. 15. Disclaimer of Warranty.
  45216. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  45217. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  45218. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  45219. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  45220. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  45221. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  45222. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  45223. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  45224. NECESSARY SERVICING, REPAIR OR CORRECTION.
  45225. 16. Limitation of Liability.
  45226. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  45227. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  45228. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  45229. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  45230. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  45231. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  45232. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  45233. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  45234. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  45235. THE POSSIBILITY OF SUCH DAMAGES.
  45236. 17. Interpretation of Sections 15 and 16.
  45237. If the disclaimer of warranty and limitation of liability provided
  45238. above cannot be given local legal effect according to their terms,
  45239. reviewing courts shall apply local law that most closely
  45240. approximates an absolute waiver of all civil liability in
  45241. connection with the Program, unless a warranty or assumption of
  45242. liability accompanies a copy of the Program in return for a fee.
  45243. END OF TERMS AND CONDITIONS
  45244. ===========================
  45245. How to Apply These Terms to Your New Programs
  45246. =============================================
  45247. If you develop a new program, and you want it to be of the greatest
  45248. possible use to the public, the best way to achieve this is to make it
  45249. free software which everyone can redistribute and change under these
  45250. terms.
  45251. To do so, attach the following notices to the program. It is safest to
  45252. attach them to the start of each source file to most effectively state
  45253. the exclusion of warranty; and each file should have at least the
  45254. "copyright" line and a pointer to where the full notice is found.
  45255. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  45256. Copyright (C) YEAR NAME OF AUTHOR
  45257. This program is free software: you can redistribute it and/or modify
  45258. it under the terms of the GNU General Public License as published by
  45259. the Free Software Foundation, either version 3 of the License, or (at
  45260. your option) any later version.
  45261. This program is distributed in the hope that it will be useful, but
  45262. WITHOUT ANY WARRANTY; without even the implied warranty of
  45263. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  45264. General Public License for more details.
  45265. You should have received a copy of the GNU General Public License
  45266. along with this program. If not, see <http://www.gnu.org/licenses/>.
  45267. Also add information on how to contact you by electronic and paper
  45268. mail.
  45269. If the program does terminal interaction, make it output a short notice
  45270. like this when it starts in an interactive mode:
  45271. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  45272. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  45273. This is free software, and you are welcome to redistribute it
  45274. under certain conditions; type 'show c' for details.
  45275. The hypothetical commands 'show w' and 'show c' should show the
  45276. appropriate parts of the General Public License. Of course, your
  45277. program's commands might be different; for a GUI interface, you would
  45278. use an "about box".
  45279. You should also get your employer (if you work as a programmer) or
  45280. school, if any, to sign a "copyright disclaimer" for the program, if
  45281. necessary. For more information on this, and how to apply and follow
  45282. the GNU GPL, see <http://www.gnu.org/licenses/>.
  45283. The GNU General Public License does not permit incorporating your
  45284. program into proprietary programs. If your program is a subroutine
  45285. library, you may consider it more useful to permit linking proprietary
  45286. applications with the library. If this is what you want to do, use the
  45287. GNU Lesser General Public License instead of this License. But first,
  45288. please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
  45289. 
  45290. File: gcc.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  45291. GNU Free Documentation License
  45292. ******************************
  45293. Version 1.3, 3 November 2008
  45294. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  45295. <http://fsf.org/>
  45296. Everyone is permitted to copy and distribute verbatim copies
  45297. of this license document, but changing it is not allowed.
  45298. 0. PREAMBLE
  45299. The purpose of this License is to make a manual, textbook, or other
  45300. functional and useful document "free" in the sense of freedom: to
  45301. assure everyone the effective freedom to copy and redistribute it,
  45302. with or without modifying it, either commercially or
  45303. noncommercially. Secondarily, this License preserves for the
  45304. author and publisher a way to get credit for their work, while not
  45305. being considered responsible for modifications made by others.
  45306. This License is a kind of "copyleft", which means that derivative
  45307. works of the document must themselves be free in the same sense.
  45308. It complements the GNU General Public License, which is a copyleft
  45309. license designed for free software.
  45310. We have designed this License in order to use it for manuals for
  45311. free software, because free software needs free documentation: a
  45312. free program should come with manuals providing the same freedoms
  45313. that the software does. But this License is not limited to
  45314. software manuals; it can be used for any textual work, regardless
  45315. of subject matter or whether it is published as a printed book. We
  45316. recommend this License principally for works whose purpose is
  45317. instruction or reference.
  45318. 1. APPLICABILITY AND DEFINITIONS
  45319. This License applies to any manual or other work, in any medium,
  45320. that contains a notice placed by the copyright holder saying it can
  45321. be distributed under the terms of this License. Such a notice
  45322. grants a world-wide, royalty-free license, unlimited in duration,
  45323. to use that work under the conditions stated herein. The
  45324. "Document", below, refers to any such manual or work. Any member
  45325. of the public is a licensee, and is addressed as "you". You accept
  45326. the license if you copy, modify or distribute the work in a way
  45327. requiring permission under copyright law.
  45328. A "Modified Version" of the Document means any work containing the
  45329. Document or a portion of it, either copied verbatim, or with
  45330. modifications and/or translated into another language.
  45331. A "Secondary Section" is a named appendix or a front-matter section
  45332. of the Document that deals exclusively with the relationship of the
  45333. publishers or authors of the Document to the Document's overall
  45334. subject (or to related matters) and contains nothing that could
  45335. fall directly within that overall subject. (Thus, if the Document
  45336. is in part a textbook of mathematics, a Secondary Section may not
  45337. explain any mathematics.) The relationship could be a matter of
  45338. historical connection with the subject or with related matters, or
  45339. of legal, commercial, philosophical, ethical or political position
  45340. regarding them.
  45341. The "Invariant Sections" are certain Secondary Sections whose
  45342. titles are designated, as being those of Invariant Sections, in the
  45343. notice that says that the Document is released under this License.
  45344. If a section does not fit the above definition of Secondary then it
  45345. is not allowed to be designated as Invariant. The Document may
  45346. contain zero Invariant Sections. If the Document does not identify
  45347. any Invariant Sections then there are none.
  45348. The "Cover Texts" are certain short passages of text that are
  45349. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  45350. that says that the Document is released under this License. A
  45351. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  45352. be at most 25 words.
  45353. A "Transparent" copy of the Document means a machine-readable copy,
  45354. represented in a format whose specification is available to the
  45355. general public, that is suitable for revising the document
  45356. straightforwardly with generic text editors or (for images composed
  45357. of pixels) generic paint programs or (for drawings) some widely
  45358. available drawing editor, and that is suitable for input to text
  45359. formatters or for automatic translation to a variety of formats
  45360. suitable for input to text formatters. A copy made in an otherwise
  45361. Transparent file format whose markup, or absence of markup, has
  45362. been arranged to thwart or discourage subsequent modification by
  45363. readers is not Transparent. An image format is not Transparent if
  45364. used for any substantial amount of text. A copy that is not
  45365. "Transparent" is called "Opaque".
  45366. Examples of suitable formats for Transparent copies include plain
  45367. ASCII without markup, Texinfo input format, LaTeX input format,
  45368. SGML or XML using a publicly available DTD, and standard-conforming
  45369. simple HTML, PostScript or PDF designed for human modification.
  45370. Examples of transparent image formats include PNG, XCF and JPG.
  45371. Opaque formats include proprietary formats that can be read and
  45372. edited only by proprietary word processors, SGML or XML for which
  45373. the DTD and/or processing tools are not generally available, and
  45374. the machine-generated HTML, PostScript or PDF produced by some word
  45375. processors for output purposes only.
  45376. The "Title Page" means, for a printed book, the title page itself,
  45377. plus such following pages as are needed to hold, legibly, the
  45378. material this License requires to appear in the title page. For
  45379. works in formats which do not have any title page as such, "Title
  45380. Page" means the text near the most prominent appearance of the
  45381. work's title, preceding the beginning of the body of the text.
  45382. The "publisher" means any person or entity that distributes copies
  45383. of the Document to the public.
  45384. A section "Entitled XYZ" means a named subunit of the Document
  45385. whose title either is precisely XYZ or contains XYZ in parentheses
  45386. following text that translates XYZ in another language. (Here XYZ
  45387. stands for a specific section name mentioned below, such as
  45388. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  45389. To "Preserve the Title" of such a section when you modify the
  45390. Document means that it remains a section "Entitled XYZ" according
  45391. to this definition.
  45392. The Document may include Warranty Disclaimers next to the notice
  45393. which states that this License applies to the Document. These
  45394. Warranty Disclaimers are considered to be included by reference in
  45395. this License, but only as regards disclaiming warranties: any other
  45396. implication that these Warranty Disclaimers may have is void and
  45397. has no effect on the meaning of this License.
  45398. 2. VERBATIM COPYING
  45399. You may copy and distribute the Document in any medium, either
  45400. commercially or noncommercially, provided that this License, the
  45401. copyright notices, and the license notice saying this License
  45402. applies to the Document are reproduced in all copies, and that you
  45403. add no other conditions whatsoever to those of this License. You
  45404. may not use technical measures to obstruct or control the reading
  45405. or further copying of the copies you make or distribute. However,
  45406. you may accept compensation in exchange for copies. If you
  45407. distribute a large enough number of copies you must also follow the
  45408. conditions in section 3.
  45409. You may also lend copies, under the same conditions stated above,
  45410. and you may publicly display copies.
  45411. 3. COPYING IN QUANTITY
  45412. If you publish printed copies (or copies in media that commonly
  45413. have printed covers) of the Document, numbering more than 100, and
  45414. the Document's license notice requires Cover Texts, you must
  45415. enclose the copies in covers that carry, clearly and legibly, all
  45416. these Cover Texts: Front-Cover Texts on the front cover, and
  45417. Back-Cover Texts on the back cover. Both covers must also clearly
  45418. and legibly identify you as the publisher of these copies. The
  45419. front cover must present the full title with all words of the title
  45420. equally prominent and visible. You may add other material on the
  45421. covers in addition. Copying with changes limited to the covers, as
  45422. long as they preserve the title of the Document and satisfy these
  45423. conditions, can be treated as verbatim copying in other respects.
  45424. If the required texts for either cover are too voluminous to fit
  45425. legibly, you should put the first ones listed (as many as fit
  45426. reasonably) on the actual cover, and continue the rest onto
  45427. adjacent pages.
  45428. If you publish or distribute Opaque copies of the Document
  45429. numbering more than 100, you must either include a machine-readable
  45430. Transparent copy along with each Opaque copy, or state in or with
  45431. each Opaque copy a computer-network location from which the general
  45432. network-using public has access to download using public-standard
  45433. network protocols a complete Transparent copy of the Document, free
  45434. of added material. If you use the latter option, you must take
  45435. reasonably prudent steps, when you begin distribution of Opaque
  45436. copies in quantity, to ensure that this Transparent copy will
  45437. remain thus accessible at the stated location until at least one
  45438. year after the last time you distribute an Opaque copy (directly or
  45439. through your agents or retailers) of that edition to the public.
  45440. It is requested, but not required, that you contact the authors of
  45441. the Document well before redistributing any large number of copies,
  45442. to give them a chance to provide you with an updated version of the
  45443. Document.
  45444. 4. MODIFICATIONS
  45445. You may copy and distribute a Modified Version of the Document
  45446. under the conditions of sections 2 and 3 above, provided that you
  45447. release the Modified Version under precisely this License, with the
  45448. Modified Version filling the role of the Document, thus licensing
  45449. distribution and modification of the Modified Version to whoever
  45450. possesses a copy of it. In addition, you must do these things in
  45451. the Modified Version:
  45452. A. Use in the Title Page (and on the covers, if any) a title
  45453. distinct from that of the Document, and from those of previous
  45454. versions (which should, if there were any, be listed in the
  45455. History section of the Document). You may use the same title
  45456. as a previous version if the original publisher of that
  45457. version gives permission.
  45458. B. List on the Title Page, as authors, one or more persons or
  45459. entities responsible for authorship of the modifications in
  45460. the Modified Version, together with at least five of the
  45461. principal authors of the Document (all of its principal
  45462. authors, if it has fewer than five), unless they release you
  45463. from this requirement.
  45464. C. State on the Title page the name of the publisher of the
  45465. Modified Version, as the publisher.
  45466. D. Preserve all the copyright notices of the Document.
  45467. E. Add an appropriate copyright notice for your modifications
  45468. adjacent to the other copyright notices.
  45469. F. Include, immediately after the copyright notices, a license
  45470. notice giving the public permission to use the Modified
  45471. Version under the terms of this License, in the form shown in
  45472. the Addendum below.
  45473. G. Preserve in that license notice the full lists of Invariant
  45474. Sections and required Cover Texts given in the Document's
  45475. license notice.
  45476. H. Include an unaltered copy of this License.
  45477. I. Preserve the section Entitled "History", Preserve its Title,
  45478. and add to it an item stating at least the title, year, new
  45479. authors, and publisher of the Modified Version as given on the
  45480. Title Page. If there is no section Entitled "History" in the
  45481. Document, create one stating the title, year, authors, and
  45482. publisher of the Document as given on its Title Page, then add
  45483. an item describing the Modified Version as stated in the
  45484. previous sentence.
  45485. J. Preserve the network location, if any, given in the Document
  45486. for public access to a Transparent copy of the Document, and
  45487. likewise the network locations given in the Document for
  45488. previous versions it was based on. These may be placed in the
  45489. "History" section. You may omit a network location for a work
  45490. that was published at least four years before the Document
  45491. itself, or if the original publisher of the version it refers
  45492. to gives permission.
  45493. K. For any section Entitled "Acknowledgements" or "Dedications",
  45494. Preserve the Title of the section, and preserve in the section
  45495. all the substance and tone of each of the contributor
  45496. acknowledgements and/or dedications given therein.
  45497. L. Preserve all the Invariant Sections of the Document, unaltered
  45498. in their text and in their titles. Section numbers or the
  45499. equivalent are not considered part of the section titles.
  45500. M. Delete any section Entitled "Endorsements". Such a section
  45501. may not be included in the Modified Version.
  45502. N. Do not retitle any existing section to be Entitled
  45503. "Endorsements" or to conflict in title with any Invariant
  45504. Section.
  45505. O. Preserve any Warranty Disclaimers.
  45506. If the Modified Version includes new front-matter sections or
  45507. appendices that qualify as Secondary Sections and contain no
  45508. material copied from the Document, you may at your option designate
  45509. some or all of these sections as invariant. To do this, add their
  45510. titles to the list of Invariant Sections in the Modified Version's
  45511. license notice. These titles must be distinct from any other
  45512. section titles.
  45513. You may add a section Entitled "Endorsements", provided it contains
  45514. nothing but endorsements of your Modified Version by various
  45515. parties--for example, statements of peer review or that the text
  45516. has been approved by an organization as the authoritative
  45517. definition of a standard.
  45518. You may add a passage of up to five words as a Front-Cover Text,
  45519. and a passage of up to 25 words as a Back-Cover Text, to the end of
  45520. the list of Cover Texts in the Modified Version. Only one passage
  45521. of Front-Cover Text and one of Back-Cover Text may be added by (or
  45522. through arrangements made by) any one entity. If the Document
  45523. already includes a cover text for the same cover, previously added
  45524. by you or by arrangement made by the same entity you are acting on
  45525. behalf of, you may not add another; but you may replace the old
  45526. one, on explicit permission from the previous publisher that added
  45527. the old one.
  45528. The author(s) and publisher(s) of the Document do not by this
  45529. License give permission to use their names for publicity for or to
  45530. assert or imply endorsement of any Modified Version.
  45531. 5. COMBINING DOCUMENTS
  45532. You may combine the Document with other documents released under
  45533. this License, under the terms defined in section 4 above for
  45534. modified versions, provided that you include in the combination all
  45535. of the Invariant Sections of all of the original documents,
  45536. unmodified, and list them all as Invariant Sections of your
  45537. combined work in its license notice, and that you preserve all
  45538. their Warranty Disclaimers.
  45539. The combined work need only contain one copy of this License, and
  45540. multiple identical Invariant Sections may be replaced with a single
  45541. copy. If there are multiple Invariant Sections with the same name
  45542. but different contents, make the title of each such section unique
  45543. by adding at the end of it, in parentheses, the name of the
  45544. original author or publisher of that section if known, or else a
  45545. unique number. Make the same adjustment to the section titles in
  45546. the list of Invariant Sections in the license notice of the
  45547. combined work.
  45548. In the combination, you must combine any sections Entitled
  45549. "History" in the various original documents, forming one section
  45550. Entitled "History"; likewise combine any sections Entitled
  45551. "Acknowledgements", and any sections Entitled "Dedications". You
  45552. must delete all sections Entitled "Endorsements."
  45553. 6. COLLECTIONS OF DOCUMENTS
  45554. You may make a collection consisting of the Document and other
  45555. documents released under this License, and replace the individual
  45556. copies of this License in the various documents with a single copy
  45557. that is included in the collection, provided that you follow the
  45558. rules of this License for verbatim copying of each of the documents
  45559. in all other respects.
  45560. You may extract a single document from such a collection, and
  45561. distribute it individually under this License, provided you insert
  45562. a copy of this License into the extracted document, and follow this
  45563. License in all other respects regarding verbatim copying of that
  45564. document.
  45565. 7. AGGREGATION WITH INDEPENDENT WORKS
  45566. A compilation of the Document or its derivatives with other
  45567. separate and independent documents or works, in or on a volume of a
  45568. storage or distribution medium, is called an "aggregate" if the
  45569. copyright resulting from the compilation is not used to limit the
  45570. legal rights of the compilation's users beyond what the individual
  45571. works permit. When the Document is included in an aggregate, this
  45572. License does not apply to the other works in the aggregate which
  45573. are not themselves derivative works of the Document.
  45574. If the Cover Text requirement of section 3 is applicable to these
  45575. copies of the Document, then if the Document is less than one half
  45576. of the entire aggregate, the Document's Cover Texts may be placed
  45577. on covers that bracket the Document within the aggregate, or the
  45578. electronic equivalent of covers if the Document is in electronic
  45579. form. Otherwise they must appear on printed covers that bracket
  45580. the whole aggregate.
  45581. 8. TRANSLATION
  45582. Translation is considered a kind of modification, so you may
  45583. distribute translations of the Document under the terms of section
  45584. 4. Replacing Invariant Sections with translations requires special
  45585. permission from their copyright holders, but you may include
  45586. translations of some or all Invariant Sections in addition to the
  45587. original versions of these Invariant Sections. You may include a
  45588. translation of this License, and all the license notices in the
  45589. Document, and any Warranty Disclaimers, provided that you also
  45590. include the original English version of this License and the
  45591. original versions of those notices and disclaimers. In case of a
  45592. disagreement between the translation and the original version of
  45593. this License or a notice or disclaimer, the original version will
  45594. prevail.
  45595. If a section in the Document is Entitled "Acknowledgements",
  45596. "Dedications", or "History", the requirement (section 4) to
  45597. Preserve its Title (section 1) will typically require changing the
  45598. actual title.
  45599. 9. TERMINATION
  45600. You may not copy, modify, sublicense, or distribute the Document
  45601. except as expressly provided under this License. Any attempt
  45602. otherwise to copy, modify, sublicense, or distribute it is void,
  45603. and will automatically terminate your rights under this License.
  45604. However, if you cease all violation of this License, then your
  45605. license from a particular copyright holder is reinstated (a)
  45606. provisionally, unless and until the copyright holder explicitly and
  45607. finally terminates your license, and (b) permanently, if the
  45608. copyright holder fails to notify you of the violation by some
  45609. reasonable means prior to 60 days after the cessation.
  45610. Moreover, your license from a particular copyright holder is
  45611. reinstated permanently if the copyright holder notifies you of the
  45612. violation by some reasonable means, this is the first time you have
  45613. received notice of violation of this License (for any work) from
  45614. that copyright holder, and you cure the violation prior to 30 days
  45615. after your receipt of the notice.
  45616. Termination of your rights under this section does not terminate
  45617. the licenses of parties who have received copies or rights from you
  45618. under this License. If your rights have been terminated and not
  45619. permanently reinstated, receipt of a copy of some or all of the
  45620. same material does not give you any rights to use it.
  45621. 10. FUTURE REVISIONS OF THIS LICENSE
  45622. The Free Software Foundation may publish new, revised versions of
  45623. the GNU Free Documentation License from time to time. Such new
  45624. versions will be similar in spirit to the present version, but may
  45625. differ in detail to address new problems or concerns. See
  45626. <http://www.gnu.org/copyleft/>.
  45627. Each version of the License is given a distinguishing version
  45628. number. If the Document specifies that a particular numbered
  45629. version of this License "or any later version" applies to it, you
  45630. have the option of following the terms and conditions either of
  45631. that specified version or of any later version that has been
  45632. published (not as a draft) by the Free Software Foundation. If the
  45633. Document does not specify a version number of this License, you may
  45634. choose any version ever published (not as a draft) by the Free
  45635. Software Foundation. If the Document specifies that a proxy can
  45636. decide which future versions of this License can be used, that
  45637. proxy's public statement of acceptance of a version permanently
  45638. authorizes you to choose that version for the Document.
  45639. 11. RELICENSING
  45640. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  45641. World Wide Web server that publishes copyrightable works and also
  45642. provides prominent facilities for anybody to edit those works. A
  45643. public wiki that anybody can edit is an example of such a server.
  45644. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  45645. site means any set of copyrightable works thus published on the MMC
  45646. site.
  45647. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  45648. license published by Creative Commons Corporation, a not-for-profit
  45649. corporation with a principal place of business in San Francisco,
  45650. California, as well as future copyleft versions of that license
  45651. published by that same organization.
  45652. "Incorporate" means to publish or republish a Document, in whole or
  45653. in part, as part of another Document.
  45654. An MMC is "eligible for relicensing" if it is licensed under this
  45655. License, and if all works that were first published under this
  45656. License somewhere other than this MMC, and subsequently
  45657. incorporated in whole or in part into the MMC, (1) had no cover
  45658. texts or invariant sections, and (2) were thus incorporated prior
  45659. to November 1, 2008.
  45660. The operator of an MMC Site may republish an MMC contained in the
  45661. site under CC-BY-SA on the same site at any time before August 1,
  45662. 2009, provided the MMC is eligible for relicensing.
  45663. ADDENDUM: How to use this License for your documents
  45664. ====================================================
  45665. To use this License in a document you have written, include a copy of
  45666. the License in the document and put the following copyright and license
  45667. notices just after the title page:
  45668. Copyright (C) YEAR YOUR NAME.
  45669. Permission is granted to copy, distribute and/or modify this document
  45670. under the terms of the GNU Free Documentation License, Version 1.3
  45671. or any later version published by the Free Software Foundation;
  45672. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  45673. Texts. A copy of the license is included in the section entitled ``GNU
  45674. Free Documentation License''.
  45675. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  45676. replace the "with...Texts." line with this:
  45677. with the Invariant Sections being LIST THEIR TITLES, with
  45678. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  45679. being LIST.
  45680. If you have Invariant Sections without Cover Texts, or some other
  45681. combination of the three, merge those two alternatives to suit the
  45682. situation.
  45683. If your document contains nontrivial examples of program code, we
  45684. recommend releasing these examples in parallel under your choice of free
  45685. software license, such as the GNU General Public License, to permit
  45686. their use in free software.
  45687. 
  45688. File: gcc.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  45689. Contributors to GCC
  45690. *******************
  45691. The GCC project would like to thank its many contributors. Without them
  45692. the project would not have been nearly as successful as it has been.
  45693. Any omissions in this list are accidental. Feel free to contact
  45694. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  45695. some of your contributions are not listed. Please keep this list in
  45696. alphabetical order.
  45697. * Analog Devices helped implement the support for complex data types
  45698. and iterators.
  45699. * John David Anglin for threading-related fixes and improvements to
  45700. libstdc++-v3, and the HP-UX port.
  45701. * James van Artsdalen wrote the code that makes efficient use of the
  45702. Intel 80387 register stack.
  45703. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  45704. Series port.
  45705. * Alasdair Baird for various bug fixes.
  45706. * Giovanni Bajo for analyzing lots of complicated C++ problem
  45707. reports.
  45708. * Peter Barada for his work to improve code generation for new
  45709. ColdFire cores.
  45710. * Gerald Baumgartner added the signature extension to the C++ front
  45711. end.
  45712. * Godmar Back for his Java improvements and encouragement.
  45713. * Scott Bambrough for help porting the Java compiler.
  45714. * Wolfgang Bangerth for processing tons of bug reports.
  45715. * Jon Beniston for his Microsoft Windows port of Java and port to
  45716. Lattice Mico32.
  45717. * Daniel Berlin for better DWARF 2 support, faster/better
  45718. optimizations, improved alias analysis, plus migrating GCC to
  45719. Bugzilla.
  45720. * Geoff Berry for his Java object serialization work and various
  45721. patches.
  45722. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  45723. Rawhide for several architectures.
  45724. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  45725. * Uros Bizjak for the implementation of x87 math built-in functions
  45726. and for various middle end and i386 back end improvements and bug
  45727. fixes.
  45728. * Eric Blake for helping to make GCJ and libgcj conform to the
  45729. specifications.
  45730. * Janne Blomqvist for contributions to GNU Fortran.
  45731. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  45732. other Java work.
  45733. * Segher Boessenkool for helping maintain the PowerPC port and the
  45734. instruction combiner plus various contributions to the middle end.
  45735. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  45736. miscellaneous clean-ups.
  45737. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  45738. and for contributing to the tree-ssa branch.
  45739. * Eric Botcazou for fixing middle- and backend bugs left and right.
  45740. * Per Bothner for his direction via the steering committee and
  45741. various improvements to the infrastructure for supporting new
  45742. languages. Chill front end implementation. Initial
  45743. implementations of cpplib, fix-header, config.guess, libio, and
  45744. past C++ library (libg++) maintainer. Dreaming up, designing and
  45745. implementing much of GCJ.
  45746. * Devon Bowen helped port GCC to the Tahoe.
  45747. * Don Bowman for mips-vxworks contributions.
  45748. * James Bowman for the FT32 port.
  45749. * Dave Brolley for work on cpplib and Chill.
  45750. * Paul Brook for work on the ARM architecture and maintaining GNU
  45751. Fortran.
  45752. * Robert Brown implemented the support for Encore 32000 systems.
  45753. * Christian Bruel for improvements to local store elimination.
  45754. * Herman A.J. ten Brugge for various fixes.
  45755. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  45756. FAQ.
  45757. * Joe Buck for his direction via the steering committee from its
  45758. creation to 2013.
  45759. * Craig Burley for leadership of the G77 Fortran effort.
  45760. * Tobias Burnus for contributions to GNU Fortran.
  45761. * Stephan Buys for contributing Doxygen notes for libstdc++.
  45762. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  45763. to the C++ strings, streambufs and formatted I/O, hard detective
  45764. work on the frustrating localization issues, and keeping up with
  45765. the problem reports.
  45766. * John Carr for his alias work, SPARC hacking, infrastructure
  45767. improvements, previous contributions to the steering committee,
  45768. loop optimizations, etc.
  45769. * Stephane Carrez for 68HC11 and 68HC12 ports.
  45770. * Steve Chamberlain for support for the Renesas SH and H8 processors
  45771. and the PicoJava processor, and for GCJ config fixes.
  45772. * Glenn Chambers for help with the GCJ FAQ.
  45773. * John-Marc Chandonia for various libgcj patches.
  45774. * Denis Chertykov for contributing and maintaining the AVR port, the
  45775. first GCC port for an 8-bit architecture.
  45776. * Kito Cheng for his work on the RISC-V port, including bringing up
  45777. the test suite and maintenance.
  45778. * Scott Christley for his Objective-C contributions.
  45779. * Eric Christopher for his Java porting help and clean-ups.
  45780. * Branko Cibej for more warning contributions.
  45781. * The GNU Classpath project for all of their merged runtime code.
  45782. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  45783. '--help', and other random hacking.
  45784. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  45785. * R. Kelley Cook for making GCC buildable from a read-only directory
  45786. as well as other miscellaneous build process and documentation
  45787. clean-ups.
  45788. * Ralf Corsepius for SH testing and minor bug fixing.
  45789. * François-Xavier Coudert for contributions to GNU Fortran.
  45790. * Stan Cox for care and feeding of the x86 port and lots of behind
  45791. the scenes hacking.
  45792. * Alex Crain provided changes for the 3b1.
  45793. * Ian Dall for major improvements to the NS32k port.
  45794. * Paul Dale for his work to add uClinux platform support to the m68k
  45795. backend.
  45796. * Palmer Dabbelt for his work maintaining the RISC-V port.
  45797. * Dario Dariol contributed the four varieties of sample programs that
  45798. print a copy of their source.
  45799. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  45800. * Bud Davis for work on the G77 and GNU Fortran compilers.
  45801. * Mo DeJong for GCJ and libgcj bug fixes.
  45802. * Jerry DeLisle for contributions to GNU Fortran.
  45803. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  45804. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  45805. * Arnaud Desitter for helping to debug GNU Fortran.
  45806. * Gabriel Dos Reis for contributions to G++, contributions and
  45807. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  45808. including 'valarray<>', 'complex<>', maintaining the numerics
  45809. library (including that pesky '<limits>' :-) and keeping up-to-date
  45810. anything to do with numbers.
  45811. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  45812. ISO C99 support, CFG dumping support, etc., plus support of the C++
  45813. runtime libraries including for all kinds of C interface issues,
  45814. contributing and maintaining 'complex<>', sanity checking and
  45815. disbursement, configuration architecture, libio maintenance, and
  45816. early math work.
  45817. * François Dumont for his work on libstdc++-v3, especially
  45818. maintaining and improving 'debug-mode' and associative and
  45819. unordered containers.
  45820. * Zdenek Dvorak for a new loop unroller and various fixes.
  45821. * Michael Eager for his work on the Xilinx MicroBlaze port.
  45822. * Richard Earnshaw for his ongoing work with the ARM.
  45823. * David Edelsohn for his direction via the steering committee,
  45824. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  45825. loop changes, doing the entire AIX port of libstdc++ with his bare
  45826. hands, and for ensuring GCC properly keeps working on AIX.
  45827. * Kevin Ediger for the floating point formatting of num_put::do_put
  45828. in libstdc++.
  45829. * Phil Edwards for libstdc++ work including configuration hackery,
  45830. documentation maintainer, chief breaker of the web pages, the
  45831. occasional iostream bug fix, and work on shared library symbol
  45832. versioning.
  45833. * Paul Eggert for random hacking all over GCC.
  45834. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  45835. configuration support for locales and fstream-related fixes.
  45836. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  45837. iostreams.
  45838. * Christian Ehrhardt for dealing with bug reports.
  45839. * Ben Elliston for his work to move the Objective-C runtime into its
  45840. own subdirectory and for his work on autoconf.
  45841. * Revital Eres for work on the PowerPC 750CL port.
  45842. * Marc Espie for OpenBSD support.
  45843. * Doug Evans for much of the global optimization framework, arc,
  45844. m32r, and SPARC work.
  45845. * Christopher Faylor for his work on the Cygwin port and for caring
  45846. and feeding the gcc.gnu.org box and saving its users tons of spam.
  45847. * Fred Fish for BeOS support and Ada fixes.
  45848. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  45849. * Peter Gerwinski for various bug fixes and the Pascal front end.
  45850. * Kaveh R. Ghazi for his direction via the steering committee,
  45851. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  45852. on a plethora of platforms. Kaveh extends his gratitude to the
  45853. CAIP Center at Rutgers University for providing him with computing
  45854. resources to work on Free Software from the late 1980s to 2010.
  45855. * John Gilmore for a donation to the FSF earmarked improving GNU
  45856. Java.
  45857. * Judy Goldberg for c++ contributions.
  45858. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  45859. multiply- and divide-by-constant optimization, improved long long
  45860. support, improved leaf function register allocation, and his
  45861. direction via the steering committee.
  45862. * Jonny Grant for improvements to 'collect2's' '--help'
  45863. documentation.
  45864. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  45865. front end work.
  45866. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  45867. code.
  45868. * Michael K. Gschwind contributed the port to the PDP-11.
  45869. * Richard Biener for his ongoing middle-end contributions and bug
  45870. fixes and for release management.
  45871. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  45872. the support for DWARF 1 symbolic debugging information, and much of
  45873. the support for System V Release 4. He has also worked heavily on
  45874. the Intel 386 and 860 support.
  45875. * Sumanth Gundapaneni for contributing the CR16 port.
  45876. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  45877. GCSE.
  45878. * Bruno Haible for improvements in the runtime overhead for EH, new
  45879. warnings and assorted bug fixes.
  45880. * Andrew Haley for his amazing Java compiler and library efforts.
  45881. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  45882. series 300.
  45883. * Michael Hayes for various thankless work he's done trying to get
  45884. the c30/c40 ports functional. Lots of loop and unroll improvements
  45885. and fixes.
  45886. * Dara Hazeghi for wading through myriads of target-specific bug
  45887. reports.
  45888. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  45889. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  45890. work, loop opts, and generally fixing lots of old problems we've
  45891. ignored for years, flow rewrite and lots of further stuff,
  45892. including reviewing tons of patches.
  45893. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  45894. various fixes.
  45895. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  45896. contributed the support for the Sony NEWS machine.
  45897. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  45898. various fixes.
  45899. * Katherine Holcomb for work on GNU Fortran.
  45900. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  45901. of testing and bug fixing, particularly of GCC configury code.
  45902. * Steve Holmgren for MachTen patches.
  45903. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  45904. * Jan Hubicka for his x86 port improvements.
  45905. * Falk Hueffner for working on C and optimization bug reports.
  45906. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  45907. improvements and uClinux support.
  45908. * Christian Iseli for various bug fixes.
  45909. * Kamil Iskra for general m68k hacking.
  45910. * Lee Iverson for random fixes and MIPS testing.
  45911. * Balaji V. Iyer for Cilk+ development and merging.
  45912. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  45913. fixes.
  45914. * Martin Jambor for his work on inter-procedural optimizations, the
  45915. switch conversion pass, and scalar replacement of aggregates.
  45916. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  45917. well as lots of bug fixes and test cases, and for improving the
  45918. Java build system.
  45919. * Janis Johnson for ia64 testing and fixes, her quality improvement
  45920. sidetracks, and web page maintenance.
  45921. * Kean Johnston for SCO OpenServer support and various fixes.
  45922. * Tim Josling for the sample language treelang based originally on
  45923. Richard Kenner's "toy" language.
  45924. * Nicolai Josuttis for additional libstdc++ documentation.
  45925. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  45926. target.
  45927. * Steven G. Kargl for work on GNU Fortran.
  45928. * David Kashtan of SRI adapted GCC to VMS.
  45929. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  45930. optimizations of strings, especially member functions, and for
  45931. auto_ptr fixes.
  45932. * Geoffrey Keating for his ongoing work to make the PPC work for
  45933. GNU/Linux and his automatic regression tester.
  45934. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  45935. work in just about every part of libstdc++.
  45936. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  45937. MIL-STD-1750A.
  45938. * Richard Kenner of the New York University Ultracomputer Research
  45939. Laboratory wrote the machine descriptions for the AMD 29000, the
  45940. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  45941. support for instruction attributes. He also made changes to better
  45942. support RISC processors including changes to common subexpression
  45943. elimination, strength reduction, function calling sequence
  45944. handling, and condition code support, in addition to generalizing
  45945. the code for frame pointer elimination and delay slot scheduling.
  45946. Richard Kenner was also the head maintainer of GCC for several
  45947. years.
  45948. * Mumit Khan for various contributions to the Cygwin and Mingw32
  45949. ports and maintaining binary releases for Microsoft Windows hosts,
  45950. and for massive libstdc++ porting work to Cygwin/Mingw32.
  45951. * Robin Kirkham for cpu32 support.
  45952. * Mark Klein for PA improvements.
  45953. * Thomas Koenig for various bug fixes.
  45954. * Bruce Korb for the new and improved fixincludes code.
  45955. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  45956. effort.
  45957. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  45958. Android and m68k/Coldfire ports, and optimizations.
  45959. * Charles LaBrec contributed the support for the Integrated Solutions
  45960. 68020 system.
  45961. * Asher Langton and Mike Kumbera for contributing Cray pointer
  45962. support to GNU Fortran, and for other GNU Fortran improvements.
  45963. * Jeff Law for his direction via the steering committee, coordinating
  45964. the entire egcs project and GCC 2.95, rolling out snapshots and
  45965. releases, handling merges from GCC2, reviewing tons of patches that
  45966. might have fallen through the cracks else, and random but extensive
  45967. hacking.
  45968. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  45969. * Marc Lehmann for his direction via the steering committee and
  45970. helping with analysis and improvements of x86 performance.
  45971. * Victor Leikehman for work on GNU Fortran.
  45972. * Ted Lemon wrote parts of the RTL reader and printer.
  45973. * Kriang Lerdsuwanakij for C++ improvements including template as
  45974. template parameter support, and many C++ fixes.
  45975. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  45976. and random work on the Java front end.
  45977. * Alain Lichnewsky ported GCC to the MIPS CPU.
  45978. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  45979. and patches.
  45980. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  45981. * Chen Liqin for various S+core related fixes/improvement, and for
  45982. maintaining the S+core port.
  45983. * Martin Liska for his work on identical code folding, the
  45984. sanitizers, HSA, general bug fixing and for running automated
  45985. regression testing of GCC and reporting numerous bugs.
  45986. * Weiwen Liu for testing and various bug fixes.
  45987. * Manuel López-Ibáñez for improving '-Wconversion' and many other
  45988. diagnostics fixes and improvements.
  45989. * Dave Love for his ongoing work with the Fortran front end and
  45990. runtime libraries.
  45991. * Martin von Löwis for internal consistency checking infrastructure,
  45992. various C++ improvements including namespace support, and tons of
  45993. assistance with libstdc++/compiler merges.
  45994. * H.J. Lu for his previous contributions to the steering committee,
  45995. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  45996. ports working.
  45997. * Greg McGary for random fixes and (someday) bounded pointers.
  45998. * Andrew MacLeod for his ongoing work in building a real EH system,
  45999. various code generation improvements, work on the global optimizer,
  46000. etc.
  46001. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  46002. hacking improvements to compile-time performance, overall knowledge
  46003. and direction in the area of instruction scheduling, design and
  46004. implementation of the automaton based instruction scheduler and
  46005. design and implementation of the integrated and local register
  46006. allocators.
  46007. * David Malcolm for his work on improving GCC diagnostics, JIT,
  46008. self-tests and unit testing.
  46009. * Bob Manson for his behind the scenes work on dejagnu.
  46010. * John Marino for contributing the DragonFly BSD port.
  46011. * Philip Martin for lots of libstdc++ string and vector iterator
  46012. fixes and improvements, and string clean up and testsuites.
  46013. * Michael Matz for his work on dominance tree discovery, the x86-64
  46014. port, link-time optimization framework and general optimization
  46015. improvements.
  46016. * All of the Mauve project contributors for Java test code.
  46017. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  46018. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  46019. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  46020. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  46021. * Jason Merrill for his direction via the steering committee and
  46022. leading the G++ effort.
  46023. * Martin Michlmayr for testing GCC on several architectures using the
  46024. entire Debian archive.
  46025. * David Miller for his direction via the steering committee, lots of
  46026. SPARC work, improvements in jump.c and interfacing with the Linux
  46027. kernel developers.
  46028. * Gary Miller ported GCC to Charles River Data Systems machines.
  46029. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  46030. the entire libstdc++ testsuite namespace-compatible.
  46031. * Mark Mitchell for his direction via the steering committee,
  46032. mountains of C++ work, load/store hoisting out of loops, alias
  46033. analysis improvements, ISO C 'restrict' support, and serving as
  46034. release manager from 2000 to 2011.
  46035. * Alan Modra for various GNU/Linux bits and testing.
  46036. * Toon Moene for his direction via the steering committee, Fortran
  46037. maintenance, and his ongoing work to make us make Fortran run fast.
  46038. * Jason Molenda for major help in the care and feeding of all the
  46039. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  46040. machine--mail, web services, ftp services, etc etc. Doing all this
  46041. work on scrap paper and the backs of envelopes would have been...
  46042. difficult.
  46043. * Catherine Moore for fixing various ugly problems we have sent her
  46044. way, including the haifa bug which was killing the Alpha & PowerPC
  46045. Linux kernels.
  46046. * Mike Moreton for his various Java patches.
  46047. * David Mosberger-Tang for various Alpha improvements, and for the
  46048. initial IA-64 port.
  46049. * Stephen Moshier contributed the floating point emulator that
  46050. assists in cross-compilation and permits support for floating point
  46051. numbers wider than 64 bits and for ISO C99 support.
  46052. * Bill Moyer for his behind the scenes work on various issues.
  46053. * Philippe De Muyter for his work on the m68k port.
  46054. * Joseph S. Myers for his work on the PDP-11 port, format checking
  46055. and ISO C99 support, and continuous emphasis on (and contributions
  46056. to) documentation.
  46057. * Nathan Myers for his work on libstdc++-v3: architecture and
  46058. authorship through the first three snapshots, including
  46059. implementation of locale infrastructure, string, shadow C headers,
  46060. and the initial project documentation (DESIGN, CHECKLIST, and so
  46061. forth). Later, more work on MT-safe string and shadow headers.
  46062. * Felix Natter for documentation on porting libstdc++.
  46063. * Nathanael Nerode for cleaning up the configuration/build process.
  46064. * NeXT, Inc. donated the front end that supports the Objective-C
  46065. language.
  46066. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  46067. search engine setup, various documentation fixes and other small
  46068. fixes.
  46069. * Geoff Noer for his work on getting cygwin native builds working.
  46070. * Vegard Nossum for running automated regression testing of GCC and
  46071. reporting numerous bugs.
  46072. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  46073. tracking web pages, GIMPLE tuples, and assorted fixes.
  46074. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  46075. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  46076. infrastructure improvements.
  46077. * Alexandre Oliva for various build infrastructure improvements,
  46078. scripts and amazing testing work, including keeping libtool issues
  46079. sane and happy.
  46080. * Stefan Olsson for work on mt_alloc.
  46081. * Melissa O'Neill for various NeXT fixes.
  46082. * Rainer Orth for random MIPS work, including improvements to GCC's
  46083. o32 ABI support, improvements to dejagnu's MIPS support, Java
  46084. configuration clean-ups and porting work, and maintaining the IRIX,
  46085. Solaris 2, and Tru64 UNIX ports.
  46086. * Steven Pemberton for his contribution of 'enquire' which allowed
  46087. GCC to determine various properties of the floating point unit and
  46088. generate 'float.h' in older versions of GCC.
  46089. * Hartmut Penner for work on the s390 port.
  46090. * Paul Petersen wrote the machine description for the Alliant FX/8.
  46091. * Alexandre Petit-Bianco for implementing much of the Java compiler
  46092. and continued Java maintainership.
  46093. * Matthias Pfaller for major improvements to the NS32k port.
  46094. * Gerald Pfeifer for his direction via the steering committee,
  46095. pointing out lots of problems we need to solve, maintenance of the
  46096. web pages, and taking care of documentation maintenance in general.
  46097. * Marek Polacek for his work on the C front end, the sanitizers and
  46098. general bug fixing.
  46099. * Andrew Pinski for processing bug reports by the dozen.
  46100. * Ovidiu Predescu for his work on the Objective-C front end and
  46101. runtime libraries.
  46102. * Jerry Quinn for major performance improvements in C++ formatted
  46103. I/O.
  46104. * Ken Raeburn for various improvements to checker, MIPS ports and
  46105. various cleanups in the compiler.
  46106. * Rolf W. Rasmussen for hacking on AWT.
  46107. * David Reese of Sun Microsystems contributed to the Solaris on
  46108. PowerPC port.
  46109. * John Regehr for running automated regression testing of GCC and
  46110. reporting numerous bugs.
  46111. * Volker Reichelt for running automated regression testing of GCC and
  46112. reporting numerous bugs and for keeping up with the problem
  46113. reports.
  46114. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  46115. hacking and developing and maintaining the Epiphany port.
  46116. * Loren J. Rittle for improvements to libstdc++-v3 including the
  46117. FreeBSD port, threading fixes, thread-related configury changes,
  46118. critical threading documentation, and solutions to really tricky
  46119. I/O problems, as well as keeping GCC properly working on FreeBSD
  46120. and continuous testing.
  46121. * Craig Rodrigues for processing tons of bug reports.
  46122. * Ola Rönnerup for work on mt_alloc.
  46123. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  46124. * David Ronis inspired and encouraged Craig to rewrite the G77
  46125. documentation in texinfo format by contributing a first pass at a
  46126. translation of the old 'g77-0.5.16/f/DOC' file.
  46127. * Ken Rose for fixes to GCC's delay slot filling code.
  46128. * Ira Rosen for her contributions to the auto-vectorizer.
  46129. * Paul Rubin wrote most of the preprocessor.
  46130. * Pétur Runólfsson for major performance improvements in C++
  46131. formatted I/O and large file support in C++ filebuf.
  46132. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  46133. traits, Makefiles, libio, libtool hackery, and "long long" support.
  46134. * Juha Sarlin for improvements to the H8 code generator.
  46135. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  46136. 300.
  46137. * Roger Sayle for improvements to constant folding and GCC's RTL
  46138. optimizers as well as for fixing numerous bugs.
  46139. * Bradley Schatz for his work on the GCJ FAQ.
  46140. * Peter Schauer wrote the code to allow debugging to work on the
  46141. Alpha.
  46142. * William Schelter did most of the work on the Intel 80386 support.
  46143. * Tobias Schlüter for work on GNU Fortran.
  46144. * Bernd Schmidt for various code generation improvements and major
  46145. work in the reload pass, serving as release manager for GCC 2.95.3,
  46146. and work on the Blackfin and C6X ports.
  46147. * Peter Schmid for constant testing of libstdc++--especially
  46148. application testing, going above and beyond what was requested for
  46149. the release criteria--and libstdc++ header file tweaks.
  46150. * Jason Schroeder for jcf-dump patches.
  46151. * Andreas Schwab for his work on the m68k port.
  46152. * Lars Segerlund for work on GNU Fortran.
  46153. * Dodji Seketeli for numerous C++ bug fixes and debug info
  46154. improvements.
  46155. * Tim Shen for major work on '<regex>'.
  46156. * Joel Sherrill for his direction via the steering committee, RTEMS
  46157. contributions and RTEMS testing.
  46158. * Nathan Sidwell for many C++ fixes/improvements.
  46159. * Jeffrey Siegal for helping RMS with the original design of GCC,
  46160. some code which handles the parse tree and RTL data structures,
  46161. constant folding and help with the original VAX & m68k ports.
  46162. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  46163. from the LWG (thereby keeping GCC in line with updates from the
  46164. ISO).
  46165. * Franz Sirl for his ongoing work with making the PPC port stable for
  46166. GNU/Linux.
  46167. * Andrey Slepuhin for assorted AIX hacking.
  46168. * Trevor Smigiel for contributing the SPU port.
  46169. * Christopher Smith did the port for Convex machines.
  46170. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  46171. Retired from GCC maintainership August 2010, having mentored two
  46172. new maintainers into the role.
  46173. * Randy Smith finished the Sun FPA support.
  46174. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  46175. functions, '<random>', and various improvements to C++11 features.
  46176. * Scott Snyder for queue, iterator, istream, and string fixes and
  46177. libstdc++ testsuite entries. Also for providing the patch to G77
  46178. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  46179. 'LOGICAL*1'.
  46180. * Zdenek Sojka for running automated regression testing of GCC and
  46181. reporting numerous bugs.
  46182. * Arseny Solokha for running automated regression testing of GCC and
  46183. reporting numerous bugs.
  46184. * Jayant Sonar for contributing the CR16 port.
  46185. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  46186. * Richard Stallman, for writing the original GCC and launching the
  46187. GNU project.
  46188. * Jan Stein of the Chalmers Computer Society provided support for
  46189. Genix, as well as part of the 32000 machine description.
  46190. * Gerhard Steinmetz for running automated regression testing of GCC
  46191. and reporting numerous bugs.
  46192. * Nigel Stephens for various mips16 related fixes/improvements.
  46193. * Jonathan Stone wrote the machine description for the Pyramid
  46194. computer.
  46195. * Graham Stott for various infrastructure improvements.
  46196. * John Stracke for his Java HTTP protocol fixes.
  46197. * Mike Stump for his Elxsi port, G++ contributions over the years and
  46198. more recently his vxworks contributions
  46199. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  46200. * Zhendong Su for running automated regression testing of GCC and
  46201. reporting numerous bugs.
  46202. * Chengnian Sun for running automated regression testing of GCC and
  46203. reporting numerous bugs.
  46204. * Shigeya Suzuki for this fixes for the bsdi platforms.
  46205. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  46206. support, general configury hacking, fixincludes, etc.
  46207. * Holger Teutsch provided the support for the Clipper CPU.
  46208. * Gary Thomas for his ongoing work to make the PPC work for
  46209. GNU/Linux.
  46210. * Paul Thomas for contributions to GNU Fortran.
  46211. * Philipp Thomas for random bug fixes throughout the compiler
  46212. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  46213. * Kresten Krab Thorup wrote the run time support for the Objective-C
  46214. language and the fantastic Java bytecode interpreter.
  46215. * Michael Tiemann for random bug fixes, the first instruction
  46216. scheduler, initial C++ support, function integration, NS32k, SPARC
  46217. and M88k machine description work, delay slot scheduling.
  46218. * Andreas Tobler for his work porting libgcj to Darwin.
  46219. * Teemu Torma for thread safe exception handling support.
  46220. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  46221. definitions, and of the VAX machine description.
  46222. * Daniel Towner and Hariharan Sandanagobalane contributed and
  46223. maintain the picoChip port.
  46224. * Tom Tromey for internationalization support and for his many Java
  46225. contributions and libgcj maintainership.
  46226. * Lassi Tuura for improvements to config.guess to determine HP
  46227. processor types.
  46228. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  46229. * Andy Vaught for the design and initial implementation of the GNU
  46230. Fortran front end.
  46231. * Brent Verner for work with the libstdc++ cshadow files and their
  46232. associated configure steps.
  46233. * Todd Vierling for contributions for NetBSD ports.
  46234. * Andrew Waterman for contributing the RISC-V port, as well as
  46235. maintaining it.
  46236. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  46237. guidance and maintaining libstdc++.
  46238. * Dean Wakerley for converting the install documentation from HTML to
  46239. texinfo in time for GCC 3.0.
  46240. * Krister Walfridsson for random bug fixes.
  46241. * Feng Wang for contributions to GNU Fortran.
  46242. * Stephen M. Webb for time and effort on making libstdc++ shadow
  46243. files work with the tricky Solaris 8+ headers, and for pushing the
  46244. build-time header tree. Also, for starting and driving the
  46245. '<regex>' effort.
  46246. * John Wehle for various improvements for the x86 code generator,
  46247. related infrastructure improvements to help x86 code generation,
  46248. value range propagation and other work, WE32k port.
  46249. * Ulrich Weigand for work on the s390 port.
  46250. * Janus Weil for contributions to GNU Fortran.
  46251. * Zack Weinberg for major work on cpplib and various other bug fixes.
  46252. * Matt Welsh for help with Linux Threads support in GCJ.
  46253. * Urban Widmark for help fixing java.io.
  46254. * Mark Wielaard for new Java library code and his work integrating
  46255. with Classpath.
  46256. * Dale Wiles helped port GCC to the Tahoe.
  46257. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  46258. * Jim Wilson for his direction via the steering committee, tackling
  46259. hard problems in various places that nobody else wanted to work on,
  46260. strength reduction and other loop optimizations.
  46261. * Paul Woegerer and Tal Agmon for the CRX port.
  46262. * Carlo Wood for various fixes.
  46263. * Tom Wood for work on the m88k port.
  46264. * Chung-Ju Wu for his work on the Andes NDS32 port.
  46265. * Canqun Yang for work on GNU Fortran.
  46266. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  46267. description for the Tron architecture (specifically, the Gmicro).
  46268. * Kevin Zachmann helped port GCC to the Tahoe.
  46269. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  46270. * Qirun Zhang for running automated regression testing of GCC and
  46271. reporting numerous bugs.
  46272. * Xiaoqiang Zhang for work on GNU Fortran.
  46273. * Gilles Zunino for help porting Java to Irix.
  46274. The following people are recognized for their contributions to GNAT,
  46275. the Ada front end of GCC:
  46276. * Bernard Banner
  46277. * Romain Berrendonner
  46278. * Geert Bosch
  46279. * Emmanuel Briot
  46280. * Joel Brobecker
  46281. * Ben Brosgol
  46282. * Vincent Celier
  46283. * Arnaud Charlet
  46284. * Chien Chieng
  46285. * Cyrille Comar
  46286. * Cyrille Crozes
  46287. * Robert Dewar
  46288. * Gary Dismukes
  46289. * Robert Duff
  46290. * Ed Falis
  46291. * Ramon Fernandez
  46292. * Sam Figueroa
  46293. * Vasiliy Fofanov
  46294. * Michael Friess
  46295. * Franco Gasperoni
  46296. * Ted Giering
  46297. * Matthew Gingell
  46298. * Laurent Guerby
  46299. * Jerome Guitton
  46300. * Olivier Hainque
  46301. * Jerome Hugues
  46302. * Hristian Kirtchev
  46303. * Jerome Lambourg
  46304. * Bruno Leclerc
  46305. * Albert Lee
  46306. * Sean McNeil
  46307. * Javier Miranda
  46308. * Laurent Nana
  46309. * Pascal Obry
  46310. * Dong-Ik Oh
  46311. * Laurent Pautet
  46312. * Brett Porter
  46313. * Thomas Quinot
  46314. * Nicolas Roche
  46315. * Pat Rogers
  46316. * Jose Ruiz
  46317. * Douglas Rupp
  46318. * Sergey Rybin
  46319. * Gail Schenker
  46320. * Ed Schonberg
  46321. * Nicolas Setton
  46322. * Samuel Tardieu
  46323. The following people are recognized for their contributions of new
  46324. features, bug reports, testing and integration of classpath/libgcj for
  46325. GCC version 4.1:
  46326. * Lillian Angel for 'JTree' implementation and lots Free Swing
  46327. additions and bug fixes.
  46328. * Wolfgang Baer for 'GapContent' bug fixes.
  46329. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  46330. event fixes, lots of Free Swing work including 'JTable' editing.
  46331. * Stuart Ballard for RMI constant fixes.
  46332. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  46333. * Gary Benson for 'MessageFormat' fixes.
  46334. * Daniel Bonniot for 'Serialization' fixes.
  46335. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  46336. and 'DOM xml:id' support.
  46337. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  46338. * Archie Cobbs for build fixes, VM interface updates,
  46339. 'URLClassLoader' updates.
  46340. * Kelley Cook for build fixes.
  46341. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  46342. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  46343. improvements.
  46344. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  46345. 2D support. Lots of imageio framework additions, lots of AWT and
  46346. Free Swing bug fixes.
  46347. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  46348. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  46349. * Santiago Gala for 'AccessControlContext' fixes.
  46350. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  46351. improvements.
  46352. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  46353. lots of documenting, Lots of Free Swing and metal theme additions.
  46354. 'MetalIconFactory' implementation.
  46355. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  46356. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  46357. build speedups.
  46358. * Kim Ho for 'JFileChooser' implementation.
  46359. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  46360. 'Serialization' fixes, 'Properties' XML support and generic branch
  46361. work, VMIntegration guide update.
  46362. * Bastiaan Huisman for 'TimeZone' bug fixing.
  46363. * Andreas Jaeger for mprec updates.
  46364. * Paul Jenner for better '-Werror' support.
  46365. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  46366. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  46367. bug fixes all over. Lots of Free Swing work including styled text.
  46368. * Simon Kitching for 'String' cleanups and optimization suggestions.
  46369. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  46370. build fixes.
  46371. * Guilhem Lavaux for configuration, thread and channel fixes and
  46372. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  46373. fixes.
  46374. * David Lichteblau for JCL support library global/local reference
  46375. cleanups.
  46376. * Aaron Luchko for JDWP updates and documentation fixes.
  46377. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  46378. features.
  46379. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  46380. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  46381. and implementing the Qt4 peers.
  46382. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  46383. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  46384. 'FileChannel.map' support, security and policy updates.
  46385. * Bryce McKinlay for RMI work.
  46386. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  46387. testing and documenting.
  46388. * Kalle Olavi Niemitalo for build fixes.
  46389. * Rainer Orth for build fixes.
  46390. * Andrew Overholt for 'File' locking fixes.
  46391. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  46392. * Olga Rodimina for 'MenuSelectionManager' implementation.
  46393. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  46394. * Julian Scheid for documentation updates and gjdoc support.
  46395. * Christian Schlichtherle for zip fixes and cleanups.
  46396. * Robert Schuster for documentation updates and beans fixes,
  46397. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  46398. and URL, AWT and Free Swing bug fixes.
  46399. * Keith Seitz for lots of JDWP work.
  46400. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  46401. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  46402. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  46403. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  46404. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  46405. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  46406. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  46407. 'GdkPixbugDecoder' updates.
  46408. * Tom Tromey for Eclipse integration, generics work, lots of bug
  46409. fixes and gcj integration including coordinating The Big Merge.
  46410. * Mark Wielaard for bug fixes, packaging and release management,
  46411. 'Clipboard' implementation, system call interrupts and network
  46412. timeouts and 'GdkPixpufDecoder' fixes.
  46413. In addition to the above, all of which also contributed time and energy
  46414. in testing GCC, we would like to thank the following for their
  46415. contributions to testing:
  46416. * Michael Abd-El-Malek
  46417. * Thomas Arend
  46418. * Bonzo Armstrong
  46419. * Steven Ashe
  46420. * Chris Baldwin
  46421. * David Billinghurst
  46422. * Jim Blandy
  46423. * Stephane Bortzmeyer
  46424. * Horst von Brand
  46425. * Frank Braun
  46426. * Rodney Brown
  46427. * Sidney Cadot
  46428. * Bradford Castalia
  46429. * Robert Clark
  46430. * Jonathan Corbet
  46431. * Ralph Doncaster
  46432. * Richard Emberson
  46433. * Levente Farkas
  46434. * Graham Fawcett
  46435. * Mark Fernyhough
  46436. * Robert A. French
  46437. * Jörgen Freyh
  46438. * Mark K. Gardner
  46439. * Charles-Antoine Gauthier
  46440. * Yung Shing Gene
  46441. * David Gilbert
  46442. * Simon Gornall
  46443. * Fred Gray
  46444. * John Griffin
  46445. * Patrik Hagglund
  46446. * Phil Hargett
  46447. * Amancio Hasty
  46448. * Takafumi Hayashi
  46449. * Bryan W. Headley
  46450. * Kevin B. Hendricks
  46451. * Joep Jansen
  46452. * Christian Joensson
  46453. * Michel Kern
  46454. * David Kidd
  46455. * Tobias Kuipers
  46456. * Anand Krishnaswamy
  46457. * A. O. V. Le Blanc
  46458. * llewelly
  46459. * Damon Love
  46460. * Brad Lucier
  46461. * Matthias Klose
  46462. * Martin Knoblauch
  46463. * Rick Lutowski
  46464. * Jesse Macnish
  46465. * Stefan Morrell
  46466. * Anon A. Mous
  46467. * Matthias Mueller
  46468. * Pekka Nikander
  46469. * Rick Niles
  46470. * Jon Olson
  46471. * Magnus Persson
  46472. * Chris Pollard
  46473. * Richard Polton
  46474. * Derk Reefman
  46475. * David Rees
  46476. * Paul Reilly
  46477. * Tom Reilly
  46478. * Torsten Rueger
  46479. * Danny Sadinoff
  46480. * Marc Schifer
  46481. * Erik Schnetter
  46482. * Wayne K. Schroll
  46483. * David Schuler
  46484. * Vin Shelton
  46485. * Tim Souder
  46486. * Adam Sulmicki
  46487. * Bill Thorson
  46488. * George Talbot
  46489. * Pedro A. M. Vazquez
  46490. * Gregory Warnes
  46491. * Ian Watson
  46492. * David E. Young
  46493. * And many others
  46494. And finally we'd like to thank everyone who uses the compiler, provides
  46495. feedback and generally reminds us why we're doing this work in the first
  46496. place.
  46497. 
  46498. File: gcc.info, Node: Option Index, Next: Keyword Index, Prev: Contributors, Up: Top
  46499. Option Index
  46500. ************
  46501. GCC's command line options are indexed here without any initial '-' or
  46502. '--'. Where an option has both positive and negative forms (such as
  46503. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  46504. indexed under the most appropriate form; it may sometimes be useful to
  46505. look up both forms.
  46506. �[index�]
  46507. * Menu:
  46508. * ###: Overall Options. (line 204)
  46509. * -fipa-bit-cp: Optimize Options. (line 1026)
  46510. * -fipa-vrp: Optimize Options. (line 1031)
  46511. * -mfunction-return: x86 Options. (line 1305)
  46512. * -mindirect-branch: x86 Options. (line 1286)
  46513. * -mindirect-branch-register: x86 Options. (line 1320)
  46514. * -mlow-precision-div: AArch64 Options. (line 103)
  46515. * -mlow-precision-sqrt: AArch64 Options. (line 94)
  46516. * -mno-low-precision-div: AArch64 Options. (line 103)
  46517. * -mno-low-precision-sqrt: AArch64 Options. (line 94)
  46518. * -Wabi-tag: C++ Dialect Options.
  46519. (line 559)
  46520. * -Wno-scalar-storage-order: Warning Options. (line 2230)
  46521. * -Wscalar-storage-order: Warning Options. (line 2230)
  46522. * 80387: x86 Options. (line 465)
  46523. * A: Preprocessor Options.
  46524. (line 328)
  46525. * allowable_client: Darwin Options. (line 196)
  46526. * all_load: Darwin Options. (line 110)
  46527. * ansi: Standards. (line 13)
  46528. * ansi <1>: C Dialect Options. (line 11)
  46529. * ansi <2>: Other Builtins. (line 31)
  46530. * ansi <3>: Non-bugs. (line 107)
  46531. * arch_errors_fatal: Darwin Options. (line 114)
  46532. * aux-info: C Dialect Options. (line 217)
  46533. * B: Directory Options. (line 122)
  46534. * Bdynamic: VxWorks Options. (line 22)
  46535. * bind_at_load: Darwin Options. (line 118)
  46536. * Bstatic: VxWorks Options. (line 22)
  46537. * bundle: Darwin Options. (line 123)
  46538. * bundle_loader: Darwin Options. (line 127)
  46539. * c: Overall Options. (line 159)
  46540. * C: Preprocessor Options.
  46541. (line 337)
  46542. * c <1>: Link Options. (line 20)
  46543. * CC: Preprocessor Options.
  46544. (line 349)
  46545. * client_name: Darwin Options. (line 196)
  46546. * compatibility_version: Darwin Options. (line 196)
  46547. * coverage: Instrumentation Options.
  46548. (line 51)
  46549. * current_version: Darwin Options. (line 196)
  46550. * D: Preprocessor Options.
  46551. (line 19)
  46552. * d: Preprocessor Options.
  46553. (line 403)
  46554. * d <1>: Developer Options. (line 18)
  46555. * da: Developer Options. (line 225)
  46556. * dA: Developer Options. (line 228)
  46557. * dD: Preprocessor Options.
  46558. (line 427)
  46559. * dD <1>: Developer Options. (line 232)
  46560. * dead_strip: Darwin Options. (line 196)
  46561. * dependency-file: Darwin Options. (line 196)
  46562. * dH: Developer Options. (line 236)
  46563. * dI: Preprocessor Options.
  46564. (line 437)
  46565. * dM: Preprocessor Options.
  46566. (line 412)
  46567. * dN: Preprocessor Options.
  46568. (line 433)
  46569. * dp: Developer Options. (line 239)
  46570. * dP: Developer Options. (line 244)
  46571. * dU: Preprocessor Options.
  46572. (line 441)
  46573. * dumpfullversion: Developer Options. (line 951)
  46574. * dumpmachine: Developer Options. (line 939)
  46575. * dumpspecs: Developer Options. (line 955)
  46576. * dumpversion: Developer Options. (line 943)
  46577. * dx: Developer Options. (line 248)
  46578. * dylib_file: Darwin Options. (line 196)
  46579. * dylinker_install_name: Darwin Options. (line 196)
  46580. * dynamic: Darwin Options. (line 196)
  46581. * dynamiclib: Darwin Options. (line 131)
  46582. * E: Overall Options. (line 180)
  46583. * E <1>: Link Options. (line 20)
  46584. * EB: ARC Options. (line 589)
  46585. * EB <1>: MIPS Options. (line 7)
  46586. * EL: ARC Options. (line 598)
  46587. * EL <1>: MIPS Options. (line 10)
  46588. * exported_symbols_list: Darwin Options. (line 196)
  46589. * F: Darwin Options. (line 31)
  46590. * fabi-compat-version: C++ Dialect Options.
  46591. (line 85)
  46592. * fabi-version: C++ Dialect Options.
  46593. (line 24)
  46594. * fada-spec-parent: Overall Options. (line 384)
  46595. * faggressive-loop-optimizations: Optimize Options. (line 524)
  46596. * falign-functions: Optimize Options. (line 1537)
  46597. * falign-jumps: Optimize Options. (line 1595)
  46598. * falign-labels: Optimize Options. (line 1562)
  46599. * falign-loops: Optimize Options. (line 1581)
  46600. * faligned-new: C++ Dialect Options.
  46601. (line 105)
  46602. * fallow-parameterless-variadic-functions: C Dialect Options.
  46603. (line 233)
  46604. * fasan-shadow-offset: Instrumentation Options.
  46605. (line 380)
  46606. * fassociative-math: Optimize Options. (line 2077)
  46607. * fasynchronous-unwind-tables: Code Gen Options. (line 156)
  46608. * fauto-inc-dec: Optimize Options. (line 546)
  46609. * fauto-profile: Optimize Options. (line 1956)
  46610. * fbounds-check: Instrumentation Options.
  46611. (line 453)
  46612. * fbranch-probabilities: Optimize Options. (line 2222)
  46613. * fbranch-target-load-optimize: Optimize Options. (line 2358)
  46614. * fbranch-target-load-optimize2: Optimize Options. (line 2364)
  46615. * fbtr-bb-exclusive: Optimize Options. (line 2368)
  46616. * fcall-saved: Code Gen Options. (line 454)
  46617. * fcall-used: Code Gen Options. (line 440)
  46618. * fcaller-saves: Optimize Options. (line 904)
  46619. * fcf-protection: Instrumentation Options.
  46620. (line 581)
  46621. * fcheck-new: C++ Dialect Options.
  46622. (line 114)
  46623. * fcheck-pointer-bounds: Instrumentation Options.
  46624. (line 459)
  46625. * fchecking: Developer Options. (line 633)
  46626. * fchkp-check-incomplete-type: Instrumentation Options.
  46627. (line 497)
  46628. * fchkp-check-read: Instrumentation Options.
  46629. (line 553)
  46630. * fchkp-check-write: Instrumentation Options.
  46631. (line 557)
  46632. * fchkp-first-field-has-own-bounds: Instrumentation Options.
  46633. (line 508)
  46634. * fchkp-flexible-struct-trailing-arrays: Instrumentation Options.
  46635. (line 514)
  46636. * fchkp-instrument-calls: Instrumentation Options.
  46637. (line 565)
  46638. * fchkp-instrument-marked-only: Instrumentation Options.
  46639. (line 569)
  46640. * fchkp-narrow-bounds: Instrumentation Options.
  46641. (line 501)
  46642. * fchkp-narrow-to-innermost-array: Instrumentation Options.
  46643. (line 520)
  46644. * fchkp-optimize: Instrumentation Options.
  46645. (line 525)
  46646. * fchkp-store-bounds: Instrumentation Options.
  46647. (line 561)
  46648. * fchkp-treat-zero-dynamic-size-as-infinite: Instrumentation Options.
  46649. (line 546)
  46650. * fchkp-use-fast-string-functions: Instrumentation Options.
  46651. (line 529)
  46652. * fchkp-use-nochk-string-functions: Instrumentation Options.
  46653. (line 533)
  46654. * fchkp-use-static-bounds: Instrumentation Options.
  46655. (line 537)
  46656. * fchkp-use-static-const-bounds: Instrumentation Options.
  46657. (line 541)
  46658. * fchkp-use-wrappers: Instrumentation Options.
  46659. (line 574)
  46660. * fcode-hoisting: Optimize Options. (line 945)
  46661. * fcombine-stack-adjustments: Optimize Options. (line 916)
  46662. * fcommon: Common Variable Attributes.
  46663. (line 118)
  46664. * fcompare-debug: Developer Options. (line 727)
  46665. * fcompare-debug-second: Developer Options. (line 753)
  46666. * fcompare-elim: Optimize Options. (line 1909)
  46667. * fconcepts: C++ Dialect Options.
  46668. (line 124)
  46669. * fcond-mismatch: C Dialect Options. (line 384)
  46670. * fconserve-stack: Optimize Options. (line 935)
  46671. * fconstant-string-class: Objective-C and Objective-C++ Dialect Options.
  46672. (line 30)
  46673. * fconstexpr-depth: C++ Dialect Options.
  46674. (line 131)
  46675. * fconstexpr-loop-limit: C++ Dialect Options.
  46676. (line 137)
  46677. * fcprop-registers: Optimize Options. (line 1921)
  46678. * fcrossjumping: Optimize Options. (line 539)
  46679. * fcse-follow-jumps: Optimize Options. (line 460)
  46680. * fcse-skip-blocks: Optimize Options. (line 469)
  46681. * fcx-fortran-rules: Optimize Options. (line 2209)
  46682. * fcx-limited-range: Optimize Options. (line 2197)
  46683. * fdata-sections: Optimize Options. (line 2329)
  46684. * fdbg-cnt: Developer Options. (line 863)
  46685. * fdbg-cnt-list: Developer Options. (line 860)
  46686. * fdce: Optimize Options. (line 552)
  46687. * fdebug-cpp: Preprocessor Options.
  46688. (line 448)
  46689. * fdebug-prefix-map: Debugging Options. (line 137)
  46690. * fdebug-types-section: Debugging Options. (line 183)
  46691. * fdeclone-ctor-dtor: Optimize Options. (line 575)
  46692. * fdeduce-init-list: C++ Dialect Options.
  46693. (line 142)
  46694. * fdelayed-branch: Optimize Options. (line 728)
  46695. * fdelete-dead-exceptions: Code Gen Options. (line 141)
  46696. * fdelete-null-pointer-checks: Optimize Options. (line 586)
  46697. * fdevirtualize: Optimize Options. (line 607)
  46698. * fdevirtualize-at-ltrans: Optimize Options. (line 624)
  46699. * fdevirtualize-speculatively: Optimize Options. (line 614)
  46700. * fdiagnostics-color: Diagnostic Message Formatting Options.
  46701. (line 35)
  46702. * fdiagnostics-generate-patch: Diagnostic Message Formatting Options.
  46703. (line 160)
  46704. * fdiagnostics-parseable-fixits: Diagnostic Message Formatting Options.
  46705. (line 133)
  46706. * fdiagnostics-show-caret: Diagnostic Message Formatting Options.
  46707. (line 124)
  46708. * fdiagnostics-show-location: Diagnostic Message Formatting Options.
  46709. (line 20)
  46710. * fdiagnostics-show-option: Diagnostic Message Formatting Options.
  46711. (line 118)
  46712. * fdiagnostics-show-template-tree: Diagnostic Message Formatting Options.
  46713. (line 178)
  46714. * fdirectives-only: Preprocessor Options.
  46715. (line 202)
  46716. * fdisable-: Developer Options. (line 564)
  46717. * fdollars-in-identifiers: Preprocessor Options.
  46718. (line 223)
  46719. * fdollars-in-identifiers <1>: Interoperation. (line 141)
  46720. * fdpic: SH Options. (line 388)
  46721. * fdse: Optimize Options. (line 556)
  46722. * fdump-ada-spec: Overall Options. (line 379)
  46723. * fdump-final-insns: Developer Options. (line 721)
  46724. * fdump-go-spec: Overall Options. (line 388)
  46725. * fdump-ipa: Developer Options. (line 273)
  46726. * fdump-lang: Developer Options. (line 293)
  46727. * fdump-lang-all: Developer Options. (line 293)
  46728. * fdump-noaddr: Developer Options. (line 252)
  46729. * fdump-passes: Developer Options. (line 311)
  46730. * fdump-rtl-alignments: Developer Options. (line 44)
  46731. * fdump-rtl-all: Developer Options. (line 225)
  46732. * fdump-rtl-asmcons: Developer Options. (line 47)
  46733. * fdump-rtl-auto_inc_dec: Developer Options. (line 51)
  46734. * fdump-rtl-barriers: Developer Options. (line 55)
  46735. * fdump-rtl-bbpart: Developer Options. (line 58)
  46736. * fdump-rtl-bbro: Developer Options. (line 61)
  46737. * fdump-rtl-btl2: Developer Options. (line 65)
  46738. * fdump-rtl-btl2 <1>: Developer Options. (line 65)
  46739. * fdump-rtl-bypass: Developer Options. (line 69)
  46740. * fdump-rtl-ce1: Developer Options. (line 80)
  46741. * fdump-rtl-ce2: Developer Options. (line 80)
  46742. * fdump-rtl-ce3: Developer Options. (line 80)
  46743. * fdump-rtl-combine: Developer Options. (line 72)
  46744. * fdump-rtl-compgotos: Developer Options. (line 75)
  46745. * fdump-rtl-cprop_hardreg: Developer Options. (line 84)
  46746. * fdump-rtl-csa: Developer Options. (line 87)
  46747. * fdump-rtl-cse1: Developer Options. (line 91)
  46748. * fdump-rtl-cse2: Developer Options. (line 91)
  46749. * fdump-rtl-dbr: Developer Options. (line 98)
  46750. * fdump-rtl-dce: Developer Options. (line 95)
  46751. * fdump-rtl-dce1: Developer Options. (line 102)
  46752. * fdump-rtl-dce2: Developer Options. (line 102)
  46753. * fdump-rtl-dfinish: Developer Options. (line 221)
  46754. * fdump-rtl-dfinit: Developer Options. (line 221)
  46755. * fdump-rtl-eh: Developer Options. (line 106)
  46756. * fdump-rtl-eh_ranges: Developer Options. (line 109)
  46757. * fdump-rtl-expand: Developer Options. (line 112)
  46758. * fdump-rtl-fwprop1: Developer Options. (line 116)
  46759. * fdump-rtl-fwprop2: Developer Options. (line 116)
  46760. * fdump-rtl-gcse1: Developer Options. (line 121)
  46761. * fdump-rtl-gcse2: Developer Options. (line 121)
  46762. * fdump-rtl-init-regs: Developer Options. (line 125)
  46763. * fdump-rtl-initvals: Developer Options. (line 128)
  46764. * fdump-rtl-into_cfglayout: Developer Options. (line 131)
  46765. * fdump-rtl-ira: Developer Options. (line 134)
  46766. * fdump-rtl-jump: Developer Options. (line 137)
  46767. * fdump-rtl-loop2: Developer Options. (line 140)
  46768. * fdump-rtl-mach: Developer Options. (line 144)
  46769. * fdump-rtl-mode_sw: Developer Options. (line 148)
  46770. * fdump-rtl-outof_cfglayout: Developer Options. (line 154)
  46771. * fdump-rtl-PASS: Developer Options. (line 18)
  46772. * fdump-rtl-peephole2: Developer Options. (line 157)
  46773. * fdump-rtl-postreload: Developer Options. (line 160)
  46774. * fdump-rtl-pro_and_epilogue: Developer Options. (line 163)
  46775. * fdump-rtl-ree: Developer Options. (line 171)
  46776. * fdump-rtl-regclass: Developer Options. (line 221)
  46777. * fdump-rtl-rnreg: Developer Options. (line 151)
  46778. * fdump-rtl-sched1: Developer Options. (line 167)
  46779. * fdump-rtl-sched2: Developer Options. (line 167)
  46780. * fdump-rtl-seqabstr: Developer Options. (line 174)
  46781. * fdump-rtl-shorten: Developer Options. (line 177)
  46782. * fdump-rtl-sibling: Developer Options. (line 180)
  46783. * fdump-rtl-sms: Developer Options. (line 191)
  46784. * fdump-rtl-split1: Developer Options. (line 187)
  46785. * fdump-rtl-split2: Developer Options. (line 187)
  46786. * fdump-rtl-split3: Developer Options. (line 187)
  46787. * fdump-rtl-split4: Developer Options. (line 187)
  46788. * fdump-rtl-split5: Developer Options. (line 187)
  46789. * fdump-rtl-stack: Developer Options. (line 195)
  46790. * fdump-rtl-subreg1: Developer Options. (line 201)
  46791. * fdump-rtl-subreg2: Developer Options. (line 201)
  46792. * fdump-rtl-subregs_of_mode_finish: Developer Options. (line 221)
  46793. * fdump-rtl-subregs_of_mode_init: Developer Options. (line 221)
  46794. * fdump-rtl-unshare: Developer Options. (line 205)
  46795. * fdump-rtl-vartrack: Developer Options. (line 208)
  46796. * fdump-rtl-vregs: Developer Options. (line 211)
  46797. * fdump-rtl-web: Developer Options. (line 214)
  46798. * fdump-statistics: Developer Options. (line 315)
  46799. * fdump-tree: Developer Options. (line 328)
  46800. * fdump-tree-all: Developer Options. (line 328)
  46801. * fdump-unnumbered: Developer Options. (line 262)
  46802. * fdump-unnumbered-links: Developer Options. (line 268)
  46803. * fdwarf2-cfi-asm: Debugging Options. (line 388)
  46804. * fearly-inlining: Optimize Options. (line 305)
  46805. * felide-type: Diagnostic Message Formatting Options.
  46806. (line 198)
  46807. * feliminate-unused-debug-symbols: Debugging Options. (line 118)
  46808. * feliminate-unused-debug-types: Debugging Options. (line 392)
  46809. * femit-class-debug-always: Debugging Options. (line 122)
  46810. * femit-struct-debug-baseonly: Debugging Options. (line 319)
  46811. * femit-struct-debug-detailed: Debugging Options. (line 346)
  46812. * femit-struct-debug-reduced: Debugging Options. (line 332)
  46813. * fenable-: Developer Options. (line 564)
  46814. * fexceptions: Code Gen Options. (line 119)
  46815. * fexcess-precision: Optimize Options. (line 2003)
  46816. * fexec-charset: Preprocessor Options.
  46817. (line 266)
  46818. * fexpensive-optimizations: Optimize Options. (line 631)
  46819. * fext-numeric-literals: C++ Dialect Options.
  46820. (line 695)
  46821. * fextended-identifiers: Preprocessor Options.
  46822. (line 226)
  46823. * fextern-tls-init: C++ Dialect Options.
  46824. (line 195)
  46825. * ffast-math: Optimize Options. (line 2027)
  46826. * ffat-lto-objects: Optimize Options. (line 1886)
  46827. * ffile-prefix-map: Overall Options. (line 359)
  46828. * ffinite-math-only: Optimize Options. (line 2104)
  46829. * ffix-and-continue: Darwin Options. (line 104)
  46830. * ffixed: Code Gen Options. (line 428)
  46831. * ffloat-store: Optimize Options. (line 1989)
  46832. * ffloat-store <1>: Disappointments. (line 77)
  46833. * ffor-scope: C++ Dialect Options.
  46834. (line 216)
  46835. * fforward-propagate: Optimize Options. (line 213)
  46836. * ffp-contract: Optimize Options. (line 222)
  46837. * ffreestanding: Standards. (line 94)
  46838. * ffreestanding <1>: C Dialect Options. (line 302)
  46839. * ffreestanding <2>: Warning Options. (line 294)
  46840. * ffreestanding <3>: Common Function Attributes.
  46841. (line 283)
  46842. * ffriend-injection: C++ Dialect Options.
  46843. (line 163)
  46844. * ffunction-sections: Optimize Options. (line 2329)
  46845. * fgcse: Optimize Options. (line 483)
  46846. * fgcse-after-reload: Optimize Options. (line 519)
  46847. * fgcse-las: Optimize Options. (line 512)
  46848. * fgcse-lm: Optimize Options. (line 494)
  46849. * fgcse-sm: Optimize Options. (line 503)
  46850. * fgimple: C Dialect Options. (line 288)
  46851. * fgnu-runtime: Objective-C and Objective-C++ Dialect Options.
  46852. (line 39)
  46853. * fgnu-tm: C Dialect Options. (line 341)
  46854. * fgnu89-inline: C Dialect Options. (line 178)
  46855. * fgraphite-identity: Optimize Options. (line 1147)
  46856. * fhoist-adjacent-loads: Optimize Options. (line 975)
  46857. * fhosted: C Dialect Options. (line 294)
  46858. * fif-conversion: Optimize Options. (line 560)
  46859. * fif-conversion2: Optimize Options. (line 569)
  46860. * filelist: Darwin Options. (line 196)
  46861. * findirect-data: Darwin Options. (line 104)
  46862. * findirect-inlining: Optimize Options. (line 277)
  46863. * finhibit-size-directive: Code Gen Options. (line 261)
  46864. * finline-functions: Optimize Options. (line 286)
  46865. * finline-functions-called-once: Optimize Options. (line 297)
  46866. * finline-limit: Optimize Options. (line 321)
  46867. * finline-small-functions: Optimize Options. (line 268)
  46868. * finput-charset: Preprocessor Options.
  46869. (line 279)
  46870. * finstrument-functions: Instrumentation Options.
  46871. (line 774)
  46872. * finstrument-functions <1>: Common Function Attributes.
  46873. (line 543)
  46874. * finstrument-functions-exclude-file-list: Instrumentation Options.
  46875. (line 809)
  46876. * finstrument-functions-exclude-function-list: Instrumentation Options.
  46877. (line 830)
  46878. * fipa-cp: Optimize Options. (line 1008)
  46879. * fipa-cp-clone: Optimize Options. (line 1016)
  46880. * fipa-icf: Optimize Options. (line 1036)
  46881. * fipa-profile: Optimize Options. (line 1000)
  46882. * fipa-pta: Optimize Options. (line 994)
  46883. * fipa-pure-const: Optimize Options. (line 986)
  46884. * fipa-ra: Optimize Options. (line 922)
  46885. * fipa-reference: Optimize Options. (line 990)
  46886. * fipa-sra: Optimize Options. (line 314)
  46887. * fira-algorithm: Optimize Options. (line 665)
  46888. * fira-hoist-pressure: Optimize Options. (line 694)
  46889. * fira-loop-pressure: Optimize Options. (line 701)
  46890. * fira-region: Optimize Options. (line 673)
  46891. * fira-verbose: Developer Options. (line 790)
  46892. * fisolate-erroneous-paths-attribute: Optimize Options. (line 1058)
  46893. * fisolate-erroneous-paths-dereference: Optimize Options. (line 1050)
  46894. * fivar-visibility: Objective-C and Objective-C++ Dialect Options.
  46895. (line 161)
  46896. * fivopts: Optimize Options. (line 1258)
  46897. * fkeep-inline-functions: Optimize Options. (line 352)
  46898. * fkeep-inline-functions <1>: Inline. (line 51)
  46899. * fkeep-static-consts: Optimize Options. (line 363)
  46900. * fkeep-static-functions: Optimize Options. (line 359)
  46901. * flat_namespace: Darwin Options. (line 196)
  46902. * flax-vector-conversions: C Dialect Options. (line 389)
  46903. * fleading-underscore: Code Gen Options. (line 484)
  46904. * flive-range-shrinkage: Optimize Options. (line 660)
  46905. * flocal-ivars: Objective-C and Objective-C++ Dialect Options.
  46906. (line 152)
  46907. * floop-block: Optimize Options. (line 1141)
  46908. * floop-interchange: Optimize Options. (line 1221)
  46909. * floop-nest-optimize: Optimize Options. (line 1155)
  46910. * floop-parallelize-all: Optimize Options. (line 1161)
  46911. * floop-strip-mine: Optimize Options. (line 1141)
  46912. * floop-unroll-and-jam: Optimize Options. (line 1237)
  46913. * flra-remat: Optimize Options. (line 721)
  46914. * flto: Optimize Options. (line 1650)
  46915. * flto-compression-level: Optimize Options. (line 1860)
  46916. * flto-odr-type-merging: Optimize Options. (line 1855)
  46917. * flto-partition: Optimize Options. (line 1841)
  46918. * flto-report: Developer Options. (line 796)
  46919. * flto-report-wpa: Developer Options. (line 804)
  46920. * fmacro-prefix-map: Preprocessor Options.
  46921. (line 257)
  46922. * fmax-errors: Warning Options. (line 18)
  46923. * fmem-report: Developer Options. (line 808)
  46924. * fmem-report-wpa: Developer Options. (line 812)
  46925. * fmerge-all-constants: Optimize Options. (line 382)
  46926. * fmerge-constants: Optimize Options. (line 372)
  46927. * fmerge-debug-strings: Debugging Options. (line 130)
  46928. * fmessage-length: Diagnostic Message Formatting Options.
  46929. (line 14)
  46930. * fmodulo-sched: Optimize Options. (line 393)
  46931. * fmodulo-sched-allow-regmoves: Optimize Options. (line 398)
  46932. * fmove-loop-invariants: Optimize Options. (line 2315)
  46933. * fms-extensions: C Dialect Options. (line 356)
  46934. * fms-extensions <1>: C++ Dialect Options.
  46935. (line 250)
  46936. * fms-extensions <2>: Unnamed Fields. (line 36)
  46937. * fnew-inheriting-ctors: C++ Dialect Options.
  46938. (line 255)
  46939. * fnew-ttp-matching: C++ Dialect Options.
  46940. (line 261)
  46941. * fnext-runtime: Objective-C and Objective-C++ Dialect Options.
  46942. (line 43)
  46943. * fno-access-control: C++ Dialect Options.
  46944. (line 101)
  46945. * fno-asm: C Dialect Options. (line 240)
  46946. * fno-branch-count-reg: Optimize Options. (line 405)
  46947. * fno-builtin: C Dialect Options. (line 254)
  46948. * fno-builtin <1>: Warning Options. (line 294)
  46949. * fno-builtin <2>: Common Function Attributes.
  46950. (line 283)
  46951. * fno-builtin <3>: Other Builtins. (line 21)
  46952. * fno-canonical-system-headers: Preprocessor Options.
  46953. (line 230)
  46954. * fno-check-pointer-bounds: Instrumentation Options.
  46955. (line 459)
  46956. * fno-checking: Developer Options. (line 633)
  46957. * fno-chkp-check-incomplete-type: Instrumentation Options.
  46958. (line 497)
  46959. * fno-chkp-check-read: Instrumentation Options.
  46960. (line 553)
  46961. * fno-chkp-check-write: Instrumentation Options.
  46962. (line 557)
  46963. * fno-chkp-first-field-has-own-bounds: Instrumentation Options.
  46964. (line 508)
  46965. * fno-chkp-flexible-struct-trailing-arrays: Instrumentation Options.
  46966. (line 514)
  46967. * fno-chkp-instrument-calls: Instrumentation Options.
  46968. (line 565)
  46969. * fno-chkp-instrument-marked-only: Instrumentation Options.
  46970. (line 569)
  46971. * fno-chkp-narrow-bounds: Instrumentation Options.
  46972. (line 501)
  46973. * fno-chkp-narrow-to-innermost-array: Instrumentation Options.
  46974. (line 520)
  46975. * fno-chkp-optimize: Instrumentation Options.
  46976. (line 525)
  46977. * fno-chkp-store-bounds: Instrumentation Options.
  46978. (line 561)
  46979. * fno-chkp-treat-zero-dynamic-size-as-infinite: Instrumentation Options.
  46980. (line 546)
  46981. * fno-chkp-use-fast-string-functions: Instrumentation Options.
  46982. (line 529)
  46983. * fno-chkp-use-nochk-string-functions: Instrumentation Options.
  46984. (line 533)
  46985. * fno-chkp-use-static-bounds: Instrumentation Options.
  46986. (line 537)
  46987. * fno-chkp-use-static-const-bounds: Instrumentation Options.
  46988. (line 541)
  46989. * fno-chkp-use-wrappers: Instrumentation Options.
  46990. (line 574)
  46991. * fno-common: Code Gen Options. (line 231)
  46992. * fno-common <1>: Common Variable Attributes.
  46993. (line 118)
  46994. * fno-compare-debug: Developer Options. (line 727)
  46995. * fno-debug-types-section: Debugging Options. (line 183)
  46996. * fno-default-inline: Inline. (line 68)
  46997. * fno-defer-pop: Optimize Options. (line 205)
  46998. * fno-diagnostics-show-caret: Diagnostic Message Formatting Options.
  46999. (line 124)
  47000. * fno-diagnostics-show-option: Diagnostic Message Formatting Options.
  47001. (line 118)
  47002. * fno-dwarf2-cfi-asm: Debugging Options. (line 388)
  47003. * fno-elide-constructors: C++ Dialect Options.
  47004. (line 174)
  47005. * fno-elide-type: Diagnostic Message Formatting Options.
  47006. (line 198)
  47007. * fno-eliminate-unused-debug-types: Debugging Options. (line 392)
  47008. * fno-enforce-eh-specs: C++ Dialect Options.
  47009. (line 185)
  47010. * fno-ext-numeric-literals: C++ Dialect Options.
  47011. (line 695)
  47012. * fno-extern-tls-init: C++ Dialect Options.
  47013. (line 195)
  47014. * fno-for-scope: C++ Dialect Options.
  47015. (line 216)
  47016. * fno-fp-int-builtin-inexact: Optimize Options. (line 2176)
  47017. * fno-function-cse: Optimize Options. (line 420)
  47018. * fno-gnu-keywords: C++ Dialect Options.
  47019. (line 227)
  47020. * fno-gnu-unique: Code Gen Options. (line 162)
  47021. * fno-guess-branch-probability: Optimize Options. (line 1426)
  47022. * fno-ident: Code Gen Options. (line 258)
  47023. * fno-implement-inlines: C++ Dialect Options.
  47024. (line 245)
  47025. * fno-implement-inlines <1>: C++ Interface. (line 66)
  47026. * fno-implicit-inline-templates: C++ Dialect Options.
  47027. (line 239)
  47028. * fno-implicit-templates: C++ Dialect Options.
  47029. (line 233)
  47030. * fno-implicit-templates <1>: Template Instantiation.
  47031. (line 118)
  47032. * fno-inline: Optimize Options. (line 260)
  47033. * fno-ira-share-save-slots: Optimize Options. (line 709)
  47034. * fno-ira-share-spill-slots: Optimize Options. (line 715)
  47035. * fno-jump-tables: Code Gen Options. (line 420)
  47036. * fno-keep-inline-dllexport: Optimize Options. (line 346)
  47037. * fno-lifetime-dse: Optimize Options. (line 645)
  47038. * fno-local-ivars: Objective-C and Objective-C++ Dialect Options.
  47039. (line 152)
  47040. * fno-math-errno: Optimize Options. (line 2041)
  47041. * fno-merge-debug-strings: Debugging Options. (line 130)
  47042. * fno-nil-receivers: Objective-C and Objective-C++ Dialect Options.
  47043. (line 49)
  47044. * fno-nonansi-builtins: C++ Dialect Options.
  47045. (line 268)
  47046. * fno-operator-names: C++ Dialect Options.
  47047. (line 284)
  47048. * fno-optional-diags: C++ Dialect Options.
  47049. (line 288)
  47050. * fno-peephole: Optimize Options. (line 1417)
  47051. * fno-peephole2: Optimize Options. (line 1417)
  47052. * fno-plt: Code Gen Options. (line 402)
  47053. * fno-pretty-templates: C++ Dialect Options.
  47054. (line 298)
  47055. * fno-printf-return-value: Optimize Options. (line 1394)
  47056. * fno-rtti: C++ Dialect Options.
  47057. (line 315)
  47058. * fno-sanitize-recover: Instrumentation Options.
  47059. (line 389)
  47060. * fno-sanitize=all: Instrumentation Options.
  47061. (line 374)
  47062. * fno-sched-interblock: Optimize Options. (line 754)
  47063. * fno-sched-spec: Optimize Options. (line 759)
  47064. * fno-set-stack-executable: x86 Windows Options.
  47065. (line 46)
  47066. * fno-show-column: Diagnostic Message Formatting Options.
  47067. (line 210)
  47068. * fno-signed-bitfields: C Dialect Options. (line 422)
  47069. * fno-signed-zeros: Optimize Options. (line 2116)
  47070. * fno-stack-limit: Instrumentation Options.
  47071. (line 686)
  47072. * fno-threadsafe-statics: C++ Dialect Options.
  47073. (line 365)
  47074. * fno-toplevel-reorder: Optimize Options. (line 1616)
  47075. * fno-trapping-math: Optimize Options. (line 2126)
  47076. * fno-unsigned-bitfields: C Dialect Options. (line 422)
  47077. * fno-use-cxa-get-exception-ptr: C++ Dialect Options.
  47078. (line 378)
  47079. * fno-var-tracking-assignments: Debugging Options. (line 157)
  47080. * fno-var-tracking-assignments-toggle: Developer Options. (line 774)
  47081. * fno-weak: C++ Dialect Options.
  47082. (line 440)
  47083. * fno-working-directory: Preprocessor Options.
  47084. (line 314)
  47085. * fno-writable-relocated-rdata: x86 Windows Options.
  47086. (line 53)
  47087. * fno-zero-initialized-in-bss: Optimize Options. (line 431)
  47088. * fnon-call-exceptions: Code Gen Options. (line 133)
  47089. * fnothrow-opt: C++ Dialect Options.
  47090. (line 273)
  47091. * fobjc-abi-version: Objective-C and Objective-C++ Dialect Options.
  47092. (line 56)
  47093. * fobjc-call-cxx-cdtors: Objective-C and Objective-C++ Dialect Options.
  47094. (line 67)
  47095. * fobjc-direct-dispatch: Objective-C and Objective-C++ Dialect Options.
  47096. (line 92)
  47097. * fobjc-exceptions: Objective-C and Objective-C++ Dialect Options.
  47098. (line 96)
  47099. * fobjc-gc: Objective-C and Objective-C++ Dialect Options.
  47100. (line 104)
  47101. * fobjc-nilcheck: Objective-C and Objective-C++ Dialect Options.
  47102. (line 110)
  47103. * fobjc-std: Objective-C and Objective-C++ Dialect Options.
  47104. (line 119)
  47105. * fomit-frame-pointer: Optimize Options. (line 233)
  47106. * fopenacc: C Dialect Options. (line 313)
  47107. * fopenacc-dim: C Dialect Options. (line 322)
  47108. * fopenmp: C Dialect Options. (line 328)
  47109. * fopenmp-simd: C Dialect Options. (line 337)
  47110. * fopt-info: Developer Options. (line 453)
  47111. * foptimize-sibling-calls: Optimize Options. (line 248)
  47112. * foptimize-strlen: Optimize Options. (line 253)
  47113. * force_cpusubtype_ALL: Darwin Options. (line 135)
  47114. * force_flat_namespace: Darwin Options. (line 196)
  47115. * fpack-struct: Code Gen Options. (line 471)
  47116. * fpartial-inlining: Optimize Options. (line 1370)
  47117. * fpatchable-function-entry: Instrumentation Options.
  47118. (line 842)
  47119. * fpcc-struct-return: Code Gen Options. (line 175)
  47120. * fpcc-struct-return <1>: Incompatibilities. (line 170)
  47121. * fpch-deps: Preprocessor Options.
  47122. (line 289)
  47123. * fpch-preprocess: Preprocessor Options.
  47124. (line 297)
  47125. * fpeel-loops: Optimize Options. (line 2307)
  47126. * fpermissive: C++ Dialect Options.
  47127. (line 293)
  47128. * fpermitted-flt-eval-methods: C Dialect Options. (line 195)
  47129. * fpermitted-flt-eval-methods=c11: C Dialect Options. (line 195)
  47130. * fpermitted-flt-eval-methods=ts-18661-3: C Dialect Options. (line 195)
  47131. * fpic: Code Gen Options. (line 359)
  47132. * fPIC: Code Gen Options. (line 380)
  47133. * fpie: Code Gen Options. (line 393)
  47134. * fPIE: Code Gen Options. (line 393)
  47135. * fplan9-extensions: C Dialect Options. (line 374)
  47136. * fplan9-extensions <1>: Unnamed Fields. (line 43)
  47137. * fplugin: Overall Options. (line 368)
  47138. * fplugin-arg: Overall Options. (line 375)
  47139. * fpost-ipa-mem-report: Developer Options. (line 817)
  47140. * fpre-ipa-mem-report: Developer Options. (line 816)
  47141. * fpredictive-commoning: Optimize Options. (line 1377)
  47142. * fprefetch-loop-arrays: Optimize Options. (line 1384)
  47143. * fpreprocessed: Preprocessor Options.
  47144. (line 189)
  47145. * fprofile-abs-path: Instrumentation Options.
  47146. (line 107)
  47147. * fprofile-arcs: Instrumentation Options.
  47148. (line 31)
  47149. * fprofile-arcs <1>: Other Builtins. (line 425)
  47150. * fprofile-correction: Optimize Options. (line 1928)
  47151. * fprofile-dir: Instrumentation Options.
  47152. (line 113)
  47153. * fprofile-generate: Instrumentation Options.
  47154. (line 124)
  47155. * fprofile-reorder-functions: Optimize Options. (line 2249)
  47156. * fprofile-report: Developer Options. (line 821)
  47157. * fprofile-update: Instrumentation Options.
  47158. (line 141)
  47159. * fprofile-use: Optimize Options. (line 1936)
  47160. * fprofile-values: Optimize Options. (line 2240)
  47161. * fpu: RX Options. (line 17)
  47162. * frandom-seed: Developer Options. (line 638)
  47163. * freciprocal-math: Optimize Options. (line 2094)
  47164. * frecord-gcc-switches: Code Gen Options. (line 347)
  47165. * free: Optimize Options. (line 637)
  47166. * freg-struct-return: Code Gen Options. (line 193)
  47167. * frename-registers: Optimize Options. (line 2266)
  47168. * freorder-blocks: Optimize Options. (line 1443)
  47169. * freorder-blocks-algorithm: Optimize Options. (line 1449)
  47170. * freorder-blocks-and-partition: Optimize Options. (line 1460)
  47171. * freorder-functions: Optimize Options. (line 1477)
  47172. * freplace-objc-classes: Objective-C and Objective-C++ Dialect Options.
  47173. (line 130)
  47174. * frepo: C++ Dialect Options.
  47175. (line 310)
  47176. * frepo <1>: Template Instantiation.
  47177. (line 94)
  47178. * freport-bug: Developer Options. (line 258)
  47179. * frerun-cse-after-loop: Optimize Options. (line 477)
  47180. * freschedule-modulo-scheduled-loops: Optimize Options. (line 853)
  47181. * frounding-math: Optimize Options. (line 2141)
  47182. * fsanitize-address-use-after-scope: Instrumentation Options.
  47183. (line 425)
  47184. * fsanitize-coverage=trace-cmp: Instrumentation Options.
  47185. (line 440)
  47186. * fsanitize-coverage=trace-pc: Instrumentation Options.
  47187. (line 436)
  47188. * fsanitize-recover: Instrumentation Options.
  47189. (line 389)
  47190. * fsanitize-sections: Instrumentation Options.
  47191. (line 385)
  47192. * fsanitize-undefined-trap-on-error: Instrumentation Options.
  47193. (line 429)
  47194. * fsanitize=address: Instrumentation Options.
  47195. (line 158)
  47196. * fsanitize=alignment: Instrumentation Options.
  47197. (line 300)
  47198. * fsanitize=bool: Instrumentation Options.
  47199. (line 338)
  47200. * fsanitize=bounds: Instrumentation Options.
  47201. (line 285)
  47202. * fsanitize=bounds-strict: Instrumentation Options.
  47203. (line 292)
  47204. * fsanitize=builtin: Instrumentation Options.
  47205. (line 362)
  47206. * fsanitize=enum: Instrumentation Options.
  47207. (line 343)
  47208. * fsanitize=float-cast-overflow: Instrumentation Options.
  47209. (line 318)
  47210. * fsanitize=float-divide-by-zero: Instrumentation Options.
  47211. (line 312)
  47212. * fsanitize=integer-divide-by-zero: Instrumentation Options.
  47213. (line 248)
  47214. * fsanitize=kernel-address: Instrumentation Options.
  47215. (line 172)
  47216. * fsanitize=leak: Instrumentation Options.
  47217. (line 213)
  47218. * fsanitize=nonnull-attribute: Instrumentation Options.
  47219. (line 326)
  47220. * fsanitize=null: Instrumentation Options.
  47221. (line 262)
  47222. * fsanitize=object-size: Instrumentation Options.
  47223. (line 307)
  47224. * fsanitize=pointer-compare: Instrumentation Options.
  47225. (line 177)
  47226. * fsanitize=pointer-overflow: Instrumentation Options.
  47227. (line 356)
  47228. * fsanitize=pointer-subtract: Instrumentation Options.
  47229. (line 188)
  47230. * fsanitize=return: Instrumentation Options.
  47231. (line 270)
  47232. * fsanitize=returns-nonnull-attribute: Instrumentation Options.
  47233. (line 332)
  47234. * fsanitize=shift: Instrumentation Options.
  47235. (line 228)
  47236. * fsanitize=shift-base: Instrumentation Options.
  47237. (line 241)
  47238. * fsanitize=shift-exponent: Instrumentation Options.
  47239. (line 236)
  47240. * fsanitize=signed-integer-overflow: Instrumentation Options.
  47241. (line 276)
  47242. * fsanitize=thread: Instrumentation Options.
  47243. (line 198)
  47244. * fsanitize=undefined: Instrumentation Options.
  47245. (line 223)
  47246. * fsanitize=unreachable: Instrumentation Options.
  47247. (line 252)
  47248. * fsanitize=vla-bound: Instrumentation Options.
  47249. (line 258)
  47250. * fsanitize=vptr: Instrumentation Options.
  47251. (line 349)
  47252. * fsched-critical-path-heuristic: Optimize Options. (line 819)
  47253. * fsched-dep-count-heuristic: Optimize Options. (line 846)
  47254. * fsched-group-heuristic: Optimize Options. (line 813)
  47255. * fsched-last-insn-heuristic: Optimize Options. (line 839)
  47256. * fsched-pressure: Optimize Options. (line 764)
  47257. * fsched-rank-heuristic: Optimize Options. (line 832)
  47258. * fsched-spec-insn-heuristic: Optimize Options. (line 825)
  47259. * fsched-spec-load: Optimize Options. (line 773)
  47260. * fsched-spec-load-dangerous: Optimize Options. (line 778)
  47261. * fsched-stalled-insns: Optimize Options. (line 784)
  47262. * fsched-stalled-insns-dep: Optimize Options. (line 794)
  47263. * fsched-verbose: Developer Options. (line 550)
  47264. * fsched2-use-superblocks: Optimize Options. (line 803)
  47265. * fschedule-fusion: Optimize Options. (line 2276)
  47266. * fschedule-insns: Optimize Options. (line 735)
  47267. * fschedule-insns2: Optimize Options. (line 745)
  47268. * fsection-anchors: Optimize Options. (line 2376)
  47269. * fsel-sched-pipelining: Optimize Options. (line 866)
  47270. * fsel-sched-pipelining-outer-loops: Optimize Options. (line 871)
  47271. * fselective-scheduling: Optimize Options. (line 858)
  47272. * fselective-scheduling2: Optimize Options. (line 862)
  47273. * fsemantic-interposition: Optimize Options. (line 876)
  47274. * fshort-enums: Code Gen Options. (line 211)
  47275. * fshort-enums <1>: Structures unions enumerations and bit-fields implementation.
  47276. (line 48)
  47277. * fshort-enums <2>: Common Type Attributes.
  47278. (line 235)
  47279. * fshort-enums <3>: Non-bugs. (line 42)
  47280. * fshort-wchar: Code Gen Options. (line 221)
  47281. * fshrink-wrap: Optimize Options. (line 893)
  47282. * fshrink-wrap-separate: Optimize Options. (line 898)
  47283. * fsignaling-nans: Optimize Options. (line 2161)
  47284. * fsigned-bitfields: C Dialect Options. (line 422)
  47285. * fsigned-bitfields <1>: Non-bugs. (line 57)
  47286. * fsigned-char: C Dialect Options. (line 412)
  47287. * fsigned-char <1>: Characters implementation.
  47288. (line 31)
  47289. * fsimd-cost-model: Optimize Options. (line 1330)
  47290. * fsingle-precision-constant: Optimize Options. (line 2193)
  47291. * fsized-deallocation: C++ Dialect Options.
  47292. (line 325)
  47293. * fsplit-ivs-in-unroller: Optimize Options. (line 1351)
  47294. * fsplit-loops: Optimize Options. (line 2319)
  47295. * fsplit-paths: Optimize Options. (line 1346)
  47296. * fsplit-stack: Instrumentation Options.
  47297. (line 703)
  47298. * fsplit-stack <1>: Common Function Attributes.
  47299. (line 592)
  47300. * fsplit-wide-types: Optimize Options. (line 452)
  47301. * fssa-backprop: Optimize Options. (line 1081)
  47302. * fssa-phiopt: Optimize Options. (line 1087)
  47303. * fsso-struct: C Dialect Options. (line 428)
  47304. * fstack-check: Instrumentation Options.
  47305. (line 629)
  47306. * fstack-clash-protection: Instrumentation Options.
  47307. (line 671)
  47308. * fstack-limit-register: Instrumentation Options.
  47309. (line 686)
  47310. * fstack-limit-symbol: Instrumentation Options.
  47311. (line 686)
  47312. * fstack-protector: Instrumentation Options.
  47313. (line 608)
  47314. * fstack-protector-all: Instrumentation Options.
  47315. (line 617)
  47316. * fstack-protector-explicit: Instrumentation Options.
  47317. (line 625)
  47318. * fstack-protector-strong: Instrumentation Options.
  47319. (line 620)
  47320. * fstack-usage: Developer Options. (line 825)
  47321. * fstack_reuse: Code Gen Options. (line 15)
  47322. * fstats: Developer Options. (line 854)
  47323. * fstdarg-opt: Optimize Options. (line 2372)
  47324. * fstore-merging: Optimize Options. (line 1282)
  47325. * fstrict-aliasing: Optimize Options. (line 1490)
  47326. * fstrict-enums: C++ Dialect Options.
  47327. (line 335)
  47328. * fstrict-overflow: Code Gen Options. (line 115)
  47329. * fstrict-volatile-bitfields: Code Gen Options. (line 595)
  47330. * fstrong-eval-order: C++ Dialect Options.
  47331. (line 344)
  47332. * fsync-libcalls: Code Gen Options. (line 627)
  47333. * fsyntax-only: Warning Options. (line 14)
  47334. * ftabstop: Preprocessor Options.
  47335. (line 234)
  47336. * ftemplate-backtrace-limit: C++ Dialect Options.
  47337. (line 352)
  47338. * ftemplate-depth: C++ Dialect Options.
  47339. (line 356)
  47340. * ftest-coverage: Instrumentation Options.
  47341. (line 98)
  47342. * fthread-jumps: Optimize Options. (line 443)
  47343. * ftime-report: Developer Options. (line 782)
  47344. * ftime-report-details: Developer Options. (line 786)
  47345. * ftls-model: Code Gen Options. (line 495)
  47346. * ftracer: Optimize Options. (line 2284)
  47347. * ftrack-macro-expansion: Preprocessor Options.
  47348. (line 240)
  47349. * ftrampolines: Code Gen Options. (line 506)
  47350. * ftrapv: Code Gen Options. (line 91)
  47351. * ftree-bit-ccp: Optimize Options. (line 1070)
  47352. * ftree-builtin-call-dce: Optimize Options. (line 1108)
  47353. * ftree-ccp: Optimize Options. (line 1076)
  47354. * ftree-ch: Optimize Options. (line 1128)
  47355. * ftree-coalesce-vars: Optimize Options. (line 1167)
  47356. * ftree-copy-prop: Optimize Options. (line 981)
  47357. * ftree-dce: Optimize Options. (line 1104)
  47358. * ftree-dominator-opts: Optimize Options. (line 1114)
  47359. * ftree-dse: Optimize Options. (line 1121)
  47360. * ftree-forwprop: Optimize Options. (line 960)
  47361. * ftree-fre: Optimize Options. (line 964)
  47362. * ftree-loop-distribute-patterns: Optimize Options. (line 1201)
  47363. * ftree-loop-distribution: Optimize Options. (line 1184)
  47364. * ftree-loop-if-convert: Optimize Options. (line 1177)
  47365. * ftree-loop-im: Optimize Options. (line 1243)
  47366. * ftree-loop-ivcanon: Optimize Options. (line 1252)
  47367. * ftree-loop-linear: Optimize Options. (line 1141)
  47368. * ftree-loop-optimize: Optimize Options. (line 1135)
  47369. * ftree-loop-vectorize: Optimize Options. (line 1308)
  47370. * ftree-parallelize-loops: Optimize Options. (line 1263)
  47371. * ftree-partial-pre: Optimize Options. (line 956)
  47372. * ftree-phiprop: Optimize Options. (line 971)
  47373. * ftree-pre: Optimize Options. (line 952)
  47374. * ftree-pta: Optimize Options. (line 1272)
  47375. * ftree-reassoc: Optimize Options. (line 941)
  47376. * ftree-sink: Optimize Options. (line 1066)
  47377. * ftree-slp-vectorize: Optimize Options. (line 1312)
  47378. * ftree-slsr: Optimize Options. (line 1297)
  47379. * ftree-sra: Optimize Options. (line 1276)
  47380. * ftree-switch-conversion: Optimize Options. (line 1091)
  47381. * ftree-tail-merge: Optimize Options. (line 1096)
  47382. * ftree-ter: Optimize Options. (line 1289)
  47383. * ftree-vectorize: Optimize Options. (line 1303)
  47384. * ftree-vrp: Optimize Options. (line 1337)
  47385. * funconstrained-commons: Optimize Options. (line 533)
  47386. * funit-at-a-time: Optimize Options. (line 1609)
  47387. * funroll-all-loops: Optimize Options. (line 2301)
  47388. * funroll-loops: Optimize Options. (line 2291)
  47389. * funsafe-math-optimizations: Optimize Options. (line 2059)
  47390. * funsigned-bitfields: C Dialect Options. (line 422)
  47391. * funsigned-bitfields <1>: Structures unions enumerations and bit-fields implementation.
  47392. (line 17)
  47393. * funsigned-bitfields <2>: Non-bugs. (line 57)
  47394. * funsigned-char: C Dialect Options. (line 394)
  47395. * funsigned-char <1>: Characters implementation.
  47396. (line 31)
  47397. * funswitch-loops: Optimize Options. (line 2323)
  47398. * funwind-tables: Code Gen Options. (line 149)
  47399. * fuse-cxa-atexit: C++ Dialect Options.
  47400. (line 371)
  47401. * fuse-ld=bfd: Link Options. (line 25)
  47402. * fuse-ld=gold: Link Options. (line 28)
  47403. * fuse-linker-plugin: Optimize Options. (line 1868)
  47404. * fvar-tracking: Debugging Options. (line 147)
  47405. * fvar-tracking-assignments: Debugging Options. (line 157)
  47406. * fvar-tracking-assignments-toggle: Developer Options. (line 774)
  47407. * fvariable-expansion-in-unroller: Optimize Options. (line 1365)
  47408. * fvect-cost-model: Optimize Options. (line 1316)
  47409. * fverbose-asm: Code Gen Options. (line 268)
  47410. * fvisibility: Code Gen Options. (line 530)
  47411. * fvisibility-inlines-hidden: C++ Dialect Options.
  47412. (line 383)
  47413. * fvisibility-ms-compat: C++ Dialect Options.
  47414. (line 411)
  47415. * fvpt: Optimize Options. (line 2256)
  47416. * fvtable-verify: Instrumentation Options.
  47417. (line 721)
  47418. * fvtv-counts: Instrumentation Options.
  47419. (line 757)
  47420. * fvtv-debug: Instrumentation Options.
  47421. (line 744)
  47422. * fweb: Optimize Options. (line 1628)
  47423. * fwhole-program: Optimize Options. (line 1639)
  47424. * fwide-exec-charset: Preprocessor Options.
  47425. (line 271)
  47426. * fworking-directory: Preprocessor Options.
  47427. (line 314)
  47428. * fwrapv: Code Gen Options. (line 99)
  47429. * fwrapv-pointer: Code Gen Options. (line 109)
  47430. * fzero-link: Objective-C and Objective-C++ Dialect Options.
  47431. (line 140)
  47432. * g: Debugging Options. (line 25)
  47433. * G: ARC Options. (line 413)
  47434. * G <1>: M32R/D Options. (line 57)
  47435. * G <2>: MIPS Options. (line 436)
  47436. * G <3>: Nios II Options. (line 9)
  47437. * G <4>: PowerPC SPE Options.
  47438. (line 524)
  47439. * G <5>: RS/6000 and PowerPC Options.
  47440. (line 774)
  47441. * G <6>: System V Options. (line 10)
  47442. * gas-loc-support: Debugging Options. (line 212)
  47443. * gas-locview-support: Debugging Options. (line 228)
  47444. * gcolumn-info: Debugging Options. (line 240)
  47445. * gdwarf: Debugging Options. (line 45)
  47446. * gen-decls: Objective-C and Objective-C++ Dialect Options.
  47447. (line 166)
  47448. * gfull: Darwin Options. (line 69)
  47449. * ggdb: Debugging Options. (line 38)
  47450. * ggnu-pubnames: Debugging Options. (line 178)
  47451. * ginline-points: Debugging Options. (line 299)
  47452. * ginternal-reset-location-views: Debugging Options. (line 288)
  47453. * gno-as-loc-support: Debugging Options. (line 224)
  47454. * gno-column-info: Debugging Options. (line 240)
  47455. * gno-inline-points: Debugging Options. (line 299)
  47456. * gno-internal-reset-location-views: Debugging Options. (line 288)
  47457. * gno-record-gcc-switches: Debugging Options. (line 193)
  47458. * gno-statement-frontiers: Debugging Options. (line 245)
  47459. * gno-strict-dwarf: Debugging Options. (line 208)
  47460. * gno-variable-location-views: Debugging Options. (line 256)
  47461. * gpubnames: Debugging Options. (line 175)
  47462. * grecord-gcc-switches: Debugging Options. (line 193)
  47463. * gsplit-dwarf: Debugging Options. (line 168)
  47464. * gstabs: Debugging Options. (line 63)
  47465. * gstabs+: Debugging Options. (line 71)
  47466. * gstatement-frontiers: Debugging Options. (line 245)
  47467. * gstrict-dwarf: Debugging Options. (line 202)
  47468. * gtoggle: Developer Options. (line 766)
  47469. * gused: Darwin Options. (line 64)
  47470. * gvariable-location-views: Debugging Options. (line 256)
  47471. * gvariable-location-views=incompat5: Debugging Options. (line 256)
  47472. * gvms: Debugging Options. (line 90)
  47473. * gxcoff: Debugging Options. (line 77)
  47474. * gxcoff+: Debugging Options. (line 82)
  47475. * gz: Debugging Options. (line 308)
  47476. * H: Preprocessor Options.
  47477. (line 396)
  47478. * headerpad_max_install_names: Darwin Options. (line 196)
  47479. * help: Overall Options. (line 210)
  47480. * I: Directory Options. (line 13)
  47481. * I-: Directory Options. (line 65)
  47482. * idirafter: Directory Options. (line 13)
  47483. * iframework: Darwin Options. (line 57)
  47484. * imacros: Preprocessor Options.
  47485. (line 57)
  47486. * image_base: Darwin Options. (line 196)
  47487. * imultilib: Directory Options. (line 98)
  47488. * include: Preprocessor Options.
  47489. (line 46)
  47490. * init: Darwin Options. (line 196)
  47491. * install_name: Darwin Options. (line 196)
  47492. * iplugindir=: Directory Options. (line 113)
  47493. * iprefix: Directory Options. (line 80)
  47494. * iquote: Directory Options. (line 13)
  47495. * isysroot: Directory Options. (line 92)
  47496. * isystem: Directory Options. (line 13)
  47497. * iwithprefix: Directory Options. (line 86)
  47498. * iwithprefixbefore: Directory Options. (line 86)
  47499. * keep_private_externs: Darwin Options. (line 196)
  47500. * l: Link Options. (line 32)
  47501. * L: Directory Options. (line 118)
  47502. * lobjc: Link Options. (line 59)
  47503. * M: Preprocessor Options.
  47504. (line 77)
  47505. * m: PowerPC SPE Options.
  47506. (line 352)
  47507. * m <1>: RS/6000 and PowerPC Options.
  47508. (line 579)
  47509. * m1: SH Options. (line 9)
  47510. * m10: PDP-11 Options. (line 29)
  47511. * m128bit-long-double: x86 Options. (line 517)
  47512. * m16: x86 Options. (line 1330)
  47513. * m16-bit: CRIS Options. (line 64)
  47514. * m16-bit <1>: NDS32 Options. (line 51)
  47515. * m1reg-: Adapteva Epiphany Options.
  47516. (line 131)
  47517. * m2: SH Options. (line 12)
  47518. * m210: MCore Options. (line 43)
  47519. * m2a: SH Options. (line 30)
  47520. * m2a-nofpu: SH Options. (line 18)
  47521. * m2a-single: SH Options. (line 26)
  47522. * m2a-single-only: SH Options. (line 22)
  47523. * m3: SH Options. (line 34)
  47524. * m31: S/390 and zSeries Options.
  47525. (line 86)
  47526. * m32: Nvidia PTX Options. (line 10)
  47527. * m32 <1>: RS/6000 and PowerPC Options.
  47528. (line 283)
  47529. * m32 <2>: SPARC Options. (line 315)
  47530. * m32 <3>: TILE-Gx Options. (line 23)
  47531. * m32 <4>: TILEPro Options. (line 13)
  47532. * m32 <5>: x86 Options. (line 1330)
  47533. * m32-bit: CRIS Options. (line 64)
  47534. * m32bit-doubles: RL78 Options. (line 73)
  47535. * m32bit-doubles <1>: RX Options. (line 10)
  47536. * m32r: M32R/D Options. (line 15)
  47537. * m32r2: M32R/D Options. (line 9)
  47538. * m32rx: M32R/D Options. (line 12)
  47539. * m340: MCore Options. (line 43)
  47540. * m3dnow: x86 Options. (line 742)
  47541. * m3dnowa: x86 Options. (line 743)
  47542. * m3e: SH Options. (line 37)
  47543. * m4: SH Options. (line 51)
  47544. * m4-100: SH Options. (line 54)
  47545. * m4-100-nofpu: SH Options. (line 57)
  47546. * m4-100-single: SH Options. (line 61)
  47547. * m4-100-single-only: SH Options. (line 65)
  47548. * m4-200: SH Options. (line 69)
  47549. * m4-200-nofpu: SH Options. (line 72)
  47550. * m4-200-single: SH Options. (line 76)
  47551. * m4-200-single-only: SH Options. (line 80)
  47552. * m4-300: SH Options. (line 84)
  47553. * m4-300-nofpu: SH Options. (line 87)
  47554. * m4-300-single: SH Options. (line 91)
  47555. * m4-300-single-only: SH Options. (line 95)
  47556. * m4-340: SH Options. (line 99)
  47557. * m4-500: SH Options. (line 102)
  47558. * m4-nofpu: SH Options. (line 40)
  47559. * m4-single: SH Options. (line 47)
  47560. * m4-single-only: SH Options. (line 43)
  47561. * m40: PDP-11 Options. (line 23)
  47562. * m45: PDP-11 Options. (line 26)
  47563. * m4a: SH Options. (line 118)
  47564. * m4a-nofpu: SH Options. (line 106)
  47565. * m4a-single: SH Options. (line 114)
  47566. * m4a-single-only: SH Options. (line 110)
  47567. * m4al: SH Options. (line 121)
  47568. * m4byte-functions: MCore Options. (line 27)
  47569. * m5200: M680x0 Options. (line 144)
  47570. * m5206e: M680x0 Options. (line 153)
  47571. * m528x: M680x0 Options. (line 157)
  47572. * m5307: M680x0 Options. (line 161)
  47573. * m5407: M680x0 Options. (line 165)
  47574. * m64: Nvidia PTX Options. (line 10)
  47575. * m64 <1>: RS/6000 and PowerPC Options.
  47576. (line 283)
  47577. * m64 <2>: S/390 and zSeries Options.
  47578. (line 86)
  47579. * m64 <3>: SPARC Options. (line 315)
  47580. * m64 <4>: TILE-Gx Options. (line 23)
  47581. * m64 <5>: x86 Options. (line 1330)
  47582. * m64bit-doubles: RL78 Options. (line 73)
  47583. * m64bit-doubles <1>: RX Options. (line 10)
  47584. * m68000: M680x0 Options. (line 93)
  47585. * m68010: M680x0 Options. (line 101)
  47586. * m68020: M680x0 Options. (line 107)
  47587. * m68020-40: M680x0 Options. (line 175)
  47588. * m68020-60: M680x0 Options. (line 184)
  47589. * m68030: M680x0 Options. (line 112)
  47590. * m68040: M680x0 Options. (line 117)
  47591. * m68060: M680x0 Options. (line 126)
  47592. * m68881: M680x0 Options. (line 194)
  47593. * m8-bit: CRIS Options. (line 64)
  47594. * m8bit-idiv: x86 Options. (line 1249)
  47595. * m8byte-align: V850 Options. (line 170)
  47596. * m96bit-long-double: x86 Options. (line 517)
  47597. * mA6: ARC Options. (line 23)
  47598. * mA7: ARC Options. (line 30)
  47599. * mabi: AArch64 Options. (line 9)
  47600. * mabi <1>: ARM Options. (line 9)
  47601. * mabi <2>: PowerPC SPE Options.
  47602. (line 379)
  47603. * mabi <3>: RISC-V Options. (line 17)
  47604. * mabi <4>: RS/6000 and PowerPC Options.
  47605. (line 610)
  47606. * mabi <5>: x86 Options. (line 969)
  47607. * mabi=32: MIPS Options. (line 155)
  47608. * mabi=64: MIPS Options. (line 155)
  47609. * mabi=eabi: MIPS Options. (line 155)
  47610. * mabi=elfv1: PowerPC SPE Options.
  47611. (line 408)
  47612. * mabi=elfv1 <1>: RS/6000 and PowerPC Options.
  47613. (line 631)
  47614. * mabi=elfv2: PowerPC SPE Options.
  47615. (line 414)
  47616. * mabi=elfv2 <1>: RS/6000 and PowerPC Options.
  47617. (line 637)
  47618. * mabi=gnu: MMIX Options. (line 20)
  47619. * mabi=ibmlongdouble: PowerPC SPE Options.
  47620. (line 392)
  47621. * mabi=ibmlongdouble <1>: RS/6000 and PowerPC Options.
  47622. (line 615)
  47623. * mabi=ieeelongdouble: PowerPC SPE Options.
  47624. (line 400)
  47625. * mabi=ieeelongdouble <1>: RS/6000 and PowerPC Options.
  47626. (line 623)
  47627. * mabi=mmixware: MMIX Options. (line 20)
  47628. * mabi=n32: MIPS Options. (line 155)
  47629. * mabi=no-spe: PowerPC SPE Options.
  47630. (line 389)
  47631. * mabi=o64: MIPS Options. (line 155)
  47632. * mabi=spe: PowerPC SPE Options.
  47633. (line 384)
  47634. * mabicalls: MIPS Options. (line 191)
  47635. * mabm: x86 Options. (line 745)
  47636. * mabort-on-noreturn: ARM Options. (line 606)
  47637. * mabs=2008: MIPS Options. (line 299)
  47638. * mabs=legacy: MIPS Options. (line 299)
  47639. * mabsdata: AVR Options. (line 159)
  47640. * mabsdiff: MeP Options. (line 7)
  47641. * mabshi: PDP-11 Options. (line 55)
  47642. * mac0: PDP-11 Options. (line 16)
  47643. * macc-4: FRV Options. (line 139)
  47644. * macc-8: FRV Options. (line 143)
  47645. * maccumulate-args: AVR Options. (line 166)
  47646. * maccumulate-outgoing-args: SH Options. (line 314)
  47647. * maccumulate-outgoing-args <1>: x86 Options. (line 1007)
  47648. * maddress-mode=long: x86 Options. (line 1380)
  47649. * maddress-mode=short: x86 Options. (line 1385)
  47650. * maddress-space-conversion: SPU Options. (line 68)
  47651. * mads: PowerPC SPE Options.
  47652. (line 448)
  47653. * mads <1>: RS/6000 and PowerPC Options.
  47654. (line 671)
  47655. * madx: x86 Options. (line 746)
  47656. * maes: x86 Options. (line 724)
  47657. * maix-struct-return: PowerPC SPE Options.
  47658. (line 372)
  47659. * maix-struct-return <1>: RS/6000 and PowerPC Options.
  47660. (line 603)
  47661. * maix32: PowerPC SPE Options.
  47662. (line 148)
  47663. * maix32 <1>: RS/6000 and PowerPC Options.
  47664. (line 321)
  47665. * maix64: RS/6000 and PowerPC Options.
  47666. (line 321)
  47667. * malign-300: H8/300 Options. (line 41)
  47668. * malign-call: ARC Options. (line 432)
  47669. * malign-data: RISC-V Options. (line 127)
  47670. * malign-data <1>: x86 Options. (line 557)
  47671. * malign-double: x86 Options. (line 502)
  47672. * malign-int: M680x0 Options. (line 263)
  47673. * malign-labels: FRV Options. (line 128)
  47674. * malign-loops: M32R/D Options. (line 73)
  47675. * malign-natural: PowerPC SPE Options.
  47676. (line 172)
  47677. * malign-natural <1>: RS/6000 and PowerPC Options.
  47678. (line 359)
  47679. * malign-power: PowerPC SPE Options.
  47680. (line 172)
  47681. * malign-power <1>: RS/6000 and PowerPC Options.
  47682. (line 359)
  47683. * mall-opts: MeP Options. (line 11)
  47684. * malloc-cc: FRV Options. (line 31)
  47685. * mallow-string-insns: RX Options. (line 150)
  47686. * mallregs: RL78 Options. (line 66)
  47687. * maltivec: RS/6000 and PowerPC Options.
  47688. (line 141)
  47689. * maltivec=be: RS/6000 and PowerPC Options.
  47690. (line 157)
  47691. * maltivec=le: RS/6000 and PowerPC Options.
  47692. (line 169)
  47693. * mam33: MN10300 Options. (line 17)
  47694. * mam33-2: MN10300 Options. (line 24)
  47695. * mam34: MN10300 Options. (line 27)
  47696. * mandroid: GNU/Linux Options. (line 26)
  47697. * mannotate-align: ARC Options. (line 379)
  47698. * mapcs: ARM Options. (line 21)
  47699. * mapcs-frame: ARM Options. (line 13)
  47700. * mapp-regs: SPARC Options. (line 10)
  47701. * mapp-regs <1>: V850 Options. (line 181)
  47702. * mARC600: ARC Options. (line 23)
  47703. * mARC601: ARC Options. (line 27)
  47704. * mARC700: ARC Options. (line 30)
  47705. * march: AArch64 Options. (line 110)
  47706. * march <1>: ARM Options. (line 74)
  47707. * march <2>: C6X Options. (line 7)
  47708. * march <3>: CRIS Options. (line 10)
  47709. * march <4>: HPPA Options. (line 9)
  47710. * march <5>: HPPA Options. (line 162)
  47711. * march <6>: M680x0 Options. (line 12)
  47712. * march <7>: MIPS Options. (line 14)
  47713. * march <8>: NDS32 Options. (line 64)
  47714. * march <9>: Nios II Options. (line 94)
  47715. * march <10>: RISC-V Options. (line 54)
  47716. * march <11>: S/390 and zSeries Options.
  47717. (line 148)
  47718. * march <12>: x86 Options. (line 9)
  47719. * marclinux: ARC Options. (line 385)
  47720. * marclinux_prof: ARC Options. (line 392)
  47721. * margonaut: ARC Options. (line 585)
  47722. * marm: ARM Options. (line 678)
  47723. * mas100-syntax: RX Options. (line 76)
  47724. * masm-hex: MSP430 Options. (line 9)
  47725. * masm-syntax-unified: ARM Options. (line 778)
  47726. * masm=DIALECT: x86 Options. (line 451)
  47727. * matomic: ARC Options. (line 155)
  47728. * matomic-model=MODEL: SH Options. (line 193)
  47729. * matomic-updates: SPU Options. (line 83)
  47730. * mauto-litpools: Xtensa Options. (line 60)
  47731. * mauto-modify-reg: ARC Options. (line 435)
  47732. * mauto-pic: IA-64 Options. (line 50)
  47733. * maverage: MeP Options. (line 16)
  47734. * mavoid-indexed-addresses: PowerPC SPE Options.
  47735. (line 216)
  47736. * mavoid-indexed-addresses <1>: RS/6000 and PowerPC Options.
  47737. (line 418)
  47738. * mavx: x86 Options. (line 712)
  47739. * mavx2: x86 Options. (line 713)
  47740. * mavx256-split-unaligned-load: x86 Options. (line 1257)
  47741. * mavx256-split-unaligned-store: x86 Options. (line 1257)
  47742. * mavx5124fmaps: x86 Options. (line 770)
  47743. * mavx5124vnniw: x86 Options. (line 772)
  47744. * mavx512bitalg: x86 Options. (line 766)
  47745. * mavx512bw: x86 Options. (line 719)
  47746. * mavx512cd: x86 Options. (line 717)
  47747. * mavx512dq: x86 Options. (line 720)
  47748. * mavx512er: x86 Options. (line 716)
  47749. * mavx512f: x86 Options. (line 714)
  47750. * mavx512ifma: x86 Options. (line 721)
  47751. * mavx512pf: x86 Options. (line 715)
  47752. * mavx512vbmi: x86 Options. (line 722)
  47753. * mavx512vbmi2: x86 Options. (line 762)
  47754. * mavx512vl: x86 Options. (line 718)
  47755. * mavx512vnni: x86 Options. (line 771)
  47756. * mavx512vpopcntdq: x86 Options. (line 769)
  47757. * max-vect-align: Adapteva Epiphany Options.
  47758. (line 119)
  47759. * mb: SH Options. (line 126)
  47760. * mbackchain: S/390 and zSeries Options.
  47761. (line 35)
  47762. * mbarrel-shift-enabled: LM32 Options. (line 9)
  47763. * mbarrel-shifter: ARC Options. (line 10)
  47764. * mbarrel_shifter: ARC Options. (line 605)
  47765. * mbase-addresses: MMIX Options. (line 53)
  47766. * mbased=: MeP Options. (line 20)
  47767. * mbbit-peephole: ARC Options. (line 438)
  47768. * mbcopy: PDP-11 Options. (line 36)
  47769. * mbcopy-builtin: PDP-11 Options. (line 32)
  47770. * mbe8: ARM Options. (line 66)
  47771. * mbig: PowerPC SPE Options.
  47772. (line 271)
  47773. * mbig <1>: RS/6000 and PowerPC Options.
  47774. (line 498)
  47775. * mbig-endian: AArch64 Options. (line 20)
  47776. * mbig-endian <1>: ARC Options. (line 588)
  47777. * mbig-endian <2>: ARM Options. (line 61)
  47778. * mbig-endian <3>: C6X Options. (line 13)
  47779. * mbig-endian <4>: IA-64 Options. (line 9)
  47780. * mbig-endian <5>: MCore Options. (line 39)
  47781. * mbig-endian <6>: MicroBlaze Options. (line 56)
  47782. * mbig-endian <7>: NDS32 Options. (line 9)
  47783. * mbig-endian <8>: PowerPC SPE Options.
  47784. (line 271)
  47785. * mbig-endian <9>: RS/6000 and PowerPC Options.
  47786. (line 498)
  47787. * mbig-endian <10>: TILE-Gx Options. (line 29)
  47788. * mbig-endian-data: RX Options. (line 42)
  47789. * mbig-switch: V850 Options. (line 176)
  47790. * mbigtable: SH Options. (line 141)
  47791. * mbionic: GNU/Linux Options. (line 22)
  47792. * mbit-align: RS/6000 and PowerPC Options.
  47793. (line 450)
  47794. * mbit-ops: CR16 Options. (line 25)
  47795. * mbitfield: M680x0 Options. (line 231)
  47796. * mbitops: MeP Options. (line 26)
  47797. * mbitops <1>: SH Options. (line 145)
  47798. * mblock-compare-inline-limit: RS/6000 and PowerPC Options.
  47799. (line 752)
  47800. * mblock-compare-inline-loop-limit: RS/6000 and PowerPC Options.
  47801. (line 758)
  47802. * mblock-move-inline-limit: PowerPC SPE Options.
  47803. (line 518)
  47804. * mblock-move-inline-limit <1>: RS/6000 and PowerPC Options.
  47805. (line 746)
  47806. * mbmi: x86 Options. (line 747)
  47807. * mbmi2: x86 Options. (line 748)
  47808. * mbranch-cheap: PDP-11 Options. (line 65)
  47809. * mbranch-cost: Adapteva Epiphany Options.
  47810. (line 18)
  47811. * mbranch-cost <1>: AVR Options. (line 181)
  47812. * mbranch-cost <2>: MIPS Options. (line 751)
  47813. * mbranch-cost <3>: RISC-V Options. (line 9)
  47814. * mbranch-cost=NUM: SH Options. (line 334)
  47815. * mbranch-cost=NUMBER: M32R/D Options. (line 82)
  47816. * mbranch-expensive: PDP-11 Options. (line 61)
  47817. * mbranch-hints: SPU Options. (line 29)
  47818. * mbranch-likely: MIPS Options. (line 758)
  47819. * mbranch-predict: MMIX Options. (line 48)
  47820. * mbss-plt: PowerPC SPE Options.
  47821. (line 73)
  47822. * mbss-plt <1>: RS/6000 and PowerPC Options.
  47823. (line 189)
  47824. * mbuild-constants: DEC Alpha Options. (line 141)
  47825. * mbwx: DEC Alpha Options. (line 163)
  47826. * mbypass-cache: Nios II Options. (line 103)
  47827. * mc68000: M680x0 Options. (line 93)
  47828. * mc68020: M680x0 Options. (line 107)
  47829. * mc=: MeP Options. (line 31)
  47830. * mcache-block-size: NDS32 Options. (line 60)
  47831. * mcache-size: SPU Options. (line 75)
  47832. * mcache-volatile: Nios II Options. (line 109)
  47833. * mcall-eabi: PowerPC SPE Options.
  47834. (line 346)
  47835. * mcall-eabi <1>: RS/6000 and PowerPC Options.
  47836. (line 573)
  47837. * mcall-freebsd: PowerPC SPE Options.
  47838. (line 360)
  47839. * mcall-freebsd <1>: RS/6000 and PowerPC Options.
  47840. (line 587)
  47841. * mcall-linux: PowerPC SPE Options.
  47842. (line 356)
  47843. * mcall-linux <1>: RS/6000 and PowerPC Options.
  47844. (line 583)
  47845. * mcall-ms2sysv-xlogues: x86 Options. (line 983)
  47846. * mcall-netbsd: PowerPC SPE Options.
  47847. (line 364)
  47848. * mcall-netbsd <1>: PowerPC SPE Options.
  47849. (line 368)
  47850. * mcall-netbsd <2>: RS/6000 and PowerPC Options.
  47851. (line 591)
  47852. * mcall-netbsd <3>: RS/6000 and PowerPC Options.
  47853. (line 595)
  47854. * mcall-prologues: AVR Options. (line 186)
  47855. * mcall-sysv: PowerPC SPE Options.
  47856. (line 338)
  47857. * mcall-sysv <1>: RS/6000 and PowerPC Options.
  47858. (line 565)
  47859. * mcall-sysv-eabi: PowerPC SPE Options.
  47860. (line 346)
  47861. * mcall-sysv-eabi <1>: RS/6000 and PowerPC Options.
  47862. (line 573)
  47863. * mcall-sysv-noeabi: PowerPC SPE Options.
  47864. (line 349)
  47865. * mcall-sysv-noeabi <1>: RS/6000 and PowerPC Options.
  47866. (line 576)
  47867. * mcallee-super-interworking: ARM Options. (line 707)
  47868. * mcaller-copies: HPPA Options. (line 23)
  47869. * mcaller-super-interworking: ARM Options. (line 714)
  47870. * mcallgraph-data: MCore Options. (line 31)
  47871. * mcase-vector-pcrel: ARC Options. (line 447)
  47872. * mcbcond: SPARC Options. (line 260)
  47873. * mcbranch-force-delay-slot: SH Options. (line 349)
  47874. * mcc-init: CRIS Options. (line 42)
  47875. * mcfv4e: M680x0 Options. (line 169)
  47876. * mcheck-zero-division: MIPS Options. (line 546)
  47877. * mcix: DEC Alpha Options. (line 163)
  47878. * mcld: x86 Options. (line 822)
  47879. * mclear-hwcap: Solaris 2 Options. (line 9)
  47880. * mclflushopt: x86 Options. (line 726)
  47881. * mclip: MeP Options. (line 35)
  47882. * mclwb: x86 Options. (line 727)
  47883. * mclzero: x86 Options. (line 760)
  47884. * mcmodel: NDS32 Options. (line 67)
  47885. * mcmodel <1>: SPARC Options. (line 320)
  47886. * mcmodel=kernel: x86 Options. (line 1364)
  47887. * mcmodel=large: AArch64 Options. (line 45)
  47888. * mcmodel=large <1>: RS/6000 and PowerPC Options.
  47889. (line 135)
  47890. * mcmodel=large <2>: TILE-Gx Options. (line 14)
  47891. * mcmodel=large <3>: x86 Options. (line 1376)
  47892. * mcmodel=medany: RISC-V Options. (line 105)
  47893. * mcmodel=medium: RS/6000 and PowerPC Options.
  47894. (line 130)
  47895. * mcmodel=medium <1>: x86 Options. (line 1369)
  47896. * mcmodel=medlow: RISC-V Options. (line 98)
  47897. * mcmodel=small: AArch64 Options. (line 39)
  47898. * mcmodel=small <1>: RS/6000 and PowerPC Options.
  47899. (line 126)
  47900. * mcmodel=small <2>: TILE-Gx Options. (line 9)
  47901. * mcmodel=small <3>: x86 Options. (line 1358)
  47902. * mcmodel=tiny: AArch64 Options. (line 34)
  47903. * mcmov: NDS32 Options. (line 21)
  47904. * mcmove: Adapteva Epiphany Options.
  47905. (line 23)
  47906. * mcmpb: RS/6000 and PowerPC Options.
  47907. (line 27)
  47908. * mcmse: ARM Options. (line 807)
  47909. * mcode-density: ARC Options. (line 163)
  47910. * mcode-readable: MIPS Options. (line 506)
  47911. * mcode-region: MSP430 Options. (line 93)
  47912. * mcompact-branches=always: MIPS Options. (line 770)
  47913. * mcompact-branches=never: MIPS Options. (line 770)
  47914. * mcompact-branches=optimal: MIPS Options. (line 770)
  47915. * mcompact-casesi: ARC Options. (line 451)
  47916. * mcompat-align-parm: PowerPC SPE Options.
  47917. (line 653)
  47918. * mcompat-align-parm <1>: RS/6000 and PowerPC Options.
  47919. (line 942)
  47920. * mcompress: FT32 Options. (line 26)
  47921. * mcond-exec: FRV Options. (line 187)
  47922. * mcond-move: FRV Options. (line 159)
  47923. * mconfig=: MeP Options. (line 39)
  47924. * mconsole: x86 Windows Options.
  47925. (line 9)
  47926. * mconst-align: CRIS Options. (line 55)
  47927. * mconst16: Xtensa Options. (line 10)
  47928. * mconstant-gp: IA-64 Options. (line 46)
  47929. * mcop: MeP Options. (line 48)
  47930. * mcop32: MeP Options. (line 53)
  47931. * mcop64: MeP Options. (line 56)
  47932. * mcorea: Blackfin Options. (line 154)
  47933. * mcoreb: Blackfin Options. (line 161)
  47934. * mcpu: AArch64 Options. (line 173)
  47935. * mcpu <1>: ARC Options. (line 18)
  47936. * mcpu <2>: ARM Options. (line 477)
  47937. * mcpu <3>: CRIS Options. (line 10)
  47938. * mcpu <4>: DEC Alpha Options. (line 215)
  47939. * mcpu <5>: FRV Options. (line 258)
  47940. * mcpu <6>: M680x0 Options. (line 28)
  47941. * mcpu <7>: picoChip Options. (line 9)
  47942. * mcpu <8>: PowerPC SPE Options.
  47943. (line 27)
  47944. * mcpu <9>: RL78 Options. (line 32)
  47945. * mcpu <10>: RS/6000 and PowerPC Options.
  47946. (line 68)
  47947. * mcpu <11>: RX Options. (line 30)
  47948. * mcpu <12>: SPARC Options. (line 115)
  47949. * mcpu <13>: TILE-Gx Options. (line 18)
  47950. * mcpu <14>: TILEPro Options. (line 9)
  47951. * mcpu <15>: Visium Options. (line 33)
  47952. * mcpu <16>: x86 Options. (line 397)
  47953. * mcpu32: M680x0 Options. (line 135)
  47954. * mcpu=: Blackfin Options. (line 7)
  47955. * mcpu= <1>: M32C Options. (line 7)
  47956. * mcpu= <2>: MicroBlaze Options. (line 20)
  47957. * mcpu= <3>: MSP430 Options. (line 42)
  47958. * mcr16c: CR16 Options. (line 14)
  47959. * mcr16cplus: CR16 Options. (line 14)
  47960. * mcrc32: x86 Options. (line 890)
  47961. * mcrypto: RS/6000 and PowerPC Options.
  47962. (line 215)
  47963. * mcsync-anomaly: Blackfin Options. (line 57)
  47964. * mctor-dtor: NDS32 Options. (line 81)
  47965. * mcustom-fpu-cfg: Nios II Options. (line 259)
  47966. * mcustom-INSN: Nios II Options. (line 139)
  47967. * mcx16: x86 Options. (line 863)
  47968. * MD: Preprocessor Options.
  47969. (line 169)
  47970. * mdalign: SH Options. (line 132)
  47971. * mdata-align: CRIS Options. (line 55)
  47972. * mdata-model: CR16 Options. (line 28)
  47973. * mdata-region: MSP430 Options. (line 93)
  47974. * mdc: MeP Options. (line 62)
  47975. * mdebug: M32R/D Options. (line 69)
  47976. * mdebug <1>: S/390 and zSeries Options.
  47977. (line 144)
  47978. * mdebug <2>: Visium Options. (line 7)
  47979. * mdebug-main=PREFIX: VMS Options. (line 13)
  47980. * mdec-asm: PDP-11 Options. (line 72)
  47981. * mdisable-callt: V850 Options. (line 92)
  47982. * mdisable-fpregs: HPPA Options. (line 34)
  47983. * mdisable-indexing: HPPA Options. (line 40)
  47984. * mdiv: M680x0 Options. (line 206)
  47985. * mdiv <1>: MCore Options. (line 15)
  47986. * mdiv <2>: MeP Options. (line 65)
  47987. * mdiv <3>: RISC-V Options. (line 49)
  47988. * mdiv-rem: ARC Options. (line 160)
  47989. * mdiv=STRATEGY: SH Options. (line 284)
  47990. * mdivide-breaks: MIPS Options. (line 552)
  47991. * mdivide-enabled: LM32 Options. (line 12)
  47992. * mdivide-traps: MIPS Options. (line 552)
  47993. * mdivsi3_libfunc=NAME: SH Options. (line 320)
  47994. * mdll: x86 Windows Options.
  47995. (line 16)
  47996. * mdlmzb: RS/6000 and PowerPC Options.
  47997. (line 443)
  47998. * mdmx: MIPS Options. (line 375)
  47999. * mdouble: FRV Options. (line 48)
  48000. * mdouble-float: MIPS Options. (line 287)
  48001. * mdouble-float <1>: PowerPC SPE Options.
  48002. (line 190)
  48003. * mdouble-float <2>: RS/6000 and PowerPC Options.
  48004. (line 377)
  48005. * mdpfp: ARC Options. (line 99)
  48006. * mdpfp-compact: ARC Options. (line 100)
  48007. * mdpfp-fast: ARC Options. (line 104)
  48008. * mdpfp_compact: ARC Options. (line 608)
  48009. * mdpfp_fast: ARC Options. (line 611)
  48010. * mdsp: MIPS Options. (line 352)
  48011. * mdsp-packa: ARC Options. (line 332)
  48012. * mdspr2: MIPS Options. (line 358)
  48013. * mdsp_packa: ARC Options. (line 614)
  48014. * mdual-nops: SPU Options. (line 95)
  48015. * mdump-tune-features: x86 Options. (line 804)
  48016. * mdvbf: ARC Options. (line 337)
  48017. * mdwarf2-asm: IA-64 Options. (line 94)
  48018. * mdword: FRV Options. (line 40)
  48019. * mdynamic-no-pic: PowerPC SPE Options.
  48020. (line 276)
  48021. * mdynamic-no-pic <1>: RS/6000 and PowerPC Options.
  48022. (line 503)
  48023. * mea: ARC Options. (line 112)
  48024. * mEA: ARC Options. (line 617)
  48025. * mea32: SPU Options. (line 60)
  48026. * mea64: SPU Options. (line 60)
  48027. * meabi: PowerPC SPE Options.
  48028. (line 467)
  48029. * meabi <1>: RS/6000 and PowerPC Options.
  48030. (line 690)
  48031. * mearly-cbranchsi: ARC Options. (line 473)
  48032. * mearly-stop-bits: IA-64 Options. (line 100)
  48033. * meb: MeP Options. (line 68)
  48034. * meb <1>: Moxie Options. (line 7)
  48035. * meb <2>: Nios II Options. (line 90)
  48036. * meb <3>: Score Options. (line 9)
  48037. * mel: MeP Options. (line 71)
  48038. * mel <1>: Moxie Options. (line 11)
  48039. * mel <2>: Nios II Options. (line 90)
  48040. * mel <3>: Score Options. (line 12)
  48041. * melf: CRIS Options. (line 87)
  48042. * melf <1>: MMIX Options. (line 43)
  48043. * memb: PowerPC SPE Options.
  48044. (line 462)
  48045. * memb <1>: RS/6000 and PowerPC Options.
  48046. (line 685)
  48047. * membedded-data: MIPS Options. (line 493)
  48048. * memregs=: M32C Options. (line 21)
  48049. * mep: V850 Options. (line 16)
  48050. * mepsilon: MMIX Options. (line 15)
  48051. * merror-reloc: SPU Options. (line 10)
  48052. * mesa: S/390 and zSeries Options.
  48053. (line 94)
  48054. * metrax100: CRIS Options. (line 27)
  48055. * metrax4: CRIS Options. (line 27)
  48056. * meva: MIPS Options. (line 402)
  48057. * mexpand-adddi: ARC Options. (line 476)
  48058. * mexplicit-relocs: DEC Alpha Options. (line 176)
  48059. * mexplicit-relocs <1>: MIPS Options. (line 537)
  48060. * mexr: H8/300 Options. (line 28)
  48061. * mextern-sdata: MIPS Options. (line 456)
  48062. * MF: Preprocessor Options.
  48063. (line 111)
  48064. * mf16c: x86 Options. (line 730)
  48065. * mfast-fp: Blackfin Options. (line 130)
  48066. * mfast-indirect-calls: HPPA Options. (line 52)
  48067. * mfast-sw-div: Nios II Options. (line 115)
  48068. * mfaster-structs: SPARC Options. (line 91)
  48069. * mfdiv: RISC-V Options. (line 42)
  48070. * mfdpic: FRV Options. (line 72)
  48071. * mfentry: x86 Options. (line 1216)
  48072. * mfix: DEC Alpha Options. (line 163)
  48073. * mfix-24k: MIPS Options. (line 617)
  48074. * mfix-and-continue: Darwin Options. (line 104)
  48075. * mfix-at697f: SPARC Options. (line 294)
  48076. * mfix-cortex-a53-835769: AArch64 Options. (line 73)
  48077. * mfix-cortex-a53-843419: AArch64 Options. (line 80)
  48078. * mfix-cortex-m3-ldrd: ARM Options. (line 747)
  48079. * mfix-gr712rc: SPARC Options. (line 307)
  48080. * mfix-r10000: MIPS Options. (line 639)
  48081. * mfix-r4000: MIPS Options. (line 623)
  48082. * mfix-r4400: MIPS Options. (line 633)
  48083. * mfix-rm7000: MIPS Options. (line 650)
  48084. * mfix-sb1: MIPS Options. (line 675)
  48085. * mfix-ut699: SPARC Options. (line 299)
  48086. * mfix-ut700: SPARC Options. (line 303)
  48087. * mfix-vr4120: MIPS Options. (line 655)
  48088. * mfix-vr4130: MIPS Options. (line 668)
  48089. * mfixed-cc: FRV Options. (line 35)
  48090. * mfixed-range: HPPA Options. (line 59)
  48091. * mfixed-range <1>: IA-64 Options. (line 105)
  48092. * mfixed-range <2>: SH Options. (line 327)
  48093. * mfixed-range <3>: SPU Options. (line 52)
  48094. * mflat: SPARC Options. (line 22)
  48095. * mflip-mips16: MIPS Options. (line 127)
  48096. * mflip-thumb: ARM Options. (line 690)
  48097. * mfloat-abi: ARM Options. (line 41)
  48098. * mfloat-gprs: PowerPC SPE Options.
  48099. (line 103)
  48100. * mfloat-ieee: DEC Alpha Options. (line 171)
  48101. * mfloat-vax: DEC Alpha Options. (line 171)
  48102. * mfloat128: PowerPC SPE Options.
  48103. (line 97)
  48104. * mfloat128 <1>: RS/6000 and PowerPC Options.
  48105. (line 252)
  48106. * mfloat128-hardware: RS/6000 and PowerPC Options.
  48107. (line 274)
  48108. * mfloat32: PDP-11 Options. (line 52)
  48109. * mfloat64: PDP-11 Options. (line 48)
  48110. * mflush-func: MIPS Options. (line 742)
  48111. * mflush-func=NAME: M32R/D Options. (line 93)
  48112. * mflush-trap=NUMBER: M32R/D Options. (line 86)
  48113. * mfma: x86 Options. (line 731)
  48114. * mfma4: x86 Options. (line 734)
  48115. * mfmaf: SPARC Options. (line 267)
  48116. * mfmovd: SH Options. (line 148)
  48117. * mforce-indirect-call: x86 Options. (line 978)
  48118. * mforce-no-pic: Xtensa Options. (line 41)
  48119. * mfp-exceptions: MIPS Options. (line 790)
  48120. * mfp-mode: Adapteva Epiphany Options.
  48121. (line 71)
  48122. * mfp-reg: DEC Alpha Options. (line 25)
  48123. * mfp-rounding-mode: DEC Alpha Options. (line 85)
  48124. * mfp-trap-mode: DEC Alpha Options. (line 63)
  48125. * mfp16-format: ARM Options. (line 584)
  48126. * mfp32: MIPS Options. (line 257)
  48127. * mfp64: MIPS Options. (line 260)
  48128. * mfpmath: Optimize Options. (line 2020)
  48129. * mfpmath <1>: x86 Options. (line 400)
  48130. * mfpr-32: FRV Options. (line 15)
  48131. * mfpr-64: FRV Options. (line 19)
  48132. * mfprnd: RS/6000 and PowerPC Options.
  48133. (line 27)
  48134. * mfpu: ARC Options. (line 231)
  48135. * mfpu <1>: ARM Options. (line 556)
  48136. * mfpu <2>: PDP-11 Options. (line 9)
  48137. * mfpu <3>: RS/6000 and PowerPC Options.
  48138. (line 385)
  48139. * mfpu <4>: SPARC Options. (line 34)
  48140. * mfpu <5>: Visium Options. (line 19)
  48141. * mfpxx: MIPS Options. (line 263)
  48142. * mfract-convert-truncate: AVR Options. (line 273)
  48143. * mframe-header-opt: MIPS Options. (line 851)
  48144. * mfriz: RS/6000 and PowerPC Options.
  48145. (line 913)
  48146. * mfsca: SH Options. (line 365)
  48147. * mfsgsbase: x86 Options. (line 728)
  48148. * mfsmuld: SPARC Options. (line 274)
  48149. * mfsrra: SH Options. (line 374)
  48150. * mft32b: FT32 Options. (line 23)
  48151. * mfull-regs: NDS32 Options. (line 18)
  48152. * mfull-toc: PowerPC SPE Options.
  48153. (line 122)
  48154. * mfull-toc <1>: RS/6000 and PowerPC Options.
  48155. (line 294)
  48156. * mfused-madd: IA-64 Options. (line 88)
  48157. * mfused-madd <1>: MIPS Options. (line 600)
  48158. * mfused-madd <2>: PowerPC SPE Options.
  48159. (line 225)
  48160. * mfused-madd <3>: RS/6000 and PowerPC Options.
  48161. (line 427)
  48162. * mfused-madd <4>: S/390 and zSeries Options.
  48163. (line 175)
  48164. * mfused-madd <5>: SH Options. (line 356)
  48165. * mfused-madd <6>: Xtensa Options. (line 19)
  48166. * mfxsr: x86 Options. (line 750)
  48167. * MG: Preprocessor Options.
  48168. (line 122)
  48169. * mg: VAX Options. (line 17)
  48170. * mg10: RL78 Options. (line 62)
  48171. * mg13: RL78 Options. (line 62)
  48172. * mg14: RL78 Options. (line 62)
  48173. * mgas: HPPA Options. (line 75)
  48174. * mgas-isr-prologues: AVR Options. (line 190)
  48175. * mgcc-abi: V850 Options. (line 148)
  48176. * mgeneral-regs-only: AArch64 Options. (line 24)
  48177. * mgeneral-regs-only <1>: x86 Options. (line 1281)
  48178. * mgfni: x86 Options. (line 763)
  48179. * mghs: V850 Options. (line 127)
  48180. * mglibc: GNU/Linux Options. (line 9)
  48181. * mgnu: VAX Options. (line 13)
  48182. * mgnu-as: IA-64 Options. (line 18)
  48183. * mgnu-attribute: PowerPC SPE Options.
  48184. (line 421)
  48185. * mgnu-attribute <1>: RS/6000 and PowerPC Options.
  48186. (line 644)
  48187. * mgnu-ld: HPPA Options. (line 111)
  48188. * mgnu-ld <1>: IA-64 Options. (line 23)
  48189. * mgomp: Nvidia PTX Options. (line 48)
  48190. * mgotplt: CRIS Options. (line 81)
  48191. * mgp32: MIPS Options. (line 251)
  48192. * mgp64: MIPS Options. (line 254)
  48193. * mgpopt: MIPS Options. (line 478)
  48194. * mgpopt <1>: Nios II Options. (line 16)
  48195. * mgpr-32: FRV Options. (line 7)
  48196. * mgpr-64: FRV Options. (line 11)
  48197. * mgprel-ro: FRV Options. (line 99)
  48198. * mgprel-sec: Nios II Options. (line 65)
  48199. * mh: H8/300 Options. (line 14)
  48200. * mhal: Nios II Options. (line 304)
  48201. * mhalf-reg-file: Adapteva Epiphany Options.
  48202. (line 9)
  48203. * mhard-dfp: RS/6000 and PowerPC Options.
  48204. (line 27)
  48205. * mhard-dfp <1>: S/390 and zSeries Options.
  48206. (line 20)
  48207. * mhard-float: FRV Options. (line 23)
  48208. * mhard-float <1>: M680x0 Options. (line 194)
  48209. * mhard-float <2>: MicroBlaze Options. (line 10)
  48210. * mhard-float <3>: MIPS Options. (line 266)
  48211. * mhard-float <4>: PowerPC SPE Options.
  48212. (line 184)
  48213. * mhard-float <5>: RS/6000 and PowerPC Options.
  48214. (line 371)
  48215. * mhard-float <6>: S/390 and zSeries Options.
  48216. (line 11)
  48217. * mhard-float <7>: SPARC Options. (line 34)
  48218. * mhard-float <8>: V850 Options. (line 113)
  48219. * mhard-float <9>: Visium Options. (line 19)
  48220. * mhard-float <10>: x86 Options. (line 465)
  48221. * mhard-quad-float: SPARC Options. (line 55)
  48222. * mhardlit: MCore Options. (line 10)
  48223. * mhint-max-distance: SPU Options. (line 107)
  48224. * mhint-max-nops: SPU Options. (line 101)
  48225. * mhle: x86 Options. (line 756)
  48226. * mhotpatch: S/390 and zSeries Options.
  48227. (line 210)
  48228. * mhp-ld: HPPA Options. (line 123)
  48229. * mhtm: RS/6000 and PowerPC Options.
  48230. (line 221)
  48231. * mhtm <1>: S/390 and zSeries Options.
  48232. (line 104)
  48233. * mhw-div: Nios II Options. (line 124)
  48234. * mhw-mul: Nios II Options. (line 124)
  48235. * mhw-mulx: Nios II Options. (line 124)
  48236. * mhwmult=: MSP430 Options. (line 63)
  48237. * miamcu: x86 Options. (line 1330)
  48238. * micplb: Blackfin Options. (line 175)
  48239. * mid-shared-library: Blackfin Options. (line 78)
  48240. * mieee: DEC Alpha Options. (line 39)
  48241. * mieee <1>: SH Options. (line 165)
  48242. * mieee-conformant: DEC Alpha Options. (line 134)
  48243. * mieee-fp: x86 Options. (line 459)
  48244. * mieee-with-inexact: DEC Alpha Options. (line 52)
  48245. * milp32: IA-64 Options. (line 121)
  48246. * mimadd: MIPS Options. (line 593)
  48247. * mimpure-text: Solaris 2 Options. (line 15)
  48248. * mincoming-stack-boundary: x86 Options. (line 678)
  48249. * mindexed-loads: ARC Options. (line 480)
  48250. * minline-all-stringops: x86 Options. (line 1148)
  48251. * minline-float-divide-max-throughput: IA-64 Options. (line 58)
  48252. * minline-float-divide-min-latency: IA-64 Options. (line 54)
  48253. * minline-ic_invalidate: SH Options. (line 174)
  48254. * minline-int-divide-max-throughput: IA-64 Options. (line 69)
  48255. * minline-int-divide-min-latency: IA-64 Options. (line 65)
  48256. * minline-plt: Blackfin Options. (line 135)
  48257. * minline-plt <1>: FRV Options. (line 81)
  48258. * minline-sqrt-max-throughput: IA-64 Options. (line 80)
  48259. * minline-sqrt-min-latency: IA-64 Options. (line 76)
  48260. * minline-stringops-dynamically: x86 Options. (line 1155)
  48261. * minrt: MSP430 Options. (line 85)
  48262. * minsert-sched-nops: PowerPC SPE Options.
  48263. (line 316)
  48264. * minsert-sched-nops <1>: RS/6000 and PowerPC Options.
  48265. (line 543)
  48266. * mint-register: RX Options. (line 100)
  48267. * mint16: PDP-11 Options. (line 40)
  48268. * mint32: CR16 Options. (line 22)
  48269. * mint32 <1>: H8/300 Options. (line 38)
  48270. * mint32 <2>: PDP-11 Options. (line 44)
  48271. * mint8: AVR Options. (line 200)
  48272. * minterlink-compressed: MIPS Options. (line 134)
  48273. * minterlink-mips16: MIPS Options. (line 146)
  48274. * mio-volatile: MeP Options. (line 74)
  48275. * mips1: MIPS Options. (line 79)
  48276. * mips16: MIPS Options. (line 119)
  48277. * mips2: MIPS Options. (line 82)
  48278. * mips3: MIPS Options. (line 85)
  48279. * mips32: MIPS Options. (line 91)
  48280. * mips32r3: MIPS Options. (line 94)
  48281. * mips32r5: MIPS Options. (line 97)
  48282. * mips32r6: MIPS Options. (line 100)
  48283. * mips3d: MIPS Options. (line 381)
  48284. * mips4: MIPS Options. (line 88)
  48285. * mips64: MIPS Options. (line 103)
  48286. * mips64r2: MIPS Options. (line 106)
  48287. * mips64r3: MIPS Options. (line 109)
  48288. * mips64r5: MIPS Options. (line 112)
  48289. * mips64r6: MIPS Options. (line 115)
  48290. * mirq-ctrl-saved: ARC Options. (line 296)
  48291. * misel: PowerPC SPE Options.
  48292. (line 79)
  48293. * misel <1>: RS/6000 and PowerPC Options.
  48294. (line 195)
  48295. * misize: ARC Options. (line 376)
  48296. * misize <1>: SH Options. (line 186)
  48297. * misr-vector-size: NDS32 Options. (line 57)
  48298. * missue-rate=NUMBER: M32R/D Options. (line 79)
  48299. * mivc2: MeP Options. (line 59)
  48300. * mjli-alawys: ARC Options. (line 14)
  48301. * mjsr: RX Options. (line 169)
  48302. * mjump-in-delay: HPPA Options. (line 30)
  48303. * mkernel: Darwin Options. (line 82)
  48304. * mknuthdiv: MMIX Options. (line 32)
  48305. * ml: MeP Options. (line 78)
  48306. * ml <1>: SH Options. (line 129)
  48307. * mlarge: MSP430 Options. (line 52)
  48308. * mlarge-data: DEC Alpha Options. (line 187)
  48309. * mlarge-data-threshold: x86 Options. (line 564)
  48310. * mlarge-mem: SPU Options. (line 38)
  48311. * mlarge-text: DEC Alpha Options. (line 205)
  48312. * mleadz: MeP Options. (line 81)
  48313. * mleaf-id-shared-library: Blackfin Options. (line 89)
  48314. * mlibfuncs: MMIX Options. (line 10)
  48315. * mlibrary-pic: FRV Options. (line 135)
  48316. * mlinked-fp: FRV Options. (line 116)
  48317. * mlinker-opt: HPPA Options. (line 85)
  48318. * mlinux: CRIS Options. (line 91)
  48319. * mlittle: PowerPC SPE Options.
  48320. (line 265)
  48321. * mlittle <1>: RS/6000 and PowerPC Options.
  48322. (line 492)
  48323. * mlittle-endian: AArch64 Options. (line 30)
  48324. * mlittle-endian <1>: ARC Options. (line 597)
  48325. * mlittle-endian <2>: ARM Options. (line 57)
  48326. * mlittle-endian <3>: C6X Options. (line 16)
  48327. * mlittle-endian <4>: IA-64 Options. (line 13)
  48328. * mlittle-endian <5>: MCore Options. (line 39)
  48329. * mlittle-endian <6>: MicroBlaze Options. (line 59)
  48330. * mlittle-endian <7>: NDS32 Options. (line 12)
  48331. * mlittle-endian <8>: PowerPC SPE Options.
  48332. (line 265)
  48333. * mlittle-endian <9>: RS/6000 and PowerPC Options.
  48334. (line 492)
  48335. * mlittle-endian <10>: TILE-Gx Options. (line 29)
  48336. * mlittle-endian-data: RX Options. (line 42)
  48337. * mliw: MN10300 Options. (line 54)
  48338. * mll64: ARC Options. (line 167)
  48339. * mllsc: MIPS Options. (line 338)
  48340. * mload-store-pairs: MIPS Options. (line 566)
  48341. * mlocal-sdata: MIPS Options. (line 444)
  48342. * mlock: ARC Options. (line 342)
  48343. * mlong-calls: Adapteva Epiphany Options.
  48344. (line 55)
  48345. * mlong-calls <1>: ARC Options. (line 401)
  48346. * mlong-calls <2>: ARM Options. (line 611)
  48347. * mlong-calls <3>: Blackfin Options. (line 118)
  48348. * mlong-calls <4>: FRV Options. (line 122)
  48349. * mlong-calls <5>: MIPS Options. (line 579)
  48350. * mlong-calls <6>: V850 Options. (line 10)
  48351. * mlong-double-128: S/390 and zSeries Options.
  48352. (line 29)
  48353. * mlong-double-128 <1>: x86 Options. (line 543)
  48354. * mlong-double-64: S/390 and zSeries Options.
  48355. (line 29)
  48356. * mlong-double-64 <1>: x86 Options. (line 543)
  48357. * mlong-double-80: x86 Options. (line 543)
  48358. * mlong-jump-table-offsets: M680x0 Options. (line 342)
  48359. * mlong-jumps: V850 Options. (line 108)
  48360. * mlong-load-store: HPPA Options. (line 66)
  48361. * mlong32: MIPS Options. (line 419)
  48362. * mlong64: MIPS Options. (line 414)
  48363. * mlongcall: PowerPC SPE Options.
  48364. (line 538)
  48365. * mlongcall <1>: RS/6000 and PowerPC Options.
  48366. (line 788)
  48367. * mlongcalls: Xtensa Options. (line 87)
  48368. * mloop: V850 Options. (line 121)
  48369. * mlow-64k: Blackfin Options. (line 67)
  48370. * mlow-precision-recip-sqrt: AArch64 Options. (line 86)
  48371. * mlp64: IA-64 Options. (line 121)
  48372. * mlpc-width: ARC Options. (line 313)
  48373. * mlra: ARC Options. (line 485)
  48374. * mlra <1>: FT32 Options. (line 16)
  48375. * mlra <2>: SPARC Options. (line 111)
  48376. * mlra-priority-compact: ARC Options. (line 493)
  48377. * mlra-priority-noncompact: ARC Options. (line 496)
  48378. * mlra-priority-none: ARC Options. (line 490)
  48379. * mlwp: x86 Options. (line 741)
  48380. * mlxc1-sxc1: MIPS Options. (line 861)
  48381. * mlzcnt: x86 Options. (line 749)
  48382. * MM: Preprocessor Options.
  48383. (line 102)
  48384. * mm: MeP Options. (line 84)
  48385. * mmac: CR16 Options. (line 9)
  48386. * mmac <1>: Score Options. (line 21)
  48387. * mmac-24: ARC Options. (line 351)
  48388. * mmac-d16: ARC Options. (line 347)
  48389. * mmac_24: ARC Options. (line 620)
  48390. * mmac_d16: ARC Options. (line 623)
  48391. * mmad: MIPS Options. (line 588)
  48392. * mmadd4: MIPS Options. (line 866)
  48393. * mmain-is-OS_task: AVR Options. (line 206)
  48394. * mmainkernel: Nvidia PTX Options. (line 13)
  48395. * mmalloc64: VMS Options. (line 17)
  48396. * mmax: DEC Alpha Options. (line 163)
  48397. * mmax-constant-size: RX Options. (line 82)
  48398. * mmax-stack-frame: CRIS Options. (line 23)
  48399. * mmcount-ra-address: MIPS Options. (line 838)
  48400. * mmcu: AVR Options. (line 9)
  48401. * mmcu <1>: MIPS Options. (line 398)
  48402. * mmcu=: MSP430 Options. (line 14)
  48403. * MMD: Preprocessor Options.
  48404. (line 185)
  48405. * mmedia: FRV Options. (line 56)
  48406. * mmedium-calls: ARC Options. (line 405)
  48407. * mmemcpy: MicroBlaze Options. (line 13)
  48408. * mmemcpy <1>: MIPS Options. (line 573)
  48409. * mmemcpy-strategy=STRATEGY: x86 Options. (line 1177)
  48410. * mmemory-latency: DEC Alpha Options. (line 268)
  48411. * mmemory-model: SPARC Options. (line 348)
  48412. * mmemset-strategy=STRATEGY: x86 Options. (line 1189)
  48413. * mmfcrf: PowerPC SPE Options.
  48414. (line 11)
  48415. * mmfcrf <1>: RS/6000 and PowerPC Options.
  48416. (line 27)
  48417. * mmfpgpr: RS/6000 and PowerPC Options.
  48418. (line 27)
  48419. * mmicromips: MIPS Options. (line 386)
  48420. * mminimal-toc: PowerPC SPE Options.
  48421. (line 122)
  48422. * mminimal-toc <1>: RS/6000 and PowerPC Options.
  48423. (line 294)
  48424. * mminmax: MeP Options. (line 87)
  48425. * mmitigate-rop: x86 Options. (line 1275)
  48426. * mmixed-code: ARC Options. (line 508)
  48427. * mmmx: x86 Options. (line 703)
  48428. * mmodel=large: M32R/D Options. (line 33)
  48429. * mmodel=medium: M32R/D Options. (line 27)
  48430. * mmodel=small: M32R/D Options. (line 18)
  48431. * mmovbe: x86 Options. (line 882)
  48432. * mmovdir64b: x86 Options. (line 768)
  48433. * mmovdiri: x86 Options. (line 767)
  48434. * mmpx: x86 Options. (line 758)
  48435. * mmpy-option: ARC Options. (line 173)
  48436. * mms-bitfields: x86 Options. (line 1023)
  48437. * mmt: MIPS Options. (line 394)
  48438. * mmul: RL78 Options. (line 15)
  48439. * mmul-bug-workaround: CRIS Options. (line 32)
  48440. * mmul.x: Moxie Options. (line 14)
  48441. * mmul32x16: ARC Options. (line 121)
  48442. * mmul64: ARC Options. (line 124)
  48443. * mmuladd: FRV Options. (line 64)
  48444. * mmulhw: RS/6000 and PowerPC Options.
  48445. (line 436)
  48446. * mmult: MeP Options. (line 90)
  48447. * mmult-bug: MN10300 Options. (line 9)
  48448. * mmultcost: ARC Options. (line 570)
  48449. * mmulti-cond-exec: FRV Options. (line 215)
  48450. * mmulticore: Blackfin Options. (line 139)
  48451. * mmultiple: PowerPC SPE Options.
  48452. (line 195)
  48453. * mmultiple <1>: RS/6000 and PowerPC Options.
  48454. (line 397)
  48455. * mmusl: GNU/Linux Options. (line 18)
  48456. * mmvcle: S/390 and zSeries Options.
  48457. (line 138)
  48458. * mmvme: PowerPC SPE Options.
  48459. (line 443)
  48460. * mmvme <1>: RS/6000 and PowerPC Options.
  48461. (line 666)
  48462. * mmwaitx: x86 Options. (line 759)
  48463. * mn: H8/300 Options. (line 20)
  48464. * mn-flash: AVR Options. (line 211)
  48465. * mnan=2008: MIPS Options. (line 319)
  48466. * mnan=legacy: MIPS Options. (line 319)
  48467. * mneon-for-64bits: ARM Options. (line 767)
  48468. * mnested-cond-exec: FRV Options. (line 230)
  48469. * mnhwloop: Score Options. (line 15)
  48470. * mno-16-bit: NDS32 Options. (line 54)
  48471. * mno-4byte-functions: MCore Options. (line 27)
  48472. * mno-8byte-align: V850 Options. (line 170)
  48473. * mno-abicalls: MIPS Options. (line 191)
  48474. * mno-abshi: PDP-11 Options. (line 58)
  48475. * mno-ac0: PDP-11 Options. (line 20)
  48476. * mno-address-space-conversion: SPU Options. (line 68)
  48477. * mno-align-double: x86 Options. (line 502)
  48478. * mno-align-int: M680x0 Options. (line 263)
  48479. * mno-align-loops: M32R/D Options. (line 76)
  48480. * mno-align-stringops: x86 Options. (line 1143)
  48481. * mno-allow-string-insns: RX Options. (line 150)
  48482. * mno-altivec: RS/6000 and PowerPC Options.
  48483. (line 141)
  48484. * mno-am33: MN10300 Options. (line 20)
  48485. * mno-app-regs: SPARC Options. (line 10)
  48486. * mno-app-regs <1>: V850 Options. (line 185)
  48487. * mno-as100-syntax: RX Options. (line 76)
  48488. * mno-atomic-updates: SPU Options. (line 83)
  48489. * mno-auto-litpools: Xtensa Options. (line 60)
  48490. * mno-avoid-indexed-addresses: PowerPC SPE Options.
  48491. (line 216)
  48492. * mno-avoid-indexed-addresses <1>: RS/6000 and PowerPC Options.
  48493. (line 418)
  48494. * mno-backchain: S/390 and zSeries Options.
  48495. (line 35)
  48496. * mno-base-addresses: MMIX Options. (line 53)
  48497. * mno-bit-align: RS/6000 and PowerPC Options.
  48498. (line 450)
  48499. * mno-bitfield: M680x0 Options. (line 227)
  48500. * mno-branch-likely: MIPS Options. (line 758)
  48501. * mno-branch-predict: MMIX Options. (line 48)
  48502. * mno-brcc: ARC Options. (line 441)
  48503. * mno-bwx: DEC Alpha Options. (line 163)
  48504. * mno-bypass-cache: Nios II Options. (line 103)
  48505. * mno-cache-volatile: Nios II Options. (line 109)
  48506. * mno-call-ms2sysv-xlogues: x86 Options. (line 983)
  48507. * mno-callgraph-data: MCore Options. (line 31)
  48508. * mno-cbcond: SPARC Options. (line 260)
  48509. * mno-check-zero-division: MIPS Options. (line 546)
  48510. * mno-cix: DEC Alpha Options. (line 163)
  48511. * mno-clearbss: MicroBlaze Options. (line 16)
  48512. * mno-cmov: NDS32 Options. (line 24)
  48513. * mno-cmpb: RS/6000 and PowerPC Options.
  48514. (line 27)
  48515. * mno-cond-exec: ARC Options. (line 455)
  48516. * mno-cond-exec <1>: FRV Options. (line 194)
  48517. * mno-cond-move: FRV Options. (line 166)
  48518. * mno-const-align: CRIS Options. (line 55)
  48519. * mno-const16: Xtensa Options. (line 10)
  48520. * mno-crt0: MN10300 Options. (line 43)
  48521. * mno-crt0 <1>: Moxie Options. (line 18)
  48522. * mno-crypto: RS/6000 and PowerPC Options.
  48523. (line 215)
  48524. * mno-csync-anomaly: Blackfin Options. (line 63)
  48525. * mno-custom-INSN: Nios II Options. (line 139)
  48526. * mno-data-align: CRIS Options. (line 55)
  48527. * mno-debug: S/390 and zSeries Options.
  48528. (line 144)
  48529. * mno-default: x86 Options. (line 818)
  48530. * mno-disable-callt: V850 Options. (line 92)
  48531. * mno-div: M680x0 Options. (line 206)
  48532. * mno-div <1>: MCore Options. (line 15)
  48533. * mno-dlmzb: RS/6000 and PowerPC Options.
  48534. (line 443)
  48535. * mno-double: FRV Options. (line 52)
  48536. * mno-dpfp-lrsr: ARC Options. (line 108)
  48537. * mno-dsp: MIPS Options. (line 352)
  48538. * mno-dspr2: MIPS Options. (line 358)
  48539. * mno-dwarf2-asm: IA-64 Options. (line 94)
  48540. * mno-dword: FRV Options. (line 44)
  48541. * mno-eabi: PowerPC SPE Options.
  48542. (line 467)
  48543. * mno-eabi <1>: RS/6000 and PowerPC Options.
  48544. (line 690)
  48545. * mno-early-stop-bits: IA-64 Options. (line 100)
  48546. * mno-eflags: FRV Options. (line 155)
  48547. * mno-embedded-data: MIPS Options. (line 493)
  48548. * mno-ep: V850 Options. (line 16)
  48549. * mno-epsilon: MMIX Options. (line 15)
  48550. * mno-eva: MIPS Options. (line 402)
  48551. * mno-explicit-relocs: DEC Alpha Options. (line 176)
  48552. * mno-explicit-relocs <1>: MIPS Options. (line 537)
  48553. * mno-exr: H8/300 Options. (line 33)
  48554. * mno-extern-sdata: MIPS Options. (line 456)
  48555. * mno-fancy-math-387: x86 Options. (line 492)
  48556. * mno-fast-sw-div: Nios II Options. (line 115)
  48557. * mno-faster-structs: SPARC Options. (line 91)
  48558. * mno-fix: DEC Alpha Options. (line 163)
  48559. * mno-fix-24k: MIPS Options. (line 617)
  48560. * mno-fix-cortex-a53-835769: AArch64 Options. (line 73)
  48561. * mno-fix-cortex-a53-843419: AArch64 Options. (line 80)
  48562. * mno-fix-r10000: MIPS Options. (line 639)
  48563. * mno-fix-r4000: MIPS Options. (line 623)
  48564. * mno-fix-r4400: MIPS Options. (line 633)
  48565. * mno-flat: SPARC Options. (line 22)
  48566. * mno-float: MIPS Options. (line 273)
  48567. * mno-float128: PowerPC SPE Options.
  48568. (line 97)
  48569. * mno-float128 <1>: RS/6000 and PowerPC Options.
  48570. (line 252)
  48571. * mno-float128-hardware: RS/6000 and PowerPC Options.
  48572. (line 274)
  48573. * mno-float32: PDP-11 Options. (line 48)
  48574. * mno-float64: PDP-11 Options. (line 52)
  48575. * mno-flush-func: M32R/D Options. (line 98)
  48576. * mno-flush-trap: M32R/D Options. (line 90)
  48577. * mno-fmaf: SPARC Options. (line 267)
  48578. * mno-fp-in-toc: PowerPC SPE Options.
  48579. (line 122)
  48580. * mno-fp-in-toc <1>: RS/6000 and PowerPC Options.
  48581. (line 294)
  48582. * mno-fp-regs: DEC Alpha Options. (line 25)
  48583. * mno-fp-ret-in-387: x86 Options. (line 482)
  48584. * mno-fprnd: RS/6000 and PowerPC Options.
  48585. (line 27)
  48586. * mno-fpu: SPARC Options. (line 39)
  48587. * mno-fpu <1>: Visium Options. (line 24)
  48588. * mno-fsca: SH Options. (line 365)
  48589. * mno-fsmuld: SPARC Options. (line 274)
  48590. * mno-fsrra: SH Options. (line 374)
  48591. * mno-fused-madd: IA-64 Options. (line 88)
  48592. * mno-fused-madd <1>: MIPS Options. (line 600)
  48593. * mno-fused-madd <2>: PowerPC SPE Options.
  48594. (line 225)
  48595. * mno-fused-madd <3>: RS/6000 and PowerPC Options.
  48596. (line 427)
  48597. * mno-fused-madd <4>: S/390 and zSeries Options.
  48598. (line 175)
  48599. * mno-fused-madd <5>: SH Options. (line 356)
  48600. * mno-fused-madd <6>: Xtensa Options. (line 19)
  48601. * mno-gnu-as: IA-64 Options. (line 18)
  48602. * mno-gnu-attribute: PowerPC SPE Options.
  48603. (line 421)
  48604. * mno-gnu-attribute <1>: RS/6000 and PowerPC Options.
  48605. (line 644)
  48606. * mno-gnu-ld: IA-64 Options. (line 23)
  48607. * mno-gotplt: CRIS Options. (line 81)
  48608. * mno-gpopt: MIPS Options. (line 478)
  48609. * mno-gpopt <1>: Nios II Options. (line 16)
  48610. * mno-hard-dfp: RS/6000 and PowerPC Options.
  48611. (line 27)
  48612. * mno-hard-dfp <1>: S/390 and zSeries Options.
  48613. (line 20)
  48614. * mno-hardlit: MCore Options. (line 10)
  48615. * mno-htm: RS/6000 and PowerPC Options.
  48616. (line 221)
  48617. * mno-htm <1>: S/390 and zSeries Options.
  48618. (line 104)
  48619. * mno-hw-div: Nios II Options. (line 124)
  48620. * mno-hw-mul: Nios II Options. (line 124)
  48621. * mno-hw-mulx: Nios II Options. (line 124)
  48622. * mno-id-shared-library: Blackfin Options. (line 85)
  48623. * mno-ieee: SH Options. (line 165)
  48624. * mno-ieee-fp: x86 Options. (line 459)
  48625. * mno-imadd: MIPS Options. (line 593)
  48626. * mno-inline-float-divide: IA-64 Options. (line 62)
  48627. * mno-inline-int-divide: IA-64 Options. (line 73)
  48628. * mno-inline-sqrt: IA-64 Options. (line 84)
  48629. * mno-int16: PDP-11 Options. (line 44)
  48630. * mno-int32: PDP-11 Options. (line 40)
  48631. * mno-interlink-compressed: MIPS Options. (line 134)
  48632. * mno-interlink-mips16: MIPS Options. (line 146)
  48633. * mno-interrupts: AVR Options. (line 214)
  48634. * mno-isel: PowerPC SPE Options.
  48635. (line 79)
  48636. * mno-isel <1>: RS/6000 and PowerPC Options.
  48637. (line 195)
  48638. * mno-jsr: RX Options. (line 169)
  48639. * mno-knuthdiv: MMIX Options. (line 32)
  48640. * mno-leaf-id-shared-library: Blackfin Options. (line 95)
  48641. * mno-libfuncs: MMIX Options. (line 10)
  48642. * mno-llsc: MIPS Options. (line 338)
  48643. * mno-load-store-pairs: MIPS Options. (line 566)
  48644. * mno-local-sdata: MIPS Options. (line 444)
  48645. * mno-long-calls: ARM Options. (line 611)
  48646. * mno-long-calls <1>: Blackfin Options. (line 118)
  48647. * mno-long-calls <2>: HPPA Options. (line 136)
  48648. * mno-long-calls <3>: MIPS Options. (line 579)
  48649. * mno-long-calls <4>: V850 Options. (line 10)
  48650. * mno-long-jumps: V850 Options. (line 108)
  48651. * mno-longcall: PowerPC SPE Options.
  48652. (line 538)
  48653. * mno-longcall <1>: RS/6000 and PowerPC Options.
  48654. (line 788)
  48655. * mno-longcalls: Xtensa Options. (line 87)
  48656. * mno-low-64k: Blackfin Options. (line 71)
  48657. * mno-low-precision-recip-sqrt: AArch64 Options. (line 86)
  48658. * mno-lra: SPARC Options. (line 111)
  48659. * mno-lsim: FR30 Options. (line 14)
  48660. * mno-lsim <1>: MCore Options. (line 46)
  48661. * mno-mad: MIPS Options. (line 588)
  48662. * mno-max: DEC Alpha Options. (line 163)
  48663. * mno-mcount-ra-address: MIPS Options. (line 838)
  48664. * mno-mcu: MIPS Options. (line 398)
  48665. * mno-mdmx: MIPS Options. (line 375)
  48666. * mno-media: FRV Options. (line 60)
  48667. * mno-memcpy: MIPS Options. (line 573)
  48668. * mno-mfcrf: PowerPC SPE Options.
  48669. (line 11)
  48670. * mno-mfcrf <1>: RS/6000 and PowerPC Options.
  48671. (line 27)
  48672. * mno-mfpgpr: RS/6000 and PowerPC Options.
  48673. (line 27)
  48674. * mno-millicode: ARC Options. (line 499)
  48675. * mno-mips16: MIPS Options. (line 119)
  48676. * mno-mips3d: MIPS Options. (line 381)
  48677. * mno-mmicromips: MIPS Options. (line 386)
  48678. * mno-mpy: ARC Options. (line 117)
  48679. * mno-ms-bitfields: x86 Options. (line 1023)
  48680. * mno-mt: MIPS Options. (line 394)
  48681. * mno-mul-bug-workaround: CRIS Options. (line 32)
  48682. * mno-muladd: FRV Options. (line 68)
  48683. * mno-mulhw: RS/6000 and PowerPC Options.
  48684. (line 436)
  48685. * mno-mult-bug: MN10300 Options. (line 13)
  48686. * mno-multi-cond-exec: FRV Options. (line 223)
  48687. * mno-multiple: PowerPC SPE Options.
  48688. (line 195)
  48689. * mno-multiple <1>: RS/6000 and PowerPC Options.
  48690. (line 397)
  48691. * mno-mvcle: S/390 and zSeries Options.
  48692. (line 138)
  48693. * mno-nested-cond-exec: FRV Options. (line 237)
  48694. * mno-odd-spreg: MIPS Options. (line 292)
  48695. * mno-omit-leaf-frame-pointer: AArch64 Options. (line 56)
  48696. * mno-optimize-membar: FRV Options. (line 249)
  48697. * mno-opts: MeP Options. (line 93)
  48698. * mno-pack: FRV Options. (line 151)
  48699. * mno-packed-stack: S/390 and zSeries Options.
  48700. (line 54)
  48701. * mno-paired: RS/6000 and PowerPC Options.
  48702. (line 204)
  48703. * mno-paired-single: MIPS Options. (line 369)
  48704. * mno-pc-relative-literal-loads: AArch64 Options. (line 203)
  48705. * mno-perf-ext: NDS32 Options. (line 30)
  48706. * mno-perf-ext <1>: NDS32 Options. (line 36)
  48707. * mno-perf-ext <2>: NDS32 Options. (line 42)
  48708. * mno-pic: IA-64 Options. (line 26)
  48709. * mno-pid: RX Options. (line 117)
  48710. * mno-plt: MIPS Options. (line 218)
  48711. * mno-popc: SPARC Options. (line 281)
  48712. * mno-popcntb: PowerPC SPE Options.
  48713. (line 11)
  48714. * mno-popcntb <1>: RS/6000 and PowerPC Options.
  48715. (line 27)
  48716. * mno-popcntd: RS/6000 and PowerPC Options.
  48717. (line 27)
  48718. * mno-postinc: Adapteva Epiphany Options.
  48719. (line 109)
  48720. * mno-postmodify: Adapteva Epiphany Options.
  48721. (line 109)
  48722. * mno-power8-fusion: RS/6000 and PowerPC Options.
  48723. (line 227)
  48724. * mno-power8-vector: RS/6000 and PowerPC Options.
  48725. (line 233)
  48726. * mno-powerpc-gfxopt: RS/6000 and PowerPC Options.
  48727. (line 27)
  48728. * mno-powerpc-gpopt: RS/6000 and PowerPC Options.
  48729. (line 27)
  48730. * mno-powerpc64: RS/6000 and PowerPC Options.
  48731. (line 27)
  48732. * mno-prolog-function: V850 Options. (line 23)
  48733. * mno-prologue-epilogue: CRIS Options. (line 71)
  48734. * mno-prototype: PowerPC SPE Options.
  48735. (line 427)
  48736. * mno-prototype <1>: RS/6000 and PowerPC Options.
  48737. (line 650)
  48738. * mno-push-args: x86 Options. (line 1000)
  48739. * mno-quad-memory: RS/6000 and PowerPC Options.
  48740. (line 240)
  48741. * mno-quad-memory-atomic: RS/6000 and PowerPC Options.
  48742. (line 246)
  48743. * mno-readonly-in-sdata: RS/6000 and PowerPC Options.
  48744. (line 742)
  48745. * mno-red-zone: x86 Options. (line 1350)
  48746. * mno-register-names: IA-64 Options. (line 37)
  48747. * mno-regnames: PowerPC SPE Options.
  48748. (line 532)
  48749. * mno-regnames <1>: RS/6000 and PowerPC Options.
  48750. (line 782)
  48751. * mno-relax: V850 Options. (line 103)
  48752. * mno-relax-immediate: MCore Options. (line 19)
  48753. * mno-relocatable: PowerPC SPE Options.
  48754. (line 239)
  48755. * mno-relocatable <1>: RS/6000 and PowerPC Options.
  48756. (line 466)
  48757. * mno-relocatable-lib: PowerPC SPE Options.
  48758. (line 250)
  48759. * mno-relocatable-lib <1>: RS/6000 and PowerPC Options.
  48760. (line 477)
  48761. * mno-renesas: SH Options. (line 155)
  48762. * mno-round-nearest: Adapteva Epiphany Options.
  48763. (line 51)
  48764. * mno-rtd: M680x0 Options. (line 258)
  48765. * mno-save-mduc-in-interrupts: RL78 Options. (line 79)
  48766. * mno-scc: FRV Options. (line 180)
  48767. * mno-sched-ar-data-spec: IA-64 Options. (line 135)
  48768. * mno-sched-ar-in-data-spec: IA-64 Options. (line 157)
  48769. * mno-sched-br-data-spec: IA-64 Options. (line 128)
  48770. * mno-sched-br-in-data-spec: IA-64 Options. (line 150)
  48771. * mno-sched-control-spec: IA-64 Options. (line 142)
  48772. * mno-sched-count-spec-in-critical-path: IA-64 Options. (line 185)
  48773. * mno-sched-in-control-spec: IA-64 Options. (line 164)
  48774. * mno-sched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  48775. * mno-sched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  48776. * mno-sched-prolog: ARM Options. (line 32)
  48777. * mno-sdata: ARC Options. (line 419)
  48778. * mno-sdata <1>: IA-64 Options. (line 42)
  48779. * mno-sdata <2>: PowerPC SPE Options.
  48780. (line 513)
  48781. * mno-sdata <3>: RS/6000 and PowerPC Options.
  48782. (line 736)
  48783. * mno-sep-data: Blackfin Options. (line 113)
  48784. * mno-serialize-volatile: Xtensa Options. (line 35)
  48785. * mno-short: M680x0 Options. (line 222)
  48786. * mno-side-effects: CRIS Options. (line 46)
  48787. * mno-sim: RX Options. (line 71)
  48788. * mno-single-exit: MMIX Options. (line 65)
  48789. * mno-slow-bytes: MCore Options. (line 35)
  48790. * mno-small-exec: S/390 and zSeries Options.
  48791. (line 79)
  48792. * mno-smartmips: MIPS Options. (line 365)
  48793. * mno-soft-cmpsf: Adapteva Epiphany Options.
  48794. (line 29)
  48795. * mno-soft-float: DEC Alpha Options. (line 10)
  48796. * mno-space-regs: HPPA Options. (line 45)
  48797. * mno-spe: PowerPC SPE Options.
  48798. (line 88)
  48799. * mno-specld-anomaly: Blackfin Options. (line 53)
  48800. * mno-split-addresses: MIPS Options. (line 531)
  48801. * mno-stack-align: CRIS Options. (line 55)
  48802. * mno-stack-bias: SPARC Options. (line 372)
  48803. * mno-std-struct-return: SPARC Options. (line 102)
  48804. * mno-strict-align: M680x0 Options. (line 283)
  48805. * mno-strict-align <1>: PowerPC SPE Options.
  48806. (line 234)
  48807. * mno-strict-align <2>: RS/6000 and PowerPC Options.
  48808. (line 461)
  48809. * mno-subxc: SPARC Options. (line 288)
  48810. * mno-sum-in-toc: PowerPC SPE Options.
  48811. (line 122)
  48812. * mno-sum-in-toc <1>: RS/6000 and PowerPC Options.
  48813. (line 294)
  48814. * mno-sym32: MIPS Options. (line 429)
  48815. * mno-target-align: Xtensa Options. (line 74)
  48816. * mno-text-section-literals: Xtensa Options. (line 47)
  48817. * mno-tls-markers: PowerPC SPE Options.
  48818. (line 557)
  48819. * mno-tls-markers <1>: RS/6000 and PowerPC Options.
  48820. (line 820)
  48821. * mno-toc: PowerPC SPE Options.
  48822. (line 259)
  48823. * mno-toc <1>: RS/6000 and PowerPC Options.
  48824. (line 486)
  48825. * mno-toplevel-symbols: MMIX Options. (line 39)
  48826. * mno-tpf-trace: S/390 and zSeries Options.
  48827. (line 169)
  48828. * mno-unaligned-access: ARM Options. (line 754)
  48829. * mno-unaligned-doubles: SPARC Options. (line 73)
  48830. * mno-uninit-const-in-rodata: MIPS Options. (line 501)
  48831. * mno-update: PowerPC SPE Options.
  48832. (line 206)
  48833. * mno-update <1>: RS/6000 and PowerPC Options.
  48834. (line 408)
  48835. * mno-user-mode: SPARC Options. (line 85)
  48836. * mno-usermode: SH Options. (line 274)
  48837. * mno-v3push: NDS32 Options. (line 48)
  48838. * mno-v8plus: SPARC Options. (line 214)
  48839. * mno-vect-double: Adapteva Epiphany Options.
  48840. (line 115)
  48841. * mno-virt: MIPS Options. (line 406)
  48842. * mno-vis: SPARC Options. (line 221)
  48843. * mno-vis2: SPARC Options. (line 227)
  48844. * mno-vis3: SPARC Options. (line 235)
  48845. * mno-vis4: SPARC Options. (line 243)
  48846. * mno-vis4b: SPARC Options. (line 251)
  48847. * mno-vliw-branch: FRV Options. (line 208)
  48848. * mno-volatile-asm-stop: IA-64 Options. (line 32)
  48849. * mno-volatile-cache: ARC Options. (line 428)
  48850. * mno-vrsave: RS/6000 and PowerPC Options.
  48851. (line 181)
  48852. * mno-vsx: RS/6000 and PowerPC Options.
  48853. (line 209)
  48854. * mno-vx: S/390 and zSeries Options.
  48855. (line 112)
  48856. * mno-warn-mcu: MSP430 Options. (line 35)
  48857. * mno-warn-multiple-fast-interrupts: RX Options. (line 143)
  48858. * mno-wide-bitfields: MCore Options. (line 23)
  48859. * mno-xgot: M680x0 Options. (line 315)
  48860. * mno-xgot <1>: MIPS Options. (line 228)
  48861. * mno-xl-compat: PowerPC SPE Options.
  48862. (line 152)
  48863. * mno-xl-compat <1>: RS/6000 and PowerPC Options.
  48864. (line 329)
  48865. * mno-xpa: MIPS Options. (line 410)
  48866. * mno-zdcbranch: SH Options. (line 341)
  48867. * mno-zero-extend: MMIX Options. (line 26)
  48868. * mno-zvector: S/390 and zSeries Options.
  48869. (line 123)
  48870. * mnobitfield: M680x0 Options. (line 227)
  48871. * mnodiv: FT32 Options. (line 20)
  48872. * mnoliw: MN10300 Options. (line 59)
  48873. * mnomacsave: SH Options. (line 160)
  48874. * mnop-fun-dllimport: x86 Windows Options.
  48875. (line 22)
  48876. * mnop-mcount: x86 Options. (line 1229)
  48877. * mnopm: FT32 Options. (line 29)
  48878. * mnops: Adapteva Epiphany Options.
  48879. (line 26)
  48880. * mnorm: ARC Options. (line 128)
  48881. * mnosetlb: MN10300 Options. (line 69)
  48882. * mnosplit-lohi: Adapteva Epiphany Options.
  48883. (line 109)
  48884. * modd-spreg: MIPS Options. (line 292)
  48885. * momit-leaf-frame-pointer: AArch64 Options. (line 56)
  48886. * momit-leaf-frame-pointer <1>: Blackfin Options. (line 43)
  48887. * momit-leaf-frame-pointer <2>: x86 Options. (line 1193)
  48888. * mone-byte-bool: Darwin Options. (line 90)
  48889. * moptimize: Nvidia PTX Options. (line 17)
  48890. * moptimize-membar: FRV Options. (line 244)
  48891. * moverride: AArch64 Options. (line 190)
  48892. * MP: Preprocessor Options.
  48893. (line 132)
  48894. * mpa-risc-1-0: HPPA Options. (line 19)
  48895. * mpa-risc-1-1: HPPA Options. (line 19)
  48896. * mpa-risc-2-0: HPPA Options. (line 19)
  48897. * mpack: FRV Options. (line 147)
  48898. * mpacked-stack: S/390 and zSeries Options.
  48899. (line 54)
  48900. * mpadstruct: SH Options. (line 189)
  48901. * mpaired: RS/6000 and PowerPC Options.
  48902. (line 204)
  48903. * mpaired-single: MIPS Options. (line 369)
  48904. * mpc-relative-literal-loads: AArch64 Options. (line 203)
  48905. * mpc32: x86 Options. (line 627)
  48906. * mpc64: x86 Options. (line 627)
  48907. * mpc80: x86 Options. (line 627)
  48908. * mpclmul: x86 Options. (line 725)
  48909. * mpconfig: x86 Options. (line 732)
  48910. * mpcrel: M680x0 Options. (line 275)
  48911. * mpdebug: CRIS Options. (line 36)
  48912. * mpe: RS/6000 and PowerPC Options.
  48913. (line 348)
  48914. * mpe-aligned-commons: x86 Windows Options.
  48915. (line 59)
  48916. * mperf-ext: NDS32 Options. (line 27)
  48917. * mperf-ext <1>: NDS32 Options. (line 33)
  48918. * mperf-ext <2>: NDS32 Options. (line 39)
  48919. * mpic-data-is-text-relative: ARM Options. (line 648)
  48920. * mpic-register: ARM Options. (line 641)
  48921. * mpid: RX Options. (line 117)
  48922. * mpku: x86 Options. (line 761)
  48923. * mplt: MIPS Options. (line 218)
  48924. * mpointer-size=SIZE: VMS Options. (line 20)
  48925. * mpointers-to-nested-functions: PowerPC SPE Options.
  48926. (line 632)
  48927. * mpointers-to-nested-functions <1>: RS/6000 and PowerPC Options.
  48928. (line 921)
  48929. * mpoke-function-name: ARM Options. (line 656)
  48930. * mpopc: SPARC Options. (line 281)
  48931. * mpopcnt: x86 Options. (line 744)
  48932. * mpopcntb: PowerPC SPE Options.
  48933. (line 11)
  48934. * mpopcntb <1>: RS/6000 and PowerPC Options.
  48935. (line 27)
  48936. * mpopcntd: RS/6000 and PowerPC Options.
  48937. (line 27)
  48938. * mportable-runtime: HPPA Options. (line 71)
  48939. * mpower8-fusion: RS/6000 and PowerPC Options.
  48940. (line 227)
  48941. * mpower8-vector: RS/6000 and PowerPC Options.
  48942. (line 233)
  48943. * mpowerpc-gfxopt: RS/6000 and PowerPC Options.
  48944. (line 27)
  48945. * mpowerpc-gpopt: RS/6000 and PowerPC Options.
  48946. (line 27)
  48947. * mpowerpc64: RS/6000 and PowerPC Options.
  48948. (line 27)
  48949. * mprefer-avx128: x86 Options. (line 842)
  48950. * mprefer-short-insn-regs: Adapteva Epiphany Options.
  48951. (line 13)
  48952. * mprefer-vector-width: x86 Options. (line 846)
  48953. * mprefergot: SH Options. (line 268)
  48954. * mpreferred-stack-boundary: RISC-V Options. (line 73)
  48955. * mpreferred-stack-boundary <1>: x86 Options. (line 657)
  48956. * mprefetchwt1: x86 Options. (line 737)
  48957. * mpretend-cmove: SH Options. (line 383)
  48958. * mprfchw: x86 Options. (line 735)
  48959. * mprint-tune-info: ARM Options. (line 790)
  48960. * mprioritize-restricted-insns: PowerPC SPE Options.
  48961. (line 288)
  48962. * mprioritize-restricted-insns <1>: RS/6000 and PowerPC Options.
  48963. (line 515)
  48964. * mprolog-function: V850 Options. (line 23)
  48965. * mprologue-epilogue: CRIS Options. (line 71)
  48966. * mprototype: PowerPC SPE Options.
  48967. (line 427)
  48968. * mprototype <1>: RS/6000 and PowerPC Options.
  48969. (line 650)
  48970. * mpure-code: ARM Options. (line 800)
  48971. * mpush-args: x86 Options. (line 1000)
  48972. * MQ: Preprocessor Options.
  48973. (line 159)
  48974. * mq-class: ARC Options. (line 513)
  48975. * mquad-memory: RS/6000 and PowerPC Options.
  48976. (line 240)
  48977. * mquad-memory-atomic: RS/6000 and PowerPC Options.
  48978. (line 246)
  48979. * mr0rel-sec: Nios II Options. (line 76)
  48980. * mr10k-cache-barrier: MIPS Options. (line 680)
  48981. * mRcq: ARC Options. (line 517)
  48982. * mRcw: ARC Options. (line 521)
  48983. * mrdpid: x86 Options. (line 736)
  48984. * mrdrnd: x86 Options. (line 729)
  48985. * mrdseed: x86 Options. (line 738)
  48986. * mreadonly-in-sdata: RS/6000 and PowerPC Options.
  48987. (line 742)
  48988. * mrecip: PowerPC SPE Options.
  48989. (line 565)
  48990. * mrecip <1>: RS/6000 and PowerPC Options.
  48991. (line 828)
  48992. * mrecip <2>: x86 Options. (line 896)
  48993. * mrecip-precision: PowerPC SPE Options.
  48994. (line 622)
  48995. * mrecip-precision <1>: RS/6000 and PowerPC Options.
  48996. (line 885)
  48997. * mrecip=opt: PowerPC SPE Options.
  48998. (line 578)
  48999. * mrecip=opt <1>: RS/6000 and PowerPC Options.
  49000. (line 841)
  49001. * mrecip=opt <2>: x86 Options. (line 918)
  49002. * mrecord-mcount: x86 Options. (line 1223)
  49003. * mreduced-regs: NDS32 Options. (line 15)
  49004. * mregister-names: IA-64 Options. (line 37)
  49005. * mregnames: PowerPC SPE Options.
  49006. (line 532)
  49007. * mregnames <1>: RS/6000 and PowerPC Options.
  49008. (line 782)
  49009. * mregparm: x86 Options. (line 594)
  49010. * mrelax: AVR Options. (line 218)
  49011. * mrelax <1>: H8/300 Options. (line 9)
  49012. * mrelax <2>: MN10300 Options. (line 46)
  49013. * mrelax <3>: MSP430 Options. (line 58)
  49014. * mrelax <4>: NDS32 Options. (line 84)
  49015. * mrelax <5>: RX Options. (line 95)
  49016. * mrelax <6>: SH Options. (line 137)
  49017. * mrelax <7>: V850 Options. (line 103)
  49018. * mrelax-immediate: MCore Options. (line 19)
  49019. * mrelax-pic-calls: MIPS Options. (line 825)
  49020. * mrelocatable: PowerPC SPE Options.
  49021. (line 239)
  49022. * mrelocatable <1>: RS/6000 and PowerPC Options.
  49023. (line 466)
  49024. * mrelocatable-lib: PowerPC SPE Options.
  49025. (line 250)
  49026. * mrelocatable-lib <1>: RS/6000 and PowerPC Options.
  49027. (line 477)
  49028. * mrenesas: SH Options. (line 152)
  49029. * mrepeat: MeP Options. (line 96)
  49030. * mrestrict-it: ARM Options. (line 784)
  49031. * mreturn-pointer-on-d0: MN10300 Options. (line 36)
  49032. * mrf16: ARC Options. (line 324)
  49033. * mrgf-banked-regs: ARC Options. (line 304)
  49034. * mrh850-abi: V850 Options. (line 127)
  49035. * mrl78: RL78 Options. (line 62)
  49036. * mrmw: AVR Options. (line 232)
  49037. * mrtd: M680x0 Options. (line 236)
  49038. * mrtd <1>: x86 Options. (line 570)
  49039. * mrtd <2>: x86 Function Attributes.
  49040. (line 9)
  49041. * mrtm: x86 Options. (line 755)
  49042. * mrtp: VxWorks Options. (line 11)
  49043. * mrtsc: ARC Options. (line 355)
  49044. * ms: H8/300 Options. (line 17)
  49045. * ms <1>: MeP Options. (line 100)
  49046. * ms2600: H8/300 Options. (line 24)
  49047. * msafe-dma: SPU Options. (line 18)
  49048. * msafe-hints: SPU Options. (line 112)
  49049. * msahf: x86 Options. (line 872)
  49050. * msatur: MeP Options. (line 105)
  49051. * msave-acc-in-interrupts: RX Options. (line 109)
  49052. * msave-mduc-in-interrupts: RL78 Options. (line 79)
  49053. * msave-restore: RISC-V Options. (line 87)
  49054. * msave-toc-indirect: PowerPC SPE Options.
  49055. (line 644)
  49056. * msave-toc-indirect <1>: RS/6000 and PowerPC Options.
  49057. (line 933)
  49058. * mscc: FRV Options. (line 173)
  49059. * msched-ar-data-spec: IA-64 Options. (line 135)
  49060. * msched-ar-in-data-spec: IA-64 Options. (line 157)
  49061. * msched-br-data-spec: IA-64 Options. (line 128)
  49062. * msched-br-in-data-spec: IA-64 Options. (line 150)
  49063. * msched-control-spec: IA-64 Options. (line 142)
  49064. * msched-costly-dep: PowerPC SPE Options.
  49065. (line 295)
  49066. * msched-costly-dep <1>: RS/6000 and PowerPC Options.
  49067. (line 522)
  49068. * msched-count-spec-in-critical-path: IA-64 Options. (line 185)
  49069. * msched-fp-mem-deps-zero-cost: IA-64 Options. (line 202)
  49070. * msched-in-control-spec: IA-64 Options. (line 164)
  49071. * msched-max-memory-insns: IA-64 Options. (line 211)
  49072. * msched-max-memory-insns-hard-limit: IA-64 Options. (line 217)
  49073. * msched-prefer-non-control-spec-insns: IA-64 Options. (line 178)
  49074. * msched-prefer-non-data-spec-insns: IA-64 Options. (line 171)
  49075. * msched-spec-ldc: IA-64 Options. (line 191)
  49076. * msched-spec-ldc <1>: IA-64 Options. (line 194)
  49077. * msched-stop-bits-after-every-cycle: IA-64 Options. (line 198)
  49078. * mschedule: HPPA Options. (line 78)
  49079. * mscore5: Score Options. (line 25)
  49080. * mscore5u: Score Options. (line 28)
  49081. * mscore7: Score Options. (line 31)
  49082. * mscore7d: Score Options. (line 35)
  49083. * msda: V850 Options. (line 40)
  49084. * msdata: IA-64 Options. (line 42)
  49085. * msdata <1>: PowerPC SPE Options.
  49086. (line 500)
  49087. * msdata <2>: RS/6000 and PowerPC Options.
  49088. (line 723)
  49089. * msdata=all: C6X Options. (line 30)
  49090. * msdata=data: PowerPC SPE Options.
  49091. (line 505)
  49092. * msdata=data <1>: RS/6000 and PowerPC Options.
  49093. (line 728)
  49094. * msdata=default: C6X Options. (line 22)
  49095. * msdata=default <1>: PowerPC SPE Options.
  49096. (line 500)
  49097. * msdata=default <2>: RS/6000 and PowerPC Options.
  49098. (line 723)
  49099. * msdata=eabi: PowerPC SPE Options.
  49100. (line 481)
  49101. * msdata=eabi <1>: RS/6000 and PowerPC Options.
  49102. (line 704)
  49103. * msdata=none: C6X Options. (line 35)
  49104. * msdata=none <1>: M32R/D Options. (line 40)
  49105. * msdata=none <2>: PowerPC SPE Options.
  49106. (line 513)
  49107. * msdata=none <3>: RS/6000 and PowerPC Options.
  49108. (line 736)
  49109. * msdata=sdata: M32R/D Options. (line 49)
  49110. * msdata=sysv: PowerPC SPE Options.
  49111. (line 491)
  49112. * msdata=sysv <1>: RS/6000 and PowerPC Options.
  49113. (line 714)
  49114. * msdata=use: M32R/D Options. (line 53)
  49115. * msdram: Blackfin Options. (line 169)
  49116. * msdram <1>: MeP Options. (line 110)
  49117. * msecure-plt: PowerPC SPE Options.
  49118. (line 68)
  49119. * msecure-plt <1>: RS/6000 and PowerPC Options.
  49120. (line 184)
  49121. * msel-sched-dont-check-control-spec: IA-64 Options. (line 207)
  49122. * msep-data: Blackfin Options. (line 107)
  49123. * mserialize-volatile: Xtensa Options. (line 35)
  49124. * msetlb: MN10300 Options. (line 64)
  49125. * msgx: x86 Options. (line 739)
  49126. * msha: x86 Options. (line 723)
  49127. * mshared-library-id: Blackfin Options. (line 100)
  49128. * mshort: M680x0 Options. (line 216)
  49129. * mshort-calls: AVR Options. (line 236)
  49130. * mshstk: x86 Options. (line 886)
  49131. * msign-extend-enabled: LM32 Options. (line 18)
  49132. * msign-return-address: AArch64 Options. (line 209)
  49133. * msilicon-errata: MSP430 Options. (line 102)
  49134. * msilicon-errata-warn: MSP430 Options. (line 106)
  49135. * msim: Blackfin Options. (line 36)
  49136. * msim <1>: C6X Options. (line 19)
  49137. * msim <2>: CR16 Options. (line 18)
  49138. * msim <3>: FT32 Options. (line 9)
  49139. * msim <4>: M32C Options. (line 13)
  49140. * msim <5>: MeP Options. (line 114)
  49141. * msim <6>: MSP430 Options. (line 47)
  49142. * msim <7>: PowerPC SPE Options.
  49143. (line 437)
  49144. * msim <8>: RL78 Options. (line 7)
  49145. * msim <9>: RS/6000 and PowerPC Options.
  49146. (line 660)
  49147. * msim <10>: RX Options. (line 71)
  49148. * msim <11>: Visium Options. (line 13)
  49149. * msim <12>: Xstormy16 Options. (line 9)
  49150. * msimd: ARC Options. (line 141)
  49151. * msimnovec: MeP Options. (line 117)
  49152. * msimple-fpu: RS/6000 and PowerPC Options.
  49153. (line 381)
  49154. * msingle-exit: MMIX Options. (line 65)
  49155. * msingle-float: MIPS Options. (line 283)
  49156. * msingle-float <1>: PowerPC SPE Options.
  49157. (line 190)
  49158. * msingle-float <2>: RS/6000 and PowerPC Options.
  49159. (line 377)
  49160. * msingle-pic-base: ARM Options. (line 635)
  49161. * msingle-pic-base <1>: PowerPC SPE Options.
  49162. (line 282)
  49163. * msingle-pic-base <2>: RS/6000 and PowerPC Options.
  49164. (line 509)
  49165. * msio: HPPA Options. (line 105)
  49166. * msize-level: ARC Options. (line 525)
  49167. * mskip-rax-setup: x86 Options. (line 1236)
  49168. * mslow-bytes: MCore Options. (line 35)
  49169. * mslow-flash-data: ARM Options. (line 772)
  49170. * msmall: MSP430 Options. (line 55)
  49171. * msmall-data: DEC Alpha Options. (line 187)
  49172. * msmall-data-limit: RISC-V Options. (line 82)
  49173. * msmall-data-limit <1>: RX Options. (line 47)
  49174. * msmall-divides: MicroBlaze Options. (line 38)
  49175. * msmall-exec: S/390 and zSeries Options.
  49176. (line 79)
  49177. * msmall-mem: SPU Options. (line 38)
  49178. * msmall-model: FR30 Options. (line 9)
  49179. * msmall-text: DEC Alpha Options. (line 205)
  49180. * msmall16: Adapteva Epiphany Options.
  49181. (line 66)
  49182. * msmallc: Nios II Options. (line 310)
  49183. * msmartmips: MIPS Options. (line 365)
  49184. * msoft-float: ARC Options. (line 145)
  49185. * msoft-float <1>: DEC Alpha Options. (line 10)
  49186. * msoft-float <2>: FRV Options. (line 27)
  49187. * msoft-float <3>: HPPA Options. (line 91)
  49188. * msoft-float <4>: M680x0 Options. (line 200)
  49189. * msoft-float <5>: MicroBlaze Options. (line 7)
  49190. * msoft-float <6>: MIPS Options. (line 269)
  49191. * msoft-float <7>: PDP-11 Options. (line 13)
  49192. * msoft-float <8>: PowerPC SPE Options.
  49193. (line 184)
  49194. * msoft-float <9>: RS/6000 and PowerPC Options.
  49195. (line 371)
  49196. * msoft-float <10>: S/390 and zSeries Options.
  49197. (line 11)
  49198. * msoft-float <11>: SPARC Options. (line 39)
  49199. * msoft-float <12>: V850 Options. (line 113)
  49200. * msoft-float <13>: Visium Options. (line 24)
  49201. * msoft-float <14>: x86 Options. (line 469)
  49202. * msoft-quad-float: SPARC Options. (line 59)
  49203. * msoft-stack: Nvidia PTX Options. (line 21)
  49204. * msp8: AVR Options. (line 243)
  49205. * mspace: V850 Options. (line 30)
  49206. * mspe: PowerPC SPE Options.
  49207. (line 88)
  49208. * mspecld-anomaly: Blackfin Options. (line 48)
  49209. * mspfp: ARC Options. (line 132)
  49210. * mspfp-compact: ARC Options. (line 133)
  49211. * mspfp-fast: ARC Options. (line 137)
  49212. * mspfp_compact: ARC Options. (line 626)
  49213. * mspfp_fast: ARC Options. (line 629)
  49214. * msplit-addresses: MIPS Options. (line 531)
  49215. * msplit-vecmove-early: Adapteva Epiphany Options.
  49216. (line 126)
  49217. * msse: x86 Options. (line 704)
  49218. * msse2: x86 Options. (line 705)
  49219. * msse2avx: x86 Options. (line 1211)
  49220. * msse3: x86 Options. (line 706)
  49221. * msse4: x86 Options. (line 708)
  49222. * msse4.1: x86 Options. (line 710)
  49223. * msse4.2: x86 Options. (line 711)
  49224. * msse4a: x86 Options. (line 709)
  49225. * msseregparm: x86 Options. (line 605)
  49226. * mssse3: x86 Options. (line 707)
  49227. * mstack-align: CRIS Options. (line 55)
  49228. * mstack-bias: SPARC Options. (line 372)
  49229. * mstack-check-l1: Blackfin Options. (line 74)
  49230. * mstack-guard: S/390 and zSeries Options.
  49231. (line 194)
  49232. * mstack-increment: MCore Options. (line 50)
  49233. * mstack-offset: Adapteva Epiphany Options.
  49234. (line 37)
  49235. * mstack-protector-guard: PowerPC SPE Options.
  49236. (line 670)
  49237. * mstack-protector-guard <1>: RS/6000 and PowerPC Options.
  49238. (line 959)
  49239. * mstack-protector-guard <2>: x86 Options. (line 1262)
  49240. * mstack-protector-guard-offset: PowerPC SPE Options.
  49241. (line 670)
  49242. * mstack-protector-guard-offset <1>: RS/6000 and PowerPC Options.
  49243. (line 959)
  49244. * mstack-protector-guard-offset <2>: x86 Options. (line 1262)
  49245. * mstack-protector-guard-reg: PowerPC SPE Options.
  49246. (line 670)
  49247. * mstack-protector-guard-reg <1>: RS/6000 and PowerPC Options.
  49248. (line 959)
  49249. * mstack-protector-guard-reg <2>: x86 Options. (line 1262)
  49250. * mstack-protector-guard-symbol: PowerPC SPE Options.
  49251. (line 670)
  49252. * mstack-protector-guard-symbol <1>: RS/6000 and PowerPC Options.
  49253. (line 959)
  49254. * mstack-size: S/390 and zSeries Options.
  49255. (line 194)
  49256. * mstackrealign: x86 Options. (line 648)
  49257. * mstd-struct-return: SPARC Options. (line 102)
  49258. * mstdmain: SPU Options. (line 44)
  49259. * mstrict-align: AArch64 Options. (line 50)
  49260. * mstrict-align <1>: M680x0 Options. (line 283)
  49261. * mstrict-align <2>: PowerPC SPE Options.
  49262. (line 234)
  49263. * mstrict-align <3>: RISC-V Options. (line 93)
  49264. * mstrict-align <4>: RS/6000 and PowerPC Options.
  49265. (line 461)
  49266. * mstrict-X: AVR Options. (line 256)
  49267. * mstring-compare-inline-limit: RS/6000 and PowerPC Options.
  49268. (line 766)
  49269. * mstringop-strategy=ALG: x86 Options. (line 1159)
  49270. * mstructure-size-boundary: ARM Options. (line 590)
  49271. * msubxc: SPARC Options. (line 288)
  49272. * msv-mode: Visium Options. (line 52)
  49273. * msve-vector-bits: AArch64 Options. (line 216)
  49274. * msvr4-struct-return: PowerPC SPE Options.
  49275. (line 375)
  49276. * msvr4-struct-return <1>: RS/6000 and PowerPC Options.
  49277. (line 606)
  49278. * mswap: ARC Options. (line 152)
  49279. * mswape: ARC Options. (line 360)
  49280. * msym32: MIPS Options. (line 429)
  49281. * msynci: MIPS Options. (line 811)
  49282. * msys-crt0: Nios II Options. (line 314)
  49283. * msys-lib: Nios II Options. (line 318)
  49284. * MT: Preprocessor Options.
  49285. (line 144)
  49286. * mtarget-align: Xtensa Options. (line 74)
  49287. * mtas: SH Options. (line 259)
  49288. * mtbm: x86 Options. (line 757)
  49289. * mtda: V850 Options. (line 34)
  49290. * mtelephony: ARC Options. (line 365)
  49291. * mtext-section-literals: Xtensa Options. (line 47)
  49292. * mtf: MeP Options. (line 121)
  49293. * mthread: x86 Windows Options.
  49294. (line 26)
  49295. * mthreads: x86 Options. (line 1015)
  49296. * mthumb: ARM Options. (line 678)
  49297. * mthumb-interwork: ARM Options. (line 24)
  49298. * mtiny-stack: AVR Options. (line 270)
  49299. * mtiny=: MeP Options. (line 125)
  49300. * mTLS: FRV Options. (line 90)
  49301. * mtls: FRV Options. (line 94)
  49302. * mtls-dialect: ARM Options. (line 730)
  49303. * mtls-dialect <1>: x86 Options. (line 993)
  49304. * mtls-dialect=desc: AArch64 Options. (line 60)
  49305. * mtls-dialect=traditional: AArch64 Options. (line 64)
  49306. * mtls-direct-seg-refs: x86 Options. (line 1201)
  49307. * mtls-markers: PowerPC SPE Options.
  49308. (line 557)
  49309. * mtls-markers <1>: RS/6000 and PowerPC Options.
  49310. (line 820)
  49311. * mtls-size: AArch64 Options. (line 68)
  49312. * mtls-size <1>: IA-64 Options. (line 112)
  49313. * mtoc: PowerPC SPE Options.
  49314. (line 259)
  49315. * mtoc <1>: RS/6000 and PowerPC Options.
  49316. (line 486)
  49317. * mtomcat-stats: FRV Options. (line 254)
  49318. * mtoplevel-symbols: MMIX Options. (line 39)
  49319. * mtp: ARM Options. (line 722)
  49320. * mtp-regno: ARC Options. (line 170)
  49321. * mtpcs-frame: ARM Options. (line 695)
  49322. * mtpcs-leaf-frame: ARM Options. (line 701)
  49323. * mtpf-trace: S/390 and zSeries Options.
  49324. (line 169)
  49325. * mtraceback: RS/6000 and PowerPC Options.
  49326. (line 599)
  49327. * mtrap-precision: DEC Alpha Options. (line 109)
  49328. * mtune: AArch64 Options. (line 147)
  49329. * mtune <1>: ARC Options. (line 546)
  49330. * mtune <2>: ARC Options. (line 632)
  49331. * mtune <3>: ARM Options. (line 427)
  49332. * mtune <4>: CRIS Options. (line 17)
  49333. * mtune <5>: DEC Alpha Options. (line 259)
  49334. * mtune <6>: IA-64 Options. (line 116)
  49335. * mtune <7>: M680x0 Options. (line 68)
  49336. * mtune <8>: MIPS Options. (line 65)
  49337. * mtune <9>: MN10300 Options. (line 30)
  49338. * mtune <10>: PowerPC SPE Options.
  49339. (line 60)
  49340. * mtune <11>: RISC-V Options. (line 59)
  49341. * mtune <12>: RS/6000 and PowerPC Options.
  49342. (line 118)
  49343. * mtune <13>: S/390 and zSeries Options.
  49344. (line 162)
  49345. * mtune <14>: SPARC Options. (line 199)
  49346. * mtune <15>: Visium Options. (line 47)
  49347. * mtune <16>: x86 Options. (line 343)
  49348. * mtune-ctrl=FEATURE-LIST: x86 Options. (line 809)
  49349. * muclibc: GNU/Linux Options. (line 14)
  49350. * muls: Score Options. (line 18)
  49351. * multcost: ARC Options. (line 637)
  49352. * multcost=NUMBER: SH Options. (line 281)
  49353. * multilib-library-pic: FRV Options. (line 110)
  49354. * multiply-enabled: LM32 Options. (line 15)
  49355. * multiply_defined: Darwin Options. (line 196)
  49356. * multiply_defined_unused: Darwin Options. (line 196)
  49357. * multi_module: Darwin Options. (line 196)
  49358. * munalign-prob-threshold: ARC Options. (line 574)
  49359. * munaligned-access: ARM Options. (line 754)
  49360. * munaligned-doubles: SPARC Options. (line 73)
  49361. * municode: x86 Windows Options.
  49362. (line 30)
  49363. * muniform-simt: Nvidia PTX Options. (line 33)
  49364. * muninit-const-in-rodata: MIPS Options. (line 501)
  49365. * munix: VAX Options. (line 9)
  49366. * munix-asm: PDP-11 Options. (line 68)
  49367. * munsafe-dma: SPU Options. (line 18)
  49368. * mupdate: PowerPC SPE Options.
  49369. (line 206)
  49370. * mupdate <1>: RS/6000 and PowerPC Options.
  49371. (line 408)
  49372. * muser-enabled: LM32 Options. (line 21)
  49373. * muser-mode: SPARC Options. (line 85)
  49374. * muser-mode <1>: Visium Options. (line 57)
  49375. * musermode: SH Options. (line 274)
  49376. * mv3push: NDS32 Options. (line 45)
  49377. * mv850: V850 Options. (line 49)
  49378. * mv850e: V850 Options. (line 79)
  49379. * mv850e1: V850 Options. (line 70)
  49380. * mv850e2: V850 Options. (line 66)
  49381. * mv850e2v3: V850 Options. (line 61)
  49382. * mv850e2v4: V850 Options. (line 57)
  49383. * mv850e3v5: V850 Options. (line 52)
  49384. * mv850es: V850 Options. (line 75)
  49385. * mv8plus: SPARC Options. (line 214)
  49386. * mvaes: x86 Options. (line 764)
  49387. * mveclibabi: RS/6000 and PowerPC Options.
  49388. (line 894)
  49389. * mveclibabi <1>: x86 Options. (line 947)
  49390. * mvect8-ret-in-mem: x86 Options. (line 615)
  49391. * mverbose-cost-dump: AArch64 Options. (line 198)
  49392. * mverbose-cost-dump <1>: ARM Options. (line 796)
  49393. * mvirt: MIPS Options. (line 406)
  49394. * mvis: SPARC Options. (line 221)
  49395. * mvis2: SPARC Options. (line 227)
  49396. * mvis3: SPARC Options. (line 235)
  49397. * mvis4: SPARC Options. (line 243)
  49398. * mvis4b: SPARC Options. (line 251)
  49399. * mvliw-branch: FRV Options. (line 201)
  49400. * mvms-return-codes: VMS Options. (line 9)
  49401. * mvolatile-asm-stop: IA-64 Options. (line 32)
  49402. * mvolatile-cache: ARC Options. (line 424)
  49403. * mvpclmulqdq: x86 Options. (line 765)
  49404. * mvr4130-align: MIPS Options. (line 800)
  49405. * mvrsave: RS/6000 and PowerPC Options.
  49406. (line 181)
  49407. * mvsx: RS/6000 and PowerPC Options.
  49408. (line 209)
  49409. * mvx: S/390 and zSeries Options.
  49410. (line 112)
  49411. * mvxworks: PowerPC SPE Options.
  49412. (line 458)
  49413. * mvxworks <1>: RS/6000 and PowerPC Options.
  49414. (line 681)
  49415. * mvzeroupper: x86 Options. (line 836)
  49416. * mwarn-dynamicstack: S/390 and zSeries Options.
  49417. (line 188)
  49418. * mwarn-framesize: S/390 and zSeries Options.
  49419. (line 180)
  49420. * mwarn-mcu: MSP430 Options. (line 35)
  49421. * mwarn-multiple-fast-interrupts: RX Options. (line 143)
  49422. * mwarn-reloc: SPU Options. (line 10)
  49423. * mwbnoinvd: x86 Options. (line 733)
  49424. * mwide-bitfields: MCore Options. (line 23)
  49425. * mwin32: x86 Windows Options.
  49426. (line 35)
  49427. * mwindows: x86 Windows Options.
  49428. (line 41)
  49429. * mword-relocations: ARM Options. (line 741)
  49430. * mx32: x86 Options. (line 1330)
  49431. * mxgot: M680x0 Options. (line 315)
  49432. * mxgot <1>: MIPS Options. (line 228)
  49433. * mxilinx-fpu: RS/6000 and PowerPC Options.
  49434. (line 392)
  49435. * mxl-barrel-shift: MicroBlaze Options. (line 32)
  49436. * mxl-compat: PowerPC SPE Options.
  49437. (line 152)
  49438. * mxl-compat <1>: RS/6000 and PowerPC Options.
  49439. (line 329)
  49440. * mxl-float-convert: MicroBlaze Options. (line 50)
  49441. * mxl-float-sqrt: MicroBlaze Options. (line 53)
  49442. * mxl-gp-opt: MicroBlaze Options. (line 44)
  49443. * mxl-multiply-high: MicroBlaze Options. (line 47)
  49444. * mxl-pattern-compare: MicroBlaze Options. (line 35)
  49445. * mxl-reorder: MicroBlaze Options. (line 62)
  49446. * mxl-soft-div: MicroBlaze Options. (line 29)
  49447. * mxl-soft-mul: MicroBlaze Options. (line 26)
  49448. * mxl-stack-check: MicroBlaze Options. (line 41)
  49449. * mxop: x86 Options. (line 740)
  49450. * mxpa: MIPS Options. (line 410)
  49451. * mxsave: x86 Options. (line 751)
  49452. * mxsavec: x86 Options. (line 753)
  49453. * mxsaveopt: x86 Options. (line 752)
  49454. * mxsaves: x86 Options. (line 754)
  49455. * mxy: ARC Options. (line 370)
  49456. * myellowknife: PowerPC SPE Options.
  49457. (line 453)
  49458. * myellowknife <1>: RS/6000 and PowerPC Options.
  49459. (line 676)
  49460. * mzarch: S/390 and zSeries Options.
  49461. (line 94)
  49462. * mzda: V850 Options. (line 45)
  49463. * mzdcbranch: SH Options. (line 341)
  49464. * mzero-extend: MMIX Options. (line 26)
  49465. * mzvector: S/390 and zSeries Options.
  49466. (line 123)
  49467. * no-80387: x86 Options. (line 469)
  49468. * no-canonical-prefixes: Directory Options. (line 164)
  49469. * no-integrated-cpp: Preprocessor Options.
  49470. (line 476)
  49471. * no-pie: Link Options. (line 111)
  49472. * no-sysroot-suffix: Directory Options. (line 183)
  49473. * noall_load: Darwin Options. (line 196)
  49474. * nocpp: MIPS Options. (line 612)
  49475. * nodefaultlibs: Link Options. (line 68)
  49476. * nodevicelib: AVR Options. (line 277)
  49477. * nofixprebinding: Darwin Options. (line 196)
  49478. * nofpu: RX Options. (line 17)
  49479. * nolibdld: HPPA Options. (line 188)
  49480. * nomultidefs: Darwin Options. (line 196)
  49481. * non-static: VxWorks Options. (line 16)
  49482. * noprebind: Darwin Options. (line 196)
  49483. * noseglinkedit: Darwin Options. (line 196)
  49484. * nostartfiles: Link Options. (line 63)
  49485. * nostdinc: Directory Options. (line 102)
  49486. * nostdinc++: C++ Dialect Options.
  49487. (line 447)
  49488. * nostdinc++ <1>: Directory Options. (line 108)
  49489. * nostdlib: Link Options. (line 80)
  49490. * no_dead_strip_inits_and_terms: Darwin Options. (line 196)
  49491. * o: Overall Options. (line 187)
  49492. * O: Optimize Options. (line 39)
  49493. * O0: Optimize Options. (line 160)
  49494. * O1: Optimize Options. (line 39)
  49495. * O2: Optimize Options. (line 92)
  49496. * O3: Optimize Options. (line 141)
  49497. * Ofast: Optimize Options. (line 177)
  49498. * Og: Optimize Options. (line 184)
  49499. * Os: Optimize Options. (line 164)
  49500. * p: Instrumentation Options.
  49501. (line 19)
  49502. * P: Preprocessor Options.
  49503. (line 361)
  49504. * pagezero_size: Darwin Options. (line 196)
  49505. * param: Optimize Options. (line 2400)
  49506. * pass-exit-codes: Overall Options. (line 326)
  49507. * pedantic: Standards. (line 13)
  49508. * pedantic <1>: Warning Options. (line 80)
  49509. * pedantic <2>: C Extensions. (line 6)
  49510. * pedantic <3>: Alternate Keywords. (line 30)
  49511. * pedantic <4>: Warnings and Errors.
  49512. (line 25)
  49513. * pedantic-errors: Standards. (line 13)
  49514. * pedantic-errors <1>: Warning Options. (line 121)
  49515. * pedantic-errors <2>: Non-bugs. (line 216)
  49516. * pedantic-errors <3>: Warnings and Errors.
  49517. (line 25)
  49518. * pg: Instrumentation Options.
  49519. (line 25)
  49520. * pie: Link Options. (line 105)
  49521. * pipe: Overall Options. (line 334)
  49522. * plt: RISC-V Options. (line 13)
  49523. * prebind: Darwin Options. (line 196)
  49524. * prebind_all_twolevel_modules: Darwin Options. (line 196)
  49525. * print-file-name: Developer Options. (line 872)
  49526. * print-libgcc-file-name: Developer Options. (line 906)
  49527. * print-multi-directory: Developer Options. (line 878)
  49528. * print-multi-lib: Developer Options. (line 883)
  49529. * print-multi-os-directory: Developer Options. (line 890)
  49530. * print-multiarch: Developer Options. (line 899)
  49531. * print-objc-runtime-info: Objective-C and Objective-C++ Dialect Options.
  49532. (line 216)
  49533. * print-prog-name: Developer Options. (line 903)
  49534. * print-search-dirs: Developer Options. (line 914)
  49535. * print-sysroot: Developer Options. (line 927)
  49536. * print-sysroot-headers-suffix: Developer Options. (line 934)
  49537. * private_bundle: Darwin Options. (line 196)
  49538. * pthread: Preprocessor Options.
  49539. (line 70)
  49540. * pthread <1>: Link Options. (line 122)
  49541. * pthreads: Solaris 2 Options. (line 30)
  49542. * Q: Developer Options. (line 778)
  49543. * Qn: System V Options. (line 18)
  49544. * Qy: System V Options. (line 14)
  49545. * rdynamic: Link Options. (line 129)
  49546. * read_only_relocs: Darwin Options. (line 196)
  49547. * remap: Preprocessor Options.
  49548. (line 392)
  49549. * S: Overall Options. (line 170)
  49550. * S <1>: Link Options. (line 20)
  49551. * s: Link Options. (line 136)
  49552. * save-temps: Developer Options. (line 653)
  49553. * save-temps=obj: Developer Options. (line 679)
  49554. * sectalign: Darwin Options. (line 196)
  49555. * sectcreate: Darwin Options. (line 196)
  49556. * sectobjectsymbols: Darwin Options. (line 196)
  49557. * sectobjectsymbols <1>: Darwin Options. (line 196)
  49558. * sectorder: Darwin Options. (line 196)
  49559. * seg1addr: Darwin Options. (line 196)
  49560. * segaddr: Darwin Options. (line 196)
  49561. * seglinkedit: Darwin Options. (line 196)
  49562. * segprot: Darwin Options. (line 196)
  49563. * segs_read_only_addr: Darwin Options. (line 196)
  49564. * segs_read_only_addr <1>: Darwin Options. (line 196)
  49565. * segs_read_write_addr: Darwin Options. (line 196)
  49566. * segs_read_write_addr <1>: Darwin Options. (line 196)
  49567. * seg_addr_table: Darwin Options. (line 196)
  49568. * seg_addr_table_filename: Darwin Options. (line 196)
  49569. * shared: Link Options. (line 145)
  49570. * shared-libgcc: Link Options. (line 153)
  49571. * short-calls: Adapteva Epiphany Options.
  49572. (line 61)
  49573. * sim: CRIS Options. (line 95)
  49574. * sim2: CRIS Options. (line 101)
  49575. * single_module: Darwin Options. (line 196)
  49576. * specs: Overall Options. (line 340)
  49577. * static: Link Options. (line 140)
  49578. * static <1>: Darwin Options. (line 196)
  49579. * static <2>: HPPA Options. (line 192)
  49580. * static-libasan: Link Options. (line 187)
  49581. * static-libgcc: Link Options. (line 153)
  49582. * static-liblsan: Link Options. (line 203)
  49583. * static-libmpx: Link Options. (line 220)
  49584. * static-libmpxwrappers: Link Options. (line 229)
  49585. * static-libstdc++: Link Options. (line 239)
  49586. * static-libtsan: Link Options. (line 195)
  49587. * static-libubsan: Link Options. (line 211)
  49588. * static-pie: Link Options. (line 114)
  49589. * std: Standards. (line 13)
  49590. * std <1>: C Dialect Options. (line 46)
  49591. * std <2>: Other Builtins. (line 31)
  49592. * std <3>: Non-bugs. (line 107)
  49593. * sub_library: Darwin Options. (line 196)
  49594. * sub_umbrella: Darwin Options. (line 196)
  49595. * symbolic: Link Options. (line 250)
  49596. * sysroot: Directory Options. (line 168)
  49597. * T: Link Options. (line 256)
  49598. * target-help: Overall Options. (line 219)
  49599. * threads: HPPA Options. (line 205)
  49600. * time: Developer Options. (line 694)
  49601. * tno-android-cc: GNU/Linux Options. (line 36)
  49602. * tno-android-ld: GNU/Linux Options. (line 40)
  49603. * traditional: Preprocessor Options.
  49604. (line 368)
  49605. * traditional <1>: Incompatibilities. (line 6)
  49606. * traditional-cpp: Preprocessor Options.
  49607. (line 368)
  49608. * trigraphs: Preprocessor Options.
  49609. (line 378)
  49610. * twolevel_namespace: Darwin Options. (line 196)
  49611. * U: Preprocessor Options.
  49612. (line 42)
  49613. * u: Link Options. (line 288)
  49614. * umbrella: Darwin Options. (line 196)
  49615. * undef: Preprocessor Options.
  49616. (line 66)
  49617. * undefined: Darwin Options. (line 196)
  49618. * unexported_symbols_list: Darwin Options. (line 196)
  49619. * v: Overall Options. (line 198)
  49620. * version: Overall Options. (line 323)
  49621. * w: Warning Options. (line 25)
  49622. * W: Warning Options. (line 201)
  49623. * W <1>: Warning Options. (line 2404)
  49624. * W <2>: Warning Options. (line 2506)
  49625. * W <3>: Incompatibilities. (line 64)
  49626. * Wa: Assembler Options. (line 9)
  49627. * Wabi: C++ Dialect Options.
  49628. (line 455)
  49629. * Wabi-tag: C++ Dialect Options.
  49630. (line 559)
  49631. * Waddr-space-convert: AVR Options. (line 280)
  49632. * Waddress: Warning Options. (line 2299)
  49633. * Waggregate-return: Warning Options. (line 2335)
  49634. * Waggressive-loop-optimizations: Warning Options. (line 2340)
  49635. * Waligned-new: Warning Options. (line 1863)
  49636. * Wall: Warning Options. (line 130)
  49637. * Wall <1>: Standard Libraries. (line 6)
  49638. * Walloc-zero: Warning Options. (line 1453)
  49639. * Walloca: Warning Options. (line 1476)
  49640. * Warray-bounds: Warning Options. (line 1539)
  49641. * Wassign-intercept: Objective-C and Objective-C++ Dialect Options.
  49642. (line 170)
  49643. * Wattributes: Warning Options. (line 2345)
  49644. * Wbad-function-cast: Warning Options. (line 1995)
  49645. * Wbool-compare: Warning Options. (line 1560)
  49646. * Wbool-operation: Warning Options. (line 1569)
  49647. * Wbuiltin-declaration-mismatch: Warning Options. (line 2351)
  49648. * Wbuiltin-macro-redefined: Warning Options. (line 2355)
  49649. * Wc++-compat: Warning Options. (line 2015)
  49650. * Wc++11-compat: Warning Options. (line 2020)
  49651. * Wc++14-compat: Warning Options. (line 2026)
  49652. * Wc++17-compat: Warning Options. (line 2030)
  49653. * Wc90-c99-compat: Warning Options. (line 2000)
  49654. * Wc99-c11-compat: Warning Options. (line 2007)
  49655. * Wcast-align: Warning Options. (line 2050)
  49656. * Wcast-align=strict: Warning Options. (line 2056)
  49657. * Wcast-function-type: Warning Options. (line 2061)
  49658. * Wcast-qual: Warning Options. (line 2034)
  49659. * Wcatch-value: Warning Options. (line 2088)
  49660. * Wchar-subscripts: Warning Options. (line 243)
  49661. * Wchkp: Warning Options. (line 248)
  49662. * Wclass-memaccess: C++ Dialect Options.
  49663. (line 646)
  49664. * Wclobbered: Warning Options. (line 2096)
  49665. * Wcomment: Warning Options. (line 1937)
  49666. * Wcomments: Warning Options. (line 1937)
  49667. * Wconditionally-supported: Warning Options. (line 2100)
  49668. * Wconversion: Warning Options. (line 2103)
  49669. * Wconversion-null: Warning Options. (line 2121)
  49670. * Wctor-dtor-privacy: C++ Dialect Options.
  49671. (line 564)
  49672. * Wdangling-else: Warning Options. (line 2142)
  49673. * Wdate-time: Warning Options. (line 2176)
  49674. * Wdeclaration-after-statement: Warning Options. (line 1766)
  49675. * Wdelete-incomplete: Warning Options. (line 2181)
  49676. * Wdelete-non-virtual-dtor: C++ Dialect Options.
  49677. (line 571)
  49678. * Wdeprecated: Warning Options. (line 2483)
  49679. * Wdeprecated-declarations: Warning Options. (line 2487)
  49680. * Wdisabled-optimization: Warning Options. (line 2711)
  49681. * Wdiscarded-array-qualifiers: Warning Options. (line 1608)
  49682. * Wdiscarded-qualifiers: Warning Options. (line 1602)
  49683. * Wdiv-by-zero: Warning Options. (line 1626)
  49684. * Wdouble-promotion: Warning Options. (line 271)
  49685. * Wduplicate-decl-specifier: Warning Options. (line 289)
  49686. * Wduplicated-branches: Warning Options. (line 1579)
  49687. * Wduplicated-cond: Warning Options. (line 1590)
  49688. * weak_reference_mismatches: Darwin Options. (line 196)
  49689. * Weffc++: C++ Dialect Options.
  49690. (line 706)
  49691. * Wempty-body: Warning Options. (line 2188)
  49692. * Wendif-labels: Warning Options. (line 1981)
  49693. * Wenum-compare: Warning Options. (line 2192)
  49694. * Werror: Warning Options. (line 28)
  49695. * Werror=: Warning Options. (line 31)
  49696. * Wexpansion-to-defined: Warning Options. (line 1956)
  49697. * Wextra: Warning Options. (line 201)
  49698. * Wextra <1>: Warning Options. (line 2404)
  49699. * Wextra <2>: Warning Options. (line 2506)
  49700. * Wextra-semi: Warning Options. (line 2198)
  49701. * Wfatal-errors: Warning Options. (line 48)
  49702. * Wfloat-conversion: Warning Options. (line 2224)
  49703. * Wfloat-equal: Warning Options. (line 1666)
  49704. * Wformat: Warning Options. (line 294)
  49705. * Wformat <1>: Warning Options. (line 319)
  49706. * Wformat <2>: Warning Options. (line 1401)
  49707. * Wformat <3>: Common Function Attributes.
  49708. (line 243)
  49709. * Wformat-contains-nul: Warning Options. (line 328)
  49710. * Wformat-extra-args: Warning Options. (line 332)
  49711. * Wformat-nonliteral: Warning Options. (line 437)
  49712. * Wformat-nonliteral <1>: Common Function Attributes.
  49713. (line 308)
  49714. * Wformat-overflow: Warning Options. (line 347)
  49715. * Wformat-overflow <1>: Warning Options. (line 358)
  49716. * Wformat-security: Warning Options. (line 442)
  49717. * Wformat-signedness: Warning Options. (line 454)
  49718. * Wformat-truncation: Warning Options. (line 460)
  49719. * Wformat-truncation <1>: Warning Options. (line 472)
  49720. * Wformat-y2k: Warning Options. (line 483)
  49721. * Wformat-zero-length: Warning Options. (line 427)
  49722. * Wformat=: Warning Options. (line 294)
  49723. * Wformat=1: Warning Options. (line 319)
  49724. * Wformat=2: Warning Options. (line 432)
  49725. * Wframe-address: Warning Options. (line 1596)
  49726. * Wframe-larger-than: Warning Options. (line 1824)
  49727. * Wfree-nonheap-object: Warning Options. (line 1833)
  49728. * whatsloaded: Darwin Options. (line 196)
  49729. * whyload: Darwin Options. (line 196)
  49730. * Wif-not-aligned: Warning Options. (line 655)
  49731. * Wignored-attributes: Warning Options. (line 671)
  49732. * Wignored-qualifiers: Warning Options. (line 660)
  49733. * Wimplicit: Warning Options. (line 533)
  49734. * Wimplicit-fallthrough: Warning Options. (line 537)
  49735. * Wimplicit-fallthrough=: Warning Options. (line 542)
  49736. * Wimplicit-function-declaration: Warning Options. (line 527)
  49737. * Wimplicit-int: Warning Options. (line 523)
  49738. * Wincompatible-pointer-types: Warning Options. (line 1614)
  49739. * Winherited-variadic-ctor: Warning Options. (line 2599)
  49740. * Winit-self: Warning Options. (line 508)
  49741. * Winline: Warning Options. (line 2604)
  49742. * Winline <1>: Inline. (line 60)
  49743. * Wint-conversion: Warning Options. (line 1620)
  49744. * Wint-in-bool-context: Warning Options. (line 2629)
  49745. * Wint-to-pointer-cast: Warning Options. (line 2637)
  49746. * Winvalid-memory-model: Warning Options. (line 1088)
  49747. * Winvalid-offsetof: Warning Options. (line 2617)
  49748. * Winvalid-pch: Warning Options. (line 2646)
  49749. * Wjump-misses-init: Warning Options. (line 2201)
  49750. * Wl: Link Options. (line 280)
  49751. * Wlarger-than-LEN: Warning Options. (line 1821)
  49752. * Wlarger-than=LEN: Warning Options. (line 1821)
  49753. * Wliteral-suffix: C++ Dialect Options.
  49754. (line 578)
  49755. * Wlogical-not-parentheses: Warning Options. (line 2320)
  49756. * Wlogical-op: Warning Options. (line 2312)
  49757. * Wlong-long: Warning Options. (line 2650)
  49758. * Wlto-type-mismatch: C++ Dialect Options.
  49759. (line 604)
  49760. * Wmain: Warning Options. (line 678)
  49761. * Wmaybe-uninitialized: Warning Options. (line 1105)
  49762. * Wmemset-elt-size: Warning Options. (line 2280)
  49763. * Wmemset-transposed-args: Warning Options. (line 2288)
  49764. * Wmisleading-indentation: Warning Options. (line 685)
  49765. * Wmissing-attributes: Warning Options. (line 719)
  49766. * Wmissing-braces: Warning Options. (line 745)
  49767. * Wmissing-declarations: Warning Options. (line 2394)
  49768. * Wmissing-field-initializers: Warning Options. (line 2404)
  49769. * Wmissing-format-attribute: Warning Options. (line 1401)
  49770. * Wmissing-include-dirs: Warning Options. (line 756)
  49771. * Wmissing-parameter-type: Warning Options. (line 2376)
  49772. * Wmissing-prototypes: Warning Options. (line 2384)
  49773. * Wmisspelled-isr: AVR Options. (line 285)
  49774. * Wmultichar: Warning Options. (line 2434)
  49775. * Wmultiple-inheritance: C++ Dialect Options.
  49776. (line 792)
  49777. * Wmultistatement-macros: Warning Options. (line 759)
  49778. * Wnamespaces: C++ Dialect Options.
  49779. (line 806)
  49780. * Wnarrowing: C++ Dialect Options.
  49781. (line 610)
  49782. * Wnested-externs: Warning Options. (line 2596)
  49783. * Wno-abi: C++ Dialect Options.
  49784. (line 455)
  49785. * Wno-address: Warning Options. (line 2299)
  49786. * Wno-aggregate-return: Warning Options. (line 2335)
  49787. * Wno-aggressive-loop-optimizations: Warning Options. (line 2340)
  49788. * Wno-aligned-new: Warning Options. (line 1863)
  49789. * Wno-all: Warning Options. (line 130)
  49790. * Wno-alloc-zero: Warning Options. (line 1453)
  49791. * Wno-alloca: Warning Options. (line 1476)
  49792. * Wno-array-bounds: Warning Options. (line 1539)
  49793. * Wno-assign-intercept: Objective-C and Objective-C++ Dialect Options.
  49794. (line 170)
  49795. * Wno-attributes: Warning Options. (line 2345)
  49796. * Wno-bad-function-cast: Warning Options. (line 1995)
  49797. * Wno-bool-compare: Warning Options. (line 1560)
  49798. * Wno-bool-operation: Warning Options. (line 1569)
  49799. * Wno-builtin-declaration-mismatch: Warning Options. (line 2351)
  49800. * Wno-builtin-macro-redefined: Warning Options. (line 2355)
  49801. * Wno-c90-c99-compat: Warning Options. (line 2000)
  49802. * Wno-c99-c11-compat: Warning Options. (line 2007)
  49803. * Wno-cast-align: Warning Options. (line 2050)
  49804. * Wno-cast-function-type: Warning Options. (line 2061)
  49805. * Wno-cast-qual: Warning Options. (line 2034)
  49806. * Wno-catch-value: Warning Options. (line 2088)
  49807. * Wno-char-subscripts: Warning Options. (line 243)
  49808. * Wno-clobbered: Warning Options. (line 2096)
  49809. * Wno-conditionally-supported: Warning Options. (line 2100)
  49810. * Wno-conversion: Warning Options. (line 2103)
  49811. * Wno-conversion-null: Warning Options. (line 2121)
  49812. * Wno-coverage-mismatch: Warning Options. (line 252)
  49813. * Wno-ctor-dtor-privacy: C++ Dialect Options.
  49814. (line 564)
  49815. * Wno-dangling-else: Warning Options. (line 2142)
  49816. * Wno-date-time: Warning Options. (line 2176)
  49817. * Wno-declaration-after-statement: Warning Options. (line 1766)
  49818. * Wno-delete-incomplete: Warning Options. (line 2181)
  49819. * Wno-delete-non-virtual-dtor: C++ Dialect Options.
  49820. (line 571)
  49821. * Wno-deprecated: Warning Options. (line 2483)
  49822. * Wno-deprecated-declarations: Warning Options. (line 2487)
  49823. * Wno-disabled-optimization: Warning Options. (line 2711)
  49824. * Wno-discarded-array-qualifiers: Warning Options. (line 1608)
  49825. * Wno-discarded-qualifiers: Warning Options. (line 1602)
  49826. * Wno-div-by-zero: Warning Options. (line 1626)
  49827. * Wno-double-promotion: Warning Options. (line 271)
  49828. * Wno-duplicate-decl-specifier: Warning Options. (line 289)
  49829. * Wno-duplicated-branches: Warning Options. (line 1579)
  49830. * Wno-duplicated-cond: Warning Options. (line 1590)
  49831. * Wno-effc++: C++ Dialect Options.
  49832. (line 706)
  49833. * Wno-empty-body: Warning Options. (line 2188)
  49834. * Wno-endif-labels: Warning Options. (line 1981)
  49835. * Wno-enum-compare: Warning Options. (line 2192)
  49836. * Wno-error: Warning Options. (line 28)
  49837. * Wno-error=: Warning Options. (line 31)
  49838. * Wno-extra: Warning Options. (line 201)
  49839. * Wno-extra <1>: Warning Options. (line 2404)
  49840. * Wno-extra <2>: Warning Options. (line 2506)
  49841. * Wno-extra-semi: Warning Options. (line 2198)
  49842. * Wno-fatal-errors: Warning Options. (line 48)
  49843. * Wno-float-conversion: Warning Options. (line 2224)
  49844. * Wno-float-equal: Warning Options. (line 1666)
  49845. * Wno-format: Warning Options. (line 294)
  49846. * Wno-format <1>: Warning Options. (line 1401)
  49847. * Wno-format-contains-nul: Warning Options. (line 328)
  49848. * Wno-format-extra-args: Warning Options. (line 332)
  49849. * Wno-format-nonliteral: Warning Options. (line 437)
  49850. * Wno-format-overflow: Warning Options. (line 347)
  49851. * Wno-format-overflow <1>: Warning Options. (line 358)
  49852. * Wno-format-overflow <2>: Warning Options. (line 472)
  49853. * Wno-format-security: Warning Options. (line 442)
  49854. * Wno-format-signedness: Warning Options. (line 454)
  49855. * Wno-format-truncation: Warning Options. (line 460)
  49856. * Wno-format-y2k: Warning Options. (line 483)
  49857. * Wno-format-zero-length: Warning Options. (line 427)
  49858. * Wno-frame-address: Warning Options. (line 1596)
  49859. * Wno-free-nonheap-object: Warning Options. (line 1833)
  49860. * Wno-if-not-aligned: Warning Options. (line 655)
  49861. * Wno-ignored-attributes: Warning Options. (line 671)
  49862. * Wno-ignored-qualifiers: Warning Options. (line 660)
  49863. * Wno-implicit: Warning Options. (line 533)
  49864. * Wno-implicit-fallthrough: Warning Options. (line 537)
  49865. * Wno-implicit-function-declaration: Warning Options. (line 527)
  49866. * Wno-implicit-int: Warning Options. (line 523)
  49867. * Wno-incompatible-pointer-types: Warning Options. (line 1614)
  49868. * Wno-inherited-variadic-ctor: Warning Options. (line 2599)
  49869. * Wno-init-self: Warning Options. (line 508)
  49870. * Wno-inline: Warning Options. (line 2604)
  49871. * Wno-int-conversion: Warning Options. (line 1620)
  49872. * Wno-int-in-bool-context: Warning Options. (line 2629)
  49873. * Wno-int-to-pointer-cast: Warning Options. (line 2637)
  49874. * Wno-invalid-memory-model: Warning Options. (line 1088)
  49875. * Wno-invalid-offsetof: Warning Options. (line 2617)
  49876. * Wno-invalid-pch: Warning Options. (line 2646)
  49877. * Wno-jump-misses-init: Warning Options. (line 2201)
  49878. * Wno-literal-suffix: C++ Dialect Options.
  49879. (line 578)
  49880. * Wno-logical-not-parentheses: Warning Options. (line 2320)
  49881. * Wno-logical-op: Warning Options. (line 2312)
  49882. * Wno-long-long: Warning Options. (line 2650)
  49883. * Wno-lto-type-mismatch: C++ Dialect Options.
  49884. (line 604)
  49885. * Wno-main: Warning Options. (line 678)
  49886. * Wno-maybe-uninitialized: Warning Options. (line 1105)
  49887. * Wno-memset-elt-size: Warning Options. (line 2280)
  49888. * Wno-memset-transposed-args: Warning Options. (line 2288)
  49889. * Wno-misleading-indentation: Warning Options. (line 685)
  49890. * Wno-missing-attributes: Warning Options. (line 719)
  49891. * Wno-missing-braces: Warning Options. (line 745)
  49892. * Wno-missing-declarations: Warning Options. (line 2394)
  49893. * Wno-missing-field-initializers: Warning Options. (line 2404)
  49894. * Wno-missing-format-attribute: Warning Options. (line 1401)
  49895. * Wno-missing-include-dirs: Warning Options. (line 756)
  49896. * Wno-missing-parameter-type: Warning Options. (line 2376)
  49897. * Wno-missing-prototypes: Warning Options. (line 2384)
  49898. * Wno-multichar: Warning Options. (line 2434)
  49899. * Wno-multistatement-macros: Warning Options. (line 759)
  49900. * Wno-narrowing: C++ Dialect Options.
  49901. (line 610)
  49902. * Wno-nested-externs: Warning Options. (line 2596)
  49903. * Wno-noexcept: C++ Dialect Options.
  49904. (line 626)
  49905. * Wno-noexcept-type: C++ Dialect Options.
  49906. (line 632)
  49907. * Wno-non-template-friend: C++ Dialect Options.
  49908. (line 741)
  49909. * Wno-non-virtual-dtor: C++ Dialect Options.
  49910. (line 666)
  49911. * Wno-nonnull: Warning Options. (line 487)
  49912. * Wno-nonnull-compare: Warning Options. (line 494)
  49913. * Wno-normalized: Warning Options. (line 2440)
  49914. * Wno-null-dereference: Warning Options. (line 501)
  49915. * Wno-odr: Warning Options. (line 2496)
  49916. * Wno-old-style-cast: C++ Dialect Options.
  49917. (line 750)
  49918. * Wno-old-style-declaration: Warning Options. (line 2366)
  49919. * Wno-old-style-definition: Warning Options. (line 2372)
  49920. * Wno-overflow: Warning Options. (line 2493)
  49921. * Wno-overlength-strings: Warning Options. (line 2731)
  49922. * Wno-overloaded-virtual: C++ Dialect Options.
  49923. (line 756)
  49924. * Wno-override-init: Warning Options. (line 2506)
  49925. * Wno-override-init-side-effects: Warning Options. (line 2514)
  49926. * Wno-packed: Warning Options. (line 2519)
  49927. * Wno-packed-bitfield-compat: Warning Options. (line 2536)
  49928. * Wno-packed-not-aligned: Warning Options. (line 2553)
  49929. * Wno-padded: Warning Options. (line 2566)
  49930. * Wno-parentheses: Warning Options. (line 779)
  49931. * Wno-pedantic-ms-format: Warning Options. (line 1857)
  49932. * Wno-placement-new: Warning Options. (line 1874)
  49933. * Wno-pmf-conversions: C++ Dialect Options.
  49934. (line 775)
  49935. * Wno-pmf-conversions <1>: Bound member functions.
  49936. (line 35)
  49937. * Wno-pointer-arith: Warning Options. (line 1909)
  49938. * Wno-pointer-compare: Warning Options. (line 1916)
  49939. * Wno-pointer-sign: Warning Options. (line 2720)
  49940. * Wno-pointer-to-int-cast: Warning Options. (line 2642)
  49941. * Wno-pragmas: Warning Options. (line 1157)
  49942. * Wno-protocol: Objective-C and Objective-C++ Dialect Options.
  49943. (line 174)
  49944. * Wno-redundant-decls: Warning Options. (line 2573)
  49945. * Wno-register: C++ Dialect Options.
  49946. (line 674)
  49947. * Wno-reorder: C++ Dialect Options.
  49948. (line 681)
  49949. * Wno-restrict: Warning Options. (line 2577)
  49950. * Wno-return-local-addr: Warning Options. (line 859)
  49951. * Wno-return-type: Warning Options. (line 863)
  49952. * Wno-selector: Objective-C and Objective-C++ Dialect Options.
  49953. (line 184)
  49954. * Wno-sequence-point: Warning Options. (line 806)
  49955. * Wno-shadow: Warning Options. (line 1772)
  49956. * Wno-shadow-ivar: Warning Options. (line 1780)
  49957. * Wno-shift-count-negative: Warning Options. (line 882)
  49958. * Wno-shift-count-overflow: Warning Options. (line 886)
  49959. * Wno-shift-negative-value: Warning Options. (line 890)
  49960. * Wno-shift-overflow: Warning Options. (line 895)
  49961. * Wno-sign-compare: Warning Options. (line 2212)
  49962. * Wno-sign-conversion: Warning Options. (line 2218)
  49963. * Wno-sign-promo: C++ Dialect Options.
  49964. (line 779)
  49965. * Wno-sized-deallocation: Warning Options. (line 2234)
  49966. * Wno-sizeof-array-argument: Warning Options. (line 2275)
  49967. * Wno-sizeof-pointer-div: Warning Options. (line 2245)
  49968. * Wno-sizeof-pointer-memaccess: Warning Options. (line 2253)
  49969. * Wno-stack-protector: Warning Options. (line 2726)
  49970. * Wno-strict-aliasing: Warning Options. (line 1162)
  49971. * Wno-strict-null-sentinel: C++ Dialect Options.
  49972. (line 734)
  49973. * Wno-strict-overflow: Warning Options. (line 1201)
  49974. * Wno-strict-prototypes: Warning Options. (line 2360)
  49975. * Wno-strict-selector-match: Objective-C and Objective-C++ Dialect Options.
  49976. (line 196)
  49977. * Wno-stringop-overflow: Warning Options. (line 1250)
  49978. * Wno-stringop-overflow <1>: Warning Options. (line 1289)
  49979. * Wno-stringop-truncation: Warning Options. (line 1327)
  49980. * Wno-subobject-linkage: Warning Options. (line 2129)
  49981. * Wno-suggest-attribute=: Warning Options. (line 1380)
  49982. * Wno-suggest-attribute=cold: Warning Options. (line 1422)
  49983. * Wno-suggest-attribute=const: Warning Options. (line 1387)
  49984. * Wno-suggest-attribute=format: Warning Options. (line 1401)
  49985. * Wno-suggest-attribute=malloc: Warning Options. (line 1387)
  49986. * Wno-suggest-attribute=noreturn: Warning Options. (line 1387)
  49987. * Wno-suggest-attribute=pure: Warning Options. (line 1387)
  49988. * Wno-suggest-final-methods: Warning Options. (line 1439)
  49989. * Wno-suggest-final-types: Warning Options. (line 1430)
  49990. * Wno-switch: Warning Options. (line 910)
  49991. * Wno-switch-bool: Warning Options. (line 930)
  49992. * Wno-switch-default: Warning Options. (line 918)
  49993. * Wno-switch-enum: Warning Options. (line 921)
  49994. * Wno-switch-unreachable: Warning Options. (line 941)
  49995. * Wno-sync-nand: Warning Options. (line 965)
  49996. * Wno-system-headers: Warning Options. (line 1631)
  49997. * Wno-tautological-compare: Warning Options. (line 1642)
  49998. * Wno-terminate: C++ Dialect Options.
  49999. (line 813)
  50000. * Wno-traditional: Warning Options. (line 1681)
  50001. * Wno-traditional-conversion: Warning Options. (line 1758)
  50002. * Wno-trampolines: Warning Options. (line 1656)
  50003. * Wno-type-limits: Warning Options. (line 1929)
  50004. * Wno-undeclared-selector: Objective-C and Objective-C++ Dialect Options.
  50005. (line 204)
  50006. * Wno-undef: Warning Options. (line 1952)
  50007. * Wno-uninitialized: Warning Options. (line 1066)
  50008. * Wno-unknown-pragmas: Warning Options. (line 1150)
  50009. * Wno-unused: Warning Options. (line 1059)
  50010. * Wno-unused-but-set-parameter: Warning Options. (line 970)
  50011. * Wno-unused-but-set-variable: Warning Options. (line 979)
  50012. * Wno-unused-const-variable: Warning Options. (line 1026)
  50013. * Wno-unused-function: Warning Options. (line 989)
  50014. * Wno-unused-label: Warning Options. (line 994)
  50015. * Wno-unused-parameter: Warning Options. (line 1005)
  50016. * Wno-unused-result: Warning Options. (line 1012)
  50017. * Wno-unused-value: Warning Options. (line 1049)
  50018. * Wno-unused-variable: Warning Options. (line 1017)
  50019. * Wno-useless-cast: Warning Options. (line 2185)
  50020. * Wno-varargs: Warning Options. (line 2661)
  50021. * Wno-variadic-macros: Warning Options. (line 2655)
  50022. * Wno-vector-operation-performance: Warning Options. (line 2666)
  50023. * Wno-virtual-move-assign: Warning Options. (line 2676)
  50024. * Wno-vla: Warning Options. (line 2685)
  50025. * Wno-volatile-register-var: Warning Options. (line 2705)
  50026. * Wno-write-strings: Warning Options. (line 2074)
  50027. * Wno-zero-as-null-pointer-constant: Warning Options. (line 2125)
  50028. * Wnoexcept: C++ Dialect Options.
  50029. (line 626)
  50030. * Wnoexcept-type: C++ Dialect Options.
  50031. (line 632)
  50032. * Wnon-template-friend: C++ Dialect Options.
  50033. (line 741)
  50034. * Wnon-virtual-dtor: C++ Dialect Options.
  50035. (line 666)
  50036. * Wnonnull: Warning Options. (line 487)
  50037. * Wnonnull-compare: Warning Options. (line 494)
  50038. * Wnormalized: Warning Options. (line 2440)
  50039. * Wnormalized=: Warning Options. (line 2440)
  50040. * Wnull-dereference: Warning Options. (line 501)
  50041. * Wodr: Warning Options. (line 2496)
  50042. * Wold-style-cast: C++ Dialect Options.
  50043. (line 750)
  50044. * Wold-style-declaration: Warning Options. (line 2366)
  50045. * Wold-style-definition: Warning Options. (line 2372)
  50046. * Wopenm-simd: Warning Options. (line 2501)
  50047. * Woverflow: Warning Options. (line 2493)
  50048. * Woverlength-strings: Warning Options. (line 2731)
  50049. * Woverloaded-virtual: C++ Dialect Options.
  50050. (line 756)
  50051. * Woverride-init: Warning Options. (line 2506)
  50052. * Woverride-init-side-effects: Warning Options. (line 2514)
  50053. * Wp: Preprocessor Options.
  50054. (line 456)
  50055. * Wpacked: Warning Options. (line 2519)
  50056. * Wpacked-bitfield-compat: Warning Options. (line 2536)
  50057. * Wpacked-not-aligned: Warning Options. (line 2553)
  50058. * Wpadded: Warning Options. (line 2566)
  50059. * Wparentheses: Warning Options. (line 779)
  50060. * Wpedantic: Warning Options. (line 80)
  50061. * Wpedantic-ms-format: Warning Options. (line 1857)
  50062. * Wplacement-new: Warning Options. (line 1874)
  50063. * Wpmf-conversions: C++ Dialect Options.
  50064. (line 775)
  50065. * Wpointer-arith: Warning Options. (line 1909)
  50066. * Wpointer-arith <1>: Pointer Arith. (line 13)
  50067. * Wpointer-compare: Warning Options. (line 1916)
  50068. * Wpointer-sign: Warning Options. (line 2720)
  50069. * Wpointer-to-int-cast: Warning Options. (line 2642)
  50070. * Wpragmas: Warning Options. (line 1157)
  50071. * Wprotocol: Objective-C and Objective-C++ Dialect Options.
  50072. (line 174)
  50073. * wrapper: Overall Options. (line 349)
  50074. * Wredundant-decls: Warning Options. (line 2573)
  50075. * Wregister: C++ Dialect Options.
  50076. (line 674)
  50077. * Wreorder: C++ Dialect Options.
  50078. (line 681)
  50079. * Wrestrict: Warning Options. (line 2577)
  50080. * Wreturn-local-addr: Warning Options. (line 859)
  50081. * Wreturn-type: Warning Options. (line 863)
  50082. * Wselector: Objective-C and Objective-C++ Dialect Options.
  50083. (line 184)
  50084. * Wsequence-point: Warning Options. (line 806)
  50085. * Wshadow: Warning Options. (line 1772)
  50086. * Wshadow-ivar: Warning Options. (line 1780)
  50087. * Wshadow=compatible-local: Warning Options. (line 1791)
  50088. * Wshadow=local: Warning Options. (line 1784)
  50089. * Wshadow=local <1>: Warning Options. (line 1787)
  50090. * Wshift-count-negative: Warning Options. (line 882)
  50091. * Wshift-count-overflow: Warning Options. (line 886)
  50092. * Wshift-negative-value: Warning Options. (line 890)
  50093. * Wshift-overflow: Warning Options. (line 895)
  50094. * Wsign-compare: Warning Options. (line 2212)
  50095. * Wsign-conversion: Warning Options. (line 2218)
  50096. * Wsign-promo: C++ Dialect Options.
  50097. (line 779)
  50098. * Wsized-deallocation: Warning Options. (line 2234)
  50099. * Wsizeof-array-argument: Warning Options. (line 2275)
  50100. * Wsizeof-pointer-div: Warning Options. (line 2245)
  50101. * Wsizeof-pointer-memaccess: Warning Options. (line 2253)
  50102. * Wstack-protector: Warning Options. (line 2726)
  50103. * Wstack-usage: Warning Options. (line 1837)
  50104. * Wstrict-aliasing: Warning Options. (line 1162)
  50105. * Wstrict-aliasing=n: Warning Options. (line 1169)
  50106. * Wstrict-null-sentinel: C++ Dialect Options.
  50107. (line 734)
  50108. * Wstrict-overflow: Warning Options. (line 1201)
  50109. * Wstrict-prototypes: Warning Options. (line 2360)
  50110. * Wstrict-selector-match: Objective-C and Objective-C++ Dialect Options.
  50111. (line 196)
  50112. * Wstringop-overflow: Warning Options. (line 1250)
  50113. * Wstringop-overflow <1>: Warning Options. (line 1289)
  50114. * Wstringop-truncation: Warning Options. (line 1327)
  50115. * Wsubobject-linkage: Warning Options. (line 2129)
  50116. * Wsuggest-attribute=: Warning Options. (line 1380)
  50117. * Wsuggest-attribute=cold: Warning Options. (line 1422)
  50118. * Wsuggest-attribute=const: Warning Options. (line 1387)
  50119. * Wsuggest-attribute=format: Warning Options. (line 1401)
  50120. * Wsuggest-attribute=malloc: Warning Options. (line 1387)
  50121. * Wsuggest-attribute=noreturn: Warning Options. (line 1387)
  50122. * Wsuggest-attribute=pure: Warning Options. (line 1387)
  50123. * Wsuggest-final-methods: Warning Options. (line 1439)
  50124. * Wsuggest-final-types: Warning Options. (line 1430)
  50125. * Wswitch: Warning Options. (line 910)
  50126. * Wswitch-bool: Warning Options. (line 930)
  50127. * Wswitch-default: Warning Options. (line 918)
  50128. * Wswitch-enum: Warning Options. (line 921)
  50129. * Wswitch-unreachable: Warning Options. (line 941)
  50130. * Wsync-nand: Warning Options. (line 965)
  50131. * Wsystem-headers: Warning Options. (line 1631)
  50132. * Wtautological-compare: Warning Options. (line 1642)
  50133. * Wtemplates: C++ Dialect Options.
  50134. (line 785)
  50135. * Wterminate: C++ Dialect Options.
  50136. (line 813)
  50137. * Wtraditional: Warning Options. (line 1681)
  50138. * Wtraditional-conversion: Warning Options. (line 1758)
  50139. * Wtrampolines: Warning Options. (line 1656)
  50140. * Wtrigraphs: Warning Options. (line 1942)
  50141. * Wtype-limits: Warning Options. (line 1929)
  50142. * Wundeclared-selector: Objective-C and Objective-C++ Dialect Options.
  50143. (line 204)
  50144. * Wundef: Warning Options. (line 1952)
  50145. * Wuninitialized: Warning Options. (line 1066)
  50146. * Wunknown-pragmas: Warning Options. (line 1150)
  50147. * Wunsuffixed-float-constants: Warning Options. (line 2746)
  50148. * Wunused: Warning Options. (line 1059)
  50149. * Wunused-but-set-parameter: Warning Options. (line 970)
  50150. * Wunused-but-set-variable: Warning Options. (line 979)
  50151. * Wunused-const-variable: Warning Options. (line 1026)
  50152. * Wunused-function: Warning Options. (line 989)
  50153. * Wunused-label: Warning Options. (line 994)
  50154. * Wunused-local-typedefs: Warning Options. (line 1001)
  50155. * Wunused-macros: Warning Options. (line 1962)
  50156. * Wunused-parameter: Warning Options. (line 1005)
  50157. * Wunused-result: Warning Options. (line 1012)
  50158. * Wunused-value: Warning Options. (line 1049)
  50159. * Wunused-variable: Warning Options. (line 1017)
  50160. * Wuseless-cast: Warning Options. (line 2185)
  50161. * Wvarargs: Warning Options. (line 2661)
  50162. * Wvariadic-macros: Warning Options. (line 2655)
  50163. * Wvector-operation-performance: Warning Options. (line 2666)
  50164. * Wvirtual-inheritance: C++ Dialect Options.
  50165. (line 799)
  50166. * Wvirtual-move-assign: Warning Options. (line 2676)
  50167. * Wvla: Warning Options. (line 2685)
  50168. * Wvolatile-register-var: Warning Options. (line 2705)
  50169. * Wwrite-strings: Warning Options. (line 2074)
  50170. * Wzero-as-null-pointer-constant: Warning Options. (line 2125)
  50171. * x: Overall Options. (line 129)
  50172. * Xassembler: Assembler Options. (line 13)
  50173. * Xbind-lazy: VxWorks Options. (line 26)
  50174. * Xbind-now: VxWorks Options. (line 30)
  50175. * Xlinker: Link Options. (line 262)
  50176. * Xpreprocessor: Preprocessor Options.
  50177. (line 467)
  50178. * Ym: System V Options. (line 26)
  50179. * YP: System V Options. (line 22)
  50180. * z: Link Options. (line 293)
  50181. 
  50182. File: gcc.info, Node: Keyword Index, Prev: Option Index, Up: Top
  50183. Keyword Index
  50184. *************
  50185. �[index�]
  50186. * Menu:
  50187. * #pragma: Pragmas. (line 6)
  50188. * #pragma implementation: C++ Interface. (line 36)
  50189. * #pragma implementation, implied: C++ Interface. (line 43)
  50190. * #pragma interface: C++ Interface. (line 17)
  50191. * $: Dollar Signs. (line 6)
  50192. * % in constraint: Modifiers. (line 52)
  50193. * %include: Spec Files. (line 26)
  50194. * %include_noerr: Spec Files. (line 30)
  50195. * %rename: Spec Files. (line 34)
  50196. * & in constraint: Modifiers. (line 25)
  50197. * ': Incompatibilities. (line 116)
  50198. * *__builtin_alloca: Other Builtins. (line 129)
  50199. * *__builtin_alloca_with_align: Other Builtins. (line 166)
  50200. * *__builtin_alloca_with_align_and_max: Other Builtins. (line 211)
  50201. * + in constraint: Modifiers. (line 12)
  50202. * -lgcc, use with -nodefaultlibs: Link Options. (line 91)
  50203. * -lgcc, use with -nostdlib: Link Options. (line 91)
  50204. * -march feature modifiers: AArch64 Options. (line 238)
  50205. * -mcpu feature modifiers: AArch64 Options. (line 238)
  50206. * -nodefaultlibs and unresolved references: Link Options. (line 91)
  50207. * -nostdlib and unresolved references: Link Options. (line 91)
  50208. * .sdata/.sdata2 references (PowerPC): PowerPC SPE Options.
  50209. (line 524)
  50210. * .sdata/.sdata2 references (PowerPC) <1>: RS/6000 and PowerPC Options.
  50211. (line 774)
  50212. * //: C++ Comments. (line 6)
  50213. * 0 in constraint: Simple Constraints. (line 125)
  50214. * < in constraint: Simple Constraints. (line 47)
  50215. * = in constraint: Modifiers. (line 8)
  50216. * > in constraint: Simple Constraints. (line 59)
  50217. * ?: extensions: Conditionals. (line 6)
  50218. * ?: side effect: Conditionals. (line 20)
  50219. * _ in variables in macros: Typeof. (line 46)
  50220. * _Accum data type: Fixed-Point. (line 6)
  50221. * _Complex keyword: Complex. (line 6)
  50222. * _Decimal128 data type: Decimal Float. (line 6)
  50223. * _Decimal32 data type: Decimal Float. (line 6)
  50224. * _Decimal64 data type: Decimal Float. (line 6)
  50225. * _Exit: Other Builtins. (line 6)
  50226. * _exit: Other Builtins. (line 6)
  50227. * _FloatN data types: Floating Types. (line 6)
  50228. * _FloatNx data types: Floating Types. (line 6)
  50229. * _Fract data type: Fixed-Point. (line 6)
  50230. * _get_ssp: x86 control-flow protection intrinsics.
  50231. (line 6)
  50232. * _HTM_FIRST_USER_ABORT_CODE: S/390 System z Built-in Functions.
  50233. (line 44)
  50234. * _inc_ssp: x86 control-flow protection intrinsics.
  50235. (line 12)
  50236. * _Sat data type: Fixed-Point. (line 6)
  50237. * _xabort: x86 transactional memory intrinsics.
  50238. (line 57)
  50239. * _xbegin: x86 transactional memory intrinsics.
  50240. (line 19)
  50241. * _xend: x86 transactional memory intrinsics.
  50242. (line 48)
  50243. * _xtest: x86 transactional memory intrinsics.
  50244. (line 53)
  50245. * __atomic_add_fetch: __atomic Builtins. (line 179)
  50246. * __atomic_always_lock_free: __atomic Builtins. (line 265)
  50247. * __atomic_and_fetch: __atomic Builtins. (line 183)
  50248. * __atomic_clear: __atomic Builtins. (line 239)
  50249. * __atomic_compare_exchange: __atomic Builtins. (line 171)
  50250. * __atomic_compare_exchange_n: __atomic Builtins. (line 147)
  50251. * __atomic_exchange: __atomic Builtins. (line 141)
  50252. * __atomic_exchange_n: __atomic Builtins. (line 131)
  50253. * __atomic_fetch_add: __atomic Builtins. (line 203)
  50254. * __atomic_fetch_and: __atomic Builtins. (line 207)
  50255. * __atomic_fetch_nand: __atomic Builtins. (line 213)
  50256. * __atomic_fetch_or: __atomic Builtins. (line 211)
  50257. * __atomic_fetch_sub: __atomic Builtins. (line 205)
  50258. * __atomic_fetch_xor: __atomic Builtins. (line 209)
  50259. * __atomic_is_lock_free: __atomic Builtins. (line 279)
  50260. * __atomic_load: __atomic Builtins. (line 113)
  50261. * __atomic_load_n: __atomic Builtins. (line 106)
  50262. * __atomic_nand_fetch: __atomic Builtins. (line 189)
  50263. * __atomic_or_fetch: __atomic Builtins. (line 187)
  50264. * __atomic_signal_fence: __atomic Builtins. (line 258)
  50265. * __atomic_store: __atomic Builtins. (line 126)
  50266. * __atomic_store_n: __atomic Builtins. (line 118)
  50267. * __atomic_sub_fetch: __atomic Builtins. (line 181)
  50268. * __atomic_test_and_set: __atomic Builtins. (line 227)
  50269. * __atomic_thread_fence: __atomic Builtins. (line 251)
  50270. * __atomic_xor_fetch: __atomic Builtins. (line 185)
  50271. * __builtin_addf128_round_to_odd: PowerPC Built-in Functions.
  50272. (line 253)
  50273. * __builtin_add_overflow: Integer Overflow Builtins.
  50274. (line 9)
  50275. * __builtin_add_overflow_p: Integer Overflow Builtins.
  50276. (line 86)
  50277. * __builtin_alloca: Other Builtins. (line 6)
  50278. * __builtin_alloca_with_align: Other Builtins. (line 6)
  50279. * __builtin_alloca_with_align_and_max: Other Builtins. (line 6)
  50280. * __builtin_apply: Constructing Calls. (line 29)
  50281. * __builtin_apply_args: Constructing Calls. (line 19)
  50282. * __builtin_arc_aligned: ARC Built-in Functions.
  50283. (line 18)
  50284. * __builtin_arc_brk: ARC Built-in Functions.
  50285. (line 28)
  50286. * __builtin_arc_core_read: ARC Built-in Functions.
  50287. (line 32)
  50288. * __builtin_arc_core_write: ARC Built-in Functions.
  50289. (line 39)
  50290. * __builtin_arc_divaw: ARC Built-in Functions.
  50291. (line 46)
  50292. * __builtin_arc_flag: ARC Built-in Functions.
  50293. (line 53)
  50294. * __builtin_arc_lr: ARC Built-in Functions.
  50295. (line 57)
  50296. * __builtin_arc_mul64: ARC Built-in Functions.
  50297. (line 64)
  50298. * __builtin_arc_mulu64: ARC Built-in Functions.
  50299. (line 68)
  50300. * __builtin_arc_nop: ARC Built-in Functions.
  50301. (line 73)
  50302. * __builtin_arc_norm: ARC Built-in Functions.
  50303. (line 77)
  50304. * __builtin_arc_normw: ARC Built-in Functions.
  50305. (line 84)
  50306. * __builtin_arc_rtie: ARC Built-in Functions.
  50307. (line 91)
  50308. * __builtin_arc_sleep: ARC Built-in Functions.
  50309. (line 95)
  50310. * __builtin_arc_sr: ARC Built-in Functions.
  50311. (line 99)
  50312. * __builtin_arc_swap: ARC Built-in Functions.
  50313. (line 106)
  50314. * __builtin_arc_swi: ARC Built-in Functions.
  50315. (line 112)
  50316. * __builtin_arc_sync: ARC Built-in Functions.
  50317. (line 116)
  50318. * __builtin_arc_trap_s: ARC Built-in Functions.
  50319. (line 120)
  50320. * __builtin_arc_unimp_s: ARC Built-in Functions.
  50321. (line 124)
  50322. * __builtin_assume_aligned: Other Builtins. (line 504)
  50323. * __builtin_bswap16: Other Builtins. (line 820)
  50324. * __builtin_bswap32: Other Builtins. (line 824)
  50325. * __builtin_bswap64: Other Builtins. (line 828)
  50326. * __builtin_call_with_static_chain: Other Builtins. (line 6)
  50327. * __builtin_call_with_static_chain <1>: Other Builtins. (line 265)
  50328. * __builtin_choose_expr: Other Builtins. (line 276)
  50329. * __builtin_clrsb: Other Builtins. (line 750)
  50330. * __builtin_clrsbl: Other Builtins. (line 772)
  50331. * __builtin_clrsbll: Other Builtins. (line 795)
  50332. * __builtin_clz: Other Builtins. (line 742)
  50333. * __builtin_clzl: Other Builtins. (line 764)
  50334. * __builtin_clzll: Other Builtins. (line 787)
  50335. * __builtin_complex: Other Builtins. (line 370)
  50336. * __builtin_constant_p: Other Builtins. (line 379)
  50337. * __builtin_cpu_init: PowerPC Built-in Functions.
  50338. (line 9)
  50339. * __builtin_cpu_init <1>: x86 Built-in Functions.
  50340. (line 68)
  50341. * __builtin_cpu_is: PowerPC Built-in Functions.
  50342. (line 13)
  50343. * __builtin_cpu_is <1>: x86 Built-in Functions.
  50344. (line 96)
  50345. * __builtin_cpu_supports: PowerPC Built-in Functions.
  50346. (line 71)
  50347. * __builtin_cpu_supports <1>: x86 Built-in Functions.
  50348. (line 174)
  50349. * __builtin_ctz: Other Builtins. (line 746)
  50350. * __builtin_ctzl: Other Builtins. (line 768)
  50351. * __builtin_ctzll: Other Builtins. (line 791)
  50352. * __builtin_divf128_round_to_odd: PowerPC Built-in Functions.
  50353. (line 265)
  50354. * __builtin_expect: Other Builtins. (line 424)
  50355. * __builtin_extend_pointer: Other Builtins. (line 6)
  50356. * __builtin_extend_pointer <1>: Other Builtins. (line 832)
  50357. * __builtin_extract_return_addr: Return Address. (line 38)
  50358. * __builtin_ffs: Other Builtins. (line 738)
  50359. * __builtin_ffsl: Other Builtins. (line 761)
  50360. * __builtin_ffsll: Other Builtins. (line 783)
  50361. * __builtin_FILE: Other Builtins. (line 537)
  50362. * __builtin_fmaf128: PowerPC Built-in Functions.
  50363. (line 249)
  50364. * __builtin_fmaf128_round_to_odd: PowerPC Built-in Functions.
  50365. (line 273)
  50366. * __builtin_fpclassify: Other Builtins. (line 6)
  50367. * __builtin_fpclassify <1>: Other Builtins. (line 634)
  50368. * __builtin_frame_address: Return Address. (line 50)
  50369. * __builtin_frob_return_address: Return Address. (line 47)
  50370. * __builtin_FUNCTION: Other Builtins. (line 529)
  50371. * __builtin_huge_val: Other Builtins. (line 614)
  50372. * __builtin_huge_valf: Other Builtins. (line 619)
  50373. * __builtin_huge_valfN: Other Builtins. (line 626)
  50374. * __builtin_huge_valfNx: Other Builtins. (line 630)
  50375. * __builtin_huge_vall: Other Builtins. (line 622)
  50376. * __builtin_huge_valq: x86 Built-in Functions.
  50377. (line 50)
  50378. * __builtin_inf: Other Builtins. (line 645)
  50379. * __builtin_infd128: Other Builtins. (line 655)
  50380. * __builtin_infd32: Other Builtins. (line 649)
  50381. * __builtin_infd64: Other Builtins. (line 652)
  50382. * __builtin_inff: Other Builtins. (line 659)
  50383. * __builtin_inffN: Other Builtins. (line 668)
  50384. * __builtin_inffNx: Other Builtins. (line 671)
  50385. * __builtin_infl: Other Builtins. (line 664)
  50386. * __builtin_infq: x86 Built-in Functions.
  50387. (line 47)
  50388. * __builtin_isfinite: Other Builtins. (line 6)
  50389. * __builtin_isgreater: Other Builtins. (line 6)
  50390. * __builtin_isgreaterequal: Other Builtins. (line 6)
  50391. * __builtin_isinf_sign: Other Builtins. (line 6)
  50392. * __builtin_isinf_sign <1>: Other Builtins. (line 674)
  50393. * __builtin_isless: Other Builtins. (line 6)
  50394. * __builtin_islessequal: Other Builtins. (line 6)
  50395. * __builtin_islessgreater: Other Builtins. (line 6)
  50396. * __builtin_isnormal: Other Builtins. (line 6)
  50397. * __builtin_isunordered: Other Builtins. (line 6)
  50398. * __builtin_LINE: Other Builtins. (line 522)
  50399. * __builtin_mulf128_round_to_odd: PowerPC Built-in Functions.
  50400. (line 261)
  50401. * __builtin_mul_overflow: Integer Overflow Builtins.
  50402. (line 63)
  50403. * __builtin_mul_overflow_p: Integer Overflow Builtins.
  50404. (line 90)
  50405. * __builtin_nan: Other Builtins. (line 682)
  50406. * __builtin_nand128: Other Builtins. (line 704)
  50407. * __builtin_nand32: Other Builtins. (line 698)
  50408. * __builtin_nand64: Other Builtins. (line 701)
  50409. * __builtin_nanf: Other Builtins. (line 708)
  50410. * __builtin_nanfN: Other Builtins. (line 715)
  50411. * __builtin_nanfNx: Other Builtins. (line 718)
  50412. * __builtin_nanl: Other Builtins. (line 711)
  50413. * __builtin_nanq: x86 Built-in Functions.
  50414. (line 54)
  50415. * __builtin_nans: Other Builtins. (line 721)
  50416. * __builtin_nansf: Other Builtins. (line 725)
  50417. * __builtin_nansfN: Other Builtins. (line 732)
  50418. * __builtin_nansfNx: Other Builtins. (line 735)
  50419. * __builtin_nansl: Other Builtins. (line 728)
  50420. * __builtin_nansq: x86 Built-in Functions.
  50421. (line 57)
  50422. * __builtin_nds32_isb: NDS32 Built-in Functions.
  50423. (line 12)
  50424. * __builtin_nds32_isync: NDS32 Built-in Functions.
  50425. (line 8)
  50426. * __builtin_nds32_mfsr: NDS32 Built-in Functions.
  50427. (line 15)
  50428. * __builtin_nds32_mfusr: NDS32 Built-in Functions.
  50429. (line 18)
  50430. * __builtin_nds32_mtsr: NDS32 Built-in Functions.
  50431. (line 21)
  50432. * __builtin_nds32_mtusr: NDS32 Built-in Functions.
  50433. (line 24)
  50434. * __builtin_nds32_setgie_dis: NDS32 Built-in Functions.
  50435. (line 30)
  50436. * __builtin_nds32_setgie_en: NDS32 Built-in Functions.
  50437. (line 27)
  50438. * __builtin_non_tx_store: S/390 System z Built-in Functions.
  50439. (line 98)
  50440. * __builtin_object_size: Object Size Checking.
  50441. (line 6)
  50442. * __builtin_object_size <1>: Object Size Checking.
  50443. (line 16)
  50444. * __builtin_offsetof: Offsetof. (line 6)
  50445. * __builtin_parity: Other Builtins. (line 758)
  50446. * __builtin_parityl: Other Builtins. (line 779)
  50447. * __builtin_parityll: Other Builtins. (line 803)
  50448. * __builtin_popcount: Other Builtins. (line 755)
  50449. * __builtin_popcountl: Other Builtins. (line 775)
  50450. * __builtin_popcountll: Other Builtins. (line 799)
  50451. * __builtin_powi: Other Builtins. (line 6)
  50452. * __builtin_powi <1>: Other Builtins. (line 807)
  50453. * __builtin_powif: Other Builtins. (line 6)
  50454. * __builtin_powif <1>: Other Builtins. (line 812)
  50455. * __builtin_powil: Other Builtins. (line 6)
  50456. * __builtin_powil <1>: Other Builtins. (line 816)
  50457. * __builtin_prefetch: Other Builtins. (line 575)
  50458. * __builtin_return: Constructing Calls. (line 47)
  50459. * __builtin_return_address: Return Address. (line 9)
  50460. * __builtin_rx_brk: RX Built-in Functions.
  50461. (line 10)
  50462. * __builtin_rx_clrpsw: RX Built-in Functions.
  50463. (line 13)
  50464. * __builtin_rx_int: RX Built-in Functions.
  50465. (line 17)
  50466. * __builtin_rx_machi: RX Built-in Functions.
  50467. (line 21)
  50468. * __builtin_rx_maclo: RX Built-in Functions.
  50469. (line 26)
  50470. * __builtin_rx_mulhi: RX Built-in Functions.
  50471. (line 31)
  50472. * __builtin_rx_mullo: RX Built-in Functions.
  50473. (line 36)
  50474. * __builtin_rx_mvfachi: RX Built-in Functions.
  50475. (line 41)
  50476. * __builtin_rx_mvfacmi: RX Built-in Functions.
  50477. (line 45)
  50478. * __builtin_rx_mvfc: RX Built-in Functions.
  50479. (line 49)
  50480. * __builtin_rx_mvtachi: RX Built-in Functions.
  50481. (line 53)
  50482. * __builtin_rx_mvtaclo: RX Built-in Functions.
  50483. (line 57)
  50484. * __builtin_rx_mvtc: RX Built-in Functions.
  50485. (line 61)
  50486. * __builtin_rx_mvtipl: RX Built-in Functions.
  50487. (line 65)
  50488. * __builtin_rx_racw: RX Built-in Functions.
  50489. (line 69)
  50490. * __builtin_rx_revw: RX Built-in Functions.
  50491. (line 73)
  50492. * __builtin_rx_rmpa: RX Built-in Functions.
  50493. (line 78)
  50494. * __builtin_rx_round: RX Built-in Functions.
  50495. (line 82)
  50496. * __builtin_rx_sat: RX Built-in Functions.
  50497. (line 87)
  50498. * __builtin_rx_setpsw: RX Built-in Functions.
  50499. (line 91)
  50500. * __builtin_rx_wait: RX Built-in Functions.
  50501. (line 95)
  50502. * __builtin_saddll_overflow: Integer Overflow Builtins.
  50503. (line 15)
  50504. * __builtin_saddl_overflow: Integer Overflow Builtins.
  50505. (line 13)
  50506. * __builtin_sadd_overflow: Integer Overflow Builtins.
  50507. (line 11)
  50508. * __builtin_set_thread_pointer: SH Built-in Functions.
  50509. (line 9)
  50510. * __builtin_shuffle: Vector Extensions. (line 126)
  50511. * __builtin_sh_get_fpscr: SH Built-in Functions.
  50512. (line 35)
  50513. * __builtin_sh_set_fpscr: SH Built-in Functions.
  50514. (line 38)
  50515. * __builtin_smulll_overflow: Integer Overflow Builtins.
  50516. (line 69)
  50517. * __builtin_smull_overflow: Integer Overflow Builtins.
  50518. (line 67)
  50519. * __builtin_smul_overflow: Integer Overflow Builtins.
  50520. (line 65)
  50521. * __builtin_sqrtf128: PowerPC Built-in Functions.
  50522. (line 245)
  50523. * __builtin_sqrtf128_round_to_odd: PowerPC Built-in Functions.
  50524. (line 269)
  50525. * __builtin_ssubll_overflow: Integer Overflow Builtins.
  50526. (line 49)
  50527. * __builtin_ssubl_overflow: Integer Overflow Builtins.
  50528. (line 47)
  50529. * __builtin_ssub_overflow: Integer Overflow Builtins.
  50530. (line 45)
  50531. * __builtin_subf128_round_to_odd: PowerPC Built-in Functions.
  50532. (line 257)
  50533. * __builtin_sub_overflow: Integer Overflow Builtins.
  50534. (line 43)
  50535. * __builtin_sub_overflow_p: Integer Overflow Builtins.
  50536. (line 88)
  50537. * __builtin_tabort: S/390 System z Built-in Functions.
  50538. (line 82)
  50539. * __builtin_tbegin: S/390 System z Built-in Functions.
  50540. (line 6)
  50541. * __builtin_tbeginc: S/390 System z Built-in Functions.
  50542. (line 73)
  50543. * __builtin_tbegin_nofloat: S/390 System z Built-in Functions.
  50544. (line 54)
  50545. * __builtin_tbegin_retry: S/390 System z Built-in Functions.
  50546. (line 60)
  50547. * __builtin_tbegin_retry_nofloat: S/390 System z Built-in Functions.
  50548. (line 67)
  50549. * __builtin_tend: S/390 System z Built-in Functions.
  50550. (line 77)
  50551. * __builtin_tgmath: Other Builtins. (line 316)
  50552. * __builtin_thread_pointer: SH Built-in Functions.
  50553. (line 18)
  50554. * __builtin_trap: Other Builtins. (line 448)
  50555. * __builtin_truncf128_round_to_odd: PowerPC Built-in Functions.
  50556. (line 277)
  50557. * __builtin_tx_assist: S/390 System z Built-in Functions.
  50558. (line 87)
  50559. * __builtin_tx_nesting_depth: S/390 System z Built-in Functions.
  50560. (line 93)
  50561. * __builtin_types_compatible_p: Other Builtins. (line 220)
  50562. * __builtin_uaddll_overflow: Integer Overflow Builtins.
  50563. (line 21)
  50564. * __builtin_uaddl_overflow: Integer Overflow Builtins.
  50565. (line 19)
  50566. * __builtin_uadd_overflow: Integer Overflow Builtins.
  50567. (line 17)
  50568. * __builtin_umulll_overflow: Integer Overflow Builtins.
  50569. (line 75)
  50570. * __builtin_umull_overflow: Integer Overflow Builtins.
  50571. (line 73)
  50572. * __builtin_umul_overflow: Integer Overflow Builtins.
  50573. (line 71)
  50574. * __builtin_unreachable: Other Builtins. (line 455)
  50575. * __builtin_usubll_overflow: Integer Overflow Builtins.
  50576. (line 55)
  50577. * __builtin_usubl_overflow: Integer Overflow Builtins.
  50578. (line 53)
  50579. * __builtin_usub_overflow: Integer Overflow Builtins.
  50580. (line 51)
  50581. * __builtin_va_arg_pack: Constructing Calls. (line 52)
  50582. * __builtin_va_arg_pack_len: Constructing Calls. (line 75)
  50583. * __builtin___bnd_chk_ptr_bounds: Pointer Bounds Checker builtins.
  50584. (line 6)
  50585. * __builtin___bnd_chk_ptr_bounds <1>: Pointer Bounds Checker builtins.
  50586. (line 110)
  50587. * __builtin___bnd_chk_ptr_lbounds: Pointer Bounds Checker builtins.
  50588. (line 6)
  50589. * __builtin___bnd_chk_ptr_lbounds <1>: Pointer Bounds Checker builtins.
  50590. (line 85)
  50591. * __builtin___bnd_chk_ptr_ubounds: Pointer Bounds Checker builtins.
  50592. (line 6)
  50593. * __builtin___bnd_chk_ptr_ubounds <1>: Pointer Bounds Checker builtins.
  50594. (line 103)
  50595. * __builtin___bnd_copy_ptr_bounds: Pointer Bounds Checker builtins.
  50596. (line 6)
  50597. * __builtin___bnd_copy_ptr_bounds <1>: Pointer Bounds Checker builtins.
  50598. (line 46)
  50599. * __builtin___bnd_get_ptr_lbound: Pointer Bounds Checker builtins.
  50600. (line 6)
  50601. * __builtin___bnd_get_ptr_lbound <1>: Pointer Bounds Checker builtins.
  50602. (line 128)
  50603. * __builtin___bnd_get_ptr_ubound: Pointer Bounds Checker builtins.
  50604. (line 6)
  50605. * __builtin___bnd_get_ptr_ubound <1>: Pointer Bounds Checker builtins.
  50606. (line 140)
  50607. * __builtin___bnd_init_ptr_bounds: Pointer Bounds Checker builtins.
  50608. (line 6)
  50609. * __builtin___bnd_init_ptr_bounds <1>: Pointer Bounds Checker builtins.
  50610. (line 59)
  50611. * __builtin___bnd_narrow_ptr_bounds: Pointer Bounds Checker builtins.
  50612. (line 6)
  50613. * __builtin___bnd_narrow_ptr_bounds <1>: Pointer Bounds Checker builtins.
  50614. (line 27)
  50615. * __builtin___bnd_null_ptr_bounds: Pointer Bounds Checker builtins.
  50616. (line 6)
  50617. * __builtin___bnd_null_ptr_bounds <1>: Pointer Bounds Checker builtins.
  50618. (line 67)
  50619. * __builtin___bnd_set_ptr_bounds: Pointer Bounds Checker builtins.
  50620. (line 6)
  50621. * __builtin___bnd_set_ptr_bounds <1>: Pointer Bounds Checker builtins.
  50622. (line 12)
  50623. * __builtin___bnd_store_ptr_bounds: Pointer Bounds Checker builtins.
  50624. (line 6)
  50625. * __builtin___bnd_store_ptr_bounds <1>: Pointer Bounds Checker builtins.
  50626. (line 75)
  50627. * __builtin___clear_cache: Other Builtins. (line 562)
  50628. * __builtin___fprintf_chk: Object Size Checking.
  50629. (line 6)
  50630. * __builtin___memcpy_chk: Object Size Checking.
  50631. (line 6)
  50632. * __builtin___memmove_chk: Object Size Checking.
  50633. (line 6)
  50634. * __builtin___mempcpy_chk: Object Size Checking.
  50635. (line 6)
  50636. * __builtin___memset_chk: Object Size Checking.
  50637. (line 6)
  50638. * __builtin___printf_chk: Object Size Checking.
  50639. (line 6)
  50640. * __builtin___snprintf_chk: Object Size Checking.
  50641. (line 6)
  50642. * __builtin___sprintf_chk: Object Size Checking.
  50643. (line 6)
  50644. * __builtin___stpcpy_chk: Object Size Checking.
  50645. (line 6)
  50646. * __builtin___strcat_chk: Object Size Checking.
  50647. (line 6)
  50648. * __builtin___strcpy_chk: Object Size Checking.
  50649. (line 6)
  50650. * __builtin___strncat_chk: Object Size Checking.
  50651. (line 6)
  50652. * __builtin___strncpy_chk: Object Size Checking.
  50653. (line 6)
  50654. * __builtin___vfprintf_chk: Object Size Checking.
  50655. (line 6)
  50656. * __builtin___vprintf_chk: Object Size Checking.
  50657. (line 6)
  50658. * __builtin___vsnprintf_chk: Object Size Checking.
  50659. (line 6)
  50660. * __builtin___vsprintf_chk: Object Size Checking.
  50661. (line 6)
  50662. * __complex__ keyword: Complex. (line 6)
  50663. * __declspec(dllexport): Microsoft Windows Function Attributes.
  50664. (line 10)
  50665. * __declspec(dllimport): Microsoft Windows Function Attributes.
  50666. (line 42)
  50667. * __ea SPU Named Address Spaces: Named Address Spaces.
  50668. (line 170)
  50669. * __extension__: Alternate Keywords. (line 30)
  50670. * __far M32C Named Address Spaces: Named Address Spaces.
  50671. (line 153)
  50672. * __far RL78 Named Address Spaces: Named Address Spaces.
  50673. (line 162)
  50674. * __flash AVR Named Address Spaces: Named Address Spaces.
  50675. (line 44)
  50676. * __flash1 AVR Named Address Spaces: Named Address Spaces.
  50677. (line 53)
  50678. * __flash2 AVR Named Address Spaces: Named Address Spaces.
  50679. (line 53)
  50680. * __flash3 AVR Named Address Spaces: Named Address Spaces.
  50681. (line 53)
  50682. * __flash4 AVR Named Address Spaces: Named Address Spaces.
  50683. (line 53)
  50684. * __flash5 AVR Named Address Spaces: Named Address Spaces.
  50685. (line 53)
  50686. * __float128 data type: Floating Types. (line 6)
  50687. * __float80 data type: Floating Types. (line 6)
  50688. * __fp16 data type: Half-Precision. (line 6)
  50689. * __FUNCTION__ identifier: Function Names. (line 6)
  50690. * __func__ identifier: Function Names. (line 6)
  50691. * __ibm128 data type: Floating Types. (line 6)
  50692. * __imag__ keyword: Complex. (line 31)
  50693. * __int128 data types: __int128. (line 6)
  50694. * __memx AVR Named Address Spaces: Named Address Spaces.
  50695. (line 59)
  50696. * __PRETTY_FUNCTION__ identifier: Function Names. (line 6)
  50697. * __real__ keyword: Complex. (line 31)
  50698. * __seg_fs x86 named address space: Named Address Spaces.
  50699. (line 188)
  50700. * __seg_gs x86 named address space: Named Address Spaces.
  50701. (line 188)
  50702. * __STDC_HOSTED__: Standards. (line 13)
  50703. * __sync_add_and_fetch: __sync Builtins. (line 72)
  50704. * __sync_and_and_fetch: __sync Builtins. (line 72)
  50705. * __sync_bool_compare_and_swap: __sync Builtins. (line 88)
  50706. * __sync_fetch_and_add: __sync Builtins. (line 50)
  50707. * __sync_fetch_and_and: __sync Builtins. (line 50)
  50708. * __sync_fetch_and_nand: __sync Builtins. (line 50)
  50709. * __sync_fetch_and_or: __sync Builtins. (line 50)
  50710. * __sync_fetch_and_sub: __sync Builtins. (line 50)
  50711. * __sync_fetch_and_xor: __sync Builtins. (line 50)
  50712. * __sync_lock_release: __sync Builtins. (line 118)
  50713. * __sync_lock_test_and_set: __sync Builtins. (line 100)
  50714. * __sync_nand_and_fetch: __sync Builtins. (line 72)
  50715. * __sync_or_and_fetch: __sync Builtins. (line 72)
  50716. * __sync_sub_and_fetch: __sync Builtins. (line 72)
  50717. * __sync_synchronize: __sync Builtins. (line 97)
  50718. * __sync_val_compare_and_swap: __sync Builtins. (line 88)
  50719. * __sync_xor_and_fetch: __sync Builtins. (line 72)
  50720. * __thread: Thread-Local. (line 6)
  50721. * AArch64 Options: AArch64 Options. (line 6)
  50722. * ABI: Compatibility. (line 6)
  50723. * abi_tag function attribute: C++ Attributes. (line 9)
  50724. * abi_tag type attribute: C++ Attributes. (line 9)
  50725. * abi_tag variable attribute: C++ Attributes. (line 9)
  50726. * abort: Other Builtins. (line 6)
  50727. * abs: Other Builtins. (line 6)
  50728. * absdata variable attribute, AVR: AVR Variable Attributes.
  50729. (line 104)
  50730. * accessing volatiles: Volatiles. (line 6)
  50731. * accessing volatiles <1>: C++ Volatiles. (line 6)
  50732. * acos: Other Builtins. (line 6)
  50733. * acosf: Other Builtins. (line 6)
  50734. * acosh: Other Builtins. (line 6)
  50735. * acoshf: Other Builtins. (line 6)
  50736. * acoshl: Other Builtins. (line 6)
  50737. * acosl: Other Builtins. (line 6)
  50738. * Ada: G++ and GCC. (line 6)
  50739. * Ada <1>: G++ and GCC. (line 30)
  50740. * additional floating types: Floating Types. (line 6)
  50741. * address constraints: Simple Constraints. (line 152)
  50742. * address of a label: Labels as Values. (line 6)
  50743. * address variable attribute, AVR: AVR Variable Attributes.
  50744. (line 97)
  50745. * address_operand: Simple Constraints. (line 156)
  50746. * alias function attribute: Common Function Attributes.
  50747. (line 9)
  50748. * aligned function attribute: Common Function Attributes.
  50749. (line 23)
  50750. * aligned type attribute: Common Type Attributes.
  50751. (line 8)
  50752. * aligned variable attribute: Common Variable Attributes.
  50753. (line 8)
  50754. * alignment: Alignment. (line 6)
  50755. * alloca: Other Builtins. (line 6)
  50756. * alloca vs variable-length arrays: Variable Length. (line 35)
  50757. * alloc_align function attribute: Common Function Attributes.
  50758. (line 43)
  50759. * alloc_size function attribute: Common Function Attributes.
  50760. (line 60)
  50761. * Allow nesting in an interrupt handler on the Blackfin processor: Blackfin Function Attributes.
  50762. (line 45)
  50763. * Altera Nios II options: Nios II Options. (line 6)
  50764. * alternate keywords: Alternate Keywords. (line 6)
  50765. * altivec type attribute, PowerPC: PowerPC Type Attributes.
  50766. (line 12)
  50767. * altivec variable attribute, PowerPC: PowerPC Variable Attributes.
  50768. (line 12)
  50769. * always_inline function attribute: Common Function Attributes.
  50770. (line 81)
  50771. * AMD1: Standards. (line 13)
  50772. * ANSI C: Standards. (line 13)
  50773. * ANSI C standard: Standards. (line 13)
  50774. * ANSI C89: Standards. (line 13)
  50775. * ANSI support: C Dialect Options. (line 10)
  50776. * ANSI X3.159-1989: Standards. (line 13)
  50777. * apostrophes: Incompatibilities. (line 116)
  50778. * application binary interface: Compatibility. (line 6)
  50779. * ARC options: ARC Options. (line 6)
  50780. * arch= function attribute, AArch64: AArch64 Function Attributes.
  50781. (line 49)
  50782. * arch= function attribute, ARM: ARM Function Attributes.
  50783. (line 91)
  50784. * ARM options: ARM Options. (line 6)
  50785. * ARM [Annotated C++ Reference Manual]: Backwards Compatibility.
  50786. (line 6)
  50787. * arrays of length zero: Zero Length. (line 6)
  50788. * arrays of variable length: Variable Length. (line 6)
  50789. * arrays, non-lvalue: Subscripting. (line 6)
  50790. * artificial function attribute: Common Function Attributes.
  50791. (line 91)
  50792. * asin: Other Builtins. (line 6)
  50793. * asinf: Other Builtins. (line 6)
  50794. * asinh: Other Builtins. (line 6)
  50795. * asinhf: Other Builtins. (line 6)
  50796. * asinhl: Other Builtins. (line 6)
  50797. * asinl: Other Builtins. (line 6)
  50798. * asm assembler template: Extended Asm. (line 225)
  50799. * asm clobbers: Extended Asm. (line 653)
  50800. * asm constraints: Constraints. (line 6)
  50801. * asm expressions: Extended Asm. (line 558)
  50802. * asm flag output operands: Extended Asm. (line 487)
  50803. * asm goto labels: Extended Asm. (line 832)
  50804. * asm inline: Size of an asm. (line 25)
  50805. * asm input operands: Extended Asm. (line 558)
  50806. * asm keyword: Using Assembly Language with C.
  50807. (line 6)
  50808. * asm output operands: Extended Asm. (line 328)
  50809. * asm scratch registers: Extended Asm. (line 653)
  50810. * asm volatile: Extended Asm. (line 116)
  50811. * assembler names for identifiers: Asm Labels. (line 6)
  50812. * assembly code, invalid: Bug Criteria. (line 12)
  50813. * assembly language in C: Using Assembly Language with C.
  50814. (line 6)
  50815. * assembly language in C, basic: Basic Asm. (line 6)
  50816. * assembly language in C, extended: Extended Asm. (line 6)
  50817. * assume_aligned function attribute: Common Function Attributes.
  50818. (line 98)
  50819. * atan: Other Builtins. (line 6)
  50820. * atan2: Other Builtins. (line 6)
  50821. * atan2f: Other Builtins. (line 6)
  50822. * atan2l: Other Builtins. (line 6)
  50823. * atanf: Other Builtins. (line 6)
  50824. * atanh: Other Builtins. (line 6)
  50825. * atanhf: Other Builtins. (line 6)
  50826. * atanhl: Other Builtins. (line 6)
  50827. * atanl: Other Builtins. (line 6)
  50828. * attribute of types: Type Attributes. (line 6)
  50829. * attribute of variables: Variable Attributes.
  50830. (line 6)
  50831. * attribute syntax: Attribute Syntax. (line 6)
  50832. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  50833. * automatic inline for C++ member fns: Inline. (line 68)
  50834. * aux variable attribute, ARC: ARC Variable Attributes.
  50835. (line 7)
  50836. * AVR Options: AVR Options. (line 6)
  50837. * Backwards Compatibility: Backwards Compatibility.
  50838. (line 6)
  50839. * bank_switch function attribute, M32C: M32C Function Attributes.
  50840. (line 9)
  50841. * base class members: Name lookup. (line 6)
  50842. * based type attribute, MeP: MeP Type Attributes.
  50843. (line 6)
  50844. * based variable attribute, MeP: MeP Variable Attributes.
  50845. (line 16)
  50846. * basic asm: Basic Asm. (line 6)
  50847. * bcmp: Other Builtins. (line 6)
  50848. * below100 variable attribute, Xstormy16: Xstormy16 Variable Attributes.
  50849. (line 10)
  50850. * binary compatibility: Compatibility. (line 6)
  50851. * Binary constants using the 0b prefix: Binary constants. (line 6)
  50852. * Blackfin Options: Blackfin Options. (line 6)
  50853. * bnd_instrument function attribute: Common Function Attributes.
  50854. (line 113)
  50855. * bnd_legacy function attribute: Common Function Attributes.
  50856. (line 118)
  50857. * bnd_variable_size type attribute: Common Type Attributes.
  50858. (line 127)
  50859. * bound pointer to member function: Bound member functions.
  50860. (line 6)
  50861. * break handler functions: MicroBlaze Function Attributes.
  50862. (line 17)
  50863. * break_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  50864. (line 17)
  50865. * brk_interrupt function attribute, RL78: RL78 Function Attributes.
  50866. (line 10)
  50867. * bug criteria: Bug Criteria. (line 6)
  50868. * bugs: Bugs. (line 6)
  50869. * bugs, known: Trouble. (line 6)
  50870. * built-in functions: C Dialect Options. (line 254)
  50871. * built-in functions <1>: Other Builtins. (line 6)
  50872. * bzero: Other Builtins. (line 6)
  50873. * C compilation options: Invoking GCC. (line 18)
  50874. * C intermediate output, nonexistent: G++ and GCC. (line 35)
  50875. * C language extensions: C Extensions. (line 6)
  50876. * C language, traditional: Preprocessor Options.
  50877. (line 366)
  50878. * C standard: Standards. (line 13)
  50879. * C standards: Standards. (line 13)
  50880. * c++: Invoking G++. (line 14)
  50881. * C++: G++ and GCC. (line 30)
  50882. * C++ comments: C++ Comments. (line 6)
  50883. * C++ interface and implementation headers: C++ Interface. (line 6)
  50884. * C++ language extensions: C++ Extensions. (line 6)
  50885. * C++ member fns, automatically inline: Inline. (line 68)
  50886. * C++ misunderstandings: C++ Misunderstandings.
  50887. (line 6)
  50888. * C++ options, command-line: C++ Dialect Options.
  50889. (line 6)
  50890. * C++ pragmas, effect on inlining: C++ Interface. (line 57)
  50891. * C++ source file suffixes: Invoking G++. (line 6)
  50892. * C++ static data, declaring and defining: Static Definitions.
  50893. (line 6)
  50894. * C11: Standards. (line 13)
  50895. * C17: Standards. (line 13)
  50896. * C1X: Standards. (line 13)
  50897. * C6X Options: C6X Options. (line 6)
  50898. * C89: Standards. (line 13)
  50899. * C90: Standards. (line 13)
  50900. * C94: Standards. (line 13)
  50901. * C95: Standards. (line 13)
  50902. * C99: Standards. (line 13)
  50903. * C9X: Standards. (line 13)
  50904. * cabs: Other Builtins. (line 6)
  50905. * cabsf: Other Builtins. (line 6)
  50906. * cabsl: Other Builtins. (line 6)
  50907. * cacos: Other Builtins. (line 6)
  50908. * cacosf: Other Builtins. (line 6)
  50909. * cacosh: Other Builtins. (line 6)
  50910. * cacoshf: Other Builtins. (line 6)
  50911. * cacoshl: Other Builtins. (line 6)
  50912. * cacosl: Other Builtins. (line 6)
  50913. * callee_pop_aggregate_return function attribute, x86: x86 Function Attributes.
  50914. (line 47)
  50915. * calling functions through the function vector on SH2A: SH Function Attributes.
  50916. (line 9)
  50917. * calloc: Other Builtins. (line 6)
  50918. * carg: Other Builtins. (line 6)
  50919. * cargf: Other Builtins. (line 6)
  50920. * cargl: Other Builtins. (line 6)
  50921. * case labels in initializers: Designated Inits. (line 6)
  50922. * case ranges: Case Ranges. (line 6)
  50923. * casin: Other Builtins. (line 6)
  50924. * casinf: Other Builtins. (line 6)
  50925. * casinh: Other Builtins. (line 6)
  50926. * casinhf: Other Builtins. (line 6)
  50927. * casinhl: Other Builtins. (line 6)
  50928. * casinl: Other Builtins. (line 6)
  50929. * cast to a union: Cast to Union. (line 6)
  50930. * catan: Other Builtins. (line 6)
  50931. * catanf: Other Builtins. (line 6)
  50932. * catanh: Other Builtins. (line 6)
  50933. * catanhf: Other Builtins. (line 6)
  50934. * catanhl: Other Builtins. (line 6)
  50935. * catanl: Other Builtins. (line 6)
  50936. * cb variable attribute, MeP: MeP Variable Attributes.
  50937. (line 46)
  50938. * cbrt: Other Builtins. (line 6)
  50939. * cbrtf: Other Builtins. (line 6)
  50940. * cbrtl: Other Builtins. (line 6)
  50941. * ccos: Other Builtins. (line 6)
  50942. * ccosf: Other Builtins. (line 6)
  50943. * ccosh: Other Builtins. (line 6)
  50944. * ccoshf: Other Builtins. (line 6)
  50945. * ccoshl: Other Builtins. (line 6)
  50946. * ccosl: Other Builtins. (line 6)
  50947. * cdecl function attribute, x86-32: x86 Function Attributes.
  50948. (line 9)
  50949. * ceil: Other Builtins. (line 6)
  50950. * ceilf: Other Builtins. (line 6)
  50951. * ceill: Other Builtins. (line 6)
  50952. * cexp: Other Builtins. (line 6)
  50953. * cexpf: Other Builtins. (line 6)
  50954. * cexpl: Other Builtins. (line 6)
  50955. * character set, execution: Preprocessor Options.
  50956. (line 266)
  50957. * character set, input: Preprocessor Options.
  50958. (line 279)
  50959. * character set, input normalization: Warning Options. (line 2440)
  50960. * character set, wide execution: Preprocessor Options.
  50961. (line 271)
  50962. * cimag: Other Builtins. (line 6)
  50963. * cimagf: Other Builtins. (line 6)
  50964. * cimagl: Other Builtins. (line 6)
  50965. * cleanup variable attribute: Common Variable Attributes.
  50966. (line 103)
  50967. * clog: Other Builtins. (line 6)
  50968. * clog10: Other Builtins. (line 6)
  50969. * clog10f: Other Builtins. (line 6)
  50970. * clog10l: Other Builtins. (line 6)
  50971. * clogf: Other Builtins. (line 6)
  50972. * clogl: Other Builtins. (line 6)
  50973. * cmodel= function attribute, AArch64: AArch64 Function Attributes.
  50974. (line 27)
  50975. * COBOL: G++ and GCC. (line 23)
  50976. * code generation conventions: Code Gen Options. (line 6)
  50977. * code, mixed with declarations: Mixed Declarations. (line 6)
  50978. * cold function attribute: Common Function Attributes.
  50979. (line 123)
  50980. * cold label attribute: Label Attributes. (line 45)
  50981. * command options: Invoking GCC. (line 6)
  50982. * comments, C++ style: C++ Comments. (line 6)
  50983. * common variable attribute: Common Variable Attributes.
  50984. (line 118)
  50985. * comparison of signed and unsigned values, warning: Warning Options.
  50986. (line 2212)
  50987. * compilation statistics: Developer Options. (line 6)
  50988. * compiler bugs, reporting: Bug Reporting. (line 6)
  50989. * compiler compared to C++ preprocessor: G++ and GCC. (line 35)
  50990. * compiler options, C++: C++ Dialect Options.
  50991. (line 6)
  50992. * compiler options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  50993. (line 6)
  50994. * compiler version, specifying: Invoking GCC. (line 24)
  50995. * COMPILER_PATH: Environment Variables.
  50996. (line 91)
  50997. * complex conjugation: Complex. (line 38)
  50998. * complex numbers: Complex. (line 6)
  50999. * compound literals: Compound Literals. (line 6)
  51000. * computed gotos: Labels as Values. (line 6)
  51001. * conditional expressions, extensions: Conditionals. (line 6)
  51002. * conflicting types: Disappointments. (line 21)
  51003. * conj: Other Builtins. (line 6)
  51004. * conjf: Other Builtins. (line 6)
  51005. * conjl: Other Builtins. (line 6)
  51006. * const applied to function: Function Attributes.
  51007. (line 6)
  51008. * const function attribute: Common Function Attributes.
  51009. (line 139)
  51010. * const qualifier: Pointers to Arrays. (line 6)
  51011. * constants in constraints: Simple Constraints. (line 68)
  51012. * constraint modifier characters: Modifiers. (line 6)
  51013. * constraint, matching: Simple Constraints. (line 137)
  51014. * constraints, asm: Constraints. (line 6)
  51015. * constraints, machine specific: Machine Constraints.
  51016. (line 6)
  51017. * constructing calls: Constructing Calls. (line 6)
  51018. * constructor expressions: Compound Literals. (line 6)
  51019. * constructor function attribute: Common Function Attributes.
  51020. (line 161)
  51021. * contributors: Contributors. (line 6)
  51022. * copysign: Other Builtins. (line 6)
  51023. * copysignf: Other Builtins. (line 6)
  51024. * copysignl: Other Builtins. (line 6)
  51025. * core dump: Bug Criteria. (line 9)
  51026. * cos: Other Builtins. (line 6)
  51027. * cosf: Other Builtins. (line 6)
  51028. * cosh: Other Builtins. (line 6)
  51029. * coshf: Other Builtins. (line 6)
  51030. * coshl: Other Builtins. (line 6)
  51031. * cosl: Other Builtins. (line 6)
  51032. * CPATH: Environment Variables.
  51033. (line 127)
  51034. * CPLUS_INCLUDE_PATH: Environment Variables.
  51035. (line 129)
  51036. * cpow: Other Builtins. (line 6)
  51037. * cpowf: Other Builtins. (line 6)
  51038. * cpowl: Other Builtins. (line 6)
  51039. * cproj: Other Builtins. (line 6)
  51040. * cprojf: Other Builtins. (line 6)
  51041. * cprojl: Other Builtins. (line 6)
  51042. * cpu= function attribute, AArch64: AArch64 Function Attributes.
  51043. (line 59)
  51044. * CR16 Options: CR16 Options. (line 6)
  51045. * creal: Other Builtins. (line 6)
  51046. * crealf: Other Builtins. (line 6)
  51047. * creall: Other Builtins. (line 6)
  51048. * CRIS Options: CRIS Options. (line 6)
  51049. * critical function attribute, MSP430: MSP430 Function Attributes.
  51050. (line 9)
  51051. * cross compiling: Invoking GCC. (line 24)
  51052. * csin: Other Builtins. (line 6)
  51053. * csinf: Other Builtins. (line 6)
  51054. * csinh: Other Builtins. (line 6)
  51055. * csinhf: Other Builtins. (line 6)
  51056. * csinhl: Other Builtins. (line 6)
  51057. * csinl: Other Builtins. (line 6)
  51058. * csqrt: Other Builtins. (line 6)
  51059. * csqrtf: Other Builtins. (line 6)
  51060. * csqrtl: Other Builtins. (line 6)
  51061. * ctan: Other Builtins. (line 6)
  51062. * ctanf: Other Builtins. (line 6)
  51063. * ctanh: Other Builtins. (line 6)
  51064. * ctanhf: Other Builtins. (line 6)
  51065. * ctanhl: Other Builtins. (line 6)
  51066. * ctanl: Other Builtins. (line 6)
  51067. * C_INCLUDE_PATH: Environment Variables.
  51068. (line 128)
  51069. * Darwin options: Darwin Options. (line 6)
  51070. * dcgettext: Other Builtins. (line 6)
  51071. * dd integer suffix: Decimal Float. (line 6)
  51072. * DD integer suffix: Decimal Float. (line 6)
  51073. * deallocating variable length arrays: Variable Length. (line 22)
  51074. * debug dump options: Developer Options. (line 6)
  51075. * debugging GCC: Developer Options. (line 6)
  51076. * debugging information options: Debugging Options. (line 6)
  51077. * decimal floating types: Decimal Float. (line 6)
  51078. * declaration scope: Incompatibilities. (line 80)
  51079. * declarations inside expressions: Statement Exprs. (line 6)
  51080. * declarations, mixed with code: Mixed Declarations. (line 6)
  51081. * declaring attributes of functions: Function Attributes.
  51082. (line 6)
  51083. * declaring static data in C++: Static Definitions. (line 6)
  51084. * defining static data in C++: Static Definitions. (line 6)
  51085. * dependencies for make as output: Environment Variables.
  51086. (line 156)
  51087. * dependencies for make as output <1>: Environment Variables.
  51088. (line 172)
  51089. * dependencies, make: Preprocessor Options.
  51090. (line 77)
  51091. * DEPENDENCIES_OUTPUT: Environment Variables.
  51092. (line 155)
  51093. * dependent name lookup: Name lookup. (line 6)
  51094. * deprecated enumerator attribute: Enumerator Attributes.
  51095. (line 28)
  51096. * deprecated function attribute: Common Function Attributes.
  51097. (line 185)
  51098. * deprecated type attribute: Common Type Attributes.
  51099. (line 154)
  51100. * deprecated variable attribute: Common Variable Attributes.
  51101. (line 127)
  51102. * designated initializers: Designated Inits. (line 6)
  51103. * designated_init type attribute: Common Type Attributes.
  51104. (line 182)
  51105. * designator lists: Designated Inits. (line 96)
  51106. * designators: Designated Inits. (line 64)
  51107. * destructor function attribute: Common Function Attributes.
  51108. (line 161)
  51109. * developer options: Developer Options. (line 6)
  51110. * df integer suffix: Decimal Float. (line 6)
  51111. * DF integer suffix: Decimal Float. (line 6)
  51112. * dgettext: Other Builtins. (line 6)
  51113. * diagnostic messages: Diagnostic Message Formatting Options.
  51114. (line 6)
  51115. * dialect options: C Dialect Options. (line 6)
  51116. * diff-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  51117. (line 108)
  51118. * diff-filename GCC_COLORS capability: Diagnostic Message Formatting Options.
  51119. (line 101)
  51120. * diff-hunk GCC_COLORS capability: Diagnostic Message Formatting Options.
  51121. (line 104)
  51122. * diff-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  51123. (line 111)
  51124. * digits in constraint: Simple Constraints. (line 125)
  51125. * directory options: Directory Options. (line 6)
  51126. * disinterrupt function attribute, Epiphany: Epiphany Function Attributes.
  51127. (line 9)
  51128. * disinterrupt function attribute, MeP: MeP Function Attributes.
  51129. (line 9)
  51130. * dl integer suffix: Decimal Float. (line 6)
  51131. * DL integer suffix: Decimal Float. (line 6)
  51132. * dllexport function attribute: Microsoft Windows Function Attributes.
  51133. (line 10)
  51134. * dllexport variable attribute: Microsoft Windows Variable Attributes.
  51135. (line 12)
  51136. * dllimport function attribute: Microsoft Windows Function Attributes.
  51137. (line 42)
  51138. * dllimport variable attribute: Microsoft Windows Variable Attributes.
  51139. (line 12)
  51140. * dollar signs in identifier names: Dollar Signs. (line 6)
  51141. * double-word arithmetic: Long Long. (line 6)
  51142. * downward funargs: Nested Functions. (line 6)
  51143. * drem: Other Builtins. (line 6)
  51144. * dremf: Other Builtins. (line 6)
  51145. * dreml: Other Builtins. (line 6)
  51146. * dump options: Developer Options. (line 6)
  51147. * E in constraint: Simple Constraints. (line 87)
  51148. * earlyclobber operand: Modifiers. (line 25)
  51149. * eight-bit data on the H8/300, H8/300H, and H8S: H8/300 Variable Attributes.
  51150. (line 9)
  51151. * eightbit_data variable attribute, H8/300: H8/300 Variable Attributes.
  51152. (line 9)
  51153. * EIND: AVR Options. (line 291)
  51154. * either function attribute, MSP430: MSP430 Function Attributes.
  51155. (line 53)
  51156. * either variable attribute, MSP430: MSP430 Variable Attributes.
  51157. (line 24)
  51158. * empty structures: Empty Structures. (line 6)
  51159. * Enumerator Attributes: Enumerator Attributes.
  51160. (line 6)
  51161. * environment variables: Environment Variables.
  51162. (line 6)
  51163. * erf: Other Builtins. (line 6)
  51164. * erfc: Other Builtins. (line 6)
  51165. * erfcf: Other Builtins. (line 6)
  51166. * erfcl: Other Builtins. (line 6)
  51167. * erff: Other Builtins. (line 6)
  51168. * erfl: Other Builtins. (line 6)
  51169. * error function attribute: Common Function Attributes.
  51170. (line 206)
  51171. * error GCC_COLORS capability: Diagnostic Message Formatting Options.
  51172. (line 72)
  51173. * error messages: Warnings and Errors.
  51174. (line 6)
  51175. * escaped newlines: Escaped Newlines. (line 6)
  51176. * exception function attribute: NDS32 Function Attributes.
  51177. (line 9)
  51178. * exception handler functions, Blackfin: Blackfin Function Attributes.
  51179. (line 9)
  51180. * exception handler functions, NDS32: NDS32 Function Attributes.
  51181. (line 9)
  51182. * exception_handler function attribute: Blackfin Function Attributes.
  51183. (line 9)
  51184. * exit: Other Builtins. (line 6)
  51185. * exp: Other Builtins. (line 6)
  51186. * exp10: Other Builtins. (line 6)
  51187. * exp10f: Other Builtins. (line 6)
  51188. * exp10l: Other Builtins. (line 6)
  51189. * exp2: Other Builtins. (line 6)
  51190. * exp2f: Other Builtins. (line 6)
  51191. * exp2l: Other Builtins. (line 6)
  51192. * expf: Other Builtins. (line 6)
  51193. * expl: Other Builtins. (line 6)
  51194. * explicit register variables: Explicit Register Variables.
  51195. (line 6)
  51196. * expm1: Other Builtins. (line 6)
  51197. * expm1f: Other Builtins. (line 6)
  51198. * expm1l: Other Builtins. (line 6)
  51199. * expressions containing statements: Statement Exprs. (line 6)
  51200. * expressions, constructor: Compound Literals. (line 6)
  51201. * extended asm: Extended Asm. (line 6)
  51202. * extensible constraints: Simple Constraints. (line 161)
  51203. * extensions, ?:: Conditionals. (line 6)
  51204. * extensions, C language: C Extensions. (line 6)
  51205. * extensions, C++ language: C++ Extensions. (line 6)
  51206. * external declaration scope: Incompatibilities. (line 80)
  51207. * externally_visible function attribute: Common Function Attributes.
  51208. (line 223)
  51209. * extra NOP instructions at the function entry point: Common Function Attributes.
  51210. (line 734)
  51211. * F in constraint: Simple Constraints. (line 92)
  51212. * fabs: Other Builtins. (line 6)
  51213. * fabsf: Other Builtins. (line 6)
  51214. * fabsl: Other Builtins. (line 6)
  51215. * fallthrough statement attribute: Statement Attributes.
  51216. (line 26)
  51217. * far function attribute, MeP: MeP Function Attributes.
  51218. (line 25)
  51219. * far function attribute, MIPS: MIPS Function Attributes.
  51220. (line 63)
  51221. * far type attribute, MeP: MeP Type Attributes.
  51222. (line 6)
  51223. * far variable attribute, MeP: MeP Variable Attributes.
  51224. (line 30)
  51225. * fastcall function attribute, x86-32: x86 Function Attributes.
  51226. (line 15)
  51227. * fast_interrupt function attribute, M32C: M32C Function Attributes.
  51228. (line 14)
  51229. * fast_interrupt function attribute, MicroBlaze: MicroBlaze Function Attributes.
  51230. (line 27)
  51231. * fast_interrupt function attribute, RX: RX Function Attributes.
  51232. (line 9)
  51233. * fatal signal: Bug Criteria. (line 9)
  51234. * fdim: Other Builtins. (line 6)
  51235. * fdimf: Other Builtins. (line 6)
  51236. * fdiml: Other Builtins. (line 6)
  51237. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  51238. (line 6)
  51239. * ffs: Other Builtins. (line 6)
  51240. * file name suffix: Overall Options. (line 14)
  51241. * file names: Link Options. (line 10)
  51242. * fix-cortex-a53-835769 function attribute, AArch64: AArch64 Function Attributes.
  51243. (line 19)
  51244. * fixed-point types: Fixed-Point. (line 6)
  51245. * fixit-delete GCC_COLORS capability: Diagnostic Message Formatting Options.
  51246. (line 98)
  51247. * fixit-insert GCC_COLORS capability: Diagnostic Message Formatting Options.
  51248. (line 94)
  51249. * flatten function attribute: Common Function Attributes.
  51250. (line 236)
  51251. * flexible array members: Zero Length. (line 6)
  51252. * float as function value type: Incompatibilities. (line 141)
  51253. * floating point precision: Disappointments. (line 68)
  51254. * floating-point precision: Optimize Options. (line 1993)
  51255. * floor: Other Builtins. (line 6)
  51256. * floorf: Other Builtins. (line 6)
  51257. * floorl: Other Builtins. (line 6)
  51258. * fma: Other Builtins. (line 6)
  51259. * fmaf: Other Builtins. (line 6)
  51260. * fmal: Other Builtins. (line 6)
  51261. * fmax: Other Builtins. (line 6)
  51262. * fmaxf: Other Builtins. (line 6)
  51263. * fmaxl: Other Builtins. (line 6)
  51264. * fmin: Other Builtins. (line 6)
  51265. * fminf: Other Builtins. (line 6)
  51266. * fminl: Other Builtins. (line 6)
  51267. * fmod: Other Builtins. (line 6)
  51268. * fmodf: Other Builtins. (line 6)
  51269. * fmodl: Other Builtins. (line 6)
  51270. * force_align_arg_pointer function attribute, x86: x86 Function Attributes.
  51271. (line 100)
  51272. * format function attribute: Common Function Attributes.
  51273. (line 243)
  51274. * format_arg function attribute: Common Function Attributes.
  51275. (line 308)
  51276. * Fortran: G++ and GCC. (line 6)
  51277. * forwarder_section function attribute, Epiphany: Epiphany Function Attributes.
  51278. (line 13)
  51279. * forwarding calls: Constructing Calls. (line 6)
  51280. * fprintf: Other Builtins. (line 6)
  51281. * fprintf_unlocked: Other Builtins. (line 6)
  51282. * fputs: Other Builtins. (line 6)
  51283. * fputs_unlocked: Other Builtins. (line 6)
  51284. * FR30 Options: FR30 Options. (line 6)
  51285. * freestanding environment: Standards. (line 13)
  51286. * freestanding implementation: Standards. (line 13)
  51287. * frexp: Other Builtins. (line 6)
  51288. * frexpf: Other Builtins. (line 6)
  51289. * frexpl: Other Builtins. (line 6)
  51290. * FRV Options: FRV Options. (line 6)
  51291. * fscanf: Other Builtins. (line 6)
  51292. * fscanf, and constant strings: Incompatibilities. (line 17)
  51293. * FT32 Options: FT32 Options. (line 6)
  51294. * function addressability on the M32R/D: M32R/D Function Attributes.
  51295. (line 15)
  51296. * function attributes: Function Attributes.
  51297. (line 6)
  51298. * function pointers, arithmetic: Pointer Arith. (line 6)
  51299. * function prototype declarations: Function Prototypes.
  51300. (line 6)
  51301. * function versions: Function Multiversioning.
  51302. (line 6)
  51303. * function, size of pointer to: Pointer Arith. (line 6)
  51304. * functions in arbitrary sections: Common Function Attributes.
  51305. (line 798)
  51306. * functions that are dynamically resolved: Common Function Attributes.
  51307. (line 400)
  51308. * functions that are passed arguments in registers on x86-32: x86 Function Attributes.
  51309. (line 76)
  51310. * functions that behave like malloc: Common Function Attributes.
  51311. (line 527)
  51312. * functions that have no side effects: Common Function Attributes.
  51313. (line 139)
  51314. * functions that have no side effects <1>: Common Function Attributes.
  51315. (line 752)
  51316. * functions that never return: Common Function Attributes.
  51317. (line 681)
  51318. * functions that pop the argument stack on x86-32: x86 Function Attributes.
  51319. (line 9)
  51320. * functions that pop the argument stack on x86-32 <1>: x86 Function Attributes.
  51321. (line 15)
  51322. * functions that pop the argument stack on x86-32 <2>: x86 Function Attributes.
  51323. (line 23)
  51324. * functions that pop the argument stack on x86-32 <3>: x86 Function Attributes.
  51325. (line 108)
  51326. * functions that return more than once: Common Function Attributes.
  51327. (line 789)
  51328. * functions with non-null pointer arguments: Common Function Attributes.
  51329. (line 633)
  51330. * functions with printf, scanf, strftime or strfmon style arguments: Common Function Attributes.
  51331. (line 243)
  51332. * function_return function attribute, x86: x86 Function Attributes.
  51333. (line 550)
  51334. * function_vector function attribute, H8/300: H8/300 Function Attributes.
  51335. (line 9)
  51336. * function_vector function attribute, M16C/M32C: M32C Function Attributes.
  51337. (line 20)
  51338. * function_vector function attribute, SH: SH Function Attributes.
  51339. (line 9)
  51340. * G in constraint: Simple Constraints. (line 96)
  51341. * g in constraint: Simple Constraints. (line 118)
  51342. * g++: Invoking G++. (line 14)
  51343. * G++: G++ and GCC. (line 30)
  51344. * gamma: Other Builtins. (line 6)
  51345. * gammaf: Other Builtins. (line 6)
  51346. * gammaf_r: Other Builtins. (line 6)
  51347. * gammal: Other Builtins. (line 6)
  51348. * gammal_r: Other Builtins. (line 6)
  51349. * gamma_r: Other Builtins. (line 6)
  51350. * GCC: G++ and GCC. (line 6)
  51351. * GCC command options: Invoking GCC. (line 6)
  51352. * GCC_COLORS environment variable: Diagnostic Message Formatting Options.
  51353. (line 35)
  51354. * GCC_COMPARE_DEBUG: Environment Variables.
  51355. (line 52)
  51356. * GCC_EXEC_PREFIX: Environment Variables.
  51357. (line 57)
  51358. * gcc_struct type attribute, PowerPC: PowerPC Type Attributes.
  51359. (line 9)
  51360. * gcc_struct type attribute, x86: x86 Type Attributes.
  51361. (line 11)
  51362. * gcc_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  51363. (line 9)
  51364. * gcc_struct variable attribute, x86: x86 Variable Attributes.
  51365. (line 11)
  51366. * gcov: Instrumentation Options.
  51367. (line 50)
  51368. * general-regs-only function attribute, AArch64: AArch64 Function Attributes.
  51369. (line 12)
  51370. * gettext: Other Builtins. (line 6)
  51371. * global offset table: Code Gen Options. (line 359)
  51372. * global register after longjmp: Global Register Variables.
  51373. (line 74)
  51374. * global register variables: Global Register Variables.
  51375. (line 6)
  51376. * GNAT: G++ and GCC. (line 30)
  51377. * GNU C Compiler: G++ and GCC. (line 6)
  51378. * GNU Compiler Collection: G++ and GCC. (line 6)
  51379. * gnu_inline function attribute: Common Function Attributes.
  51380. (line 354)
  51381. * Go: G++ and GCC. (line 6)
  51382. * goto with computed label: Labels as Values. (line 6)
  51383. * gprof: Instrumentation Options.
  51384. (line 24)
  51385. * grouping options: Invoking GCC. (line 31)
  51386. * H in constraint: Simple Constraints. (line 96)
  51387. * half-precision floating point: Half-Precision. (line 6)
  51388. * hardware models and configurations, specifying: Submodel Options.
  51389. (line 6)
  51390. * hex floats: Hex Floats. (line 6)
  51391. * highlight, color: Diagnostic Message Formatting Options.
  51392. (line 35)
  51393. * hk fixed-suffix: Fixed-Point. (line 6)
  51394. * HK fixed-suffix: Fixed-Point. (line 6)
  51395. * hosted environment: Standards. (line 13)
  51396. * hosted environment <1>: C Dialect Options. (line 294)
  51397. * hosted environment <2>: C Dialect Options. (line 302)
  51398. * hosted implementation: Standards. (line 13)
  51399. * hot function attribute: Common Function Attributes.
  51400. (line 390)
  51401. * hot label attribute: Label Attributes. (line 38)
  51402. * hotpatch function attribute, S/390: S/390 Function Attributes.
  51403. (line 9)
  51404. * HPPA Options: HPPA Options. (line 6)
  51405. * hr fixed-suffix: Fixed-Point. (line 6)
  51406. * HR fixed-suffix: Fixed-Point. (line 6)
  51407. * hypot: Other Builtins. (line 6)
  51408. * hypotf: Other Builtins. (line 6)
  51409. * hypotl: Other Builtins. (line 6)
  51410. * i in constraint: Simple Constraints. (line 68)
  51411. * I in constraint: Simple Constraints. (line 79)
  51412. * IA-64 Options: IA-64 Options. (line 6)
  51413. * IBM RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  51414. (line 6)
  51415. * identifier names, dollar signs in: Dollar Signs. (line 6)
  51416. * identifiers, names in assembler code: Asm Labels. (line 6)
  51417. * ifunc function attribute: Common Function Attributes.
  51418. (line 400)
  51419. * ilogb: Other Builtins. (line 6)
  51420. * ilogbf: Other Builtins. (line 6)
  51421. * ilogbl: Other Builtins. (line 6)
  51422. * imaxabs: Other Builtins. (line 6)
  51423. * implementation-defined behavior, C language: C Implementation.
  51424. (line 6)
  51425. * implementation-defined behavior, C++ language: C++ Implementation.
  51426. (line 6)
  51427. * implied #pragma implementation: C++ Interface. (line 43)
  51428. * incompatibilities of GCC: Incompatibilities. (line 6)
  51429. * increment operators: Bug Criteria. (line 17)
  51430. * index: Other Builtins. (line 6)
  51431. * indirect calls, ARC: ARC Function Attributes.
  51432. (line 24)
  51433. * indirect calls, ARM: ARM Function Attributes.
  51434. (line 31)
  51435. * indirect calls, Blackfin: Blackfin Function Attributes.
  51436. (line 38)
  51437. * indirect calls, Epiphany: Epiphany Function Attributes.
  51438. (line 57)
  51439. * indirect calls, MIPS: MIPS Function Attributes.
  51440. (line 63)
  51441. * indirect calls, PowerPC: PowerPC Function Attributes.
  51442. (line 10)
  51443. * indirect functions: Common Function Attributes.
  51444. (line 400)
  51445. * indirect_branch function attribute, x86: x86 Function Attributes.
  51446. (line 540)
  51447. * initializations in expressions: Compound Literals. (line 6)
  51448. * initializers with labeled elements: Designated Inits. (line 6)
  51449. * initializers, non-constant: Initializers. (line 6)
  51450. * init_priority variable attribute: C++ Attributes. (line 50)
  51451. * inline assembly language: Using Assembly Language with C.
  51452. (line 6)
  51453. * inline automatic for C++ member fns: Inline. (line 68)
  51454. * inline functions: Inline. (line 6)
  51455. * inline functions, omission of: Inline. (line 51)
  51456. * inlining and C++ pragmas: C++ Interface. (line 57)
  51457. * installation trouble: Trouble. (line 6)
  51458. * instrumentation options: Instrumentation Options.
  51459. (line 6)
  51460. * integrating function code: Inline. (line 6)
  51461. * interface and implementation headers, C++: C++ Interface. (line 6)
  51462. * intermediate C version, nonexistent: G++ and GCC. (line 35)
  51463. * interrupt function attribute, ARC: ARC Function Attributes.
  51464. (line 9)
  51465. * interrupt function attribute, ARM: ARM Function Attributes.
  51466. (line 9)
  51467. * interrupt function attribute, AVR: AVR Function Attributes.
  51468. (line 9)
  51469. * interrupt function attribute, CR16: CR16 Function Attributes.
  51470. (line 9)
  51471. * interrupt function attribute, Epiphany: Epiphany Function Attributes.
  51472. (line 20)
  51473. * interrupt function attribute, M32C: M32C Function Attributes.
  51474. (line 53)
  51475. * interrupt function attribute, M32R/D: M32R/D Function Attributes.
  51476. (line 9)
  51477. * interrupt function attribute, m68k: m68k Function Attributes.
  51478. (line 10)
  51479. * interrupt function attribute, MeP: MeP Function Attributes.
  51480. (line 14)
  51481. * interrupt function attribute, MIPS: MIPS Function Attributes.
  51482. (line 9)
  51483. * interrupt function attribute, MSP430: MSP430 Function Attributes.
  51484. (line 15)
  51485. * interrupt function attribute, NDS32: NDS32 Function Attributes.
  51486. (line 14)
  51487. * interrupt function attribute, RISC-V: RISC-V Function Attributes.
  51488. (line 19)
  51489. * interrupt function attribute, RL78: RL78 Function Attributes.
  51490. (line 10)
  51491. * interrupt function attribute, RX: RX Function Attributes.
  51492. (line 15)
  51493. * interrupt function attribute, V850: V850 Function Attributes.
  51494. (line 10)
  51495. * interrupt function attribute, Visium: Visium Function Attributes.
  51496. (line 9)
  51497. * interrupt function attribute, x86: x86 Function Attributes.
  51498. (line 124)
  51499. * interrupt function attribute, Xstormy16: Xstormy16 Function Attributes.
  51500. (line 9)
  51501. * interrupt_handler function attribute, Blackfin: Blackfin Function Attributes.
  51502. (line 15)
  51503. * interrupt_handler function attribute, H8/300: H8/300 Function Attributes.
  51504. (line 17)
  51505. * interrupt_handler function attribute, m68k: m68k Function Attributes.
  51506. (line 10)
  51507. * interrupt_handler function attribute, MicroBlaze: MicroBlaze Function Attributes.
  51508. (line 27)
  51509. * interrupt_handler function attribute, SH: SH Function Attributes.
  51510. (line 28)
  51511. * interrupt_handler function attribute, V850: V850 Function Attributes.
  51512. (line 10)
  51513. * interrupt_thread function attribute, fido: m68k Function Attributes.
  51514. (line 16)
  51515. * introduction: Top. (line 6)
  51516. * invalid assembly code: Bug Criteria. (line 12)
  51517. * invalid input: Bug Criteria. (line 42)
  51518. * invoking g++: Invoking G++. (line 22)
  51519. * io variable attribute, AVR: AVR Variable Attributes.
  51520. (line 73)
  51521. * io variable attribute, MeP: MeP Variable Attributes.
  51522. (line 36)
  51523. * io_low variable attribute, AVR: AVR Variable Attributes.
  51524. (line 91)
  51525. * isalnum: Other Builtins. (line 6)
  51526. * isalpha: Other Builtins. (line 6)
  51527. * isascii: Other Builtins. (line 6)
  51528. * isblank: Other Builtins. (line 6)
  51529. * iscntrl: Other Builtins. (line 6)
  51530. * isdigit: Other Builtins. (line 6)
  51531. * isgraph: Other Builtins. (line 6)
  51532. * islower: Other Builtins. (line 6)
  51533. * ISO 9899: Standards. (line 13)
  51534. * ISO C: Standards. (line 13)
  51535. * ISO C standard: Standards. (line 13)
  51536. * ISO C11: Standards. (line 13)
  51537. * ISO C17: Standards. (line 13)
  51538. * ISO C1X: Standards. (line 13)
  51539. * ISO C90: Standards. (line 13)
  51540. * ISO C94: Standards. (line 13)
  51541. * ISO C95: Standards. (line 13)
  51542. * ISO C99: Standards. (line 13)
  51543. * ISO C9X: Standards. (line 13)
  51544. * ISO support: C Dialect Options. (line 10)
  51545. * ISO/IEC 9899: Standards. (line 13)
  51546. * isprint: Other Builtins. (line 6)
  51547. * ispunct: Other Builtins. (line 6)
  51548. * isr function attribute, ARM: ARM Function Attributes.
  51549. (line 26)
  51550. * isspace: Other Builtins. (line 6)
  51551. * isupper: Other Builtins. (line 6)
  51552. * iswalnum: Other Builtins. (line 6)
  51553. * iswalpha: Other Builtins. (line 6)
  51554. * iswblank: Other Builtins. (line 6)
  51555. * iswcntrl: Other Builtins. (line 6)
  51556. * iswdigit: Other Builtins. (line 6)
  51557. * iswgraph: Other Builtins. (line 6)
  51558. * iswlower: Other Builtins. (line 6)
  51559. * iswprint: Other Builtins. (line 6)
  51560. * iswpunct: Other Builtins. (line 6)
  51561. * iswspace: Other Builtins. (line 6)
  51562. * iswupper: Other Builtins. (line 6)
  51563. * iswxdigit: Other Builtins. (line 6)
  51564. * isxdigit: Other Builtins. (line 6)
  51565. * j0: Other Builtins. (line 6)
  51566. * j0f: Other Builtins. (line 6)
  51567. * j0l: Other Builtins. (line 6)
  51568. * j1: Other Builtins. (line 6)
  51569. * j1f: Other Builtins. (line 6)
  51570. * j1l: Other Builtins. (line 6)
  51571. * jli_always function attribute, ARC: ARC Function Attributes.
  51572. (line 41)
  51573. * jli_fixed function attribute, ARC: ARC Function Attributes.
  51574. (line 47)
  51575. * jn: Other Builtins. (line 6)
  51576. * jnf: Other Builtins. (line 6)
  51577. * jnl: Other Builtins. (line 6)
  51578. * k fixed-suffix: Fixed-Point. (line 6)
  51579. * K fixed-suffix: Fixed-Point. (line 6)
  51580. * keep_interrupts_masked function attribute, MIPS: MIPS Function Attributes.
  51581. (line 34)
  51582. * kernel attribute, Nvidia PTX: Nvidia PTX Function Attributes.
  51583. (line 9)
  51584. * keywords, alternate: Alternate Keywords. (line 6)
  51585. * known causes of trouble: Trouble. (line 6)
  51586. * kspisusp function attribute, Blackfin: Blackfin Function Attributes.
  51587. (line 21)
  51588. * l1_data variable attribute, Blackfin: Blackfin Variable Attributes.
  51589. (line 11)
  51590. * l1_data_A variable attribute, Blackfin: Blackfin Variable Attributes.
  51591. (line 11)
  51592. * l1_data_B variable attribute, Blackfin: Blackfin Variable Attributes.
  51593. (line 11)
  51594. * l1_text function attribute, Blackfin: Blackfin Function Attributes.
  51595. (line 26)
  51596. * l2 function attribute, Blackfin: Blackfin Function Attributes.
  51597. (line 32)
  51598. * l2 variable attribute, Blackfin: Blackfin Variable Attributes.
  51599. (line 19)
  51600. * Label Attributes: Label Attributes. (line 6)
  51601. * labeled elements in initializers: Designated Inits. (line 6)
  51602. * labels as values: Labels as Values. (line 6)
  51603. * labs: Other Builtins. (line 6)
  51604. * LANG: Environment Variables.
  51605. (line 21)
  51606. * LANG <1>: Environment Variables.
  51607. (line 106)
  51608. * language dialect options: C Dialect Options. (line 6)
  51609. * LC_ALL: Environment Variables.
  51610. (line 21)
  51611. * LC_CTYPE: Environment Variables.
  51612. (line 21)
  51613. * LC_MESSAGES: Environment Variables.
  51614. (line 21)
  51615. * ldexp: Other Builtins. (line 6)
  51616. * ldexpf: Other Builtins. (line 6)
  51617. * ldexpl: Other Builtins. (line 6)
  51618. * leaf function attribute: Common Function Attributes.
  51619. (line 490)
  51620. * length-zero arrays: Zero Length. (line 6)
  51621. * lgamma: Other Builtins. (line 6)
  51622. * lgammaf: Other Builtins. (line 6)
  51623. * lgammaf_r: Other Builtins. (line 6)
  51624. * lgammal: Other Builtins. (line 6)
  51625. * lgammal_r: Other Builtins. (line 6)
  51626. * lgamma_r: Other Builtins. (line 6)
  51627. * Libraries: Link Options. (line 30)
  51628. * LIBRARY_PATH: Environment Variables.
  51629. (line 97)
  51630. * link options: Link Options. (line 6)
  51631. * linker script: Link Options. (line 256)
  51632. * lk fixed-suffix: Fixed-Point. (line 6)
  51633. * LK fixed-suffix: Fixed-Point. (line 6)
  51634. * LL integer suffix: Long Long. (line 6)
  51635. * llabs: Other Builtins. (line 6)
  51636. * llk fixed-suffix: Fixed-Point. (line 6)
  51637. * LLK fixed-suffix: Fixed-Point. (line 6)
  51638. * llr fixed-suffix: Fixed-Point. (line 6)
  51639. * LLR fixed-suffix: Fixed-Point. (line 6)
  51640. * llrint: Other Builtins. (line 6)
  51641. * llrintf: Other Builtins. (line 6)
  51642. * llrintl: Other Builtins. (line 6)
  51643. * llround: Other Builtins. (line 6)
  51644. * llroundf: Other Builtins. (line 6)
  51645. * llroundl: Other Builtins. (line 6)
  51646. * LM32 options: LM32 Options. (line 6)
  51647. * load address instruction: Simple Constraints. (line 152)
  51648. * local labels: Local Labels. (line 6)
  51649. * local variables in macros: Typeof. (line 46)
  51650. * local variables, specifying registers: Local Register Variables.
  51651. (line 6)
  51652. * locale: Environment Variables.
  51653. (line 21)
  51654. * locale definition: Environment Variables.
  51655. (line 106)
  51656. * locus GCC_COLORS capability: Diagnostic Message Formatting Options.
  51657. (line 87)
  51658. * log: Other Builtins. (line 6)
  51659. * log10: Other Builtins. (line 6)
  51660. * log10f: Other Builtins. (line 6)
  51661. * log10l: Other Builtins. (line 6)
  51662. * log1p: Other Builtins. (line 6)
  51663. * log1pf: Other Builtins. (line 6)
  51664. * log1pl: Other Builtins. (line 6)
  51665. * log2: Other Builtins. (line 6)
  51666. * log2f: Other Builtins. (line 6)
  51667. * log2l: Other Builtins. (line 6)
  51668. * logb: Other Builtins. (line 6)
  51669. * logbf: Other Builtins. (line 6)
  51670. * logbl: Other Builtins. (line 6)
  51671. * logf: Other Builtins. (line 6)
  51672. * logl: Other Builtins. (line 6)
  51673. * long long data types: Long Long. (line 6)
  51674. * longcall function attribute, Blackfin: Blackfin Function Attributes.
  51675. (line 38)
  51676. * longcall function attribute, PowerPC: PowerPC Function Attributes.
  51677. (line 10)
  51678. * longjmp: Global Register Variables.
  51679. (line 74)
  51680. * longjmp incompatibilities: Incompatibilities. (line 39)
  51681. * longjmp warnings: Warning Options. (line 1135)
  51682. * long_call function attribute, ARC: ARC Function Attributes.
  51683. (line 24)
  51684. * long_call function attribute, ARM: ARM Function Attributes.
  51685. (line 31)
  51686. * long_call function attribute, Epiphany: Epiphany Function Attributes.
  51687. (line 57)
  51688. * long_call function attribute, MIPS: MIPS Function Attributes.
  51689. (line 63)
  51690. * lower function attribute, MSP430: MSP430 Function Attributes.
  51691. (line 53)
  51692. * lower variable attribute, MSP430: MSP430 Variable Attributes.
  51693. (line 24)
  51694. * lr fixed-suffix: Fixed-Point. (line 6)
  51695. * LR fixed-suffix: Fixed-Point. (line 6)
  51696. * lrint: Other Builtins. (line 6)
  51697. * lrintf: Other Builtins. (line 6)
  51698. * lrintl: Other Builtins. (line 6)
  51699. * lround: Other Builtins. (line 6)
  51700. * lroundf: Other Builtins. (line 6)
  51701. * lroundl: Other Builtins. (line 6)
  51702. * m in constraint: Simple Constraints. (line 17)
  51703. * M32C options: M32C Options. (line 6)
  51704. * M32R/D options: M32R/D Options. (line 6)
  51705. * M680x0 options: M680x0 Options. (line 6)
  51706. * machine specific constraints: Machine Constraints.
  51707. (line 6)
  51708. * machine-dependent options: Submodel Options. (line 6)
  51709. * macro with variable arguments: Variadic Macros. (line 6)
  51710. * macros, inline alternative: Inline. (line 6)
  51711. * macros, local labels: Local Labels. (line 6)
  51712. * macros, local variables in: Typeof. (line 46)
  51713. * macros, statements in expressions: Statement Exprs. (line 6)
  51714. * macros, types of arguments: Typeof. (line 6)
  51715. * make: Preprocessor Options.
  51716. (line 77)
  51717. * malloc: Other Builtins. (line 6)
  51718. * malloc function attribute: Common Function Attributes.
  51719. (line 527)
  51720. * matching constraint: Simple Constraints. (line 137)
  51721. * may_alias type attribute: Common Type Attributes.
  51722. (line 193)
  51723. * MCore options: MCore Options. (line 6)
  51724. * medium_call function attribute, ARC: ARC Function Attributes.
  51725. (line 24)
  51726. * member fns, automatically inline: Inline. (line 68)
  51727. * memchr: Other Builtins. (line 6)
  51728. * memcmp: Other Builtins. (line 6)
  51729. * memcpy: Other Builtins. (line 6)
  51730. * memory references in constraints: Simple Constraints. (line 17)
  51731. * mempcpy: Other Builtins. (line 6)
  51732. * memset: Other Builtins. (line 6)
  51733. * MeP options: MeP Options. (line 6)
  51734. * Mercury: G++ and GCC. (line 23)
  51735. * message formatting: Diagnostic Message Formatting Options.
  51736. (line 6)
  51737. * messages, warning: Warning Options. (line 6)
  51738. * messages, warning and error: Warnings and Errors.
  51739. (line 6)
  51740. * MicroBlaze Options: MicroBlaze Options. (line 6)
  51741. * micromips function attribute: MIPS Function Attributes.
  51742. (line 91)
  51743. * middle-operands, omitted: Conditionals. (line 6)
  51744. * MIPS options: MIPS Options. (line 6)
  51745. * mips16 function attribute, MIPS: MIPS Function Attributes.
  51746. (line 75)
  51747. * misunderstandings in C++: C++ Misunderstandings.
  51748. (line 6)
  51749. * mixed declarations and code: Mixed Declarations. (line 6)
  51750. * mixing assembly language and C: Using Assembly Language with C.
  51751. (line 6)
  51752. * mktemp, and constant strings: Incompatibilities. (line 13)
  51753. * MMIX Options: MMIX Options. (line 6)
  51754. * MN10300 options: MN10300 Options. (line 6)
  51755. * mode variable attribute: Common Variable Attributes.
  51756. (line 181)
  51757. * model function attribute, M32R/D: M32R/D Function Attributes.
  51758. (line 15)
  51759. * model variable attribute, IA-64: IA-64 Variable Attributes.
  51760. (line 9)
  51761. * model-name variable attribute, M32R/D: M32R/D Variable Attributes.
  51762. (line 9)
  51763. * modf: Other Builtins. (line 6)
  51764. * modff: Other Builtins. (line 6)
  51765. * modfl: Other Builtins. (line 6)
  51766. * modifiers in constraints: Modifiers. (line 6)
  51767. * Moxie Options: Moxie Options. (line 6)
  51768. * MSP430 Options: MSP430 Options. (line 6)
  51769. * ms_abi function attribute, x86: x86 Function Attributes.
  51770. (line 34)
  51771. * ms_hook_prologue function attribute, x86: x86 Function Attributes.
  51772. (line 59)
  51773. * ms_struct type attribute, PowerPC: PowerPC Type Attributes.
  51774. (line 9)
  51775. * ms_struct type attribute, x86: x86 Type Attributes.
  51776. (line 11)
  51777. * ms_struct variable attribute, PowerPC: PowerPC Variable Attributes.
  51778. (line 9)
  51779. * ms_struct variable attribute, x86: x86 Variable Attributes.
  51780. (line 11)
  51781. * multiple alternative constraints: Multi-Alternative. (line 6)
  51782. * multiprecision arithmetic: Long Long. (line 6)
  51783. * n in constraint: Simple Constraints. (line 73)
  51784. * naked function attribute, ARM: ARM Function Attributes.
  51785. (line 41)
  51786. * naked function attribute, AVR: AVR Function Attributes.
  51787. (line 23)
  51788. * naked function attribute, MCORE: MCORE Function Attributes.
  51789. (line 9)
  51790. * naked function attribute, MSP430: MSP430 Function Attributes.
  51791. (line 30)
  51792. * naked function attribute, NDS32: NDS32 Function Attributes.
  51793. (line 35)
  51794. * naked function attribute, RISC-V: RISC-V Function Attributes.
  51795. (line 9)
  51796. * naked function attribute, RL78: RL78 Function Attributes.
  51797. (line 20)
  51798. * naked function attribute, RX: RX Function Attributes.
  51799. (line 39)
  51800. * naked function attribute, SPU: SPU Function Attributes.
  51801. (line 9)
  51802. * naked function attribute, x86: x86 Function Attributes.
  51803. (line 66)
  51804. * Named Address Spaces: Named Address Spaces.
  51805. (line 6)
  51806. * names used in assembler code: Asm Labels. (line 6)
  51807. * naming convention, implementation headers: C++ Interface. (line 43)
  51808. * NDS32 Options: NDS32 Options. (line 6)
  51809. * near function attribute, MeP: MeP Function Attributes.
  51810. (line 20)
  51811. * near function attribute, MIPS: MIPS Function Attributes.
  51812. (line 63)
  51813. * near type attribute, MeP: MeP Type Attributes.
  51814. (line 6)
  51815. * near variable attribute, MeP: MeP Variable Attributes.
  51816. (line 24)
  51817. * nearbyint: Other Builtins. (line 6)
  51818. * nearbyintf: Other Builtins. (line 6)
  51819. * nearbyintl: Other Builtins. (line 6)
  51820. * nested function attribute, NDS32: NDS32 Function Attributes.
  51821. (line 19)
  51822. * nested functions: Nested Functions. (line 6)
  51823. * nested_ready function attribute, NDS32: NDS32 Function Attributes.
  51824. (line 23)
  51825. * nesting function attribute, Blackfin: Blackfin Function Attributes.
  51826. (line 45)
  51827. * newlines (escaped): Escaped Newlines. (line 6)
  51828. * nextafter: Other Builtins. (line 6)
  51829. * nextafterf: Other Builtins. (line 6)
  51830. * nextafterl: Other Builtins. (line 6)
  51831. * nexttoward: Other Builtins. (line 6)
  51832. * nexttowardf: Other Builtins. (line 6)
  51833. * nexttowardl: Other Builtins. (line 6)
  51834. * NFC: Warning Options. (line 2440)
  51835. * NFKC: Warning Options. (line 2440)
  51836. * Nios II options: Nios II Options. (line 6)
  51837. * nmi function attribute, NDS32: NDS32 Function Attributes.
  51838. (line 50)
  51839. * NMI handler functions on the Blackfin processor: Blackfin Function Attributes.
  51840. (line 50)
  51841. * nmi_handler function attribute, Blackfin: Blackfin Function Attributes.
  51842. (line 50)
  51843. * nocf_check function attribute: x86 Function Attributes.
  51844. (line 559)
  51845. * noclone function attribute: Common Function Attributes.
  51846. (line 603)
  51847. * nocommon variable attribute: Common Variable Attributes.
  51848. (line 118)
  51849. * nocompression function attribute, MIPS: MIPS Function Attributes.
  51850. (line 108)
  51851. * noinit variable attribute, MSP430: MSP430 Variable Attributes.
  51852. (line 7)
  51853. * noinline function attribute: Common Function Attributes.
  51854. (line 609)
  51855. * noipa function attribute: Common Function Attributes.
  51856. (line 620)
  51857. * nomicromips function attribute: MIPS Function Attributes.
  51858. (line 91)
  51859. * nomips16 function attribute, MIPS: MIPS Function Attributes.
  51860. (line 75)
  51861. * non-constant initializers: Initializers. (line 6)
  51862. * non-static inline function: Inline. (line 82)
  51863. * nonnull function attribute: Common Function Attributes.
  51864. (line 633)
  51865. * nonstring variable attribute: Common Variable Attributes.
  51866. (line 148)
  51867. * noplt function attribute: Common Function Attributes.
  51868. (line 657)
  51869. * noreturn function attribute: Common Function Attributes.
  51870. (line 681)
  51871. * nosave_low_regs function attribute, SH: SH Function Attributes.
  51872. (line 34)
  51873. * note GCC_COLORS capability: Diagnostic Message Formatting Options.
  51874. (line 78)
  51875. * nothrow function attribute: Common Function Attributes.
  51876. (line 712)
  51877. * notshared type attribute, ARM: ARM Type Attributes.
  51878. (line 6)
  51879. * not_nested function attribute, NDS32: NDS32 Function Attributes.
  51880. (line 21)
  51881. * no_caller_saved_registers function attribute, x86: x86 Function Attributes.
  51882. (line 113)
  51883. * no_gccisr function attribute, AVR: AVR Function Attributes.
  51884. (line 33)
  51885. * no_icf function attribute: Common Function Attributes.
  51886. (line 539)
  51887. * no_instrument_function function attribute: Common Function Attributes.
  51888. (line 543)
  51889. * no_profile_instrument_function function attribute: Common Function Attributes.
  51890. (line 548)
  51891. * no_reorder function attribute: Common Function Attributes.
  51892. (line 553)
  51893. * no_sanitize function attribute: Common Function Attributes.
  51894. (line 561)
  51895. * no_sanitize_address function attribute: Common Function Attributes.
  51896. (line 573)
  51897. * no_sanitize_thread function attribute: Common Function Attributes.
  51898. (line 581)
  51899. * no_sanitize_undefined function attribute: Common Function Attributes.
  51900. (line 586)
  51901. * no_split_stack function attribute: Common Function Attributes.
  51902. (line 592)
  51903. * no_stack_limit function attribute: Common Function Attributes.
  51904. (line 598)
  51905. * Nvidia PTX options: Nvidia PTX Options. (line 6)
  51906. * nvptx options: Nvidia PTX Options. (line 6)
  51907. * o in constraint: Simple Constraints. (line 23)
  51908. * OBJC_INCLUDE_PATH: Environment Variables.
  51909. (line 130)
  51910. * Objective-C: G++ and GCC. (line 6)
  51911. * Objective-C <1>: Standards. (line 184)
  51912. * Objective-C and Objective-C++ options, command-line: Objective-C and Objective-C++ Dialect Options.
  51913. (line 6)
  51914. * Objective-C++: G++ and GCC. (line 6)
  51915. * Objective-C++ <1>: Standards. (line 184)
  51916. * offsettable address: Simple Constraints. (line 23)
  51917. * old-style function definitions: Function Prototypes.
  51918. (line 6)
  51919. * omit-leaf-frame-pointer function attribute, AArch64: AArch64 Function Attributes.
  51920. (line 37)
  51921. * omitted middle-operands: Conditionals. (line 6)
  51922. * open coding: Inline. (line 6)
  51923. * OpenACC accelerator programming: C Dialect Options. (line 313)
  51924. * OpenACC accelerator programming <1>: C Dialect Options. (line 322)
  51925. * OpenMP parallel: C Dialect Options. (line 328)
  51926. * OpenMP SIMD: C Dialect Options. (line 337)
  51927. * operand constraints, asm: Constraints. (line 6)
  51928. * optimize function attribute: Common Function Attributes.
  51929. (line 719)
  51930. * optimize options: Optimize Options. (line 6)
  51931. * options to control diagnostics formatting: Diagnostic Message Formatting Options.
  51932. (line 6)
  51933. * options to control warnings: Warning Options. (line 6)
  51934. * options, C++: C++ Dialect Options.
  51935. (line 6)
  51936. * options, code generation: Code Gen Options. (line 6)
  51937. * options, debugging: Debugging Options. (line 6)
  51938. * options, dialect: C Dialect Options. (line 6)
  51939. * options, directory search: Directory Options. (line 6)
  51940. * options, GCC command: Invoking GCC. (line 6)
  51941. * options, grouping: Invoking GCC. (line 31)
  51942. * options, linking: Link Options. (line 6)
  51943. * options, Objective-C and Objective-C++: Objective-C and Objective-C++ Dialect Options.
  51944. (line 6)
  51945. * options, optimization: Optimize Options. (line 6)
  51946. * options, order: Invoking GCC. (line 35)
  51947. * options, preprocessor: Preprocessor Options.
  51948. (line 6)
  51949. * options, profiling: Instrumentation Options.
  51950. (line 6)
  51951. * options, program instrumentation: Instrumentation Options.
  51952. (line 6)
  51953. * options, run-time error checking: Instrumentation Options.
  51954. (line 6)
  51955. * order of evaluation, side effects: Non-bugs. (line 196)
  51956. * order of options: Invoking GCC. (line 35)
  51957. * OS_main function attribute, AVR: AVR Function Attributes.
  51958. (line 56)
  51959. * OS_task function attribute, AVR: AVR Function Attributes.
  51960. (line 56)
  51961. * other register constraints: Simple Constraints. (line 161)
  51962. * output file option: Overall Options. (line 186)
  51963. * overloaded virtual function, warning: C++ Dialect Options.
  51964. (line 756)
  51965. * p in constraint: Simple Constraints. (line 152)
  51966. * packed type attribute: Common Type Attributes.
  51967. (line 229)
  51968. * packed variable attribute: Common Variable Attributes.
  51969. (line 193)
  51970. * parameter forward declaration: Variable Length. (line 66)
  51971. * partial_save function attribute, NDS32: NDS32 Function Attributes.
  51972. (line 31)
  51973. * Pascal: G++ and GCC. (line 23)
  51974. * patchable_function_entry function attribute: Common Function Attributes.
  51975. (line 734)
  51976. * pcs function attribute, ARM: ARM Function Attributes.
  51977. (line 51)
  51978. * PDP-11 Options: PDP-11 Options. (line 6)
  51979. * persistent variable attribute, MSP430: MSP430 Variable Attributes.
  51980. (line 12)
  51981. * PIC: Code Gen Options. (line 359)
  51982. * picoChip options: picoChip Options. (line 6)
  51983. * pmf: Bound member functions.
  51984. (line 6)
  51985. * pointer arguments: Common Function Attributes.
  51986. (line 150)
  51987. * Pointer Bounds Checker attributes: Common Function Attributes.
  51988. (line 118)
  51989. * Pointer Bounds Checker attributes <1>: Common Type Attributes.
  51990. (line 127)
  51991. * Pointer Bounds Checker builtins: Pointer Bounds Checker builtins.
  51992. (line 6)
  51993. * Pointer Bounds Checker options: Instrumentation Options.
  51994. (line 459)
  51995. * pointer to member function: Bound member functions.
  51996. (line 6)
  51997. * pointers to arrays: Pointers to Arrays. (line 6)
  51998. * portions of temporary objects, pointers to: Temporaries. (line 6)
  51999. * pow: Other Builtins. (line 6)
  52000. * pow10: Other Builtins. (line 6)
  52001. * pow10f: Other Builtins. (line 6)
  52002. * pow10l: Other Builtins. (line 6)
  52003. * PowerPC options: PowerPC Options. (line 6)
  52004. * PowerPC SPE options: PowerPC SPE Options.
  52005. (line 6)
  52006. * powf: Other Builtins. (line 6)
  52007. * powl: Other Builtins. (line 6)
  52008. * pragma GCC ivdep: Loop-Specific Pragmas.
  52009. (line 7)
  52010. * pragma GCC optimize: Function Specific Option Pragmas.
  52011. (line 20)
  52012. * pragma GCC pop_options: Function Specific Option Pragmas.
  52013. (line 31)
  52014. * pragma GCC push_options: Function Specific Option Pragmas.
  52015. (line 31)
  52016. * pragma GCC reset_options: Function Specific Option Pragmas.
  52017. (line 39)
  52018. * pragma GCC target: Function Specific Option Pragmas.
  52019. (line 7)
  52020. * pragma GCC unroll N: Loop-Specific Pragmas.
  52021. (line 37)
  52022. * pragma, address: M32C Pragmas. (line 15)
  52023. * pragma, align: Solaris Pragmas. (line 11)
  52024. * pragma, call: MeP Pragmas. (line 48)
  52025. * pragma, coprocessor available: MeP Pragmas. (line 13)
  52026. * pragma, coprocessor call_saved: MeP Pragmas. (line 20)
  52027. * pragma, coprocessor subclass: MeP Pragmas. (line 28)
  52028. * pragma, custom io_volatile: MeP Pragmas. (line 7)
  52029. * pragma, diagnostic: Diagnostic Pragmas. (line 14)
  52030. * pragma, diagnostic <1>: Diagnostic Pragmas. (line 57)
  52031. * pragma, disinterrupt: MeP Pragmas. (line 38)
  52032. * pragma, fini: Solaris Pragmas. (line 20)
  52033. * pragma, init: Solaris Pragmas. (line 26)
  52034. * pragma, longcall: RS/6000 and PowerPC Pragmas.
  52035. (line 14)
  52036. * pragma, long_calls: ARM Pragmas. (line 11)
  52037. * pragma, long_calls_off: ARM Pragmas. (line 17)
  52038. * pragma, mark: Darwin Pragmas. (line 11)
  52039. * pragma, memregs: M32C Pragmas. (line 7)
  52040. * pragma, no_long_calls: ARM Pragmas. (line 14)
  52041. * pragma, options align: Darwin Pragmas. (line 14)
  52042. * pragma, pop_macro: Push/Pop Macro Pragmas.
  52043. (line 15)
  52044. * pragma, push_macro: Push/Pop Macro Pragmas.
  52045. (line 11)
  52046. * pragma, redefine_extname: Symbol-Renaming Pragmas.
  52047. (line 13)
  52048. * pragma, segment: Darwin Pragmas. (line 21)
  52049. * pragma, unused: Darwin Pragmas. (line 24)
  52050. * pragma, visibility: Visibility Pragmas. (line 8)
  52051. * pragma, weak: Weak Pragmas. (line 10)
  52052. * pragmas: Pragmas. (line 6)
  52053. * pragmas in C++, effect on inlining: C++ Interface. (line 57)
  52054. * pragmas, interface and implementation: C++ Interface. (line 6)
  52055. * pragmas, warning of unknown: Warning Options. (line 1150)
  52056. * precompiled headers: Precompiled Headers.
  52057. (line 6)
  52058. * preprocessing numbers: Incompatibilities. (line 173)
  52059. * preprocessing tokens: Incompatibilities. (line 173)
  52060. * preprocessor options: Preprocessor Options.
  52061. (line 6)
  52062. * printf: Other Builtins. (line 6)
  52063. * printf_unlocked: Other Builtins. (line 6)
  52064. * prof: Instrumentation Options.
  52065. (line 18)
  52066. * profiling options: Instrumentation Options.
  52067. (line 6)
  52068. * progmem variable attribute, AVR: AVR Variable Attributes.
  52069. (line 7)
  52070. * program instrumentation options: Instrumentation Options.
  52071. (line 6)
  52072. * promotion of formal parameters: Function Prototypes.
  52073. (line 6)
  52074. * pure function attribute: Common Function Attributes.
  52075. (line 752)
  52076. * push address instruction: Simple Constraints. (line 152)
  52077. * putchar: Other Builtins. (line 6)
  52078. * puts: Other Builtins. (line 6)
  52079. * q floating point suffix: Floating Types. (line 6)
  52080. * Q floating point suffix: Floating Types. (line 6)
  52081. * qsort, and global register variables: Global Register Variables.
  52082. (line 60)
  52083. * quote GCC_COLORS capability: Diagnostic Message Formatting Options.
  52084. (line 91)
  52085. * r fixed-suffix: Fixed-Point. (line 6)
  52086. * R fixed-suffix: Fixed-Point. (line 6)
  52087. * r in constraint: Simple Constraints. (line 64)
  52088. * RAMPD: AVR Options. (line 402)
  52089. * RAMPX: AVR Options. (line 402)
  52090. * RAMPY: AVR Options. (line 402)
  52091. * RAMPZ: AVR Options. (line 402)
  52092. * range1 GCC_COLORS capability: Diagnostic Message Formatting Options.
  52093. (line 81)
  52094. * range2 GCC_COLORS capability: Diagnostic Message Formatting Options.
  52095. (line 84)
  52096. * ranges in case statements: Case Ranges. (line 6)
  52097. * read-only strings: Incompatibilities. (line 9)
  52098. * reentrant function attribute, MSP430: MSP430 Function Attributes.
  52099. (line 40)
  52100. * register variable after longjmp: Global Register Variables.
  52101. (line 74)
  52102. * registers for local variables: Local Register Variables.
  52103. (line 6)
  52104. * registers in constraints: Simple Constraints. (line 64)
  52105. * registers, global allocation: Global Register Variables.
  52106. (line 6)
  52107. * registers, global variables in: Global Register Variables.
  52108. (line 6)
  52109. * regparm function attribute, x86: x86 Function Attributes.
  52110. (line 76)
  52111. * relocation truncated to fit (ColdFire): M680x0 Options. (line 325)
  52112. * relocation truncated to fit (MIPS): MIPS Options. (line 236)
  52113. * remainder: Other Builtins. (line 6)
  52114. * remainderf: Other Builtins. (line 6)
  52115. * remainderl: Other Builtins. (line 6)
  52116. * remquo: Other Builtins. (line 6)
  52117. * remquof: Other Builtins. (line 6)
  52118. * remquol: Other Builtins. (line 6)
  52119. * renesas function attribute, SH: SH Function Attributes.
  52120. (line 40)
  52121. * reordering, warning: C++ Dialect Options.
  52122. (line 681)
  52123. * reporting bugs: Bugs. (line 6)
  52124. * resbank function attribute, SH: SH Function Attributes.
  52125. (line 44)
  52126. * reset function attribute, NDS32: NDS32 Function Attributes.
  52127. (line 45)
  52128. * reset handler functions: NDS32 Function Attributes.
  52129. (line 45)
  52130. * rest argument (in macro): Variadic Macros. (line 6)
  52131. * restricted pointers: Restricted Pointers.
  52132. (line 6)
  52133. * restricted references: Restricted Pointers.
  52134. (line 6)
  52135. * restricted this pointer: Restricted Pointers.
  52136. (line 6)
  52137. * returns_nonnull function attribute: Common Function Attributes.
  52138. (line 779)
  52139. * returns_twice function attribute: Common Function Attributes.
  52140. (line 789)
  52141. * rindex: Other Builtins. (line 6)
  52142. * rint: Other Builtins. (line 6)
  52143. * rintf: Other Builtins. (line 6)
  52144. * rintl: Other Builtins. (line 6)
  52145. * RISC-V Options: RISC-V Options. (line 6)
  52146. * RL78 Options: RL78 Options. (line 6)
  52147. * round: Other Builtins. (line 6)
  52148. * roundf: Other Builtins. (line 6)
  52149. * roundl: Other Builtins. (line 6)
  52150. * RS/6000 and PowerPC Options: RS/6000 and PowerPC Options.
  52151. (line 6)
  52152. * RTTI: Vague Linkage. (line 42)
  52153. * run-time error checking options: Instrumentation Options.
  52154. (line 6)
  52155. * run-time options: Code Gen Options. (line 6)
  52156. * RX Options: RX Options. (line 6)
  52157. * s in constraint: Simple Constraints. (line 100)
  52158. * S/390 and zSeries Options: S/390 and zSeries Options.
  52159. (line 6)
  52160. * saddr variable attribute, RL78: RL78 Variable Attributes.
  52161. (line 6)
  52162. * save all registers on the Blackfin: Blackfin Function Attributes.
  52163. (line 56)
  52164. * save all registers on the H8/300, H8/300H, and H8S: H8/300 Function Attributes.
  52165. (line 23)
  52166. * saveall function attribute, Blackfin: Blackfin Function Attributes.
  52167. (line 56)
  52168. * saveall function attribute, H8/300: H8/300 Function Attributes.
  52169. (line 23)
  52170. * save_all function attribute, NDS32: NDS32 Function Attributes.
  52171. (line 28)
  52172. * save_volatiles function attribute, MicroBlaze: MicroBlaze Function Attributes.
  52173. (line 9)
  52174. * scalar_storage_order type attribute: Common Type Attributes.
  52175. (line 264)
  52176. * scalb: Other Builtins. (line 6)
  52177. * scalbf: Other Builtins. (line 6)
  52178. * scalbl: Other Builtins. (line 6)
  52179. * scalbln: Other Builtins. (line 6)
  52180. * scalblnf: Other Builtins. (line 6)
  52181. * scalblnf <1>: Other Builtins. (line 6)
  52182. * scalbn: Other Builtins. (line 6)
  52183. * scalbnf: Other Builtins. (line 6)
  52184. * scanf, and constant strings: Incompatibilities. (line 17)
  52185. * scanfnl: Other Builtins. (line 6)
  52186. * scope of a variable length array: Variable Length. (line 22)
  52187. * scope of declaration: Disappointments. (line 21)
  52188. * scope of external declarations: Incompatibilities. (line 80)
  52189. * Score Options: Score Options. (line 6)
  52190. * sda variable attribute, V850: V850 Variable Attributes.
  52191. (line 9)
  52192. * search path: Directory Options. (line 6)
  52193. * section function attribute: Common Function Attributes.
  52194. (line 798)
  52195. * section variable attribute: Common Variable Attributes.
  52196. (line 214)
  52197. * secure_call function attribute, ARC: ARC Function Attributes.
  52198. (line 51)
  52199. * selectany variable attribute: Microsoft Windows Variable Attributes.
  52200. (line 16)
  52201. * sentinel function attribute: Common Function Attributes.
  52202. (line 814)
  52203. * setjmp: Global Register Variables.
  52204. (line 74)
  52205. * setjmp incompatibilities: Incompatibilities. (line 39)
  52206. * shared attribute, Nvidia PTX: Nvidia PTX Variable Attributes.
  52207. (line 9)
  52208. * shared strings: Incompatibilities. (line 9)
  52209. * shared variable attribute: Microsoft Windows Variable Attributes.
  52210. (line 37)
  52211. * shortcall function attribute, Blackfin: Blackfin Function Attributes.
  52212. (line 38)
  52213. * shortcall function attribute, PowerPC: PowerPC Function Attributes.
  52214. (line 10)
  52215. * short_call function attribute, ARC: ARC Function Attributes.
  52216. (line 24)
  52217. * short_call function attribute, ARM: ARM Function Attributes.
  52218. (line 31)
  52219. * short_call function attribute, Epiphany: Epiphany Function Attributes.
  52220. (line 57)
  52221. * short_call function attribute, MIPS: MIPS Function Attributes.
  52222. (line 63)
  52223. * side effect in ?:: Conditionals. (line 20)
  52224. * side effects, macro argument: Statement Exprs. (line 35)
  52225. * side effects, order of evaluation: Non-bugs. (line 196)
  52226. * sign-return-address function attribute, AArch64: AArch64 Function Attributes.
  52227. (line 65)
  52228. * signal function attribute, AVR: AVR Function Attributes.
  52229. (line 80)
  52230. * signbit: Other Builtins. (line 6)
  52231. * signbitd128: Other Builtins. (line 6)
  52232. * signbitd32: Other Builtins. (line 6)
  52233. * signbitd64: Other Builtins. (line 6)
  52234. * signbitf: Other Builtins. (line 6)
  52235. * signbitl: Other Builtins. (line 6)
  52236. * signed and unsigned values, comparison warning: Warning Options.
  52237. (line 2212)
  52238. * significand: Other Builtins. (line 6)
  52239. * significandf: Other Builtins. (line 6)
  52240. * significandl: Other Builtins. (line 6)
  52241. * SIMD: C Dialect Options. (line 337)
  52242. * simd function attribute: Common Function Attributes.
  52243. (line 840)
  52244. * simple constraints: Simple Constraints. (line 6)
  52245. * sin: Other Builtins. (line 6)
  52246. * sincos: Other Builtins. (line 6)
  52247. * sincosf: Other Builtins. (line 6)
  52248. * sincosl: Other Builtins. (line 6)
  52249. * sinf: Other Builtins. (line 6)
  52250. * sinh: Other Builtins. (line 6)
  52251. * sinhf: Other Builtins. (line 6)
  52252. * sinhl: Other Builtins. (line 6)
  52253. * sinl: Other Builtins. (line 6)
  52254. * sizeof: Typeof. (line 6)
  52255. * smaller data references: M32R/D Options. (line 57)
  52256. * smaller data references <1>: Nios II Options. (line 9)
  52257. * smaller data references (PowerPC): PowerPC SPE Options.
  52258. (line 524)
  52259. * smaller data references (PowerPC) <1>: RS/6000 and PowerPC Options.
  52260. (line 774)
  52261. * snprintf: Other Builtins. (line 6)
  52262. * Solaris 2 options: Solaris 2 Options. (line 6)
  52263. * SOURCE_DATE_EPOCH: Environment Variables.
  52264. (line 177)
  52265. * SPARC options: SPARC Options. (line 6)
  52266. * Spec Files: Spec Files. (line 6)
  52267. * specified registers: Explicit Register Variables.
  52268. (line 6)
  52269. * specifying compiler version and target machine: Invoking GCC.
  52270. (line 24)
  52271. * specifying hardware config: Submodel Options. (line 6)
  52272. * specifying machine version: Invoking GCC. (line 24)
  52273. * specifying registers for local variables: Local Register Variables.
  52274. (line 6)
  52275. * speed of compilation: Precompiled Headers.
  52276. (line 6)
  52277. * sprintf: Other Builtins. (line 6)
  52278. * SPU options: SPU Options. (line 6)
  52279. * spu_vector type attribute, SPU: SPU Type Attributes.
  52280. (line 6)
  52281. * spu_vector variable attribute, SPU: SPU Variable Attributes.
  52282. (line 6)
  52283. * sp_switch function attribute, SH: SH Function Attributes.
  52284. (line 58)
  52285. * sqrt: Other Builtins. (line 6)
  52286. * sqrtf: Other Builtins. (line 6)
  52287. * sqrtl: Other Builtins. (line 6)
  52288. * sscanf: Other Builtins. (line 6)
  52289. * sscanf, and constant strings: Incompatibilities. (line 17)
  52290. * sseregparm function attribute, x86: x86 Function Attributes.
  52291. (line 93)
  52292. * stack_protect function attribute: Common Function Attributes.
  52293. (line 859)
  52294. * Statement Attributes: Statement Attributes.
  52295. (line 6)
  52296. * statements inside expressions: Statement Exprs. (line 6)
  52297. * static data in C++, declaring and defining: Static Definitions.
  52298. (line 6)
  52299. * stdcall function attribute, x86-32: x86 Function Attributes.
  52300. (line 108)
  52301. * stpcpy: Other Builtins. (line 6)
  52302. * stpncpy: Other Builtins. (line 6)
  52303. * strcasecmp: Other Builtins. (line 6)
  52304. * strcat: Other Builtins. (line 6)
  52305. * strchr: Other Builtins. (line 6)
  52306. * strcmp: Other Builtins. (line 6)
  52307. * strcpy: Other Builtins. (line 6)
  52308. * strcspn: Other Builtins. (line 6)
  52309. * strdup: Other Builtins. (line 6)
  52310. * strfmon: Other Builtins. (line 6)
  52311. * strftime: Other Builtins. (line 6)
  52312. * strict-align function attribute, AArch64: AArch64 Function Attributes.
  52313. (line 32)
  52314. * string constants: Incompatibilities. (line 9)
  52315. * strlen: Other Builtins. (line 6)
  52316. * strncasecmp: Other Builtins. (line 6)
  52317. * strncat: Other Builtins. (line 6)
  52318. * strncmp: Other Builtins. (line 6)
  52319. * strncpy: Other Builtins. (line 6)
  52320. * strndup: Other Builtins. (line 6)
  52321. * strpbrk: Other Builtins. (line 6)
  52322. * strrchr: Other Builtins. (line 6)
  52323. * strspn: Other Builtins. (line 6)
  52324. * strstr: Other Builtins. (line 6)
  52325. * struct: Unnamed Fields. (line 6)
  52326. * struct __htm_tdb: S/390 System z Built-in Functions.
  52327. (line 49)
  52328. * structures: Incompatibilities. (line 146)
  52329. * structures, constructor expression: Compound Literals. (line 6)
  52330. * submodel options: Submodel Options. (line 6)
  52331. * subscripting: Subscripting. (line 6)
  52332. * subscripting and function values: Subscripting. (line 6)
  52333. * suffixes for C++ source: Invoking G++. (line 6)
  52334. * SUNPRO_DEPENDENCIES: Environment Variables.
  52335. (line 171)
  52336. * suppressing warnings: Warning Options. (line 6)
  52337. * surprises in C++: C++ Misunderstandings.
  52338. (line 6)
  52339. * syntax checking: Warning Options. (line 13)
  52340. * syscall_linkage function attribute, IA-64: IA-64 Function Attributes.
  52341. (line 9)
  52342. * system headers, warnings from: Warning Options. (line 1631)
  52343. * sysv_abi function attribute, x86: x86 Function Attributes.
  52344. (line 34)
  52345. * tan: Other Builtins. (line 6)
  52346. * tanf: Other Builtins. (line 6)
  52347. * tanh: Other Builtins. (line 6)
  52348. * tanhf: Other Builtins. (line 6)
  52349. * tanhl: Other Builtins. (line 6)
  52350. * tanl: Other Builtins. (line 6)
  52351. * target function attribute: Common Function Attributes.
  52352. (line 864)
  52353. * target function attribute <1>: ARM Function Attributes.
  52354. (line 70)
  52355. * target function attribute <2>: Nios II Function Attributes.
  52356. (line 9)
  52357. * target function attribute <3>: PowerPC Function Attributes.
  52358. (line 21)
  52359. * target function attribute <4>: S/390 Function Attributes.
  52360. (line 22)
  52361. * target function attribute <5>: x86 Function Attributes.
  52362. (line 180)
  52363. * target machine, specifying: Invoking GCC. (line 24)
  52364. * target("3dnow") function attribute, x86: x86 Function Attributes.
  52365. (line 186)
  52366. * target("3dnowa") function attribute, x86: x86 Function Attributes.
  52367. (line 190)
  52368. * target("abm") function attribute, x86: x86 Function Attributes.
  52369. (line 195)
  52370. * target("adx") function attribute, x86: x86 Function Attributes.
  52371. (line 200)
  52372. * target("aes") function attribute, x86: x86 Function Attributes.
  52373. (line 204)
  52374. * target("align-stringops") function attribute, x86: x86 Function Attributes.
  52375. (line 517)
  52376. * target("altivec") function attribute, PowerPC: PowerPC Function Attributes.
  52377. (line 28)
  52378. * target("arch=ARCH") function attribute, x86: x86 Function Attributes.
  52379. (line 526)
  52380. * target("arm") function attribute, ARM: ARM Function Attributes.
  52381. (line 80)
  52382. * target("avoid-indexed-addresses") function attribute, PowerPC: PowerPC Function Attributes.
  52383. (line 149)
  52384. * target("avx") function attribute, x86: x86 Function Attributes.
  52385. (line 208)
  52386. * target("avx2") function attribute, x86: x86 Function Attributes.
  52387. (line 212)
  52388. * target("avx5124fmaps") function attribute, x86: x86 Function Attributes.
  52389. (line 216)
  52390. * target("avx5124vnniw") function attribute, x86: x86 Function Attributes.
  52391. (line 221)
  52392. * target("avx512bitalg") function attribute, x86: x86 Function Attributes.
  52393. (line 226)
  52394. * target("avx512bw") function attribute, x86: x86 Function Attributes.
  52395. (line 231)
  52396. * target("avx512cd") function attribute, x86: x86 Function Attributes.
  52397. (line 235)
  52398. * target("avx512dq") function attribute, x86: x86 Function Attributes.
  52399. (line 239)
  52400. * target("avx512er") function attribute, x86: x86 Function Attributes.
  52401. (line 243)
  52402. * target("avx512f") function attribute, x86: x86 Function Attributes.
  52403. (line 247)
  52404. * target("avx512ifma") function attribute, x86: x86 Function Attributes.
  52405. (line 251)
  52406. * target("avx512pf") function attribute, x86: x86 Function Attributes.
  52407. (line 255)
  52408. * target("avx512vbmi") function attribute, x86: x86 Function Attributes.
  52409. (line 259)
  52410. * target("avx512vbmi2") function attribute, x86: x86 Function Attributes.
  52411. (line 263)
  52412. * target("avx512vl") function attribute, x86: x86 Function Attributes.
  52413. (line 267)
  52414. * target("avx512vnni") function attribute, x86: x86 Function Attributes.
  52415. (line 271)
  52416. * target("avx512vpopcntdq") function attribute, x86: x86 Function Attributes.
  52417. (line 275)
  52418. * target("bmi") function attribute, x86: x86 Function Attributes.
  52419. (line 280)
  52420. * target("bmi2") function attribute, x86: x86 Function Attributes.
  52421. (line 284)
  52422. * target("cld") function attribute, x86: x86 Function Attributes.
  52423. (line 493)
  52424. * target("clflushopt") function attribute, x86: x86 Function Attributes.
  52425. (line 288)
  52426. * target("clwb") function attribute, x86: x86 Function Attributes.
  52427. (line 292)
  52428. * target("clzero") function attribute, x86: x86 Function Attributes.
  52429. (line 296)
  52430. * target("cmpb") function attribute, PowerPC: PowerPC Function Attributes.
  52431. (line 34)
  52432. * target("cpu=CPU") function attribute, PowerPC: PowerPC Function Attributes.
  52433. (line 164)
  52434. * target("crc32") function attribute, x86: x86 Function Attributes.
  52435. (line 300)
  52436. * target("custom-fpu-cfg=NAME") function attribute, Nios II: Nios II Function Attributes.
  52437. (line 25)
  52438. * target("custom-INSN=N") function attribute, Nios II: Nios II Function Attributes.
  52439. (line 16)
  52440. * target("cx16") function attribute, x86: x86 Function Attributes.
  52441. (line 304)
  52442. * target("default") function attribute, x86: x86 Function Attributes.
  52443. (line 307)
  52444. * target("dlmzb") function attribute, PowerPC: PowerPC Function Attributes.
  52445. (line 40)
  52446. * target("f16c") function attribute, x86: x86 Function Attributes.
  52447. (line 312)
  52448. * target("fancy-math-387") function attribute, x86: x86 Function Attributes.
  52449. (line 497)
  52450. * target("fma") function attribute, x86: x86 Function Attributes.
  52451. (line 316)
  52452. * target("fma4") function attribute, x86: x86 Function Attributes.
  52453. (line 320)
  52454. * target("fpmath=FPMATH") function attribute, x86: x86 Function Attributes.
  52455. (line 534)
  52456. * target("fprnd") function attribute, PowerPC: PowerPC Function Attributes.
  52457. (line 47)
  52458. * target("fpu=") function attribute, ARM: ARM Function Attributes.
  52459. (line 86)
  52460. * target("friz") function attribute, PowerPC: PowerPC Function Attributes.
  52461. (line 140)
  52462. * target("fsgsbase") function attribute, x86: x86 Function Attributes.
  52463. (line 324)
  52464. * target("fxsr") function attribute, x86: x86 Function Attributes.
  52465. (line 328)
  52466. * target("gfni") function attribute, x86: x86 Function Attributes.
  52467. (line 332)
  52468. * target("hard-dfp") function attribute, PowerPC: PowerPC Function Attributes.
  52469. (line 53)
  52470. * target("hle") function attribute, x86: x86 Function Attributes.
  52471. (line 336)
  52472. * target("ieee-fp") function attribute, x86: x86 Function Attributes.
  52473. (line 502)
  52474. * target("inline-all-stringops") function attribute, x86: x86 Function Attributes.
  52475. (line 507)
  52476. * target("inline-stringops-dynamically") function attribute, x86: x86 Function Attributes.
  52477. (line 511)
  52478. * target("isel") function attribute, PowerPC: PowerPC Function Attributes.
  52479. (line 59)
  52480. * target("longcall") function attribute, PowerPC: PowerPC Function Attributes.
  52481. (line 159)
  52482. * target("lwp") function attribute, x86: x86 Function Attributes.
  52483. (line 340)
  52484. * target("lzcnt") function attribute, x86: x86 Function Attributes.
  52485. (line 344)
  52486. * target("mfcrf") function attribute, PowerPC: PowerPC Function Attributes.
  52487. (line 63)
  52488. * target("mfpgpr") function attribute, PowerPC: PowerPC Function Attributes.
  52489. (line 70)
  52490. * target("mmx") function attribute, x86: x86 Function Attributes.
  52491. (line 348)
  52492. * target("movbe") function attribute, x86: x86 Function Attributes.
  52493. (line 352)
  52494. * target("movdir64b") function attribute, x86: x86 Function Attributes.
  52495. (line 356)
  52496. * target("movdiri") function attribute, x86: x86 Function Attributes.
  52497. (line 360)
  52498. * target("mulhw") function attribute, PowerPC: PowerPC Function Attributes.
  52499. (line 77)
  52500. * target("multiple") function attribute, PowerPC: PowerPC Function Attributes.
  52501. (line 84)
  52502. * target("mwaitx") function attribute, x86: x86 Function Attributes.
  52503. (line 364)
  52504. * target("no-custom-INSN") function attribute, Nios II: Nios II Function Attributes.
  52505. (line 16)
  52506. * target("paired") function attribute, PowerPC: PowerPC Function Attributes.
  52507. (line 154)
  52508. * target("pclmul") function attribute, x86: x86 Function Attributes.
  52509. (line 368)
  52510. * target("pconfig") function attribute, x86: x86 Function Attributes.
  52511. (line 372)
  52512. * target("pku") function attribute, x86: x86 Function Attributes.
  52513. (line 376)
  52514. * target("popcnt") function attribute, x86: x86 Function Attributes.
  52515. (line 380)
  52516. * target("popcntb") function attribute, PowerPC: PowerPC Function Attributes.
  52517. (line 95)
  52518. * target("popcntd") function attribute, PowerPC: PowerPC Function Attributes.
  52519. (line 102)
  52520. * target("powerpc-gfxopt") function attribute, PowerPC: PowerPC Function Attributes.
  52521. (line 108)
  52522. * target("powerpc-gpopt") function attribute, PowerPC: PowerPC Function Attributes.
  52523. (line 114)
  52524. * target("prefetchwt1") function attribute, x86: x86 Function Attributes.
  52525. (line 384)
  52526. * target("prfchw") function attribute, x86: x86 Function Attributes.
  52527. (line 388)
  52528. * target("rdpid") function attribute, x86: x86 Function Attributes.
  52529. (line 392)
  52530. * target("rdrnd") function attribute, x86: x86 Function Attributes.
  52531. (line 396)
  52532. * target("rdseed") function attribute, x86: x86 Function Attributes.
  52533. (line 400)
  52534. * target("recip") function attribute, x86: x86 Function Attributes.
  52535. (line 521)
  52536. * target("recip-precision") function attribute, PowerPC: PowerPC Function Attributes.
  52537. (line 120)
  52538. * target("rtm") function attribute, x86: x86 Function Attributes.
  52539. (line 404)
  52540. * target("sahf") function attribute, x86: x86 Function Attributes.
  52541. (line 408)
  52542. * target("sgx") function attribute, x86: x86 Function Attributes.
  52543. (line 412)
  52544. * target("sha") function attribute, x86: x86 Function Attributes.
  52545. (line 416)
  52546. * target("shstk") function attribute, x86: x86 Function Attributes.
  52547. (line 420)
  52548. * target("sse") function attribute, x86: x86 Function Attributes.
  52549. (line 424)
  52550. * target("sse2") function attribute, x86: x86 Function Attributes.
  52551. (line 428)
  52552. * target("sse3") function attribute, x86: x86 Function Attributes.
  52553. (line 432)
  52554. * target("sse4") function attribute, x86: x86 Function Attributes.
  52555. (line 436)
  52556. * target("sse4.1") function attribute, x86: x86 Function Attributes.
  52557. (line 441)
  52558. * target("sse4.2") function attribute, x86: x86 Function Attributes.
  52559. (line 445)
  52560. * target("sse4a") function attribute, x86: x86 Function Attributes.
  52561. (line 449)
  52562. * target("ssse3") function attribute, x86: x86 Function Attributes.
  52563. (line 453)
  52564. * target("string") function attribute, PowerPC: PowerPC Function Attributes.
  52565. (line 126)
  52566. * target("tbm") function attribute, x86: x86 Function Attributes.
  52567. (line 457)
  52568. * target("thumb") function attribute, ARM: ARM Function Attributes.
  52569. (line 76)
  52570. * target("tune=TUNE") function attribute, PowerPC: PowerPC Function Attributes.
  52571. (line 171)
  52572. * target("tune=TUNE") function attribute, x86: x86 Function Attributes.
  52573. (line 530)
  52574. * target("update") function attribute, PowerPC: PowerPC Function Attributes.
  52575. (line 89)
  52576. * target("vaes") function attribute, x86: x86 Function Attributes.
  52577. (line 461)
  52578. * target("vpclmulqdq") function attribute, x86: x86 Function Attributes.
  52579. (line 465)
  52580. * target("vsx") function attribute, PowerPC: PowerPC Function Attributes.
  52581. (line 132)
  52582. * target("wbnoinvd") function attribute, x86: x86 Function Attributes.
  52583. (line 469)
  52584. * target("xop") function attribute, x86: x86 Function Attributes.
  52585. (line 473)
  52586. * target("xsave") function attribute, x86: x86 Function Attributes.
  52587. (line 477)
  52588. * target("xsavec") function attribute, x86: x86 Function Attributes.
  52589. (line 481)
  52590. * target("xsaveopt") function attribute, x86: x86 Function Attributes.
  52591. (line 485)
  52592. * target("xsaves") function attribute, x86: x86 Function Attributes.
  52593. (line 489)
  52594. * target-dependent options: Submodel Options. (line 6)
  52595. * target_clones function attribute: Common Function Attributes.
  52596. (line 898)
  52597. * TC1: Standards. (line 13)
  52598. * TC2: Standards. (line 13)
  52599. * TC3: Standards. (line 13)
  52600. * tda variable attribute, V850: V850 Variable Attributes.
  52601. (line 13)
  52602. * Technical Corrigenda: Standards. (line 13)
  52603. * Technical Corrigendum 1: Standards. (line 13)
  52604. * Technical Corrigendum 2: Standards. (line 13)
  52605. * Technical Corrigendum 3: Standards. (line 13)
  52606. * template instantiation: Template Instantiation.
  52607. (line 6)
  52608. * temporaries, lifetime of: Temporaries. (line 6)
  52609. * tentative definitions: Code Gen Options. (line 231)
  52610. * tgamma: Other Builtins. (line 6)
  52611. * tgammaf: Other Builtins. (line 6)
  52612. * tgammal: Other Builtins. (line 6)
  52613. * thiscall function attribute, x86-32: x86 Function Attributes.
  52614. (line 23)
  52615. * Thread-Local Storage: Thread-Local. (line 6)
  52616. * thunks: Nested Functions. (line 6)
  52617. * TILE-Gx options: TILE-Gx Options. (line 6)
  52618. * TILEPro options: TILEPro Options. (line 6)
  52619. * tiny data section on the H8/300H and H8S: H8/300 Variable Attributes.
  52620. (line 19)
  52621. * tiny type attribute, MeP: MeP Type Attributes.
  52622. (line 6)
  52623. * tiny variable attribute, MeP: MeP Variable Attributes.
  52624. (line 20)
  52625. * tiny_data variable attribute, H8/300: H8/300 Variable Attributes.
  52626. (line 19)
  52627. * TLS: Thread-Local. (line 6)
  52628. * tls-dialect= function attribute, AArch64: AArch64 Function Attributes.
  52629. (line 44)
  52630. * tls_model variable attribute: Common Variable Attributes.
  52631. (line 259)
  52632. * TMPDIR: Environment Variables.
  52633. (line 45)
  52634. * toascii: Other Builtins. (line 6)
  52635. * tolower: Other Builtins. (line 6)
  52636. * toupper: Other Builtins. (line 6)
  52637. * towlower: Other Builtins. (line 6)
  52638. * towupper: Other Builtins. (line 6)
  52639. * traditional C language: Preprocessor Options.
  52640. (line 366)
  52641. * transparent_union type attribute: Common Type Attributes.
  52642. (line 304)
  52643. * trapa_handler function attribute, SH: SH Function Attributes.
  52644. (line 73)
  52645. * trap_exit function attribute, SH: SH Function Attributes.
  52646. (line 68)
  52647. * trunc: Other Builtins. (line 6)
  52648. * truncf: Other Builtins. (line 6)
  52649. * truncl: Other Builtins. (line 6)
  52650. * tune= function attribute, AArch64: AArch64 Function Attributes.
  52651. (line 54)
  52652. * two-stage name lookup: Name lookup. (line 6)
  52653. * type alignment: Alignment. (line 6)
  52654. * type attributes: Type Attributes. (line 6)
  52655. * type-diff GCC_COLORS capability: Diagnostic Message Formatting Options.
  52656. (line 114)
  52657. * typedef names as function parameters: Incompatibilities. (line 97)
  52658. * typeof: Typeof. (line 6)
  52659. * type_info: Vague Linkage. (line 42)
  52660. * uhk fixed-suffix: Fixed-Point. (line 6)
  52661. * UHK fixed-suffix: Fixed-Point. (line 6)
  52662. * uhr fixed-suffix: Fixed-Point. (line 6)
  52663. * UHR fixed-suffix: Fixed-Point. (line 6)
  52664. * uk fixed-suffix: Fixed-Point. (line 6)
  52665. * UK fixed-suffix: Fixed-Point. (line 6)
  52666. * ulk fixed-suffix: Fixed-Point. (line 6)
  52667. * ULK fixed-suffix: Fixed-Point. (line 6)
  52668. * ULL integer suffix: Long Long. (line 6)
  52669. * ullk fixed-suffix: Fixed-Point. (line 6)
  52670. * ULLK fixed-suffix: Fixed-Point. (line 6)
  52671. * ullr fixed-suffix: Fixed-Point. (line 6)
  52672. * ULLR fixed-suffix: Fixed-Point. (line 6)
  52673. * ulr fixed-suffix: Fixed-Point. (line 6)
  52674. * ULR fixed-suffix: Fixed-Point. (line 6)
  52675. * uncached type attribute, ARC: ARC Type Attributes.
  52676. (line 6)
  52677. * undefined behavior: Bug Criteria. (line 17)
  52678. * undefined function value: Bug Criteria. (line 17)
  52679. * underscores in variables in macros: Typeof. (line 46)
  52680. * union: Unnamed Fields. (line 6)
  52681. * union, casting to a: Cast to Union. (line 6)
  52682. * unions: Incompatibilities. (line 146)
  52683. * unknown pragmas, warning: Warning Options. (line 1150)
  52684. * unresolved references and -nodefaultlibs: Link Options. (line 91)
  52685. * unresolved references and -nostdlib: Link Options. (line 91)
  52686. * unused function attribute: Common Function Attributes.
  52687. (line 919)
  52688. * unused label attribute: Label Attributes. (line 31)
  52689. * unused type attribute: Common Type Attributes.
  52690. (line 357)
  52691. * unused variable attribute: Common Variable Attributes.
  52692. (line 268)
  52693. * upper function attribute, MSP430: MSP430 Function Attributes.
  52694. (line 53)
  52695. * upper variable attribute, MSP430: MSP430 Variable Attributes.
  52696. (line 24)
  52697. * ur fixed-suffix: Fixed-Point. (line 6)
  52698. * UR fixed-suffix: Fixed-Point. (line 6)
  52699. * used function attribute: Common Function Attributes.
  52700. (line 924)
  52701. * used variable attribute: Common Variable Attributes.
  52702. (line 273)
  52703. * User stack pointer in interrupts on the Blackfin: Blackfin Function Attributes.
  52704. (line 21)
  52705. * use_debug_exception_return function attribute, MIPS: MIPS Function Attributes.
  52706. (line 39)
  52707. * use_shadow_register_set function attribute, MIPS: MIPS Function Attributes.
  52708. (line 28)
  52709. * V in constraint: Simple Constraints. (line 43)
  52710. * V850 Options: V850 Options. (line 6)
  52711. * vague linkage: Vague Linkage. (line 6)
  52712. * value after longjmp: Global Register Variables.
  52713. (line 74)
  52714. * variable addressability on the M32R/D: M32R/D Variable Attributes.
  52715. (line 9)
  52716. * variable alignment: Alignment. (line 6)
  52717. * variable attributes: Variable Attributes.
  52718. (line 6)
  52719. * variable number of arguments: Variadic Macros. (line 6)
  52720. * variable-length array in a structure: Variable Length. (line 26)
  52721. * variable-length array scope: Variable Length. (line 22)
  52722. * variable-length arrays: Variable Length. (line 6)
  52723. * variables in specified registers: Explicit Register Variables.
  52724. (line 6)
  52725. * variables, local, in macros: Typeof. (line 46)
  52726. * variadic macros: Variadic Macros. (line 6)
  52727. * VAX options: VAX Options. (line 6)
  52728. * vector function attribute, RX: RX Function Attributes.
  52729. (line 49)
  52730. * vector_size variable attribute: Common Variable Attributes.
  52731. (line 282)
  52732. * version_id function attribute, IA-64: IA-64 Function Attributes.
  52733. (line 16)
  52734. * vfprintf: Other Builtins. (line 6)
  52735. * vfscanf: Other Builtins. (line 6)
  52736. * visibility function attribute: Common Function Attributes.
  52737. (line 934)
  52738. * visibility type attribute: Common Type Attributes.
  52739. (line 366)
  52740. * visibility variable attribute: Common Variable Attributes.
  52741. (line 305)
  52742. * Visium options: Visium Options. (line 6)
  52743. * VLAs: Variable Length. (line 6)
  52744. * vliw function attribute, MeP: MeP Function Attributes.
  52745. (line 30)
  52746. * void pointers, arithmetic: Pointer Arith. (line 6)
  52747. * void, size of pointer to: Pointer Arith. (line 6)
  52748. * volatile access: Volatiles. (line 6)
  52749. * volatile access <1>: C++ Volatiles. (line 6)
  52750. * volatile applied to function: Function Attributes.
  52751. (line 6)
  52752. * volatile asm: Extended Asm. (line 116)
  52753. * volatile read: Volatiles. (line 6)
  52754. * volatile read <1>: C++ Volatiles. (line 6)
  52755. * volatile write: Volatiles. (line 6)
  52756. * volatile write <1>: C++ Volatiles. (line 6)
  52757. * vprintf: Other Builtins. (line 6)
  52758. * vscanf: Other Builtins. (line 6)
  52759. * vsnprintf: Other Builtins. (line 6)
  52760. * vsprintf: Other Builtins. (line 6)
  52761. * vsscanf: Other Builtins. (line 6)
  52762. * vtable: Vague Linkage. (line 27)
  52763. * VxWorks Options: VxWorks Options. (line 6)
  52764. * w floating point suffix: Floating Types. (line 6)
  52765. * W floating point suffix: Floating Types. (line 6)
  52766. * wakeup function attribute, MSP430: MSP430 Function Attributes.
  52767. (line 45)
  52768. * warm function attribute, NDS32: NDS32 Function Attributes.
  52769. (line 52)
  52770. * warning for comparison of signed and unsigned values: Warning Options.
  52771. (line 2212)
  52772. * warning for overloaded virtual function: C++ Dialect Options.
  52773. (line 756)
  52774. * warning for reordering of member initializers: C++ Dialect Options.
  52775. (line 681)
  52776. * warning for unknown pragmas: Warning Options. (line 1150)
  52777. * warning function attribute: Common Function Attributes.
  52778. (line 206)
  52779. * warning GCC_COLORS capability: Diagnostic Message Formatting Options.
  52780. (line 75)
  52781. * warning messages: Warning Options. (line 6)
  52782. * warnings from system headers: Warning Options. (line 1631)
  52783. * warnings vs errors: Warnings and Errors.
  52784. (line 6)
  52785. * warn_if_not_aligned type attribute: Common Type Attributes.
  52786. (line 83)
  52787. * warn_if_not_aligned variable attribute: Common Variable Attributes.
  52788. (line 73)
  52789. * warn_unused type attribute: C++ Attributes. (line 71)
  52790. * warn_unused_result function attribute: Common Function Attributes.
  52791. (line 1034)
  52792. * weak function attribute: Common Function Attributes.
  52793. (line 1051)
  52794. * weak variable attribute: Common Variable Attributes.
  52795. (line 310)
  52796. * weakref function attribute: Common Function Attributes.
  52797. (line 1060)
  52798. * whitespace: Incompatibilities. (line 112)
  52799. * Windows Options for x86: x86 Windows Options.
  52800. (line 6)
  52801. * X in constraint: Simple Constraints. (line 122)
  52802. * X3.159-1989: Standards. (line 13)
  52803. * x86 named address spaces: Named Address Spaces.
  52804. (line 183)
  52805. * x86 Options: x86 Options. (line 6)
  52806. * x86 Windows Options: x86 Windows Options.
  52807. (line 6)
  52808. * Xstormy16 Options: Xstormy16 Options. (line 6)
  52809. * Xtensa Options: Xtensa Options. (line 6)
  52810. * y0: Other Builtins. (line 6)
  52811. * y0f: Other Builtins. (line 6)
  52812. * y0l: Other Builtins. (line 6)
  52813. * y1: Other Builtins. (line 6)
  52814. * y1f: Other Builtins. (line 6)
  52815. * y1l: Other Builtins. (line 6)
  52816. * yn: Other Builtins. (line 6)
  52817. * ynf: Other Builtins. (line 6)
  52818. * ynl: Other Builtins. (line 6)
  52819. * zda variable attribute, V850: V850 Variable Attributes.
  52820. (line 17)
  52821. * zero-length arrays: Zero Length. (line 6)
  52822. * zero-size structures: Empty Structures. (line 6)
  52823. * zSeries options: zSeries Options. (line 6)
  52824. 
  52825. Tag Table:
  52826. Node: Top2057
  52827. Node: G++ and GCC3996
  52828. Node: Standards6061
  52829. Node: Invoking GCC19219
  52830. Node: Option Summary23420
  52831. Node: Overall Options76079
  52832. Node: Invoking G++91071
  52833. Node: C Dialect Options92594
  52834. Node: C++ Dialect Options111458
  52835. Node: Objective-C and Objective-C++ Dialect Options148442
  52836. Node: Diagnostic Message Formatting Options159672
  52837. Node: Warning Options168484
  52838. Ref: Wtrigraphs254643
  52839. Node: Debugging Options291230
  52840. Node: Optimize Options310105
  52841. Ref: Type-punning373898
  52842. Node: Instrumentation Options465636
  52843. Node: Preprocessor Options507801
  52844. Ref: dashMF512648
  52845. Ref: fdollars-in-identifiers517227
  52846. Node: Assembler Options529477
  52847. Node: Link Options530168
  52848. Ref: Link Options-Footnote-1544483
  52849. Node: Directory Options544819
  52850. Node: Code Gen Options553222
  52851. Node: Developer Options581887
  52852. Node: Submodel Options620799
  52853. Node: AArch64 Options622557
  52854. Ref: aarch64-feature-modifiers633021
  52855. Node: Adapteva Epiphany Options635412
  52856. Node: ARC Options641359
  52857. Node: ARM Options662276
  52858. Node: AVR Options697232
  52859. Node: Blackfin Options721262
  52860. Node: C6X Options729156
  52861. Node: CRIS Options730699
  52862. Node: CR16 Options734438
  52863. Node: Darwin Options735349
  52864. Node: DEC Alpha Options742789
  52865. Node: FR30 Options754405
  52866. Node: FT32 Options754970
  52867. Node: FRV Options755916
  52868. Node: GNU/Linux Options762680
  52869. Node: H8/300 Options764061
  52870. Node: HPPA Options765513
  52871. Node: IA-64 Options775045
  52872. Node: LM32 Options783173
  52873. Node: M32C Options783696
  52874. Node: M32R/D Options784969
  52875. Node: M680x0 Options788514
  52876. Node: MCore Options802666
  52877. Node: MeP Options804168
  52878. Node: MicroBlaze Options808128
  52879. Node: MIPS Options810914
  52880. Node: MMIX Options846366
  52881. Node: MN10300 Options848843
  52882. Node: Moxie Options851384
  52883. Node: MSP430 Options851871
  52884. Node: NDS32 Options856575
  52885. Node: Nios II Options858745
  52886. Node: Nvidia PTX Options870908
  52887. Node: PDP-11 Options873170
  52888. Node: picoChip Options874867
  52889. Node: PowerPC Options877005
  52890. Node: PowerPC SPE Options877233
  52891. Node: RISC-V Options905739
  52892. Node: RL78 Options911251
  52893. Node: RS/6000 and PowerPC Options915026
  52894. Node: RX Options957007
  52895. Node: S/390 and zSeries Options965609
  52896. Node: Score Options976074
  52897. Node: SH Options976923
  52898. Node: Solaris 2 Options992065
  52899. Node: SPARC Options993303
  52900. Node: SPU Options1008924
  52901. Node: System V Options1013863
  52902. Node: TILE-Gx Options1014689
  52903. Node: TILEPro Options1015707
  52904. Node: V850 Options1016211
  52905. Node: VAX Options1022898
  52906. Node: Visium Options1023436
  52907. Node: VMS Options1025744
  52908. Node: VxWorks Options1026560
  52909. Node: x86 Options1027712
  52910. Node: x86 Windows Options1086452
  52911. Node: Xstormy16 Options1089257
  52912. Node: Xtensa Options1089551
  52913. Node: zSeries Options1094700
  52914. Node: Spec Files1094896
  52915. Node: Environment Variables1117054
  52916. Node: Precompiled Headers1125780
  52917. Node: C Implementation1131786
  52918. Node: Translation implementation1133476
  52919. Node: Environment implementation1134067
  52920. Node: Identifiers implementation1134621
  52921. Node: Characters implementation1135707
  52922. Node: Integers implementation1139357
  52923. Node: Floating point implementation1141406
  52924. Node: Arrays and pointers implementation1144469
  52925. Ref: Arrays and pointers implementation-Footnote-11145929
  52926. Node: Hints implementation1146055
  52927. Node: Structures unions enumerations and bit-fields implementation1147550
  52928. Node: Qualifiers implementation1149774
  52929. Node: Declarators implementation1151554
  52930. Node: Statements implementation1151895
  52931. Node: Preprocessing directives implementation1152221
  52932. Node: Library functions implementation1154542
  52933. Node: Architecture implementation1155191
  52934. Node: Locale-specific behavior implementation1156836
  52935. Node: C++ Implementation1157141
  52936. Node: Conditionally-supported behavior1158424
  52937. Node: Exception handling1159041
  52938. Node: C Extensions1159508
  52939. Node: Statement Exprs1164709
  52940. Node: Local Labels1169186
  52941. Node: Labels as Values1172159
  52942. Ref: Labels as Values-Footnote-11174686
  52943. Node: Nested Functions1174871
  52944. Node: Constructing Calls1178829
  52945. Node: Typeof1183546
  52946. Node: Conditionals1187475
  52947. Node: __int1281188364
  52948. Node: Long Long1188889
  52949. Node: Complex1190365
  52950. Node: Floating Types1193133
  52951. Node: Half-Precision1196600
  52952. Node: Decimal Float1199011
  52953. Node: Hex Floats1200865
  52954. Node: Fixed-Point1201902
  52955. Node: Named Address Spaces1205160
  52956. Ref: AVR Named Address Spaces1205846
  52957. Node: Zero Length1212869
  52958. Node: Empty Structures1215909
  52959. Node: Variable Length1216315
  52960. Node: Variadic Macros1219033
  52961. Node: Escaped Newlines1221411
  52962. Node: Subscripting1222272
  52963. Node: Pointer Arith1222997
  52964. Node: Pointers to Arrays1223571
  52965. Node: Initializers1224316
  52966. Node: Compound Literals1224817
  52967. Node: Designated Inits1228384
  52968. Node: Case Ranges1232120
  52969. Node: Cast to Union1232801
  52970. Node: Mixed Declarations1233927
  52971. Node: Function Attributes1234437
  52972. Node: Common Function Attributes1237825
  52973. Node: AArch64 Function Attributes1289334
  52974. Node: ARC Function Attributes1294740
  52975. Node: ARM Function Attributes1297062
  52976. Node: AVR Function Attributes1301867
  52977. Node: Blackfin Function Attributes1306402
  52978. Node: CR16 Function Attributes1308900
  52979. Node: Epiphany Function Attributes1309427
  52980. Node: H8/300 Function Attributes1312179
  52981. Node: IA-64 Function Attributes1313375
  52982. Node: M32C Function Attributes1314417
  52983. Node: M32R/D Function Attributes1316755
  52984. Node: m68k Function Attributes1318229
  52985. Node: MCORE Function Attributes1319173
  52986. Node: MeP Function Attributes1319984
  52987. Node: MicroBlaze Function Attributes1321285
  52988. Node: Microsoft Windows Function Attributes1322792
  52989. Node: MIPS Function Attributes1327361
  52990. Node: MSP430 Function Attributes1332979
  52991. Node: NDS32 Function Attributes1336827
  52992. Node: Nios II Function Attributes1339251
  52993. Node: Nvidia PTX Function Attributes1340548
  52994. Node: PowerPC Function Attributes1341163
  52995. Node: RISC-V Function Attributes1348218
  52996. Node: RL78 Function Attributes1350714
  52997. Node: RX Function Attributes1351953
  52998. Node: S/390 Function Attributes1354501
  52999. Node: SH Function Attributes1356329
  53000. Node: SPU Function Attributes1359750
  53001. Node: Symbian OS Function Attributes1360558
  53002. Node: V850 Function Attributes1360895
  53003. Node: Visium Function Attributes1361440
  53004. Node: x86 Function Attributes1361968
  53005. Node: Xstormy16 Function Attributes1383191
  53006. Node: Variable Attributes1383698
  53007. Node: Common Variable Attributes1385187
  53008. Node: ARC Variable Attributes1398955
  53009. Node: AVR Variable Attributes1399337
  53010. Node: Blackfin Variable Attributes1404499
  53011. Node: H8/300 Variable Attributes1405357
  53012. Node: IA-64 Variable Attributes1406430
  53013. Node: M32R/D Variable Attributes1407181
  53014. Node: MeP Variable Attributes1407964
  53015. Node: Microsoft Windows Variable Attributes1410057
  53016. Node: MSP430 Variable Attributes1412510
  53017. Node: Nvidia PTX Variable Attributes1413711
  53018. Node: PowerPC Variable Attributes1414328
  53019. Node: RL78 Variable Attributes1414885
  53020. Node: SPU Variable Attributes1415303
  53021. Node: V850 Variable Attributes1415668
  53022. Node: x86 Variable Attributes1416300
  53023. Node: Xstormy16 Variable Attributes1417356
  53024. Node: Type Attributes1417926
  53025. Node: Common Type Attributes1419270
  53026. Node: ARC Type Attributes1436119
  53027. Node: ARM Type Attributes1436591
  53028. Node: MeP Type Attributes1437373
  53029. Node: PowerPC Type Attributes1437775
  53030. Node: SPU Type Attributes1438764
  53031. Node: x86 Type Attributes1439183
  53032. Node: Label Attributes1440171
  53033. Node: Enumerator Attributes1442104
  53034. Node: Statement Attributes1443423
  53035. Node: Attribute Syntax1444906
  53036. Node: Function Prototypes1456164
  53037. Node: C++ Comments1457944
  53038. Node: Dollar Signs1458463
  53039. Node: Character Escapes1458928
  53040. Node: Alignment1459212
  53041. Node: Inline1460584
  53042. Node: Volatiles1465401
  53043. Node: Using Assembly Language with C1468300
  53044. Node: Basic Asm1469537
  53045. Node: Extended Asm1474897
  53046. Ref: Volatile1478984
  53047. Ref: AssemblerTemplate1483069
  53048. Ref: OutputOperands1487307
  53049. Ref: FlagOutputOperands1494258
  53050. Ref: InputOperands1496287
  53051. Ref: Clobbers and Scratch Registers1500555
  53052. Ref: GotoLabels1508711
  53053. Ref: x86Operandmodifiers1510846
  53054. Ref: x86floatingpointasmoperands1513047
  53055. Node: Constraints1516376
  53056. Node: Simple Constraints1517482
  53057. Node: Multi-Alternative1524796
  53058. Node: Modifiers1526471
  53059. Node: Machine Constraints1529269
  53060. Node: Asm Labels1589144
  53061. Node: Explicit Register Variables1590764
  53062. Ref: Explicit Reg Vars1590978
  53063. Node: Global Register Variables1591587
  53064. Ref: Global Reg Vars1591795
  53065. Node: Local Register Variables1595647
  53066. Ref: Local Reg Vars1595867
  53067. Node: Size of an asm1599174
  53068. Node: Alternate Keywords1600652
  53069. Node: Incomplete Enums1602151
  53070. Node: Function Names1602908
  53071. Node: Return Address1604806
  53072. Node: Vector Extensions1608747
  53073. Node: Offsetof1616042
  53074. Node: __sync Builtins1616875
  53075. Node: __atomic Builtins1623316
  53076. Node: Integer Overflow Builtins1636797
  53077. Node: x86 specific memory model extensions for transactional memory1643273
  53078. Node: Object Size Checking1644539
  53079. Node: Pointer Bounds Checker builtins1650578
  53080. Node: Other Builtins1656580
  53081. Node: Target Builtins1697721
  53082. Node: AArch64 Built-in Functions1699379
  53083. Node: Alpha Built-in Functions1699834
  53084. Node: Altera Nios II Built-in Functions1702882
  53085. Node: ARC Built-in Functions1707251
  53086. Node: ARC SIMD Built-in Functions1712463
  53087. Node: ARM iWMMXt Built-in Functions1721359
  53088. Node: ARM C Language Extensions (ACLE)1728355
  53089. Node: ARM Floating Point Status and Control Intrinsics1729694
  53090. Node: ARM ARMv8-M Security Extensions1730179
  53091. Node: AVR Built-in Functions1731524
  53092. Node: Blackfin Built-in Functions1735285
  53093. Node: FR-V Built-in Functions1735904
  53094. Node: Argument Types1736772
  53095. Node: Directly-mapped Integer Functions1738526
  53096. Node: Directly-mapped Media Functions1739610
  53097. Node: Raw read/write Functions1747816
  53098. Node: Other Built-in Functions1748724
  53099. Node: MIPS DSP Built-in Functions1749910
  53100. Node: MIPS Paired-Single Support1762407
  53101. Node: MIPS Loongson Built-in Functions1763906
  53102. Node: Paired-Single Arithmetic1770428
  53103. Node: Paired-Single Built-in Functions1771376
  53104. Node: MIPS-3D Built-in Functions1774043
  53105. Node: MIPS SIMD Architecture (MSA) Support1779421
  53106. Node: MIPS SIMD Architecture Built-in Functions1782261
  53107. Node: Other MIPS Built-in Functions1809091
  53108. Node: MSP430 Built-in Functions1810100
  53109. Node: NDS32 Built-in Functions1811501
  53110. Node: picoChip Built-in Functions1812794
  53111. Node: PowerPC Built-in Functions1814137
  53112. Node: PowerPC AltiVec/VSX Built-in Functions1848618
  53113. Node: PowerPC Hardware Transactional Memory Built-in Functions2017646
  53114. Node: PowerPC Atomic Memory Operation Functions2026157
  53115. Node: RX Built-in Functions2028692
  53116. Node: S/390 System z Built-in Functions2032710
  53117. Node: SH Built-in Functions2037940
  53118. Node: SPARC VIS Built-in Functions2039668
  53119. Node: SPU Built-in Functions2048197
  53120. Node: TI C6X Built-in Functions2049914
  53121. Node: TILE-Gx Built-in Functions2050939
  53122. Node: TILEPro Built-in Functions2052058
  53123. Node: x86 Built-in Functions2053158
  53124. Node: x86 transactional memory intrinsics2114430
  53125. Node: x86 control-flow protection intrinsics2117697
  53126. Node: Target Format Checks2119468
  53127. Node: Solaris Format Checks2119900
  53128. Node: Darwin Format Checks2120326
  53129. Node: Pragmas2121144
  53130. Node: AArch64 Pragmas2121917
  53131. Node: ARM Pragmas2122374
  53132. Node: M32C Pragmas2123001
  53133. Node: MeP Pragmas2124073
  53134. Node: RS/6000 and PowerPC Pragmas2126141
  53135. Node: S/390 Pragmas2126881
  53136. Node: Darwin Pragmas2127447
  53137. Node: Solaris Pragmas2128500
  53138. Node: Symbol-Renaming Pragmas2129664
  53139. Node: Structure-Layout Pragmas2131280
  53140. Node: Weak Pragmas2133560
  53141. Node: Diagnostic Pragmas2134295
  53142. Node: Visibility Pragmas2137404
  53143. Node: Push/Pop Macro Pragmas2138089
  53144. Node: Function Specific Option Pragmas2139062
  53145. Node: Loop-Specific Pragmas2140931
  53146. Node: Unnamed Fields2142531
  53147. Node: Thread-Local2144728
  53148. Node: C99 Thread-Local Edits2146834
  53149. Node: C++98 Thread-Local Edits2148832
  53150. Node: Binary constants2152277
  53151. Node: C++ Extensions2152948
  53152. Node: C++ Volatiles2154578
  53153. Node: Restricted Pointers2156926
  53154. Node: Vague Linkage2158517
  53155. Node: C++ Interface2162140
  53156. Ref: C++ Interface-Footnote-12165937
  53157. Node: Template Instantiation2166075
  53158. Node: Bound member functions2173558
  53159. Node: C++ Attributes2175090
  53160. Node: Function Multiversioning2179162
  53161. Node: Type Traits2180969
  53162. Node: C++ Concepts2187734
  53163. Node: Deprecated Features2189233
  53164. Node: Backwards Compatibility2191324
  53165. Node: Objective-C2193158
  53166. Node: GNU Objective-C runtime API2193765
  53167. Node: Modern GNU Objective-C runtime API2194772
  53168. Node: Traditional GNU Objective-C runtime API2197208
  53169. Node: Executing code before main2197935
  53170. Node: What you can and what you cannot do in +load2200679
  53171. Node: Type encoding2203049
  53172. Node: Legacy type encoding2208190
  53173. Node: @encode2209280
  53174. Node: Method signatures2209825
  53175. Node: Garbage Collection2211817
  53176. Node: Constant string objects2214507
  53177. Node: compatibility_alias2217016
  53178. Node: Exceptions2217741
  53179. Node: Synchronization2220451
  53180. Node: Fast enumeration2221635
  53181. Node: Using fast enumeration2221947
  53182. Node: c99-like fast enumeration syntax2223158
  53183. Node: Fast enumeration details2223861
  53184. Node: Fast enumeration protocol2226201
  53185. Node: Messaging with the GNU Objective-C runtime2229353
  53186. Node: Dynamically registering methods2230725
  53187. Node: Forwarding hook2232416
  53188. Node: Compatibility2235457
  53189. Node: Gcov2242013
  53190. Node: Gcov Intro2242548
  53191. Node: Invoking Gcov2245266
  53192. Node: Gcov and Optimization2266211
  53193. Node: Gcov Data Files2269580
  53194. Node: Cross-profiling2270997
  53195. Node: Gcov-tool2272851
  53196. Node: Gcov-tool Intro2273276
  53197. Node: Invoking Gcov-tool2275246
  53198. Node: Gcov-dump2277824
  53199. Node: Gcov-dump Intro2278146
  53200. Node: Invoking Gcov-dump2278413
  53201. Node: Trouble2279082
  53202. Node: Actual Bugs2280500
  53203. Node: Interoperation2280947
  53204. Node: Incompatibilities2287838
  53205. Node: Fixed Headers2295990
  53206. Node: Standard Libraries2297648
  53207. Node: Disappointments2299020
  53208. Node: C++ Misunderstandings2303379
  53209. Node: Static Definitions2304190
  53210. Node: Name lookup2305243
  53211. Ref: Name lookup-Footnote-12310024
  53212. Node: Temporaries2310213
  53213. Node: Copy Assignment2312189
  53214. Node: Non-bugs2313996
  53215. Node: Warnings and Errors2324502
  53216. Node: Bugs2326264
  53217. Node: Bug Criteria2326731
  53218. Node: Bug Reporting2328941
  53219. Node: Service2329180
  53220. Node: Contributing2329999
  53221. Node: Funding2330739
  53222. Node: GNU Project2333229
  53223. Node: Copying2333875
  53224. Node: GNU Free Documentation License2371384
  53225. Node: Contributors2396502
  53226. Node: Option Index2437437
  53227. Node: Keyword Index2702211
  53228. 
  53229. End Tag Table
  53230. 
  53231. Local Variables:
  53232. coding: utf-8
  53233. End: